@licklist/design 0.71.18-dev.1 → 0.71.18-dev.11
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/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -0
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +18 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +295 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +15 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +89 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +14 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +404 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +10 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +87 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +2 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/index.d.ts +2 -0
- package/dist/iframe/ProductWithModifierModal/index.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/utils.d.ts +5 -0
- package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/utils.js +21 -0
- package/dist/iframe/activity-card/ActivityCard.d.ts +1 -2
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +1 -7
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts +2 -1
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +4 -3
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +2 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +15 -2
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -0
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +4 -0
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +29 -2
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +106 -2
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +3 -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 +95 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +23 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +62 -0
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +2 -0
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/constants.js +4 -0
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +6 -0
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +1 -0
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +18 -0
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +83 -10
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +15 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +4 -1
- package/dist/index.js +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +3 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +6 -4
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +24 -5
- package/dist/product-set/form/context.d.ts +3 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/form/context.js +2 -1
- package/dist/product-set/product/ProductControl.d.ts +8 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +25 -1
- package/dist/product-set/utils/index.d.ts +88 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +19 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
- package/dist/sales/coupon/utils/index.d.ts +2 -1
- package/dist/sales/coupon/utils/index.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.d.ts +6 -2
- package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +8 -4
- package/dist/sales/modals/refund-modal/index.d.ts +2 -2
- package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
- package/dist/styles/date-time-button/DateTimeButton.scss +8 -1
- package/dist/styles/events/EditEventModal.scss +2 -0
- package/dist/styles/iframe-page/Page.scss +16 -0
- package/dist/styles/iframe-page/PageBody.scss +4 -0
- package/dist/styles/modals/Modals.scss +16 -0
- package/dist/styles/product-set/EditProductSetElement.scss +1 -0
- package/dist/styles/product-set/ProductSetForm.scss +11 -0
- package/dist/styles/sales/ManualBooking.scss +6 -0
- package/dist/styles/themes/bookedit/index.scss +19 -0
- package/package.json +6 -6
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +212 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +75 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +393 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +98 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +1 -0
- package/src/iframe/ProductWithModifierModal/index.ts +1 -0
- package/src/iframe/ProductWithModifierModal/utils.ts +29 -0
- package/src/iframe/activity-card/ActivityCard.stories.tsx +0 -2
- package/src/iframe/activity-card/ActivityCard.tsx +0 -4
- package/src/iframe/event/ticket-description/TicketDescription.tsx +5 -3
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +21 -1
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -0
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +42 -1
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +155 -75
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +58 -1
- package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +86 -0
- package/src/iframe/order-process/components/CategoryProduct/constants.ts +1 -0
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +25 -0
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +84 -14
- package/src/iframe/payment/order-items-table/utils/index.ts +23 -0
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
- package/src/iframe/payment/payment-page/PaymentPage.tsx +8 -10
- package/src/product-set/form/ProductSetForm.tsx +11 -3
- package/src/product-set/form/ProductsControl.tsx +33 -15
- package/src/product-set/form/context.tsx +5 -0
- package/src/product-set/product/ProductControl.tsx +37 -1
- package/src/product-set/utils/index.ts +19 -0
- package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +2 -2
- package/src/sales/coupon/utils/index.ts +5 -3
- package/src/sales/modals/refund-modal/RefundModal.tsx +15 -6
- package/src/sales/modals/refund-modal/index.ts +7 -2
- package/src/styles/date-time-button/DateTimeButton.scss +8 -1
- package/src/styles/events/EditEventModal.scss +2 -0
- package/src/styles/iframe-page/Page.scss +16 -0
- package/src/styles/iframe-page/PageBody.scss +4 -0
- package/src/styles/modals/Modals.scss +16 -0
- package/src/styles/product-set/EditProductSetElement.scss +1 -0
- package/src/styles/product-set/ProductSetForm.scss +11 -0
- package/src/styles/sales/ManualBooking.scss +6 -0
- package/src/styles/themes/bookedit/index.scss +19 -0
- package/yarn.lock +334 -333
|
@@ -39,6 +39,8 @@ import {
|
|
|
39
39
|
IMAGE_TYPE_IMAGE,
|
|
40
40
|
} from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
|
|
41
41
|
import { FaClipboard } from 'react-icons/fa'
|
|
42
|
+
import { Typeahead } from 'src/typeahead'
|
|
43
|
+
import { convertToTypeaheadOptions } from 'src/sales/coupon/utils'
|
|
42
44
|
import { checkIfZoneCategory } from '@licklist/plugins'
|
|
43
45
|
import { FileUpload } from '../../file-upload'
|
|
44
46
|
import { BooleanSwitch } from '../../static'
|
|
@@ -65,6 +67,14 @@ import { ProductZoneControlValues } from '../product-zone'
|
|
|
65
67
|
import { AdvancedOptions } from './advanced-options'
|
|
66
68
|
import { ProductZonesControl } from '../form/ProductZonesControl'
|
|
67
69
|
|
|
70
|
+
|
|
71
|
+
export interface ModifiersSet {
|
|
72
|
+
id: number
|
|
73
|
+
value?: string
|
|
74
|
+
name?: string
|
|
75
|
+
label?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
68
78
|
// TO DO refactor this file
|
|
69
79
|
// and add correct types
|
|
70
80
|
export interface ProductControlValues
|
|
@@ -88,6 +98,8 @@ export interface ProductControlValues
|
|
|
88
98
|
hasSpecialNotes: boolean
|
|
89
99
|
minSpend?: number | null
|
|
90
100
|
type?: ProductType
|
|
101
|
+
modifiersSetsId?: Array<ModifiersSet>
|
|
102
|
+
modifiersSet?: Array<ModifiersSet>
|
|
91
103
|
weight?: number
|
|
92
104
|
tierId?: number
|
|
93
105
|
images: Image[] | null
|
|
@@ -111,6 +123,7 @@ export interface ProductControlProps<T>
|
|
|
111
123
|
hasTicket?: boolean
|
|
112
124
|
categoryType?: CategoryType
|
|
113
125
|
isOverrides?: boolean
|
|
126
|
+
|
|
114
127
|
}
|
|
115
128
|
|
|
116
129
|
export function ProductControl<T extends FormValues>({
|
|
@@ -126,6 +139,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
126
139
|
categoryType,
|
|
127
140
|
isOverrides = false,
|
|
128
141
|
}: ProductControlProps<T>) {
|
|
142
|
+
|
|
129
143
|
const {
|
|
130
144
|
register,
|
|
131
145
|
control,
|
|
@@ -135,14 +149,16 @@ export function ProductControl<T extends FormValues>({
|
|
|
135
149
|
watch,
|
|
136
150
|
} = useFormContext<T>()
|
|
137
151
|
|
|
138
|
-
const { setLoading } = useContext(ProductSetLoadingContext)
|
|
152
|
+
const { setLoading, modifiersSetList } = useContext(ProductSetLoadingContext)
|
|
139
153
|
const { t } = useTranslation(['Design', 'Validation', 'ProductSet'])
|
|
140
154
|
const [expanded, setExpanded] = useState(false)
|
|
155
|
+
|
|
141
156
|
const [initialImages, setInitialImages] = useState<Image[] | null>(null)
|
|
142
157
|
// @TODO: After checking "isUnlimited" checkbox need to reset field totalQuantity
|
|
143
158
|
const isUnlimited = Boolean(
|
|
144
159
|
watch(`${fieldNamePrefix}.isUnlimited` as Path<T>),
|
|
145
160
|
)
|
|
161
|
+
|
|
146
162
|
const advancedId = useId()
|
|
147
163
|
const nameId = useId()
|
|
148
164
|
|
|
@@ -200,6 +216,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
200
216
|
setInitialImages(formImages as Image[])
|
|
201
217
|
}, [getValues, setInitialImages, fieldNamePrefix])
|
|
202
218
|
|
|
219
|
+
|
|
203
220
|
useEffect(() => {
|
|
204
221
|
if (Array.isArray(images)) {
|
|
205
222
|
setValue(
|
|
@@ -212,6 +229,9 @@ export function ProductControl<T extends FormValues>({
|
|
|
212
229
|
|
|
213
230
|
const quantitySelector = quantityValue ?? '1'
|
|
214
231
|
const quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector as string]
|
|
232
|
+
|
|
233
|
+
const modifierList = convertToTypeaheadOptions(modifiersSetList)
|
|
234
|
+
|
|
215
235
|
return (
|
|
216
236
|
<>
|
|
217
237
|
<Row>
|
|
@@ -354,6 +374,22 @@ export function ProductControl<T extends FormValues>({
|
|
|
354
374
|
</Form.Group>
|
|
355
375
|
</Col>
|
|
356
376
|
</Row>
|
|
377
|
+
<Row>
|
|
378
|
+
<Col>
|
|
379
|
+
<Form.Group className='mb-3'>
|
|
380
|
+
<Form.Label>{t('Design:addModifierSet')}</Form.Label>
|
|
381
|
+
<Typeahead
|
|
382
|
+
name='modifierList'
|
|
383
|
+
options={modifierList}
|
|
384
|
+
{...register(`${fieldNamePrefix}.modifiersSet` as Path<T>)}
|
|
385
|
+
isMultipleChoise
|
|
386
|
+
isCouponForm
|
|
387
|
+
placeholder={t('Design:choose')}
|
|
388
|
+
noOptionsMessage={t('Design:noSelectedModifier')}
|
|
389
|
+
/>
|
|
390
|
+
</Form.Group>
|
|
391
|
+
</Col>
|
|
392
|
+
</Row>
|
|
357
393
|
|
|
358
394
|
<Row className='my-4 mx-0 d-flex flex-column'>
|
|
359
395
|
{isZoneCategory && (
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { EmailTemplate } from '@licklist/core/dist/DataMapper/Notification/EmailTemplateDataMapper'
|
|
2
2
|
import { SmsTemplate } from '@licklist/core/dist/DataMapper/Notification/SmsTemplateDataMapper'
|
|
3
|
+
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
|
|
4
|
+
import { convertToTypeaheadOptions } from 'src/sales/coupon/utils'
|
|
3
5
|
import { TFunction } from 'react-i18next'
|
|
4
6
|
import { UseFormSetError } from 'react-hook-form'
|
|
5
7
|
import { checkIfZoneCategory } from '@licklist/plugins'
|
|
@@ -7,6 +9,7 @@ import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDat
|
|
|
7
9
|
import { TemplateItem } from '../control/ProductSetControl'
|
|
8
10
|
import { ProductSetFormValues } from '../form/ProductSetForm'
|
|
9
11
|
|
|
12
|
+
|
|
10
13
|
interface CheckAvailableTimesErrors {
|
|
11
14
|
values: ProductSetFormValues
|
|
12
15
|
setError: UseFormSetError<ProductSetFormValues>
|
|
@@ -58,6 +61,22 @@ export const getFilteredTemplates = (
|
|
|
58
61
|
}))
|
|
59
62
|
}
|
|
60
63
|
|
|
64
|
+
export const updateModifiersSetAtProductSetForm = (data: ProductSetFormValues) => ({
|
|
65
|
+
...data,
|
|
66
|
+
steps: data.steps.map(step => ({
|
|
67
|
+
...step,
|
|
68
|
+
productCategories: step.productCategories.map(category => ({
|
|
69
|
+
...category,
|
|
70
|
+
products: category.products.map(product => ({
|
|
71
|
+
...product,
|
|
72
|
+
modifiersSet: product?.modifiersSet
|
|
73
|
+
? convertToTypeaheadOptions(product.modifiersSet as ModifierSet[])
|
|
74
|
+
: [],
|
|
75
|
+
})),
|
|
76
|
+
})),
|
|
77
|
+
})),
|
|
78
|
+
});
|
|
79
|
+
|
|
61
80
|
export const checkAvailableTimesErrors = ({
|
|
62
81
|
values,
|
|
63
82
|
setError,
|
|
@@ -52,13 +52,13 @@ export const ReportRunnerModal = ({
|
|
|
52
52
|
generate,
|
|
53
53
|
download,
|
|
54
54
|
onEdit,
|
|
55
|
-
providerId
|
|
55
|
+
providerId,
|
|
56
56
|
}: ReportRunnerModalProps) => {
|
|
57
57
|
const { t } = useTranslation(['App', 'Design'])
|
|
58
58
|
const report = reports?.find((report) => report.id === reportId)
|
|
59
59
|
|
|
60
60
|
const { data: reportFields = [], isLoading: isLoadingReportFields } =
|
|
61
|
-
useShowReportFields(report?.type
|
|
61
|
+
useShowReportFields(report?.type)
|
|
62
62
|
|
|
63
63
|
const {
|
|
64
64
|
handleSubmit,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
|
|
1
3
|
import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper'
|
|
2
4
|
|
|
3
|
-
export const convertToTypeaheadOptions = (productGroups?: ProductGroup[]) => {
|
|
5
|
+
export const convertToTypeaheadOptions = (productGroups?: ProductGroup[] | ModifierSet[]) => {
|
|
4
6
|
if (!productGroups || !productGroups.length) {
|
|
5
7
|
return []
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
return productGroups.map(({ id, name }: ProductGroup) => ({
|
|
10
|
+
return productGroups.map(({ id, name }: ProductGroup | ModifierSet ) => ({
|
|
9
11
|
id: Number(id),
|
|
10
12
|
value: name,
|
|
11
|
-
label: name,
|
|
13
|
+
label: name ,
|
|
12
14
|
}))
|
|
13
15
|
}
|
|
@@ -9,9 +9,18 @@ import { FaTimes } from 'react-icons/fa'
|
|
|
9
9
|
import { EXTENDED_PAYMENT_TYPE_TRANSLATION_KEYS } from '../../constants'
|
|
10
10
|
import { CurrencyNumberInput } from '../../../static/CurrencyNumberInput'
|
|
11
11
|
|
|
12
|
+
export const FULL_REFUND_TYPE = 'fullRefund'
|
|
13
|
+
export const PARTIAL_REFUND_TYPE = 'partialRefund'
|
|
14
|
+
export const NET_REFUND_TYPE = 'netRefund'
|
|
15
|
+
|
|
16
|
+
export type RefundType =
|
|
17
|
+
| typeof FULL_REFUND_TYPE
|
|
18
|
+
| typeof PARTIAL_REFUND_TYPE
|
|
19
|
+
| typeof NET_REFUND_TYPE
|
|
20
|
+
|
|
12
21
|
export interface RefundModalProps {
|
|
13
22
|
isVisible: boolean
|
|
14
|
-
|
|
23
|
+
refundType?: RefundType
|
|
15
24
|
onHide: () => void
|
|
16
25
|
onSubmit: (amount?: number) => void
|
|
17
26
|
isLoading?: boolean
|
|
@@ -29,12 +38,14 @@ export const RefundModal = ({
|
|
|
29
38
|
onHide,
|
|
30
39
|
onSubmit,
|
|
31
40
|
isLoading = false,
|
|
32
|
-
|
|
41
|
+
refundType = PARTIAL_REFUND_TYPE,
|
|
33
42
|
paymentType,
|
|
34
43
|
defaultValue = 0,
|
|
35
44
|
maxValue,
|
|
36
45
|
}: RefundModalProps) => {
|
|
37
46
|
const { t } = useTranslation(['Design', 'Validation'])
|
|
47
|
+
const isInputDisabled =
|
|
48
|
+
isLoading || refundType === 'fullRefund' || refundType === 'netRefund'
|
|
38
49
|
|
|
39
50
|
const {
|
|
40
51
|
handleSubmit,
|
|
@@ -64,9 +75,7 @@ export const RefundModal = ({
|
|
|
64
75
|
>
|
|
65
76
|
<Form onSubmit={handleSubmit(onModalSubmit)}>
|
|
66
77
|
<ModalHeader className='align-items-center border-0'>
|
|
67
|
-
<ModalTitle as='h5'>
|
|
68
|
-
{t(isFullRefund ? 'Design:fullRefund' : 'Design:partialRefund')}
|
|
69
|
-
</ModalTitle>
|
|
78
|
+
<ModalTitle as='h5'>{t(`Design:${refundType}`)}</ModalTitle>
|
|
70
79
|
|
|
71
80
|
<Button variant='danger' className='btn-sm rounded' onClick={onHide}>
|
|
72
81
|
<FaTimes size={20} />
|
|
@@ -111,7 +120,7 @@ export const RefundModal = ({
|
|
|
111
120
|
},
|
|
112
121
|
})}
|
|
113
122
|
step={0.01}
|
|
114
|
-
disabled={
|
|
123
|
+
disabled={isInputDisabled}
|
|
115
124
|
isInvalid={!!errors.amount}
|
|
116
125
|
min={0}
|
|
117
126
|
/>
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
1
|
+
export {
|
|
2
|
+
RefundModal,
|
|
3
|
+
FULL_REFUND_TYPE,
|
|
4
|
+
NET_REFUND_TYPE,
|
|
5
|
+
PARTIAL_REFUND_TYPE,
|
|
6
|
+
} from './RefundModal'
|
|
7
|
+
export type { RefundModalProps, RefundType } from './RefundModal'
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
&.disabled {
|
|
35
35
|
border: 2px solid $snippet-calendar-disabled-button-border-color;
|
|
36
|
-
background-color:transparent;
|
|
36
|
+
background-color: transparent;
|
|
37
37
|
border: none;
|
|
38
38
|
color: $snippet-calendar-disabled-button-font-color;
|
|
39
39
|
cursor: not-allowed;
|
|
@@ -105,3 +105,10 @@
|
|
|
105
105
|
font-weight: 300;
|
|
106
106
|
color: $snippet-calendar-button-font-color;
|
|
107
107
|
}
|
|
108
|
+
|
|
109
|
+
.modifier-price {
|
|
110
|
+
font-size: 1rem;
|
|
111
|
+
line-height: 1.03rem;
|
|
112
|
+
font-weight: 500;
|
|
113
|
+
color: $snippet-calendar-button-font-color;
|
|
114
|
+
}
|
|
@@ -24,6 +24,22 @@
|
|
|
24
24
|
min-width: auto;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.manual-booking-form-modal {
|
|
28
|
+
width: 40vw !important;
|
|
29
|
+
left: 60vh;
|
|
30
|
+
|
|
31
|
+
.modal-content {
|
|
32
|
+
height: 96vh;
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include media-breakpoint-down(sm) {
|
|
37
|
+
width: 100vw !important;
|
|
38
|
+
left: 0;
|
|
39
|
+
top: 10% !important;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
27
43
|
.header-block {
|
|
28
44
|
margin-bottom: 1rem;
|
|
29
45
|
}
|
|
@@ -6,6 +6,22 @@
|
|
|
6
6
|
z-index: 1080;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.manual-booking-form-modal {
|
|
10
|
+
width: 40vw !important;
|
|
11
|
+
left: 66vw;
|
|
12
|
+
|
|
13
|
+
.modal-content {
|
|
14
|
+
min-height: 95vh;
|
|
15
|
+
margin-left: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include media-breakpoint-down(sm) {
|
|
19
|
+
width: 100vw !important;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 10% !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
9
25
|
.confirm-modal {
|
|
10
26
|
z-index: 1081;
|
|
11
27
|
}
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
font-weight: 600;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
.modifier-badge {
|
|
62
|
+
font-size: 0.5rem;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
.step-badge {
|
|
62
67
|
background-color: #ffdbdb;
|
|
63
68
|
color: #d52902;
|
|
@@ -81,6 +86,12 @@
|
|
|
81
86
|
background-color: #e9f5ea;
|
|
82
87
|
color: #269b36;
|
|
83
88
|
}
|
|
89
|
+
|
|
90
|
+
.modifier-badge {
|
|
91
|
+
background-color: #e9f5ea;
|
|
92
|
+
color: #269b36;
|
|
93
|
+
height: 1rem;
|
|
94
|
+
}
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
.product-set-mobile-footer {
|
|
@@ -51,6 +51,25 @@
|
|
|
51
51
|
border-bottom: 1px solid #f0f0f0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
.modifier-header {
|
|
55
|
+
background-color: color('white');
|
|
56
|
+
padding: 0 2.5rem;
|
|
57
|
+
z-index: 2;
|
|
58
|
+
margin-top: 1rem;
|
|
59
|
+
min-height: 2rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.modifier-container {
|
|
63
|
+
background-color: color('white');
|
|
64
|
+
padding-bottom: 1rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.modifier-set-container {
|
|
68
|
+
background-color: color('white');
|
|
69
|
+
border-bottom: 2px solid #f0f0f0;
|
|
70
|
+
padding-bottom: 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
54
73
|
.header-user-image {
|
|
55
74
|
width: 3rem;
|
|
56
75
|
height: 3rem;
|