@citygross/components_v2 0.0.26 → 0.0.28
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/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/EmptyBox/EmptyBox.css.ts.vanilla.css +18 -0
- package/dist/components/EmptyBox/EmptyBox.css.vanilla.js +6 -0
- package/dist/components/EmptyBox/EmptyBox.d.ts +9 -0
- package/dist/components/EmptyBox/EmptyBox.js +10 -0
- package/dist/components/TimeLine/TimeLine.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
|
@@ -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
|
},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.EmptyBox_emptyBox__h1vfj10 {
|
|
2
|
+
background: #FFF7D1;
|
|
3
|
+
border-radius: 100%;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
padding: 16px;
|
|
7
|
+
height: 96px;
|
|
8
|
+
width: 96px;
|
|
9
|
+
place-content: center;
|
|
10
|
+
padding-top: 24px;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
}
|
|
13
|
+
.EmptyBox_emptyBoxContainer__h1vfj11 {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Icons } from '@citygross/icons_v2';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { emptyBoxContainer, emptyBox } from './EmptyBox.css.vanilla.js';
|
|
4
|
+
import { H3 } from '../../typography/H3/H3.js';
|
|
5
|
+
|
|
6
|
+
const EmptyBox = ({ title, description }) => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement("div", { className: emptyBoxContainer }, /* @__PURE__ */ React.createElement("div", { className: emptyBox }, /* @__PURE__ */ React.createElement(Icons.EmptyBag, null)), /* @__PURE__ */ React.createElement(H3, { fontWeight: "semiBold" }, title), description);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { EmptyBox };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { BoxArrow, TBoxArrow } from './components/BoxArrow/BoxArrow.js';
|
|
|
5
5
|
export { Button, TCgButton } from './components/Button/Button.js';
|
|
6
6
|
export { CartItemSummary, TCartItemSummary, TSummaryItem } from './components/CartItemSummary/CartItemSummary.js';
|
|
7
7
|
export { CartSummary, TCartSummary } from './components/CartSummary/CartSummary.js';
|
|
8
|
+
export { EmptyBox, TEmptyBox } from './components/EmptyBox/EmptyBox.js';
|
|
8
9
|
export { Divider, TDivider } from './components/Divider/Divider.js';
|
|
9
10
|
export { Dot, TDot } from './components/Dot/Dot.js';
|
|
10
11
|
export { FormControl, TFormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { BoxArrow } from './components/BoxArrow/BoxArrow.js';
|
|
|
5
5
|
export { Button } from './components/Button/Button.js';
|
|
6
6
|
export { CartItemSummary } from './components/CartItemSummary/CartItemSummary.js';
|
|
7
7
|
export { CartSummary } from './components/CartSummary/CartSummary.js';
|
|
8
|
+
export { EmptyBox } from './components/EmptyBox/EmptyBox.js';
|
|
8
9
|
export { Divider } from './components/Divider/Divider.js';
|
|
9
10
|
export { Dot } from './components/Dot/Dot.js';
|
|
10
11
|
export { FormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"react-dom": "^17.0.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@citygross/design-tokens_v2": "^0.0.
|
|
68
|
+
"@citygross/design-tokens_v2": "^0.0.5",
|
|
69
69
|
"@citygross/icons_v2": "^0.0.3",
|
|
70
70
|
"@citygross/react-use-bg-wizard": "^0.0.8",
|
|
71
71
|
"@citygross/typography": "^0.0.89",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-slick": "^0.30.1",
|
|
80
80
|
"slick-carousel": "^1.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "deac55bfa1245c23e721fcd930442d5a0a97bbba"
|
|
83
83
|
}
|