@licklist/design 0.68.6-dev.1 → 0.68.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 (86) hide show
  1. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +2 -2
  2. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  3. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
  4. package/dist/iframe/order-process/components/Timer/Timer.js +1 -1
  5. package/dist/modals/dialog/Dialog.js +2 -2
  6. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  7. package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
  8. package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
  9. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  10. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
  11. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  12. package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
  13. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  14. package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
  15. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  16. package/dist/product-set/product/price/ProductPriceControl.js +3 -0
  17. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  18. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
  19. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  20. package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
  21. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  22. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
  23. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  24. package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
  25. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  26. package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
  27. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  28. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  29. package/dist/resource/form/components/CapacityControl.js +3 -0
  30. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  31. package/dist/resource/form/components/SortControl.js +3 -0
  32. package/dist/root.css +51 -51
  33. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  34. package/dist/sales/coupon/control/CouponFormControl.js +21 -0
  35. package/dist/sales/manual-booking/search-user/SearchUser.js +1 -1
  36. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  37. package/dist/setting/admin/PaymentFeeForm.js +16 -1
  38. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  39. package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
  40. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  41. package/dist/static/CurrencyNumberInput.js +3 -0
  42. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  43. package/dist/static/form-number-input/FormNumberInput.js +3 -0
  44. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  45. package/dist/static/number-input/NumberInput.js +3 -0
  46. package/dist/tiptap-editor/TipTapMenu/extensions/constants.d.ts.map +1 -1
  47. package/dist/tiptap-editor/TipTapMenu/extensions/constants.js +1 -1
  48. package/dist/tiptap-editor/TipTapMenu/extensions/utils.js +1 -1
  49. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  50. package/dist/zone/form/components/GameDurationControl.js +3 -0
  51. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  52. package/dist/zone/form/components/SortControl.js +3 -0
  53. package/package.json +1 -1
  54. package/postcss.config.cjs +2 -2
  55. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +2 -2
  56. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
  57. package/src/iframe/order-process/components/Timer/Timer.tsx +1 -1
  58. package/src/modals/dialog/Dialog.tsx +2 -2
  59. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
  60. package/src/product-set/form/MobileFooter.tsx +1 -2
  61. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
  62. package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
  63. package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
  64. package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
  65. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
  66. package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
  67. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
  68. package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
  69. package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
  70. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
  71. package/src/resource/form/components/CapacityControl.tsx +1 -0
  72. package/src/resource/form/components/SortControl.tsx +1 -0
  73. package/src/root.css +51 -51
  74. package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
  75. package/src/sales/manual-booking/search-user/SearchUser.tsx +1 -1
  76. package/src/setting/admin/PaymentFeeForm.tsx +5 -0
  77. package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
  78. package/src/static/CurrencyNumberInput.tsx +1 -0
  79. package/src/static/form-number-input/FormNumberInput.tsx +1 -0
  80. package/src/static/number-input/NumberInput.tsx +1 -0
  81. package/src/tiptap-editor/TipTapMenu/extensions/constants.ts +2 -1
  82. package/src/tiptap-editor/TipTapMenu/extensions/utils.ts +2 -2
  83. package/src/zone/form/components/GameDurationControl.tsx +1 -0
  84. package/src/zone/form/components/SortControl.tsx +1 -0
  85. package/tailwind.config.js +3 -6
  86. package/yarn.lock +15 -15
