@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.
Files changed (99) hide show
  1. package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  3. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  4. package/dist/auth/Logout/Logout.js +1 -0
  5. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  6. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  7. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  8. package/dist/auth/Router.d.ts.map +1 -1
  9. package/dist/auth/Router.js +2 -0
  10. package/dist/calendar/utils/index.d.ts +1 -1
  11. package/dist/calendar/utils/index.d.ts.map +1 -1
  12. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  13. package/dist/events/event-card/utils.d.ts.map +1 -1
  14. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  15. package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -1
  16. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  17. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  18. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  19. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
  20. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
  21. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  22. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
  23. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -2
  24. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  25. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +1 -2
  26. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
  27. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -3
  28. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  29. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  30. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  31. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
  32. package/dist/iframe/ryft/RyftPaymentForm.js +1 -0
  33. package/dist/index.js +1 -0
  34. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  35. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  36. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  37. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  38. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  39. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  40. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +1 -0
  41. package/dist/sales/life-time-sales/LifeTimeSalesChart.js +1 -0
  42. package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -0
  43. package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -0
  44. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -0
  45. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  46. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
  47. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  48. package/dist/snippet/snippet-template/preview/Preview.js +3 -7
  49. package/dist/static/date-range-input/utils/index.d.ts +1 -1
  50. package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
  51. package/dist/static/loader/FullScreenLoader.d.ts +8 -0
  52. package/dist/static/loader/FullScreenLoader.d.ts.map +1 -0
  53. package/dist/static/loader/FullScreenLoader.js +41 -0
  54. package/dist/static/loader/LoaderIndicator.d.ts +2 -3
  55. package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
  56. package/dist/static/loader/LoaderIndicator.js +4 -2
  57. package/dist/static/loader/index.d.ts +1 -0
  58. package/dist/static/loader/index.d.ts.map +1 -1
  59. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -3
  60. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
  61. package/dist/styles/static/Loader.scss +9 -0
  62. package/package.json +1 -1
  63. package/src/auth/Layout/AuthNavComponent.tsx +4 -0
  64. package/src/auth/Login/LoginComponent.tsx +2 -0
  65. package/src/auth/Login/LoginFormComponent.tsx +2 -0
  66. package/src/auth/Register/RegisterComponent.tsx +2 -0
  67. package/src/auth/Register/RegisterFormComponent.tsx +4 -0
  68. package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +4 -0
  69. package/src/auth/Router.tsx +2 -0
  70. package/src/calendar/Calendar.stories.tsx +2 -2
  71. package/src/calendar/utils/index.ts +1 -1
  72. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +9 -7
  73. package/src/events/event-card/utils.ts +10 -9
  74. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
  75. package/src/events/event-statistic-modal/hooks/useTableData.tsx +3 -4
  76. package/src/events/event-statistic-modal/utils/index.ts +2 -1
  77. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  78. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -6
  79. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +0 -3
  80. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +13 -11
  81. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +7 -7
  82. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +1 -2
  83. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +19 -20
  84. package/src/notification/email-template/card/EmailTemplateCard.tsx +2 -0
  85. package/src/notification/sms-template/card/SmsTemplateCard.tsx +2 -0
  86. package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
  87. package/src/product-set/control/DateInput.tsx +3 -4
  88. package/src/product-set/form/VenueMapsControl.tsx +1 -1
  89. package/src/setting/admin/AdminSettingForm.tsx +4 -0
  90. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -0
  91. package/src/snippet/snippet-template/preview/Preview.tsx +1 -8
  92. package/src/static/date-range-input/utils/index.ts +1 -1
  93. package/src/static/loader/FullScreenLoader.tsx +16 -0
  94. package/src/static/loader/LoaderIndicator.tsx +6 -3
  95. package/src/static/loader/index.ts +1 -0
  96. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -3
  97. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
  98. package/src/styles/static/Loader.scss +9 -0
  99. 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 { ReactNode } from 'react'
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(props: LoaderIndicatorProps) {
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}
@@ -5,3 +5,4 @@ export { ButtonLoader } from './ButtonLoader'
5
5
  export { SnippetLoader } from './SnippetLoader'
6
6
  export { PaymentLoader } from './PaymentLoader'
7
7
  export type { PaymentLoaderProps } from './PaymentLoader'
8
+ export { FullScreenLoader } from './FullScreenLoader'
@@ -6,7 +6,6 @@
6
6
  font-weight: 300;
7
7
  width: 100%;
8
8
 
9
-
10
9
  .indicator-label {
11
10
  text-overflow: ellipsis;
12
11
  white-space: nowrap;
@@ -25,8 +24,6 @@
25
24
  }
26
25
  }
27
26
 
28
-
29
-
30
27
  .activity-card {
31
28
  .availability-indicator {
32
29
  margin-top: 0.5rem;
@@ -179,7 +179,7 @@
179
179
  .form-disable-box {
180
180
  top: 20rem;
181
181
  }
182
- }
182
+ }
183
183
  }
184
184
 
185
185
  @include media-breakpoint-up(md) {
@@ -27,6 +27,15 @@
27
27
  }
28
28
  }
29
29
 
30
+ .fullscreen-loader {
31
+ width: 100vw;
32
+ height: 100vh;
33
+ position: fixed;
34
+ z-index: 5000;
35
+ top: 0;
36
+ left: 0;
37
+ }
38
+
30
39
  .payment-loader {
31
40
  position: absolute;
32
41
  top: 50%;