@salla.sa/twilight-components 2.14.444 → 2.14.446
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-plugin-file-poster-CmQuPQcY.js → filepond-plugin-file-poster-DXUkwq91.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-sGTAJHie.js → filepond-plugin-file-validate-size-CmWT-l1o.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DhXaHZZZ.js → filepond-plugin-file-validate-type-CI-SRLe5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Cj8JCfAN.js → filepond-plugin-image-edit-D0ccVwFm.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-32JSai7q.js → filepond-plugin-image-exif-orientation-CC7CmDIV.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BKmavM3U.js → filepond-plugin-image-preview-DOMTJIsr.js} +1 -1
- package/dist/cjs/{filepond-Bbj7PmYR.js → filepond-rDr-05NK.js} +1 -1
- package/dist/cjs/{functions-lGTNolKl.js → functions-BrD7nRK2.js} +1 -1
- package/dist/cjs/{index-BSEEzSJv.js → index-BBFmWakU.js} +1 -1
- package/dist/cjs/{index-BjjfvdmF.js → index-DA8jhZqT.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- 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-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +58 -42
- 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-cashback-banner.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.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 +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +144 -38
- 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-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.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 +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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.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-next-order-coupon.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-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 +15 -4
- 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-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.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 -1
- 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-reward-action_4.cjs.entry.js +3 -3
- 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/{tracked-promise-BLOn0DiZ.js → tracked-promise-vD81wqoM.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-C5CI4VSj.js → vanilla-picker-Dc4-oPc4.js} +1 -1
- package/dist/collection/components/salla-bought-together/salla-bought-together.js +1 -1
- package/dist/collection/components/salla-gifting/salla-gifting.css +15 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +149 -36
- package/dist/collection/components/salla-order-edit/salla-order-edit.js +16 -4
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +97 -41
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bought-together.js +1 -1
- package/dist/components/salla-gifting.js +170 -51
- package/dist/components/salla-order-edit.js +16 -4
- package/dist/components/salla-searchable-dropdown2.js +59 -41
- package/dist/esm/{filepond-BFX6xxhJ.js → filepond-CpYF7JQY.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DwMxJsyL.js → filepond-plugin-file-poster-ob6i92P3.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BFwbB1wr.js → filepond-plugin-file-validate-size-h8AHfyQH.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-9VetG0aO.js → filepond-plugin-file-validate-type-BPLx-hfr.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DqIgezI-.js → filepond-plugin-image-edit-B7wPe8-3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-B97i5tWf.js → filepond-plugin-image-exif-orientation-e7W60Y2D.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-eGkx8PnH.js → filepond-plugin-image-preview-DOov9hTx.js} +1 -1
- package/dist/esm/{functions-C1QgrjTx.js → functions-BRfvCQ-R.js} +1 -1
- package/dist/esm/{index-CjquqEh1.js → index-DryPCgN9.js} +2 -2
- package/dist/esm/{index-BU_MkqNl.js → index-nKWbBz_d.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +2 -2
- 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-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +58 -42
- 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-cashback-banner.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.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 +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +144 -38
- 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-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map.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-next-order-coupon.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-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 +15 -4
- 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-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- 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-reward-action_4.entry.js +3 -3
- 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/{tracked-promise-CHodYJuF.js → tracked-promise-x7FFO6oF.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Dz2cnaJm.js → vanilla-picker-WM2eU5Jq.js} +1 -1
- package/dist/twilight/{p-7e5bd688.entry.js → p-02281f9b.entry.js} +1 -1
- package/dist/twilight/{p-4532ccc9.entry.js → p-02be2d0d.entry.js} +1 -1
- package/dist/twilight/{p-4858fee7.entry.js → p-04bf282e.entry.js} +1 -1
- package/dist/twilight/{p-bdb97cd6.entry.js → p-06254080.entry.js} +1 -1
- package/dist/twilight/{p-86cdc4f0.entry.js → p-0fbc1adc.entry.js} +1 -1
- package/dist/twilight/{p-d876814e.entry.js → p-1a8ffb6a.entry.js} +1 -1
- package/dist/twilight/{p-ce3c2d87.entry.js → p-25b0ee17.entry.js} +1 -1
- package/dist/twilight/{p-44bcc6ef.entry.js → p-27954727.entry.js} +1 -1
- package/dist/twilight/{p-113e46ae.entry.js → p-306017cc.entry.js} +1 -1
- package/dist/twilight/{p-2ea272a5.entry.js → p-3158d2a9.entry.js} +1 -1
- package/dist/twilight/{p-da47b179.entry.js → p-362d1920.entry.js} +1 -1
- package/dist/twilight/{p-efca806c.entry.js → p-372ff04c.entry.js} +1 -1
- package/dist/twilight/{p-d65cd0ca.entry.js → p-38334780.entry.js} +1 -1
- package/dist/twilight/{p-1ce6baf8.entry.js → p-385277f9.entry.js} +1 -1
- package/dist/twilight/{p-0bc373c3.entry.js → p-38c40f88.entry.js} +1 -1
- package/dist/twilight/{p-30159ed2.entry.js → p-392bac91.entry.js} +1 -1
- package/dist/twilight/{p-9aa7503c.entry.js → p-39e59627.entry.js} +1 -1
- package/dist/twilight/{p-9dc45831.entry.js → p-3c8531fd.entry.js} +1 -1
- package/dist/twilight/{p-f6741e14.entry.js → p-3ea0a5bb.entry.js} +1 -1
- package/dist/twilight/{p-e88b5134.entry.js → p-4139872a.entry.js} +1 -1
- package/dist/twilight/{p-9c3ff0a1.entry.js → p-41b5d22c.entry.js} +1 -1
- package/dist/twilight/{p-556d563d.entry.js → p-426a869c.entry.js} +1 -1
- package/dist/twilight/{p-bca4bdc7.entry.js → p-43420d4d.entry.js} +1 -1
- package/dist/twilight/{p-c9403f34.entry.js → p-43e5cb00.entry.js} +1 -1
- package/dist/twilight/{p-0cc907b6.entry.js → p-46b2f44a.entry.js} +1 -1
- package/dist/twilight/{p-89f289b8.entry.js → p-47ac0d89.entry.js} +1 -1
- package/dist/twilight/{p-f933dbd9.entry.js → p-4b0747a1.entry.js} +1 -1
- package/dist/twilight/{p-928752cf.entry.js → p-4e8a8906.entry.js} +1 -1
- package/dist/twilight/{p-22ac20fb.entry.js → p-4eb51d3e.entry.js} +1 -1
- package/dist/twilight/{p-dec3e314.entry.js → p-56af742e.entry.js} +1 -1
- package/dist/twilight/{p-b07ea02e.entry.js → p-56f5aac9.entry.js} +1 -1
- package/dist/twilight/{p-89c54193.entry.js → p-57e63e76.entry.js} +1 -1
- package/dist/twilight/{p-386f7262.entry.js → p-5f08f47d.entry.js} +1 -1
- package/dist/twilight/{p-9a029ffb.entry.js → p-63dd5a3c.entry.js} +1 -1
- package/dist/twilight/{p-7a8e7d0f.entry.js → p-65421b04.entry.js} +1 -1
- package/dist/twilight/{p-a85d96e2.entry.js → p-66b9efc0.entry.js} +1 -1
- package/dist/twilight/{p-345fade3.entry.js → p-691abee2.entry.js} +1 -1
- package/dist/twilight/{p-b1555436.entry.js → p-6b2d84be.entry.js} +1 -1
- package/dist/twilight/{p-c02a27a5.entry.js → p-6c25d9f0.entry.js} +1 -1
- package/dist/twilight/{p-658af936.entry.js → p-6e33dad3.entry.js} +1 -1
- package/dist/twilight/{p-c65eb0ee.entry.js → p-70e5fcb0.entry.js} +1 -1
- package/dist/twilight/{p-d5c2fe58.entry.js → p-740ccc8e.entry.js} +1 -1
- package/dist/twilight/{p-9586467e.entry.js → p-7447b19b.entry.js} +1 -1
- package/dist/twilight/p-752c4d55.entry.js +4 -0
- package/dist/twilight/{p-f141b189.entry.js → p-7b91245f.entry.js} +1 -1
- package/dist/twilight/{p-b86e2768.entry.js → p-85911960.entry.js} +1 -1
- package/dist/twilight/{p-87eaf990.entry.js → p-86e3a8fc.entry.js} +1 -1
- package/dist/twilight/{p-4fbe9195.entry.js → p-891d0baa.entry.js} +1 -1
- package/dist/twilight/{p-a3b2c406.entry.js → p-96ce2dbc.entry.js} +1 -1
- package/dist/twilight/{p-lbla8oyU.js → p-B09zahHa.js} +1 -1
- package/dist/twilight/{p-OpqsYFJ7.js → p-CW4u-F7Z.js} +1 -1
- package/dist/twilight/{p-BAeNPoQd.js → p-Cqvb5bEk.js} +1 -1
- package/dist/twilight/{p-CZmvt3JS.js → p-D0NjtBeS.js} +1 -1
- package/dist/twilight/{p-CiZS53-6.js → p-DfQlAXmu.js} +1 -1
- package/dist/twilight/{p-XxMmLD82.js → p-DkfNyQIQ.js} +1 -1
- package/dist/twilight/{p-DizhqBLB.js → p-DnhZebll.js} +1 -1
- package/dist/twilight/{p-CjquqEh1.js → p-DryPCgN9.js} +1 -1
- package/dist/twilight/{p-vtSaduZY.js → p-Dv6JHEwK.js} +1 -1
- package/dist/twilight/{p-CHlhCr-2.js → p-W3jneIaI.js} +1 -1
- package/dist/twilight/{p-4z9238xc.js → p-_2O7LkzU.js} +1 -1
- package/dist/twilight/{p-46aecc23.entry.js → p-a09118de.entry.js} +1 -1
- package/dist/twilight/{p-28503efc.entry.js → p-a35822f5.entry.js} +1 -1
- package/dist/twilight/{p-2aa656f0.entry.js → p-acef8c7b.entry.js} +1 -1
- package/dist/twilight/{p-549792e6.entry.js → p-b51a70cc.entry.js} +1 -1
- package/dist/twilight/{p-4da7a36e.entry.js → p-b607e474.entry.js} +1 -1
- package/dist/twilight/{p-d6b42548.entry.js → p-be360c44.entry.js} +1 -1
- package/dist/twilight/p-c1b9517f.entry.js +4 -0
- package/dist/twilight/{p-dff8a0d3.entry.js → p-c22a3b11.entry.js} +1 -1
- package/dist/twilight/p-c312d0db.entry.js +4 -0
- package/dist/twilight/{p-48f717e0.entry.js → p-c81c589b.entry.js} +1 -1
- package/dist/twilight/{p-cafc416d.entry.js → p-cc65c26b.entry.js} +1 -1
- package/dist/twilight/{p-6e230a2b.entry.js → p-cfa852cf.entry.js} +1 -1
- package/dist/twilight/{p-22c4ec76.entry.js → p-d520bdb9.entry.js} +1 -1
- package/dist/twilight/{p-7b2f6272.entry.js → p-d6ceeb02.entry.js} +1 -1
- package/dist/twilight/{p-96be7ad7.entry.js → p-d72ac224.entry.js} +1 -1
- package/dist/twilight/{p-041739c7.entry.js → p-d9adeaf2.entry.js} +1 -1
- package/dist/twilight/{p-51e355f4.entry.js → p-da8058f3.entry.js} +1 -1
- package/dist/twilight/{p-b8a680fa.entry.js → p-db288463.entry.js} +1 -1
- package/dist/twilight/{p-ea7e46e8.entry.js → p-dc0d3911.entry.js} +1 -1
- package/dist/twilight/{p-3376ea68.entry.js → p-e00cbb9e.entry.js} +1 -1
- package/dist/twilight/{p-2d771a56.entry.js → p-e114505e.entry.js} +1 -1
- package/dist/twilight/{p-d6d1a44f.entry.js → p-e1176fed.entry.js} +1 -1
- package/dist/twilight/{p-61ae022e.entry.js → p-e20e9fcc.entry.js} +1 -1
- package/dist/twilight/{p-656f5c9f.entry.js → p-e290b5c5.entry.js} +1 -1
- package/dist/twilight/{p-736037bf.entry.js → p-e450e794.entry.js} +1 -1
- package/dist/twilight/{p-c191d2fc.entry.js → p-e5cfb673.entry.js} +1 -1
- package/dist/twilight/{p-b8acec24.entry.js → p-e84c62f7.entry.js} +1 -1
- package/dist/twilight/{p-432b5dc2.entry.js → p-eb3ef9e4.entry.js} +1 -1
- package/dist/twilight/{p-d47b2e4a.entry.js → p-ec145c3d.entry.js} +1 -1
- package/dist/twilight/{p-40da7379.entry.js → p-f196f804.entry.js} +1 -1
- package/dist/twilight/p-f2563e2b.entry.js +4 -0
- package/dist/twilight/{p-271228e8.entry.js → p-f2f152fc.entry.js} +1 -1
- package/dist/twilight/{p-98404ee2.entry.js → p-f38b7948.entry.js} +1 -1
- package/dist/twilight/{p-0f268a17.entry.js → p-f6d9edd5.entry.js} +1 -1
- package/dist/twilight/{p-2c270887.entry.js → p-f7b7ea3d.entry.js} +1 -1
- package/dist/twilight/{p-12383fc2.entry.js → p-f974d986.entry.js} +1 -1
- package/dist/twilight/{p-4f7a053b.entry.js → p-ffe84d46.entry.js} +1 -1
- package/dist/twilight/{p-DcGM6DYo.js → p-k4lInm67.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +23 -4
- package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +4 -0
- package/dist/types/components/salla-searchable-dropdown/salla-searchable-dropdown.d.ts +8 -0
- package/dist/types/components.d.ts +18 -0
- package/package.json +5 -5
- package/dist/twilight/p-0aa1fc10.entry.js +0 -4
- package/dist/twilight/p-2a75ac14.entry.js +0 -4
- package/dist/twilight/p-644ab356.entry.js +0 -4
- package/dist/twilight/p-f5a99491.entry.js +0 -4
|
@@ -23,6 +23,13 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
23
23
|
this.searchQuery = '';
|
|
24
24
|
this.clientSearch = false;
|
|
25
25
|
this.dropUp = false;
|
|
26
|
+
this.searchable = true;
|
|
27
|
+
/**
|
|
28
|
+
* When true, the dropdown will NOT override the nearest scrollable ancestor's
|
|
29
|
+
* `overflow` to `visible` while open. Use this when the host (e.g. a modal
|
|
30
|
+
* body) needs to keep its own scrolling intact while the dropdown is open.
|
|
31
|
+
*/
|
|
32
|
+
this.keepParentScroll = false;
|
|
26
33
|
this.isOpen = false;
|
|
27
34
|
this.focusedIndex = -1;
|
|
28
35
|
this.clientSearchQuery = '';
|
|
@@ -36,14 +43,18 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
36
43
|
}
|
|
37
44
|
};
|
|
38
45
|
this.handleTriggerKeyDown = (e) => {
|
|
39
|
-
if (
|
|
40
|
-
e.
|
|
41
|
-
|
|
46
|
+
if (!this.isOpen) {
|
|
47
|
+
if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {
|
|
48
|
+
e.preventDefault();
|
|
42
49
|
this.open();
|
|
50
|
+
}
|
|
51
|
+
else if (e.key === 'Escape') {
|
|
52
|
+
this.close();
|
|
53
|
+
}
|
|
54
|
+
return;
|
|
43
55
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
56
|
+
// When open without a search input, the trigger keeps focus and drives item navigation.
|
|
57
|
+
this.navigateItems(e);
|
|
47
58
|
};
|
|
48
59
|
this.handleSearchInputChange = (e) => {
|
|
49
60
|
const value = e.target.value;
|
|
@@ -54,34 +65,7 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
54
65
|
this.focusedIndex = -1;
|
|
55
66
|
};
|
|
56
67
|
this.handleSearchKeyDown = (e) => {
|
|
57
|
-
|
|
58
|
-
const itemCount = visibleItems.length;
|
|
59
|
-
switch (e.key) {
|
|
60
|
-
case 'ArrowDown':
|
|
61
|
-
e.preventDefault();
|
|
62
|
-
this.focusedIndex = itemCount > 0
|
|
63
|
-
? (this.focusedIndex + 1) % itemCount
|
|
64
|
-
: -1;
|
|
65
|
-
this.scrollFocusedIntoView();
|
|
66
|
-
break;
|
|
67
|
-
case 'ArrowUp':
|
|
68
|
-
e.preventDefault();
|
|
69
|
-
this.focusedIndex = itemCount > 0
|
|
70
|
-
? (this.focusedIndex - 1 + itemCount) % itemCount
|
|
71
|
-
: -1;
|
|
72
|
-
this.scrollFocusedIntoView();
|
|
73
|
-
break;
|
|
74
|
-
case 'Enter':
|
|
75
|
-
e.preventDefault();
|
|
76
|
-
if (this.focusedIndex >= 0 && this.focusedIndex < itemCount) {
|
|
77
|
-
this.selectItem(visibleItems[this.focusedIndex]);
|
|
78
|
-
}
|
|
79
|
-
break;
|
|
80
|
-
case 'Escape':
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
this.close();
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
68
|
+
this.navigateItems(e);
|
|
85
69
|
};
|
|
86
70
|
}
|
|
87
71
|
connectedCallback() {
|
|
@@ -144,9 +128,11 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
144
128
|
return;
|
|
145
129
|
this.isOpen = true;
|
|
146
130
|
this.focusedIndex = -1;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.scrollableAncestor
|
|
131
|
+
if (!this.keepParentScroll) {
|
|
132
|
+
this.scrollableAncestor = this.findScrollableAncestor();
|
|
133
|
+
if (this.scrollableAncestor) {
|
|
134
|
+
this.scrollableAncestor.style.overflow = 'visible';
|
|
135
|
+
}
|
|
150
136
|
}
|
|
151
137
|
this.dropdownOpened.emit();
|
|
152
138
|
requestAnimationFrame(() => this.searchInputRef?.focus());
|
|
@@ -163,6 +149,36 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
163
149
|
}
|
|
164
150
|
this.dropdownClosed.emit();
|
|
165
151
|
}
|
|
152
|
+
navigateItems(e) {
|
|
153
|
+
const visibleItems = this.filteredItems;
|
|
154
|
+
const itemCount = visibleItems.length;
|
|
155
|
+
switch (e.key) {
|
|
156
|
+
case 'ArrowDown':
|
|
157
|
+
e.preventDefault();
|
|
158
|
+
this.focusedIndex = itemCount > 0
|
|
159
|
+
? (this.focusedIndex + 1) % itemCount
|
|
160
|
+
: -1;
|
|
161
|
+
this.scrollFocusedIntoView();
|
|
162
|
+
break;
|
|
163
|
+
case 'ArrowUp':
|
|
164
|
+
e.preventDefault();
|
|
165
|
+
this.focusedIndex = itemCount > 0
|
|
166
|
+
? (this.focusedIndex - 1 + itemCount) % itemCount
|
|
167
|
+
: -1;
|
|
168
|
+
this.scrollFocusedIntoView();
|
|
169
|
+
break;
|
|
170
|
+
case 'Enter':
|
|
171
|
+
e.preventDefault();
|
|
172
|
+
if (this.focusedIndex >= 0 && this.focusedIndex < itemCount) {
|
|
173
|
+
this.selectItem(visibleItems[this.focusedIndex]);
|
|
174
|
+
}
|
|
175
|
+
break;
|
|
176
|
+
case 'Escape':
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
this.close();
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
166
182
|
scrollFocusedIntoView() {
|
|
167
183
|
if (this.focusedIndex < 0)
|
|
168
184
|
return;
|
|
@@ -179,18 +195,18 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
179
195
|
render() {
|
|
180
196
|
const hasSelection = this.selectedItem != null;
|
|
181
197
|
const listboxId = `${this.inputId}-listbox`;
|
|
182
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'c529f2b61adbc38aa1e5403da6fdb985fe256baa', class: "s-searchable-dropdown" }, h("div", { key: '88ab96afd36421fdf965b79298fa14f435adbcef', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '6ee8a2d0428e1347e36eabec32a3129897481abc', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '8473884ec18e73c72c79e7749264bd9c24c56ae9', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'bffbea7ff0cb9466c8a852a841a21ed8351ef92d', class: {
|
|
183
199
|
's-searchable-dropdown-trigger': true,
|
|
184
200
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
185
201
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
186
|
-
}, 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: '
|
|
202
|
+
}, 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: 'e3aee1ffe1b80a9ef21f4c9cca02de0a590b0825', class: {
|
|
187
203
|
'sicon-keyboard_arrow_down': true,
|
|
188
204
|
's-searchable-dropdown-trigger-icon': true,
|
|
189
205
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
190
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
206
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '7a19f2d6847b3e0dda5e0ea509df91a2f48fa098', class: {
|
|
191
207
|
's-searchable-dropdown-panel': true,
|
|
192
208
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
193
|
-
}, ref: (el) => (this.panelRef = el) }, h("div", { key: '
|
|
209
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '601529f76a09762a57fe7b7663ecfa1505462367', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'f91e464e7efed3759837880b5a7593daa4f84ecb', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: 'f72a7e12d0a6e90bab3983258c9b08aa286bc897', 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: '495aa88fc76d3d17956db7277cc98aff08b4c1af', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
194
210
|
}
|
|
195
211
|
renderListContent() {
|
|
196
212
|
if (this.searching || this.loading) {
|
|
@@ -231,6 +247,8 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
231
247
|
"searchQuery": [1, "search-query"],
|
|
232
248
|
"clientSearch": [4, "client-search"],
|
|
233
249
|
"dropUp": [4, "drop-up"],
|
|
250
|
+
"searchable": [4],
|
|
251
|
+
"keepParentScroll": [4, "keep-parent-scroll"],
|
|
234
252
|
"isOpen": [32],
|
|
235
253
|
"focusedIndex": [32],
|
|
236
254
|
"clientSearchQuery": [32]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-DryPCgN9.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|