@salla.sa/twilight-components 3.0.15 → 3.0.17
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/{Helper-Dmb3FQQs.js → Helper-DSYelC4c.js} +1 -1
- package/dist/cjs/{filepond-GmkTQy-n.js → filepond-l9D0Yv7b.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-4uwmb1PZ.js → filepond-plugin-file-poster-8SrbLptI.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CjR0En8v.js → filepond-plugin-file-validate-size-DGD6oJy0.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-HK-bIoEs.js → filepond-plugin-file-validate-type-BIvrhp3w.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-HiDocWlK.js → filepond-plugin-image-edit-4xKikdXG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B47pLf5T.js → filepond-plugin-image-exif-orientation-C3BvwxQh.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BLTfx5Xl.js → filepond-plugin-image-preview-CBq_GY0V.js} +1 -1
- package/dist/cjs/{index-Cbi9cOBy.js → index-BAwxpXnB.js} +12 -12
- package/dist/cjs/{intlTelInput-Dt8Mg1ES.js → intlTelInput-xw-HaAEN.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +3 -3
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +21 -8
- 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-applied-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +101 -17
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +22 -9
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_9.cjs.entry.js +2 -2
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-free-shipping-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-free-shipping-tag.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gift-card-redeem_2.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 +2 -2
- 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-banner_10.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.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-map_3.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 +28 -12
- 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 +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer-modal.cjs.entry.js +8 -4
- package/dist/cjs/salla-offer.cjs.entry.js +7 -3
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.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-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-items.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-payment.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-rewards.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.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 +2 -2
- 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-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card.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 +2 -2
- package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.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-thank-you-header.cjs.entry.js +1 -1
- package/dist/cjs/salla-thank-you-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.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/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-summary.cjs.entry.js +2 -2
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-D1DK9OwS.js → vanilla-picker-Cm_uNdps.js} +1 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +11 -6
- package/dist/collection/components/salla-color-picker/color-popup-placement.js +68 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.css +13 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +24 -5
- package/dist/collection/components/salla-modal/salla-modal.css +4 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +27 -11
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +3 -0
- package/dist/collection/components/salla-offer/salla-offer.js +6 -2
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +7 -3
- package/dist/collection/components/salla-product-options/salla-product-options.css +5 -0
- package/dist/collection/components/salla-product-options/salla-product-options.js +5 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +9 -1
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.css +8 -2
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +19 -6
- package/dist/components/index.js +12 -12
- package/dist/components/salla-bullet-delivery.js +1 -1
- package/dist/components/salla-color-picker2.js +90 -6
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +27 -11
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-offer-modal.js +7 -3
- package/dist/components/salla-offer.js +6 -2
- package/dist/components/salla-product-options2.js +6 -2
- package/dist/components/salla-quick-buy2.js +13 -4
- package/dist/components/salla-searchable-dropdown2.js +20 -7
- package/dist/docs.json +1 -1
- package/dist/esm/{Helper-3JdOXI6n.js → Helper-POCi7J93.js} +1 -1
- package/dist/esm/{filepond-XW9UXuEd.js → filepond-Ct76xW02.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BIxXdtJt.js → filepond-plugin-file-poster-C1OkzGRs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BIcTUDgJ.js → filepond-plugin-file-validate-size-gdd-69cO.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-rvnCRjaE.js → filepond-plugin-file-validate-type-BaZ2QTzl.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Di_Yevfe.js → filepond-plugin-image-edit-CsoNvf0i.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CoTpFDlA.js → filepond-plugin-image-exif-orientation-BHDSe3nH.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CcPXv1Dq.js → filepond-plugin-image-preview-CD_S17z3.js} +1 -1
- package/dist/esm/{index-C8uMz1y8.js → index-DmGAR42j.js} +12 -12
- package/dist/esm/{intlTelInput-DgLldmhL.js → intlTelInput-D76Q4XFx.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +3 -3
- package/dist/esm/salla-add-product-button_5.entry.js +21 -8
- 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-applied-filters.entry.js +2 -2
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-attachment-view_9.entry.js +101 -17
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.entry.js +22 -9
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_9.entry.js +2 -2
- 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.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-free-shipping-banner.entry.js +1 -1
- package/dist/esm/salla-free-shipping-tag.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gift-card-redeem_2.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 +2 -2
- 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-banner_10.entry.js +1 -1
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.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-map_3.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 +28 -12
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item_2.entry.js +2 -2
- package/dist/esm/salla-offer-modal.entry.js +8 -4
- package/dist/esm/salla-offer.entry.js +7 -3
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.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-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-items.entry.js +1 -1
- package/dist/esm/salla-order-options-modal.entry.js +1 -1
- package/dist/esm/salla-order-payment.entry.js +1 -1
- package/dist/esm/salla-order-rewards.entry.js +1 -1
- package/dist/esm/salla-order-shipments.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 +2 -2
- 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-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +2 -2
- package/dist/esm/salla-products-slider.entry.js +2 -2
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search-product-card.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.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-thank-you-header.entry.js +1 -1
- package/dist/esm/salla-thank-you-page.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.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/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/salla-wishlist-summary.entry.js +2 -2
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-DsA5vAX-.js → vanilla-picker-BlIXJyvJ.js} +1 -1
- package/dist/twilight/{p-3e631a0f.entry.js → p-0225f396.entry.js} +1 -1
- package/dist/twilight/{p-1d0d3d74.entry.js → p-07450aed.entry.js} +1 -1
- package/dist/twilight/{p-7077a91d.entry.js → p-0a794d6f.entry.js} +1 -1
- package/dist/twilight/{p-353eb114.entry.js → p-0c6a024f.entry.js} +1 -1
- package/dist/twilight/{p-deee6c2c.entry.js → p-0e1248c4.entry.js} +1 -1
- package/dist/twilight/{p-67238965.entry.js → p-120b4694.entry.js} +1 -1
- package/dist/twilight/{p-92e66c30.entry.js → p-12a8aed8.entry.js} +1 -1
- package/dist/twilight/{p-15eed61c.entry.js → p-14752d03.entry.js} +1 -1
- package/dist/twilight/{p-7a61d893.entry.js → p-184ea04c.entry.js} +1 -1
- package/dist/twilight/{p-4410bdbd.entry.js → p-1982520c.entry.js} +1 -1
- package/dist/twilight/p-20939237.entry.js +4 -0
- package/dist/twilight/{p-5a89c3c0.entry.js → p-2153c6fd.entry.js} +1 -1
- package/dist/twilight/p-24423a8d.entry.js +4 -0
- package/dist/twilight/{p-c5729900.entry.js → p-26fec98c.entry.js} +1 -1
- package/dist/twilight/{p-64fa15bb.entry.js → p-2a3e2404.entry.js} +1 -1
- package/dist/twilight/{p-30403888.entry.js → p-2a8d6e7e.entry.js} +1 -1
- package/dist/twilight/{p-9e378fe6.entry.js → p-2e8f95d0.entry.js} +1 -1
- package/dist/twilight/{p-ae0e1032.entry.js → p-31260fae.entry.js} +1 -1
- package/dist/twilight/{p-b8d6dd11.entry.js → p-33ff7967.entry.js} +1 -1
- package/dist/twilight/{p-51a54a62.entry.js → p-37b68ef3.entry.js} +1 -1
- package/dist/twilight/{p-7772dddc.entry.js → p-3a3d4cb7.entry.js} +1 -1
- package/dist/twilight/{p-f09c49d1.entry.js → p-3d5e862c.entry.js} +1 -1
- package/dist/twilight/{p-51043815.entry.js → p-40083f25.entry.js} +1 -1
- package/dist/twilight/{p-de92709a.entry.js → p-4057b692.entry.js} +1 -1
- package/dist/twilight/{p-7b1b78c9.entry.js → p-4702959a.entry.js} +1 -1
- package/dist/twilight/{p-b039f8c2.entry.js → p-4839d408.entry.js} +1 -1
- package/dist/twilight/{p-e1cb1c17.entry.js → p-49195cb6.entry.js} +1 -1
- package/dist/twilight/{p-d67bb587.entry.js → p-4a1aa85f.entry.js} +1 -1
- package/dist/twilight/{p-261513b2.entry.js → p-4c801f91.entry.js} +1 -1
- package/dist/twilight/{p-ba5715a3.entry.js → p-4f443e36.entry.js} +1 -1
- package/dist/twilight/{p-996536d3.entry.js → p-4f794057.entry.js} +1 -1
- package/dist/twilight/{p-f8190890.entry.js → p-509ad773.entry.js} +1 -1
- package/dist/twilight/{p-1a9c0e93.entry.js → p-57b93850.entry.js} +1 -1
- package/dist/twilight/{p-c11ac4e3.entry.js → p-5b81a3d9.entry.js} +1 -1
- package/dist/twilight/{p-0778e19f.entry.js → p-5d4fadd2.entry.js} +1 -1
- package/dist/twilight/p-5d775867.entry.js +4 -0
- package/dist/twilight/{p-b617859a.entry.js → p-60f4357f.entry.js} +1 -1
- package/dist/twilight/{p-5d3f9679.entry.js → p-622bfb21.entry.js} +1 -1
- package/dist/twilight/{p-e356b4bc.entry.js → p-62ba0971.entry.js} +1 -1
- package/dist/twilight/{p-0096d200.entry.js → p-64d49f5d.entry.js} +1 -1
- package/dist/twilight/{p-8dcd1bfa.entry.js → p-66f6d722.entry.js} +1 -1
- package/dist/twilight/{p-832fe5f6.entry.js → p-6757344a.entry.js} +1 -1
- package/dist/twilight/{p-0ec2c436.entry.js → p-6c7cae8a.entry.js} +1 -1
- package/dist/twilight/{p-1d410bf3.entry.js → p-74f206cf.entry.js} +1 -1
- package/dist/twilight/{p-dca234ed.entry.js → p-7750bace.entry.js} +1 -1
- package/dist/twilight/{p-84720eeb.entry.js → p-783c6346.entry.js} +1 -1
- package/dist/twilight/{p-2d4e9fe6.entry.js → p-7a985c8c.entry.js} +1 -1
- package/dist/twilight/{p-eabbf726.entry.js → p-7d337f25.entry.js} +1 -1
- package/dist/twilight/p-7df4ee74.entry.js +4 -0
- package/dist/twilight/{p-2fe9f590.entry.js → p-7e854633.entry.js} +1 -1
- package/dist/twilight/{p-4bcdbf34.entry.js → p-83ccad19.entry.js} +1 -1
- package/dist/twilight/{p-e7ed77ce.entry.js → p-84d725d4.entry.js} +1 -1
- package/dist/twilight/{p-3e0b2979.entry.js → p-86ca22d5.entry.js} +1 -1
- package/dist/twilight/{p-f1b2568f.entry.js → p-89cff0c8.entry.js} +1 -1
- package/dist/twilight/{p-d62bbbbc.entry.js → p-8b39a9f7.entry.js} +1 -1
- package/dist/twilight/{p-159ed007.entry.js → p-8b43035f.entry.js} +1 -1
- package/dist/twilight/{p-60d60008.entry.js → p-8e8e40bc.entry.js} +1 -1
- package/dist/twilight/{p-3639a68a.entry.js → p-8f0af317.entry.js} +1 -1
- package/dist/twilight/{p-6a39fe0e.entry.js → p-90d4129f.entry.js} +1 -1
- package/dist/twilight/{p-9ce34bb8.entry.js → p-93f26336.entry.js} +1 -1
- package/dist/twilight/{p-85dd2ada.entry.js → p-9eb92980.entry.js} +1 -1
- package/dist/twilight/{p-uaf2Kqn6.js → p-B7rn1taO.js} +1 -1
- package/dist/twilight/{p-B0E1rqnW.js → p-BbZqYBfp.js} +1 -1
- package/dist/twilight/{p-DDFzkYmK.js → p-BwzmoZpm.js} +1 -1
- package/dist/twilight/{p-BBjixhqB.js → p-CAc7tX2K.js} +1 -1
- package/dist/twilight/{p-BckEvzPi.js → p-DVWVl151.js} +1 -1
- package/dist/twilight/{p-C3oKHJJF.js → p-De2wEjqS.js} +1 -1
- package/dist/twilight/{p-B-3v0tMD.js → p-Dhq3oJAe.js} +1 -1
- package/dist/twilight/p-DmGAR42j.js +5 -0
- package/dist/twilight/{p-DvanRMn0.js → p-Dza6OBFg.js} +1 -1
- package/dist/twilight/{p-B56yAvE0.js → p-Nyk6-1lq.js} +1 -1
- package/dist/twilight/{p-0ddf1286.entry.js → p-a0a57259.entry.js} +1 -1
- package/dist/twilight/{p-e3c7fb7b.entry.js → p-a17784e6.entry.js} +1 -1
- package/dist/twilight/{p-e9ec68cf.entry.js → p-a53e2c74.entry.js} +1 -1
- package/dist/twilight/{p-1ab54476.entry.js → p-a5d2ad5e.entry.js} +1 -1
- package/dist/twilight/{p-f86de75f.entry.js → p-acd48ae7.entry.js} +1 -1
- package/dist/twilight/{p-c89ad467.entry.js → p-ae9c0abe.entry.js} +1 -1
- package/dist/twilight/{p-ac0577e4.entry.js → p-b38c38fe.entry.js} +1 -1
- package/dist/twilight/{p-a2dc3875.entry.js → p-b66df976.entry.js} +1 -1
- package/dist/twilight/{p-3f4734f1.entry.js → p-b819de23.entry.js} +1 -1
- package/dist/twilight/{p-20b3f75a.entry.js → p-b87ea253.entry.js} +1 -1
- package/dist/twilight/{p-f26ab4cd.entry.js → p-b9695308.entry.js} +1 -1
- package/dist/twilight/{p-9225d05e.entry.js → p-bab5d057.entry.js} +1 -1
- package/dist/twilight/{p-8e6fb5aa.entry.js → p-bf29daf3.entry.js} +1 -1
- package/dist/twilight/{p-f6302b73.entry.js → p-bfb70998.entry.js} +1 -1
- package/dist/twilight/{p-176788e8.entry.js → p-c3c99d9e.entry.js} +1 -1
- package/dist/twilight/{p-ed788b25.entry.js → p-c7c868b4.entry.js} +1 -1
- package/dist/twilight/{p-c0e176cb.entry.js → p-cc2c52bb.entry.js} +1 -1
- package/dist/twilight/{p-c1916998.entry.js → p-cd7029fc.entry.js} +1 -1
- package/dist/twilight/{p-0aa85305.entry.js → p-cd866be6.entry.js} +1 -1
- package/dist/twilight/{p-6b609cc4.entry.js → p-d2c1457e.entry.js} +1 -1
- package/dist/twilight/{p-7fdf8500.entry.js → p-d495cce0.entry.js} +1 -1
- package/dist/twilight/{p-b2dca884.entry.js → p-d5a2ba68.entry.js} +1 -1
- package/dist/twilight/{p-ffd2547a.entry.js → p-d63ce284.entry.js} +1 -1
- package/dist/twilight/{p-40a7db2e.entry.js → p-d68625f7.entry.js} +1 -1
- package/dist/twilight/{p-74951208.entry.js → p-d6c5bf2a.entry.js} +1 -1
- package/dist/twilight/{p-8f517227.entry.js → p-dc3ff1f0.entry.js} +1 -1
- package/dist/twilight/{p-fcecebc6.entry.js → p-e4d90663.entry.js} +1 -1
- package/dist/twilight/{p-5572b1a8.entry.js → p-e5545546.entry.js} +1 -1
- package/dist/twilight/{p-785eedae.entry.js → p-e8090773.entry.js} +1 -1
- package/dist/twilight/{p-f36be45c.entry.js → p-e81c4521.entry.js} +1 -1
- package/dist/twilight/{p-5a88e01b.entry.js → p-e89a1905.entry.js} +1 -1
- package/dist/twilight/{p-fe4f4f66.entry.js → p-eb160c2e.entry.js} +1 -1
- package/dist/twilight/{p-52958f29.entry.js → p-f034968b.entry.js} +1 -1
- package/dist/twilight/{p-b02d0ef8.entry.js → p-f10b887a.entry.js} +1 -1
- package/dist/twilight/{p-4b8e3f78.entry.js → p-f4411a04.entry.js} +1 -1
- package/dist/twilight/{p-17158054.entry.js → p-f8ff074f.entry.js} +1 -1
- package/dist/twilight/{p-a92835bd.entry.js → p-f9b9af72.entry.js} +1 -1
- package/dist/twilight/{p-171d0cfd.entry.js → p-fae2a8d0.entry.js} +1 -1
- package/dist/twilight/{p-baac53fb.entry.js → p-fce39869.entry.js} +1 -1
- package/dist/twilight/{p-6c6183e7.entry.js → p-fe413496.entry.js} +1 -1
- package/dist/twilight/{p-f7c6ded6.entry.js → p-fed66bcb.entry.js} +1 -1
- package/dist/twilight/{p-DLJfWSBh.js → p-iCJI7qYe.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-color-picker/color-popup-placement.d.ts +49 -0
- package/dist/types/components/salla-color-picker/salla-color-picker.d.ts +1 -1
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +2 -0
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +1 -0
- package/dist/types/components/salla-searchable-dropdown/salla-searchable-dropdown.d.ts +4 -0
- package/package.json +5 -5
- package/dist/twilight/p-10e8d025.entry.js +0 -4
- package/dist/twilight/p-5773b84a.entry.js +0 -4
- package/dist/twilight/p-C8uMz1y8.js +0 -5
- package/dist/twilight/p-ed0ec4b8.entry.js +0 -4
- package/dist/twilight/p-f8f810b8.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-BAwxpXnB.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = "/*!twlt*/@charset \"UTF-8\";.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}.s-wallet-summary{display:flex;align-items:stretch;gap:16px;margin-bottom:28px}.s-wallet-balance-card{flex:0 0 34%;max-width:240px;background:#fff;border-radius:12px;padding:20px;box-sizing:border-box}.s-wallet-balance-mark{width:48px;height:48px;border-radius:9999px;background:var(--color-primary-reverse, #eaf7f0);color:var(--color-primary, #2e8b57);display:inline-flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:12px}.s-wallet-balance-figure{font-size:18px;font-weight:700;color:#1c1c1c}.s-wallet-balance-label{margin-top:2px;font-size:12px;color:#9aa0a6}.s-wallet-amount{display:inline-flex;align-items:center;gap:4px;font-weight:700;white-space:nowrap}.s-wallet-amount-credit{color:#00af6c}.s-wallet-amount-debit{color:#f55157}.s-wallet-transaction-type{display:flex;align-items:center;color:#4b5563}@media screen and (min-width: 768px){.s-wallet-balance-card{display:flex;flex-direction:column;justify-content:center}}@media screen and (max-width: 767px){.s-wallet-summary{gap:12px;margin-bottom:20px}.s-wallet-balance-card{flex:0 0 38%;padding:16px;text-align:center}.s-wallet-balance-mark{margin-bottom:8px}}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.table{display:table}.hidden{display:none}.items-center{align-items:center}.p-3{padding:0.75rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.625rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}}.s-wallet-mobile-title{display:inline-block;width:8rem;font-weight:400;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-wallet-mobile-title{display:none}}.s-wallet-reference-id{display:none}@media (min-width: 768px){.s-wallet-reference-id{display:inline-block}}.s-wallet-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-wallet-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-wallet-copy-to-clipboard-button{display:none}}.s-wallet-copy-to-clipboard-button salla-button{position:relative}.s-wallet-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}@media (min-width: 768px){.s-wallet-status-container{margin-left:0px;margin-right:0px}}.s-wallet-status-container:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.s-wallet-status-container:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}.s-wallet-status-container i{margin-top:0.25rem}.s-wallet-status-container i:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.25rem}.s-wallet-status-container i:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.25rem}.s-wallet-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-wallet-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-wallet-no-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-no-content .icon{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-wallet-no-content p{margin-bottom:1rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-wallet-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-wallet-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-wallet-table-head{margin-bottom:1.25rem;display:none;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.s-wallet-table-head{display:table-header-group}}.s-wallet-table-head-tr-th{padding-left:1.5rem;padding-right:1.5rem;text-align:start;font-size:0.875rem;line-height:1.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}.s-wallet-table-head-tr-th:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:left}.s-wallet-table-head-tr-th:last-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:right}.s-wallet-table-head-tr-th:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}.s-wallet-table-head-tr-th:last-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:left}.s-wallet-table-tbody-tr{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;overflow:hidden;border-radius:var(--s-radius, 0.25rem);border-bottom-width:8px;border-top-width:8px;--tw-border-opacity:1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}@media (min-width: 768px){.s-wallet-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-wallet-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-wallet-table-tbody-tr-td{height:5rem;width:auto}.s-wallet-table-tbody-tr-td:last-child{text-align:end}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}.s-wallet-table-tbody-tr-td-content{position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem}@media (min-width: 768px){.s-wallet-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-wallet-table-tbody-tr-td-content:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-right:0.5rem}.s-wallet-table-tbody-tr-td-content:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:0.5rem}.s-wallet-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-wallet-table-tbody-tr a:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:0px}.s-wallet-table-tbody-tr a:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px}@media (min-width: 768px){.md\\:mx-0{margin-left:0px;margin-right:0px}.md\\:inline-block{display:inline-block}.md\\:hidden{display:none}}.ltr\\:ml-auto:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.ltr\\:mr-4:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:1rem}.rtl\\:ml-4:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:1rem}.rtl\\:mr-auto:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BAwxpXnB.js');
|
|
7
7
|
|
|
8
8
|
const sallaWishlistActionsCss = "/*!twlt*/:host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}.static{position:static}.absolute{position:absolute}.relative{position:relative}.z-20{z-index:20}.mb-3{margin-bottom:0.75rem}.mt-1{margin-top:0.25rem}.mt-3{margin-top:0.75rem}.flex{display:flex}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.gap-3{gap:0.75rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:0.5rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}";
|
|
9
9
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BAwxpXnB.js');
|
|
7
7
|
var heart = require('./heart-ClVn_Co8.js');
|
|
8
|
-
var Helper = require('./Helper-
|
|
8
|
+
var Helper = require('./Helper-DSYelC4c.js');
|
|
9
9
|
|
|
10
10
|
const sallaWishlistSummaryCss = "/*!twlt*/:host{display:inline-flex;align-items:center;margin-inline-start:1rem}.hidden{display:none}.s-wishlist-summary-wrapper{position:relative;margin-inline-start:0.75rem;display:inline-flex;align-items:center;border-style:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-wishlist-summary-wrapper:hover{opacity:0.8}.s-wishlist-summary-icon{display:inline-flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-color:var(--color-border,#e5e7eb);color:var(--color-text-primary,#374151)}.s-wishlist-summary-icon svg{height:1.25rem;width:1.25rem;fill:currentColor}.s-wishlist-summary-count{position:absolute;top:-4px;left:-6px;display:inline-flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding:0.25rem;font-size:0.75rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-wishlist-summary-count:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:unset;right:-6px}";
|
|
11
11
|
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -14,11 +14,14 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
/* Allow searchable dropdown popover to paint outside the modal body
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/* Allow searchable dropdown popover to paint outside the modal body (tablet/desktop only).
|
|
18
|
+
On mobile the modal body is the bottom-sheet scroll container (overflow-y: auto); forcing it
|
|
19
|
+
visible lets the panel run off-screen so the options can't be reached or scrolled. */
|
|
20
|
+
@media screen and (min-width: 640px) {
|
|
21
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open) {
|
|
22
|
+
overflow: visible !important;
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
|
-
|
|
22
25
|
.s-bullet-delivery-form-actions.s-bullet-delivery-form-actions--single {
|
|
23
26
|
padding-bottom: 0;
|
|
24
27
|
flex-direction: column;
|
|
@@ -455,8 +458,10 @@
|
|
|
455
458
|
overflow-y: auto;
|
|
456
459
|
}
|
|
457
460
|
}
|
|
458
|
-
|
|
459
|
-
|
|
461
|
+
@media (min-width: 640px){
|
|
462
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open){
|
|
463
|
+
overflow: visible !important;
|
|
464
|
+
}
|
|
460
465
|
}
|
|
461
466
|
.s-bullet-delivery-inner{
|
|
462
467
|
min-block-size: 0;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const CLIPPING_OVERFLOW = new Set(['hidden', 'auto', 'clip', 'scroll']);
|
|
5
|
+
/**
|
|
6
|
+
* Intersect the viewport with the nearest ancestor that clips each axis.
|
|
7
|
+
* `overflow-x` / `overflow-y` of `hidden`, `auto`, `clip`, or `scroll` clip.
|
|
8
|
+
* `visible` does not.
|
|
9
|
+
*/
|
|
10
|
+
export function clippingFrame(start, viewport) {
|
|
11
|
+
const frame = {
|
|
12
|
+
left: 0,
|
|
13
|
+
right: viewport.width,
|
|
14
|
+
top: 0,
|
|
15
|
+
bottom: viewport.height,
|
|
16
|
+
};
|
|
17
|
+
let clipsX = false;
|
|
18
|
+
let clipsY = false;
|
|
19
|
+
let node = start.parentElement;
|
|
20
|
+
while (node && (!clipsX || !clipsY)) {
|
|
21
|
+
const style = getComputedStyle(node);
|
|
22
|
+
const hitX = !clipsX && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
23
|
+
const hitY = !clipsY && CLIPPING_OVERFLOW.has(style.overflowY);
|
|
24
|
+
if (hitX || hitY) {
|
|
25
|
+
const rect = node.getBoundingClientRect();
|
|
26
|
+
if (hitX) {
|
|
27
|
+
frame.left = Math.max(frame.left, rect.left);
|
|
28
|
+
frame.right = Math.min(frame.right, rect.right);
|
|
29
|
+
clipsX = true;
|
|
30
|
+
}
|
|
31
|
+
if (hitY) {
|
|
32
|
+
frame.top = Math.max(frame.top, rect.top);
|
|
33
|
+
frame.bottom = Math.min(frame.bottom, rect.bottom);
|
|
34
|
+
clipsY = true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
node = node.parentElement;
|
|
38
|
+
}
|
|
39
|
+
return frame;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Keep the legacy popup position unless it leaves the visible frame.
|
|
43
|
+
* The frame is the viewport, or the viewport intersected with a clipping ancestor.
|
|
44
|
+
* Open downward unless that would clip the Ok button and there is more room above.
|
|
45
|
+
* `shift` is a pixel correction on top of the left already applied.
|
|
46
|
+
*/
|
|
47
|
+
export function placeColorPopup(input) {
|
|
48
|
+
const margin = input.margin ?? 8;
|
|
49
|
+
const { popup, widget, viewport } = input;
|
|
50
|
+
const frame = input.frame ?? {
|
|
51
|
+
left: 0,
|
|
52
|
+
right: viewport.width,
|
|
53
|
+
top: 0,
|
|
54
|
+
bottom: viewport.height,
|
|
55
|
+
};
|
|
56
|
+
const spaceBelow = frame.bottom - widget.bottom;
|
|
57
|
+
const spaceAbove = widget.top - frame.top;
|
|
58
|
+
const clipsBottom = popup.bottom > frame.bottom - margin;
|
|
59
|
+
const side = clipsBottom && spaceAbove > spaceBelow ? 'top' : 'bottom';
|
|
60
|
+
let shift = 0;
|
|
61
|
+
if (popup.left < frame.left + margin) {
|
|
62
|
+
shift = frame.left + margin - popup.left;
|
|
63
|
+
}
|
|
64
|
+
else if (popup.right > frame.right - margin) {
|
|
65
|
+
shift = frame.right - margin - popup.right;
|
|
66
|
+
}
|
|
67
|
+
return { side, shift };
|
|
68
|
+
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
/*!twlt*/.
|
|
1
|
+
/*!twlt*/.visible {
|
|
2
|
+
visibility: visible
|
|
3
|
+
}
|
|
4
|
+
.hidden {
|
|
5
|
+
display: none
|
|
6
|
+
}
|
|
7
|
+
.resize {
|
|
2
8
|
resize: both
|
|
3
9
|
}
|
|
4
10
|
.s-hidden {
|
|
@@ -14,6 +20,12 @@
|
|
|
14
20
|
--tw-shadow-colored: 0 0 #0000 !important;
|
|
15
21
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important
|
|
16
22
|
}
|
|
23
|
+
.s-color-picker-main .picker_wrapper.popup {
|
|
24
|
+
z-index: 30 !important
|
|
25
|
+
}
|
|
26
|
+
.s-color-picker-main .picker_wrapper.\!popup {
|
|
27
|
+
z-index: 30 !important
|
|
28
|
+
}
|
|
17
29
|
.s-color-picker-main .picker_arrow {
|
|
18
30
|
display: none
|
|
19
31
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { h, Host, } from "@stencil/core";
|
|
5
5
|
import ArrowDown from "../../assets/svg/keyboard_arrow_down.svg";
|
|
6
6
|
import { isSallaSdkAvailable } from "../../utils/ssr-helpers";
|
|
7
|
+
import { clippingFrame, placeColorPopup } from "./color-popup-placement";
|
|
7
8
|
export class SallaColorPicker {
|
|
8
9
|
constructor() {
|
|
9
10
|
/** Lazy-loaded to avoid bundling vanilla-picker (Babel polyfills) into main/hydrate bundle. */
|
|
@@ -159,12 +160,13 @@ export class SallaColorPicker {
|
|
|
159
160
|
return 375;
|
|
160
161
|
}
|
|
161
162
|
setPopInPosition() {
|
|
162
|
-
//
|
|
163
|
-
//
|
|
163
|
+
// Legacy offset still uses the breakpoint cache, not innerWidth.
|
|
164
|
+
// The clip check reads the viewport and the nearest clipping ancestor
|
|
165
|
+
// in the same turn as getBoundingClientRect, so those reads share that layout flush.
|
|
164
166
|
const viewportWidth = this.cachedViewportWidth || this.getViewportWidthFromBreakpoints();
|
|
165
167
|
const popup = this.host.querySelector('.picker_wrapper');
|
|
166
168
|
const widgetEl = this.host.querySelector('.s-color-picker-widget');
|
|
167
|
-
if (!popup || !widgetEl)
|
|
169
|
+
if (!popup || !widgetEl || typeof window === 'undefined')
|
|
168
170
|
return;
|
|
169
171
|
const widgetPosition = widgetEl.getBoundingClientRect();
|
|
170
172
|
const widgetToWindowEq = viewportWidth / 2 - widgetPosition.width / 2;
|
|
@@ -179,7 +181,24 @@ export class SallaColorPicker {
|
|
|
179
181
|
popup.style.left = 'auto';
|
|
180
182
|
}
|
|
181
183
|
if (!isMobile || (isMobile && ((!widgetInRight && !widgetInLeft) || widgetInCenter))) {
|
|
182
|
-
popup.style.left =
|
|
184
|
+
popup.style.left = '-95px';
|
|
185
|
+
}
|
|
186
|
+
popup.classList.add('popup_bottom');
|
|
187
|
+
popup.classList.remove('popup_top');
|
|
188
|
+
const viewport = { width: window.innerWidth, height: window.innerHeight };
|
|
189
|
+
const placement = placeColorPopup({
|
|
190
|
+
popup: popup.getBoundingClientRect(),
|
|
191
|
+
widget: { top: widgetPosition.top, bottom: widgetPosition.bottom },
|
|
192
|
+
viewport,
|
|
193
|
+
frame: clippingFrame(popup, viewport),
|
|
194
|
+
});
|
|
195
|
+
popup.classList.remove('popup_bottom');
|
|
196
|
+
popup.classList.remove('popup_top');
|
|
197
|
+
popup.classList.add(placement.side === 'top' ? 'popup_top' : 'popup_bottom');
|
|
198
|
+
if (placement.shift !== 0) {
|
|
199
|
+
const base = popup.style.left === 'auto' ? parseFloat(getComputedStyle(popup).left) || 0 : parseFloat(popup.style.left);
|
|
200
|
+
popup.style.left = `${base + placement.shift}px`;
|
|
201
|
+
popup.style.right = 'auto';
|
|
183
202
|
}
|
|
184
203
|
}
|
|
185
204
|
initColorPicker() {
|
|
@@ -203,7 +222,7 @@ export class SallaColorPicker {
|
|
|
203
222
|
});
|
|
204
223
|
}
|
|
205
224
|
render() {
|
|
206
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: '9b733fabacb7d18cbe2dee845ef96d7770fad402', class: "s-color-picker-main" }, h("slot", { key: '077d47dc2a759500db5eb588df1caa05a3d04ecc', name: "widget" }, h("div", { key: '76252b75d56cdc0587c327b5c0777a91d8e8dcba', class: "s-color-picker-widget" }, h("div", { key: '334ce5f8aa8ab3b529fa19310b551f2f57a776ea', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: 'b43c29d5e939ee7da3b69257c088efb1e9871737', innerHTML: ArrowDown }))), h("input", { key: 'c607e63377ceab32cd6cf77de572c0e2afbf72c7', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
|
|
207
226
|
}
|
|
208
227
|
componentDidLoad() {
|
|
209
228
|
if (this.canvas)
|
|
@@ -62,8 +62,10 @@
|
|
|
62
62
|
overflow-y: auto;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
@media (min-width: 640px) {
|
|
66
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open) {
|
|
67
|
+
overflow: visible !important;
|
|
68
|
+
}
|
|
67
69
|
}
|
|
68
70
|
.s-comments-item-images-slider .s-modal-close {
|
|
69
71
|
background-color: transparent;
|
|
@@ -302,29 +302,44 @@ export class SallaMultipleBundleProductDetails {
|
|
|
302
302
|
}
|
|
303
303
|
return '0';
|
|
304
304
|
}
|
|
305
|
+
ensureProductCountLang() {
|
|
306
|
+
if (SallaMultipleBundleProductDetails.productCountLangReady) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
salla.lang.add('pages.products.bundle_product_count', {
|
|
310
|
+
ar: '{1} منتج|{2} منتجان|[3,10] :count منتجات|[11,99] :count منتجًا|[0,*] :count منتج',
|
|
311
|
+
en: '{1} :count product|[0,*] :count products',
|
|
312
|
+
});
|
|
313
|
+
SallaMultipleBundleProductDetails.productCountLangReady = true;
|
|
314
|
+
}
|
|
305
315
|
getSectionSelectionNote(section) {
|
|
306
316
|
const min = this.getObligatoryMin(section);
|
|
307
317
|
const max = Number(section.max_obligatory_products) || 0;
|
|
308
|
-
|
|
309
|
-
const hasMax = max > 0;
|
|
310
|
-
if (!hasMin && !hasMax) {
|
|
318
|
+
if (min <= 0 && max <= 0) {
|
|
311
319
|
return null;
|
|
312
320
|
}
|
|
313
|
-
|
|
321
|
+
this.ensureProductCountLang();
|
|
322
|
+
const products = (count) => salla.lang.choice('pages.products.bundle_product_count', count);
|
|
323
|
+
const num = (v) => salla.helpers.number(String(v));
|
|
324
|
+
const ar = (salla.lang.getLocale?.() || 'ar') === 'ar';
|
|
325
|
+
if (min > 0 && max > 0) {
|
|
314
326
|
if (min === max) {
|
|
315
|
-
return
|
|
327
|
+
return ar ? `اختر ${products(min)}` : `Select ${products(min)}`;
|
|
316
328
|
}
|
|
317
|
-
return
|
|
329
|
+
return ar
|
|
330
|
+
? `اختر من ${num(min)} إلى ${products(max)}`
|
|
331
|
+
: `Select from ${num(min)} to ${products(max)}`;
|
|
318
332
|
}
|
|
319
|
-
if (
|
|
320
|
-
return
|
|
333
|
+
if (min > 0) {
|
|
334
|
+
return ar ? `اختر على الأقل ${products(min)}` : `Select at least ${products(min)}`;
|
|
321
335
|
}
|
|
322
|
-
return
|
|
336
|
+
return ar ? `اختر حتى ${products(max)}` : `Select up to ${products(max)}`;
|
|
323
337
|
}
|
|
324
338
|
handleSectionsChange() {
|
|
325
339
|
this.autoSelectSingleProductSections();
|
|
326
340
|
}
|
|
327
341
|
componentWillLoad() {
|
|
342
|
+
this.ensureProductCountLang();
|
|
328
343
|
this.autoSelectSingleProductSections();
|
|
329
344
|
}
|
|
330
345
|
renderAccordionHeader(section) {
|
|
@@ -360,9 +375,9 @@ export class SallaMultipleBundleProductDetails {
|
|
|
360
375
|
}
|
|
361
376
|
}
|
|
362
377
|
render() {
|
|
363
|
-
return (h(Host, { key: '
|
|
378
|
+
return (h(Host, { key: 'ccc37b0f67b64192f1d7c12660b8c968aa776b15', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '6529eb0eea69ea8440fbba251df56a3e7bdcff32', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
|
|
364
379
|
return (h("salla-accordion", { key: section.id, collapsed: index === 0 ? false : true }, h("salla-accordion-head", null, this.renderAccordionHeader(section)), h("salla-accordion-body", null, h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index, selectedProducts: this.selectedProducts, selectionLimit: this.getEffectiveMax(section), isSelectionLocked: this.isProductSelectionLocked(section), onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
365
|
-
})), h("salla-multiple-bundle-product-options-modal", { key: '
|
|
380
|
+
})), h("salla-multiple-bundle-product-options-modal", { key: 'ea769a631840c75d2906da8f97c7127ddd772f04' })));
|
|
366
381
|
}
|
|
367
382
|
static get is() { return "salla-multiple-bundle-product-details"; }
|
|
368
383
|
static get originalStyleUrls() {
|
|
@@ -446,3 +461,4 @@ export class SallaMultipleBundleProductDetails {
|
|
|
446
461
|
}];
|
|
447
462
|
}
|
|
448
463
|
}
|
|
464
|
+
SallaMultipleBundleProductDetails.productCountLangReady = false;
|
|
@@ -102,7 +102,9 @@ export class SallaOffer {
|
|
|
102
102
|
id: offer.id,
|
|
103
103
|
name: offer.title,
|
|
104
104
|
creative: offer.description || '',
|
|
105
|
-
position: index + 1
|
|
105
|
+
position: index + 1,
|
|
106
|
+
type: offer.type,
|
|
107
|
+
source: 'offers_section'
|
|
106
108
|
}));
|
|
107
109
|
salla.event.emit('salla::offer.promotion.viewed', promotionDataArray);
|
|
108
110
|
}
|
|
@@ -118,7 +120,9 @@ export class SallaOffer {
|
|
|
118
120
|
id: targetOffer.id,
|
|
119
121
|
name: targetOffer.title,
|
|
120
122
|
creative: targetOffer.description || '',
|
|
121
|
-
position: position
|
|
123
|
+
position: position,
|
|
124
|
+
type: targetOffer.type,
|
|
125
|
+
source: 'offers_section'
|
|
122
126
|
};
|
|
123
127
|
salla.event.emit('salla::offer.promotion.clicked', [promotionData]);
|
|
124
128
|
}
|
|
@@ -53,7 +53,9 @@ export class SallaOfferModal {
|
|
|
53
53
|
id: offer.id?.toString(),
|
|
54
54
|
creative: offer.message,
|
|
55
55
|
name: offer.name,
|
|
56
|
-
position: `${this.offer_type}_offer_modal
|
|
56
|
+
position: `${this.offer_type}_offer_modal`,
|
|
57
|
+
type: offer.offer_type,
|
|
58
|
+
source: 'offer_popup'
|
|
57
59
|
}]);
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
@@ -67,7 +69,9 @@ export class SallaOfferModal {
|
|
|
67
69
|
id: offer.id?.toString(),
|
|
68
70
|
creative: offer.message,
|
|
69
71
|
name: offer.name,
|
|
70
|
-
position: `${this.offer_type}_offer_modal
|
|
72
|
+
position: `${this.offer_type}_offer_modal`,
|
|
73
|
+
type: offer.offer_type,
|
|
74
|
+
source: 'offer_popup'
|
|
71
75
|
}]);
|
|
72
76
|
}
|
|
73
77
|
/**
|
|
@@ -246,7 +250,7 @@ export class SallaOfferModal {
|
|
|
246
250
|
// '</div>';
|
|
247
251
|
// }
|
|
248
252
|
render() {
|
|
249
|
-
return h("salla-modal", { key: '
|
|
253
|
+
return h("salla-modal", { key: '71406265e704b3c5a60ddd1be00cf72cda5e75b2', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: '30eec029e649fcb4bfb8868b14c2886f9060e320', slot: 'loading' }, h("div", { key: '5989afa516f8e175de636342655864dfa0fe5109', class: "s-offer-modal-skeleton" }, h("div", { key: '09fec5c367bae84b1f5a6c15f85ee006f5c50487', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '3e110f82bc9872a0e3d66f7a75a602f215d0bf6a', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '74399af02937a11638c0d0b77d621d1a6ed066c7', height: '15px', width: '50%' }), h("salla-skeleton", { key: '9bf668017079ec6499493f08ebb80a47476e8574', height: '10px', width: '30%' })), h("div", { key: 'f6e3b6476c6c98c58b2dce08ff0944ae64843df1', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: 'f8c171a56c0bee10756b3e04060ec014197a7b13', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '4e5cbd7f594d9e2517b1833bf636181ccd6aba51', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'ed341e4c04799c744e2ffc04f8a5d77c76f98141', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
250
254
|
? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(),
|
|
251
255
|
this.getOfferConditions(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
252
256
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
grid-column: span 2 / span 2;
|
|
99
99
|
margin-top: 0px
|
|
100
100
|
}
|
|
101
|
+
}
|
|
102
|
+
.s-product-options-option-content-color {
|
|
103
|
+
overflow: visible !important
|
|
104
|
+
}
|
|
105
|
+
@media (min-width: 640px) {
|
|
101
106
|
.s-product-options-option-content-full-width {
|
|
102
107
|
grid-column: span 3 / span 3
|
|
103
108
|
}
|
|
@@ -615,7 +615,11 @@ export class SallaProductOptions {
|
|
|
615
615
|
}
|
|
616
616
|
return (h(Host, { class: { 's-product-options-wrapper': true, 's-product-options-no-padding': this.noPadding } }, h("salla-conditional-fields", null, this.optionsData.map((option) => h("div", { key: option.id, class: `s-product-options-option-container${option.visibility_condition || this.hideDigitalCardsOptions(option) ? ' hidden' : ''}`, "data-option-id": option.id, ...this.getOptionShownWhen(option) }, option.name === 'splitter' ?
|
|
617
617
|
this.splitterOption()
|
|
618
|
-
: h("div", { class: { "s-product-options-option": true, "s-product-options-option-booking": option.type === DisplayType.BOOKING && salla.url.is_page("cart") }, "data-option-type": option.type, "data-option-required": `${option.required}` }, h("label", { htmlFor: this.generateInputId(option.id), class: `s-product-options-option-label ${this.hideLabel(option) ? 's-product-options-option-label-hidden' : ''}` }, h("b", null, option.name, option.required && h("span", null, " * "), " "), h("small", null, option.placeholder)), h("div", { class:
|
|
618
|
+
: h("div", { class: { "s-product-options-option": true, "s-product-options-option-booking": option.type === DisplayType.BOOKING && salla.url.is_page("cart") }, "data-option-type": option.type, "data-option-required": `${option.required}` }, h("label", { htmlFor: this.generateInputId(option.id), class: `s-product-options-option-label ${this.hideLabel(option) ? 's-product-options-option-label-hidden' : ''}` }, h("b", null, option.name, option.required && h("span", null, " * "), " "), h("small", null, option.placeholder)), h("div", { class: {
|
|
619
|
+
's-product-options-option-content': true,
|
|
620
|
+
's-product-options-option-content-full-width': this.hideLabel(option) || (option.type === DisplayType.BOOKING && salla.url.is_page('cart')),
|
|
621
|
+
's-product-options-option-content-color': option.type === DisplayType.COLOR_PICKER,
|
|
622
|
+
} }, this.getDisplayForType(option))))))));
|
|
619
623
|
}
|
|
620
624
|
generateUniqueKey(defaultValue) {
|
|
621
625
|
const contextData = this.bundleContext;
|
|
@@ -314,7 +314,15 @@ export class SallaQuickBuy {
|
|
|
314
314
|
return salla.api.request('checkout/quick-purchase/' + this.productId, data, 'post');
|
|
315
315
|
}
|
|
316
316
|
isGuestCheckout() {
|
|
317
|
-
return salla.config.isGuest() &&
|
|
317
|
+
return salla.config.isGuest() && this.isGuestCheckoutAllowed() && this.isPhysicalProduct();
|
|
318
|
+
}
|
|
319
|
+
// store.features scores the shopper's cart; buy_now.guest_checkout scores this product alone
|
|
320
|
+
isGuestCheckoutAllowed() {
|
|
321
|
+
const buyNowGuest = salla.config.get('store.settings.buy_now.guest_checkout');
|
|
322
|
+
if (typeof buyNowGuest === 'boolean' && this.productId == salla.config.get('page.id')) {
|
|
323
|
+
return buyNowGuest;
|
|
324
|
+
}
|
|
325
|
+
return salla.config.get('store.features').includes('guest-checkout');
|
|
318
326
|
}
|
|
319
327
|
getRequiredShippingContactFields() {
|
|
320
328
|
let fields = [];
|
|
@@ -149,6 +149,9 @@
|
|
|
149
149
|
max-height: min(40vh, 220px);
|
|
150
150
|
overflow-y: auto;
|
|
151
151
|
scrollbar-width: thin;
|
|
152
|
+
overscroll-behavior: contain;
|
|
153
|
+
-webkit-overflow-scrolling: touch;
|
|
154
|
+
touch-action: pan-y;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
.s-searchable-dropdown-item {
|
|
@@ -264,8 +267,11 @@
|
|
|
264
267
|
-ms-border-radius: 10px;
|
|
265
268
|
-o-border-radius: 10px;
|
|
266
269
|
}
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
@media (min-width: 640px) {
|
|
271
|
+
|
|
272
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open) {
|
|
273
|
+
overflow: visible !important;
|
|
274
|
+
}
|
|
269
275
|
}
|
|
270
276
|
.s-searchable-dropdown {
|
|
271
277
|
position: relative;
|
|
@@ -116,19 +116,32 @@ export class SallaSearchableDropdown {
|
|
|
116
116
|
}
|
|
117
117
|
return null;
|
|
118
118
|
}
|
|
119
|
+
/** Touch-first devices: focusing the search input raises the on-screen keyboard, which covers the list. */
|
|
120
|
+
isCoarsePointer() {
|
|
121
|
+
return !!window.matchMedia?.('(pointer: coarse)').matches;
|
|
122
|
+
}
|
|
123
|
+
/** Mobile bottom-sheet layout: the modal body is the scroll container and must keep scrolling. */
|
|
124
|
+
isNarrowViewport() {
|
|
125
|
+
return !!window.matchMedia?.('(max-width: 639px)').matches;
|
|
126
|
+
}
|
|
119
127
|
open() {
|
|
120
128
|
if (this.disabled || this.loading)
|
|
121
129
|
return;
|
|
122
130
|
this.isOpen = true;
|
|
123
131
|
this.focusedIndex = -1;
|
|
124
|
-
if (!this.keepParentScroll) {
|
|
132
|
+
if (!this.keepParentScroll && !this.isNarrowViewport()) {
|
|
125
133
|
this.scrollableAncestor = this.findScrollableAncestor();
|
|
126
134
|
if (this.scrollableAncestor) {
|
|
127
135
|
this.scrollableAncestor.style.overflow = 'visible';
|
|
128
136
|
}
|
|
129
137
|
}
|
|
130
138
|
this.dropdownOpened.emit();
|
|
131
|
-
requestAnimationFrame(() =>
|
|
139
|
+
requestAnimationFrame(() => {
|
|
140
|
+
if (!this.isCoarsePointer()) {
|
|
141
|
+
this.searchInputRef?.focus();
|
|
142
|
+
}
|
|
143
|
+
this.panelRef?.scrollIntoView?.({ block: 'nearest' });
|
|
144
|
+
});
|
|
132
145
|
}
|
|
133
146
|
close() {
|
|
134
147
|
if (!this.isOpen)
|
|
@@ -188,18 +201,18 @@ export class SallaSearchableDropdown {
|
|
|
188
201
|
render() {
|
|
189
202
|
const hasSelection = this.selectedItem != null;
|
|
190
203
|
const listboxId = `${this.inputId}-listbox`;
|
|
191
|
-
return (h(Host, { key: '
|
|
204
|
+
return (h(Host, { key: 'eadd6ff762e66bc3458d19f7d2490da939a268d0', class: "s-searchable-dropdown" }, h("div", { key: '0cb614d73e06626c0cd3b5e5eadc76ebfc296093', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '6f3c440ccad07f3ab271f85f508ddf6294464947', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '9415e3b6b87e702079c2fc810aa7621e623e5641', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '7ed8979005ef68e40976a536ead5da4c736bb0ba', class: {
|
|
192
205
|
's-searchable-dropdown-trigger': true,
|
|
193
206
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
194
207
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
195
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
208
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '7df0a517cb916ad6652544c1b738c569ab2f290f', class: {
|
|
196
209
|
'sicon-keyboard_arrow_down': true,
|
|
197
210
|
's-searchable-dropdown-trigger-icon': true,
|
|
198
211
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
199
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
212
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '797dea9a0b0a26402132f5d33c49b74cde5f617d', class: {
|
|
200
213
|
's-searchable-dropdown-panel': true,
|
|
201
214
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
202
|
-
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '
|
|
215
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: 'e7b7ec94dbc99ac40a1f833b7aa61c5d2a8742b7', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '59fc0e1986726f99639688c18bc6c501fae966b4', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '70a63f4297d7f1f204d95336cc6aaea28d8f14e1', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: 'f998cc8115062d98befdb814cba0a282c491ef4e', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
203
216
|
}
|
|
204
217
|
renderListContent() {
|
|
205
218
|
if (this.searching || this.loading) {
|