@licklist/design 0.71.6-dev.6 → 0.71.6-dev.8
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 +1 -0
- 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 +2 -0
- 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 +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +3 -3
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.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 +1 -0
- package/dist/index.js +1 -0
- 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/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 +1 -0
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +1 -0
- package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -0
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -0
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -0
- 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 +3 -7
- 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/FullScreenLoader.d.ts +8 -0
- package/dist/static/loader/FullScreenLoader.d.ts.map +1 -0
- package/dist/static/loader/FullScreenLoader.js +41 -0
- package/dist/static/loader/LoaderIndicator.d.ts +2 -3
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +4 -2
- package/dist/static/loader/index.d.ts +1 -0
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -3
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/dist/styles/static/Loader.scss +9 -0
- package/package.json +1 -1
- package/src/auth/Layout/AuthNavComponent.tsx +4 -0
- package/src/auth/Login/LoginComponent.tsx +2 -0
- package/src/auth/Login/LoginFormComponent.tsx +2 -0
- package/src/auth/Register/RegisterComponent.tsx +2 -0
- package/src/auth/Register/RegisterFormComponent.tsx +4 -0
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +4 -0
- package/src/auth/Router.tsx +2 -0
- 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 +9 -7
- package/src/events/event-card/utils.ts +10 -9
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +3 -4
- package/src/events/event-statistic-modal/utils/index.ts +2 -1
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -6
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +0 -3
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +13 -11
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +7 -7
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +1 -2
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +19 -20
- package/src/notification/email-template/card/EmailTemplateCard.tsx +2 -0
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +2 -0
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +3 -4
- package/src/product-set/form/VenueMapsControl.tsx +1 -1
- package/src/setting/admin/AdminSettingForm.tsx +4 -0
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +1 -8
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/loader/FullScreenLoader.tsx +16 -0
- package/src/static/loader/LoaderIndicator.tsx +6 -3
- package/src/static/loader/index.ts +1 -0
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -3
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/src/styles/static/Loader.scss +9 -0
- package/yarn.lock +323 -298
|
@@ -29,7 +29,6 @@ import {
|
|
|
29
29
|
import { NumberInput } from '../../../iframe/order-process/components/CategoryProduct/components/NumberInput'
|
|
30
30
|
import { SnippetTemplateContext } from '../context/snippetTemplate'
|
|
31
31
|
|
|
32
|
-
|
|
33
32
|
const DEFAULT_IMAGE =
|
|
34
33
|
'https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&auto=format&fit=crop&w=687&q=80'
|
|
35
34
|
|
|
@@ -58,7 +57,7 @@ export function Preview({
|
|
|
58
57
|
|
|
59
58
|
const [currentDate, setCurrentDate] = useState<DateTime>(defaultStartDay)
|
|
60
59
|
const [selectedDate, setSelectedDate] = useState<DateTime | null>(null)
|
|
61
|
-
const calendarDates = getMonthCalendarDates(currentDate)
|
|
60
|
+
const calendarDates = getMonthCalendarDates({ initialDate: currentDate })
|
|
62
61
|
|
|
63
62
|
return (
|
|
64
63
|
<div className='w-100 h-100 snippet-template-preview'>
|
|
@@ -309,7 +308,6 @@ export function Preview({
|
|
|
309
308
|
productCategoryId: 57,
|
|
310
309
|
productGroupId: null,
|
|
311
310
|
availableQuantity: 980,
|
|
312
|
-
zoneId: null,
|
|
313
311
|
name: 'Cofee',
|
|
314
312
|
description: '',
|
|
315
313
|
price: 15,
|
|
@@ -318,8 +316,6 @@ export function Preview({
|
|
|
318
316
|
maxQuantity: 15,
|
|
319
317
|
totalQuantity: 980,
|
|
320
318
|
type: 'sale' as const,
|
|
321
|
-
capacity: 0,
|
|
322
|
-
duration: 0,
|
|
323
319
|
weight: 0,
|
|
324
320
|
isAvailable: true,
|
|
325
321
|
isSoldOut: false,
|
|
@@ -338,7 +334,6 @@ export function Preview({
|
|
|
338
334
|
productCategoryId: 57,
|
|
339
335
|
productGroupId: null,
|
|
340
336
|
availableQuantity: 980,
|
|
341
|
-
zoneId: null,
|
|
342
337
|
name: 'Cofee 2',
|
|
343
338
|
description: '',
|
|
344
339
|
price: 15,
|
|
@@ -347,8 +342,6 @@ export function Preview({
|
|
|
347
342
|
maxQuantity: 15,
|
|
348
343
|
totalQuantity: 980,
|
|
349
344
|
type: 'sale' as const,
|
|
350
|
-
capacity: 0,
|
|
351
|
-
duration: 0,
|
|
352
345
|
weight: 0,
|
|
353
346
|
isAvailable: true,
|
|
354
347
|
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): [number, number, number] => {
|
|
62
62
|
const year = date.getFullYear()
|
|
63
63
|
const month = date.getMonth() + 1
|
|
64
64
|
const monthDate = date.getDate()
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import clsx from 'clsx'
|
|
2
|
+
import { LoaderIndicator, LoaderIndicatorProps } from './LoaderIndicator'
|
|
3
|
+
|
|
4
|
+
interface FullScreenLoaderProps {
|
|
5
|
+
containerClassName?: string
|
|
6
|
+
indicatorProps?: LoaderIndicatorProps
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const FullScreenLoader = ({
|
|
10
|
+
containerClassName,
|
|
11
|
+
indicatorProps,
|
|
12
|
+
}: FullScreenLoaderProps) => (
|
|
13
|
+
<div className={clsx('fullscreen-loader', containerClassName)}>
|
|
14
|
+
<LoaderIndicator {...indicatorProps} />
|
|
15
|
+
</div>
|
|
16
|
+
)
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-pascal-case */
|
|
2
|
-
import {
|
|
2
|
+
import { PropsWithChildren } 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[]
|
|
8
7
|
isLoaded?: boolean
|
|
9
8
|
options?: ILoaderOptions
|
|
10
9
|
className?: string
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
export function LoaderIndicator(
|
|
12
|
+
export function LoaderIndicator(
|
|
13
|
+
props: PropsWithChildren<LoaderIndicatorProps>,
|
|
14
|
+
) {
|
|
14
15
|
const { children, isLoaded, options, className = '' } = props
|
|
15
16
|
|
|
16
17
|
const defaultOptions: ILoaderOptions = {
|
|
@@ -37,6 +38,8 @@ export function LoaderIndicator(props: LoaderIndicatorProps) {
|
|
|
37
38
|
} as ILoaderOptions
|
|
38
39
|
|
|
39
40
|
return (
|
|
41
|
+
// TODO Remove this library, it's deprecated and even removed from npm packages
|
|
42
|
+
// @ts-expect-error
|
|
40
43
|
<ReactLoader.default
|
|
41
44
|
loaded={isLoaded!}
|
|
42
45
|
options={mergedOptions}
|