@licklist/design 0.71.18-dev.17 → 0.71.18-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 (145) hide show
  1. package/dist/events/edit-event-modal/IntervalInput.d.ts +1 -2
  2. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  3. package/dist/events/edit-event-modal/IntervalInput.js +4 -4
  4. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  6. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +2 -12
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
  8. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -5
  9. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  10. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -5
  11. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  12. package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -3
  13. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  14. package/dist/iframe/event/ticket-description/TicketDescription.js +7 -10
  15. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  16. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  17. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
  18. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -5
  19. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  20. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -12
  21. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
  22. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  23. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
  24. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  25. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -29
  26. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  27. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
  28. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
  29. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  30. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -95
  31. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  32. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
  33. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  34. package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
  35. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
  36. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  37. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -4
  38. package/dist/index.js +2 -2
  39. package/dist/product-set/form/ProductSetForm.d.ts +1 -3
  40. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  41. package/dist/product-set/form/ProductSetForm.js +4 -6
  42. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  43. package/dist/product-set/form/ProductsControl.js +5 -24
  44. package/dist/product-set/form/context.d.ts +1 -3
  45. package/dist/product-set/form/context.d.ts.map +1 -1
  46. package/dist/product-set/form/context.js +1 -2
  47. package/dist/product-set/product/ProductControl.d.ts +0 -8
  48. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  49. package/dist/product-set/product/ProductControl.js +1 -25
  50. package/dist/product-set/utils/index.d.ts +0 -88
  51. package/dist/product-set/utils/index.d.ts.map +1 -1
  52. package/dist/product-set/utils/index.js +1 -19
  53. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  54. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -1
  55. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
  56. package/dist/sales/coupon/utils/index.d.ts +1 -2
  57. package/dist/sales/coupon/utils/index.d.ts.map +1 -1
  58. package/dist/sales/modals/refund-modal/RefundModal.d.ts +2 -6
  59. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  60. package/dist/sales/modals/refund-modal/RefundModal.js +4 -8
  61. package/dist/sales/modals/refund-modal/index.d.ts +2 -2
  62. package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
  63. package/dist/styles/date-time-button/DateTimeButton.scss +1 -8
  64. package/dist/styles/events/EditEventModal.scss +0 -2
  65. package/dist/styles/iframe-page/Page.scss +0 -16
  66. package/dist/styles/iframe-page/PageBody.scss +0 -4
  67. package/dist/styles/modals/Modals.scss +0 -16
  68. package/dist/styles/product-set/EditProductSetElement.scss +0 -1
  69. package/dist/styles/product-set/ProductSetForm.scss +0 -11
  70. package/dist/styles/sales/ManualBooking.scss +0 -6
  71. package/dist/styles/themes/bookedit/index.scss +0 -19
  72. package/package.json +6 -6
  73. package/src/events/edit-event-modal/IntervalInput.tsx +3 -8
  74. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -13
  75. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -9
  76. package/src/events/event-statistic-modal/utils/index.ts +4 -4
  77. package/src/iframe/event/ticket-description/TicketDescription.tsx +4 -11
  78. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  79. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -24
  80. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
  81. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +1 -42
  82. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
  83. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
  84. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
  85. package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
  86. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
  87. package/src/iframe/payment/payment-page/PaymentPage.tsx +10 -8
  88. package/src/product-set/form/ProductSetForm.tsx +3 -11
  89. package/src/product-set/form/ProductsControl.tsx +15 -33
  90. package/src/product-set/form/context.tsx +0 -5
  91. package/src/product-set/product/ProductControl.tsx +1 -37
  92. package/src/product-set/utils/index.ts +0 -19
  93. package/src/recurrence-input/RecurrenceInput.tsx +5 -3
  94. package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +2 -2
  95. package/src/sales/coupon/utils/index.ts +3 -5
  96. package/src/sales/modals/refund-modal/RefundModal.tsx +6 -15
  97. package/src/sales/modals/refund-modal/index.ts +2 -7
  98. package/src/styles/date-time-button/DateTimeButton.scss +1 -8
  99. package/src/styles/events/EditEventModal.scss +0 -2
  100. package/src/styles/iframe-page/Page.scss +0 -16
  101. package/src/styles/iframe-page/PageBody.scss +0 -4
  102. package/src/styles/modals/Modals.scss +0 -16
  103. package/src/styles/product-set/EditProductSetElement.scss +0 -1
  104. package/src/styles/product-set/ProductSetForm.scss +0 -11
  105. package/src/styles/sales/ManualBooking.scss +0 -6
  106. package/src/styles/themes/bookedit/index.scss +0 -19
  107. package/yarn.lock +376 -377
  108. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
  109. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
  110. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -295
  111. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
  112. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
  113. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -90
  114. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
  115. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
  116. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
  117. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
  118. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
  119. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
  120. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
  121. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
  122. package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
  123. package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
  124. package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
  125. package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
  126. package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
  127. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
  128. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
  129. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
  130. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
  131. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
  132. package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
  133. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
  134. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
  135. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
  136. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
  137. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -76
  138. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
  139. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
  140. package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
  141. package/src/iframe/ProductWithModifierModal/index.ts +0 -1
  142. package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
  143. package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
  144. package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
  145. package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable prefer-destructuring */
