@licklist/design 0.58.4-dev.1 → 0.58.4
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 -2
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
- package/dist/index.js +1 -1
- package/dist/product-set/card/ProductSetCard.d.ts +1 -2
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +1 -2
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/control/TutorialGifCard.d.ts +1 -2
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts +1 -2
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +2 -7
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductsControl.d.ts +1 -2
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +1 -1
- package/dist/product-set/form/StepsControl.d.ts +1 -2
- package/dist/product-set/form/StepsControl.d.ts.map +1 -1
- package/dist/product-set/form/StepsControl.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts +1 -2
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +1 -2
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
- package/dist/product-set/item/CreateProductSetItem.d.ts +1 -2
- package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
- package/dist/product-set/item/CreateProductSetItem.js +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -2
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +2 -4
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.js +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts +0 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -2
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -2
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sortable-list/SortableList.d.ts +1 -2
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-list/SortableList.js +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.js +1 -1
- package/dist/static/manual-date-picker/constants/index.d.ts +1 -4
- package/dist/static/manual-date-picker/constants/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/constants/index.js +1 -1
- package/dist/static/manual-date-picker/utils/index.d.ts +0 -4
- package/dist/static/manual-date-picker/utils/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/utils/index.js +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -10
- package/dist/styles/iframe-events/Card.scss +8 -24
- package/dist/styles/iframe-events/PoweredBy.scss +2 -2
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +2 -0
- package/dist/styles/iframe-page/Page.scss +0 -1
- package/dist/styles/iframe-page/PageBody.scss +11 -32
- package/dist/styles/iframe-page/PageHeader.scss +39 -41
- package/dist/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/package.json +3 -3
- package/src/calendar/Calendar.stories.tsx +2 -9
- package/src/iframe/event/event-card/IframeEventCard.stories.tsx +0 -1
- package/src/iframe/event/event-card/IframeEventCard.tsx +8 -7
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +10 -30
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +12 -8
- package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -3
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -6
- package/src/product-set/card/ProductSetCard.tsx +1 -10
- package/src/product-set/control/ProductSetControl.tsx +24 -46
- package/src/product-set/control/TutorialGifCard.tsx +3 -11
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -12
- package/src/product-set/form/ProductSetForm.tsx +1 -10
- package/src/product-set/form/ProductsControl.tsx +0 -10
- package/src/product-set/form/StepsControl.tsx +2 -8
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/hooks/useSortableTreeFunctions.ts +0 -4
- package/src/product-set/item/CreateProductSetItem.tsx +0 -3
- package/src/product-set/product/ProductControl.tsx +12 -23
- package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +2 -10
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +3 -4
- package/src/product-set/product-category/ProductCategoryControl.tsx +8 -12
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -4
- package/src/sales/booking/results/components/ResultCard.tsx +3 -0
- package/src/sortable-list/SortableList.tsx +0 -3
- package/src/sortable-tree/SortableTreeItem.tsx +1 -7
- package/src/static/manual-date-picker/ManualDatePicker.tsx +3 -3
- package/src/static/manual-date-picker/constants/index.ts +2 -6
- package/src/static/manual-date-picker/utils/index.ts +0 -11
- package/src/static/switch/BooleanSwitch.tsx +1 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -10
- package/src/styles/iframe-events/Card.scss +8 -24
- package/src/styles/iframe-events/PoweredBy.scss +2 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +2 -0
- package/src/styles/iframe-page/Page.scss +0 -1
- package/src/styles/iframe-page/PageBody.scss +11 -32
- package/src/styles/iframe-page/PageHeader.scss +39 -41
- package/src/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/src/styles/sales/BookingResults.scss +1 -1
- package/dist/product-set/control/DateInput.d.ts +0 -17
- package/dist/product-set/control/DateInput.d.ts.map +0 -1
- package/dist/product-set/control/DateInput.js +0 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts +0 -11
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +0 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +0 -1
- package/dist/recurring-date-picker-input/DatePickerInput.d.ts +0 -19
- package/dist/recurring-date-picker-input/DatePickerInput.d.ts.map +0 -1
- package/dist/recurring-date-picker-input/DatePickerInput.js +0 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts +0 -15
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts.map +0 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.js +0 -1
- package/src/product-set/control/DateInput.tsx +0 -311
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +0 -63
- package/src/recurring-date-picker-input/DatePickerInput.tsx +0 -93
- package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +0 -137
|
@@ -5,15 +5,10 @@ import { FieldNamePrefixPath } from "@licklist/plugins/dist/types/services/Form/
|
|
|
5
5
|
import { useWatch } from "react-hook-form";
|
|
6
6
|
import { FormNumberInput } from "../../../static";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
interface FixedDurationOptionsProps<T> extends FieldNamePrefixPath<T> {
|
|
11
|
-
isOverrides?: boolean;
|
|
12
|
-
}
|
|
8
|
+
type FixedDurationOptionsProps<T> = FieldNamePrefixPath<T>;
|
|
13
9
|
|
|
14
10
|
export const FixedDurationOptions = <T,>({
|
|
15
11
|
fieldNamePrefix,
|
|
16
|
-
isOverrides,
|
|
17
12
|
}: FixedDurationOptionsProps<T>) => {
|
|
18
13
|
const { t } = useTranslation("Design");
|
|
19
14
|
|
|
@@ -26,7 +21,6 @@ export const FixedDurationOptions = <T,>({
|
|
|
26
21
|
<FormNumberInput
|
|
27
22
|
fieldName={`${fieldNamePrefix}.subSlots`}
|
|
28
23
|
label={t("subSlotsInMin")}
|
|
29
|
-
disabled={isOverrides}
|
|
30
24
|
/>
|
|
31
25
|
</Col>
|
|
32
26
|
|
|
@@ -34,7 +28,7 @@ export const FixedDurationOptions = <T,>({
|
|
|
34
28
|
<FormNumberInput
|
|
35
29
|
fieldName={`${fieldNamePrefix}.pause`}
|
|
36
30
|
label={t("pauseInMin")}
|
|
37
|
-
disabled={!subSlotsFieldValue
|
|
31
|
+
disabled={!subSlotsFieldValue}
|
|
38
32
|
/>
|
|
39
33
|
</Col>
|
|
40
34
|
</Row>
|
|
@@ -44,7 +38,6 @@ export const FixedDurationOptions = <T,>({
|
|
|
44
38
|
<FormNumberInput
|
|
45
39
|
fieldName={`${fieldNamePrefix}.offset`}
|
|
46
40
|
label={t("offsetInMin")}
|
|
47
|
-
disabled={isOverrides}
|
|
48
41
|
/>
|
|
49
42
|
</Col>
|
|
50
43
|
|
|
@@ -52,7 +45,6 @@ export const FixedDurationOptions = <T,>({
|
|
|
52
45
|
<FormNumberInput
|
|
53
46
|
fieldName={`${fieldNamePrefix}.serviceTime`}
|
|
54
47
|
label={t("serviceTimeInMin")}
|
|
55
|
-
disabled={isOverrides}
|
|
56
48
|
/>
|
|
57
49
|
</Col>
|
|
58
50
|
</Row>
|
|
@@ -22,13 +22,12 @@ export interface ProductQuantityControlValues extends FormValues {
|
|
|
22
22
|
export interface ProductQuantityControlProps<T> extends FieldNamePrefixPath<T> {
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
onFocus?: (e: React.SyntheticEvent) => void;
|
|
25
|
-
isOverrides?: boolean;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
export function ProductQuantityControl<T extends FormValues>(
|
|
29
28
|
props: ProductQuantityControlProps<T>
|
|
30
29
|
) {
|
|
31
|
-
const { isLoading = false, fieldNamePrefix, onFocus
|
|
30
|
+
const { isLoading = false, fieldNamePrefix, onFocus } = props;
|
|
32
31
|
const {
|
|
33
32
|
control,
|
|
34
33
|
formState: { errors },
|
|
@@ -91,7 +90,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
91
90
|
isInvalid={
|
|
92
91
|
Number(minQuantityValue) > Number(maxQuantityValue)
|
|
93
92
|
}
|
|
94
|
-
disabled={isLoading
|
|
93
|
+
disabled={isLoading}
|
|
95
94
|
/>
|
|
96
95
|
)}
|
|
97
96
|
control={control}
|
|
@@ -149,7 +148,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
149
148
|
isInvalid={
|
|
150
149
|
Number(minQuantityValue) > Number(maxQuantityValue)
|
|
151
150
|
}
|
|
152
|
-
disabled={isLoading
|
|
151
|
+
disabled={isLoading}
|
|
153
152
|
/>
|
|
154
153
|
)}
|
|
155
154
|
control={control}
|
|
@@ -49,7 +49,6 @@ export interface ProductCategoryControlProps extends IsDeletableEvent {
|
|
|
49
49
|
onCategoryNameChange: (args: any) => void;
|
|
50
50
|
stepIndex: number;
|
|
51
51
|
productCategoryIndex: number;
|
|
52
|
-
isOverride?: boolean;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
const categoriesWithTickets = [
|
|
@@ -64,7 +63,6 @@ export function ProductCategoryControl({
|
|
|
64
63
|
onCategoryNameChange,
|
|
65
64
|
productCategoryIndex,
|
|
66
65
|
stepIndex,
|
|
67
|
-
isOverride = false,
|
|
68
66
|
}: ProductCategoryControlProps) {
|
|
69
67
|
const {
|
|
70
68
|
control,
|
|
@@ -159,7 +157,7 @@ export function ProductCategoryControl({
|
|
|
159
157
|
errors
|
|
160
158
|
)}
|
|
161
159
|
placeholder={t("name")}
|
|
162
|
-
disabled={isLoading
|
|
160
|
+
disabled={isLoading}
|
|
163
161
|
/>
|
|
164
162
|
<Form.Control.Feedback type="invalid">
|
|
165
163
|
{HookFormService.getErrors<ProductSetFormValues>(
|
|
@@ -185,7 +183,7 @@ export function ProductCategoryControl({
|
|
|
185
183
|
}))}
|
|
186
184
|
value={field.value}
|
|
187
185
|
onChange={field.onChange}
|
|
188
|
-
disabled={isLoading
|
|
186
|
+
disabled={isLoading}
|
|
189
187
|
/>
|
|
190
188
|
</Form.Group>
|
|
191
189
|
)}
|
|
@@ -229,7 +227,7 @@ export function ProductCategoryControl({
|
|
|
229
227
|
`${fieldNamePrefix}.minSubItems` as const,
|
|
230
228
|
errors
|
|
231
229
|
)}
|
|
232
|
-
disabled={isLoading
|
|
230
|
+
disabled={isLoading}
|
|
233
231
|
name={name}
|
|
234
232
|
/>
|
|
235
233
|
)}
|
|
@@ -301,7 +299,7 @@ export function ProductCategoryControl({
|
|
|
301
299
|
`${fieldNamePrefix}.maxSubItems` as const,
|
|
302
300
|
errors
|
|
303
301
|
)}
|
|
304
|
-
disabled={isLoading
|
|
302
|
+
disabled={isLoading}
|
|
305
303
|
/>
|
|
306
304
|
)}
|
|
307
305
|
control={control}
|
|
@@ -339,7 +337,6 @@ export function ProductCategoryControl({
|
|
|
339
337
|
render={({ field }) => (
|
|
340
338
|
<Form.Control
|
|
341
339
|
as="select"
|
|
342
|
-
disabled={isOverride}
|
|
343
340
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
344
341
|
`${fieldNamePrefix}.zoneId`,
|
|
345
342
|
errors
|
|
@@ -387,7 +384,6 @@ export function ProductCategoryControl({
|
|
|
387
384
|
<Form.Check.Input
|
|
388
385
|
checked={expanded}
|
|
389
386
|
onChange={handleExpand}
|
|
390
|
-
disabled={isOverride}
|
|
391
387
|
type="checkbox"
|
|
392
388
|
/>
|
|
393
389
|
<Form.Check.Label>{t("showAdvancedOptions")}</Form.Check.Label>
|
|
@@ -456,7 +452,7 @@ export function ProductCategoryControl({
|
|
|
456
452
|
name={name}
|
|
457
453
|
value={Boolean(value)}
|
|
458
454
|
onChange={onChange}
|
|
459
|
-
disabled={isLoading
|
|
455
|
+
disabled={isLoading}
|
|
460
456
|
/>
|
|
461
457
|
)}
|
|
462
458
|
control={control}
|
|
@@ -480,7 +476,7 @@ export function ProductCategoryControl({
|
|
|
480
476
|
name={name}
|
|
481
477
|
value={Boolean(value)}
|
|
482
478
|
onChange={onChange}
|
|
483
|
-
disabled={isLoading
|
|
479
|
+
disabled={isLoading}
|
|
484
480
|
/>
|
|
485
481
|
)}
|
|
486
482
|
control={control}
|
|
@@ -503,7 +499,7 @@ export function ProductCategoryControl({
|
|
|
503
499
|
name={name}
|
|
504
500
|
value={Boolean(value)}
|
|
505
501
|
onChange={onChange}
|
|
506
|
-
disabled={isLoading
|
|
502
|
+
disabled={isLoading}
|
|
507
503
|
/>
|
|
508
504
|
)}
|
|
509
505
|
control={control}
|
|
@@ -531,7 +527,7 @@ export function ProductCategoryControl({
|
|
|
531
527
|
`${fieldNamePrefix}.remainderExpireAfter` as const,
|
|
532
528
|
errors
|
|
533
529
|
)}
|
|
534
|
-
disabled={isLoading
|
|
530
|
+
disabled={isLoading}
|
|
535
531
|
name={name}
|
|
536
532
|
/>
|
|
537
533
|
)}
|
|
@@ -336,10 +336,7 @@ const useFormattedDuration = ({
|
|
|
336
336
|
}, [start, end, byWeekDay, formatList, formatNumber]);
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
|
|
340
|
-
date: string,
|
|
341
|
-
time: string
|
|
342
|
-
): DateTime | string => {
|
|
339
|
+
const getDateTimeObject = (date: string, time: string): DateTime | string => {
|
|
343
340
|
const dateTime = DateTime.fromFormat(`${date} ${time}`, DATE_TIME_FORMAT);
|
|
344
341
|
|
|
345
342
|
if (dateTime.isValid) {
|
|
@@ -12,6 +12,7 @@ import { TIME_FORMAT } from "@licklist/core/dist/Config";
|
|
|
12
12
|
import * as Config from "@licklist/core/dist/Config";
|
|
13
13
|
import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
|
|
14
14
|
import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
|
|
15
|
+
|
|
15
16
|
import Icon from "../../../../static/Icon";
|
|
16
17
|
|
|
17
18
|
export type ResultCardProps = {
|
|
@@ -21,6 +22,8 @@ export type ResultCardProps = {
|
|
|
21
22
|
onCardClick?: (id: number) => void;
|
|
22
23
|
};
|
|
23
24
|
|
|
25
|
+
// @TODO integrate when API will be available
|
|
26
|
+
// activity and staff keys
|
|
24
27
|
export const ResultCard = ({
|
|
25
28
|
order,
|
|
26
29
|
className,
|
|
@@ -33,7 +33,6 @@ type SortableListProps<T> = {
|
|
|
33
33
|
renderItemContent: (args: RenderItemContentArgs<T>) => ReactNode;
|
|
34
34
|
setItems?: Dispatch<SetStateAction<SortableItem<T>[]>>;
|
|
35
35
|
isExpandNewItem?: boolean;
|
|
36
|
-
isOverrides?: boolean;
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
export const SORTABLE_ID_KEY = "_sortableId";
|
|
@@ -45,7 +44,6 @@ export function SortableList<T>({
|
|
|
45
44
|
renderItemContent,
|
|
46
45
|
setItems,
|
|
47
46
|
isExpandNewItem = false,
|
|
48
|
-
isOverrides = false,
|
|
49
47
|
}: SortableListProps<T>) {
|
|
50
48
|
const [sortedItems, setSortedItems] = useState(items);
|
|
51
49
|
|
|
@@ -99,7 +97,6 @@ export function SortableList<T>({
|
|
|
99
97
|
);
|
|
100
98
|
|
|
101
99
|
function handleDragEnd(event) {
|
|
102
|
-
if (isOverrides) return;
|
|
103
100
|
const { active, over } = event;
|
|
104
101
|
|
|
105
102
|
if (active.id !== over.id) {
|
|
@@ -52,8 +52,6 @@ export interface SortableTreeItemProps {
|
|
|
52
52
|
className: string;
|
|
53
53
|
};
|
|
54
54
|
setIsExpanded?: () => void;
|
|
55
|
-
isOverride?: boolean;
|
|
56
|
-
isProduct?: boolean;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
export function SortableTreeItem({
|
|
@@ -80,8 +78,6 @@ export function SortableTreeItem({
|
|
|
80
78
|
edit,
|
|
81
79
|
secondaryBadge,
|
|
82
80
|
setIsExpanded,
|
|
83
|
-
isOverride,
|
|
84
|
-
isProduct = false,
|
|
85
81
|
}: SortableTreeItemProps) {
|
|
86
82
|
const [expanded, setExpanded] = useState(isExpanded);
|
|
87
83
|
const [isModalVisible, setIsModalVisible] = useState(isNewAdded);
|
|
@@ -102,7 +98,6 @@ export function SortableTreeItem({
|
|
|
102
98
|
transform: dragTransform,
|
|
103
99
|
} = useDraggable({
|
|
104
100
|
id,
|
|
105
|
-
disabled: isOverride,
|
|
106
101
|
});
|
|
107
102
|
|
|
108
103
|
const onHandleExpand = useCallback(
|
|
@@ -150,7 +145,6 @@ export function SortableTreeItem({
|
|
|
150
145
|
};
|
|
151
146
|
|
|
152
147
|
const onEdit = (e) => {
|
|
153
|
-
if (isOverride && !isProduct) return;
|
|
154
148
|
e.stopPropagation();
|
|
155
149
|
if (edit && !isModalVisible) edit();
|
|
156
150
|
setIsModalVisible(true);
|
|
@@ -372,7 +366,7 @@ export function SortableTreeItem({
|
|
|
372
366
|
items={sortableItems}
|
|
373
367
|
strategy={verticalListSortingStrategy}
|
|
374
368
|
>
|
|
375
|
-
<Collapse
|
|
369
|
+
<Collapse in={expanded}>
|
|
376
370
|
<div className="ml-0">{children}</div>
|
|
377
371
|
</Collapse>
|
|
378
372
|
</SortableContext>
|
|
@@ -61,9 +61,9 @@ export const ManualDatePicker = ({
|
|
|
61
61
|
disabled={isDisabled}
|
|
62
62
|
>
|
|
63
63
|
<option value="">{t("Design:monthShort")}</option>
|
|
64
|
-
{MONTHS_ARRAY.map((
|
|
65
|
-
<option key={
|
|
66
|
-
{
|
|
64
|
+
{MONTHS_ARRAY.map((key) => (
|
|
65
|
+
<option key={key} value={key}>
|
|
66
|
+
{key}
|
|
67
67
|
</option>
|
|
68
68
|
))}
|
|
69
69
|
</Form.Control>
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
generateDatesArray,
|
|
3
|
-
generateMonthsOptionsArray,
|
|
4
|
-
generateYearsArray,
|
|
5
|
-
} from "../utils";
|
|
1
|
+
import { generateDatesArray, generateYearsArray } from "../utils";
|
|
6
2
|
|
|
7
3
|
export const DAYS_ARRAY = generateDatesArray(1, 31, 1);
|
|
8
|
-
export const MONTHS_ARRAY =
|
|
4
|
+
export const MONTHS_ARRAY = generateDatesArray(1, 12, 1);
|
|
9
5
|
export const YEARS_ARRAY = generateYearsArray();
|
|
@@ -4,17 +4,6 @@ export const generateDatesArray = (start: number, end: number, step: number) =>
|
|
|
4
4
|
(_, index) => 1 + index * step
|
|
5
5
|
);
|
|
6
6
|
|
|
7
|
-
export const generateMonthsOptionsArray = () =>
|
|
8
|
-
Array.from({ length: 12 }, (_, index) => {
|
|
9
|
-
const value = index + 1;
|
|
10
|
-
let key = String(value);
|
|
11
|
-
if (value < 10) {
|
|
12
|
-
key = `0${key}`;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return { key, value };
|
|
16
|
-
});
|
|
17
|
-
|
|
18
7
|
export const generateYearsArray = () => {
|
|
19
8
|
const currentYear = new Date().getFullYear();
|
|
20
9
|
const ageBackYear = currentYear - 100;
|
|
@@ -23,7 +23,7 @@ export function BooleanSwitch({
|
|
|
23
23
|
const { t } = useTranslation("Design");
|
|
24
24
|
|
|
25
25
|
const options: SelectItem[] = [
|
|
26
|
-
{ id: 1, value: firstValueTitle ??
|
|
26
|
+
{ id: 1, value: firstValueTitle ?? t("yes") },
|
|
27
27
|
{ id: 0, value: secondValueTitle ?? t("no") },
|
|
28
28
|
];
|
|
29
29
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@import "../snippet-templates/snippetVariables";
|
|
2
|
-
@import "../themes//bookedit/variables";
|
|
3
2
|
|
|
4
3
|
.iframe-event-card {
|
|
5
4
|
position: relative;
|
|
@@ -19,27 +18,12 @@
|
|
|
19
18
|
background-size: cover;
|
|
20
19
|
background-position: center;
|
|
21
20
|
cursor: pointer;
|
|
21
|
+
border: 1px solid transparent;
|
|
22
22
|
border-radius: 0.5rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.card-body {
|
|
26
|
-
padding: 0.5rem 0 0.875rem
|
|
27
|
-
|
|
28
|
-
@include media-breakpoint-down(sm) {
|
|
29
|
-
padding: 1rem 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__info-icon {
|
|
34
|
-
position: absolute;
|
|
35
|
-
right: 1rem;
|
|
36
|
-
top: 1rem;
|
|
37
|
-
background-color: "#ffffff";
|
|
38
|
-
border-radius: 1.5rem;
|
|
39
|
-
padding: 0 0.5rem;
|
|
40
|
-
font-size: 0.75rem;
|
|
41
|
-
font-weight: $white;
|
|
42
|
-
border: 1px solid $black;
|
|
26
|
+
padding: 0.5rem 0 0.875rem;
|
|
43
27
|
}
|
|
44
28
|
|
|
45
29
|
&__title {
|
|
@@ -49,7 +33,7 @@
|
|
|
49
33
|
line-height: 1.25rem;
|
|
50
34
|
cursor: pointer;
|
|
51
35
|
margin-bottom: 0.5rem;
|
|
52
|
-
font-size:
|
|
36
|
+
font-size: 1.125rem;
|
|
53
37
|
}
|
|
54
38
|
|
|
55
39
|
&__label {
|
|
@@ -98,8 +82,7 @@
|
|
|
98
82
|
color: $snippet-elements-button-color;
|
|
99
83
|
border: none;
|
|
100
84
|
background-color: $snippet-elements-button-background-color;
|
|
101
|
-
box-shadow: 0 0 0 $input-btn-focus-width
|
|
102
|
-
$snippet-elements-button-background-color;
|
|
85
|
+
box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
|
|
103
86
|
}
|
|
104
87
|
|
|
105
88
|
&:disabled {
|
|
@@ -112,14 +95,14 @@
|
|
|
112
95
|
&:focus,
|
|
113
96
|
&.focus {
|
|
114
97
|
&:not(:disabled) {
|
|
115
|
-
opacity:
|
|
98
|
+
opacity: .7;
|
|
116
99
|
}
|
|
117
100
|
}
|
|
118
101
|
|
|
119
102
|
&:active,
|
|
120
103
|
&.active {
|
|
121
104
|
&:not(:disabled) {
|
|
122
|
-
opacity:
|
|
105
|
+
opacity: .8;
|
|
123
106
|
}
|
|
124
107
|
}
|
|
125
108
|
}
|
|
@@ -140,7 +123,7 @@
|
|
|
140
123
|
}
|
|
141
124
|
|
|
142
125
|
.card-text {
|
|
143
|
-
font-size: 0.
|
|
126
|
+
font-size: 0.875rem;
|
|
144
127
|
}
|
|
145
128
|
|
|
146
129
|
&.event-info {
|
|
@@ -219,6 +202,7 @@
|
|
|
219
202
|
|
|
220
203
|
@media (max-width: 576px) {
|
|
221
204
|
&.list-view {
|
|
205
|
+
|
|
222
206
|
.card-image {
|
|
223
207
|
margin-right: 0.5rem;
|
|
224
208
|
}
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
.left-block {
|
|
13
13
|
flex: 1;
|
|
14
14
|
align-items: stretch;
|
|
15
|
+
border-radius: 0.5rem;
|
|
16
|
+
border-bottom-left-radius: 0;
|
|
17
|
+
border-bottom-right-radius: 0;
|
|
15
18
|
padding: 1rem;
|
|
16
19
|
background-color: $snippet-page-body-left-block-background-color;
|
|
17
20
|
border: 0;
|
|
@@ -30,6 +33,7 @@
|
|
|
30
33
|
display: flex;
|
|
31
34
|
align-items: flex-start;
|
|
32
35
|
justify-content: space-between;
|
|
36
|
+
|
|
33
37
|
.title {
|
|
34
38
|
color: $snippet-elements-body-color;
|
|
35
39
|
margin: 0;
|
|
@@ -60,7 +64,7 @@
|
|
|
60
64
|
overflow-x: hidden;
|
|
61
65
|
scrollbar-width: thin;
|
|
62
66
|
.iframe-event-card {
|
|
63
|
-
border-bottom:
|
|
67
|
+
border-bottom: 2px solid $separator-color;
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
@include media-breakpoint-down(sm) {
|
|
@@ -77,6 +81,8 @@
|
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
.right-block {
|
|
84
|
+
margin-left: 1rem;
|
|
85
|
+
border-radius: 0.5rem;
|
|
80
86
|
height: calc(100% - 1rem);
|
|
81
87
|
max-width: 17.5rem;
|
|
82
88
|
min-width: 17.5rem;
|
|
@@ -109,7 +115,7 @@
|
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
.collapse {
|
|
112
|
-
max-height: calc(100vh -
|
|
118
|
+
max-height: calc(100vh - 19rem);
|
|
113
119
|
transition: none 0s ease 0s;
|
|
114
120
|
|
|
115
121
|
&.show {
|
|
@@ -119,7 +125,7 @@
|
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
@include media-breakpoint-down(sm) {
|
|
122
|
-
max-height:
|
|
128
|
+
max-height: 7.5rem;
|
|
123
129
|
}
|
|
124
130
|
}
|
|
125
131
|
.collapse-with-people-input {
|
|
@@ -145,14 +151,8 @@
|
|
|
145
151
|
}
|
|
146
152
|
|
|
147
153
|
.iframe-event-card {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.card-image {
|
|
151
|
-
border-radius: 0;
|
|
152
|
-
}
|
|
153
|
-
.card-body {
|
|
154
|
-
padding-left: 1rem;
|
|
155
|
-
}
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
border-color: transparent;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.price {
|
|
@@ -262,24 +262,3 @@
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
|
|
266
|
-
.event-list-page-body {
|
|
267
|
-
overflow: auto;
|
|
268
|
-
.left-block {
|
|
269
|
-
.navigation {
|
|
270
|
-
font-size: 1.125rem;
|
|
271
|
-
font-weight: 500;
|
|
272
|
-
padding-bottom: 2.625rem;
|
|
273
|
-
display: flex;
|
|
274
|
-
align-items: flex-start;
|
|
275
|
-
justify-content: space-between;
|
|
276
|
-
margin-top: 0.125rem;
|
|
277
|
-
|
|
278
|
-
.title {
|
|
279
|
-
position: absolute;
|
|
280
|
-
color: $snippet-elements-body-color;
|
|
281
|
-
margin: 0;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
@@ -20,57 +20,55 @@ $base-height: 2.5rem;
|
|
|
20
20
|
transition: $color-transition;
|
|
21
21
|
border: 0;
|
|
22
22
|
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.iframe-page {
|
|
27
|
-
.button-wrapper {
|
|
28
|
-
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
29
|
-
height: $base-height;
|
|
30
|
-
width: $base-height;
|
|
31
|
-
border-radius: $base-height;
|
|
32
|
-
transition: $color-transition;
|
|
33
23
|
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
width: $base-height;
|
|
24
|
+
.button-wrapper {
|
|
25
|
+
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
37
26
|
height: $base-height;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
justify-content: center;
|
|
41
|
-
color: $snippet-page-header-steps-close-button-border-color;
|
|
27
|
+
width: $base-height;
|
|
28
|
+
border-radius: $base-height;
|
|
42
29
|
transition: $color-transition;
|
|
43
30
|
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
.close-button {
|
|
32
|
+
font-size: 1.25rem;
|
|
33
|
+
width: $base-height;
|
|
34
|
+
height: $base-height;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
39
|
+
transition: $color-transition;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
46
44
|
}
|
|
47
|
-
}
|
|
48
45
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
&.close-button {
|
|
47
|
+
margin-left: 1rem;
|
|
48
|
+
}
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
50
|
+
.back-button {
|
|
51
|
+
font-size: 2rem;
|
|
52
|
+
width: $base-height;
|
|
53
|
+
height: $base-height;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
font-weight: lighter;
|
|
58
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
59
|
+
transition: $color-transition;
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
&:hover {
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
}
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
&.back-button {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
margin-right: 1rem;
|
|
71
|
+
}
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
}
|