@licklist/design 0.44.485-dev.79 → 0.44.485-dev.80
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/data-time-view-selector/DateAndTimeAndCalendar.d.ts +8 -0
- package/dist/iframe/data-time-view-selector/DateAndTimeAndCalendar.d.ts.map +1 -0
- package/dist/iframe/data-time-view-selector/constants.d.ts +7 -0
- package/dist/iframe/data-time-view-selector/constants.d.ts.map +1 -0
- package/dist/iframe/data-time-view-selector/constants.js +1 -0
- package/dist/iframe/data-time-view-selector/index.d.ts +2 -0
- package/dist/iframe/data-time-view-selector/index.d.ts.map +1 -0
- package/dist/iframe/index.d.ts +1 -1
- package/dist/iframe/index.d.ts.map +1 -1
- package/dist/iframe/select-date-time/SelectDateAndTimeList.d.ts +3 -0
- package/dist/iframe/select-date-time/SelectDateAndTimeList.d.ts.map +1 -0
- package/dist/iframe/select-date-time/SelectDateAndTimeList.js +1 -0
- package/dist/iframe/select-date-time/SelectDateOrTimeList.d.ts +8 -0
- package/dist/iframe/select-date-time/SelectDateOrTimeList.d.ts.map +1 -0
- package/dist/iframe/select-date-time/SelectDateOrTimeList.js +1 -0
- package/dist/iframe/select-date-time/component/date-container/DateTimeSelector.d.ts +10 -0
- package/dist/iframe/select-date-time/component/date-container/DateTimeSelector.d.ts.map +1 -0
- package/dist/iframe/select-date-time/component/date-container/DateTimeSelector.js +1 -0
- package/dist/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.d.ts +11 -0
- package/dist/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.d.ts.map +1 -0
- package/dist/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.js +1 -0
- package/dist/iframe/select-date-time/constants.d.ts +6 -0
- package/dist/iframe/select-date-time/constants.d.ts.map +1 -0
- package/dist/iframe/select-date-time/constants.js +1 -0
- package/dist/iframe/select-date-time/index.d.ts +3 -1
- package/dist/iframe/select-date-time/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/styles/iframe-customers-journey/SelectDateAndTime.scss +126 -0
- package/dist/styles/iframe-customers-journey/_index.scss +3 -0
- package/dist/styles/iframe-events/_index.scss +0 -3
- package/dist/styles/packages.scss +1 -0
- package/dist/styles/sales/BookingFilter.scss +2 -0
- package/package.json +1 -1
- package/src/iframe/data-time-view-selector/DateAndTimeAndCalendar.tsx +37 -0
- package/src/iframe/data-time-view-selector/constants.ts +6 -0
- package/src/iframe/data-time-view-selector/index.ts +1 -0
- package/src/iframe/index.ts +5 -1
- package/src/iframe/select-date-time/SelectDateAndTimeList.tsx +39 -0
- package/src/iframe/select-date-time/SelectDateOrTimeList.tsx +42 -0
- package/src/iframe/select-date-time/component/date-container/{SelectDateAndTimeEvent.tsx → DateTimeSelector.tsx} +22 -16
- package/src/iframe/select-date-time/component/date-container/{SelectDateAndTimeEventList.stories.tsx → SelectorDateAndTimeList.stories.tsx} +37 -31
- package/src/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.tsx +41 -0
- package/src/iframe/select-date-time/constants.ts +5 -0
- package/src/iframe/select-date-time/index.ts +4 -1
- package/src/styles/iframe-customers-journey/SelectDateAndTime.scss +126 -0
- package/src/styles/iframe-customers-journey/_index.scss +3 -0
- package/src/styles/iframe-events/_index.scss +0 -3
- package/src/styles/packages.scss +1 -0
- package/src/styles/sales/BookingFilter.scss +2 -0
- package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.d.ts +0 -8
- package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.d.ts.map +0 -1
- package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.js +0 -1
- package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.d.ts +0 -10
- package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.d.ts.map +0 -1
- package/dist/styles/iframe-events/SelectDateAndTimeEvent.scss +0 -85
- package/src/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.tsx +0 -39
- package/src/styles/iframe-events/SelectDateAndTimeEvent.scss +0 -85
- /package/dist/styles/{iframe-events → iframe-customers-journey}/ActivitiesCard.scss +0 -0
- /package/dist/styles/{iframe-events → iframe-customers-journey}/ActivitiesSelectedCard.scss +0 -0
- /package/src/styles/{iframe-events → iframe-customers-journey}/ActivitiesCard.scss +0 -0
- /package/src/styles/{iframe-events → iframe-customers-journey}/ActivitiesSelectedCard.scss +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import { SelectorDateAndTimeList } from "./component/date-container/SelectorDateAndTimeList";
|
|
4
|
+
import { ReactComponent as CalendarSvg } from "../../assets/iframe/calendar.svg";
|
|
5
|
+
|
|
6
|
+
export const SelectDateAndTimeList = () => {
|
|
7
|
+
const [eventDayId, setEventDayId] = useState<number>();
|
|
8
|
+
const [eventTimeId, setEventTimeId] = useState<number>();
|
|
9
|
+
const { t } = useTranslation(["Design"]);
|
|
10
|
+
const dayList = [];
|
|
11
|
+
const timeList = [];
|
|
12
|
+
return (
|
|
13
|
+
<div>
|
|
14
|
+
<div className="date-time-icon-container">
|
|
15
|
+
<div className="icon-wrapper">
|
|
16
|
+
<CalendarSvg className="icon" />
|
|
17
|
+
</div>
|
|
18
|
+
<h5>{t("selectDate")}</h5>
|
|
19
|
+
</div>
|
|
20
|
+
<div>
|
|
21
|
+
<SelectorDateAndTimeList
|
|
22
|
+
title={t("selectDateAndTime")}
|
|
23
|
+
dateList={dayList}
|
|
24
|
+
selectedDateId={eventDayId}
|
|
25
|
+
onSelectDate={setEventDayId}
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
<SelectorDateAndTimeList
|
|
30
|
+
title={t("selectYourTime")}
|
|
31
|
+
isTimeContainer
|
|
32
|
+
dateList={timeList}
|
|
33
|
+
selectedDateId={eventTimeId}
|
|
34
|
+
onSelectDate={setEventTimeId}
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import { SelectorDateAndTimeList } from "./component/date-container/SelectorDateAndTimeList";
|
|
4
|
+
import { viewType } from "../data-time-view-selector/constants";
|
|
5
|
+
import { ReactComponent as CalendarSvg } from "../../assets/iframe/calendar.svg";
|
|
6
|
+
|
|
7
|
+
type SelectDateOrTimeListProps = {
|
|
8
|
+
view: viewType.DATE | viewType.TIME;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const SelectDateOrTimeList = ({ view }: SelectDateOrTimeListProps) => {
|
|
12
|
+
const [dateId, setDateId] = useState<number>();
|
|
13
|
+
const { t } = useTranslation("Design");
|
|
14
|
+
const dayList = [];
|
|
15
|
+
const timeList = [];
|
|
16
|
+
const isTimeSelector = view === viewType.TIME;
|
|
17
|
+
const listTitle = isTimeSelector ? t("selectorTime") : t("selectDate");
|
|
18
|
+
const dateList = isTimeSelector ? timeList : dayList;
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div>
|
|
22
|
+
{!isTimeSelector && (
|
|
23
|
+
<div className="date-time-icon-container">
|
|
24
|
+
<div className="icon-wrapper">
|
|
25
|
+
<CalendarSvg className="icon" />
|
|
26
|
+
</div>
|
|
27
|
+
<h5>{t("selectDate")}</h5>
|
|
28
|
+
</div>
|
|
29
|
+
)}
|
|
30
|
+
<div>
|
|
31
|
+
<SelectorDateAndTimeList
|
|
32
|
+
title={listTitle}
|
|
33
|
+
dateList={dateList}
|
|
34
|
+
isTimeContainer={isTimeSelector}
|
|
35
|
+
selectedDateId={dateId}
|
|
36
|
+
onSelectDate={setDateId}
|
|
37
|
+
isOnlyTimeContainer={isTimeSelector}
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
+
import { Logo } from "../../../../logo";
|
|
3
4
|
import { ReactComponent as LimitedSvg } from "../../../../assets/iframe/dateInfo/limited.svg";
|
|
4
5
|
import { ReactComponent as AvailableSvg } from "../../../../assets/iframe/dateInfo/available.svg";
|
|
5
6
|
import { ReactComponent as SoldOutSvg } from "../../../../assets/iframe/dateInfo/soldOut.svg";
|
|
6
|
-
import {
|
|
7
|
+
import { infoLogoType } from "../../constants";
|
|
7
8
|
|
|
8
|
-
export type
|
|
9
|
+
export type DateAndTimeProps = {
|
|
9
10
|
date: any;
|
|
10
11
|
selected: boolean;
|
|
11
|
-
|
|
12
|
+
onSelectDate?: (id: number) => void;
|
|
13
|
+
isTimeContainer?: boolean;
|
|
14
|
+
isOnlyTimeContainer?: boolean;
|
|
12
15
|
};
|
|
13
16
|
|
|
14
|
-
export const
|
|
17
|
+
export const DateTimeSelector = ({
|
|
15
18
|
date,
|
|
19
|
+
isTimeContainer,
|
|
16
20
|
selected,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
onSelectDate,
|
|
22
|
+
isOnlyTimeContainer,
|
|
23
|
+
}: DateAndTimeProps) => {
|
|
24
|
+
const { title, disabled, info, description, id, time } = date;
|
|
20
25
|
|
|
21
26
|
const onClick = () => {
|
|
22
27
|
if (disabled) return;
|
|
23
|
-
|
|
28
|
+
onSelectDate(id);
|
|
24
29
|
};
|
|
25
30
|
|
|
26
31
|
const infoLogo = useMemo(() => {
|
|
27
|
-
if (info?.logo ===
|
|
32
|
+
if (info?.logo === infoLogoType.LIMIT) {
|
|
28
33
|
return <LimitedSvg />;
|
|
29
34
|
}
|
|
30
|
-
if (info?.logo ===
|
|
35
|
+
if (info?.logo === infoLogoType.AVAILABLE) {
|
|
31
36
|
return <AvailableSvg />;
|
|
32
37
|
}
|
|
33
|
-
if (info?.logo ===
|
|
38
|
+
if (info?.logo === infoLogoType.SOLD_OUT) {
|
|
34
39
|
return <SoldOutSvg />;
|
|
35
40
|
}
|
|
36
41
|
return null;
|
|
@@ -42,16 +47,17 @@ export const SelectDateAndTimeEvent = ({
|
|
|
42
47
|
onClick={onClick}
|
|
43
48
|
onKeyPress={onClick}
|
|
44
49
|
className={clsx(
|
|
45
|
-
"
|
|
50
|
+
"date-set",
|
|
46
51
|
disabled && "disabled",
|
|
47
52
|
selected && "selected",
|
|
48
|
-
|
|
53
|
+
isTimeContainer && "time-container",
|
|
54
|
+
isOnlyTimeContainer && "only-time-container"
|
|
49
55
|
)}
|
|
50
56
|
tabIndex={0}
|
|
51
57
|
>
|
|
52
58
|
{title}
|
|
53
59
|
{time && <div className="time">{time}</div>}
|
|
54
|
-
{
|
|
60
|
+
{description && (
|
|
55
61
|
<div
|
|
56
62
|
className={clsx(
|
|
57
63
|
"descriptions",
|
|
@@ -59,13 +65,13 @@ export const SelectDateAndTimeEvent = ({
|
|
|
59
65
|
disabled && "disabled"
|
|
60
66
|
)}
|
|
61
67
|
>
|
|
62
|
-
{
|
|
68
|
+
{description}
|
|
63
69
|
</div>
|
|
64
70
|
)}
|
|
65
71
|
{info && (
|
|
66
72
|
<div className="info">
|
|
67
73
|
{info.logo && <Logo className="logo" logo={infoLogo} />}
|
|
68
|
-
<div>{info.
|
|
74
|
+
<div>{info.description}</div>
|
|
69
75
|
</div>
|
|
70
76
|
)}
|
|
71
77
|
</div>
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { Meta } from "@storybook/react";
|
|
3
|
-
import {
|
|
3
|
+
import { SelectorDateAndTimeList } from "./SelectorDateAndTimeList";
|
|
4
4
|
import { Form } from "react-bootstrap";
|
|
5
|
+
import { ReactComponent as CalendarSvg } from "../../../../assets/iframe/calendar.svg";
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
title: "Iframe/Date Selector",
|
|
8
|
-
component:
|
|
9
|
+
component: SelectorDateAndTimeList,
|
|
9
10
|
} as Meta;
|
|
10
11
|
|
|
11
12
|
export function Default() {
|
|
12
|
-
const [
|
|
13
|
-
const [
|
|
14
|
-
const [
|
|
13
|
+
const [dayId, setDayId] = useState<number>();
|
|
14
|
+
const [timeId, setTimeId] = useState<number>();
|
|
15
|
+
const [timeWithInfoId, setTimeWithInfoId] = useState<number>();
|
|
15
16
|
|
|
16
17
|
const dayList = [
|
|
17
18
|
{
|
|
@@ -23,22 +24,22 @@ export function Default() {
|
|
|
23
24
|
id: 2,
|
|
24
25
|
title: "TODAY",
|
|
25
26
|
disabled: true,
|
|
26
|
-
|
|
27
|
+
description: "13th March",
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
id: 3,
|
|
30
31
|
title: "TOMORROW",
|
|
31
|
-
|
|
32
|
+
description: "13th March",
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
id: 4,
|
|
35
36
|
title: "TOMORROW",
|
|
36
|
-
|
|
37
|
+
description: "13th March",
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
id: 5,
|
|
40
41
|
title: "TOMORROW",
|
|
41
|
-
|
|
42
|
+
description: "13th March",
|
|
42
43
|
},
|
|
43
44
|
];
|
|
44
45
|
|
|
@@ -46,9 +47,9 @@ export function Default() {
|
|
|
46
47
|
{
|
|
47
48
|
id: 1,
|
|
48
49
|
title: "TODAY",
|
|
49
|
-
|
|
50
|
+
description: "13th March",
|
|
50
51
|
info: {
|
|
51
|
-
|
|
52
|
+
description: "test",
|
|
52
53
|
logo: "limit",
|
|
53
54
|
}
|
|
54
55
|
},
|
|
@@ -56,27 +57,27 @@ export function Default() {
|
|
|
56
57
|
id: 2,
|
|
57
58
|
title: "TODAY",
|
|
58
59
|
disabled: true,
|
|
59
|
-
|
|
60
|
+
description: "13th March",
|
|
60
61
|
info: {
|
|
61
|
-
|
|
62
|
+
description: "test",
|
|
62
63
|
logo: "soldOut",
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
67
|
id: 3,
|
|
67
68
|
title: "TOMORROW",
|
|
68
|
-
|
|
69
|
+
description: "13th March",
|
|
69
70
|
info: {
|
|
70
|
-
|
|
71
|
+
description: "test",
|
|
71
72
|
logo: "limit",
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
76
|
id: 4,
|
|
76
77
|
title: "TOMORROW",
|
|
77
|
-
|
|
78
|
+
description: "13th March",
|
|
78
79
|
info: {
|
|
79
|
-
|
|
80
|
+
description: "test",
|
|
80
81
|
logo: "available",
|
|
81
82
|
}
|
|
82
83
|
},
|
|
@@ -85,7 +86,7 @@ export function Default() {
|
|
|
85
86
|
title: "TOMORROW",
|
|
86
87
|
descriptions: "13th March",
|
|
87
88
|
info: {
|
|
88
|
-
|
|
89
|
+
description: "test",
|
|
89
90
|
logo: "available",
|
|
90
91
|
}
|
|
91
92
|
},
|
|
@@ -124,32 +125,37 @@ export function Default() {
|
|
|
124
125
|
];
|
|
125
126
|
|
|
126
127
|
return (
|
|
127
|
-
<div
|
|
128
|
-
|
|
128
|
+
<div>
|
|
129
|
+
<div className="date-time-icon-container">
|
|
130
|
+
<div className="icon-wrapper">
|
|
131
|
+
<CalendarSvg className='icon' />
|
|
132
|
+
</div>
|
|
133
|
+
<h5>{"Select Date"}</h5>
|
|
134
|
+
</div>
|
|
135
|
+
<Form>
|
|
129
136
|
<Form.Group>
|
|
130
|
-
<
|
|
137
|
+
<SelectorDateAndTimeList
|
|
131
138
|
title="Select Date & Time"
|
|
132
139
|
dateList={dayList}
|
|
133
|
-
|
|
134
|
-
|
|
140
|
+
selectedDateId={dayId}
|
|
141
|
+
onSelectDate={setDayId}
|
|
135
142
|
/>
|
|
136
143
|
</Form.Group>
|
|
137
144
|
<Form.Group>
|
|
138
|
-
<
|
|
145
|
+
<SelectorDateAndTimeList
|
|
139
146
|
title="Select your Date with Info"
|
|
140
147
|
dateList={dayListWithInfo}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
onSelectProductSet={setEventTimeWithInfoId}
|
|
148
|
+
selectedDateId={timeWithInfoId}
|
|
149
|
+
onSelectDate={setTimeWithInfoId}
|
|
144
150
|
/>
|
|
145
151
|
</Form.Group>
|
|
146
152
|
<Form.Group>
|
|
147
|
-
<
|
|
153
|
+
<SelectorDateAndTimeList
|
|
148
154
|
title="Select your Time"
|
|
149
155
|
dateList={timeList}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
156
|
+
isTimeContainer
|
|
157
|
+
selectedDateId={timeId}
|
|
158
|
+
onSelectDate={setTimeId}
|
|
153
159
|
/>
|
|
154
160
|
</Form.Group>
|
|
155
161
|
</Form>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { DateTimeSelector } from "./DateTimeSelector";
|
|
4
|
+
|
|
5
|
+
export type SelectorDateAndTimeListProps = {
|
|
6
|
+
selectedDateId?: number;
|
|
7
|
+
onSelectDate?: (id: number) => void;
|
|
8
|
+
dateList: any[];
|
|
9
|
+
title?: string;
|
|
10
|
+
isTimeContainer?: boolean;
|
|
11
|
+
isOnlyTimeContainer?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const SelectorDateAndTimeList = ({
|
|
15
|
+
selectedDateId,
|
|
16
|
+
onSelectDate,
|
|
17
|
+
dateList,
|
|
18
|
+
title,
|
|
19
|
+
isTimeContainer,
|
|
20
|
+
isOnlyTimeContainer,
|
|
21
|
+
}: SelectorDateAndTimeListProps) => {
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<h5>{title}</h5>
|
|
25
|
+
<div className={clsx("date-list", isTimeContainer && "time-container")}>
|
|
26
|
+
{dateList.map((date) => {
|
|
27
|
+
return (
|
|
28
|
+
<DateTimeSelector
|
|
29
|
+
key={date.id}
|
|
30
|
+
date={date}
|
|
31
|
+
isTimeContainer={isTimeContainer}
|
|
32
|
+
selected={selectedDateId === date.id}
|
|
33
|
+
onSelectDate={onSelectDate}
|
|
34
|
+
isOnlyTimeContainer={isOnlyTimeContainer}
|
|
35
|
+
/>
|
|
36
|
+
);
|
|
37
|
+
})}
|
|
38
|
+
</div>
|
|
39
|
+
</>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { DateTimeSelector } from "./component/date-container/DateTimeSelector";
|
|
2
|
+
export { SelectDateAndTimeList } from "./SelectDateAndTimeList";
|
|
3
|
+
export { SelectDateOrTimeList } from "./SelectDateOrTimeList";
|
|
4
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
.date-time-selector-container {
|
|
2
|
+
background-color: $snippet-page-background-color;
|
|
3
|
+
height: 35rem;
|
|
4
|
+
padding: 1rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.date-time-icon-container {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: end;
|
|
10
|
+
position: relative;
|
|
11
|
+
top: 2rem;
|
|
12
|
+
|
|
13
|
+
.icon-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
align-items: center;
|
|
17
|
+
width: 1rem;
|
|
18
|
+
height: 1.1rem;
|
|
19
|
+
|
|
20
|
+
.icon {
|
|
21
|
+
fill: $snippet-calendar-active-button-background-color;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h5 {
|
|
27
|
+
font-size: 1rem;
|
|
28
|
+
margin-left: .5rem;
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.date-list {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: start;
|
|
37
|
+
grid-gap: 1rem;
|
|
38
|
+
margin: 1rem 0;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
|
|
41
|
+
.date-set {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
font-size: .82rem;
|
|
47
|
+
line-height: 1.3rem;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
background-color: $snippet-calendar-button-background-color;
|
|
50
|
+
border-radius: .4rem;
|
|
51
|
+
text-align: center;
|
|
52
|
+
border: 2px solid $snippet-calendar-button-border-color;
|
|
53
|
+
color: $snippet-calendar-button-font-color;
|
|
54
|
+
flex-grow: 1;
|
|
55
|
+
transition: $color-transition;
|
|
56
|
+
min-width: 6rem;
|
|
57
|
+
max-width: 7.25rem;
|
|
58
|
+
min-height: 3.3rem;
|
|
59
|
+
max-height: 8.375rem;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
&.disabled {
|
|
63
|
+
border: 2px solid $snippet-calendar-disabled-button-border-color;
|
|
64
|
+
background-color: $snippet-calendar-disabled-button-background-color;
|
|
65
|
+
color: $snippet-calendar-disabled-button-font-color;
|
|
66
|
+
|
|
67
|
+
.descriptions {
|
|
68
|
+
color: $snippet-calendar-disabled-button-font-color;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.selected {
|
|
73
|
+
border: 2px solid $snippet-calendar-active-button-border-color;
|
|
74
|
+
background-color: $snippet-calendar-active-button-background-color;
|
|
75
|
+
color: $snippet-calendar-active-button-font-color;
|
|
76
|
+
transition: $color-transition;
|
|
77
|
+
|
|
78
|
+
.descriptions {
|
|
79
|
+
color: $snippet-calendar-active-button-font-color;
|
|
80
|
+
background-color: $snippet-calendar-active-button-background-color;
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
transition: $color-transition;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.time {
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.time-container {
|
|
91
|
+
min-width: 4.75rem;
|
|
92
|
+
max-width: 4.75rem;
|
|
93
|
+
min-height: 2.75rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.only-time-container {
|
|
97
|
+
min-width: 5.3rem;
|
|
98
|
+
max-width: 5.3rem;
|
|
99
|
+
min-height: 2.75rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.time {
|
|
104
|
+
font-size: .875rem;
|
|
105
|
+
font-weight: 300;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.descriptions {
|
|
109
|
+
font-size: .7rem;
|
|
110
|
+
line-height: 1.03rem;
|
|
111
|
+
font-weight: 300;
|
|
112
|
+
color: $snippet-calendar-button-font-color;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.info {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
font-weight: 300;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
|
|
121
|
+
.logo {
|
|
122
|
+
width: .5rem;
|
|
123
|
+
margin-right: .5rem;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
package/src/styles/packages.scss
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type SelectDateAndTimeEventProps = {
|
|
3
|
-
date: any;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
onSelectProductSet?: (id: number) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const SelectDateAndTimeEvent: ({ date, selected, onSelectProductSet, }: SelectDateAndTimeEventProps) => JSX.Element;
|
|
8
|
-
//# sourceMappingURL=SelectDateAndTimeEvent.d.ts.map
|
package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDateAndTimeEvent.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.tsx"],"names":[],"mappings":";AAOA,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,4CAIhC,2BAA2B,gBAuD7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),l=e(t),n=require("../../../../logo/Logo.js"),o=e(require("clsx")),a=require("../../../../assets/iframe/dateInfo/limited.svg.js"),s=require("../../../../assets/iframe/dateInfo/available.svg.js"),i=require("../../../../assets/iframe/dateInfo/soldOut.svg.js");exports.SelectDateAndTimeEvent=function(e){var r=e.date,c=e.selected,d=e.onSelectProductSet,u=r.title,m=r.disabled,v=r.info,f=r.descriptions,g=r.id,p=r.time,E=function(){m||d(g)},b=t.useMemo((function(){return"limit"===(null==v?void 0:v.logo)?l.createElement(a.ReactComponent,null):"available"===(null==v?void 0:v.logo)?l.createElement(s.ReactComponent,null):"soldOut"===(null==v?void 0:v.logo)?l.createElement(i.ReactComponent,null):null}),[v]);return l.createElement("div",{role:"button",onClick:E,onKeyPress:E,className:o("event-date-set",m&&"disabled",c&&"selected",p&&"time-container"),tabIndex:0},u,p&&l.createElement("div",{className:"time"},p),f&&l.createElement("div",{className:o("descriptions",c&&"selected",m&&"disabled")},f),v&&l.createElement("div",{className:"info"},v.logo&&l.createElement(n.default,{className:"logo",logo:b}),l.createElement("div",null,v.descriptions)))};
|
package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type EventProductSetsProps = {
|
|
3
|
-
selectedProductSetId?: number;
|
|
4
|
-
onSelectProductSet?: (productSetId: number) => void;
|
|
5
|
-
dateList: any[];
|
|
6
|
-
title?: string;
|
|
7
|
-
timeContainer?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const SelectDateAndTimeEventList: ({ selectedProductSetId, onSelectProductSet, dateList, title, timeContainer, }: EventProductSetsProps) => JSX.Element;
|
|
10
|
-
//# sourceMappingURL=SelectDateAndTimeEventList.d.ts.map
|
package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDateAndTimeEventList.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,0BAA0B,kFAMpC,qBAAqB,gBAoBvB,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
.event-date-list {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: start;
|
|
5
|
-
grid-gap: 1rem;
|
|
6
|
-
flex-wrap: wrap;
|
|
7
|
-
|
|
8
|
-
.event-date-set {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
font-size: .82rem;
|
|
14
|
-
line-height: 1.3rem;
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
background-color: $snippet-product-set-background-color;
|
|
17
|
-
border-radius: .2rem;
|
|
18
|
-
text-align: center;
|
|
19
|
-
border: 2px solid $snippet-product-set-border-color;
|
|
20
|
-
color: $snippet-product-set-font-color;
|
|
21
|
-
flex-grow: 1;
|
|
22
|
-
transition: $color-transition;
|
|
23
|
-
min-width: 6rem;
|
|
24
|
-
max-width: 7.25rem;
|
|
25
|
-
min-height: 2.75rem;
|
|
26
|
-
max-height: 8.375rem;
|
|
27
|
-
|
|
28
|
-
&.disabled {
|
|
29
|
-
border: 2px solid $snippet-product-set-background-color;
|
|
30
|
-
background-color: $snippet-product-set-background-color;
|
|
31
|
-
color: $snippet-product-set-font-color;
|
|
32
|
-
opacity: 0.5;
|
|
33
|
-
|
|
34
|
-
.descriptions {
|
|
35
|
-
color: $snippet-product-set-font-color;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.selected {
|
|
40
|
-
border: 2px solid $snippet-active-product-set-border-color;
|
|
41
|
-
background-color: $snippet-active-product-set-border-color;
|
|
42
|
-
color: white;
|
|
43
|
-
transition: $color-transition;
|
|
44
|
-
|
|
45
|
-
.descriptions {
|
|
46
|
-
color: white;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.time {
|
|
51
|
-
font-weight: 600;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&.time-container {
|
|
56
|
-
min-width: 4.175rem;
|
|
57
|
-
max-width: 4.175rem;
|
|
58
|
-
height: 2.75rem;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.time {
|
|
63
|
-
font-size: .875rem;
|
|
64
|
-
font-weight: 300;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.descriptions {
|
|
68
|
-
font-size: .7rem;
|
|
69
|
-
line-height: 1.03rem;
|
|
70
|
-
font-weight: 300;
|
|
71
|
-
color: #0E8CE2;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.info {
|
|
75
|
-
display: flex;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
font-weight: 300;
|
|
78
|
-
flex-direction: row;
|
|
79
|
-
|
|
80
|
-
.logo {
|
|
81
|
-
width: .5rem;
|
|
82
|
-
margin-right: .5rem;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|