@salla.sa/twilight-components 2.14.366 → 2.14.367
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-Dc4v9nRQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DBOuyuqE.js → filepond-plugin-file-poster-D580mHPz.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-3OjivJWc.js → filepond-plugin-file-validate-size-CirPDkJ5.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C4wPNa1h.js → filepond-plugin-file-validate-type-DlzM2hzF.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-D06RnDWS.js → filepond-plugin-image-edit-C-V0_34D.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CbwYrnuw.js → filepond-plugin-image-exif-orientation-BzOSGmgz.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-mOmpKkFJ.js → filepond-plugin-image-preview-DPPccyO8.js} +1 -1
- package/dist/cjs/{index-TmWujwmX.js → index-B-3J2UiO.js} +1 -1
- package/dist/cjs/{index-DL9nqubd.js → index-C4FIMuo-.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 +1 -1
- 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-wB5YeUXb.js} +1 -1
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +4 -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-products-list2.js +0 -5
- package/dist/components/salla-products-slider2.js +2 -8
- package/dist/esm/{filepond-OIAu6i0O.js → filepond-Pk5LWGeG.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BMvjO1cc.js → filepond-plugin-file-poster-BtFMoeoX.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CMCs88HU.js → filepond-plugin-file-validate-size-BxrR9h6P.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Bjpeuqen.js → filepond-plugin-file-validate-type-BwgatLbq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Fpoh6xBj.js → filepond-plugin-image-edit-D5zXSV7g.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CPChwYPW.js → filepond-plugin-image-exif-orientation-DCrpf9GE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-pLwEytag.js → filepond-plugin-image-preview-B67SPp2M.js} +1 -1
- package/dist/esm/{index-Cs4XvAmW.js → index-MNn-Ef4U.js} +1 -1
- package/dist/esm/{index-CV1rqKQz.js → index-ea1dIZhh.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 +1 -1
- 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-DyzYo4Sm.js} +1 -1
- package/dist/twilight/{p-594d219c.entry.js → p-034d8a67.entry.js} +1 -1
- package/dist/twilight/{p-0c385d73.entry.js → p-064c2b11.entry.js} +1 -1
- package/dist/twilight/{p-e1bf6d23.entry.js → p-089a72be.entry.js} +1 -1
- package/dist/twilight/{p-22b1bd15.entry.js → p-0b3261ac.entry.js} +1 -1
- package/dist/twilight/{p-bb0585cc.entry.js → p-0b51caa0.entry.js} +1 -1
- package/dist/twilight/{p-c0ab0fc6.entry.js → p-0eb1f375.entry.js} +1 -1
- package/dist/twilight/{p-4d35a32b.entry.js → p-0f2acbdc.entry.js} +1 -1
- package/dist/twilight/{p-c3f515ae.entry.js → p-25589361.entry.js} +1 -1
- package/dist/twilight/{p-2c787ba0.entry.js → p-25787405.entry.js} +1 -1
- package/dist/twilight/p-28faa620.entry.js +4 -0
- package/dist/twilight/{p-e0e61f73.entry.js → p-2ff31dfc.entry.js} +1 -1
- package/dist/twilight/{p-1f6ead7d.entry.js → p-3240a1fe.entry.js} +1 -1
- package/dist/twilight/{p-0f1d7449.entry.js → p-36566eca.entry.js} +1 -1
- package/dist/twilight/{p-6f09b53e.entry.js → p-39b426d2.entry.js} +1 -1
- package/dist/twilight/p-3a82f07b.entry.js +4 -0
- package/dist/twilight/{p-75ab49a3.entry.js → p-3f39afe0.entry.js} +1 -1
- package/dist/twilight/{p-2dd98664.entry.js → p-443034a4.entry.js} +1 -1
- package/dist/twilight/{p-3c09b198.entry.js → p-4719199c.entry.js} +1 -1
- package/dist/twilight/{p-af3d4d0d.entry.js → p-47521f54.entry.js} +1 -1
- package/dist/twilight/{p-965fe2b3.entry.js → p-48cf39b8.entry.js} +1 -1
- package/dist/twilight/{p-db4f5b38.entry.js → p-4964523f.entry.js} +1 -1
- package/dist/twilight/{p-134c9d22.entry.js → p-49eedd45.entry.js} +1 -1
- package/dist/twilight/{p-3f8b06b3.entry.js → p-4db7b9b8.entry.js} +1 -1
- package/dist/twilight/{p-2405c0f7.entry.js → p-50ddd8ae.entry.js} +1 -1
- package/dist/twilight/{p-3c418ff7.entry.js → p-57b7835d.entry.js} +1 -1
- package/dist/twilight/{p-215ed586.entry.js → p-584a2bcc.entry.js} +1 -1
- package/dist/twilight/{p-f1156ab8.entry.js → p-645c1083.entry.js} +1 -1
- package/dist/twilight/{p-a0a6a255.entry.js → p-74445a67.entry.js} +1 -1
- package/dist/twilight/{p-f1be81ba.entry.js → p-74fec1e4.entry.js} +1 -1
- package/dist/twilight/{p-40ec7a33.entry.js → p-7b4b2370.entry.js} +1 -1
- package/dist/twilight/{p-fc6ddedc.entry.js → p-7cbebd14.entry.js} +1 -1
- package/dist/twilight/{p-721bb258.entry.js → p-7d9e3567.entry.js} +1 -1
- package/dist/twilight/{p-e2c6ed54.entry.js → p-93441a3d.entry.js} +1 -1
- package/dist/twilight/{p-8c2b148a.entry.js → p-99addee2.entry.js} +1 -1
- package/dist/twilight/{p-ac7f094e.entry.js → p-99bcb8d4.entry.js} +1 -1
- package/dist/twilight/{p-6daa8bd8.entry.js → p-9a20af32.entry.js} +1 -1
- package/dist/twilight/{p-58f562df.entry.js → p-9aaa0b02.entry.js} +1 -1
- package/dist/twilight/{p-f2v0udIe.js → p-BTSNi4-Y.js} +1 -1
- package/dist/twilight/{p-DbzHZVd1.js → p-BpRlzPzg.js} +1 -1
- package/dist/twilight/{p-CofhuO2Z.js → p-Bv6jrsv_.js} +1 -1
- package/dist/twilight/{p-CvLPGpFQ.js → p-CDyCpF-q.js} +1 -1
- package/dist/twilight/{p-tacIS_Xg.js → p-C_5WDzkV.js} +1 -1
- package/dist/twilight/{p-D5AsuzfF.js → p-Cd7SQKFA.js} +1 -1
- package/dist/twilight/{p-5mQqqwMU.js → p-DMwKr6kA.js} +1 -1
- package/dist/twilight/{p-BLbGjdAU.js → p-LocYOzht.js} +1 -1
- package/dist/twilight/{p-90eea1a9.entry.js → p-a591946d.entry.js} +1 -1
- package/dist/twilight/{p-3c6f9112.entry.js → p-a6c6f400.entry.js} +1 -1
- package/dist/twilight/{p-15242c87.entry.js → p-a7a6c8ad.entry.js} +1 -1
- package/dist/twilight/{p-50f5e38d.entry.js → p-a92b3c77.entry.js} +1 -1
- package/dist/twilight/{p-233b89ad.entry.js → p-afb766ef.entry.js} +1 -1
- package/dist/twilight/{p-1aead6d3.entry.js → p-b053fe1e.entry.js} +1 -1
- package/dist/twilight/{p-5485978c.entry.js → p-b06335bd.entry.js} +1 -1
- package/dist/twilight/{p-9797a552.entry.js → p-b3152bd4.entry.js} +1 -1
- package/dist/twilight/{p-6aecc925.entry.js → p-b870e878.entry.js} +1 -1
- package/dist/twilight/{p-6b6e2a52.entry.js → p-bad606d7.entry.js} +1 -1
- package/dist/twilight/{p-a08f5eae.entry.js → p-bf3ffab6.entry.js} +1 -1
- package/dist/twilight/{p-95db0124.entry.js → p-c045c6b1.entry.js} +1 -1
- package/dist/twilight/{p-e0ce2c0d.entry.js → p-c3351b4c.entry.js} +1 -1
- package/dist/twilight/{p-c90a6440.entry.js → p-c3b046bc.entry.js} +1 -1
- package/dist/twilight/{p-cf64bb24.entry.js → p-c481f4a2.entry.js} +1 -1
- package/dist/twilight/{p-c7719ce9.entry.js → p-c48d8192.entry.js} +1 -1
- package/dist/twilight/{p-a5df57f9.entry.js → p-c5b4e65a.entry.js} +1 -1
- package/dist/twilight/{p-d64027b9.entry.js → p-cb605a9e.entry.js} +1 -1
- package/dist/twilight/{p-7bfb9d71.entry.js → p-d2ce1566.entry.js} +1 -1
- package/dist/twilight/{p-907b40cd.entry.js → p-d3b0bd92.entry.js} +1 -1
- package/dist/twilight/p-d56efab2.entry.js +4 -0
- package/dist/twilight/{p-6dbcd99e.entry.js → p-d9741316.entry.js} +1 -1
- package/dist/twilight/{p-9d937a82.entry.js → p-dbf28d24.entry.js} +1 -1
- package/dist/twilight/{p-dfc75ce2.entry.js → p-e7cd6030.entry.js} +1 -1
- package/dist/twilight/{p-CV1rqKQz.js → p-ea1dIZhh.js} +1 -1
- package/dist/twilight/{p-64ac4c0c.entry.js → p-ea41c97a.entry.js} +1 -1
- package/dist/twilight/{p-f8fb3130.entry.js → p-ee2501d9.entry.js} +1 -1
- package/dist/twilight/{p-f9fcf183.entry.js → p-eef758b0.entry.js} +1 -1
- package/dist/twilight/{p-0ede455c.entry.js → p-f66c013f.entry.js} +1 -1
- package/dist/twilight/{p-04664fcb.entry.js → p-fb93477b.entry.js} +1 -1
- package/dist/twilight/{p-585a349f.entry.js → p-fcebbb86.entry.js} +1 -1
- package/dist/twilight/{p-BGB1zYFQ.js → p-yvU70SQX.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/package.json +5 -5
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-C4FIMuo-.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-C4FIMuo-.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-C4FIMuo-.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)
|
|
@@ -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() }));
|