@salla.sa/twilight-components 2.14.366 → 2.14.368
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/cjs/{filepond-iKAI8_Ua.js → filepond-BFZbLcs9.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DBOuyuqE.js → filepond-plugin-file-poster-j5N_wxed.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-3OjivJWc.js → filepond-plugin-file-validate-size-C4fE0LiJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C4wPNa1h.js → filepond-plugin-file-validate-type-K4KCyB8B.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-D06RnDWS.js → filepond-plugin-image-edit-BPQKyMc5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CbwYrnuw.js → filepond-plugin-image-exif-orientation-Bqc0A8tM.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-mOmpKkFJ.js → filepond-plugin-image-preview-CWUeJfUC.js} +1 -1
- package/dist/cjs/{index-TmWujwmX.js → index-57tdmUta.js} +1 -1
- package/dist/cjs/{index-DL9nqubd.js → index-BbnigMiZ.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +5 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +2 -2
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -6
- package/dist/cjs/salla-products-slider.cjs.entry.js +3 -9
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-DPu_Z0gW.js → vanilla-picker-DVyFh2bj.js} +1 -1
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +4 -1
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +1 -1
- package/dist/collection/components/salla-products-list/salla-products-list.js +0 -5
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +2 -8
- package/dist/components/index.js +2 -2
- package/dist/components/salla-add-product-button2.js +4 -1
- package/dist/components/salla-cookies-bar.js +1 -1
- package/dist/components/salla-products-list2.js +0 -5
- package/dist/components/salla-products-slider2.js +2 -8
- package/dist/esm/{filepond-OIAu6i0O.js → filepond-13fnFppb.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BMvjO1cc.js → filepond-plugin-file-poster-BpvS4tvR.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CMCs88HU.js → filepond-plugin-file-validate-size-D5_uYEwO.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Bjpeuqen.js → filepond-plugin-file-validate-type-BL4ft-S-.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Fpoh6xBj.js → filepond-plugin-image-edit-B1N2m-gK.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CPChwYPW.js → filepond-plugin-image-exif-orientation-3XnkO1Od.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-pLwEytag.js → filepond-plugin-image-preview-B5KuY0qu.js} +1 -1
- package/dist/esm/{index-Cs4XvAmW.js → index-Cb4vp5Dk.js} +1 -1
- package/dist/esm/{index-CV1rqKQz.js → index-Y6CiunLU.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +5 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +2 -2
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -6
- package/dist/esm/salla-products-slider.entry.js +3 -9
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-BASTfXcg.js → vanilla-picker-B7piONfC.js} +1 -1
- package/dist/twilight/{p-2405c0f7.entry.js → p-00265d7c.entry.js} +1 -1
- package/dist/twilight/{p-75ab49a3.entry.js → p-072f71c3.entry.js} +1 -1
- package/dist/twilight/{p-1f6ead7d.entry.js → p-0862caad.entry.js} +1 -1
- package/dist/twilight/{p-bb0585cc.entry.js → p-0a074662.entry.js} +1 -1
- package/dist/twilight/{p-0f1d7449.entry.js → p-0a9a6df5.entry.js} +1 -1
- package/dist/twilight/{p-04664fcb.entry.js → p-0d4b87c7.entry.js} +1 -1
- package/dist/twilight/{p-3c418ff7.entry.js → p-133743ba.entry.js} +1 -1
- package/dist/twilight/p-13ad1a43.entry.js +4 -0
- package/dist/twilight/{p-af3d4d0d.entry.js → p-17011d71.entry.js} +1 -1
- package/dist/twilight/{p-907b40cd.entry.js → p-1e59d6df.entry.js} +1 -1
- package/dist/twilight/{p-2c787ba0.entry.js → p-2038c995.entry.js} +1 -1
- package/dist/twilight/{p-5485978c.entry.js → p-25daa921.entry.js} +1 -1
- package/dist/twilight/{p-4d35a32b.entry.js → p-274b59eb.entry.js} +1 -1
- package/dist/twilight/{p-8c2b148a.entry.js → p-29fd4524.entry.js} +1 -1
- package/dist/twilight/{p-965fe2b3.entry.js → p-2a26fb24.entry.js} +1 -1
- package/dist/twilight/{p-3f8b06b3.entry.js → p-2f6f0743.entry.js} +1 -1
- package/dist/twilight/{p-6f09b53e.entry.js → p-33d68882.entry.js} +1 -1
- package/dist/twilight/{p-f1be81ba.entry.js → p-38fcc532.entry.js} +1 -1
- package/dist/twilight/{p-215ed586.entry.js → p-3e24955a.entry.js} +1 -1
- package/dist/twilight/{p-f8fb3130.entry.js → p-46a1466d.entry.js} +1 -1
- package/dist/twilight/{p-e2c6ed54.entry.js → p-4dc533c9.entry.js} +1 -1
- package/dist/twilight/{p-db4f5b38.entry.js → p-4f36d6a1.entry.js} +1 -1
- package/dist/twilight/{p-6dbcd99e.entry.js → p-5073fed9.entry.js} +1 -1
- package/dist/twilight/{p-e0e61f73.entry.js → p-50ec770f.entry.js} +1 -1
- package/dist/twilight/{p-6b6e2a52.entry.js → p-51679569.entry.js} +1 -1
- package/dist/twilight/{p-233b89ad.entry.js → p-52f4eb31.entry.js} +1 -1
- package/dist/twilight/{p-50f5e38d.entry.js → p-540f44e1.entry.js} +1 -1
- package/dist/twilight/{p-9797a552.entry.js → p-56b5e580.entry.js} +1 -1
- package/dist/twilight/{p-64ac4c0c.entry.js → p-59677d68.entry.js} +1 -1
- package/dist/twilight/{p-594d219c.entry.js → p-5ba1da41.entry.js} +1 -1
- package/dist/twilight/{p-c0ab0fc6.entry.js → p-5bb6b939.entry.js} +1 -1
- package/dist/twilight/{p-c3f515ae.entry.js → p-5fa668d1.entry.js} +1 -1
- package/dist/twilight/{p-22b1bd15.entry.js → p-6066a33d.entry.js} +1 -1
- package/dist/twilight/{p-0ede455c.entry.js → p-69884c12.entry.js} +1 -1
- package/dist/twilight/{p-cf64bb24.entry.js → p-6eb3185b.entry.js} +1 -1
- package/dist/twilight/{p-9d937a82.entry.js → p-72c6ea67.entry.js} +1 -1
- package/dist/twilight/{p-f1156ab8.entry.js → p-7389553b.entry.js} +1 -1
- package/dist/twilight/{p-90eea1a9.entry.js → p-7a197371.entry.js} +1 -1
- package/dist/twilight/{p-fc6ddedc.entry.js → p-85229513.entry.js} +1 -1
- package/dist/twilight/{p-a5df57f9.entry.js → p-87756e85.entry.js} +1 -1
- package/dist/twilight/{p-d64027b9.entry.js → p-8a287dfe.entry.js} +1 -1
- package/dist/twilight/{p-f9fcf183.entry.js → p-8cd21001.entry.js} +1 -1
- package/dist/twilight/p-9272011d.entry.js +4 -0
- package/dist/twilight/{p-ac7f094e.entry.js → p-9b8ab958.entry.js} +1 -1
- package/dist/twilight/{p-D5AsuzfF.js → p-BCiXbXPf.js} +1 -1
- package/dist/twilight/{p-5mQqqwMU.js → p-BET_97_b.js} +1 -1
- package/dist/twilight/{p-f2v0udIe.js → p-Bcx5sYnZ.js} +1 -1
- package/dist/twilight/{p-BLbGjdAU.js → p-C0K8EiG4.js} +1 -1
- package/dist/twilight/{p-BGB1zYFQ.js → p-DcT7j_au.js} +1 -1
- package/dist/twilight/{p-CofhuO2Z.js → p-Dwd0nl0N.js} +1 -1
- package/dist/twilight/p-E4Drg2mm.js +9 -0
- package/dist/twilight/{p-CV1rqKQz.js → p-Y6CiunLU.js} +1 -1
- package/dist/twilight/{p-0c385d73.entry.js → p-a396686e.entry.js} +1 -1
- package/dist/twilight/{p-134c9d22.entry.js → p-a5341e29.entry.js} +1 -1
- package/dist/twilight/{p-dfc75ce2.entry.js → p-a5ed9268.entry.js} +1 -1
- package/dist/twilight/{p-15242c87.entry.js → p-a767c83d.entry.js} +1 -1
- package/dist/twilight/{p-a0a6a255.entry.js → p-af6d37b9.entry.js} +1 -1
- package/dist/twilight/{p-40ec7a33.entry.js → p-b10a5dc1.entry.js} +1 -1
- package/dist/twilight/{p-6aecc925.entry.js → p-b1cd84e9.entry.js} +1 -1
- package/dist/twilight/p-b323bd9c.entry.js +4 -0
- package/dist/twilight/p-b5aecb9b.entry.js +4 -0
- package/dist/twilight/{p-c7719ce9.entry.js → p-ba808f52.entry.js} +1 -1
- package/dist/twilight/{p-95db0124.entry.js → p-badcbdcf.entry.js} +1 -1
- package/dist/twilight/{p-1aead6d3.entry.js → p-cfa0b892.entry.js} +1 -1
- package/dist/twilight/{p-721bb258.entry.js → p-d1fe1003.entry.js} +1 -1
- package/dist/twilight/{p-a08f5eae.entry.js → p-da81ede0.entry.js} +1 -1
- package/dist/twilight/{p-58f562df.entry.js → p-db9eaba1.entry.js} +1 -1
- package/dist/twilight/{p-c90a6440.entry.js → p-e7ceddca.entry.js} +1 -1
- package/dist/twilight/{p-e1bf6d23.entry.js → p-ea031fc5.entry.js} +1 -1
- package/dist/twilight/{p-585a349f.entry.js → p-ecdc4cd6.entry.js} +1 -1
- package/dist/twilight/{p-DbzHZVd1.js → p-edeim4q7.js} +1 -1
- package/dist/twilight/{p-3c09b198.entry.js → p-ee25eb47.entry.js} +1 -1
- package/dist/twilight/{p-e0ce2c0d.entry.js → p-f1964ad5.entry.js} +1 -1
- package/dist/twilight/{p-7bfb9d71.entry.js → p-f49e71c7.entry.js} +1 -1
- package/dist/twilight/{p-2dd98664.entry.js → p-f75d4e9b.entry.js} +1 -1
- package/dist/twilight/{p-3c6f9112.entry.js → p-fc6cf914.entry.js} +1 -1
- package/dist/twilight/{p-CvLPGpFQ.js → p-zW4iqu6h.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/package.json +5 -5
- package/dist/twilight/p-6daa8bd8.entry.js +0 -4
- package/dist/twilight/p-7c8c6c47.entry.js +0 -4
- package/dist/twilight/p-a386b02a.entry.js +0 -4
- package/dist/twilight/p-de42ef8c.entry.js +0 -4
- package/dist/twilight/p-tacIS_Xg.js +0 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BbnigMiZ.js');
|
|
7
7
|
|
|
8
8
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BbnigMiZ.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BbnigMiZ.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
|
|
9
9
|
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Host, h } from "@stencil/core";
|
|
|
5
5
|
import Cart from "../../assets/svg/cart.svg";
|
|
6
6
|
// import SallaIcon from '../../assets/svg/salla.svg';
|
|
7
7
|
import WalletIcon from "../../assets/svg/full-wallet.svg";
|
|
8
|
+
import Helper from "../../Helpers/Helper";
|
|
8
9
|
export class SallaAddProductButton {
|
|
9
10
|
constructor() {
|
|
10
11
|
this.hostAttributes = {};
|
|
@@ -90,11 +91,13 @@ export class SallaAddProductButton {
|
|
|
90
91
|
* but its work only when the id is the only value is passed via the object
|
|
91
92
|
* so we will filter the object entities to remove null and zero values in case we don't want the normal add item action
|
|
92
93
|
*/
|
|
94
|
+
const parent = this.host.closest('salla-products-list, salla-products-slider');
|
|
93
95
|
const data = Object.entries({
|
|
94
96
|
id: this.productId,
|
|
95
97
|
donation_amount: this.donatingAmount,
|
|
96
98
|
quantity: this.quantity,
|
|
97
|
-
endpoint: 'quickAdd'
|
|
99
|
+
endpoint: 'quickAdd',
|
|
100
|
+
source: Helper.getProductsSource(parent?.getAttribute('source'))
|
|
98
101
|
}).reduce((a, [k, v]) => (v ? (a[k] = v, a) : a), {});
|
|
99
102
|
// Use the potentially modified data
|
|
100
103
|
return salla.cart.addItem(data)
|
|
@@ -59,7 +59,7 @@ export class SallaCookiesBar {
|
|
|
59
59
|
if (!this.isVisible) {
|
|
60
60
|
return h(Host, null);
|
|
61
61
|
}
|
|
62
|
-
return (h(Host, null, h("div", { dir: this.isRtl() ? 'rtl' : 'ltr', class: "s-cookies-bar fixed bottom-0 inset-x-0 z-50 bg-white p-4" }, h("div", { class: "s-cookies-bar-content flex flex-col justify-center gap-6 max-w-screen-xl mx-auto px-4" }, h("p", { class: "s-cookies-bar-message text-sm font-medium leading-relaxed text-gray-500 m-0" }, this.message || Salla.lang.get('blocks.footer.cookies_message')), h("div", { class: "s-cookies-bar-actions flex flex-row gap-2 shrink-0" }, h("salla-button", { class: "s-cookies-bar-btn--accept", color: "primary", fill: "solid", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.accept() }, this.acceptLabel || Salla.lang.get('blocks.footer.cookies_accept')), h("salla-button", { class: "s-cookies-bar-btn--reject", fill: "outline", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.reject() }, this.rejectLabel || Salla.lang.get('blocks.footer.cookies_reject')))))));
|
|
62
|
+
return (h(Host, null, h("div", { dir: this.isRtl() ? 'rtl' : 'ltr', class: "s-cookies-bar fixed bottom-0 inset-x-0 z-50 bg-white p-4" }, h("div", { class: "s-cookies-bar-content flex flex-col justify-center gap-6 max-w-screen-xl mx-auto px-4" }, h("p", { class: "s-cookies-bar-message text-sm font-medium leading-relaxed text-gray-500 m-0" }, this.message || Salla.lang.get('blocks.footer.cookies_message'), Salla.config.get('privacy_url') && (h("a", { href: Salla.config.get('privacy_url'), target: "_blank", class: "s-cookies-bar-link text-primary ms-1" }, Salla.lang.get('blocks.footer.cookies_link')))), h("div", { class: "s-cookies-bar-actions flex flex-row gap-2 shrink-0" }, h("salla-button", { class: "s-cookies-bar-btn--accept", color: "primary", fill: "solid", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.accept() }, this.acceptLabel || Salla.lang.get('blocks.footer.cookies_accept')), h("salla-button", { class: "s-cookies-bar-btn--reject", fill: "outline", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.reject() }, this.rejectLabel || Salla.lang.get('blocks.footer.cookies_reject')))))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "salla-cookies-bar"; }
|
|
65
65
|
static get originalStyleUrls() {
|
|
@@ -222,11 +222,6 @@ export class SallaProductsList {
|
|
|
222
222
|
sessionStorage.setItem(this.lastViewedProductKey, product.id);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
// Save source when add-to-cart button is clicked
|
|
226
|
-
const addBtn = target.closest('salla-add-product-button');
|
|
227
|
-
if (addBtn) {
|
|
228
|
-
Helper.saveAddToCartSource(this.getSource());
|
|
229
|
-
}
|
|
230
225
|
});
|
|
231
226
|
return productCard;
|
|
232
227
|
}
|
|
@@ -74,14 +74,8 @@ export class SallaProductsSlider {
|
|
|
74
74
|
//todo:: find a better way to handle this request
|
|
75
75
|
const isLandingPage = this.getSource() === 'landing-page';
|
|
76
76
|
isLandingPage && (product.url = '');
|
|
77
|
-
const handleClick = isLandingPage ? undefined : (
|
|
78
|
-
|
|
79
|
-
if (target.closest('salla-add-product-button')) {
|
|
80
|
-
Helper.saveAddToCartSource(this.getSource());
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
Helper.saveProductSource(this.getSource());
|
|
84
|
-
}
|
|
77
|
+
const handleClick = isLandingPage ? undefined : () => {
|
|
78
|
+
Helper.saveProductSource(this.getSource());
|
|
85
79
|
};
|
|
86
80
|
if (this.hasCustomComponent && this.productCardComponent.toLowerCase() == 'custom-salla-product-card') {
|
|
87
81
|
return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
|