@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.
Files changed (111) 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 +0 -1
  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 +0 -2
  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 +2 -1
  20. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +2 -1
  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 +2 -1
  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 +2 -1
  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 +5 -13
  28. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  29. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  30. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  31. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  32. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  33. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  34. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  35. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
  36. package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
  37. package/dist/index.js +0 -1
  38. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  39. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  40. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  41. package/dist/product-set/card/ProductSetCard.js +0 -1
  42. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  43. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  44. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  45. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  46. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +0 -1
  47. package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
  48. package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
  49. package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
  50. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
  51. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  52. package/dist/sales/modals/refund-modal/RefundModal.js +0 -1
  53. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  54. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
  55. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  56. package/dist/snippet/snippet-template/preview/Preview.js +7 -3
  57. package/dist/static/date-range-input/utils/index.d.ts +1 -1
  58. package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
  59. package/dist/static/loader/LoaderIndicator.d.ts +3 -2
  60. package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
  61. package/dist/static/loader/LoaderIndicator.js +2 -4
  62. package/dist/static/loader/index.d.ts +0 -1
  63. package/dist/static/loader/index.d.ts.map +1 -1
  64. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +3 -0
  65. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
  66. package/dist/styles/static/Loader.scss +0 -9
  67. package/package.json +3 -3
  68. package/src/auth/Layout/AuthNavComponent.tsx +0 -4
  69. package/src/auth/Login/LoginComponent.tsx +0 -2
  70. package/src/auth/Login/LoginFormComponent.tsx +0 -2
  71. package/src/auth/Register/RegisterComponent.tsx +0 -2
  72. package/src/auth/Register/RegisterFormComponent.tsx +0 -4
  73. package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
  74. package/src/auth/Router.tsx +0 -2
  75. package/src/calendar/Calendar.stories.tsx +2 -2
  76. package/src/calendar/utils/index.ts +1 -1
  77. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +7 -9
  78. package/src/events/event-card/utils.ts +9 -10
  79. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
  80. package/src/events/event-statistic-modal/hooks/useTableData.tsx +4 -3
  81. package/src/events/event-statistic-modal/utils/index.ts +1 -2
  82. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
  83. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -1
  84. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +3 -0
  85. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +10 -16
  86. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +7 -11
  87. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +7 -4
  88. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -1
  89. package/src/iframe/payment/payment-page/PaymentPage.tsx +2 -4
  90. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +20 -19
  91. package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
  92. package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
  93. package/src/product-set/card/ProductSetCard.tsx +1 -7
  94. package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
  95. package/src/product-set/control/DateInput.tsx +4 -3
  96. package/src/product-set/form/VenueMapsControl.tsx +1 -1
  97. package/src/sales/modals/refund-modal/RefundModal.tsx +0 -1
  98. package/src/setting/admin/AdminSettingForm.tsx +0 -4
  99. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
  100. package/src/snippet/snippet-template/preview/Preview.tsx +8 -1
  101. package/src/static/date-range-input/utils/index.ts +1 -1
  102. package/src/static/loader/LoaderIndicator.tsx +3 -6
  103. package/src/static/loader/index.ts +0 -1
  104. package/src/styles/availability-indicator/AvailabilityIndicator.scss +3 -0
  105. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
  106. package/src/styles/static/Loader.scss +0 -9
  107. package/yarn.lock +755 -910
  108. package/dist/static/loader/FullScreenLoader.d.ts +0 -8
  109. package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
  110. package/dist/static/loader/FullScreenLoader.js +0 -41
  111. 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'>{errorMessage}</div>
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'>{errorMessage}</div>
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[]
@@ -110,7 +110,6 @@ export const RefundModal = ({
110
110
  }) as string
111
111
  },
112
112
  })}
113
- step={0.01}
114
113
  disabled={isLoading || isFullRefund}
115
114
  isInvalid={!!errors.amount}
116
115
  min={0}
@@ -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({ initialDate: currentDate })
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): [number, number, number] => {
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 { PropsWithChildren } from 'react'
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}
@@ -5,4 +5,3 @@ 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,6 +6,7 @@
6
6
  font-weight: 300;
7
7
  width: 100%;
8
8
 
9
+
9
10
  .indicator-label {
10
11
  text-overflow: ellipsis;
11
12
  white-space: nowrap;
@@ -24,6 +25,8 @@
24
25
  }
25
26
  }
26
27
 
28
+
29
+
27
30
  .activity-card {
28
31
  .availability-indicator {
29
32
  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,15 +27,6 @@
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
-
39
30
  .payment-loader {
40
31
  position: absolute;
41
32
  top: 50%;