2
2
  /* eslint-disable react-hooks/exhaustive-deps */
3
3
  import { DateTime } from 'luxon'
4
- import { useEffect, useReducer, useState } from 'react'
4
+ import { useEffect, useReducer } from 'react'
5
5
  import RRule, { Frequency, Weekday } from 'rrule'
6
6
  import RecurrenceEndInput, { defaultOccurrences } from './RecurrenceEndInput'
7
7
  import RecurrenceIntervalAndFrequencyInput from './RecurrenceIntervalAndFrequencyInput'
@@ -39,8 +39,10 @@ export function RecurrenceInput({
39
39
  // TODO: unhardcode timezone
40
40
  () =>
41
41
  onChange(
42
- RRule.optionsToString({ ...state, tzid: 'Europe/London' })
43
- .replace('RRULE:', '')
42
+ RRule.optionsToString({ ...state, tzid: 'Europe/London' }).replace(
43
+ 'RRULE:',
44
+ '',
45
+ ),
44
46
  ),
45
47
  [state],
46
48
  )
@@ -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,15 +1,13 @@
1
-
2
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
3
1
  import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper'
4
2
 
5
- export const convertToTypeaheadOptions = (productGroups?: ProductGroup[] | ModifierSet[]) => {
3
+ export const convertToTypeaheadOptions = (productGroups?: ProductGroup[]) => {
6
4
  if (!productGroups || !productGroups.length) {
7
5
  return []
8
6
  }
9
7
 
10
- return productGroups.map(({ id, name }: ProductGroup | ModifierSet ) => ({
8
+ return productGroups.map(({ id, name }: ProductGroup) => ({
11
9
  id: Number(id),
12
10
  value: name,
13
- label: name ,
11
+ label: name,
14
12
  }))
15
13
  }
@@ -9,18 +9,9 @@ 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
-
21
12
  export interface RefundModalProps {
22
13
  isVisible: boolean
23
- refundType?: RefundType
14
+ isFullRefund?: boolean
24
15
  onHide: () => void
25
16
  onSubmit: (amount?: number) => void
26
17
  isLoading?: boolean
@@ -38,14 +29,12 @@ export const RefundModal = ({
38
29
  onHide,
39
30
  onSubmit,
40
31
  isLoading = false,
41
- refundType = PARTIAL_REFUND_TYPE,
32
+ isFullRefund = false,
42
33
  paymentType,
43
34
  defaultValue = 0,
44
35
  maxValue,
45
36
  }: RefundModalProps) => {
46
37
  const { t } = useTranslation(['Design', 'Validation'])
47
- const isInputDisabled =
48
- isLoading || refundType === 'fullRefund' || refundType === 'netRefund'
49
38
 
50
39
  const {
51
40
  handleSubmit,
@@ -75,7 +64,9 @@ export const RefundModal = ({
75
64
  >
76
65
  <Form onSubmit={handleSubmit(onModalSubmit)}>
77
66
  <ModalHeader className='align-items-center border-0'>
78
- <ModalTitle as='h5'>{t(`Design:${refundType}`)}</ModalTitle>
67
+ <ModalTitle as='h5'>
68
+ {t(isFullRefund ? 'Design:fullRefund' : 'Design:partialRefund')}
69
+ </ModalTitle>
79
70
 
80
71
  <Button variant='danger' className='btn-sm rounded' onClick={onHide}>
81
72
  <FaTimes size={20} />
@@ -120,7 +111,7 @@ export const RefundModal = ({
120
111
  },
121
112
  })}
122
113
  step={0.01}
123
- disabled={isInputDisabled}
114
+ disabled={isLoading || isFullRefund}
124
115
  isInvalid={!!errors.amount}
125
116
  min={0}
126
117
  />
@@ -1,7 +1,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'
1
+ export { RefundModal } from './RefundModal'
2
+ export type { RefundModalProps } 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,10 +105,3 @@
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
- }
@@ -37,8 +37,6 @@
37
37
  .edit-step-dialog {
38
38
  .custom-checkbox {
39
39
  align-items: unset;
40
- position: relative;
41
- z-index: 0;
42
40
  .form-check-label {
43
41
  margin-top: 1rem;
44
42
  }
@@ -24,22 +24,6 @@
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
-
43
27
  .header-block {
44
28
  margin-bottom: 1rem;
45
29
  }
@@ -10,8 +10,6 @@
10
10
  height: calc(100svh - 5.5rem);
11
11
  }
12
12
 
13
-
14
-
15
13
  .left-block {
16
14
  flex: 1;
17
15
  align-items: stretch;
@@ -27,8 +25,6 @@
27
25
  min-height: calc(100svh - 6.5rem);
28
26
  }
29
27
 
30
-
31
-
32
28
  .navigation {
33
29
  font-size: 1.125rem;
34
30
  font-weight: 500;
@@ -6,22 +6,6 @@
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
-
25
9
  .confirm-modal {
26
10
  z-index: 1081;
27
11
  }
@@ -90,7 +90,6 @@
90
90
  }
91
91
  label.btn-link {
92
92
  width: 4.5rem;
93
- z-index: 0;
94
93
  display: flex;
95
94
  justify-content: center;
96
95
  span {
@@ -58,11 +58,6 @@
58
58
  font-weight: 600;
59
59
  }
60
60
 
61
- .modifier-badge {
62
- font-size: 0.5rem;
63
- font-weight: 400;
64
- }
65
-
66
61
  .step-badge {
67
62
  background-color: #ffdbdb;
68
63
  color: #d52902;
@@ -86,12 +81,6 @@
86
81
  background-color: #e9f5ea;
87
82
  color: #269b36;
88
83
  }
89
-
90
- .modifier-badge {
91
- background-color: #e9f5ea;
92
- color: #269b36;
93
- height: 1rem;
94
- }
95
84
  }
96
85
 
97
86
  .product-set-mobile-footer {
@@ -234,12 +234,6 @@
234
234
  margin-bottom: 2rem;
235
235
  }
236
236
 
237
- .quantity-container-product {
238
- display: flex;
239
- justify-content: center;
240
- margin: 1rem;
241
- }
242
-
243
237
  .save-btn:disabled {
244
238
  background-color: #fafafa;
245
239
  border: none;
@@ -51,25 +51,6 @@
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
-
73
54
  .header-user-image {
74
55
  width: 3rem;
75
56
  height: 3rem;