@licklist/design 0.58.6-dev.11 → 0.58.6-dev.3

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 (84) hide show
  1. package/dist/assets/iframe/calendar.svg +2 -2
  2. package/dist/assets/iframe/calendar.svg.js +1 -1
  3. package/dist/assets/iframe/ticket.svg +2 -2
  4. package/dist/assets/iframe/ticket.svg.js +1 -1
  5. package/dist/calendar/Calendar.d.ts +1 -1
  6. package/dist/calendar/Calendar.d.ts.map +1 -1
  7. package/dist/calendar/Calendar.js +1 -1
  8. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
  9. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  10. package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
  11. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +2 -2
  12. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  13. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  14. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +2 -4
  15. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
  16. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  17. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
  18. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
  19. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.js +1 -1
  20. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +2 -4
  21. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
  22. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
  23. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -4
  24. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  25. package/dist/iframe/page/components/PageBody/constants.d.ts +0 -1
  26. package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
  27. package/dist/iframe/page/components/PageBody/constants.js +1 -1
  28. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  29. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -1
  30. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  31. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  32. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  33. package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
  34. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  35. package/dist/product-set/control/DateInput.js +1 -1
  36. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  37. package/dist/product-set/product/ProductControl.js +1 -1
  38. package/dist/product-set/product/constants.d.ts +0 -1
  39. package/dist/product-set/product/constants.d.ts.map +1 -1
  40. package/dist/product-set/product/constants.js +1 -1
  41. package/dist/product-set/product-category/ProductCategoryControl.d.ts +0 -1
  42. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  43. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  44. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  45. package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
  46. package/dist/snippet/snippet-template/control/PropertyControl.d.ts +1 -2
  47. package/dist/snippet/snippet-template/control/PropertyControl.d.ts.map +1 -1
  48. package/dist/snippet/snippet-template/control/PropertyControl.js +1 -1
  49. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  50. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  51. package/dist/styles/iframe-order-process/IframeOrderProcess.scss +18 -57
  52. package/dist/styles/iframe-page/PageBody.scss +1 -2
  53. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +2 -125
  54. package/package.json +4 -2
  55. package/src/assets/iframe/calendar.svg +2 -2
  56. package/src/assets/iframe/ticket.svg +2 -2
  57. package/src/calendar/Calendar.stories.tsx +0 -23
  58. package/src/calendar/Calendar.tsx +5 -5
  59. package/src/calendar/components/CalendarDates/CalendarDates.tsx +5 -0
  60. package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +0 -9
  61. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +7 -58
  62. package/src/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.tsx +0 -8
  63. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.tsx +4 -4
  64. package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +10 -63
  65. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -4
  66. package/src/iframe/page/components/PageBody/constants.ts +0 -2
  67. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +0 -10
  68. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +6 -546
  69. package/src/iframe/payment/payment-page/PaymentPage.tsx +29 -38
  70. package/src/iframe/ryft/RyftPaymentForm.tsx +5 -11
  71. package/src/product-set/control/DateInput.tsx +14 -17
  72. package/src/product-set/product/ProductControl.tsx +5 -8
  73. package/src/product-set/product/constants.ts +0 -1
  74. package/src/product-set/product-category/ProductCategoryControl.tsx +43 -105
  75. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +18 -4
  76. package/src/snippet/snippet-template/control/PropertyControl.tsx +1 -3
  77. package/src/sortable-tree/SortableTreeItem.tsx +4 -6
  78. package/src/styles/iframe-order-process/IframeOrderProcess.scss +18 -57
  79. package/src/styles/iframe-page/PageBody.scss +1 -2
  80. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +2 -125
  81. package/dist/iframe/ryft/utils/ryft-form.d.ts +0 -5
  82. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +0 -1
  83. package/dist/iframe/ryft/utils/ryft-form.js +0 -1
  84. package/src/iframe/ryft/utils/ryft-form.ts +0 -47