@@ -128,7 +128,10 @@ function PaymentFeeForm(param) {
128
128
  min: 0,
129
129
  max: 100,
130
130
  step: "1",
131
- placeholder: "0"
131
+ placeholder: "0",
132
+ onWheel: function(event) {
133
+ return event.currentTarget.blur();
134
+ }
132
135
  }, register('feeInPercent', {
133
136
  validate: {
134
137
  moreThan: function(v) {
@@ -202,6 +205,9 @@ function PaymentFeeForm(param) {
202
205
  max: 999999.99,
203
206
  step: "0.01",
204
207
  placeholder: "0,00",
208
+ onWheel: function(event) {
209
+ return event.currentTarget.blur();
210
+ },
205
211
  isInvalid: Boolean(errors.minFeeInPounds),
206
212
  disabled: isLoading
207
213
  })),
@@ -261,6 +267,9 @@ function PaymentFeeForm(param) {
261
267
  max: 999999.99,
262
268
  step: "0.01",
263
269
  placeholder: "0,00",
270
+ onWheel: function(event) {
271
+ return event.currentTarget.blur();
272
+ },
264
273
  isInvalid: Boolean(errors.maxFeeInPounds),
265
274
  disabled: isLoading
266
275
  })),
@@ -332,6 +341,9 @@ function PaymentFeeForm(param) {
332
341
  max: 100,
333
342
  step: "1",
334
343
  placeholder: "0",
344
+ onWheel: function(event) {
345
+ return event.currentTarget.blur();
346
+ },
335
347
  isInvalid: Boolean(errors.vatInPercent),
336
348
  disabled: isLoading
337
349
  })),
@@ -390,6 +402,9 @@ function PaymentFeeForm(param) {
390
402
  max: 999999.99,
391
403
  step: "0.01",
392
404
  placeholder: "0,00",
405
+ onWheel: function(event) {
406
+ return event.currentTarget.blur();
407
+ },
393
408
  isInvalid: Boolean(errors.fixedFee),
394
409
  disabled: isLoading
395
410
  })),
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/dashboard/DashboardSettingForm.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAM3E,OAAO,EAEL,2BAA2B,EAC5B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,uBAAuB,EAAE,MAAM,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC,GAAG,2BAA2B,GAC7B,8BAA8B,CAAA;AAYhC,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,+BAA+B,KAAK,IAAI,CAAA;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,yEAM9B,yBAAyB,4CAkN3B,CAAA"}
1
+ {"version":3,"file":"DashboardSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/dashboard/DashboardSettingForm.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAM3E,OAAO,EAEL,2BAA2B,EAC5B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,uBAAuB,EAAE,MAAM,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC,GAAG,2BAA2B,GAC7B,8BAA8B,CAAA;AAYhC,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,+BAA+B,KAAK,IAAI,CAAA;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,yEAM9B,yBAAyB,4CAmN3B,CAAA"}
@@ -194,7 +194,10 @@ var DashboardSettingForm = function(param) {
194
194
  children: t('metaPixelId')
195
195
  }),
196
196
  /*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
197
- type: "number"
197
+ type: "number",
198
+ onWheel: function(event) {
199
+ return event.currentTarget.blur();
200
+ }
198
201
  }, register('metaPixelId', {
199
202
  minLength: {
200
203
  value: 15,
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAQ,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,uHAoC/B,CAAA"}
1
+ {"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAQ,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,uHAqC/B,CAAA"}
@@ -88,6 +88,9 @@ var CurrencyNumberInput = /*#__PURE__*/ forwardRef(function(_param, ref) {
88
88
  disabled: disabled,
89
89
  value: value,
90
90
  onChange: onChange,
91
+ onWheel: function(event) {
92
+ return event.currentTarget.blur();
93
+ },
91
94
  ref: ref
92
95
  }, props)),
