@licklist/design 0.44.485-dev.86 → 0.44.485-dev.88

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.
Files changed (120) hide show
  1. package/dist/date-time-button/DateTimeButton.d.ts +12 -0
  2. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -0
  3. package/dist/date-time-button/DateTimeButton.js +1 -0
  4. package/dist/date-time-button/index.d.ts +2 -0
  5. package/dist/date-time-button/index.d.ts.map +1 -0
  6. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +12 -0
  7. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +1 -0
  8. package/dist/iframe/activity-cards/activity-card/ActivityCard.js +1 -0
  9. package/dist/iframe/activity-cards/index.d.ts +3 -0
  10. package/dist/iframe/activity-cards/index.d.ts.map +1 -0
  11. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +12 -0
  12. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +1 -0
  13. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +1 -0
  14. package/dist/iframe/index.d.ts +2 -3
  15. package/dist/iframe/index.d.ts.map +1 -1
  16. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +7 -6
  17. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
  18. package/dist/iframe/order-process/components/NavigationSteps/index.d.ts +1 -1
  19. package/dist/iframe/order-process/components/NavigationSteps/index.d.ts.map +1 -1
  20. package/dist/iframe/order-process/index.d.ts +1 -2
  21. package/dist/iframe/order-process/index.d.ts.map +1 -1
  22. package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
  23. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +2 -2
  24. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  25. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  26. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  27. package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
  28. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +1 -1
  32. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  33. package/dist/styles/iframe-customers-journey/ActivitiesCard.scss +17 -35
  34. package/dist/styles/iframe-customers-journey/ActivitiesSelectedCard.scss +48 -43
  35. package/dist/styles/iframe-customers-journey/DateTimeButton.scss +84 -0
  36. package/dist/styles/iframe-customers-journey/_index.scss +1 -1
  37. package/dist/types/iframe.d.ts +1 -1
  38. package/dist/types/iframe.d.ts.map +1 -1
  39. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  40. package/package.json +1 -1
  41. package/src/date-time-button/DateTimeButton.stories.tsx +68 -0
  42. package/src/date-time-button/DateTimeButton.tsx +106 -0
  43. package/src/date-time-button/index.ts +1 -0
  44. package/src/iframe/activity-cards/activity-card/ActivityCard.stories.tsx +52 -0
  45. package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +38 -0
  46. package/src/iframe/activity-cards/index.ts +2 -0
  47. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +52 -0
  48. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +49 -0
  49. package/src/iframe/index.ts +2 -7
  50. package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +8 -6
  51. package/src/iframe/order-process/components/NavigationSteps/index.ts +1 -1
  52. package/src/iframe/order-process/index.ts +1 -2
  53. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +4 -4
  54. package/src/index.ts +1 -0
  55. package/src/styles/iframe-customers-journey/ActivitiesCard.scss +17 -35
  56. package/src/styles/iframe-customers-journey/ActivitiesSelectedCard.scss +48 -43
  57. package/src/styles/iframe-customers-journey/DateTimeButton.scss +84 -0
  58. package/src/styles/iframe-customers-journey/_index.scss +1 -1
  59. package/src/types/iframe.ts +1 -1
  60. package/src/zone/form/components/ZoneRecurrencesControl.tsx +1 -1
  61. package/dist/assets/iframe/dateInfo/available.svg.js +0 -1
  62. package/dist/assets/iframe/dateInfo/limited.svg.js +0 -1
  63. package/dist/assets/iframe/dateInfo/soldOut.svg.js +0 -1
  64. package/dist/iframe/activities-card-page/components/activities-card/ActivitiesCard.d.ts +0 -8
  65. package/dist/iframe/activities-card-page/components/activities-card/ActivitiesCard.d.ts.map +0 -1
  66. package/dist/iframe/activities-card-page/components/activities-card/ActivitiesCard.js +0 -1
  67. package/dist/iframe/activities-card-page/components/activities-selected-card/ActivitiesSelectedCard.d.ts +0 -9
  68. package/dist/iframe/activities-card-page/components/activities-selected-card/ActivitiesSelectedCard.d.ts.map +0 -1
  69. package/dist/iframe/activities-card-page/components/activities-selected-card/ActivitiesSelectedCard.js +0 -1
  70. package/dist/iframe/activities-card-page/index.d.ts +0 -3
  71. package/dist/iframe/activities-card-page/index.d.ts.map +0 -1
  72. package/dist/iframe/data-time-view-selector/DateAndTimeAndCalendar.d.ts +0 -8
  73. package/dist/iframe/data-time-view-selector/DateAndTimeAndCalendar.d.ts.map +0 -1
  74. package/dist/iframe/data-time-view-selector/constants.d.ts +0 -7
  75. package/dist/iframe/data-time-view-selector/constants.d.ts.map +0 -1
  76. package/dist/iframe/data-time-view-selector/constants.js +0 -1
  77. package/dist/iframe/data-time-view-selector/index.d.ts +0 -2
  78. package/dist/iframe/data-time-view-selector/index.d.ts.map +0 -1
  79. package/dist/iframe/order-process/components/Category/Category.d.ts +0 -13
  80. package/dist/iframe/order-process/components/Category/Category.d.ts.map +0 -1
  81. package/dist/iframe/order-process/components/Category/Category.js +0 -1
  82. package/dist/iframe/order-process/components/Category/index.d.ts +0 -2
  83. package/dist/iframe/order-process/components/Category/index.d.ts.map +0 -1
  84. package/dist/iframe/select-date-time/SelectDateAndTimeList.d.ts +0 -3
  85. package/dist/iframe/select-date-time/SelectDateAndTimeList.d.ts.map +0 -1
  86. package/dist/iframe/select-date-time/SelectDateAndTimeList.js +0 -1
  87. package/dist/iframe/select-date-time/SelectDateOrTimeList.d.ts +0 -8
  88. package/dist/iframe/select-date-time/SelectDateOrTimeList.d.ts.map +0 -1
  89. package/dist/iframe/select-date-time/SelectDateOrTimeList.js +0 -1
  90. package/dist/iframe/select-date-time/component/date-container/DateTimeSelector.d.ts +0 -10
  91. package/dist/iframe/select-date-time/component/date-container/DateTimeSelector.d.ts.map +0 -1
  92. package/dist/iframe/select-date-time/component/date-container/DateTimeSelector.js +0 -1
  93. package/dist/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.d.ts +0 -11
  94. package/dist/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.d.ts.map +0 -1
  95. package/dist/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.js +0 -1
  96. package/dist/iframe/select-date-time/constants.d.ts +0 -6
  97. package/dist/iframe/select-date-time/constants.d.ts.map +0 -1
  98. package/dist/iframe/select-date-time/constants.js +0 -1
  99. package/dist/iframe/select-date-time/index.d.ts +0 -4
  100. package/dist/iframe/select-date-time/index.d.ts.map +0 -1
  101. package/dist/styles/iframe-customers-journey/SelectDateAndTime.scss +0 -126
  102. package/src/iframe/activities-card-page/components/activities-card/ActivitiesCard.tsx +0 -68
  103. package/src/iframe/activities-card-page/components/activities-card/ActivitiesCardList.stories.tsx +0 -120
  104. package/src/iframe/activities-card-page/components/activities-selected-card/ActivitiesSelectedCard.stories.tsx +0 -67
  105. package/src/iframe/activities-card-page/components/activities-selected-card/ActivitiesSelectedCard.tsx +0 -57
  106. package/src/iframe/activities-card-page/index.ts +0 -2
  107. package/src/iframe/data-time-view-selector/DateAndTimeAndCalendar.tsx +0 -37
  108. package/src/iframe/data-time-view-selector/constants.ts +0 -6
  109. package/src/iframe/data-time-view-selector/index.ts +0 -1
  110. package/src/iframe/order-process/components/Category/Category.stories.tsx +0 -118
  111. package/src/iframe/order-process/components/Category/Category.tsx +0 -51
  112. package/src/iframe/order-process/components/Category/index.ts +0 -1
  113. package/src/iframe/select-date-time/SelectDateAndTimeList.tsx +0 -39
  114. package/src/iframe/select-date-time/SelectDateOrTimeList.tsx +0 -42
  115. package/src/iframe/select-date-time/component/date-container/DateTimeSelector.tsx +0 -79
  116. package/src/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.stories.tsx +0 -164
  117. package/src/iframe/select-date-time/component/date-container/SelectorDateAndTimeList.tsx +0 -41
  118. package/src/iframe/select-date-time/constants.ts +0 -5
  119. package/src/iframe/select-date-time/index.ts +0 -4
  120. package/src/styles/iframe-customers-journey/SelectDateAndTime.scss +0 -126
