@licklist/design 0.58.3-dev.7 → 0.58.3-dev.9
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.
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.js +1 -1
- package/dist/static/manual-date-picker/constants/index.d.ts +4 -1
- package/dist/static/manual-date-picker/constants/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/constants/index.js +1 -1
- package/dist/static/manual-date-picker/utils/index.d.ts +4 -0
- package/dist/static/manual-date-picker/utils/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/utils/index.js +1 -1
- package/dist/styles/iframe-events/Card.scss +5 -2
- package/dist/styles/iframe-events/PoweredBy.scss +2 -2
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +0 -2
- package/dist/styles/iframe-page/PageBody.scss +32 -12
- package/dist/styles/iframe-page/PageHeader.scss +41 -39
- package/package.json +1 -1
- package/src/iframe/event/event-card/IframeEventCard.tsx +4 -8
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +14 -15
- package/src/static/manual-date-picker/ManualDatePicker.tsx +3 -3
- package/src/static/manual-date-picker/constants/index.ts +6 -2
- package/src/static/manual-date-picker/utils/index.ts +11 -0
- package/src/styles/iframe-events/Card.scss +5 -2
- package/src/styles/iframe-events/PoweredBy.scss +2 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +0 -2
- package/src/styles/iframe-page/PageBody.scss +32 -12
- package/src/styles/iframe-page/PageHeader.scss +41 -39
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,GACb,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,GACb,EAAE,oBAAoB,eA0FtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),a=require("react-i18next"),r=require("react-bootstrap"),i=e(require("clsx")),
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),a=require("react-i18next"),r=require("react-bootstrap"),i=e(require("clsx")),s=require("react-intl"),c=require("../../../tiptap-editor/TipTapEditor.js"),l=require("../../../events/event-card/utils.js"),n=require("../../../assets/iframe/clock.svg.js"),m=require("../../../assets/iframe/calendar.svg.js"),d=require("../../../assets/iframe/ticket.svg.js");exports.IframeEventCard=function(e){var o=e.title,u=e.type,v=e.cost,p=e.date,f=e.imageSrc,E=e.colour,N=e.goToDetails,g=e.description,C=e.isListView,x=void 0!==C&&C,w=e.className,T=e.shortDate,b=e.titleId,q=e.descriptionId,y=e.imageClassName,_=e.showMoreInfo,j=s.useIntl().formatNumber,I=a.useTranslation("Design").t;return t.createElement(r.Card,{style:{"--card-colour":E},className:i("iframe-event-card",{"list-view":x},w),onClick:N?function(){N&&N()}:void 0},_&&t.createElement("div",{className:"iframe-event-card__info-icon"},"i"),f&&t.createElement(r.Card.Img,{className:null!=y?y:"card-image",variant:"top",as:"div",style:{backgroundImage:'url("'.concat(f,'")')}}),t.createElement(r.Card.Body,{className:i("d-flex","flex-column",!f&&"no-image")},t.createElement(r.Card.Title,{className:"iframe-event-card__title",id:b},o),t.createElement("div",{className:"flex-grow-1 iframe-event-card__description"},t.createElement(r.Card.Text,{as:"div"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(m.ReactComponent,null)),t.createElement("p",{className:"m-0 list-view-hided"},p),t.createElement("p",{className:"m-0 grid-view-hided"},T))),u&&t.createElement(r.Card.Text,{as:"div",className:"list-view-hided"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(n.ReactComponent,null)),t.createElement("p",{className:"m-0"},u))),"number"==typeof v&&t.createElement(r.Card.Text,{as:"div"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(d.ReactComponent,null)),t.createElement("p",{className:"m-0"},I("from")," ",j(v,{style:"currency",currency:"GBP"})))),g&&t.createElement(r.Card.Text,{as:"div",className:"list-view-hided"},t.createElement(c.TipTapEditor,{viewMode:!0,disabled:!0,content:l.formatContent(g,150),id:q})))))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,2FAgGvB,CAAC"}
|
package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),a=require("react-bootstrap"),r=e(require("clsx")),u=t.forwardRef((function(e,t){var u=e.className,o=void 0===u?"":u,
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),a=require("react-bootstrap"),r=e(require("clsx")),u=t.forwardRef((function(e,t){var u=e.className,o=void 0===u?"":u,l=e.value,i=e.onChange,c=e.onArrowDown,m=e.onArrowUp,b=e.min,d=e.max,p=e.placeholder,s=e.defaultValue,f=e.disabled,v=!l,y=d>0&&l===d,N=r("payment-number-input",o);return n.createElement("div",{className:N},n.createElement("button",{type:"button",onClick:function(){l&&(b>0&&(l||0)===b?c(0):m(l-1))},className:"payment-number-input__btn-down ".concat(v&&"disabled-number-input-button"),disabled:f},"−"),n.createElement(a.FormControl,{type:"number",onChange:function(e){return t=Number(e.target.value),void i(d>0&&t>d?d:b>0&&t&&t<b?b:t);var t},value:l,min:b,max:d,defaultValue:s,placeholder:p,height:"5rem",disabled:f,ref:t}),n.createElement("button",{type:"button",onClick:function(){d>0&&l===d||m(b>0&&(l||0)<b?b:(l||0)+1)},className:"payment-number-input__btn-up ".concat(y&&"disabled-number-input-button"),disabled:f},"+"))}));u.displayName="NumberInput",exports.NumberInput=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),a=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,r=require("react-i18next"),n=require("react-bootstrap"),l=require("./constants/index.js");exports.ManualDatePicker=function(e){var t=e.isDisabled,o=e.day,i=e.setDay,u=e.month,c=e.setMonth,s=e.year,m=e.setYear,d=e.isRequred,v=void 0!==d&&d,p=r.useTranslation(["Validation","Design"]).t;return a.createElement(a.Fragment,null,a.createElement("div",{className:"custom-date-field-picker mr-4"},a.createElement(n.Form.Group,null,a.createElement(n.Form.Control,{value:o,as:"select",isInvalid:v&&!o,onChange:function(e){var t=e.target.value;i(t?Number(t):void 0)},disabled:t},a.createElement("option",{value:""},p("Design:dayShort")),l.DAYS_ARRAY.map((function(e){return a.createElement("option",{key:e,value:e},e)}))))),a.createElement("div",{className:"custom-date-field-picker mr-4"},a.createElement(n.Form.Group,null,a.createElement(n.Form.Control,{value:u,as:"select",isInvalid:v&&!u,onChange:function(e){var t=e.target.value;return c(t?Number(t):void 0)},disabled:t},a.createElement("option",{value:""},p("Design:monthShort")),l.MONTHS_ARRAY.map((function(e){return a.createElement("option",{key:e,value:e},e)}))))),a.createElement("div",{className:"custom-date-field-picker"},a.createElement(n.Form.Group,null,a.createElement(n.Form.Control,{value:s,as:"select",isInvalid:v&&!s,onChange:function(e){var t=e.target.value;return m(t?Number(t):void 0)},disabled:t},a.createElement("option",{value:""},p("Design:yearShort")),l.YEARS_ARRAY.map((function(e){return a.createElement("option",{key:e,value:e},e)}))))))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),a=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,r=require("react-i18next"),n=require("react-bootstrap"),l=require("./constants/index.js");exports.ManualDatePicker=function(e){var t=e.isDisabled,o=e.day,i=e.setDay,u=e.month,c=e.setMonth,s=e.year,m=e.setYear,d=e.isRequred,v=void 0!==d&&d,p=r.useTranslation(["Validation","Design"]).t;return a.createElement(a.Fragment,null,a.createElement("div",{className:"custom-date-field-picker mr-4"},a.createElement(n.Form.Group,null,a.createElement(n.Form.Control,{value:o,as:"select",isInvalid:v&&!o,onChange:function(e){var t=e.target.value;i(t?Number(t):void 0)},disabled:t},a.createElement("option",{value:""},p("Design:dayShort")),l.DAYS_ARRAY.map((function(e){return a.createElement("option",{key:e,value:e},e)}))))),a.createElement("div",{className:"custom-date-field-picker mr-4"},a.createElement(n.Form.Group,null,a.createElement(n.Form.Control,{value:u,as:"select",isInvalid:v&&!u,onChange:function(e){var t=e.target.value;return c(t?Number(t):void 0)},disabled:t},a.createElement("option",{value:""},p("Design:monthShort")),l.MONTHS_ARRAY.map((function(e){return a.createElement("option",{key:e.key,value:e.value},e.key)}))))),a.createElement("div",{className:"custom-date-field-picker"},a.createElement(n.Form.Group,null,a.createElement(n.Form.Control,{value:s,as:"select",isInvalid:v&&!s,onChange:function(e){var t=e.target.value;return m(t?Number(t):void 0)},disabled:t},a.createElement("option",{value:""},p("Design:yearShort")),l.YEARS_ARRAY.map((function(e){return a.createElement("option",{key:e,value:e},e)}))))))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/constants/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,UAA+B,CAAC;AACvD,eAAO,MAAM,YAAY;;;GAA+B,CAAC;AACzD,eAAO,MAAM,WAAW,UAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/index.js"),r=e.generateDatesArray(1,31,1),t=e.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/index.js"),r=e.generateDatesArray(1,31,1),t=e.generateMonthsOptionsArray(),s=e.generateYearsArray();exports.DAYS_ARRAY=r,exports.MONTHS_ARRAY=t,exports.YEARS_ARRAY=s;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const generateDatesArray: (start: number, end: number, step: number) => number[];
|
|
2
|
+
export declare const generateMonthsOptionsArray: () => {
|
|
3
|
+
key: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}[];
|
|
2
6
|
export declare const generateYearsArray: () => number[];
|
|
3
7
|
export declare const dateToSqlDate: (day: number, month: number, year: number) => string;
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UAAW,MAAM,OAAO,MAAM,QAAQ,MAAM,aAIxE,CAAC;AAEJ,eAAO,MAAM,kBAAkB,gBAQ9B,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,SAAS,MAAM,QAAQ,MAAM,WAUrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/manual-date-picker/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UAAW,MAAM,OAAO,MAAM,QAAQ,MAAM,aAIxE,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;GASnC,CAAC;AAEL,eAAO,MAAM,kBAAkB,gBAQ9B,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,SAAS,MAAM,QAAQ,MAAM,WAUrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.dateToSqlDate=function(r,t,e){var n=function(r){return r<10?"0".concat(r):r};return"".concat(e,"-").concat(n(t),"-").concat(n(r))},exports.generateDatesArray=function(r,t,e){return Array.from({length:(t-r)/e+1},(function(r,t){return 1+t*e}))},exports.generateYearsArray=function(){var r=(new Date).getFullYear()-100;return Array.from({length:100},(function(t,e){return r+e+1})).sort((function(r,t){return t-r}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.dateToSqlDate=function(r,t,e){var n=function(r){return r<10?"0".concat(r):r};return"".concat(e,"-").concat(n(t),"-").concat(n(r))},exports.generateDatesArray=function(r,t,e){return Array.from({length:(t-r)/e+1},(function(r,t){return 1+t*e}))},exports.generateMonthsOptionsArray=function(){return Array.from({length:12},(function(r,t){var e=t+1,n=String(e);return e<10&&(n="0".concat(n)),{key:n,value:e}}))},exports.generateYearsArray=function(){var r=(new Date).getFullYear()-100;return Array.from({length:100},(function(t,e){return r+e+1})).sort((function(r,t){return t-r}))};
|
|
@@ -19,12 +19,15 @@
|
|
|
19
19
|
background-size: cover;
|
|
20
20
|
background-position: center;
|
|
21
21
|
cursor: pointer;
|
|
22
|
-
border: 1px solid transparent;
|
|
23
22
|
border-radius: 0.5rem;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.card-body {
|
|
27
|
-
padding: 0.5rem 0 0.875rem;
|
|
26
|
+
padding: 0.5rem 0 0.875rem 0;
|
|
27
|
+
|
|
28
|
+
@include media-breakpoint-down(sm) {
|
|
29
|
+
padding: 1rem 0;
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
&__info-icon {
|
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
.left-block {
|
|
13
13
|
flex: 1;
|
|
14
14
|
align-items: stretch;
|
|
15
|
-
border-radius: 0.5rem;
|
|
16
|
-
border-bottom-left-radius: 0;
|
|
17
|
-
border-bottom-right-radius: 0;
|
|
18
15
|
padding: 1rem;
|
|
19
16
|
background-color: $snippet-page-body-left-block-background-color;
|
|
20
17
|
border: 0;
|
|
@@ -29,16 +26,14 @@
|
|
|
29
26
|
.navigation {
|
|
30
27
|
font-size: 1.125rem;
|
|
31
28
|
font-weight: 500;
|
|
32
|
-
|
|
29
|
+
margin-bottom: 1.25rem;
|
|
33
30
|
display: flex;
|
|
34
31
|
align-items: flex-start;
|
|
35
32
|
justify-content: space-between;
|
|
36
|
-
margin-top: 0.125rem;
|
|
37
|
-
|
|
38
33
|
.title {
|
|
39
|
-
position: absolute;
|
|
40
34
|
color: $snippet-elements-body-color;
|
|
41
35
|
margin: 0;
|
|
36
|
+
margin-top: 0.125rem;
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
@include media-breakpoint-down(sm) {
|
|
@@ -82,8 +77,6 @@
|
|
|
82
77
|
}
|
|
83
78
|
|
|
84
79
|
.right-block {
|
|
85
|
-
margin-left: 1rem;
|
|
86
|
-
border-radius: 0.5rem;
|
|
87
80
|
height: calc(100% - 1rem);
|
|
88
81
|
max-width: 17.5rem;
|
|
89
82
|
min-width: 17.5rem;
|
|
@@ -126,7 +119,7 @@
|
|
|
126
119
|
}
|
|
127
120
|
|
|
128
121
|
@include media-breakpoint-down(sm) {
|
|
129
|
-
max-height:
|
|
122
|
+
max-height: 100%;
|
|
130
123
|
}
|
|
131
124
|
}
|
|
132
125
|
.collapse-with-people-input {
|
|
@@ -152,8 +145,14 @@
|
|
|
152
145
|
}
|
|
153
146
|
|
|
154
147
|
.iframe-event-card {
|
|
155
|
-
|
|
156
|
-
|
|
148
|
+
border: none;
|
|
149
|
+
|
|
150
|
+
.card-image {
|
|
151
|
+
border-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
.card-body {
|
|
154
|
+
padding-left: 1rem;
|
|
155
|
+
}
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
.price {
|
|
@@ -263,3 +262,24 @@
|
|
|
263
262
|
}
|
|
264
263
|
}
|
|
265
264
|
}
|
|
265
|
+
|
|
266
|
+
.event-list-page-body {
|
|
267
|
+
overflow: auto;
|
|
268
|
+
.left-block {
|
|
269
|
+
.navigation {
|
|
270
|
+
font-size: 1.125rem;
|
|
271
|
+
font-weight: 500;
|
|
272
|
+
padding-bottom: 2.625rem;
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: flex-start;
|
|
275
|
+
justify-content: space-between;
|
|
276
|
+
margin-top: 0.125rem;
|
|
277
|
+
|
|
278
|
+
.title {
|
|
279
|
+
position: absolute;
|
|
280
|
+
color: $snippet-elements-body-color;
|
|
281
|
+
margin: 0;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
@@ -20,55 +20,57 @@ $base-height: 2.5rem;
|
|
|
20
20
|
transition: $color-transition;
|
|
21
21
|
border: 0;
|
|
22
22
|
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
.iframe-page {
|
|
27
|
+
.button-wrapper {
|
|
28
|
+
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
29
|
+
height: $base-height;
|
|
30
|
+
width: $base-height;
|
|
31
|
+
border-radius: $base-height;
|
|
32
|
+
transition: $color-transition;
|
|
33
|
+
|
|
34
|
+
.close-button {
|
|
35
|
+
font-size: 1.25rem;
|
|
27
36
|
width: $base-height;
|
|
28
|
-
|
|
37
|
+
height: $base-height;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
29
42
|
transition: $color-transition;
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: $base-height;
|
|
34
|
-
height: $base-height;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
color: $snippet-page-header-steps-close-button-border-color;
|
|
39
|
-
transition: $color-transition;
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
44
|
+
&:hover {
|
|
45
|
+
cursor: pointer;
|
|
44
46
|
}
|
|
47
|
+
}
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
&.close-button {
|
|
50
|
+
margin-left: 1rem;
|
|
51
|
+
}
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
.back-button {
|
|
54
|
+
font-size: 2rem;
|
|
55
|
+
width: $base-height;
|
|
56
|
+
height: $base-height;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
font-weight: lighter;
|
|
61
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
62
|
+
transition: $color-transition;
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: pointer;
|
|
64
66
|
}
|
|
67
|
+
}
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
69
|
+
&.back-button {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
margin-right: 1rem;
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
}
|
package/package.json
CHANGED
|
@@ -94,12 +94,8 @@ export function IframeEventCard({
|
|
|
94
94
|
<div className="icon-wrapper">
|
|
95
95
|
<CalendarSvg />
|
|
96
96
|
</div>
|
|
97
|
-
<p className="
|
|
98
|
-
|
|
99
|
-
</p>
|
|
100
|
-
<p className="iframe-event-card__bold m-0 grid-view-hided">
|
|
101
|
-
{shortDate}
|
|
102
|
-
</p>
|
|
97
|
+
<p className="m-0 list-view-hided">{date}</p>
|
|
98
|
+
<p className="m-0 grid-view-hided">{shortDate}</p>
|
|
103
99
|
</div>
|
|
104
100
|
</Card.Text>
|
|
105
101
|
|
|
@@ -109,7 +105,7 @@ export function IframeEventCard({
|
|
|
109
105
|
<div className="icon-wrapper">
|
|
110
106
|
<ClockSvg />
|
|
111
107
|
</div>
|
|
112
|
-
<p className="
|
|
108
|
+
<p className="m-0">{type}</p>
|
|
113
109
|
</div>
|
|
114
110
|
</Card.Text>
|
|
115
111
|
)}
|
|
@@ -120,7 +116,7 @@ export function IframeEventCard({
|
|
|
120
116
|
<div className="icon-wrapper">
|
|
121
117
|
<TicketSvg />
|
|
122
118
|
</div>
|
|
123
|
-
<p className="
|
|
119
|
+
<p className="m-0">
|
|
124
120
|
{t("from")}{" "}
|
|
125
121
|
{formatNumber(cost, { style: "currency", currency: "GBP" })}
|
|
126
122
|
</p>
|
package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx
CHANGED
|
@@ -32,10 +32,10 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
32
32
|
ref
|
|
33
33
|
) => {
|
|
34
34
|
const minusButtonGreyedOut = !value;
|
|
35
|
-
const plusButtonGreyedOut = max
|
|
35
|
+
const plusButtonGreyedOut = max > 0 && value === max;
|
|
36
36
|
|
|
37
37
|
const handleChangeValue = (val: number) => {
|
|
38
|
-
if (max
|
|
38
|
+
if (max > 0 && val > max) {
|
|
39
39
|
onChange(max);
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
@@ -48,29 +48,28 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
const handleArrowUpClick = () => {
|
|
51
|
+
if (max > 0 && value === max) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
if (min > 0 && (value || 0) < min) {
|
|
52
56
|
onArrowUp(min);
|
|
53
57
|
return;
|
|
54
58
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
if (max === undefined) {
|
|
59
|
-
onArrowUp(value + 1);
|
|
60
|
-
}
|
|
59
|
+
|
|
60
|
+
onArrowUp((value || 0) + 1);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
const handleArrowDownClick = () => {
|
|
64
|
-
if (
|
|
65
|
-
onArrowDown(0);
|
|
64
|
+
if (!value) {
|
|
66
65
|
return;
|
|
67
66
|
}
|
|
68
|
-
if (min
|
|
69
|
-
onArrowDown(
|
|
70
|
-
|
|
71
|
-
if (min === undefined) {
|
|
72
|
-
onArrowUp(value - 1);
|
|
67
|
+
if (min > 0 && (value || 0) === min) {
|
|
68
|
+
onArrowDown(0);
|
|
69
|
+
return;
|
|
73
70
|
}
|
|
71
|
+
|
|
72
|
+
onArrowUp(value - 1);
|
|
74
73
|
};
|
|
75
74
|
|
|
76
75
|
const inputWrapperClasses = clsx("payment-number-input", className);
|
|
@@ -61,9 +61,9 @@ export const ManualDatePicker = ({
|
|
|
61
61
|
disabled={isDisabled}
|
|
62
62
|
>
|
|
63
63
|
<option value="">{t("Design:monthShort")}</option>
|
|
64
|
-
{MONTHS_ARRAY.map((
|
|
65
|
-
<option key={key} value={
|
|
66
|
-
{key}
|
|
64
|
+
{MONTHS_ARRAY.map((object) => (
|
|
65
|
+
<option key={object.key} value={object.value}>
|
|
66
|
+
{object.key}
|
|
67
67
|
</option>
|
|
68
68
|
))}
|
|
69
69
|
</Form.Control>
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
generateDatesArray,
|
|
3
|
+
generateMonthsOptionsArray,
|
|
4
|
+
generateYearsArray,
|
|
5
|
+
} from "../utils";
|
|
2
6
|
|
|
3
7
|
export const DAYS_ARRAY = generateDatesArray(1, 31, 1);
|
|
4
|
-
export const MONTHS_ARRAY =
|
|
8
|
+
export const MONTHS_ARRAY = generateMonthsOptionsArray();
|
|
5
9
|
export const YEARS_ARRAY = generateYearsArray();
|
|
@@ -4,6 +4,17 @@ export const generateDatesArray = (start: number, end: number, step: number) =>
|
|
|
4
4
|
(_, index) => 1 + index * step
|
|
5
5
|
);
|
|
6
6
|
|
|
7
|
+
export const generateMonthsOptionsArray = () =>
|
|
8
|
+
Array.from({ length: 12 }, (_, index) => {
|
|
9
|
+
const value = index + 1;
|
|
10
|
+
let key = String(value);
|
|
11
|
+
if (value < 10) {
|
|
12
|
+
key = `0${key}`;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return { key, value };
|
|
16
|
+
});
|
|
17
|
+
|
|
7
18
|
export const generateYearsArray = () => {
|
|
8
19
|
const currentYear = new Date().getFullYear();
|
|
9
20
|
const ageBackYear = currentYear - 100;
|
|
@@ -19,12 +19,15 @@
|
|
|
19
19
|
background-size: cover;
|
|
20
20
|
background-position: center;
|
|
21
21
|
cursor: pointer;
|
|
22
|
-
border: 1px solid transparent;
|
|
23
22
|
border-radius: 0.5rem;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.card-body {
|
|
27
|
-
padding: 0.5rem 0 0.875rem;
|
|
26
|
+
padding: 0.5rem 0 0.875rem 0;
|
|
27
|
+
|
|
28
|
+
@include media-breakpoint-down(sm) {
|
|
29
|
+
padding: 1rem 0;
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
&__info-icon {
|
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
.left-block {
|
|
13
13
|
flex: 1;
|
|
14
14
|
align-items: stretch;
|
|
15
|
-
border-radius: 0.5rem;
|
|
16
|
-
border-bottom-left-radius: 0;
|
|
17
|
-
border-bottom-right-radius: 0;
|
|
18
15
|
padding: 1rem;
|
|
19
16
|
background-color: $snippet-page-body-left-block-background-color;
|
|
20
17
|
border: 0;
|
|
@@ -29,16 +26,14 @@
|
|
|
29
26
|
.navigation {
|
|
30
27
|
font-size: 1.125rem;
|
|
31
28
|
font-weight: 500;
|
|
32
|
-
|
|
29
|
+
margin-bottom: 1.25rem;
|
|
33
30
|
display: flex;
|
|
34
31
|
align-items: flex-start;
|
|
35
32
|
justify-content: space-between;
|
|
36
|
-
margin-top: 0.125rem;
|
|
37
|
-
|
|
38
33
|
.title {
|
|
39
|
-
position: absolute;
|
|
40
34
|
color: $snippet-elements-body-color;
|
|
41
35
|
margin: 0;
|
|
36
|
+
margin-top: 0.125rem;
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
@include media-breakpoint-down(sm) {
|
|
@@ -82,8 +77,6 @@
|
|
|
82
77
|
}
|
|
83
78
|
|
|
84
79
|
.right-block {
|
|
85
|
-
margin-left: 1rem;
|
|
86
|
-
border-radius: 0.5rem;
|
|
87
80
|
height: calc(100% - 1rem);
|
|
88
81
|
max-width: 17.5rem;
|
|
89
82
|
min-width: 17.5rem;
|
|
@@ -126,7 +119,7 @@
|
|
|
126
119
|
}
|
|
127
120
|
|
|
128
121
|
@include media-breakpoint-down(sm) {
|
|
129
|
-
max-height:
|
|
122
|
+
max-height: 100%;
|
|
130
123
|
}
|
|
131
124
|
}
|
|
132
125
|
.collapse-with-people-input {
|
|
@@ -152,8 +145,14 @@
|
|
|
152
145
|
}
|
|
153
146
|
|
|
154
147
|
.iframe-event-card {
|
|
155
|
-
|
|
156
|
-
|
|
148
|
+
border: none;
|
|
149
|
+
|
|
150
|
+
.card-image {
|
|
151
|
+
border-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
.card-body {
|
|
154
|
+
padding-left: 1rem;
|
|
155
|
+
}
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
.price {
|
|
@@ -263,3 +262,24 @@
|
|
|
263
262
|
}
|
|
264
263
|
}
|
|
265
264
|
}
|
|
265
|
+
|
|
266
|
+
.event-list-page-body {
|
|
267
|
+
overflow: auto;
|
|
268
|
+
.left-block {
|
|
269
|
+
.navigation {
|
|
270
|
+
font-size: 1.125rem;
|
|
271
|
+
font-weight: 500;
|
|
272
|
+
padding-bottom: 2.625rem;
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: flex-start;
|
|
275
|
+
justify-content: space-between;
|
|
276
|
+
margin-top: 0.125rem;
|
|
277
|
+
|
|
278
|
+
.title {
|
|
279
|
+
position: absolute;
|
|
280
|
+
color: $snippet-elements-body-color;
|
|
281
|
+
margin: 0;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
@@ -20,55 +20,57 @@ $base-height: 2.5rem;
|
|
|
20
20
|
transition: $color-transition;
|
|
21
21
|
border: 0;
|
|
22
22
|
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
.iframe-page {
|
|
27
|
+
.button-wrapper {
|
|
28
|
+
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
29
|
+
height: $base-height;
|
|
30
|
+
width: $base-height;
|
|
31
|
+
border-radius: $base-height;
|
|
32
|
+
transition: $color-transition;
|
|
33
|
+
|
|
34
|
+
.close-button {
|
|
35
|
+
font-size: 1.25rem;
|
|
27
36
|
width: $base-height;
|
|
28
|
-
|
|
37
|
+
height: $base-height;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
29
42
|
transition: $color-transition;
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: $base-height;
|
|
34
|
-
height: $base-height;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
color: $snippet-page-header-steps-close-button-border-color;
|
|
39
|
-
transition: $color-transition;
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
44
|
+
&:hover {
|
|
45
|
+
cursor: pointer;
|
|
44
46
|
}
|
|
47
|
+
}
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
&.close-button {
|
|
50
|
+
margin-left: 1rem;
|
|
51
|
+
}
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
.back-button {
|
|
54
|
+
font-size: 2rem;
|
|
55
|
+
width: $base-height;
|
|
56
|
+
height: $base-height;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
font-weight: lighter;
|
|
61
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
62
|
+
transition: $color-transition;
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: pointer;
|
|
64
66
|
}
|
|
67
|
+
}
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
69
|
+
&.back-button {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
margin-right: 1rem;
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
}
|