93
96
  /*#__PURE__*/ jsx(Form.Control.Feedback, {
@@ -1 +1 @@
1
- {"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAiEtB,CAAA"}
1
+ {"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAkEtB,CAAA"}
@@ -106,6 +106,9 @@ var FormNumberInput = function(param) {
106
106
  type: "number",
107
107
  step: step,
108
108
  disabled: disabled,
109
+ onWheel: function(event) {
110
+ return event.currentTarget.blur();
111
+ },
109
112
  isInvalid: HookFormService.isInvalid(fieldName, errors)
110
113
  }, field), {
111
114
  onChange: function(event) {
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAmDlB"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAoDlB"}
@@ -27,6 +27,9 @@ function NumberInput(param) {
27
27
  children: [
28
28
  /*#__PURE__*/ jsx(FormControl, {
29
29
  type: "number",
30
+ onWheel: function(event) {
31
+ return event.currentTarget.blur();
32
+ },
30
33
  onChange: function(e) {
31
34
  return onChange(Number(e.target.value));
32
35
  },
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tiptap-editor/TipTapMenu/extensions/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sEAAsE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tiptap-editor/TipTapMenu/extensions/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sEAC+C,CAAA"}
@@ -1,3 +1,3 @@
1
- var EMOJI_URL = "https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.7/assets/svg/";
1
+ var EMOJI_URL = 'https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.7/assets/svg/';
2
2
 
3
3
  export { EMOJI_URL };
@@ -49,7 +49,7 @@ function _unsupported_iterable_to_array(o, minLen) {
49
49
  }
50
50
  function parseTwemoji(emoji) {
51
51
  var _parse = _sliced_to_array(parse(emoji), 1), twemoji = _parse[0];
52
- var emojiPathUrl = EMOJI_URL.concat(twemoji.url.split("/").slice(-1));
52
+ var emojiPathUrl = EMOJI_URL.concat(twemoji.url.split('/').slice(-1));
53
53
  return {
54
54
  src: emojiPathUrl,
55
55
  alt: twemoji.text,
@@ -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,4CA+B1B,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,4CAgC1B,CAAA"}
@@ -77,6 +77,9 @@ var GameDurationControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
+ onWheel: function(event) {
81
+ return event.currentTarget.blur();
82
+ },
80
83
  placeholder: t('Design:duration'),
81
84
  isInvalid: Boolean(errors.defaultDuration),
82
85
  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,4CAmC1D,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,4CAoC1D,CAAA"}
@@ -77,6 +77,9 @@ var SortControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
+ onWheel: function(event) {
81
+ return event.currentTarget.blur();
82
+ },
80
83
  placeholder: t('Design:ordering'),
81
84
  isInvalid: Boolean(errors.sort),
82
85
  disabled: isLoading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.68.6-dev.1",
3
+ "version": "0.68.6-dev.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -12,6 +12,6 @@ module.exports = {
12
12
  'mantine-breakpoint-xl': '88em',
13
13
  },
14
14
  },
15
- ...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {}),
15
+ ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
16
16
  },
17
- };
17
+ }
@@ -121,7 +121,7 @@ export const SelectEventProductSet = ({
121
121
  <div className='d-flex mt-5 mb-5 align-items-end'>
122
122
  <Form.Group
123
123
  controlId={productSetsId}
124
- className='d-flex flex-column w-100 choose-product-set-container '
124
+ className='d-flex flex-column w-100 choose-product-set-container'
125
125
  >
126
126
  <Form.Label>{t('Design:selectProductSet')}</Form.Label>
127
127
 
@@ -160,7 +160,7 @@ export const SelectEventProductSet = ({
160
160
  {showOverrideProductSet && (
161
161
  <Button
162
162
  variant=''
163
- className='btn product-set-button '
163
+ className='btn product-set-button'
164
164
  onClick={onEditProductSet}
165
165
  >
166
166
  {isOverrideProductSet
@@ -89,6 +89,7 @@ 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()}
92
93
  value={value}
93
94
  min={0}
94
95
  max={max}
@@ -101,6 +102,14 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
101
102
  <button
102
103
  type='button'
103
104
  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
+ }
104
113
  className={`payment-number-input__btn-up ${
105
114
  plusButtonGreyedOut && 'disabled-number-input-button'
106
115
  }`}
@@ -11,7 +11,7 @@ export const Timer = ({ timer }: TimerProps) => {
11
11
 
12
12
  return (
13
13
  <div className='payment-timer-counter'>
14
- <div className='timer-wrapper '>
14
+ <div className='timer-wrapper'>
15
15
  <div className='timer'>
16
16
  <div className='d-flex align-items-center'>
17
17
  <FaStopwatch />
@@ -41,11 +41,11 @@ export const Dialog = ({
41
41
  centered
42
42
  className='text-center justify-content-center rounded'
43
43
  >
44
- <Modal.Header className='justify-content-center border-0 '>
44
+ <Modal.Header className='justify-content-center border-0'>
45
45
  {title && <Modal.Title as='h6'>{title}</Modal.Title>}
46
46
  </Modal.Header>
47
47
  {content && (
48
- <Modal.Body className='justify-content-center '>{content}</Modal.Body>
48
+ <Modal.Body className='justify-content-center'>{content}</Modal.Body>
49
49
  )}
50
50
  <Modal.Footer className='border-0 justify-content-center'>
51
51
  {customButtons || (
@@ -434,6 +434,7 @@ export const EmailTemplateControl = forwardRef(
434
434
  `templateOptionValues.${option?.id}.value`,
435
435
  )}
436
436
  type='number'
437
+ onWheel={(event) => event.currentTarget.blur()}
437
438
  placeholder={t(`Design:${option.name}`)}
438
439
  id={option.name + option.id}
439
440
  defaultValue={option.selectedValue || ''}
@@ -7,8 +7,7 @@ export function MobileFooter() {
7
7
  return (
8
8
  <div className='container product-set-mobile-footer'>
9
9
  <div
10
- className={`d-block d-sm-none bg-white border-top fixed-bottom
11
- py-4 px-5 d-flex justify-content-between flex-row-reverse`}
10
+ className={`d-block d-sm-none bg-white border-top fixed-bottom py-4 px-5 d-flex justify-content-between flex-row-reverse`}
12
11
  >
13
12
  <Button type='submit'>{t('save')}</Button>
14
13
  </div>
@@ -86,6 +86,7 @@ export function ProductBookingManagementControl<T extends FormValues>(
86
86
  <Form.Control
87
87
  ref={ref}
88
88
  type='number'
89
+ onWheel={(event) => event.currentTarget.blur()}
89
90
  min={0}
90
91
  step={1}
91
92
  value={value as string}
@@ -129,6 +130,7 @@ export function ProductBookingManagementControl<T extends FormValues>(
129
130
  <Form.Control
130
131
  ref={ref}
131
132
  type='number'
133
+ onWheel={(event) => event.currentTarget.blur()}
132
134
  min='0'
133
135
  step='1'
134
136
  value={value as string}
@@ -50,6 +50,7 @@ export function ProductDepositControl<T extends FormValues>(
50
50
  <Form.Control
51
51
  ref={ref}
52
52
  type='number'
53
+ onWheel={(event) => event.currentTarget.blur()}
53
54
  min={0}
54
55
  max={Number(totalPrice)}
55
56
  step='0.01'
@@ -91,6 +91,7 @@ export const ProductDurationControl = <T,>({
91
91
  <Form.Control
92
92
  type='number'
93
93
  min={0}
94
+ onWheel={(event) => event.currentTarget.blur()}
94
95
  step={1}
95
96
  value={durationHours}
96
97
  disabled={disabled}
@@ -127,6 +128,7 @@ export const ProductDurationControl = <T,>({
127
128
  type='number'
128
129
  min={0}
129
130
  step={1}
131
+ onWheel={(event) => event.currentTarget.blur()}
130
132
  disabled={disabled}
131
133
  value={durationMinutes}
132
134
  isInvalid={isInvalid}
@@ -59,6 +59,7 @@ export function ProductPriceControl<T extends FormValues>({
59
59
  ref={ref}
60
60
  type='number'
61
61
  min={0}
62
+ onWheel={(event) => event.currentTarget.blur()}
62
63
  max={999999.99}
63
64
  step='0.01'
64
65
  value={value as string}
@@ -111,6 +111,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
111
111
  type='number'
112
112
  min={0}
113
113
  step={1}
114
+ onWheel={(event) => event.currentTarget.blur()}
114
115
  value={value as string}
115
116
  isInvalid={HookFormService.isInvalid<T>(
116
117
  `${fieldNamePrefix}.totalQuantity` as Path<T>,
@@ -165,6 +166,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
165
166
  type='number'
166
167
  min={0}
167
168
  step={1}
169
+ onWheel={(event) => event.currentTarget.blur()}
168
170
  value={value as string}
169
171
  onChange={onChange}
170
172
  onFocus={onFocus}
@@ -85,6 +85,7 @@ export function ProductQuantityControl<T extends FormValues>(
85
85
  type='number'
86
86
  min={0}
87
87
  step={1}
88
+ onWheel={(event) => event.currentTarget.blur()}
88
89
  value={value as string}
89
90
  onChange={onChange}
90
91
  onFocus={onFocus}
@@ -143,6 +144,7 @@ export function ProductQuantityControl<T extends FormValues>(
143
144
  type='number'
144
145
  min={0}
145
146
  step={1}
147
+ onWheel={(event) => event.currentTarget.blur()}
146
148
  value={value && (value as string)}
147
149
  onFocus={onFocus}
148
150
  onChange={onChange}
@@ -69,6 +69,7 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
69
69
  type='number'
70
70
  min={0}
71
71
  step={1}
72
+ onWheel={(event) => event.currentTarget.blur()}
72
73
  {...register(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
73
74
  validate: (value) => {
74
75
  if (unlimited) return true
@@ -216,6 +216,7 @@ export function ProductCategoryControl({
216
216
  step={1}
217
217
  value={value === null ? '' : value}
218
218
  onChange={onChange}
219
+ onWheel={(event) => event.currentTarget.blur()}
219
220
  isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
220
221
  `${fieldNamePrefix}.minSubItems` as const,
221
222
  errors,
@@ -288,6 +289,7 @@ export function ProductCategoryControl({
288
289
  name={name}
289
290
  value={value === null ? '' : value}
290
291
  onChange={onChange}
292
+ onWheel={(event) => event.currentTarget.blur()}
291
293
  isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
292
294
  `${fieldNamePrefix}.maxSubItems` as const,
293
295
  errors,
@@ -348,6 +350,7 @@ export function ProductCategoryControl({
348
350
  min={0}
349
351
  step={1}
350
352
  type='number'
353
+ onWheel={(event) => event.currentTarget.blur()}
351
354
  disabled={isOverride}
352
355
  isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
353
356
  `${fieldNamePrefix}.overallQuantity`,
@@ -530,6 +533,7 @@ export function ProductCategoryControl({
530
533
  step={1}
531
534
  value={value}
532
535
  onChange={onChange}
536
+ onWheel={(event) => event.currentTarget.blur()}
533
537
  isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
534
538
  `${fieldNamePrefix}.remainderExpireAfter` as const,
535
539
  errors,
@@ -109,6 +109,7 @@ function RecurrenceEndInput({
109
109
  type='number'
110
110
  min={1}
111
111
  max={500}
112
+ onWheel={(event) => event.currentTarget.blur()}
112
113
  disabled={disabled || !count || count === 500}
113
114
  aria-label='Occurrence count'
114
115
  value={count ?? defaultOccurrences[frequency]}
@@ -91,6 +91,7 @@ function RecurrenceEndInput({
91
91
  type='number'
92
92
  min={1}
93
93
  max={500}
94
+ onWheel={(event) => event.currentTarget.blur()}
94
95
  disabled={disabled || !count || count === 500}
95
96
  aria-label='Occurrence count'
96
97
  value={count ?? defaultOccurrences[frequency]}
@@ -27,6 +27,7 @@ export const CapacityControl = ({ isLoading }: CapacityControlProps) => {
27
27
  required: true,
28
28
  min: 1,
29
29
  })}
30
+ onWheel={(event) => event.currentTarget.blur()}
30
31
  placeholder={t('Design:capacity')}
31
32
  isInvalid={Boolean(errors.capacity)}
32
33
  disabled={isLoading}
@@ -27,6 +27,7 @@ export const SortControl = ({ isLoading }: SortControlProps) => {
27
27
  required: false,
28
28
  min: 1,
29
29
  })}
30
+ onWheel={(event) => event.currentTarget.blur()}
30
31
  placeholder={t('Design:ordering')}
31
32
  isInvalid={Boolean(errors.sort)}
32
33
  disabled={isLoading}
package/src/root.css CHANGED
@@ -3,75 +3,75 @@
3
3
  @tailwind utilities;
4
4
 
5
5
  @layer base {
6
- :root {
7
- --background: 0 0% 95%;
8
- --foreground: 0 0% 3.9%;
6
+ :root {
7
+ --background: 0 0% 95%;
8
+ --foreground: 0 0% 3.9%;
9
9
 
10
- --card: 0 0% 100%;
11
- --card-foreground: 0 0% 3.9%;
10
+ --card: 0 0% 100%;
11
+ --card-foreground: 0 0% 3.9%;
12
12
 
13
- --popover: 0 0% 100%;
14
- --popover-foreground: 0 0% 3.9%;
13
+ --popover: 0 0% 100%;
14
+ --popover-foreground: 0 0% 3.9%;
15
15
 
16
- --primary: 204 88% 47%;
17
- --primary-foreground: 0 0% 98%;
16
+ --primary: 204 88% 47%;
17
+ --primary-foreground: 0 0% 98%;
18
18
 
19
- --secondary: 0 0% 96.1%;
20
- --secondary-foreground: 0 0% 9%;
19
+ --secondary: 0 0% 96.1%;
20
+ --secondary-foreground: 0 0% 9%;
21
21
 
22
- --muted: 0 0% 96.1%;
23
- --muted-foreground: 0 0% 45.1%;
22
+ --muted: 0 0% 96.1%;
23
+ --muted-foreground: 0 0% 45.1%;
24
24
 
25
- --accent: 0 0% 96.1%;
26
- --accent-foreground: 0 0% 9%;
25
+ --accent: 0 0% 96.1%;
26
+ --accent-foreground: 0 0% 9%;
27
27
 
28
- --destructive: 0 84.2% 60.2%;
29
- --destructive-foreground: 0 0% 98%;
28
+ --destructive: 0 84.2% 60.2%;
29
+ --destructive-foreground: 0 0% 98%;
30
30
 
31
- --border: 0 0% 89.8%;
32
- --input: 0 0% 89.8%;
33
- --ring: 0 0% 3.9%;
31
+ --border: 0 0% 89.8%;
32
+ --input: 0 0% 89.8%;
33
+ --ring: 0 0% 3.9%;
34
34
 
35
- --radius: 0.5rem;
36
- }
35
+ --radius: 0.5rem;
36
+ }
37
37
 
38
- .dark {
39
- --background: 0 0% 3.9%;
40
- --foreground: 0 0% 98%;
38
+ .dark {
39
+ --background: 0 0% 3.9%;
40
+ --foreground: 0 0% 98%;
41
41
 
42
- --card: 0 0% 3.9%;
43
- --card-foreground: 0 0% 98%;
42
+ --card: 0 0% 3.9%;
43
+ --card-foreground: 0 0% 98%;
44
44
 
45
- --popover: 0 0% 3.9%;
46
- --popover-foreground: 0 0% 98%;
45
+ --popover: 0 0% 3.9%;
46
+ --popover-foreground: 0 0% 98%;
47
47
 
48
- --primary: 0 0% 98%;
49
- --primary-foreground: 0 0% 9%;
48
+ --primary: 0 0% 98%;
49
+ --primary-foreground: 0 0% 9%;
50
50
 
51
- --secondary: 0 0% 14.9%;
52
- --secondary-foreground: 0 0% 98%;
51
+ --secondary: 0 0% 14.9%;
52
+ --secondary-foreground: 0 0% 98%;
53
53
 
54
- --muted: 0 0% 14.9%;
55
- --muted-foreground: 0 0% 63.9%;
54
+ --muted: 0 0% 14.9%;
55
+ --muted-foreground: 0 0% 63.9%;
56
56
 
57
- --accent: 0 0% 14.9%;
58
- --accent-foreground: 0 0% 98%;
57
+ --accent: 0 0% 14.9%;
58
+ --accent-foreground: 0 0% 98%;
59
59
 
60
- --destructive: 0 62.8% 30.6%;
61
- --destructive-foreground: 0 0% 98%;
60
+ --destructive: 0 62.8% 30.6%;
61
+ --destructive-foreground: 0 0% 98%;
62
62
 
63
- --border: 0 0% 14.9%;
64
- --input: 0 0% 14.9%;
65
- --ring: 0 0% 83.1%;
66
- }
63
+ --border: 0 0% 14.9%;
64
+ --input: 0 0% 14.9%;
65
+ --ring: 0 0% 83.1%;
66
+ }
67
67
  }
68
68
 
69
69
  @layer base {
70
- * {
71
- @apply border-border;
72
- }
73
-
74
- body {
75
- @apply bg-background text-foreground;
76
- }
77
- }
70
+ * {
71
+ @apply border-border;
72
+ }
73
+
74
+ body {
75
+ @apply bg-background text-foreground;
76
+ }
77
+ }
@@ -179,6 +179,7 @@ export const CouponFormControl = ({
179
179
  <Form.Label>{t('Design:discount')}</Form.Label>
180
180
  <Form.Control
181
181
  type='number'
182
+ onWheel={(event) => event.currentTarget.blur()}
182
183
  isInvalid={errors.discount !== undefined}
183
184
  {...register('discount', {
184
185
  required: t('Validation:fieldRequired', {
@@ -316,6 +317,7 @@ export const CouponFormControl = ({
316
317
  <Form.Control
317
318
  {...register('totalCoupons')}
318
319
  type='number'
320
+ onWheel={(event) => event.currentTarget.blur()}
319
321
  isInvalid={errors.totalCoupons !== undefined}
320
322
  disabled={isLoading}
321
323
  />
@@ -330,6 +332,7 @@ export const CouponFormControl = ({
330
332
  <Form.Control
331
333
  type='number'
332
334
  {...register('usesPerUser')}
335
+ onWheel={(event) => event.currentTarget.blur()}
333
336
  disabled={isLoading}
334
337
  />
335
338
  </Form.Group>
@@ -342,6 +345,7 @@ export const CouponFormControl = ({
342
345
  <Form.Control
343
346
  type='number'
344
347
  {...register('useAgain')}
348
+ onWheel={(event) => event.currentTarget.blur()}
345
349
  disabled={isLoading}
346
350
  />
347
351
  <Form.Text className='text-muted'>
@@ -355,6 +359,7 @@ export const CouponFormControl = ({
355
359
  <Form.Control
356
360
  type='number'
357
361
  {...register('usesPerUserDay')}
362
+ onWheel={(event) => event.currentTarget.blur()}
358
363
  disabled={isLoading}
359
364
  />
360
365
  <Form.Text className='text-muted'>
@@ -370,6 +375,7 @@ export const CouponFormControl = ({
370
375
  <Form.Control
371
376
  type='number'
372
377
  {...register('minAmount')}
378
+ onWheel={(event) => event.currentTarget.blur()}
373
379
  disabled={isLoading}
374
380
  />
375
381
  <Form.Text className='text-muted'>
@@ -383,6 +389,7 @@ export const CouponFormControl = ({
383
389
  <Form.Control
384
390
  type='number'
385
391
  {...register('maxAmount')}
392
+ onWheel={(event) => event.currentTarget.blur()}
386
393
  disabled={isLoading}
387
394
  />
388
395
  <Form.Text className='text-muted'>