@@ -1,52 +1,10 @@
1
1
  .payment_link {
2
- padding: 0 0 1rem 0;
3
-
4
- .button-wrapper {
5
- top: 2rem;
6
- right: 2rem;
7
- position: absolute;
8
- z-index: 100;
9
- }
10
-
11
2
  .page-body {
12
- padding: 0;
13
- height: calc(100vh - 2rem) !important;
14
-
15
- .navigation {
16
- display: block;
17
- @include media-breakpoint-down(sm) {
18
- padding: 0;
19
- }
20
- }
21
-
22
- .right-block {
23
- margin-left: 0;
24
- height: calc(100vh - 2rem);
25
- max-height: calc(100vh - 1rem);
26
- @include media-breakpoint-down(sm) {
27
- width: calc(100% - 2rem);
28
- max-width: unset;
29
- position: inherit;
30
- overflow: visible;
31
- margin: 0 1rem 1rem;
32
- height: unset;
33
- min-height: unset;
34
- max-height: 100%;
35
- }
36
- }
37
-
38
3
  .left-block {
39
4
  .left-block-container {
40
5
  position: relative;
41
6
  max-height: 100%;
42
7
 
43
- .payment-title {
44
- font-size: 0.875rem;
45
- font-weight: 600;
46
- align-items: center;
47
- margin-left: 0.5rem;
48
- }
49
-
50
8
  .ryft-payment-form {
51
9
  .submit-button-wrapper {
52
10
  margin: -1rem 0 1rem;
@@ -55,55 +13,7 @@
55
13
  width: 100%;
56
14
  }
57
15
  }
58
- #mobile-pay-divider-container {
59
- display: flex;
60
- position: relative;
61
- margin-bottom: 1rem;
62
- #mobile-pay-divider-text {
63
- margin-right: 1rem;
64
- font-size: 0.875rem;
65
- font-weight: 600;
66
- }
67
- #mobile-pay-divider {
68
- width: 100%;
69
- border-bottom: 1px #dfdfdf solid;
70
- margin-bottom: 0.6rem;
71
- }
72
- }
73
16
 
74
- #card-title-container {
75
- height: auto;
76
- border: none;
77
- margin-bottom: 0.5rem;
78
- text-align: left;
79
- :first-child {
80
- font-size: 1rem;
81
- font-weight: 600;
82
- margin-bottom: 1rem;
83
- }
84
-
85
- .form-label {
86
- margin-bottom: 0.5rem;
87
- }
88
- }
89
- .mobile-pay-title {
90
- display: block;
91
- font-weight: 600;
92
- font-size: 1rem;
93
- color: black;
94
- padding: 0;
95
- font-style: normal;
96
- font-family: inherit;
97
- margin-bottom: 1rem;
98
- }
99
- }
100
- .form {
101
- .input {
102
- border: 2px solid #525252 !important;
103
- }
104
- }
105
-
106
- .ryft-payment-form {
107
17
  @include media-breakpoint-up(md) {
108
18
  .submit-button-wrapper {
109
19
  max-width: 15.5rem;
@@ -112,9 +22,10 @@
112
22
 
113
23
  // it's style for Google and Apple pay container, for unknown reasons we can't move this html elements with appendChild or replaceChild
114
24
  .ryft-pay-grid {
25
+ position: absolute !important;
26
+ top: 10rem;
115
27
  width: 100%;
116
28
  max-width: 15.5rem;
117
- margin-bottom: 1rem;
118
29
  }
119
30
  .ryft-pay-apple-pay-button {
120
31
  border-radius: 0.25rem;
@@ -125,36 +36,6 @@
125
36
  display: none !important;
126
37
  }
127
38
  }
128
- @include media-breakpoint-down(sm) {
129
- .left-block-container {
130
- max-height: 100%;
131
- overflow: visible;
132
- }
133
- }
134
- }
135
-
136
- @include media-breakpoint-down(sm) {
137
- flex-direction: column-reverse;
138
- overflow: scroll;
139
-
140
- @include media-breakpoint-down(sm) {
141
- .left-block {
142
- min-height: 100%;
143
- }
144
- .right-block {
145
- margin: 0 auto;
146
- width: 100%;
147
- .children-wrapper {
148
- .accordion {
149
- .collapse {
150
- overflow: visible;
151
- overflow-x: unset;
152
- scrollbar-width: unset;
153
- }
154
- }
155
- }
156
- }
157
- }
158
39
  }
159
40
  }
