@licklist/design 0.44.485-dev.72 → 0.44.485-dev.75

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 (100) hide show
  1. package/dist/assets/iframe/dateInfo/available.svg +5 -0
  2. package/dist/assets/iframe/dateInfo/available.svg.js +1 -0
  3. package/dist/assets/iframe/dateInfo/limited.svg +5 -0
  4. package/dist/assets/iframe/dateInfo/limited.svg.js +1 -0
  5. package/dist/assets/iframe/dateInfo/soldOut.svg +6 -0
  6. package/dist/assets/iframe/dateInfo/soldOut.svg.js +1 -0
  7. package/dist/iframe/index.d.ts +1 -0
  8. package/dist/iframe/index.d.ts.map +1 -1
  9. package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.d.ts +8 -0
  10. package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.d.ts.map +1 -0
  11. package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.js +1 -0
  12. package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.d.ts +10 -0
  13. package/dist/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.d.ts.map +1 -0
  14. package/dist/iframe/select-date-time/index.d.ts +2 -0
  15. package/dist/iframe/select-date-time/index.d.ts.map +1 -0
  16. package/dist/index.js +1 -1
  17. package/dist/logo/Logo.d.ts +1 -1
  18. package/dist/logo/Logo.d.ts.map +1 -1
  19. package/dist/sales/booking/filter/{components/AdditionalFIlterSection.d.ts → AdditionalFilterSection.d.ts} +1 -1
  20. package/dist/sales/booking/filter/AdditionalFilterSection.d.ts.map +1 -0
  21. package/dist/sales/booking/filter/AdditionalFilterSection.js +1 -0
  22. package/dist/sales/booking/filter/{components/MainFilterSection.d.ts → MainFilterSection.d.ts} +1 -1
  23. package/dist/sales/booking/filter/MainFilterSection.d.ts.map +1 -0
  24. package/dist/sales/booking/filter/MainFilterSection.js +1 -0
  25. package/dist/sales/booking/filter/ResultTagButton.d.ts.map +1 -0
  26. package/dist/sales/booking/filter/ResultTagButton.js +1 -0
  27. package/dist/sales/booking/filter/SearchingForSection.d.ts.map +1 -0
  28. package/dist/sales/booking/filter/index.d.ts +5 -2
  29. package/dist/sales/booking/filter/index.d.ts.map +1 -1
  30. package/dist/sales/booking/filter/{BookingFilter.d.ts → types.d.ts} +2 -3
  31. package/dist/sales/booking/filter/types.d.ts.map +1 -0
  32. package/dist/sales/booking/index.d.ts +0 -1
  33. package/dist/sales/booking/index.d.ts.map +1 -1
  34. package/dist/sales/booking/results/constants.d.ts.map +1 -1
  35. package/dist/sales/booking/results/constants.js +1 -1
  36. package/dist/sales/booking/results/index.d.ts +1 -0
  37. package/dist/sales/booking/results/index.d.ts.map +1 -1
  38. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  39. package/dist/static/date-range-input/DateRangeInput.d.ts +2 -1
  40. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  41. package/dist/styles/iframe-events/SelectDateAndTimeEvent.scss +85 -0
  42. package/dist/styles/iframe-events/_index.scss +1 -0
  43. package/dist/styles/sales/RandomColors.scss +7 -4
  44. package/dist/styles/themes/bookedit/_variables.scss +3 -2
  45. package/package.json +1 -1
  46. package/src/assets/iframe/dateInfo/available.svg +5 -0
  47. package/src/assets/iframe/dateInfo/limited.svg +5 -0
  48. package/src/assets/iframe/dateInfo/soldOut.svg +6 -0
  49. package/src/iframe/index.ts +1 -0
  50. package/src/iframe/select-date-time/component/date-container/SelectDateAndTimeEvent.tsx +73 -0
  51. package/src/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.stories.tsx +158 -0
  52. package/src/iframe/select-date-time/component/date-container/SelectDateAndTimeEventList.tsx +39 -0
  53. package/src/iframe/select-date-time/index.ts +1 -0
  54. package/src/logo/Logo.tsx +1 -1
  55. package/src/sales/booking/filter/{components/AdditionalFIlterSection.tsx → AdditionalFilterSection.tsx} +2 -1
  56. package/src/sales/booking/filter/{components/MainFilterSection.tsx → MainFilterSection.tsx} +6 -5
  57. package/src/sales/booking/filter/{components/ResultTagButton.tsx → ResultTagButton.tsx} +2 -1
  58. package/src/sales/booking/filter/{components/SearchingForSection.tsx → SearchingForSection.tsx} +1 -0
  59. package/src/sales/booking/filter/index.ts +5 -2
  60. package/src/sales/booking/filter/types.tsx +14 -0
  61. package/src/sales/booking/index.ts +0 -1
  62. package/src/sales/booking/results/constants.ts +1 -0
  63. package/src/sales/booking/results/index.ts +1 -0
  64. package/src/static/date-range-input/DateRangeInput.tsx +2 -1
  65. package/src/styles/iframe-events/SelectDateAndTimeEvent.scss +85 -0
  66. package/src/styles/iframe-events/_index.scss +1 -0
  67. package/src/styles/sales/RandomColors.scss +7 -4
  68. package/src/styles/themes/bookedit/_variables.scss +3 -2
  69. package/tsconfig.json +2 -2
  70. package/dist/assets/dashboard/bookingCalendar.svg +0 -67
  71. package/dist/assets/dashboard/bookingCalendar.svg.js +0 -1
  72. package/dist/assets/dashboard/bookingList.svg +0 -68
  73. package/dist/assets/dashboard/bookingList.svg.js +0 -1
  74. package/dist/assets/dashboard/bookingListSmall.svg +0 -6
  75. package/dist/assets/dashboard/bookingListSmall.svg.js +0 -1
  76. package/dist/sales/booking/filter/BookingFilter.d.ts.map +0 -1
  77. package/dist/sales/booking/filter/BookingFilter.js +0 -1
  78. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +0 -1
  79. package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +0 -1
  80. package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +0 -1
  81. package/dist/sales/booking/filter/components/MainFilterSection.js +0 -1
  82. package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +0 -1
  83. package/dist/sales/booking/filter/components/ResultTagButton.js +0 -1
  84. package/dist/sales/booking/filter/components/SearchingForSection.d.ts.map +0 -1
  85. package/dist/sales/booking/tabs/BookingTabs.d.ts +0 -12
  86. package/dist/sales/booking/tabs/BookingTabs.d.ts.map +0 -1
  87. package/dist/sales/booking/tabs/BookingTabs.js +0 -1
  88. package/dist/sales/booking/tabs/index.d.ts +0 -3
  89. package/dist/sales/booking/tabs/index.d.ts.map +0 -1
  90. package/src/assets/dashboard/bookingCalendar.svg +0 -67
  91. package/src/assets/dashboard/bookingList.svg +0 -68
  92. package/src/assets/dashboard/bookingListSmall.svg +0 -6
  93. package/src/sales/booking/filter/BookingFilter.stories.tsx +0 -56
  94. package/src/sales/booking/filter/BookingFilter.tsx +0 -56
  95. package/src/sales/booking/tabs/BookingTabs.stories.tsx +0 -17
  96. package/src/sales/booking/tabs/BookingTabs.tsx +0 -89
  97. package/src/sales/booking/tabs/index.ts +0 -2
  98. /package/dist/sales/booking/filter/{components/ResultTagButton.d.ts → ResultTagButton.d.ts} +0 -0
  99. /package/dist/sales/booking/filter/{components/SearchingForSection.d.ts → SearchingForSection.d.ts} +0 -0
  100. /package/dist/sales/booking/filter/{components/SearchingForSection.js → SearchingForSection.js} +0 -0
