@licklist/design 0.67.2-dev.2 → 0.67.2-dev.3
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/iframe/event/event-card/IframeEventCard.d.ts +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +9 -3
- package/package.json +4 -4
- package/src/iframe/event/event-card/IframeEventCard.tsx +16 -2
- package/yarn.lock +6 -6
|
@@ -17,6 +17,6 @@ interface IframeEventCardProps {
|
|
|
17
17
|
imageClassName?: string;
|
|
18
18
|
showMoreInfo?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare function IframeEventCard({ title, type, cost, date, imageSrc, colour, goToDetails, description, isListView, className, shortDate, titleId, descriptionId, imageClassName, showMoreInfo, }: IframeEventCardProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function IframeEventCard({ title, type, cost, date, imageSrc, colour, goToDetails, description, isListView, className, shortDate, titleId, descriptionId, imageClassName, showMoreInfo, snippetSetting, }: IframeEventCardProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=IframeEventCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,
|
|
1
|
+
{"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE,oBAAoB,2CAuGtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Card } from 'react-bootstrap';
|
|
2
|
+
import { Card, Button } from 'react-bootstrap';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -11,7 +11,7 @@ import { ReactComponent as SvgTicket } from '../../../assets/iframe/ticket.svg.j
|
|
|
11
11
|
|
|
12
12
|
var DESCRIPTION_MAX_LENGTH = 150;
|
|
13
13
|
function IframeEventCard(param) {
|
|
14
|
-
var title = param.title, type = param.type, cost = param.cost, date = param.date, imageSrc = param.imageSrc, colour = param.colour, goToDetails = param.goToDetails, description = param.description, _param_isListView = param.isListView, isListView = _param_isListView === void 0 ? false : _param_isListView, className = param.className, shortDate = param.shortDate, titleId = param.titleId, descriptionId = param.descriptionId, imageClassName = param.imageClassName, showMoreInfo = param.showMoreInfo;
|
|
14
|
+
var title = param.title, type = param.type, cost = param.cost, date = param.date, imageSrc = param.imageSrc, colour = param.colour, goToDetails = param.goToDetails, description = param.description, _param_isListView = param.isListView, isListView = _param_isListView === void 0 ? false : _param_isListView, className = param.className, shortDate = param.shortDate, titleId = param.titleId, descriptionId = param.descriptionId, imageClassName = param.imageClassName, showMoreInfo = param.showMoreInfo, snippetSetting = param.snippetSetting;
|
|
15
15
|
var formatNumber = useIntl().formatNumber;
|
|
16
16
|
var t = useTranslation("Design").t;
|
|
17
17
|
var onClick = function() {
|
|
@@ -25,7 +25,7 @@ function IframeEventCard(param) {
|
|
|
25
25
|
className: clsx("iframe-event-card", {
|
|
26
26
|
"list-view": isListView
|
|
27
27
|
}, className),
|
|
28
|
-
onClick: goToDetails ? onClick : undefined,
|
|
28
|
+
onClick: goToDetails || !snippetSetting.displayBookingButtonOnEventList ? onClick : undefined,
|
|
29
29
|
children: [
|
|
30
30
|
showMoreInfo && /*#__PURE__*/ jsx("div", {
|
|
31
31
|
className: "iframe-event-card__info-icon",
|
|
@@ -119,6 +119,12 @@ function IframeEventCard(param) {
|
|
|
119
119
|
content: formatContent(description, DESCRIPTION_MAX_LENGTH),
|
|
120
120
|
id: descriptionId
|
|
121
121
|
})
|
|
122
|
+
}),
|
|
123
|
+
!!snippetSetting.displayBookingButtonOnEventList && showMoreInfo && /*#__PURE__*/ jsx(Button, {
|
|
124
|
+
className: "step-save-btn w-25 mt-4",
|
|
125
|
+
type: "button",
|
|
126
|
+
onClick: onClick,
|
|
127
|
+
children: t("book")
|
|
122
128
|
})
|
|
123
129
|
]
|
|
124
130
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.67.2-dev.
|
|
3
|
+
"version": "0.67.2-dev.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.28.6-dev.
|
|
45
|
+
"@licklist/core": "0.28.6-dev.3",
|
|
46
46
|
"@licklist/eslint-config": "0.5.5",
|
|
47
47
|
"@licklist/plugins": "0.32.0-dev.0",
|
|
48
48
|
"lodash": "4.17.21",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.28.6-dev.
|
|
64
|
+
"@licklist/core": "0.28.6-dev.3",
|
|
65
65
|
"@licklist/eslint-config": "0.5.5",
|
|
66
66
|
"@licklist/plugins": "0.30.4-dev.3",
|
|
67
67
|
"@mdx-js/react": "1.6.22",
|
|
@@ -201,4 +201,4 @@
|
|
|
201
201
|
"yarn": "4.4.0"
|
|
202
202
|
},
|
|
203
203
|
"stableVersion": "0.66.7-dev.5"
|
|
204
|
-
}
|
|
204
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card } from "react-bootstrap";
|
|
1
|
+
import { Button, Card } from "react-bootstrap";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import clsx from "clsx";
|
|
@@ -47,6 +47,7 @@ export function IframeEventCard({
|
|
|
47
47
|
descriptionId,
|
|
48
48
|
imageClassName,
|
|
49
49
|
showMoreInfo,
|
|
50
|
+
snippetSetting,
|
|
50
51
|
}: IframeEventCardProps) {
|
|
51
52
|
const { formatNumber } = useIntl();
|
|
52
53
|
const { t } = useTranslation("Design");
|
|
@@ -69,7 +70,11 @@ export function IframeEventCard({
|
|
|
69
70
|
{ "list-view": isListView },
|
|
70
71
|
className,
|
|
71
72
|
)}
|
|
72
|
-
onClick={
|
|
73
|
+
onClick={
|
|
74
|
+
goToDetails || !snippetSetting.displayBookingButtonOnEventList
|
|
75
|
+
? onClick
|
|
76
|
+
: undefined
|
|
77
|
+
}
|
|
73
78
|
>
|
|
74
79
|
{showMoreInfo && <div className="iframe-event-card__info-icon">i</div>}
|
|
75
80
|
{imageSrc && (
|
|
@@ -133,6 +138,15 @@ export function IframeEventCard({
|
|
|
133
138
|
/>
|
|
134
139
|
</Card.Text>
|
|
135
140
|
)}
|
|
141
|
+
{!!snippetSetting.displayBookingButtonOnEventList && showMoreInfo && (
|
|
142
|
+
<Button
|
|
143
|
+
className="step-save-btn w-25 mt-4"
|
|
144
|
+
type="button"
|
|
145
|
+
onClick={onClick}
|
|
146
|
+
>
|
|
147
|
+
{t("book")}
|
|
148
|
+
</Button>
|
|
149
|
+
)}
|
|
136
150
|
</div>
|
|
137
151
|
</Card.Body>
|
|
138
152
|
</Card>
|
package/yarn.lock
CHANGED
|
@@ -2587,9 +2587,9 @@ __metadata:
|
|
|
2587
2587
|
languageName: node
|
|
2588
2588
|
linkType: hard
|
|
2589
2589
|
|
|
2590
|
-
"@licklist/core@npm:0.28.6-dev.
|
|
2591
|
-
version: 0.28.6-dev.
|
|
2592
|
-
resolution: "@licklist/core@npm:0.28.6-dev.
|
|
2590
|
+
"@licklist/core@npm:0.28.6-dev.3":
|
|
2591
|
+
version: 0.28.6-dev.3
|
|
2592
|
+
resolution: "@licklist/core@npm:0.28.6-dev.3"
|
|
2593
2593
|
dependencies:
|
|
2594
2594
|
"@sentry/browser": "npm:6.2.0"
|
|
2595
2595
|
axios: "npm:0.26.0"
|
|
@@ -2609,7 +2609,7 @@ __metadata:
|
|
|
2609
2609
|
react-dom: 17.0.2
|
|
2610
2610
|
react-i18next: 11.8.8
|
|
2611
2611
|
react-intl: 6.6.8
|
|
2612
|
-
checksum: 10c0/
|
|
2612
|
+
checksum: 10c0/f3a24b85a5bb36e4a291d01ec00d480b01ed03fa3009645ea89577d224ad566007fce7dc2cd1a53ad10e9f4d5a2e3397e70d3a941f67d541e419f3835bb50860
|
|
2613
2613
|
languageName: node
|
|
2614
2614
|
linkType: hard
|
|
2615
2615
|
|
|
@@ -2624,7 +2624,7 @@ __metadata:
|
|
|
2624
2624
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2625
2625
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2626
2626
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2627
|
-
"@licklist/core": "npm:0.28.6-dev.
|
|
2627
|
+
"@licklist/core": "npm:0.28.6-dev.3"
|
|
2628
2628
|
"@licklist/eslint-config": "npm:0.5.5"
|
|
2629
2629
|
"@licklist/plugins": "npm:0.30.4-dev.3"
|
|
2630
2630
|
"@mdx-js/react": "npm:1.6.22"
|
|
@@ -2748,7 +2748,7 @@ __metadata:
|
|
|
2748
2748
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2749
2749
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2750
2750
|
peerDependencies:
|
|
2751
|
-
"@licklist/core": 0.28.6-dev.
|
|
2751
|
+
"@licklist/core": 0.28.6-dev.3
|
|
2752
2752
|
"@licklist/eslint-config": 0.5.5
|
|
2753
2753
|
"@licklist/plugins": 0.32.0-dev.0
|
|
2754
2754
|
lodash: 4.17.21
|