@licklist/design 0.69.1-dev.4 → 0.69.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 (187) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +1 -2
  3. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
  4. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +2 -3
  6. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +1 -2
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
  8. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +24 -50
  9. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
  10. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  11. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +2 -3
  12. package/dist/iframe/activity-card/ActivityCard.d.ts +4 -5
  13. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  14. package/dist/iframe/activity-card/ActivityCard.js +40 -52
  15. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  16. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  17. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  18. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
  19. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  20. package/dist/iframe/ryft/RyftPaymentForm.d.ts +2 -2
  21. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  22. package/dist/iframe/ryft/RyftPaymentForm.js +2 -8
  23. package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -2
  24. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  25. package/dist/iframe/ryft/utils/ryft-form.js +1 -20
  26. package/dist/index.js +0 -1
  27. package/dist/layout/DropDown.d.ts +1 -2
  28. package/dist/layout/DropDown.d.ts.map +1 -1
  29. package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
  30. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  31. package/dist/modals/confirmation/ConfirmModal.js +8 -172
  32. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  33. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  34. package/dist/product-set/card/ProductSetCard.d.ts +2 -6
  35. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  36. package/dist/product-set/card/ProductSetCard.js +11 -30
  37. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  38. package/dist/product-set/control/DateInput.js +2 -2
  39. package/dist/product-set/control/ProductSetControl.d.ts +0 -4
  40. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  41. package/dist/product-set/control/ProductSetControl.js +3 -24
  42. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  43. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  44. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  45. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  46. package/dist/product-set/form/ProductSetForm.js +1 -64
  47. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  48. package/dist/product-set/form/ProductZonesControl.js +2 -0
  49. package/dist/product-set/form/ProductsControl.js +0 -1
  50. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  51. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  52. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  53. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  54. package/dist/product-set/form/SubProductsControl.js +3 -0
  55. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  56. package/dist/product-set/form/VenueMapsControl.js +3 -0
  57. package/dist/product-set/form/index.d.ts +0 -1
  58. package/dist/product-set/form/index.d.ts.map +1 -1
  59. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  60. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  61. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  62. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  63. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  64. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  65. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  66. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  67. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  68. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  69. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  70. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  71. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  72. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  73. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  74. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  75. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  76. package/dist/product-set/utils/index.d.ts +0 -7
  77. package/dist/product-set/utils/index.d.ts.map +1 -1
  78. package/dist/product-set/utils/index.js +1 -10
  79. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  80. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  81. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  82. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  83. package/dist/resource/form/components/CapacityControl.js +0 -3
  84. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  85. package/dist/resource/form/components/SortControl.js +0 -3
  86. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  87. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  88. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  89. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  90. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  91. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  92. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  93. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  94. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  95. package/dist/snippet/snippet-template/preview/Preview.js +0 -6
  96. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  97. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  98. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  99. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  100. package/dist/static/CurrencyNumberInput.js +0 -3
  101. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  102. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  103. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  104. package/dist/static/number-input/NumberInput.js +0 -3
  105. package/dist/styles/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
  106. package/dist/styles/activity-card/ListActivitiesCard.scss +42 -12
  107. package/dist/styles/activity-card/_index.scss +1 -1
  108. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  109. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  110. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -28
  111. package/dist/styles/sales/BookingResults.scss +1 -1
  112. package/dist/typeahead/Typeahead.d.ts +1 -5
  113. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  114. package/dist/typeahead/Typeahead.js +2 -9
  115. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  116. package/dist/zone/form/components/GameDurationControl.js +0 -3
  117. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  118. package/dist/zone/form/components/SortControl.js +0 -3
  119. package/package.json +6 -8
  120. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  121. package/src/auth/Login/LoginComponent.tsx +1 -1
  122. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +2 -3
  123. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +86 -85
  124. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
  125. package/src/iframe/activity-card/ActivityCard.tsx +24 -35
  126. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  127. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
  128. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  129. package/src/iframe/ryft/RyftPaymentForm.tsx +5 -13
  130. package/src/iframe/ryft/utils/ryft-form.ts +2 -26
  131. package/src/layout/DropDown.tsx +1 -1
  132. package/src/modals/confirmation/ConfirmModal.tsx +3 -19
  133. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  134. package/src/product-set/card/ProductSetCard.tsx +8 -47
  135. package/src/product-set/control/DateInput.tsx +1 -2
  136. package/src/product-set/control/ProductSetControl.tsx +52 -46
  137. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  138. package/src/product-set/form/ProductSetForm.tsx +2 -24
  139. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  140. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  141. package/src/product-set/form/SubProductsControl.tsx +3 -0
  142. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  143. package/src/product-set/form/index.ts +0 -1
  144. package/src/product-set/product/ProductControl.tsx +1 -0
  145. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  146. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  147. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  148. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  149. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  150. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  151. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  152. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  153. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  154. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  155. package/src/product-set/utils/index.ts +0 -11
  156. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  157. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  158. package/src/resource/form/components/CapacityControl.tsx +0 -1
  159. package/src/resource/form/components/SortControl.tsx +0 -1
  160. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  161. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  162. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  163. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  164. package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
  165. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  166. package/src/static/CurrencyNumberInput.tsx +0 -1
  167. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  168. package/src/static/number-input/NumberInput.tsx +0 -1
  169. package/src/styles/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
  170. package/src/styles/activity-card/ListActivitiesCard.scss +42 -12
  171. package/src/styles/activity-card/_index.scss +1 -1
  172. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  173. package/src/styles/product-set/ProductSetForm.scss +0 -22
  174. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -28
  175. package/src/styles/sales/BookingResults.scss +1 -1
  176. package/src/typeahead/Typeahead.tsx +1 -15
  177. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  178. package/src/zone/form/components/SortControl.tsx +0 -1
  179. package/yarn.lock +32 -58
  180. package/dist/product-set/control/ProductSetImageControl.d.ts +0 -2
  181. package/dist/product-set/control/ProductSetImageControl.d.ts.map +0 -1
  182. package/dist/product-set/control/ProductSetImageControl.js +0 -279
  183. package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
  184. package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
  185. package/dist/product-set/form/ProductSetNameControl.js +0 -35
  186. package/src/product-set/control/ProductSetImageControl.tsx +0 -97
  187. package/src/product-set/form/ProductSetNameControl.tsx +0 -27
