@qite/tide-components 1.0.13 → 1.0.15
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/build/build-cjs/index.js +11 -11
- package/build/build-esm/index.js +11 -11
- package/package.json +91 -91
- package/styles/abstracts/_mixins.scss +74 -74
- package/styles/abstracts/_variables.scss +57 -57
- package/styles/base/_fonts.scss +2 -2
- package/styles/base/_normalize.scss +227 -227
- package/styles/base/_typography.scss +35 -35
- package/styles/booking-joker-variables.scss +596 -596
- package/styles/booking-product-variables.scss +330 -330
- package/styles/booking-product.scss +438 -438
- package/styles/booking-qsm-variables.scss +501 -501
- package/styles/booking-qsm.scss +52 -52
- package/styles/booking-search-results-variables.scss +734 -734
- package/styles/booking-search-results.scss +53 -53
- package/styles/booking-wizard-variables.scss +603 -603
- package/styles/booking-wizard.scss +61 -61
- package/styles/components/_accordion.scss +67 -67
- package/styles/components/_animations.scss +39 -39
- package/styles/components/_base.scss +107 -107
- package/styles/components/_booking.scss +906 -906
- package/styles/components/_breadcrumb.scss +92 -92
- package/styles/components/_button.scss +238 -238
- package/styles/components/_checkbox.scss +230 -230
- package/styles/components/_contact.scss +255 -255
- package/styles/components/_content.scss +336 -336
- package/styles/components/_cta.scss +238 -238
- package/styles/components/_date-list.scss +41 -41
- package/styles/components/_date-range-picker.scss +223 -223
- package/styles/components/_decrement-increment.scss +35 -35
- package/styles/components/_dropdown.scss +77 -77
- package/styles/components/_error.scss +50 -50
- package/styles/components/_faq.scss +30 -30
- package/styles/components/_flight-option.scss +1444 -1444
- package/styles/components/_flyin.scss +830 -830
- package/styles/components/_footer.scss +135 -135
- package/styles/components/_form.scss +1704 -1704
- package/styles/components/_gallery.scss +317 -317
- package/styles/components/_header.scss +113 -113
- package/styles/components/_image-with-text.scss +206 -206
- package/styles/components/_img-slider.scss +175 -175
- package/styles/components/_info-message.scss +75 -75
- package/styles/components/_input.scss +35 -35
- package/styles/components/_list.scss +185 -185
- package/styles/components/_loader.scss +152 -152
- package/styles/components/_login.scss +140 -140
- package/styles/components/_map-view.scss +1100 -1100
- package/styles/components/_mixins.scss +579 -579
- package/styles/components/_navbar.scss +765 -765
- package/styles/components/_passenger-picker.scss +306 -306
- package/styles/components/_phone-input.scss +8 -8
- package/styles/components/_placeholders.scss +165 -165
- package/styles/components/_pricing-summary.scss +163 -163
- package/styles/components/_qsm.scss +17 -17
- package/styles/components/_radiobutton.scss +170 -170
- package/styles/components/_search.scss +2197 -2197
- package/styles/components/_select-wrapper.scss +81 -81
- package/styles/components/_slider.scss +120 -120
- package/styles/components/_spinner.scss +29 -29
- package/styles/components/_step-indicators.scss +187 -187
- package/styles/components/_table.scss +81 -81
- package/styles/components/_tide-form.scss +578 -578
- package/styles/components/_tree.scss +648 -648
- package/styles/components/_typeahead.scss +275 -275
- package/styles/components/_variables.scss +89 -89
- package/styles/content-blocks-variables.scss +543 -543
- package/styles/content-blocks.scss +66 -66
- package/styles/font.scss +2 -2
- package/styles/qsm/_calendar.scss +274 -274
- package/styles/qsm/_qsm.scss +1097 -1097
- package/styles/search.scss +1200 -1200
- package/styles/tide-form-variables.scss +275 -275
- package/styles/tide-form.scss +56 -56
package/build/build-cjs/index.js
CHANGED
|
@@ -22737,7 +22737,7 @@ const SharedSidebar = ({ productName, thumbnailUrl, isLoading, translations, hea
|
|
|
22737
22737
|
detail.description),
|
|
22738
22738
|
React__default["default"].createElement("div", { className: "pricing-summary__value" }, formatPrice$3(detail.price / detail.numberOfPax, currencyCode))))))))))))))),
|
|
22739
22739
|
!isLoading && canShowTotalPriceSection && !isUnavailable && (React__default["default"].createElement("div", { className: `pricing-summary__region pricing-summary__region--pricing ${!isLoading ? 'pricing-summary__region--fade-in' : ''}` }, deposit && remainingAmount > 0 ? (React__default["default"].createElement("div", { className: "pricing-summary__group" },
|
|
22740
|
-
agent && (React__default["default"].createElement("div", { className: "pricing-summary__row pricing-summary__row--total-price" },
|
|
22740
|
+
agent && showCommission && (React__default["default"].createElement("div", { className: "pricing-summary__row pricing-summary__row--total-price" },
|
|
22741
22741
|
React__default["default"].createElement("div", { className: "pricing-summary__property" },
|
|
22742
22742
|
React__default["default"].createElement("h6", { className: "pricing-summary__title" }, translations.SIDEBAR.COMMISSION)),
|
|
22743
22743
|
React__default["default"].createElement("div", { className: "pricing-summary__value" },
|
|
@@ -34326,7 +34326,7 @@ const WLSidebar = ({ activeSearchSeed, packagingAccoResult }) => {
|
|
|
34326
34326
|
const separateExtraPriceDetails = priceDetails?.details.filter((pd) => !pd.isInPackage && pd.isSeparate) ?? [];
|
|
34327
34327
|
const totalPrice = lodash.sum([basePrice, ...separateExtraPriceDetails.map((priceDetail) => priceDetail.price * priceDetail.amount)]);
|
|
34328
34328
|
const includedCosts = selectSeparatePackagePriceDetails(priceDetails?.details.filter((pd) => pd.isInPackage) ?? []);
|
|
34329
|
-
return (React__default["default"].createElement(SharedSidebar, { productName: location ?? '', thumbnailUrl: accoImage ?? context.destinationImage?.url, translations: translations, travelerRooms: travelerRooms, startDateText: lodash.first(sortedLines)?.from && formatDate(new Date(lodash.first(sortedLines).from)), endDateText: lodash.last(sortedLines)?.to && formatDate(new Date(lodash.last(sortedLines).to)), isLoading: !editablePackagingEntry || !priceDetails, loaderComponent: React__default["default"].createElement(Spinner, null), departureFlightMetaData: outboundFlightMetaData, returnFlightMetaData: returnFlightMetaData, includedServiceTypes: editablePackagingEntry.lines.map((line) => line.serviceType), packagingAccommodations: accommodationLines, basePrice: basePrice, commission: priceDetails?.commission, totalPrice: totalPrice, includedCosts: includedCosts, extraCosts: separateExtraPriceDetails, deposit: priceDetails?.deposit, isUnavailable: false, agent: context.agentId, currencyCode: packagingAccoResult?.currencyCode }));
|
|
34329
|
+
return (React__default["default"].createElement(SharedSidebar, { productName: location ?? '', thumbnailUrl: accoImage ?? context.destinationImage?.url, translations: translations, travelerRooms: travelerRooms, startDateText: lodash.first(sortedLines)?.from && formatDate(new Date(lodash.first(sortedLines).from)), endDateText: lodash.last(sortedLines)?.to && formatDate(new Date(lodash.last(sortedLines).to)), isLoading: !editablePackagingEntry || !priceDetails, loaderComponent: React__default["default"].createElement(Spinner, null), departureFlightMetaData: outboundFlightMetaData, returnFlightMetaData: returnFlightMetaData, includedServiceTypes: editablePackagingEntry.lines.map((line) => line.serviceType), packagingAccommodations: accommodationLines, basePrice: basePrice, commission: priceDetails?.commission, showCommission: (priceDetails?.commission ?? 0) > 0, totalPrice: totalPrice, includedCosts: includedCosts, extraCosts: separateExtraPriceDetails, deposit: priceDetails?.deposit, isUnavailable: false, agent: context.agentId, currencyCode: packagingAccoResult?.currencyCode }));
|
|
34330
34330
|
};
|
|
34331
34331
|
|
|
34332
34332
|
const formatBirthDate = (birthDate) => {
|
|
@@ -39302,20 +39302,20 @@ function ItineraryMapView({ destinations: propDestinations, adults = 2, dateFrom
|
|
|
39302
39302
|
const isStartEnd = dest.isStart || dest.isEnd;
|
|
39303
39303
|
let iconHtml;
|
|
39304
39304
|
if (isStartEnd) {
|
|
39305
|
-
iconHtml = `
|
|
39306
|
-
<div class="map-view__marker map-view__marker--plane">
|
|
39307
|
-
<svg viewBox="0 0 576 512" fill="currentColor" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
|
|
39308
|
-
<path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10.1-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.3-15.8-20.6l49-196.3L112 288 68.8 377.6c-3 6.1-9.2 10.4-16 10.4l-2.8 0c-9.2 0-16-8.8-13.3-17.6L80 256L36.7 141.6C34 132.8 40.8 124 50 124l2.8 0c6.8 0 13 4.3 16 10.4L112 224l102.9 0-49-196.3C163.5 17.3 171.2 7 181.8 7l56.2 0c11.5 0 22.1 6 27.8 16.1L365.7 192l116.6 0z"/>
|
|
39309
|
-
</svg>
|
|
39305
|
+
iconHtml = `
|
|
39306
|
+
<div class="map-view__marker map-view__marker--plane">
|
|
39307
|
+
<svg viewBox="0 0 576 512" fill="currentColor" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
|
|
39308
|
+
<path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10.1-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.3-15.8-20.6l49-196.3L112 288 68.8 377.6c-3 6.1-9.2 10.4-16 10.4l-2.8 0c-9.2 0-16-8.8-13.3-17.6L80 256L36.7 141.6C34 132.8 40.8 124 50 124l2.8 0c6.8 0 13 4.3 16 10.4L112 224l102.9 0-49-196.3C163.5 17.3 171.2 7 181.8 7l56.2 0c11.5 0 22.1 6 27.8 16.1L365.7 192l116.6 0z"/>
|
|
39309
|
+
</svg>
|
|
39310
39310
|
</div>`;
|
|
39311
39311
|
}
|
|
39312
39312
|
else {
|
|
39313
39313
|
stopIndex++;
|
|
39314
39314
|
const imgStyle = dest.imageUrl ? `style="background-image:url('${dest.imageUrl}')"` : '';
|
|
39315
|
-
iconHtml = `
|
|
39316
|
-
<div class="map-view__marker map-view__marker--stop" ${imgStyle}>
|
|
39317
|
-
${!dest.imageUrl ? `<span class="map-view__marker-number">${stopIndex}</span>` : ''}
|
|
39318
|
-
<span class="map-view__marker-badge">${stopIndex}</span>
|
|
39315
|
+
iconHtml = `
|
|
39316
|
+
<div class="map-view__marker map-view__marker--stop" ${imgStyle}>
|
|
39317
|
+
${!dest.imageUrl ? `<span class="map-view__marker-number">${stopIndex}</span>` : ''}
|
|
39318
|
+
<span class="map-view__marker-badge">${stopIndex}</span>
|
|
39319
39319
|
</div>`;
|
|
39320
39320
|
}
|
|
39321
39321
|
const icon = L.divIcon({
|
package/build/build-esm/index.js
CHANGED
|
@@ -22708,7 +22708,7 @@ const SharedSidebar = ({ productName, thumbnailUrl, isLoading, translations, hea
|
|
|
22708
22708
|
detail.description),
|
|
22709
22709
|
React__default.createElement("div", { className: "pricing-summary__value" }, formatPrice$3(detail.price / detail.numberOfPax, currencyCode))))))))))))))),
|
|
22710
22710
|
!isLoading && canShowTotalPriceSection && !isUnavailable && (React__default.createElement("div", { className: `pricing-summary__region pricing-summary__region--pricing ${!isLoading ? 'pricing-summary__region--fade-in' : ''}` }, deposit && remainingAmount > 0 ? (React__default.createElement("div", { className: "pricing-summary__group" },
|
|
22711
|
-
agent && (React__default.createElement("div", { className: "pricing-summary__row pricing-summary__row--total-price" },
|
|
22711
|
+
agent && showCommission && (React__default.createElement("div", { className: "pricing-summary__row pricing-summary__row--total-price" },
|
|
22712
22712
|
React__default.createElement("div", { className: "pricing-summary__property" },
|
|
22713
22713
|
React__default.createElement("h6", { className: "pricing-summary__title" }, translations.SIDEBAR.COMMISSION)),
|
|
22714
22714
|
React__default.createElement("div", { className: "pricing-summary__value" },
|
|
@@ -34297,7 +34297,7 @@ const WLSidebar = ({ activeSearchSeed, packagingAccoResult }) => {
|
|
|
34297
34297
|
const separateExtraPriceDetails = priceDetails?.details.filter((pd) => !pd.isInPackage && pd.isSeparate) ?? [];
|
|
34298
34298
|
const totalPrice = sum([basePrice, ...separateExtraPriceDetails.map((priceDetail) => priceDetail.price * priceDetail.amount)]);
|
|
34299
34299
|
const includedCosts = selectSeparatePackagePriceDetails(priceDetails?.details.filter((pd) => pd.isInPackage) ?? []);
|
|
34300
|
-
return (React__default.createElement(SharedSidebar, { productName: location ?? '', thumbnailUrl: accoImage ?? context.destinationImage?.url, translations: translations, travelerRooms: travelerRooms, startDateText: first(sortedLines)?.from && formatDate(new Date(first(sortedLines).from)), endDateText: last(sortedLines)?.to && formatDate(new Date(last(sortedLines).to)), isLoading: !editablePackagingEntry || !priceDetails, loaderComponent: React__default.createElement(Spinner, null), departureFlightMetaData: outboundFlightMetaData, returnFlightMetaData: returnFlightMetaData, includedServiceTypes: editablePackagingEntry.lines.map((line) => line.serviceType), packagingAccommodations: accommodationLines, basePrice: basePrice, commission: priceDetails?.commission, totalPrice: totalPrice, includedCosts: includedCosts, extraCosts: separateExtraPriceDetails, deposit: priceDetails?.deposit, isUnavailable: false, agent: context.agentId, currencyCode: packagingAccoResult?.currencyCode }));
|
|
34300
|
+
return (React__default.createElement(SharedSidebar, { productName: location ?? '', thumbnailUrl: accoImage ?? context.destinationImage?.url, translations: translations, travelerRooms: travelerRooms, startDateText: first(sortedLines)?.from && formatDate(new Date(first(sortedLines).from)), endDateText: last(sortedLines)?.to && formatDate(new Date(last(sortedLines).to)), isLoading: !editablePackagingEntry || !priceDetails, loaderComponent: React__default.createElement(Spinner, null), departureFlightMetaData: outboundFlightMetaData, returnFlightMetaData: returnFlightMetaData, includedServiceTypes: editablePackagingEntry.lines.map((line) => line.serviceType), packagingAccommodations: accommodationLines, basePrice: basePrice, commission: priceDetails?.commission, showCommission: (priceDetails?.commission ?? 0) > 0, totalPrice: totalPrice, includedCosts: includedCosts, extraCosts: separateExtraPriceDetails, deposit: priceDetails?.deposit, isUnavailable: false, agent: context.agentId, currencyCode: packagingAccoResult?.currencyCode }));
|
|
34301
34301
|
};
|
|
34302
34302
|
|
|
34303
34303
|
const formatBirthDate = (birthDate) => {
|
|
@@ -39273,20 +39273,20 @@ function ItineraryMapView({ destinations: propDestinations, adults = 2, dateFrom
|
|
|
39273
39273
|
const isStartEnd = dest.isStart || dest.isEnd;
|
|
39274
39274
|
let iconHtml;
|
|
39275
39275
|
if (isStartEnd) {
|
|
39276
|
-
iconHtml = `
|
|
39277
|
-
<div class="map-view__marker map-view__marker--plane">
|
|
39278
|
-
<svg viewBox="0 0 576 512" fill="currentColor" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
|
|
39279
|
-
<path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10.1-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.3-15.8-20.6l49-196.3L112 288 68.8 377.6c-3 6.1-9.2 10.4-16 10.4l-2.8 0c-9.2 0-16-8.8-13.3-17.6L80 256L36.7 141.6C34 132.8 40.8 124 50 124l2.8 0c6.8 0 13 4.3 16 10.4L112 224l102.9 0-49-196.3C163.5 17.3 171.2 7 181.8 7l56.2 0c11.5 0 22.1 6 27.8 16.1L365.7 192l116.6 0z"/>
|
|
39280
|
-
</svg>
|
|
39276
|
+
iconHtml = `
|
|
39277
|
+
<div class="map-view__marker map-view__marker--plane">
|
|
39278
|
+
<svg viewBox="0 0 576 512" fill="currentColor" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
|
|
39279
|
+
<path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10.1-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.3-15.8-20.6l49-196.3L112 288 68.8 377.6c-3 6.1-9.2 10.4-16 10.4l-2.8 0c-9.2 0-16-8.8-13.3-17.6L80 256L36.7 141.6C34 132.8 40.8 124 50 124l2.8 0c6.8 0 13 4.3 16 10.4L112 224l102.9 0-49-196.3C163.5 17.3 171.2 7 181.8 7l56.2 0c11.5 0 22.1 6 27.8 16.1L365.7 192l116.6 0z"/>
|
|
39280
|
+
</svg>
|
|
39281
39281
|
</div>`;
|
|
39282
39282
|
}
|
|
39283
39283
|
else {
|
|
39284
39284
|
stopIndex++;
|
|
39285
39285
|
const imgStyle = dest.imageUrl ? `style="background-image:url('${dest.imageUrl}')"` : '';
|
|
39286
|
-
iconHtml = `
|
|
39287
|
-
<div class="map-view__marker map-view__marker--stop" ${imgStyle}>
|
|
39288
|
-
${!dest.imageUrl ? `<span class="map-view__marker-number">${stopIndex}</span>` : ''}
|
|
39289
|
-
<span class="map-view__marker-badge">${stopIndex}</span>
|
|
39286
|
+
iconHtml = `
|
|
39287
|
+
<div class="map-view__marker map-view__marker--stop" ${imgStyle}>
|
|
39288
|
+
${!dest.imageUrl ? `<span class="map-view__marker-number">${stopIndex}</span>` : ''}
|
|
39289
|
+
<span class="map-view__marker-badge">${stopIndex}</span>
|
|
39290
39290
|
</div>`;
|
|
39291
39291
|
}
|
|
39292
39292
|
const icon = L.divIcon({
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@qite/tide-components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "React components for Tide (booking, product availability, form, ...)",
|
|
5
|
-
"main": "build/build-cjs/index.js",
|
|
6
|
-
"types": "build/build-cjs/src/index.d.ts",
|
|
7
|
-
"module": "build/build-esm/index.js",
|
|
8
|
-
"files": [
|
|
9
|
-
"build",
|
|
10
|
-
"styles"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"use-node": "powershell -Command \"nvm use (Get-Content .nvmrc)\"",
|
|
14
|
-
"start": "rollup -c -w",
|
|
15
|
-
"build": "rollup -c",
|
|
16
|
-
"tsc": "tsc --noEmit",
|
|
17
|
-
"format": "prettier --write .",
|
|
18
|
-
"prepare": "husky"
|
|
19
|
-
},
|
|
20
|
-
"lint-staged": {
|
|
21
|
-
"*": "prettier --write --ignore-unknown"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+ssh://git@bitbucket.org/qitegeneral/tide-booking-component.git"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"tide",
|
|
29
|
-
"booking",
|
|
30
|
-
"react",
|
|
31
|
-
"component"
|
|
32
|
-
],
|
|
33
|
-
"author": "Qite",
|
|
34
|
-
"license": "OBSD",
|
|
35
|
-
"homepage": "https://bitbucket.org/qitegeneral/tide-booking-component#readme",
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@jsonurl/jsonurl": "^1.1.4",
|
|
38
|
-
"@popperjs/core": "^2.10.2",
|
|
39
|
-
"@qite/tide-client": "^2.0.19",
|
|
40
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
41
|
-
"@rollup/plugin-commonjs": "^19.0.1",
|
|
42
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
43
|
-
"@rollup/plugin-node-resolve": "^13.0.2",
|
|
44
|
-
"@types/flat": "^5.0.2",
|
|
45
|
-
"@types/he": "^1.2.3",
|
|
46
|
-
"@types/lodash": "^4.14.171",
|
|
47
|
-
"@types/react": "^18.2.0",
|
|
48
|
-
"@types/react-dom": "^18.2.0",
|
|
49
|
-
"@types/uuid": "^8.3.1",
|
|
50
|
-
"date-fns": "^4.1.0",
|
|
51
|
-
"flat": "^5.0.2",
|
|
52
|
-
"formik": "^2.2.9",
|
|
53
|
-
"husky": "^9.1.7",
|
|
54
|
-
"lint-staged": "^15.5.2",
|
|
55
|
-
"lodash": "^4.17.21",
|
|
56
|
-
"prettier": "^2.3.2",
|
|
57
|
-
"react-popper": "^2.2.5",
|
|
58
|
-
"react-redux": "^9.2.0",
|
|
59
|
-
"rollup": "^2.53.2",
|
|
60
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
61
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
62
|
-
"rollup-plugin-typescript2": "0.36.0",
|
|
63
|
-
"tslib": "^2.3.1",
|
|
64
|
-
"typescript": "^5.9.3",
|
|
65
|
-
"uuid": "^11.1.0"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"@jsonurl/jsonurl": "^1.1.4",
|
|
69
|
-
"@popperjs/core": "^2.10.2",
|
|
70
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
71
|
-
"date-fns": "^4.1.0",
|
|
72
|
-
"flat": "^5.0.2",
|
|
73
|
-
"formik": "^2.2.9",
|
|
74
|
-
"immer": "^9.0.5",
|
|
75
|
-
"lodash": "^4.17.21",
|
|
76
|
-
"react": "^18.2.0",
|
|
77
|
-
"react-dom": "^18.2.0",
|
|
78
|
-
"react-popper": "^2.2.5",
|
|
79
|
-
"react-redux": "^9.2.0",
|
|
80
|
-
"react-router": "^6.30.3",
|
|
81
|
-
"uuid": "^11.1.0"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"he": "^1.2.0",
|
|
85
|
-
"jwt-decode": "^4.0.0",
|
|
86
|
-
"react-html-comment": "^2.0.16",
|
|
87
|
-
"react-router-dom": "^6.30.3",
|
|
88
|
-
"signalr-no-jquery": "^0.2.1",
|
|
89
|
-
"yup": "^1.6.1"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@qite/tide-components",
|
|
3
|
+
"version": "1.0.15",
|
|
4
|
+
"description": "React components for Tide (booking, product availability, form, ...)",
|
|
5
|
+
"main": "build/build-cjs/index.js",
|
|
6
|
+
"types": "build/build-cjs/src/index.d.ts",
|
|
7
|
+
"module": "build/build-esm/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"build",
|
|
10
|
+
"styles"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"use-node": "powershell -Command \"nvm use (Get-Content .nvmrc)\"",
|
|
14
|
+
"start": "rollup -c -w",
|
|
15
|
+
"build": "rollup -c",
|
|
16
|
+
"tsc": "tsc --noEmit",
|
|
17
|
+
"format": "prettier --write .",
|
|
18
|
+
"prepare": "husky"
|
|
19
|
+
},
|
|
20
|
+
"lint-staged": {
|
|
21
|
+
"*": "prettier --write --ignore-unknown"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+ssh://git@bitbucket.org/qitegeneral/tide-booking-component.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"tide",
|
|
29
|
+
"booking",
|
|
30
|
+
"react",
|
|
31
|
+
"component"
|
|
32
|
+
],
|
|
33
|
+
"author": "Qite",
|
|
34
|
+
"license": "OBSD",
|
|
35
|
+
"homepage": "https://bitbucket.org/qitegeneral/tide-booking-component#readme",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@jsonurl/jsonurl": "^1.1.4",
|
|
38
|
+
"@popperjs/core": "^2.10.2",
|
|
39
|
+
"@qite/tide-client": "^2.0.19",
|
|
40
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
41
|
+
"@rollup/plugin-commonjs": "^19.0.1",
|
|
42
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
43
|
+
"@rollup/plugin-node-resolve": "^13.0.2",
|
|
44
|
+
"@types/flat": "^5.0.2",
|
|
45
|
+
"@types/he": "^1.2.3",
|
|
46
|
+
"@types/lodash": "^4.14.171",
|
|
47
|
+
"@types/react": "^18.2.0",
|
|
48
|
+
"@types/react-dom": "^18.2.0",
|
|
49
|
+
"@types/uuid": "^8.3.1",
|
|
50
|
+
"date-fns": "^4.1.0",
|
|
51
|
+
"flat": "^5.0.2",
|
|
52
|
+
"formik": "^2.2.9",
|
|
53
|
+
"husky": "^9.1.7",
|
|
54
|
+
"lint-staged": "^15.5.2",
|
|
55
|
+
"lodash": "^4.17.21",
|
|
56
|
+
"prettier": "^2.3.2",
|
|
57
|
+
"react-popper": "^2.2.5",
|
|
58
|
+
"react-redux": "^9.2.0",
|
|
59
|
+
"rollup": "^2.53.2",
|
|
60
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
61
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
62
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
63
|
+
"tslib": "^2.3.1",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"uuid": "^11.1.0"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@jsonurl/jsonurl": "^1.1.4",
|
|
69
|
+
"@popperjs/core": "^2.10.2",
|
|
70
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
71
|
+
"date-fns": "^4.1.0",
|
|
72
|
+
"flat": "^5.0.2",
|
|
73
|
+
"formik": "^2.2.9",
|
|
74
|
+
"immer": "^9.0.5",
|
|
75
|
+
"lodash": "^4.17.21",
|
|
76
|
+
"react": "^18.2.0",
|
|
77
|
+
"react-dom": "^18.2.0",
|
|
78
|
+
"react-popper": "^2.2.5",
|
|
79
|
+
"react-redux": "^9.2.0",
|
|
80
|
+
"react-router": "^6.30.3",
|
|
81
|
+
"uuid": "^11.1.0"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"he": "^1.2.0",
|
|
85
|
+
"jwt-decode": "^4.0.0",
|
|
86
|
+
"react-html-comment": "^2.0.16",
|
|
87
|
+
"react-router-dom": "^6.30.3",
|
|
88
|
+
"signalr-no-jquery": "^0.2.1",
|
|
89
|
+
"yup": "^1.6.1"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
@use '../abstracts/variables' as variables;
|
|
2
|
-
// MEDIA QUERIES
|
|
3
|
-
@mixin media-xs {
|
|
4
|
-
@media only screen and (max-width: variables.$screen-xs) {
|
|
5
|
-
@content;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin media-sm {
|
|
10
|
-
@media only screen and (max-width: variables.$screen-sm) {
|
|
11
|
-
@content;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin media-md {
|
|
16
|
-
@media only screen and (max-width: variables.$screen-md) {
|
|
17
|
-
@content;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin media-lg {
|
|
22
|
-
@media only screen and (max-width: variables.$screen-lg) {
|
|
23
|
-
@content;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin media-xgl {
|
|
28
|
-
@media only screen and (max-width: variables.$screen-xgl) {
|
|
29
|
-
@content;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@mixin media-xl {
|
|
34
|
-
@media only screen and (max-width: variables.$screen-xl) {
|
|
35
|
-
@content;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@mixin media-xxl {
|
|
40
|
-
@media only screen and (max-width: variables.$screen-xxl) {
|
|
41
|
-
@content;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@mixin media-xxxl {
|
|
46
|
-
@media only screen and (max-width: variables.$screen-xxl) {
|
|
47
|
-
@content;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@mixin make-container($padding-x: $container-padding-x) {
|
|
52
|
-
width: 100%;
|
|
53
|
-
max-width: 1496px;
|
|
54
|
-
margin-right: auto;
|
|
55
|
-
margin-left: auto;
|
|
56
|
-
|
|
57
|
-
@include media-xl {
|
|
58
|
-
padding: 0 $padding-x;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@mixin container() {
|
|
63
|
-
width: 100%;
|
|
64
|
-
padding: 0 15px;
|
|
65
|
-
margin: 0 auto;
|
|
66
|
-
|
|
67
|
-
@include media-sm {
|
|
68
|
-
padding: 0 30px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@include media-lg {
|
|
72
|
-
padding: 0 45px;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
@use '../abstracts/variables' as variables;
|
|
2
|
+
// MEDIA QUERIES
|
|
3
|
+
@mixin media-xs {
|
|
4
|
+
@media only screen and (max-width: variables.$screen-xs) {
|
|
5
|
+
@content;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin media-sm {
|
|
10
|
+
@media only screen and (max-width: variables.$screen-sm) {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin media-md {
|
|
16
|
+
@media only screen and (max-width: variables.$screen-md) {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin media-lg {
|
|
22
|
+
@media only screen and (max-width: variables.$screen-lg) {
|
|
23
|
+
@content;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin media-xgl {
|
|
28
|
+
@media only screen and (max-width: variables.$screen-xgl) {
|
|
29
|
+
@content;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin media-xl {
|
|
34
|
+
@media only screen and (max-width: variables.$screen-xl) {
|
|
35
|
+
@content;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin media-xxl {
|
|
40
|
+
@media only screen and (max-width: variables.$screen-xxl) {
|
|
41
|
+
@content;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin media-xxxl {
|
|
46
|
+
@media only screen and (max-width: variables.$screen-xxl) {
|
|
47
|
+
@content;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin make-container($padding-x: $container-padding-x) {
|
|
52
|
+
width: 100%;
|
|
53
|
+
max-width: 1496px;
|
|
54
|
+
margin-right: auto;
|
|
55
|
+
margin-left: auto;
|
|
56
|
+
|
|
57
|
+
@include media-xl {
|
|
58
|
+
padding: 0 $padding-x;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin container() {
|
|
63
|
+
width: 100%;
|
|
64
|
+
padding: 0 15px;
|
|
65
|
+
margin: 0 auto;
|
|
66
|
+
|
|
67
|
+
@include media-sm {
|
|
68
|
+
padding: 0 30px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include media-lg {
|
|
72
|
+
padding: 0 45px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
// COLORS
|
|
2
|
-
$primary-color: #25575c;
|
|
3
|
-
$primary-color--light: #32686d;
|
|
4
|
-
$secondary-color: #57abb2;
|
|
5
|
-
$secondary-color--light: #abd5d9;
|
|
6
|
-
$secondary-color--extralight: #e3f1f2;
|
|
7
|
-
|
|
8
|
-
$bg-light: #f4f9fa;
|
|
9
|
-
$text-color: #707070;
|
|
10
|
-
$text-color-black: #202124;
|
|
11
|
-
|
|
12
|
-
$white: #ffffff;
|
|
13
|
-
$gray: #c6c6c6;
|
|
14
|
-
$black: #000000;
|
|
15
|
-
$transparent: transparent;
|
|
16
|
-
|
|
17
|
-
// BUTTON COLORS XD
|
|
18
|
-
$purple-color--light: #dfcce8;
|
|
19
|
-
$purple-color--dark: #794e8c;
|
|
20
|
-
|
|
21
|
-
$yellow-color--light: #fff9de;
|
|
22
|
-
$yellow-color--dark: #b7990c;
|
|
23
|
-
|
|
24
|
-
$pink-color: #d81259;
|
|
25
|
-
|
|
26
|
-
$blue-color: #0e3e8d;
|
|
27
|
-
|
|
28
|
-
$yellow-color: #ffde40;
|
|
29
|
-
|
|
30
|
-
// MEDIA QUERIES
|
|
31
|
-
$screen-xs: 576px;
|
|
32
|
-
$screen-sm: 768px;
|
|
33
|
-
$screen-md: 992px;
|
|
34
|
-
$screen-lg: 1200px;
|
|
35
|
-
$screen-xl: 1440px;
|
|
36
|
-
$screen-xxl: 1700px;
|
|
37
|
-
$screen-xxxl: 1920px;
|
|
38
|
-
|
|
39
|
-
// Typography
|
|
40
|
-
$font-family-base: 'Public Sans', Arial, sans-serif;
|
|
41
|
-
$font-family-heading: 'Alfa Slab One', Arial, sans-serif;
|
|
42
|
-
$font-size-base: 16px;
|
|
43
|
-
$font-size-h1: 3.0625rem;
|
|
44
|
-
$font-size-h2: 2.5625rem;
|
|
45
|
-
$font-size-h3: 2.125rem;
|
|
46
|
-
$font-size-h4: 1.75rem;
|
|
47
|
-
$font-size-h5: 1.4375rem;
|
|
48
|
-
$font-size-h6: 1.1875rem;
|
|
49
|
-
$font-size-body: 1rem;
|
|
50
|
-
$font-size-body--small: 0.875rem;
|
|
51
|
-
$font-size-label: 0.75rem;
|
|
52
|
-
|
|
53
|
-
$line-height-base: 1.5;
|
|
54
|
-
$line-height-heading: 1.2;
|
|
55
|
-
|
|
56
|
-
$font-weight-normal: 400;
|
|
57
|
-
$font-weight-bold: 700;
|
|
1
|
+
// COLORS
|
|
2
|
+
$primary-color: #25575c;
|
|
3
|
+
$primary-color--light: #32686d;
|
|
4
|
+
$secondary-color: #57abb2;
|
|
5
|
+
$secondary-color--light: #abd5d9;
|
|
6
|
+
$secondary-color--extralight: #e3f1f2;
|
|
7
|
+
|
|
8
|
+
$bg-light: #f4f9fa;
|
|
9
|
+
$text-color: #707070;
|
|
10
|
+
$text-color-black: #202124;
|
|
11
|
+
|
|
12
|
+
$white: #ffffff;
|
|
13
|
+
$gray: #c6c6c6;
|
|
14
|
+
$black: #000000;
|
|
15
|
+
$transparent: transparent;
|
|
16
|
+
|
|
17
|
+
// BUTTON COLORS XD
|
|
18
|
+
$purple-color--light: #dfcce8;
|
|
19
|
+
$purple-color--dark: #794e8c;
|
|
20
|
+
|
|
21
|
+
$yellow-color--light: #fff9de;
|
|
22
|
+
$yellow-color--dark: #b7990c;
|
|
23
|
+
|
|
24
|
+
$pink-color: #d81259;
|
|
25
|
+
|
|
26
|
+
$blue-color: #0e3e8d;
|
|
27
|
+
|
|
28
|
+
$yellow-color: #ffde40;
|
|
29
|
+
|
|
30
|
+
// MEDIA QUERIES
|
|
31
|
+
$screen-xs: 576px;
|
|
32
|
+
$screen-sm: 768px;
|
|
33
|
+
$screen-md: 992px;
|
|
34
|
+
$screen-lg: 1200px;
|
|
35
|
+
$screen-xl: 1440px;
|
|
36
|
+
$screen-xxl: 1700px;
|
|
37
|
+
$screen-xxxl: 1920px;
|
|
38
|
+
|
|
39
|
+
// Typography
|
|
40
|
+
$font-family-base: 'Public Sans', Arial, sans-serif;
|
|
41
|
+
$font-family-heading: 'Alfa Slab One', Arial, sans-serif;
|
|
42
|
+
$font-size-base: 16px;
|
|
43
|
+
$font-size-h1: 3.0625rem;
|
|
44
|
+
$font-size-h2: 2.5625rem;
|
|
45
|
+
$font-size-h3: 2.125rem;
|
|
46
|
+
$font-size-h4: 1.75rem;
|
|
47
|
+
$font-size-h5: 1.4375rem;
|
|
48
|
+
$font-size-h6: 1.1875rem;
|
|
49
|
+
$font-size-body: 1rem;
|
|
50
|
+
$font-size-body--small: 0.875rem;
|
|
51
|
+
$font-size-label: 0.75rem;
|
|
52
|
+
|
|
53
|
+
$line-height-base: 1.5;
|
|
54
|
+
$line-height-heading: 1.2;
|
|
55
|
+
|
|
56
|
+
$font-weight-normal: 400;
|
|
57
|
+
$font-weight-bold: 700;
|
package/styles/base/_fonts.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// @import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
|
|
2
|
-
// @import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
|
|
1
|
+
// @import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
|
|
2
|
+
// @import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
|