@licklist/design 0.72.72-stage.2 → 0.72.72

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 (66) hide show
  1. package/dist/assets/logo/licklist.sm.svg.js +33 -0
  2. package/dist/assets/logo/licklist.svg.js +16 -0
  3. package/dist/auth/Authorizer.d.ts.map +1 -1
  4. package/dist/auth/Authorizer.js +1 -2
  5. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +2 -1
  6. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  7. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +3 -2
  8. package/dist/header/BookeditHeader.d.ts +4 -1
  9. package/dist/header/BookeditHeader.d.ts.map +1 -1
  10. package/dist/header/Header.d.ts +2 -10
  11. package/dist/header/Header.d.ts.map +1 -1
  12. package/dist/header/Header.js +5 -31
  13. package/dist/header/LicklistHeader.d.ts +15 -0
  14. package/dist/header/LicklistHeader.d.ts.map +1 -0
  15. package/dist/header/LicklistHeader.js +23 -0
  16. package/dist/header/index.d.ts +2 -2
  17. package/dist/header/index.d.ts.map +1 -1
  18. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -2
  19. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  20. package/dist/index.js +3 -0
  21. package/dist/product-set/control/ProductSetControl.js +2 -1
  22. package/dist/sales/coupon/form/CouponFrom.d.ts +1 -2
  23. package/dist/sales/coupon/form/CouponFrom.d.ts.map +1 -1
  24. package/dist/sales/coupon/form/CouponFrom.js +6 -19
  25. package/dist/setting/admin/AdminSettingForm.d.ts +25 -0
  26. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -0
  27. package/dist/setting/admin/AdminSettingForm.js +220 -0
  28. package/dist/setting/admin/PaymentFeeForm.d.ts +13 -0
  29. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -0
  30. package/dist/setting/admin/PaymentFeeForm.js +424 -0
  31. package/dist/setting/admin/index.d.ts +2 -0
  32. package/dist/setting/admin/index.d.ts.map +1 -0
  33. package/dist/setting/index.d.ts +2 -0
  34. package/dist/setting/index.d.ts.map +1 -1
  35. package/dist/setting/system/SystemSettingForm.d.ts +10 -0
  36. package/dist/setting/system/SystemSettingForm.d.ts.map +1 -0
  37. package/dist/setting/system/SystemSettingForm.js +95 -0
  38. package/dist/setting/system/index.d.ts +2 -0
  39. package/dist/setting/system/index.d.ts.map +1 -0
  40. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  41. package/dist/types/currency.d.ts +5 -0
  42. package/dist/types/currency.d.ts.map +1 -0
  43. package/package.json +7 -12
  44. package/src/auth/Authorizer.tsx +0 -1
  45. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +12 -4
  46. package/src/header/BookeditHeader.tsx +5 -1
  47. package/src/header/Header.stories.tsx +90 -39
  48. package/src/header/Header.tsx +9 -47
  49. package/src/header/LicklistHeader.tsx +46 -0
  50. package/src/header/index.ts +2 -2
  51. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
  52. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +0 -1
  53. package/src/product-set/control/ProductSetControl.tsx +1 -1
  54. package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
  55. package/src/sales/coupon/form/CouponFrom.tsx +8 -20
  56. package/src/setting/admin/AdminSetting.stories.tsx +52 -0
  57. package/src/setting/admin/AdminSettingForm.tsx +196 -0
  58. package/src/setting/admin/PaymentFeeForm.tsx +304 -0
  59. package/src/setting/admin/index.ts +1 -0
  60. package/src/setting/index.ts +2 -0
  61. package/src/setting/system/SystemSetting.stories.tsx +26 -0
  62. package/src/setting/system/SystemSettingForm.tsx +62 -0
  63. package/src/setting/system/index.ts +1 -0
  64. package/src/sortable-tree/SortableTreeItem.tsx +0 -1
  65. package/src/types/currency.ts +4 -0
  66. package/yarn.lock +217 -190
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
+ const SvgLicklistsm = props => /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: 28,
7
+ height: 28
8
+ }, props), /*#__PURE__*/React.createElement("g", {
9
+ style: {
10
+ fill: "none",
11
+ stroke: "none"
12
+ },
13
+ transform: "matrix(.33735 0 0 .33735 0 0)"
14
+ }, /*#__PURE__*/React.createElement("rect", {
15
+ width: 83,
16
+ height: 83,
17
+ rx: 32,
18
+ style: {
19
+ fill: "currentColor"
20
+ }
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M62.362 29.68q-4.846.696-4.846 4.613c0 3.916 3.86 14.4 2.234 21.184s-5.923 11.108-14.343 13.09c-8.42 1.983-18.22 1.06-22.055-11.404-3.835-12.463 3.206-21.725 7.56-25.196 4.352-3.47 8.58-2.288 8.76-2.288-4.442 0-6.078 5.233-6.078 11.786q0 7.077 5.086 11.741-1.898-8.754.285-14.997c2.183-6.242 4.584-9.01 8.716-9.984q6.992-1.518 14.68 1.454",
23
+ style: {
24
+ fill: "#fff"
25
+ }
26
+ }), /*#__PURE__*/React.createElement("path", {
27
+ d: "M61.572 27.468q-8.333-6.474-14.031-7.886c-5.7-1.411-8.559 1.073-11.107 2.965-.742-.942-2.359-2.238-4.267-2.238s-4.808 1.285-5.549 4.978q-.74 3.693.73 7.687-5.628-5.715-4.433-10.427c1.194-4.711 6.285-8.645 14.242-8.294s10.029 1.864 15.19 5.33q5.16 3.465 9.225 7.885",
28
+ style: {
29
+ fill: "#fff"
30
+ }
31
+ })));
32
+
33
+ export { SvgLicklistsm as ReactComponent };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+
3
+ var _desc, _g;
4
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
5
+ const SvgLicklist = props => /*#__PURE__*/React.createElement("svg", _extends({
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ viewBox: "0 0 118 28"
8
+ }, props), _desc || (_desc = /*#__PURE__*/React.createElement("desc", null, "Social nightlife")), _g || (_g = /*#__PURE__*/React.createElement("g", {
9
+ fill: "currentColor"
10
+ }, /*#__PURE__*/React.createElement("path", {
11
+ d: "M41.426 20.343v4.093H27.345V2.75h4.46v17.594zm3.32-13.99q-1.16 0-1.894-.733-.733-.733-.733-1.863t.733-1.878q.733-.75 1.894-.749 1.16 0 1.894.749.732.748.733 1.878 0 1.131-.733 1.863-.734.734-1.894.733m-2.169 18.083V8.431h4.337v16.005zm14.132-3.482q1.192 0 2.077-.672a2.95 2.95 0 0 0 1.13-1.74l4.338.732q-.489 2.23-2.413 3.88t-5.101 1.649q-3.482 0-5.758-2.398-2.276-2.397-2.276-5.972 0-3.573 2.276-5.971t5.758-2.398q3.177 0 5.101 1.65t2.413 3.879l-4.337.733a2.95 2.95 0 0 0-1.13-1.741q-.886-.672-2.078-.672-1.71 0-2.688 1.237-.977 1.238-.977 3.283 0 2.048.977 3.284.978 1.237 2.688 1.237M75.973 8.431h5.437l-5.986 6.811 6.414 9.194h-5.132l-4.154-6.323-2.413 2.75v3.573h-4.337V1.527h4.337V15.7zM86.38 24.436h-4.337V1.527h4.337zm4.969-18.083q-1.16 0-1.894-.733-.733-.733-.733-1.863t.733-1.878q.733-.75 1.894-.749 1.16 0 1.894.749.733.748.733 1.878 0 1.131-.733 1.863-.733.734-1.894.733m-2.169 18.083V8.431h4.338v16.005zm5.916-4.673 4.307-.611q.06.946.733 1.558.672.61 1.955.61 1.221 0 1.863-.396.641-.397.641-1.07 0-.733-.916-1.084-.915-.35-2.2-.565a24 24 0 0 1-2.58-.58q-1.299-.367-2.215-1.436-.916-1.07-.916-2.84 0-2.23 1.771-3.758 1.773-1.527 4.643-1.527 3.025 0 4.597 1.42 1.575 1.42 1.91 3.376l-4.094.763q-.06-.916-.687-1.496-.626-.58-1.756-.58-1.039 0-1.62.442-.58.443-.58 1.115 0 .61.657.962.657.351 1.634.474.978.121 2.108.397 1.13.275 2.108.702.977.428 1.634 1.451t.657 2.581q0 2.23-1.818 3.681-1.817 1.45-4.963 1.45-6.201 0-6.873-5.04m22.868.825v3.757q-.733.183-2.046.183-4.918 0-4.918-4.887v-7.79h-2.169v-3.42H111V4.46h4.337v3.97h2.658v3.422h-2.658v7.33q0 1.559 1.62 1.558zM20.989 7.844q-2.536.354-2.536 2.343c0 1.988 2.02 7.312 1.169 10.757-.85 3.444-3.099 5.64-7.504 6.646-4.406 1.007-9.534.538-11.54-5.79C-1.43 15.47 2.256 10.768 4.533 9.006s4.49-1.162 4.584-1.162c-2.324 0-3.18 2.657-3.18 5.984q0 3.594 2.661 5.962-.993-4.445.149-7.615c1.142-3.17 2.398-4.575 4.56-5.07q3.66-.77 7.682.74"
12
+ }), /*#__PURE__*/React.createElement("path", {
13
+ d: "M20.576 6.722q-4.36-3.288-7.342-4.005C10.252 2 8.756 3.262 7.423 4.222c-.388-.478-1.234-1.136-2.233-1.136-.998 0-2.515.653-2.903 2.528q-.387 1.874.381 3.903Q-.275 6.614.35 4.222C.974 1.83 3.638-.168 7.801.012c4.164.177 5.247.945 7.948 2.705a26.7 26.7 0 0 1 4.827 4.005"
14
+ }))));
15
+
16
+ export { SvgLicklist as ReactComponent };
@@ -1 +1 @@
1
- {"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CA2EzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CA0EzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -98,8 +98,7 @@ function Authorizer(props) {
98
98
  ROUTES.TERMS_PAGE,
99
99
  ROUTES.PRIVACY_FACTS_PAGE,
100
100
  ROUTES.CHANGE_PASSWORD,
101
- ROUTES.FORGOT_PASSWORD,
102
- ROUTES.SSO_LOGIN
101
+ ROUTES.FORGOT_PASSWORD
103
102
  ].concat(_to_consumable_array(matchedPathPatternUrls())).includes(RouteService.getCurrentPage())) {
104
103
  setIsValidated(function() {
105
104
  return true;
@@ -2,9 +2,10 @@ export declare const SALE_DEADLINE_NAME_CATEGORY = "saleDeadlineCategory";
2
2
  export declare const SALE_DEADLINE_NAME = "saleDeadline";
3
3
  export declare const DEADLINE_NAME: readonly ["saleDeadlineCategory", "saleDeadline"];
4
4
  export type DeadLineNameType = (typeof DEADLINE_NAME)[number];
5
- export declare const SaleDeadline: ({ disabled, onlyBefore, deadLineCategory, }: {
5
+ export declare const SaleDeadline: ({ disabled, onlyBefore, isProductSet, deadLineCategory, }: {
6
6
  disabled?: boolean;
7
7
  onlyBefore?: boolean;
8
+ isProductSet?: boolean;
8
9
  deadLineCategory?: string;
9
10
  }) => import("react/jsx-runtime").JSX.Element;
10
11
  //# sourceMappingURL=SaleDeadline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,gDAItB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CA8JA,CAAA"}
1
+ {"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,8DAKtB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CAoKA,CAAA"}
@@ -67,7 +67,7 @@ var SALE_DEADLINES_EVENT_START_TYPES = [
67
67
  }
68
68
  ];
69
69
  var SaleDeadline = function(param) {
70
- var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore, deadLineCategory = param.deadLineCategory;
70
+ var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore, _param_isProductSet = param.isProductSet, isProductSet = _param_isProductSet === void 0 ? false : _param_isProductSet, deadLineCategory = param.deadLineCategory;
71
71
  var _errors_root;
72
72
  var t = useTranslation([
73
73
  'Design'
@@ -133,9 +133,10 @@ var SaleDeadline = function(param) {
133
133
  name: "sale-deadline",
134
134
  options: SALE_DEADLINES_EVENT_START_TYPES.map(function(param) {
135
135
  var type = param.type;
136
+ var salesDeadlineTitle = type === SALE_DEADLINE_BEFORE_TYPE && isProductSet ? 'beforeProductSet' : type;
136
137
  return {
137
138
  id: type,
138
- value: t("Design:".concat(type))
139
+ value: t("Design:".concat(salesDeadlineTitle))
139
140
  };
140
141
  }),
141
142
  value: deadlineType,
@@ -1,5 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { NavigationItem } from './Header';
2
+ interface NavigationItem {
3
+ href: string;
4
+ label: string;
5
+ }
3
6
  interface Props {
4
7
  children?: ReactNode | ReactNode[];
5
8
  href?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"BookeditHeader.d.ts","sourceRoot":"","sources":["../../src/header/BookeditHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAYP;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"BookeditHeader.d.ts","sourceRoot":"","sources":["../../src/header/BookeditHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AACD,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAYP;AAED,eAAe,cAAc,CAAA"}
@@ -1,16 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- export type NavigationItem = {
2
+ interface NavigationItem {
3
3
  href: string;
4
4
  label: string;
5
- pathname: string[];
6
- } | {
7
- label: string;
8
- links: {
9
- href: string;
10
- label: string;
11
- pathname: string[];
12
- }[];
13
- };
5
+ }
14
6
  type Props = {
15
7
  children?: ReactNode | ReactNode[];
16
8
  href?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,MAAM,MAAM,cAAc,GACtB;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,EAAE,CAAA;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EACd,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAyCP;AAED,eAAe,MAAM,CAAA"}
@@ -1,8 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
- import { Accordion } from '@mantine/core';
3
2
  import Nav from 'react-bootstrap/Nav';
4
3
  import Navbar from 'react-bootstrap/Navbar';
5
- import { NavLink } from 'react-router-dom';
6
4
 
7
5
  function Header(param) {
8
6
  var children = param.children, href = param.href, logo = param.logo, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
@@ -41,36 +39,12 @@ function Header(param) {
41
39
  id: "header-navbar-nav",
42
40
  children: renderMobileNavigation ? renderMobileNavigation(navItems) : /*#__PURE__*/ jsx(Nav, {
43
41
  className: "mr-auto",
44
- children: navItems.map(function(item) {
45
- if ('links' in item) {
46
- return /*#__PURE__*/ jsx(Accordion, {
47
- defaultValue: "Apples",
48
- children: /*#__PURE__*/ jsxs(Accordion.Item, {
49
- value: item.label,
50
- children: [
51
- /*#__PURE__*/ jsx(Accordion.Control, {
52
- children: item.label
53
- }),
54
- item.links.map(function(subItem) {
55
- return /*#__PURE__*/ jsx(Accordion.Panel, {
56
- children: /*#__PURE__*/ jsx(Nav.Item, {
57
- children: /*#__PURE__*/ jsx(NavLink, {
58
- exact: true,
59
- to: subItem.href,
60
- className: "nav-link",
61
- children: subItem.label
62
- })
63
- }, "".concat(subItem.label, "-").concat(subItem.href))
64
- }, subItem.href + subItem.label);
65
- })
66
- ]
67
- })
68
- });
69
- }
42
+ children: navItems.map(function(param) {
43
+ var label = param.label, href = param.href;
70
44
  return /*#__PURE__*/ jsx(Nav.Link, {
71
- href: item.href,
72
- children: item.label
73
- }, "".concat(item.href).concat(item.label));
45
+ href: href,
46
+ children: label
47
+ }, "".concat(href).concat(label));
74
48
  })
75
49
  })
76
50
  })
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ interface NavigationItem {
3
+ href: string;
4
+ label: string;
5
+ }
6
+ interface Props {
7
+ children?: ReactNode | ReactNode[];
8
+ href?: string;
9
+ leftNavs?: ReactNode | ReactNode[];
10
+ navItems?: NavigationItem[];
11
+ renderMobileNavigation?: (navigationItems: NavigationItem[]) => ReactNode;
12
+ }
13
+ declare function LicklistHeader({ children, href, leftNavs, navItems, renderMobileNavigation, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export default LicklistHeader;
15
+ //# sourceMappingURL=LicklistHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicklistHeader.d.ts","sourceRoot":"","sources":["../../src/header/LicklistHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAkBP;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { ReactComponent as SvgLicklistsm } from '../assets/logo/licklist.sm.svg.js';
3
+ import { ReactComponent as SvgLicklist } from '../assets/logo/licklist.svg.js';
4
+ import Logo from '../logo/Logo.js';
5
+ import Header from './Header.js';
6
+
7
+ function LicklistHeader(param) {
8
+ var children = param.children, href = param.href, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
9
+ return /*#__PURE__*/ jsx(Header, {
10
+ logo: /*#__PURE__*/ jsx(Logo, {
11
+ logo: /*#__PURE__*/ jsx(SvgLicklist, {}),
12
+ logoSm: /*#__PURE__*/ jsx(SvgLicklistsm, {}),
13
+ className: "mt-auto mr-0 mr-sm-3"
14
+ }),
15
+ href: href,
16
+ leftNavs: leftNavs,
17
+ navItems: navItems,
18
+ renderMobileNavigation: renderMobileNavigation,
19
+ children: children
20
+ });
21
+ }
22
+
23
+ export { LicklistHeader as default };
@@ -1,6 +1,6 @@
1
1
  import BookeditHeader from './BookeditHeader';
2
+ import LicklistHeader from './LicklistHeader';
2
3
  import Header from './Header';
3
4
  export * from './elements';
4
- export { BookeditHeader, Header };
5
- export type { NavigationItem } from './Header';
5
+ export { LicklistHeader, BookeditHeader, Header };
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,CAAA;AACjC,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,CAAA"}
@@ -31,6 +31,7 @@ import { ProductWithModifierSetForm } from './ProductWithModifierSetForm.js';
31
31
 
32
32
  var ProductWithModifierSetModal = function(param) {
33
33
  var show = param.show, onHide = param.onHide, product = param.product, category = param.category, onChange = param.onChange, editOrderModifier = param.editOrderModifier;
34
+ var _product_images, _product_images1;
34
35
  var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
35
36
  useOnWindowUnmount({
36
37
  onBeforeUnload: onBeforeUnload,
@@ -57,14 +58,14 @@ var ProductWithModifierSetModal = function(param) {
57
58
  className: "right-block",
58
59
  id: "select-event-container",
59
60
  children: /*#__PURE__*/ jsxs("div", {
60
- className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
61
+ className: clsx('manual-booking-container', !(product === null || product === void 0 ? void 0 : (_product_images = product.images) === null || _product_images === void 0 ? void 0 : _product_images.length) && 'tw-mt-8'),
61
62
  children: [
62
63
  /*#__PURE__*/ jsx("div", {
63
64
  className: "manual-booking-header",
64
65
  children: /*#__PURE__*/ jsx(TicketDescription, {
65
66
  title: product.name,
66
67
  description: product.description,
67
- className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
68
+ className: clsx('iframe-event__product-description', !(product === null || product === void 0 ? void 0 : (_product_images1 = product.images) === null || _product_images1 === void 0 ? void 0 : _product_images1.length) && 'mt-6'),
68
69
  classNameProductModal: "d-block",
69
70
  images: product.images,
70
71
  isRequired: product.isRequired,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAKrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CAyCrB,CAAA"}
1
+ {"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAIrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CAyCrB,CAAA"}
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ export { EventStatisticModal } from './events/event-statistic-modal/EventStatist
30
30
  export { EventVenueMap } from './events/event-venue-map/EventVenueMap.js';
31
31
  export { FileUpload } from './file-upload/FileUpload.js';
32
32
  export { default as BookeditHeader } from './header/BookeditHeader.js';
33
+ export { default as LicklistHeader } from './header/LicklistHeader.js';
33
34
  export { default as Header } from './header/Header.js';
34
35
  export { default as CompanySelector } from './header/elements/CompanySelector.js';
35
36
  export { Example, ExampleContent, ExampleToggle } from './help/example/Example.js';
@@ -136,6 +137,8 @@ export { RyftPayment } from './sales/payment-form/components/RyftPayment/RyftPay
136
137
  export { BookingResults } from './sales/booking/results/BookingResults.js';
137
138
  export { BACKGROUND_COLOR_CLASSNAMES } from './sales/booking/results/constants.js';
138
139
  export { NotesTable } from './sales/notes/NotesTable.js';
140
+ export { SystemSettingForm } from './setting/system/SystemSettingForm.js';
141
+ export { AdminSettingForm } from './setting/admin/AdminSettingForm.js';
139
142
  export { DashboardSettingForm } from './setting/dashboard/DashboardSettingForm.js';
140
143
  export { SnippetCard } from './setting/dashboard/snippets/card/SnippetCard.js';
141
144
  export { SnippetTemplateCard } from './setting/dashboard/snippet-templates/card/SnippetTemplateCard.js';
@@ -184,7 +184,8 @@ function ProductSetControl(param) {
184
184
  })
185
185
  }),
186
186
  /*#__PURE__*/ jsx(SaleDeadline, {
187
- disabled: false
187
+ disabled: false,
188
+ isProductSet: true
188
189
  }),
189
190
  /*#__PURE__*/ jsx("div", {
190
191
  className: "divider"
@@ -23,10 +23,9 @@ export interface CouponFormProps {
23
23
  productGroups?: ProductGroup[];
24
24
  defaultValues?: CouponFormValues;
25
25
  onSubmit: (values: CouponFormValues) => void;
26
- onCancel: () => void;
27
26
  isLoading?: boolean;
28
27
  hasPermission: boolean;
29
28
  serverErrors?: ServerError;
30
29
  }
31
- export declare const CouponForm: ({ onSubmit, onCancel, defaultValues, isLoading, productGroups, hasPermission, serverErrors, }: CouponFormProps) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const CouponForm: ({ onSubmit, defaultValues, isLoading, productGroups, hasPermission, serverErrors, }: CouponFormProps) => import("react/jsx-runtime").JSX.Element;
32
31
  //# sourceMappingURL=CouponFrom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CouponFrom.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/form/CouponFrom.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAI3E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,UAAU,CAAA;IACxB,eAAe,EAAE,eAA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S,EAAE,eAAe,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,aAAa,CAAC,EAAE,gBAAgB,CAAA;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,wFAOpB,eAAe,4CAkCjB,CAAA"}
@@ -59,7 +59,7 @@ function _object_spread_props(target, source) {
59
59
  return target;
60
60
  }
61
61
  var CouponForm = function(param) {
62
- var onSubmit = param.onSubmit, onCancel = param.onCancel, defaultValues = param.defaultValues, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, productGroups = param.productGroups, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? false : _param_hasPermission, serverErrors = param.serverErrors;
62
+ var onSubmit = param.onSubmit, defaultValues = param.defaultValues, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, productGroups = param.productGroups, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? false : _param_hasPermission, serverErrors = param.serverErrors;
63
63
  var form = useForm({
64
64
  defaultValues: defaultValues
65
65
  });
@@ -85,24 +85,11 @@ var CouponForm = function(param) {
85
85
  productGroups: productGroups,
86
86
  isLoading: isLoading
87
87
  }),
88
- hasPermission && /*#__PURE__*/ jsxs("div", {
89
- className: "tw-flex tw-gap-4",
90
- children: [
91
- /*#__PURE__*/ jsx(Button, {
92
- className: "d-md-block mt-5",
93
- type: "submit",
94
- disabled: isLoading,
95
- children: t('save')
96
- }),
97
- /*#__PURE__*/ jsx(Button, {
98
- className: "mt-5 d-md-block",
99
- variant: "outline-primary",
100
- type: "reset",
101
- onClick: onCancel,
102
- disabled: isLoading,
103
- children: t('cancel')
104
- })
105
- ]
88
+ hasPermission && /*#__PURE__*/ jsx(Button, {
89
+ className: "mt-5 d-no dne d-md-block",
90
+ type: "submit",
91
+ disabled: isLoading,
92
+ children: t('save')
106
93
  })
107
94
  ]
108
95
  })
@@ -0,0 +1,25 @@
1
+ import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission';
2
+ import { ProvidableType } from '@licklist/core/dist/DataMapper/Provider/ProvidableDataMapper';
3
+ import { PaymentFeeFormFieldValues } from './PaymentFeeForm';
4
+ import { Currency } from '../../types/currency';
5
+ export type AdminSettingFormFieldValues = {
6
+ warningOnNumberOfPeople: string;
7
+ currency_id?: number;
8
+ providerHasMap: null | boolean;
9
+ hasBookingManagement: null | boolean;
10
+ additionalPaymentMethodsEnabled: null | boolean;
11
+ externalPaymentLinkEnabled: null | boolean;
12
+ } & PaymentFeeFormFieldValues;
13
+ export interface AdminSettingFormProps extends HasPermissionProp {
14
+ isLoading: boolean;
15
+ onSubmit?: (data: AdminSettingFormFieldValues) => void;
16
+ defaultValues?: Partial<AdminSettingFormFieldValues>;
17
+ currencies?: Array<Currency>;
18
+ providerMetadata: {
19
+ country?: string;
20
+ providableId?: number;
21
+ providerType?: ProvidableType;
22
+ };
23
+ }
24
+ export declare const AdminSettingForm: ({ isLoading, defaultValues, onSubmit, currencies, hasPermission, providerMetadata, }: AdminSettingFormProps) => import("react/jsx-runtime").JSX.Element;
25
+ //# sourceMappingURL=AdminSettingForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAOtF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAE7F,OAAO,EAAkB,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,IAAI,GAAG,OAAO,CAAA;IAC9B,oBAAoB,EAAE,IAAI,GAAG,OAAO,CAAA;IACpC,+BAA+B,EAAE,IAAI,GAAG,OAAO,CAAA;IAC/C,0BAA0B,EAAE,IAAI,GAAG,OAAO,CAAA;CAC3C,GAAG,yBAAyB,CAAA;AAE7B,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAA;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAC5B,gBAAgB,EAAE;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,YAAY,CAAC,EAAE,cAAc,CAAA;KAC9B,CAAA;CACF;AAED,eAAO,MAAM,gBAAgB,yFAO1B,qBAAqB,4CAsJvB,CAAA"}