@@ -1,4 +1,3 @@
1
- import { CSSObjectWithLabel } from 'react-select';
2
1
  export type TypeaheadOptions = {
3
2
  id: number | string;
4
3
  value: any;
@@ -9,14 +8,11 @@ export interface TypeaheadProps {
9
8
  placeholder: string;
10
9
  isRequired?: boolean;
11
10
  name: string;
12
- value?: TypeaheadOptions;
13
11
  isMultipleChoise?: boolean;
14
12
  noOptionsMessage: string;
15
13
  isInvalid?: boolean;
16
14
  isCouponForm?: boolean;
17
- containerStyles?: CSSObjectWithLabel;
18
- onChangeValue?: (value: TypeaheadOptions) => void;
19
15
  }
20
- declare function Typeahead({ options, placeholder, isRequired, isMultipleChoise, name, value, onChangeValue, containerStyles, isCouponForm, noOptionsMessage, isInvalid, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function Typeahead({ options, placeholder, isRequired, isMultipleChoise, name, isCouponForm, noOptionsMessage, isInvalid, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
21
17
  export { Typeahead };
22
18
  //# sourceMappingURL=Typeahead.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Typeahead.d.ts","sourceRoot":"","sources":["../../src/typeahead/Typeahead.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,kBAAkB,CAAA;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;CAClD;AAED,iBAAS,SAAS,CAAC,EACjB,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,gBAAgB,EAChB,IAAS,EACT,KAAK,EACL,aAAa,EACb,eAAe,EACf,YAAoB,EACpB,gBAAqB,EACrB,SAAS,GACV,EAAE,cAAc,2CAoDhB;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"Typeahead.d.ts","sourceRoot":"","sources":["../../src/typeahead/Typeahead.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,iBAAS,SAAS,CAAC,EACjB,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,gBAAgB,EAChB,IAAS,EACT,YAAoB,EACpB,gBAAqB,EACrB,SAAS,GACV,EAAE,cAAc,2CA4ChB;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -31,7 +31,7 @@ function _object_spread(target) {
31
31
  return target;
32
32
  }
33
33
  function Typeahead(param) {
34
- var options = param.options, placeholder = param.placeholder, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, isMultipleChoise = param.isMultipleChoise, _param_name = param.name, name = _param_name === void 0 ? '' : _param_name, value = param.value, onChangeValue = param.onChangeValue, containerStyles = param.containerStyles, _param_isCouponForm = param.isCouponForm, isCouponForm = _param_isCouponForm === void 0 ? false : _param_isCouponForm, _param_noOptionsMessage = param.noOptionsMessage, noOptionsMessage = _param_noOptionsMessage === void 0 ? '' : _param_noOptionsMessage, isInvalid = param.isInvalid;
34
+ var options = param.options, placeholder = param.placeholder, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, isMultipleChoise = param.isMultipleChoise, _param_name = param.name, name = _param_name === void 0 ? '' : _param_name, _param_isCouponForm = param.isCouponForm, isCouponForm = _param_isCouponForm === void 0 ? false : _param_isCouponForm, _param_noOptionsMessage = param.noOptionsMessage, noOptionsMessage = _param_noOptionsMessage === void 0 ? '' : _param_noOptionsMessage, isInvalid = param.isInvalid;
35
35
  var control = useFormContext().control;
36
36
  var getStyle = function() {
37
37
  var couponFormStyle = isCouponForm ? {
@@ -53,21 +53,14 @@ function Typeahead(param) {
53
53
  var field = param.field;
54
54
  return /*#__PURE__*/ jsx(Select, {
55
55
  placeholder: placeholder,
56
- value: value !== null && value !== void 0 ? value : field.value,
56
+ value: field.value,
57
57
  isMulti: isMultipleChoise,
58
58
  styles: {
59
- container: function(base) {
60
- return _object_spread({}, base, containerStyles);
61
- },
62
59
  control: function(base) {
63
60
  return _object_spread({}, base, getStyle());
64
61
  }
65
62
  },
66
63
  onChange: function(value) {
67
- if (onChangeValue) {
68
- onChangeValue(value);
69
- return;
70
- }
71
64
  field.onChange(value);
72
65
  },
73
66
  options: options,
@@ -1 +1 @@
1
- {"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CAgC1B,CAAA"}
1
+ {"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CA+B1B,CAAA"}
@@ -77,9 +77,6 @@ var GameDurationControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
- onWheel: function(event) {
81
- return event.currentTarget.blur();
82
- },
83
80
  placeholder: t('Design:duration'),
84
81
  isInvalid: Boolean(errors.defaultDuration),
85
82
  disabled: isLoading
@@ -1 +1 @@
1
- {"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
1
+ {"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAmC1D,CAAA"}
@@ -77,9 +77,6 @@ var SortControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
- onWheel: function(event) {
81
- return event.currentTarget.blur();
82
- },
83
80
  placeholder: t('Design:ordering'),
84
81
  isInvalid: Boolean(errors.sort),
85
82
  disabled: isLoading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.69.1-dev.4",
3
+ "version": "0.69.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -42,9 +42,9 @@
42
42
  ]
43
43
  },
44
44
  "peerDependencies": {
45
- "@licklist/core": "0.30.0-dev.0",
45
+ "@licklist/core": "0.30.1",
46
46
  "@licklist/eslint-config": "0.5.6",
47
- "@licklist/plugins": "0.33.2-dev.1",
47
+ "@licklist/plugins": "0.33.1",
48
48
  "lodash": "4.17.21",
49
49
  "luxon": "3.5.0",
50
50
  "react": "17.0.2",
@@ -61,9 +61,9 @@
61
61
  "@dnd-kit/utilities": "2.0.0",
62
62
  "@fortawesome/fontawesome-svg-core": "1.2.34",
63
63
  "@fortawesome/free-solid-svg-icons": "5.15.2",
64
- "@licklist/core": "0.30.0-dev.0",
64
+ "@licklist/core": "0.30.1",
65
65
  "@licklist/eslint-config": "0.5.6",
66
- "@licklist/plugins": "0.33.0-dev.0",
66
+ "@licklist/plugins": "0.33.1",
67
67
  "@mantine/core": "6.0.22",
68
68
  "@mantine/hooks": "6.0.22",
69
69
  "@mdx-js/react": "1.6.22",
@@ -202,10 +202,8 @@
202
202
  "yarn tsc"
203
203
  ]
204
204
  },
205
- "packageManager": "yarn@4.4.0",
206
205
  "volta": {
207
206
  "node": "20.9.0",
208
207
  "yarn": "4.4.0"
209
- },
210
- "stableVersion": "0.69.1-dev.3"
208
+ }
211
209
  }
@@ -76,7 +76,6 @@ export const AffiliateForm = ({
76
76
  const copyToClipboard = () =>
77
77
  // eslint-disable-next-line consistent-return
78
78
  window.navigator.clipboard.writeText(formValues.link)
79
-
80
79
  return (
81
80
  <FormProvider {...form}>
82
81
  <Form onSubmit={form.handleSubmit(handleSubmit)}>
@@ -44,7 +44,7 @@ const LoginComponent = ({
44
44
  const handleError = (error: any) => {
45
45
  notification.danger({
46
46
  title: 'Error',
47
- message: error?.response?.data?.message || error.message,
47
+ message: error.message,
48
48
  })
49
49
  }
50
50
 
@@ -17,6 +17,7 @@ import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorServ
17
17
  import { ServerError } from '@licklist/plugins/dist/hooks/Api/useHttpQuery'
18
18
  import { scrollToError } from '@licklist/plugins/dist/utils/ScrollUtils'
19
19
  import { getFirstErrorKey } from '@licklist/plugins/dist/utils/FormValues'
20
+
20
21
  import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
21
22
  import { CategoryGroup } from '../../../../types/categories'
22
23
  import { SaleDeadline } from '../SaleDeadline/SaleDeadline'
@@ -30,6 +31,7 @@ import { FileUpload } from '../../../../file-upload'
30
31
  import { IntervalInput, IntervalInputValues } from '../../IntervalInput'
31
32
  import { SelectEventProductSet } from '../SelectEventProductSet'
32
33
  import { Dialog, useDialogContext } from '../../../../modals/dialog'
34
+
33
35
  import { ProductSetFormValues } from '../../../../product-set/form/ProductSetForm'
34
36
  import { isUrlValid } from '../../utils/isUrlValid'
35
37
 
@@ -63,7 +65,6 @@ export interface EditEventFormProps extends HasPermissionProp {
63
65
  setEditProductSetId: (value: string) => void
64
66
  isExternalPaymentLinkEnabled?: boolean
65
67
  timeZone: string
66
- eventProductSet?: ProductSet
67
68
  }
68
69
 
69
70
  const eventImageTypes = {
@@ -84,7 +85,6 @@ export const EditEventForm = ({
84
85
  setEditProductSetId,
85
86
  isExternalPaymentLinkEnabled,
86
87
  timeZone,
87
- eventProductSet,
88
88
  }: EditEventFormProps) => {
89
89
  const { t } = useTranslation(['Design', 'Validation'])
90
90
 
@@ -405,7 +405,6 @@ export const EditEventForm = ({
405
405
  setShowEditProductSet={setShowEditProductSet}
406
406
  showEditProductSet={showEditProductSet}
407
407
  timeZone={timeZone}
408
- eventProductSet={eventProductSet}
409
408
  />
410
409
 
411
410
  {hasPermission && !showEditProductSet && (
@@ -5,11 +5,9 @@ import { useId } from '@react-aria/utils'
5
5
  import { Controller, useFormContext } from 'react-hook-form'
6
6
  import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission'
7
7
  import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
8
- import { getTypeHeadItemsFromMenus } from '../../../../product-set/utils'
9
8
  import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal'
10
9
  import { EditEventFormValues } from '../EditEventForm/EditEventForm'
11
10
  import { EditEventProductSet } from './component/EditEventProductSet'
12
- import { Typeahead } from '../../../../typeahead'
13
11
 
14
12
  interface SelectEventProductSetProps extends HasPermissionProp {
15
13
  productSets?: ProductSet[]
@@ -18,22 +16,16 @@ interface SelectEventProductSetProps extends HasPermissionProp {
18
16
  createProductSet: (props: EditEventFormValues) => void
19
17
  setEditProductSetId: (value: string) => void
20
18
  timeZone: string
21
- eventProductSet?: ProductSet
22
19
  }
23
20
 
24
21
  export const SelectEventProductSet = ({
25
- productSets: _productSets,
22
+ productSets,
26
23
  createProductSet,
27
24
  setEditProductSetId,
28
25
  showEditProductSet,
29
26
  setShowEditProductSet,
30
27
  timeZone,
31
- eventProductSet,
32
28
  }: SelectEventProductSetProps) => {
33
- const productSets = eventProductSet
34
- ? [..._productSets, eventProductSet]
35
- : _productSets
36
-
37
29
  const { t } = useTranslation(['Design'])
38
30
  const form = useFormContext<EditEventFormValues>()
39
31
 
@@ -50,17 +42,6 @@ export const SelectEventProductSet = ({
50
42
  const productSetId = watch('productSetId')
51
43
  const editedProductSet = watch('editedProductSet')
52
44
 
53
- const typeheadValues = getTypeHeadItemsFromMenus(
54
- editedProductSet
55
- ? productSets.map((productSet) =>
56
- productSet.id === editedProductSet.id ? editedProductSet : productSet,
57
- )
58
- : productSets,
59
- )
60
- const selectedProductSetTypeheadValue = productSetId
61
- ? typeheadValues?.find((typeheadValue) => typeheadValue.id === productSetId)
62
- : undefined
63
-
64
45
  const onEditProductSet = useCallback(
65
46
  () => {
66
47
  setEditProductSetId(String(productSetId))
@@ -114,7 +95,6 @@ export const SelectEventProductSet = ({
114
95
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
115
96
  const onSubmit = (value: EditEventFormValues['editedProductSet']) => {
116
97
  setShowEditProductSet(false)
117
- setValue('productSetId', value.id)
118
98
  setValue('editedProductSet', value)
119
99
  }
120
100
 
@@ -130,72 +110,93 @@ export const SelectEventProductSet = ({
130
110
  <Controller
131
111
  control={control}
132
112
  name='productSetId'
133
- render={() => (
134
- <>
135
- <div className='d-flex align-items-center flex-row w-100'>
136
- <ConfirmModal>
137
- {(confirm) => (
138
- <Typeahead
139
- name='productSetId'
140
- value={selectedProductSetTypeheadValue}
141
- containerStyles={{ width: '100%' }}
142
- onChangeValue={(typeheadValue) => {
143
- onChangeProductSet(Number(typeheadValue.id), confirm)
144
- }}
145
- options={typeheadValues}
146
- placeholder={t('Design:choose')}
147
- noOptionsMessage={t('Design:noAvailableProductSets')}
148
- />
149
- )}
150
- </ConfirmModal>
151
-
152
- <div className='buttons-container'>
153
- {!showEditProductSet && !editedProductSet && (
154
- <Button
155
- variant=''
156
- className='btn product-set-button mr-4'
157
- onClick={handleCreateProductSet}
158
- >
159
- {t('addNewProductSet')}
160
- </Button>
161
- )}
162
- {showOverrideProductSet && (
163
- <Button
164
- variant=''
165
- className='btn product-set-button'
166
- onClick={onEditProductSet}
167
- >
168
- {isOverrideProductSet
169
- ? t('editOverrides')
170
- : t('editProductSet')}
171
- </Button>
172
- )}
173
- {showEditProductSet && (
174
- <Button
175
- variant=''
176
- className='btn product-set-button'
177
- onClick={revertEditProductSet}
178
- >
179
- {t('cancelAndRevert')}
180
- </Button>
181
- )}
182
- {!showEditProductSet && editedProductSet && (
183
- <Button
184
- variant=''
185
- className='btn product-set-button ml-4 text-danger'
186
- onClick={revertEditProductSet}
187
- >
188
- {t('undoChanges')}
189
- </Button>
190
- )}
113
+ render={({ field }) => {
114
+ const fieldValue = String(field.value)
115
+ return (
116
+ <>
117
+ <div className='d-flex align-items-center flex-row w-100'>
118
+ <ConfirmModal>
119
+ {(confirm) => (
120
+ <Form.Control
121
+ as='select'
122
+ onChange={(e) =>
123
+ onChangeProductSet(Number(e.target.value), confirm)
124
+ }
125
+ isInvalid={Boolean(errors.productSetId)}
126
+ value={fieldValue}
127
+ >
128
+ <option value='' hidden>
129
+ {t('Design:chooseProductSet')}
130
+ </option>
131
+ {productSets?.map((productSet) => {
132
+ const isCurrentEditedProductSet =
133
+ editedProductSet &&
134
+ editedProductSet?.id === productSet?.id
135
+ return (
136
+ <option key={productSet.id} value={productSet.id}>
137
+ {isCurrentEditedProductSet ||
138
+ productSet.isOverride
139
+ ? `[${t('edited')}] ${
140
+ isCurrentEditedProductSet
141
+ ? editedProductSet?.name
142
+ : productSet.name
143
+ }`
144
+ : productSet.name}
145
+ </option>
146
+ )
147
+ })}
148
+ </Form.Control>
149
+ )}
150
+ </ConfirmModal>
151
+
152
+ <div className='buttons-container'>
153
+ {!showEditProductSet && !editedProductSet && (
154
+ <Button
155
+ variant=''
156
+ className='btn product-set-button mr-4'
157
+ onClick={handleCreateProductSet}
158
+ >
159
+ {t('addNewProductSet')}
160
+ </Button>
161
+ )}
162
+ {showOverrideProductSet && (
163
+ <Button
164
+ variant=''
165
+ className='btn product-set-button'
166
+ onClick={onEditProductSet}
167
+ >
168
+ {isOverrideProductSet
169
+ ? t('editOverrides')
170
+ : t('editProductSet')}
171
+ </Button>
172
+ )}
173
+ {showEditProductSet && (
174
+ <Button
175
+ variant=''
176
+ className='btn product-set-button'
177
+ onClick={revertEditProductSet}
178
+ >
179
+ {t('cancelAndRevert')}
180
+ </Button>
181
+ )}
182
+ {!showEditProductSet && editedProductSet && (
183
+ <Button
184
+ variant=''
185
+ className='btn product-set-button ml-4 text-danger'
186
+ onClick={revertEditProductSet}
187
+ >
188
+ {t('undoChanges')}
189
+ </Button>
190
+ )}
191
+ </div>
191
192
  </div>
192
- </div>
193
193
 
194
- <Form.Control.Feedback type='invalid'>
195
- {errors?.productSetId?.message}
196
- </Form.Control.Feedback>
197
- </>
198
- )}
194
+ <Form.Control.Feedback type='invalid'>
195
+ {errors?.productSetId?.message}
196
+ </Form.Control.Feedback>
197
+ </>
198
+ )
199
+ }}
199
200
  />
200
201
  </Form.Group>
201
202
  </div>
@@ -12,8 +12,6 @@ export const getDefaultValues = (
12
12
  ): ProductSetFormValues => ({
13
13
  id: productSet?.id ?? 0,
14
14
  name: productSet?.name ?? '',
15
- description: productSet?.description ?? '',
16
- image: productSet?.image,
17
15
  type: productSet?.type ?? DEFAULT_PRODUCT_SET_TYPE,
18
16
  termsAndConditions: productSet?.termsAndConditions ?? '',
19
17
  operationalCost: productSet?.operationalCost ?? DEFAULT_OPERATIONAL_COST_TYPE,
@@ -39,6 +37,7 @@ export const getDefaultValues = (
39
37
  ...product,
40
38
  subProducts: subProducts?.map(({ ...subProducts }) => ({
41
39
  ...subProducts,
40
+ originalProductId: null,
42
41
  productCategoryId: undefined,
43
42
  })),
44
43
  productCategoryId: undefined,
@@ -1,29 +1,27 @@
1
1
  import { ReactNode } from 'react'
2
2
  import clsx from 'clsx'
3
- import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
4
3
 
5
4
  export const LAYOUT_GRID = 'grid'
6
5
  export const LAYOUT_LIST = 'list'
7
6
 
7
+ type Layout = typeof LAYOUT_GRID | typeof LAYOUT_LIST
8
+
8
9
  export type ActivityCardProps = {
9
10
  title: ReactNode
10
11
  duration: ReactNode
11
12
  price: ReactNode
12
- description?: ReactNode
13
13
  onSelect: () => void
14
14
  isSelected: boolean
15
- layout?: typeof LAYOUT_GRID | typeof LAYOUT_LIST
15
+ layout?: Layout
16
16
  availableTimes?: string | null
17
- image?: Image | null
18
17
  }
19
18
 
20
19
  export const ActivityCard = ({
21
20
  title,
22
21
  duration,
23
22
  price,
24
- description,
25
23
  availableTimes,
26
- image,
24
+ // image,
27
25
  onSelect,
28
26
  isSelected,
29
27
  layout = LAYOUT_GRID,
@@ -32,48 +30,39 @@ export const ActivityCard = ({
32
30
  return (
33
31
  <button
34
32
  type='button'
35
- className={clsx('activity-card', { active: isSelected })}
33
+ className={clsx('activity-card', isSelected && 'active')}
36
34
  onClick={onSelect}
37
35
  >
38
- {image && (
39
- <img src={image.url} alt={typeof title === 'string' ? title : ''} />
40
- )}
41
-
42
- <div>
36
+ <div className={clsx('d-flex', 'flex-column')}>
43
37
  <div className='activity-card-title'>{title}</div>
44
38
  {duration && <div>{duration}</div>}
39
+
45
40
  {price && <div>{price}</div>}
46
- {description && (
47
- <div className='mt-2 activity-card-description'>{description}</div>
48
- )}
49
41
  </div>
50
42
  </button>
51
43
  )
52
44
  }
53
45
 
54
46
  return (
55
- <button
56
- type='button'
57
- onClick={onSelect}
58
- className={clsx('activity-card list-activity-card', {
59
- active: isSelected,
60
- })}
61
- >
62
- {image && (
63
- <img src={image.url} alt={typeof title === 'string' ? title : ''} />
64
- )}
47
+ <div role='button' onClick={onSelect} onKeyPress={onSelect} tabIndex={0}>
48
+ <div
49
+ className={clsx('list-activity-card', {
50
+ active: isSelected,
51
+ })}
52
+ >
53
+ <div className='description'>
54
+ <div className='title mb-2'>{title}</div>
55
+ {availableTimes && <div>{availableTimes}</div>}
56
+ {duration && (
57
+ <div>
58
+ <p>{duration}</p>
59
+ </div>
60
+ )}
65
61
 
66
- <div className='activity-card-info'>
67
- <div className='activity-card-title mb-2'>{title}</div>
68
- {availableTimes && <div>{availableTimes}</div>}
69
- {duration && <div>{duration}</div>}
70
- {price && <div>{price}</div>}
71
- {description && (
72
- <div className='mt-2 activity-card-description'>{description}</div>
73
- )}
62
+ {price && <div>{price}</div>}
63
+ </div>
74
64
  </div>
75
-
76
65
  <hr className='list-activity-card-hr' />
77
- </button>
66
+ </div>
78
67
  )
79
68
  }
@@ -89,7 +89,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
89
89
  <FormControl
90
90
  type='number'
91
91
  onChange={(e) => handleChangeValue(Number(e.target.value))}
92
- onWheel={(event) => event.currentTarget.blur()}
93
92
  value={value}
94
93
  min={0}
95
94
  max={max}
@@ -102,14 +101,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
102
101
  <button
103
102
  type='button'
104
103
  onClick={handleArrowUpClick}
105
- onWheel={(event) => event.currentTarget.blur()}
106
- onFocus={(event) =>
107
- event.target.addEventListener(
108
- 'wheel',
109
- (event) => event.preventDefault(),
110
- { passive: false },
111
- )
112
- }
113
104
  className={`payment-number-input__btn-up ${
114
105
  plusButtonGreyedOut && 'disabled-number-input-button'
115
106
  }`}
@@ -51,7 +51,6 @@ export const ProductQuantityInput = ({
51
51
  hasDeposit: category.allowDeposits && product?.deposit < product.price,
52
52
  price: product.price,
53
53
  productCategoryId: category.id,
54
- zoneId: category.zone?.id,
55
54
  quantity,
56
55
  capacity: product?.capacity,
57
56
  })
@@ -61,7 +61,6 @@ const processedPaymentSummary = ({
61
61
  const total = calculateTotalPrice(order, externalPaymentDetail)
62
62
 
63
63
  const totalDiscount = calculateTotalDiscount(order.payments)
64
-
65
64
  let summaryItems: SummaryItem[] = [
66
65
  {
67
66
  translateKey: AMOUNT_TOTAL,
@@ -38,7 +38,7 @@ export interface RyftPaymentFormProps {
38
38
  isCreateLoading: boolean
39
39
  isAppUsingInIframe?: boolean
40
40
  onApplePayButtonClick?: () => void
41
- payButtonDisabled?: boolean
41
+ applePayButtonDisabled?: boolean
42
42
  initRyft: (
43
43
  onSuccess: () => void,
44
44
  onFailure: (error?: string) => void,
@@ -57,7 +57,6 @@ export const RyftPaymentForm = ({
57
57
  initRyft,
58
58
  resetReferrer,
59
59
  onSubmit,
60
- payButtonDisabled,
61
60
  }: RyftPaymentFormProps) => {
62
61
  const { t } = useTranslation(['Design', 'Validation', 'Ryft'])
63
62
  const formRef = useRef<HTMLFormElement | null>(null)
@@ -90,6 +89,7 @@ export const RyftPaymentForm = ({
90
89
 
91
90
  const handleSubmit = async () => {
92
91
  setIsBtnDisabled(true)
92
+
93
93
  try {
94
94
  const paymentSession = await onSubmit()
95
95
 
@@ -142,21 +142,17 @@ export const RyftPaymentForm = ({
142
142
  t,
143
143
  isAppUsingInIframe,
144
144
  onApplePayButtonClick,
145
- isDisableButton: !payButtonDisabled,
146
145
  additionalPaymentMethodsEnabled:
147
146
  providerPaymentSettings?.additionalPaymentMethodsEnabled,
148
147
  })
149
148
  },
150
149
  // eslint-disable-next-line react-hooks/exhaustive-deps
151
- [
152
- formRef.current?.childNodes?.length,
153
- showApplePayButton,
154
- payButtonDisabled,
155
- ],
150
+ [formRef.current?.childNodes?.length, showApplePayButton],
156
151
  )
157
152
 
158
153
  useEffect(() => {
159
154
  if (!accountId.data?.account_id || accountId.isError) return
155
+
160
156
  initRyft(
161
157
  () => {
162
158
  addEventHandler('cardValidationChanged', (e: MessageEvent['data']) => {
@@ -219,12 +215,8 @@ export const RyftPaymentForm = ({
219
215
  onSubmit={methods.handleSubmit(handleSubmit)}
220
216
  className='ryft-payment-form'
221
217
  >
222
- <div className='form-disable-box' id="form-disable-box"/>
223
218
  <div className='submit-button-wrapper mt-4 p-1'>
224
- <Button
225
- type='submit'
226
- disabled={isBtnDisabled || !isValid}
227
- >
219
+ <Button type='submit' disabled={isBtnDisabled || !isValid}>
228
220
  {isBtnDisabled && <ButtonLoader />}
229
221
  {t('Design:buyNow')}
230
222
  </Button>