@@ -38,7 +38,7 @@ $blue: #0e8ce2;
38
38
  $indigo: #6610f2 !default;
39
39
  $purple: #6f42c1 !default;
40
40
  $pink: #e83e8c !default;
41
- $dark-pink: #E20E58 !default;
41
+ $dark-pink: #e20e58 !default;
42
42
  $red: #f94b25;
43
43
  $orange: #fd7e14 !default;
44
44
  $yellow: #ffc107 !default;
@@ -65,7 +65,7 @@ $colors: (
65
65
  "gray": $gray-600,
66
66
  "gray-dark": $gray-800,
67
67
  "light-yellow": $light-yellow,
68
- "dark-pink": $dark-pink
68
+ "dark-pink": $dark-pink,
69
69
  );
70
70
 
71
71
  $primary: $blue !default;
@@ -231,6 +231,7 @@ $line-height-lg: 1.5 !default;
231
231
  $line-height-sm: 1.5 !default;
232
232
 
233
233
  $border-width: 1px !default;
234
+ $calendar-border: 2px solid #f2f2f2;
234
235
  $border-color: $gray-300 !default;
235
236
 
236
237
  $border-radius: 1rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.44.485-dev.72",
3
+ "version": "0.44.485-dev.75",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -0,0 +1,5 @@
1
+ <svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="0.943939" y="1.03658" width="5.25188" height="3.04878" rx="1.5" fill="#4CF973" stroke="white"/>
3
+ <rect x="0.943939" y="4.10976" width="5.25188" height="3.04878" rx="1.5" fill="#4CF973" stroke="white"/>
4
+ <rect x="0.943939" y="7.18292" width="5.25188" height="3.04878" rx="1.5" fill="#4CF973" stroke="white"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1.2406" y="1.03658" width="5.25188" height="3.04878" rx="1.5" fill="#E4E4E4" stroke="white"/>
3
+ <rect x="1.2406" y="4.10976" width="5.25188" height="3.04878" rx="1.5" fill="#FDD054" stroke="white"/>
4
+ <rect x="1.2406" y="7.18292" width="5.25188" height="3.04878" rx="1.5" fill="#FDD054" stroke="white"/>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="7" height="10" viewBox="0 0 7 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="5.94013" height="10" transform="translate(0.497131)" fill="white"/>
3
+ <rect x="0.591156" y="0.5" width="5.75211" height="3" rx="1.5" fill="#E4E4E4" stroke="white"/>
4
+ <rect x="0.591156" y="3.5" width="5.75211" height="3" rx="1.5" fill="#E4E4E4" stroke="white"/>
5
+ <rect x="0.591156" y="6.5" width="5.75211" height="3" rx="1.5" fill="#E4E4E4" stroke="white"/>
6
+ </svg>
@@ -43,3 +43,4 @@ export {
43
43
  export { PoweredBy } from "./powered-by";
44
44
  export * from "./page";
45
45
  export { CustomDateField, CustomDateFieldProps } from "./custom-fields";
46
+ export { SelectDateAndTimeEvent } from "./select-date-time";
@@ -0,0 +1,73 @@
1
+ import React, { useMemo } from "react";
2
+ import clsx from "clsx";
3
+ import { ReactComponent as LimitedSvg } from "../../../../assets/iframe/dateInfo/limited.svg";
4
+ import { ReactComponent as AvailableSvg } from "../../../../assets/iframe/dateInfo/available.svg";
5
+ import { ReactComponent as SoldOutSvg } from "../../../../assets/iframe/dateInfo/soldOut.svg";
6
+ import { Logo } from "../../../../logo";
7
+
8
+ export type SelectDateAndTimeEventProps = {
9
+ date: any;
10
+ selected: boolean;
11
+ onSelectProductSet?: (id: number) => void;
12
+ };
13
+
14
+ export const SelectDateAndTimeEvent = ({
15
+ date,
16
+ selected,
17
+ onSelectProductSet,
18
+ }: SelectDateAndTimeEventProps) => {
19
+ const { title, disabled, info, descriptions, id, time } = date;
20
+
21
+ const onClick = () => {
22
+ if (disabled) return;
23
+ onSelectProductSet(id);
24
+ };
25
+
26
+ const infoLogo = useMemo(() => {
27
+ if (info?.logo === "limit") {
28
+ return <LimitedSvg />;
29
+ }
30
+ if (info?.logo === "available") {
31
+ return <AvailableSvg />;
32
+ }
33
+ if (info?.logo === "soldOut") {
34
+ return <SoldOutSvg />;
35
+ }
36
+ return null;
37
+ }, [info, SoldOutSvg, AvailableSvg, LimitedSvg]);
38
+
39
+ return (
40
+ <div
41
+ role="button"
42
+ onClick={onClick}
43
+ onKeyPress={onClick}
44
+ className={clsx(
45
+ "event-date-set",
46
+ disabled && "disabled",
47
+ selected && "selected",
48
+ time && "time-container"
49
+ )}
50
+ tabIndex={0}
51
+ >
52
+ {title}
53
+ {time && <div className="time">{time}</div>}
54
+ {descriptions && (
55
+ <div
56
+ className={clsx(
57
+ "descriptions",
58
+ selected && "selected",
59
+ disabled && "disabled"
60
+ )}
61
+ >
62
+ {descriptions}
63
+ </div>
64
+ )}
65
+ {info && (
66
+ <div className="info">
67
+ {info.logo && <Logo className="logo" logo={infoLogo} />}
68
+ <div>{info.descriptions}</div>
69
+ </div>
70
+ )}
71
+ </div>
72
+ );
73
+ };
@@ -0,0 +1,158 @@
1
+ import React, { useState } from "react";
2
+ import { Meta } from "@storybook/react";
3
+ import { SelectDateAndTimeEventList } from "./SelectDateAndTimeEventList";
4
+ import { Form } from "react-bootstrap";
5
+
6
+ export default {
7
+ title: "Iframe/Date Selector",
8
+ component: SelectDateAndTimeEventList,
9
+ } as Meta;
10
+
11
+ export function Default() {
12
+ const [eventDayId, setEventDayId] = useState<number>();
13
+ const [eventTimeId, setEventTimeId] = useState<number>();
14
+ const [eventTimeWithInfoId, setEventTimeWithInfoId] = useState<number>();
15
+
16
+ const dayList = [
17
+ {
18
+ id: 1,
19
+ title: "TODAY",
20
+ descriptions: "13th March",
21
+ },
22
+ {
23
+ id: 2,
24
+ title: "TODAY",
25
+ disabled: true,
26
+ descriptions: "13th March",
27
+ },
28
+ {
29
+ id: 3,
30
+ title: "TOMORROW",
31
+ descriptions: "13th March",
32
+ },
33
+ {
34
+ id: 4,
35
+ title: "TOMORROW",
36
+ descriptions: "13th March",
37
+ },
38
+ {
39
+ id: 5,
40
+ title: "TOMORROW",
41
+ descriptions: "13th March",
42
+ },
43
+ ];
44
+
45
+ const dayListWithInfo = [
46
+ {
47
+ id: 1,
48
+ title: "TODAY",
49
+ descriptions: "13th March",
50
+ info: {
51
+ descriptions: "test",
52
+ logo: "limit",
53
+ }
54
+ },
55
+ {
56
+ id: 2,
57
+ title: "TODAY",
58
+ disabled: true,
59
+ descriptions: "13th March",
60
+ info: {
61
+ descriptions: "test",
62
+ logo: "soldOut",
63
+ }
64
+ },
65
+ {
66
+ id: 3,
67
+ title: "TOMORROW",
68
+ descriptions: "13th March",
69
+ info: {
70
+ descriptions: "test",
71
+ logo: "limit",
72
+ }
73
+ },
74
+ {
75
+ id: 4,
76
+ title: "TOMORROW",
77
+ descriptions: "13th March",
78
+ info: {
79
+ descriptions: "test",
80
+ logo: "available",
81
+ }
82
+ },
83
+ {
84
+ id: 5,
85
+ title: "TOMORROW",
86
+ descriptions: "13th March",
87
+ info: {
88
+ descriptions: "test",
89
+ logo: "available",
90
+ }
91
+ },
92
+ ];
93
+
94
+ const timeList = [
95
+ {
96
+ id: 1,
97
+ time: "10:30",
98
+ },
99
+ {
100
+ id: 2,
101
+ time: "11:30",
102
+ },
103
+ {
104
+ id: 3,
105
+ time: "12:30",
106
+ },
107
+ {
108
+ id: 4,
109
+ time: "13:30",
110
+ },
111
+ {
112
+ id: 5,
113
+ time: "14:30",
114
+ },
115
+ {
116
+ id: 6,
117
+ time: "11:30",
118
+ disabled: true,
119
+ },
120
+ {
121
+ id: 7,
122
+ time: "12:30",
123
+ },
124
+ ];
125
+
126
+ return (
127
+ <div className="bg-white" style={{height:"40rem"}}>
128
+ <Form className="event-booking-form">
129
+ <Form.Group>
130
+ <SelectDateAndTimeEventList
131
+ title="Select Date & Time"
132
+ dateList={dayList}
133
+ selectedProductSetId={eventDayId}
134
+ onSelectProductSet={setEventDayId}
135
+ />
136
+ </Form.Group>
137
+ <Form.Group>
138
+ <SelectDateAndTimeEventList
139
+ title="Select your Date with Info"
140
+ dateList={dayListWithInfo}
141
+ timeContainer
142
+ selectedProductSetId={eventTimeWithInfoId}
143
+ onSelectProductSet={setEventTimeWithInfoId}
144
+ />
145
+ </Form.Group>
146
+ <Form.Group>
147
+ <SelectDateAndTimeEventList
148
+ title="Select your Time"
149
+ dateList={timeList}
150
+ timeContainer
151
+ selectedProductSetId={eventTimeId}
152
+ onSelectProductSet={setEventTimeId}
153
+ />
154
+ </Form.Group>
155
+ </Form>
156
+ </div>
157
+ );
158
+ }
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+ import { SelectDateAndTimeEvent } from "./SelectDateAndTimeEvent";
4
+
5
+ export type EventProductSetsProps = {
6
+ selectedProductSetId?: number;
7
+ onSelectProductSet?: (productSetId: number) => void;
8
+ dateList: any[];
9
+ title?: string;
10
+ timeContainer?: boolean;
11
+ };
12
+
13
+ export const SelectDateAndTimeEventList = ({
14
+ selectedProductSetId,
15
+ onSelectProductSet,
16
+ dateList,
17
+ title,
18
+ timeContainer,
19
+ }: EventProductSetsProps) => {
20
+ return (
21
+ <>
22
+ <h5>{title}</h5>
23
+ <div
24
+ className={clsx("event-date-list", timeContainer && "time-container")}
25
+ >
26
+ {dateList.map((date) => {
27
+ return (
28
+ <SelectDateAndTimeEvent
29
+ key={date.id}
30
+ date={date}
31
+ selected={selectedProductSetId === date.id}
32
+ onSelectProductSet={onSelectProductSet}
33
+ />
34
+ );
35
+ })}
36
+ </div>
37
+ </>
38
+ );
39
+ };
@@ -0,0 +1 @@
1
+ export { SelectDateAndTimeEvent } from "./component/date-container/SelectDateAndTimeEvent";
package/src/logo/Logo.tsx CHANGED
@@ -3,7 +3,7 @@ import Col from "react-bootstrap/Col";
3
3
  import Row from "react-bootstrap/Row";
4
4
 
5
5
  interface Props extends HTMLAttributes<HTMLDivElement> {
6
- logo: ReactNode;
6
+ logo: ReactNode | null;
7
7
  logoSm?: ReactNode;
8
8
  }
9
9
 
@@ -12,7 +12,7 @@ import {
12
12
  BookingContext,
13
13
  BookingFilters,
14
14
  } from "@licklist/plugins/dist/context/booking/BookingContext";
15
- import { DateRangeInput } from "../../../../static/date-range-input/DateRangeInput";
15
+ import { DateRangeInput } from "../../../static/date-range-input/DateRangeInput";
16
16
  import { FilterSectionProps } from "./SearchingForSection";
17
17
 
18
18
  const ORDER_STATUSES_FOR_UPDATE = [
@@ -22,6 +22,7 @@ const ORDER_STATUSES_FOR_UPDATE = [
22
22
  ORDER_STATUS_ACTION_REQUIRED,
23
23
  ];
24
24
 
25
+ // @TODO fix issue with import DateRangeInput and move component to dashboard
25
26
  export type AdditionalFilterSectionProps = {
26
27
  onAddFiltersClick?: () => void;
27
28
  onCancelFilterClick?: () => void;
@@ -4,16 +4,17 @@ import { Form, Button } from "react-bootstrap";
4
4
  import clsx from "clsx";
5
5
  import useDebounce from "use-debounce/lib/useDebounce";
6
6
  import { BookingContext } from "@licklist/plugins/dist/context/booking/BookingContext";
7
- import Icon from "../../../../static/Icon";
8
- import { BookingFilterProps } from "../BookingFilter";
9
- import { ReactComponent as RefreshIcon } from "../../../../assets/dashboard/refresh.svg";
10
- import { ReactComponent as FullscreenIcon } from "../../../../assets/dashboard/fullscreen.svg";
11
- import { ReactComponent as MinimizeIcon } from "../../../../assets/dashboard/minimize.svg";
7
+ import Icon from "../../../static/Icon";
8
+ import { ReactComponent as RefreshIcon } from "../../../assets/dashboard/refresh.svg";
9
+ import { ReactComponent as FullscreenIcon } from "../../../assets/dashboard/fullscreen.svg";
10
+ import { ReactComponent as MinimizeIcon } from "../../../assets/dashboard/minimize.svg";
11
+ import { BookingFilterProps } from "./types";
12
12
 
13
13
  export type MainFilterSectionProps = Omit<BookingFilterProps, "staffMembers">;
14
14
 
15
15
  const DEBOUNCE_QUERY_TIME = 300;
16
16
 
17
+ // @TODO fix issue with import DateRangeInput and move component to dashboard
17
18
  export const MainFilterSection = ({
18
19
  isFilterOpen,
19
20
  onAddFiltersClick,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import Icon from "../../../../static/Icon";
2
+ import Icon from "../../../static/Icon";
3
3
 
4
4
  export type ResultTagButtonProps = {
5
5
  tagKey: string;
@@ -7,6 +7,7 @@ export type ResultTagButtonProps = {
7
7
  onRemoveClick: (tagKey: string) => void;
8
8
  };
9
9
 
10
+ // @TODO fix issue with import DateRangeInput and move component to dashboard
10
11
  export const ResultTagButton = ({
11
12
  tagKey,
12
13
  value,
@@ -20,6 +20,7 @@ export interface FilterSectionProps {
20
20
  isLoading: boolean;
21
21
  }
22
22
 
23
+ // @TODO fix issue with import DateRangeInput and move component to dashboard
23
24
  export const SearchingForSection = ({ staffMembers }: { staffMembers }) => {
24
25
  const { t } = useTranslation("Design");
25
26
  const { filters, setFilters } = useContext(BookingContext);
@@ -1,2 +1,5 @@
1
- export { BookingFilter } from "./BookingFilter";
2
- export type { BookingFilterProps } from "./BookingFilter";
1
+ export { AdditionalFilterSection } from "./AdditionalFilterSection";
2
+ export { MainFilterSection } from "./MainFilterSection";
3
+ export { ResultTagButton } from "./ResultTagButton";
4
+ export { SearchingForSection } from "./SearchingForSection";
5
+ export { BookingFilterProps } from "./types";
@@ -0,0 +1,14 @@
1
+ import { User } from "@licklist/core/dist/DataMapper/User/UserDataMapper";
2
+ import { PropsWithChildren } from "react";
3
+
4
+ export type BookingFilterProps = PropsWithChildren<{
5
+ onAddFiltersClick?: () => void;
6
+ onCancelFilterClick?: () => void;
7
+ onRefreshClick?: () => void;
8
+ onFullscreenButtonClick?: () => void;
9
+ isFilterOpen?: boolean;
10
+ autoFocusOnMount?: boolean;
11
+ isFullscreenMode?: boolean;
12
+ staffMembers?: User[] | null;
13
+ isLoading: boolean;
14
+ }>;
@@ -1,3 +1,2 @@
1
- export * from "./tabs";
2
1
  export * from "./filter";
3
2
  export * from "./results";
@@ -3,4 +3,5 @@ export const BACKGROUND_COLOR_CLASSNAMES = [
3
3
  "random-color-yellow",
4
4
  "random-color-green",
5
5
  "random-color-pink",
6
+ "random-color-violet",
6
7
  ];
@@ -1,2 +1,3 @@
1
1
  export { BookingResults } from "./BookingResults";
2
+ export * from "./constants";
2
3
  export type { BookingResultsProps } from "./BookingResults";
@@ -3,6 +3,7 @@ import { Button, Form, OverlayTrigger, Popover } from "react-bootstrap";
3
3
  import { DateRange, Range } from "react-date-range";
4
4
  import { useClickAway } from "react-use";
5
5
  import { useTranslation } from "react-i18next";
6
+ // @TODO fix issue with Poper, because we can't import DateRangeInput to our apps
6
7
  import type Popper from "@popperjs/core";
7
8
  import { useId } from "@react-aria/utils";
8
9
  import { Icon } from "..";
@@ -15,7 +16,7 @@ import {
15
16
  import "react-date-range/dist/styles.css";
16
17
  import "react-date-range/dist/theme/default.css";
17
18
 
18
- export type DateRangeInputProps = {
19
+ type DateRangeInputProps = {
19
20
  placeholder: string;
20
21
  startDate?: string;
21
22
  endDate?: string;
@@ -0,0 +1,85 @@
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
+ }
@@ -15,3 +15,4 @@
15
15
  @import "./CalendarSelect.scss";
16
16
  @import "./EventStepVenueMapZones.scss";
17
17
  @import "./CategoryStepsForm.scss";
18
+ @import "./SelectDateAndTimeEvent.scss";
@@ -1,17 +1,20 @@
1
1
  .random-color {
2
2
  &-blue {
3
- background-color: #E4F9FF;
3
+ background-color: #e4f9ff;
4
4
  }
5
5
 
6
6
  &-yellow {
7
- background-color: #F7F4C1;
7
+ background-color: #f7f4c1;
8
8
  }
9
9
 
10
10
  &-green {
11
- background-color: #E4FFF3;
11
+ background-color: #e4fff3;
12
12
  }
13
13
 
14
14
  &-pink {
15
- background-color: #FFE4F8;
15
+ background-color: #ffe4f8;
16
+ }
17
+ &-violet {
18
+ background-color: #e4e4ff;
16
19
  }
17
20
  }
@@ -38,7 +38,7 @@ $blue: #0e8ce2;
38
38
  $indigo: #6610f2 !default;
39
39
  $purple: #6f42c1 !default;
40
40
  $pink: #e83e8c !default;
41
- $dark-pink: #E20E58 !default;
41
+ $dark-pink: #e20e58 !default;
42
42
  $red: #f94b25;
43
43
  $orange: #fd7e14 !default;
44
44
  $yellow: #ffc107 !default;
@@ -65,7 +65,7 @@ $colors: (
65
65
  "gray": $gray-600,
66
66
  "gray-dark": $gray-800,
67
67
  "light-yellow": $light-yellow,
68
- "dark-pink": $dark-pink
68
+ "dark-pink": $dark-pink,
69
69
  );
70
70
 
71
71
  $primary: $blue !default;
@@ -231,6 +231,7 @@ $line-height-lg: 1.5 !default;
231
231
  $line-height-sm: 1.5 !default;
232
232
 
233
233
  $border-width: 1px !default;
234
+ $calendar-border: 2px solid #f2f2f2;
234
235
  $border-color: $gray-300 !default;
235
236
 
236
237
  $border-radius: 1rem;
package/tsconfig.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "tests",
9
9
  "**/*.test*",
10
10
  "**/*.spec*",
11
- "src/**/*.stories.*",
11
+ "src/**/*.stories.*"
12
12
  ],
13
13
  "compilerOptions": {
14
14
  "skipLibCheck": false,
@@ -40,6 +40,6 @@
40
40
  "composite": true,
41
41
  "declaration": true,
42
42
  "declarationMap": true,
43
- "sourceMap": false,
43
+ "sourceMap": false
44
44
  }
45
45
  }