@licklist/design 0.71.6-dev.10 → 0.71.6-dev.2
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/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +0 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +0 -2
- package/dist/calendar/utils/index.d.ts +1 -1
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -1
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- 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 +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 +2 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +2 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +2 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +5 -13
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
- package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
- package/dist/index.js +0 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +0 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +0 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
- package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +0 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +7 -3
- package/dist/static/date-range-input/utils/index.d.ts +1 -1
- package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.d.ts +3 -2
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +2 -4
- package/dist/static/loader/index.d.ts +0 -1
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +3 -0
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/dist/styles/static/Loader.scss +0 -9
- package/package.json +3 -3
- package/src/auth/Layout/AuthNavComponent.tsx +0 -4
- package/src/auth/Login/LoginComponent.tsx +0 -2
- package/src/auth/Login/LoginFormComponent.tsx +0 -2
- package/src/auth/Register/RegisterComponent.tsx +0 -2
- package/src/auth/Register/RegisterFormComponent.tsx +0 -4
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
- package/src/auth/Router.tsx +0 -2
- package/src/calendar/Calendar.stories.tsx +2 -2
- package/src/calendar/utils/index.ts +1 -1
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +7 -9
- package/src/events/event-card/utils.ts +9 -10
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +4 -3
- package/src/events/event-statistic-modal/utils/index.ts +1 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -1
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +3 -0
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +10 -16
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +7 -11
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +7 -4
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -1
- package/src/iframe/payment/payment-page/PaymentPage.tsx +2 -4
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +20 -19
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
- package/src/product-set/card/ProductSetCard.tsx +1 -7
- package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
- package/src/product-set/control/DateInput.tsx +4 -3
- package/src/product-set/form/VenueMapsControl.tsx +1 -1
- package/src/sales/modals/refund-modal/RefundModal.tsx +0 -1
- package/src/setting/admin/AdminSettingForm.tsx +0 -4
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
- package/src/snippet/snippet-template/preview/Preview.tsx +8 -1
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/loader/LoaderIndicator.tsx +3 -6
- package/src/static/loader/index.ts +0 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +3 -0
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/src/styles/static/Loader.scss +0 -9
- package/yarn.lock +755 -910
- package/dist/static/loader/FullScreenLoader.d.ts +0 -8
- package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
- package/dist/static/loader/FullScreenLoader.js +0 -41
- package/src/static/loader/FullScreenLoader.tsx +0 -16
|
@@ -198,8 +198,7 @@ export const DateAndRecurrenceInput = ({
|
|
|
198
198
|
move(prevIndex, nextIndex)
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
const errorMessage =
|
|
202
|
-
errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
|
|
201
|
+
const errorMessage = errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
|
|
203
202
|
|
|
204
203
|
useEffect(() => {
|
|
205
204
|
if (fields.length) {
|
|
@@ -309,7 +308,9 @@ export const DateAndRecurrenceInput = ({
|
|
|
309
308
|
})}
|
|
310
309
|
/>
|
|
311
310
|
|
|
312
|
-
<div className='manual-form-error'>
|
|
311
|
+
<div className='manual-form-error'>
|
|
312
|
+
{errorMessage}
|
|
313
|
+
</div>
|
|
313
314
|
</div>
|
|
314
315
|
</OverlayTrigger>
|
|
315
316
|
</Form.Group>
|
|
@@ -195,8 +195,7 @@ export const DateInput = ({
|
|
|
195
195
|
}, 100)
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
const errorMessage =
|
|
199
|
-
errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
|
|
198
|
+
const errorMessage = errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
|
|
200
199
|
|
|
201
200
|
return (
|
|
202
201
|
<Form.Group>
|
|
@@ -285,7 +284,9 @@ export const DateInput = ({
|
|
|
285
284
|
})}
|
|
286
285
|
/>
|
|
287
286
|
|
|
288
|
-
<div className='manual-form-error'>
|
|
287
|
+
<div className='manual-form-error'>
|
|
288
|
+
{errorMessage}
|
|
289
|
+
</div>
|
|
289
290
|
</div>
|
|
290
291
|
</OverlayTrigger>
|
|
291
292
|
</Form.Group>
|
|
@@ -3,9 +3,9 @@ import { Button } from 'react-bootstrap'
|
|
|
3
3
|
import { VenueMap } from '@licklist/core/dist/DataMapper/Product/VenueMapDataMapper'
|
|
4
4
|
import MediaService from '@licklist/plugins/dist/services/Media/MediaService'
|
|
5
5
|
import { PointProduct } from '@licklist/core/dist/DataMapper/Product/PointProductDataMapper'
|
|
6
|
-
import { Product } from '@licklist/core/dist/DataMapper/Product/ProductDataMapper'
|
|
7
6
|
import { FullscreenModal } from '../../modals/fullscreen'
|
|
8
7
|
import { EventVenueMap } from '../../events/event-venue-map'
|
|
8
|
+
import { Product } from '../types'
|
|
9
9
|
|
|
10
10
|
type VenueMapsControlProps = {
|
|
11
11
|
venueMaps?: VenueMap[]
|
|
@@ -145,14 +145,10 @@ export const AdminSettingForm = ({
|
|
|
145
145
|
) && (
|
|
146
146
|
<>
|
|
147
147
|
{t('noCountryIsProvided')}
|
|
148
|
-
{/* TODO fix issue react router types
|
|
149
|
-
@ts-expect-error */}
|
|
150
148
|
<Link
|
|
151
149
|
role='button'
|
|
152
150
|
to={`/provider/${providerMetadata?.providerType}/${providerMetadata?.providableId}/update`}
|
|
153
151
|
>
|
|
154
|
-
{/* TODO fix issue react router types
|
|
155
|
-
@ts-expect-error */}
|
|
156
152
|
{t('here')}
|
|
157
153
|
</Link>
|
|
158
154
|
</>
|
|
@@ -24,8 +24,6 @@ export function SnippetTemplateCard({
|
|
|
24
24
|
return (
|
|
25
25
|
<div className='snippet-template-card'>
|
|
26
26
|
<div className='snippet-template-card-header'>
|
|
27
|
-
{/* TODO fix issue react router types
|
|
28
|
-
@ts-expect-error */}
|
|
29
27
|
<Link to={href}>{name}</Link>
|
|
30
28
|
{hasPermission && !isDefault && (
|
|
31
29
|
<button
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
import { NumberInput } from '../../../iframe/order-process/components/CategoryProduct/components/NumberInput'
|
|
30
30
|
import { SnippetTemplateContext } from '../context/snippetTemplate'
|
|
31
31
|
|
|
32
|
+
|
|
32
33
|
const DEFAULT_IMAGE =
|
|
33
34
|
'https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&auto=format&fit=crop&w=687&q=80'
|
|
34
35
|
|
|
@@ -57,7 +58,7 @@ export function Preview({
|
|
|
57
58
|
|
|
58
59
|
const [currentDate, setCurrentDate] = useState<DateTime>(defaultStartDay)
|
|
59
60
|
const [selectedDate, setSelectedDate] = useState<DateTime | null>(null)
|
|
60
|
-
const calendarDates = getMonthCalendarDates(
|
|
61
|
+
const calendarDates = getMonthCalendarDates(currentDate)
|
|
61
62
|
|
|
62
63
|
return (
|
|
63
64
|
<div className='w-100 h-100 snippet-template-preview'>
|
|
@@ -308,6 +309,7 @@ export function Preview({
|
|
|
308
309
|
productCategoryId: 57,
|
|
309
310
|
productGroupId: null,
|
|
310
311
|
availableQuantity: 980,
|
|
312
|
+
zoneId: null,
|
|
311
313
|
name: 'Cofee',
|
|
312
314
|
description: '',
|
|
313
315
|
price: 15,
|
|
@@ -316,6 +318,8 @@ export function Preview({
|
|
|
316
318
|
maxQuantity: 15,
|
|
317
319
|
totalQuantity: 980,
|
|
318
320
|
type: 'sale' as const,
|
|
321
|
+
capacity: 0,
|
|
322
|
+
duration: 0,
|
|
319
323
|
weight: 0,
|
|
320
324
|
isAvailable: true,
|
|
321
325
|
isSoldOut: false,
|
|
@@ -334,6 +338,7 @@ export function Preview({
|
|
|
334
338
|
productCategoryId: 57,
|
|
335
339
|
productGroupId: null,
|
|
336
340
|
availableQuantity: 980,
|
|
341
|
+
zoneId: null,
|
|
337
342
|
name: 'Cofee 2',
|
|
338
343
|
description: '',
|
|
339
344
|
price: 15,
|
|
@@ -342,6 +347,8 @@ export function Preview({
|
|
|
342
347
|
maxQuantity: 15,
|
|
343
348
|
totalQuantity: 980,
|
|
344
349
|
type: 'sale' as const,
|
|
350
|
+
capacity: 0,
|
|
351
|
+
duration: 0,
|
|
345
352
|
weight: 0,
|
|
346
353
|
isAvailable: true,
|
|
347
354
|
isSoldOut: false,
|
|
@@ -58,7 +58,7 @@ export const stringDatesToInputValue = ({
|
|
|
58
58
|
)} - ${DateTime.fromJSDate(nextEndDate).toFormat(INPUT_DATE_FORMAT)}`
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export const getDateParams = (date: Date)
|
|
61
|
+
export const getDateParams = (date: Date) => {
|
|
62
62
|
const year = date.getFullYear()
|
|
63
63
|
const month = date.getMonth() + 1
|
|
64
64
|
const monthDate = date.getDate()
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-pascal-case */
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react'
|
|
3
3
|
import * as ReactLoader from 'react-loader'
|
|
4
4
|
import ILoaderOptions from '../../types/static/ILoaderOptions'
|
|
5
5
|
|
|
6
6
|
export interface LoaderIndicatorProps {
|
|
7
|
+
children?: ReactNode | ReactNode[]
|
|
7
8
|
isLoaded?: boolean
|
|
8
9
|
options?: ILoaderOptions
|
|
9
10
|
className?: string
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export function LoaderIndicator(
|
|
13
|
-
props: PropsWithChildren<LoaderIndicatorProps>,
|
|
14
|
-
) {
|
|
13
|
+
export function LoaderIndicator(props: LoaderIndicatorProps) {
|
|
15
14
|
const { children, isLoaded, options, className = '' } = props
|
|
16
15
|
|
|
17
16
|
const defaultOptions: ILoaderOptions = {
|
|
@@ -38,8 +37,6 @@ export function LoaderIndicator(
|
|
|
38
37
|
} as ILoaderOptions
|
|
39
38
|
|
|
40
39
|
return (
|
|
41
|
-
// TODO Remove this library, it's deprecated and even removed from npm packages
|
|
42
|
-
// @ts-expect-error
|
|
43
40
|
<ReactLoader.default
|
|
44
41
|
loaded={isLoaded!}
|
|
45
42
|
options={mergedOptions}
|