@@ -1,126 +0,0 @@
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
- }
@@ -1,68 +0,0 @@
1
- import React from "react";
2
- import clsx from "clsx";
3
- import { useTranslation } from "react-i18next";
4
- import { useIntl } from "react-intl";
5
-
6
- export interface ActivitiesCardProps {
7
- card: any;
8
- onSelectCardId?: (productSetId: number) => void;
9
- isActive: boolean;
10
- }
11
-
12
- export const ActivitiesCard = ({
13
- card,
14
- onSelectCardId,
15
- isActive,
16
- }: ActivitiesCardProps) => {
17
- const { formatNumber } = useIntl();
18
- const { t } = useTranslation("Design");
19
- const { imageSrc, title, time, cost } = card;
20
-
21
- const onClick = () => {
22
- onSelectCardId(card);
23
- };
24
-
25
- return (
26
- <div
27
- id={card.id}
28
- role="button"
29
- className={clsx("iframe-activities-card", isActive && "active")}
30
- onClick={onClick}
31
- onKeyPress={onClick}
32
- tabIndex={0}
33
- >
34
- {imageSrc && (
35
- <div
36
- className="card-image"
37
- style={{
38
- backgroundImage: `url("${imageSrc}")`,
39
- }}
40
- />
41
- )}
42
- <div className={clsx("d-flex", "flex-column", !imageSrc && "no-image")}>
43
- <div className="title">{title}</div>
44
-
45
- {time && (
46
- <div className="cost">
47
- <div className="d-flex align-items-center">
48
- <p className="m-0">
49
- {time} {t("Mins")}
50
- </p>
51
- </div>
52
- </div>
53
- )}
54
-
55
- {typeof cost === "number" && cost && (
56
- <div className="label">
57
- <div className="d-flex align-items-center mb-3">
58
- <p className="m-0">
59
- {t("from")}{" "}
60
- {formatNumber(cost, { style: "currency", currency: "GBP" })}
61
- </p>
62
- </div>
63
- </div>
64
- )}
65
- </div>
66
- </div>
67
- );
68
- };
@@ -1,120 +0,0 @@
1
- import React, { useState } from "react";
2
- import { useTranslation } from "react-i18next";
3
- import { Meta } from "@storybook/react";
4
- import { ActivitiesCard } from "./ActivitiesCard";
5
-
6
-
7
- export default {
8
- title: "Iframe/Activities Card/ActivitiesCardList",
9
- component: Default,
10
- } as Meta;
11
-
12
- const currentCard = [
13
- {
14
- id: 1,
15
- imageSrc:
16
- "https://images.unsplash.com/photo-1656660371960-7fa3321af896?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
17
- goToDetails: true,
18
- title: "TEST CARD",
19
- time: "45",
20
- cost: 200,
21
- },
22
- {
23
- id: 3,
24
- imageSrc:
25
- "https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=873&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 873w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1173&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1173w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1473&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1473w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1746&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1746w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1773&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1773w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2073&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2073w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2346&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2346w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2373&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2373w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2673&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2673w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2946&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2946w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2973&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2973w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=3008&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3008w",
26
- goToDetails: true,
27
- title: "Clay Pigeons & Axe NEW CARD",
28
- time: "45",
29
- cost: 200,
30
- },
31
- {
32
- id: 2,
33
- imageSrc:
34
- "https://images.unsplash.com/photo-1656660371960-7fa3321af896?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
35
- goToDetails: false,
36
- title: "TEST CARD",
37
- time: "45",
38
- cost: 200,
39
- },
40
- {
41
- id: 4,
42
- imageSrc:
43
- "https://images.unsplash.com/photo-1656660371960-7fa3321af896?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
44
- goToDetails: true,
45
- title: "Clay Pigeons & Axe NEW CARD",
46
- time: "45",
47
- cost: 200,
48
- },
49
- {
50
- id: 5,
51
- imageSrc:
52
- "https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=435&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 435w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=735&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 735w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 870w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=1035&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1035w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=1335&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1335w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1470w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=1635&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1635w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=1935&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1935w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2070w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=2235&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2235w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=2535&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2535w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2670w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=2835&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2835w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=3135&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3135w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3270w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=3435&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3435w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=3735&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3735w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3870w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=4035&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4035w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=4335&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4335w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=4470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4470w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=4635&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4635w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=4935&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4935w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=5070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5070w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=5235&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5235w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=5535&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5535w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=5670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5670w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=5835&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5835w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=6135&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 6135w, https://images.unsplash.com/photo-1605496036006-fa36378ca4ab?q=80&w=6240&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 6240w",
53
- goToDetails: true,
54
- title: "Clay Pigeons & Axe NEW CARD",
55
- time: "45",
56
- cost: 200,
57
- },
58
- {
59
- id: 6,
60
- imageSrc:
61
- "https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 774w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=1074&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1074w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=1374&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1374w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=1548&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1548w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=1674&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1674w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1974w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=2148&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2148w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=2274&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2274w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=2574&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2574w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=2748&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2748w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=2874&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2874w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=3174&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3174w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=3348&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3348w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=3474&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3474w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=3774&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3774w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=3948&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3948w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=4074&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4074w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=4374&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4374w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=4548&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4548w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=4674&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4674w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=4974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 4974w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=5148&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5148w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=5274&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5274w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=5574&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5574w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=5748&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5748w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=5874&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 5874w, https://plus.unsplash.com/premium_photo-1668383210938-0183489b5f8a?q=80&w=6000&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 6000w",
62
- goToDetails: true,
63
- title: "Clay Pigeons & Axe NEW CARD",
64
- time: "45",
65
- cost: 200,
66
- },
67
- {
68
- id: 9,
69
- imageSrc:
70
- "https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=873&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 873w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1173&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1173w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1473&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1473w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1746&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1746w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=1773&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 1773w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2073&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2073w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2346&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2346w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2373&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2373w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2673&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2673w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2946&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2946w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=2973&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 2973w, https://images.unsplash.com/photo-1587691592099-24045742c181?q=80&w=3008&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D 3008w",
71
- goToDetails: true,
72
- title: "Clay Pigeons & Axe NEW CARD",
73
- time: "45",
74
- cost: 200,
75
- },
76
- ];
77
-
78
-
79
- export function Default(props) {
80
-
81
- const { t } = useTranslation("Design");
82
-
83
- const [selectedCard, onSelectCardId] = useState<any | null>(null);
84
-
85
- const onSelectCard = (item: number) => {
86
- onSelectCardId(item);
87
- };
88
-
89
- return (
90
- <div>
91
- <h5 className="d-flex align-items-center justify-content-start w-100">
92
- {t("selectActivities")}
93
- </h5>
94
- <div
95
- style={{
96
- display: "grid",
97
- gridTemplateColumns: "repeat(auto-fill, 15rem)",
98
- gridGap: "1rem",
99
- justifyContent: "center",
100
- padding: "1rem",
101
- }}
102
- >
103
- {currentCard.map((card) => (
104
- <ActivitiesCard
105
- key={card.id}
106
- card={card}
107
- isActive={selectedCard?.id === card.id}
108
- onSelectCardId={onSelectCard}
109
- />
110
- ))}
111
- </div>
112
- </div>
113
- );
114
- }
115
-
116
- Default.args = {
117
- isLoading: false,
118
- data: currentCard,
119
- showBottomBlock: true,
120
- };
@@ -1,67 +0,0 @@
1
- import React from "react";
2
- import { Meta, Story } from "@storybook/react";
3
- import { ActivitiesSelectedCard } from "./ActivitiesSelectedCard";
4
-
5
- export default {
6
- title: "Iframe/Activities Selected Card/ActivitiesSelectedCard",
7
- component: ActivitiesSelectedCard,
8
- } as Meta;
9
-
10
- export type ActiveCard = {
11
- id: number;
12
- imageSrc: string;
13
- goToDetails: boolean;
14
- title: string;
15
- time: number;
16
- cost: number;
17
- };
18
-
19
- export const Default: Story<any> = () => {
20
- const currentCard = [
21
- {
22
- id: 1,
23
- imageSrc:
24
- "https://images.unsplash.com/photo-1656660371960-7fa3321af896?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
25
- title: "TEST CARD",
26
- time: "45",
27
- cost: 200,
28
- },
29
- {
30
- id: 3,
31
- imageSrc:
32
- "https://images.unsplash.com/photo-1656660371960-7fa3321af896?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
33
- title: "Clay Pigeons & Axe NEW CARD",
34
- time: "45",
35
- cost: 200,
36
- },
37
- {
38
- id: 2,
39
- imageSrc:
40
- "https://images.unsplash.com/photo-1656660371960-7fa3321af896?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
41
- title: "People Item / Title",
42
- time: "45",
43
- cost: 200,
44
- },
45
- ];
46
-
47
- return (
48
- <div
49
- style={{
50
- display: "flex",
51
- flexWrap: "wrap",
52
- flexDirection: "column",
53
- padding: "0 1rem",
54
- }}
55
- >
56
- {currentCard.map((card) => (
57
- <ActivitiesSelectedCard
58
- key={card.id}
59
- imageSrc={card.imageSrc}
60
- title={card.title}
61
- cost={card.cost}
62
- time={card.time}
63
- />
64
- ))}
65
- </div>
66
- );
67
- };
@@ -1,57 +0,0 @@
1
- import React from "react";
2
- import clsx from "clsx";
3
- import { useTranslation } from "react-i18next";
4
- import { useIntl } from "react-intl";
5
-
6
- export interface ActivitiesSelectedCardProps {
7
- imageSrc: string;
8
- title: string;
9
- time: string;
10
- cost: number;
11
- }
12
-
13
- export const ActivitiesSelectedCard = ({
14
- imageSrc,
15
- title,
16
- time,
17
- cost,
18
- }: ActivitiesSelectedCardProps) => {
19
- const { t } = useTranslation("Design");
20
- const { formatNumber } = useIntl();
21
-
22
- return (
23
- <div>
24
- <div className={clsx("selected-activities-card")}>
25
- <div className="description">
26
- <div className="title">{title}</div>
27
- {time && (
28
- <div>
29
- <p>
30
- {time} {t("Mins")}{" "}
31
- </p>
32
- </div>
33
- )}
34
-
35
- {typeof cost === "number" && cost && (
36
- <div>
37
- <p>
38
- {t("from")}{" "}
39
- {formatNumber(cost, { style: "currency", currency: "GBP" })}
40
- </p>
41
- </div>
42
- )}
43
- </div>
44
-
45
- {imageSrc && (
46
- <div className="image-container">
47
- <div
48
- className="image"
49
- style={{ backgroundImage: `url("${imageSrc}")` }}
50
- />
51
- </div>
52
- )}
53
- </div>
54
- <hr className="selected-activities-card-hr" />
55
- </div>
56
- );
57
- };
@@ -1,2 +0,0 @@
1
- export { ActivitiesSelectedCard } from "./components/activities-selected-card/ActivitiesSelectedCard";
2
- export { ActivitiesCard } from "./components/activities-card/ActivitiesCard";
@@ -1,37 +0,0 @@
1
- import React, { useMemo } from "react";
2
- import { EventCalendar } from "../event";
3
- import { viewType } from "./constants";
4
- import {
5
- SelectDateAndTimeList,
6
- SelectDateOrTimeList,
7
- } from "../select-date-time";
8
-
9
- interface SelectorDateAndTimeForViewProps {
10
- view: viewType;
11
- }
12
-
13
- export const DateAndTimeAndCalendar = ({
14
- view,
15
- }: SelectorDateAndTimeForViewProps) => {
16
- const isLoading = false;
17
-
18
- const correctSelectorPage = useMemo(() => {
19
- const disabledDates = [];
20
- if (view === viewType.CALENDAR) {
21
- return (
22
- <EventCalendar disabledDates={disabledDates} isLoading={isLoading} />
23
- );
24
- }
25
- if (view === viewType.DATE_AND_TIME) {
26
- return <SelectDateAndTimeList />;
27
- }
28
- if (view === viewType.DATE || view === viewType.TIME) {
29
- return <SelectDateOrTimeList view={view} />;
30
- }
31
- return <></>;
32
- }, [view, isLoading]);
33
-
34
- return (
35
- <div className="date-time-selector-container">{correctSelectorPage}</div>
36
- );
37
- };
@@ -1,6 +0,0 @@
1
- export enum viewType {
2
- DATE = "date",
3
- DATE_AND_TIME = "date-time",
4
- TIME = "time",
5
- CALENDAR = "calendar",
6
- }
@@ -1 +0,0 @@
1
- export { DateAndTimeAndCalendar } from "./DateAndTimeAndCalendar";
@@ -1,118 +0,0 @@
1
- import React from "react";
2
- import { Meta } from "@storybook/react";
3
- import { useForm, FormProvider } from "react-hook-form";
4
- import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
5
- import { Category } from "./Category";
6
-
7
- export default {
8
- title: "Iframe/Order-Process/Category",
9
- component: Category,
10
- } as Meta;
11
-
12
- const IMAGES = [
13
- {
14
- id: 1,
15
- path: "test",
16
- imageType: "image",
17
- url: "https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s",
18
- } as Image,
19
- ];
20
-
21
- const productCategories = [
22
- {
23
- id: 1,
24
- name: "Early Bird General Admission",
25
- allowDeposits: true,
26
- remainderExpireAfter: null,
27
- products: [
28
- {
29
- id: 7,
30
- name: "Beer",
31
- description: `Ticket is valid for students and non students.You do not need student ID for this event but do require regular age ID.`,
32
- minQuantity: 1,
33
- maxQuantity: 10,
34
- price: 7,
35
- images: IMAGES,
36
- isRequired: true,
37
- deposit: 4,
38
- },
39
- {
40
- id: 8,
41
- name: "Wine",
42
- description: `Ticket is valid for students and non students.
43
- You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
44
- Ticket valid for entry before 11.30pm for 12.30am showtime.Ticket is valid for students and non students.
45
- You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
46
- Ticket valid for entry before 11.30pm for 12.30am showtime.`,
47
- minQuantity: 1,
48
- maxQuantity: 10,
49
- price: 1,
50
- isSoldOut: true,
51
- images: IMAGES,
52
- },
53
- ],
54
- },
55
- {
56
- id: 2,
57
- name: "Nice",
58
- products: [
59
- {
60
- id: 3,
61
- name: "Beer",
62
- description: `Ticket is valid for students and non students.
63
- You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
64
- Ticket valid for entry before 11.30pm for 12.30am showtime.`,
65
- minQuantity: 1,
66
- maxQuantity: 10,
67
- price: 1,
68
- images: [],
69
- },
70
- {
71
- id: 5,
72
- name: "Wine",
73
- description: `Ticket is valid for students and non students.
74
- You do not need student ID for this event but do require regular age ID e.g. driving licence or passport.
75
- Ticket valid for entry before 11.30pm for 12.30am showtime.`,
76
- minQuantity: 1,
77
- maxQuantity: 10,
78
- price: 1,
79
- images: IMAGES,
80
- },
81
- ],
82
- },
83
- {
84
- id: 9,
85
- name: "Super",
86
- products: [
87
- {
88
- id: 10,
89
- name: "Beer no description",
90
- description: ``,
91
- minQuantity: 1,
92
- maxQuantity: 10,
93
- price: 1,
94
- images: IMAGES,
95
- },
96
- {
97
- id: 11,
98
- name: "Wine no description",
99
- description: ``,
100
- minQuantity: 1,
101
- maxQuantity: 10,
102
- price: 0,
103
- images: IMAGES,
104
- },
105
- ],
106
- },
107
- ];
108
-
109
- export function Default() {
110
- const form = useForm();
111
- return (
112
- <FormProvider {...form}>
113
- <div className="payment-process">
114
- <Category productCategories={productCategories} />
115
- </div>
116
- </FormProvider>
117
- );
118
- }