160
41
  ::-webkit-scrollbar {
@@ -181,7 +62,3 @@
181
62
  }
182
63
  }
183
64
  }
184
-
185
- #ryft-threeDSMethodIframe {
186
- display: none;
187
- }
@@ -1,5 +0,0 @@
1
- import { TFunction } from "react-i18next";
2
- export declare const injectComponentsInRyftForm: ({ t, }: {
3
- t: TFunction<string[]>;
4
- }) => void;
5
- //# sourceMappingURL=ryft-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAO,MAAM,0BAA0B;OAGlC,UAAU,MAAM,EAAE,CAAC;UAyCvB,CAAC"}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.injectComponentsInRyftForm=function(e){var t=e.t,n=document.getElementById("ryft-pay-iframe"),i=document.getElementById("card-title-container");if(n&&!i){var r=document.createElement("div"),d=document.createElement("div"),a=document.createElement("div");a.id="card-title-container",r.textContent=t("Design:enterCardDetails"),d.className="bold-text form-label",d.innerText=t("Design:paymentDetails"),a.append(r,d),null==n||n.before(a);var o=document.getElementById("ryft-pay-grid");if(o){var m=document.createElement("div"),c=document.createElement("div"),l=document.createElement("div"),s=document.createElement("div");m.className="mobile-pay-title",m.innerText=t("Design:expressCheckoutWith"),c.id="mobile-pay-divider-text",c.innerText="or",l.id="mobile-pay-divider",s.id="mobile-pay-divider-container",s.append(c,l),o.before(m),o.after(s)}}};
@@ -1,47 +0,0 @@
1
- import { TFunction } from "react-i18next";
2
-
3
- export const injectComponentsInRyftForm = ({
4
- t,
5
- }: {
6
- t: TFunction<string[]>;
7
- }) => {
8
- const cardContainer = document.getElementById("ryft-pay-iframe");
9
- const oldCardDividerContainer = document.getElementById(
10
- "card-title-container"
11
- );
12
-
13
- if (!cardContainer || oldCardDividerContainer) {
14
- return;
15
- }
16
-
17
- const cardTitle = document.createElement("div");
18
- const cardText = document.createElement("div");
19
- const cardTitleContainer = document.createElement("div");
20
- cardTitleContainer.id = "card-title-container";
21
- cardTitle.textContent = t("Design:enterCardDetails");
22
- cardText.className = "bold-text form-label";
23
- cardText.innerText = t("Design:paymentDetails");
24
- cardTitleContainer.append(cardTitle, cardText);
25
- cardContainer?.before(cardTitleContainer);
26
-
27
- const payGrid = document.getElementById("ryft-pay-grid");
28
-
29
- if (!payGrid) {
30
- return;
31
- }
32
-
33
- // Adding title and divider for apple and google pay button
34
- const mobilePayTitle = document.createElement("div");
35
- const dividerText = document.createElement("div");
36
- const divider = document.createElement("div");
37
- const container = document.createElement("div");
38
- mobilePayTitle.className = "mobile-pay-title";
39
- mobilePayTitle.innerText = t("Design:expressCheckoutWith");
40
- dividerText.id = "mobile-pay-divider-text";
41
- dividerText.innerText = "or";
42
- divider.id = "mobile-pay-divider";
43
- container.id = "mobile-pay-divider-container";
44
- container.append(dividerText, divider);
45
- payGrid.before(mobilePayTitle);
46
- payGrid.after(container);
47
- };