@salla.sa/twilight-components 3.0.25 → 3.0.26

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.
Files changed (368) hide show
  1. package/dist/cjs/{Helper-BSFw7uVh.js → Helper-Di1G8EnP.js} +1 -1
  2. package/dist/cjs/{filepond-DzJcpvBM.js → filepond-DU_-t59i.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-BILkbyw_.js → filepond-plugin-file-poster-CYpSqb6i.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-DIJUAZji.js → filepond-plugin-file-validate-size-a_tUhUBx.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-4lpOf3hf.js → filepond-plugin-file-validate-type-D_X7irXu.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-DtE3Wj_4.js → filepond-plugin-image-edit-BRP3GZ31.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-Dc_jwifJ.js → filepond-plugin-image-exif-orientation-CiHIpg-4.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-D_8qt0dd.js → filepond-plugin-image-preview-CKT6x8T1.js} +1 -1
  9. package/dist/cjs/{index-D0d25H-r.js → index-BLPUgwXq.js} +6 -6
  10. package/dist/cjs/info-Do5bVPmK.js +13 -0
  11. package/dist/cjs/{intlTelInput-DqmuleM6.js → intlTelInput-CyL5UDfU.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
  16. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-alert_2.cjs.entry.js +3 -9
  18. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-applied-filters.cjs.entry.js +2 -2
  20. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +11 -11
  22. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +120 -5
  28. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-comment-form_9.cjs.entry.js +2 -2
  31. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  39. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-free-shipping-banner.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-free-shipping-tag.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-map_3.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-mobile-update-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
  67. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-order-items.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-order-payment.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-order-rewards.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-order-totals-card.cjs.entry.js +27 -6
  84. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  85. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
  95. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  96. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  101. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-thank-you-header.cjs.entry.js +1 -1
  106. package/dist/cjs/salla-thank-you-page.cjs.entry.js +1 -1
  107. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  108. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  109. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  110. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  111. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  112. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  113. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  114. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  115. package/dist/cjs/salla-wishlist-summary.cjs.entry.js +2 -2
  116. package/dist/cjs/twilight.cjs.js +2 -2
  117. package/dist/cjs/{vanilla-picker-DP9Hy8IR.js → vanilla-picker-C9AVuYe1.js} +1 -1
  118. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.css +152 -59
  119. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +123 -4
  120. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.css +3 -0
  121. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +25 -4
  122. package/dist/components/index.js +2 -2
  123. package/dist/components/info.js +11 -0
  124. package/dist/components/salla-bottom-alert.js +2 -8
  125. package/dist/components/salla-cart-summary-card.js +124 -5
  126. package/dist/components/salla-order-totals-card.js +26 -5
  127. package/dist/docs.json +3 -3
  128. package/dist/esm/{Helper-DmnUAusv.js → Helper-CFEqaSN-.js} +1 -1
  129. package/dist/esm/{filepond-DZbzdjkK.js → filepond-BfW_OXid.js} +1 -1
  130. package/dist/esm/{filepond-plugin-file-poster-D9cjvoj-.js → filepond-plugin-file-poster-CsMiL-wZ.js} +1 -1
  131. package/dist/esm/{filepond-plugin-file-validate-size-D-kjllC-.js → filepond-plugin-file-validate-size-BuxVUFKn.js} +1 -1
  132. package/dist/esm/{filepond-plugin-file-validate-type-D9hsNaJl.js → filepond-plugin-file-validate-type-Dq94isoe.js} +1 -1
  133. package/dist/esm/{filepond-plugin-image-edit-CDHAxJY8.js → filepond-plugin-image-edit-CEVstXlA.js} +1 -1
  134. package/dist/esm/{filepond-plugin-image-exif-orientation-BGKiclwK.js → filepond-plugin-image-exif-orientation-BhViRs-X.js} +1 -1
  135. package/dist/esm/{filepond-plugin-image-preview-BUjvnt8G.js → filepond-plugin-image-preview-BrscXNqJ.js} +1 -1
  136. package/dist/esm/{index-ze9e0dxM.js → index-g-_4am8C.js} +6 -6
  137. package/dist/esm/info-OdOOjQZO.js +11 -0
  138. package/dist/esm/{intlTelInput-BkYRB6km.js → intlTelInput-PsSXBr__.js} +1 -1
  139. package/dist/esm/loader.js +3 -3
  140. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  141. package/dist/esm/salla-accordion_6.entry.js +2 -2
  142. package/dist/esm/salla-add-product-button_5.entry.js +2 -2
  143. package/dist/esm/salla-advertisement.entry.js +1 -1
  144. package/dist/esm/salla-alert_2.entry.js +3 -9
  145. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  146. package/dist/esm/salla-applied-filters.entry.js +2 -2
  147. package/dist/esm/salla-apps-icons.entry.js +1 -1
  148. package/dist/esm/salla-attachment-view_9.entry.js +11 -11
  149. package/dist/esm/salla-badge.entry.js +1 -1
  150. package/dist/esm/salla-basket-gap.entry.js +1 -1
  151. package/dist/esm/salla-bullet-delivery_3.entry.js +1 -1
  152. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  153. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  154. package/dist/esm/salla-cart-summary-card.entry.js +120 -5
  155. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  156. package/dist/esm/salla-comment-factors.entry.js +1 -1
  157. package/dist/esm/salla-comment-form_9.entry.js +2 -2
  158. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  159. package/dist/esm/salla-contacts.entry.js +1 -1
  160. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  161. package/dist/esm/salla-count-down.entry.js +1 -1
  162. package/dist/esm/salla-custom-fields.entry.js +1 -1
  163. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  164. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  165. package/dist/esm/salla-filters-widget.entry.js +2 -2
  166. package/dist/esm/salla-filters.entry.js +2 -2
  167. package/dist/esm/salla-free-shipping-banner.entry.js +1 -1
  168. package/dist/esm/salla-free-shipping-tag.entry.js +1 -1
  169. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  170. package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
  171. package/dist/esm/salla-gifting.entry.js +1 -1
  172. package/dist/esm/salla-hook.entry.js +1 -1
  173. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  174. package/dist/esm/salla-installment.entry.js +1 -1
  175. package/dist/esm/salla-list-tile.entry.js +1 -1
  176. package/dist/esm/salla-localization-modal.entry.js +1 -1
  177. package/dist/esm/salla-login-modal.entry.js +1 -1
  178. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  179. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  180. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  181. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  182. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  183. package/dist/esm/salla-loyalty.entry.js +1 -1
  184. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  185. package/dist/esm/salla-map_3.entry.js +1 -1
  186. package/dist/esm/salla-menu.entry.js +1 -1
  187. package/dist/esm/salla-metadata.entry.js +1 -1
  188. package/dist/esm/salla-mobile-update-modal.entry.js +1 -1
  189. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  190. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  191. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  192. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  193. package/dist/esm/salla-notification-item_2.entry.js +2 -2
  194. package/dist/esm/salla-offer-modal.entry.js +1 -1
  195. package/dist/esm/salla-offer.entry.js +1 -1
  196. package/dist/esm/salla-order-branch.entry.js +1 -1
  197. package/dist/esm/salla-order-cancel.entry.js +1 -1
  198. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  199. package/dist/esm/salla-order-details-options.entry.js +1 -1
  200. package/dist/esm/salla-order-details.entry.js +1 -1
  201. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  202. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  203. package/dist/esm/salla-order-edit.entry.js +1 -1
  204. package/dist/esm/salla-order-items.entry.js +1 -1
  205. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  206. package/dist/esm/salla-order-payment.entry.js +1 -1
  207. package/dist/esm/salla-order-rewards.entry.js +1 -1
  208. package/dist/esm/salla-order-shipments.entry.js +1 -1
  209. package/dist/esm/salla-order-summary.entry.js +1 -1
  210. package/dist/esm/salla-order-totals-card.entry.js +27 -6
  211. package/dist/esm/salla-orders.entry.js +2 -2
  212. package/dist/esm/salla-payments.entry.js +1 -1
  213. package/dist/esm/salla-placeholder.entry.js +1 -1
  214. package/dist/esm/salla-price-range.entry.js +1 -1
  215. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  216. package/dist/esm/salla-product-card.entry.js +1 -1
  217. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  218. package/dist/esm/salla-products-list.entry.js +2 -2
  219. package/dist/esm/salla-products-slider.entry.js +2 -2
  220. package/dist/esm/salla-quick-order.entry.js +1 -1
  221. package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
  222. package/dist/esm/salla-rating-modal.entry.js +2 -2
  223. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  224. package/dist/esm/salla-review-order-item.entry.js +1 -1
  225. package/dist/esm/salla-scopes.entry.js +1 -1
  226. package/dist/esm/salla-search-product-card.entry.js +1 -1
  227. package/dist/esm/salla-search.entry.js +2 -2
  228. package/dist/esm/salla-skeleton.entry.js +1 -1
  229. package/dist/esm/salla-social-share.entry.js +1 -1
  230. package/dist/esm/salla-social.entry.js +1 -1
  231. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  232. package/dist/esm/salla-thank-you-header.entry.js +1 -1
  233. package/dist/esm/salla-thank-you-page.entry.js +1 -1
  234. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  235. package/dist/esm/salla-trust-badges.entry.js +1 -1
  236. package/dist/esm/salla-user-menu.entry.js +1 -1
  237. package/dist/esm/salla-user-profile.entry.js +1 -1
  238. package/dist/esm/salla-user-settings.entry.js +1 -1
  239. package/dist/esm/salla-verify.entry.js +1 -1
  240. package/dist/esm/salla-wallet.entry.js +1 -1
  241. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  242. package/dist/esm/salla-wishlist-summary.entry.js +2 -2
  243. package/dist/esm/twilight.js +3 -3
  244. package/dist/esm/{vanilla-picker-CxhuwWDi.js → vanilla-picker-D3lgt9go.js} +1 -1
  245. package/dist/twilight/{p-2dcd24fe.entry.js → p-02006b3a.entry.js} +1 -1
  246. package/dist/twilight/{p-67cf7454.entry.js → p-0207dae4.entry.js} +1 -1
  247. package/dist/twilight/{p-75f7f1d8.entry.js → p-025e30c7.entry.js} +1 -1
  248. package/dist/twilight/{p-97c5b11d.entry.js → p-058e4be3.entry.js} +1 -1
  249. package/dist/twilight/{p-dfde387f.entry.js → p-0ce6514e.entry.js} +1 -1
  250. package/dist/twilight/{p-474d882c.entry.js → p-0d94c90e.entry.js} +1 -1
  251. package/dist/twilight/{p-5b118b5b.entry.js → p-0e423424.entry.js} +1 -1
  252. package/dist/twilight/{p-a7566af2.entry.js → p-0f7db4a1.entry.js} +1 -1
  253. package/dist/twilight/{p-57fafaba.entry.js → p-12038aef.entry.js} +1 -1
  254. package/dist/twilight/{p-770142fe.entry.js → p-12dcb9a0.entry.js} +1 -1
  255. package/dist/twilight/{p-024ecda2.entry.js → p-14311053.entry.js} +1 -1
  256. package/dist/twilight/{p-e3dd9502.entry.js → p-151df172.entry.js} +1 -1
  257. package/dist/twilight/{p-8077d8b6.entry.js → p-152ac425.entry.js} +1 -1
  258. package/dist/twilight/{p-11eb8675.entry.js → p-1b6d84a8.entry.js} +1 -1
  259. package/dist/twilight/{p-78c04993.entry.js → p-1d31b983.entry.js} +1 -1
  260. package/dist/twilight/{p-7fffa509.entry.js → p-1dcbbbbf.entry.js} +1 -1
  261. package/dist/twilight/{p-ed96c703.entry.js → p-1df3fe4a.entry.js} +1 -1
  262. package/dist/twilight/{p-73649c81.entry.js → p-22271248.entry.js} +1 -1
  263. package/dist/twilight/{p-b6098938.entry.js → p-2834a4d3.entry.js} +1 -1
  264. package/dist/twilight/{p-9fe5c0f5.entry.js → p-2907057d.entry.js} +1 -1
  265. package/dist/twilight/{p-455a4702.entry.js → p-2d3b29d9.entry.js} +1 -1
  266. package/dist/twilight/{p-fb955257.entry.js → p-2db9ee05.entry.js} +1 -1
  267. package/dist/twilight/{p-2aa9147c.entry.js → p-2e4ce75b.entry.js} +1 -1
  268. package/dist/twilight/{p-bf5b5f52.entry.js → p-329b7cc2.entry.js} +1 -1
  269. package/dist/twilight/{p-7a985fe3.entry.js → p-3c2e7bef.entry.js} +1 -1
  270. package/dist/twilight/{p-9acfe389.entry.js → p-3fedd652.entry.js} +1 -1
  271. package/dist/twilight/{p-446e3f38.entry.js → p-4247db1a.entry.js} +1 -1
  272. package/dist/twilight/{p-d89328d7.entry.js → p-496f950b.entry.js} +1 -1
  273. package/dist/twilight/{p-0fd15433.entry.js → p-49cd89d1.entry.js} +1 -1
  274. package/dist/twilight/p-4b8bb969.entry.js +4 -0
  275. package/dist/twilight/{p-97fa91db.entry.js → p-5166cd84.entry.js} +1 -1
  276. package/dist/twilight/{p-dbb4db25.entry.js → p-5350ba07.entry.js} +1 -1
  277. package/dist/twilight/{p-c122e9c1.entry.js → p-54eec74a.entry.js} +1 -1
  278. package/dist/twilight/{p-93571975.entry.js → p-55861492.entry.js} +1 -1
  279. package/dist/twilight/{p-6d6b99fe.entry.js → p-6070b995.entry.js} +1 -1
  280. package/dist/twilight/{p-4c191ab4.entry.js → p-62a3394a.entry.js} +1 -1
  281. package/dist/twilight/{p-d300a117.entry.js → p-63c982e1.entry.js} +1 -1
  282. package/dist/twilight/{p-08be494e.entry.js → p-6432401e.entry.js} +1 -1
  283. package/dist/twilight/{p-e23b84bf.entry.js → p-64ae09b4.entry.js} +1 -1
  284. package/dist/twilight/{p-c6f09614.entry.js → p-685a61fa.entry.js} +1 -1
  285. package/dist/twilight/{p-7731e280.entry.js → p-710a42d2.entry.js} +1 -1
  286. package/dist/twilight/{p-d089ac6d.entry.js → p-72e13a12.entry.js} +1 -1
  287. package/dist/twilight/{p-d2396143.entry.js → p-73612f04.entry.js} +1 -1
  288. package/dist/twilight/{p-f054cf8e.entry.js → p-74602eb0.entry.js} +1 -1
  289. package/dist/twilight/{p-7790a9a1.entry.js → p-76e238b3.entry.js} +1 -1
  290. package/dist/twilight/{p-5ceda3d5.entry.js → p-78240cb3.entry.js} +1 -1
  291. package/dist/twilight/{p-331003bc.entry.js → p-78a7b46e.entry.js} +1 -1
  292. package/dist/twilight/{p-3a2ff4d6.entry.js → p-79f9403a.entry.js} +1 -1
  293. package/dist/twilight/{p-bd06c200.entry.js → p-7f4f300a.entry.js} +1 -1
  294. package/dist/twilight/{p-a865995d.entry.js → p-7fc9a0bf.entry.js} +1 -1
  295. package/dist/twilight/{p-e849f5ef.entry.js → p-8016f122.entry.js} +1 -1
  296. package/dist/twilight/{p-5e0f85ae.entry.js → p-801eb7d8.entry.js} +1 -1
  297. package/dist/twilight/{p-5d8937c5.entry.js → p-81ec67d8.entry.js} +1 -1
  298. package/dist/twilight/{p-89598ad3.entry.js → p-83a1123b.entry.js} +1 -1
  299. package/dist/twilight/{p-776f9492.entry.js → p-84b9416e.entry.js} +1 -1
  300. package/dist/twilight/{p-b297fe2e.entry.js → p-8783aa81.entry.js} +1 -1
  301. package/dist/twilight/{p-02b7dfcc.entry.js → p-87ba0ca2.entry.js} +1 -1
  302. package/dist/twilight/{p-bb137dbb.entry.js → p-8cbbe961.entry.js} +1 -1
  303. package/dist/twilight/{p-75ad7f14.entry.js → p-8ec7866e.entry.js} +1 -1
  304. package/dist/twilight/{p-45a7d444.entry.js → p-92cbac49.entry.js} +1 -1
  305. package/dist/twilight/{p-1ca39f1c.entry.js → p-93a85463.entry.js} +1 -1
  306. package/dist/twilight/{p-0c022fbd.entry.js → p-95f8caa0.entry.js} +1 -1
  307. package/dist/twilight/{p-ffc7f526.entry.js → p-965c3ee8.entry.js} +1 -1
  308. package/dist/twilight/{p-519cf4c2.entry.js → p-98b24f1d.entry.js} +1 -1
  309. package/dist/twilight/{p-BpJsOjKP.js → p-9h9-vkr9.js} +1 -1
  310. package/dist/twilight/{p-CNQaYCUJ.js → p-B6WlUws-.js} +1 -1
  311. package/dist/twilight/{p-C9ldyQUq.js → p-ByR59DTl.js} +2 -2
  312. package/dist/twilight/{p-DOUAavek.js → p-CB552NRi.js} +1 -1
  313. package/dist/twilight/{p-CICtuB_u.js → p-CWi90iJ1.js} +1 -1
  314. package/dist/twilight/{p-BjUh9YCs.js → p-DjCyIWR1.js} +1 -1
  315. package/dist/twilight/{p-wYYV5ykR.js → p-EXd4paYi.js} +1 -1
  316. package/dist/twilight/{p-BlPdaFn2.js → p-MEqjtc_i.js} +1 -1
  317. package/dist/twilight/p-OdOOjQZO.js +4 -0
  318. package/dist/twilight/{p-cykIAOlk.js → p-WsiD2WP-.js} +1 -1
  319. package/dist/twilight/{p-B8nGVDvQ.js → p-_ulhlUUw.js} +1 -1
  320. package/dist/twilight/{p-47c79c49.entry.js → p-a185d836.entry.js} +1 -1
  321. package/dist/twilight/p-a2147ef3.entry.js +4 -0
  322. package/dist/twilight/{p-71ce8e4f.entry.js → p-a21bc7ee.entry.js} +1 -1
  323. package/dist/twilight/{p-37b64e36.entry.js → p-a255167f.entry.js} +1 -1
  324. package/dist/twilight/{p-bf65d2fa.entry.js → p-a76a2a5d.entry.js} +1 -1
  325. package/dist/twilight/{p-4ec15515.entry.js → p-a7aa162c.entry.js} +1 -1
  326. package/dist/twilight/{p-f9dd6b3e.entry.js → p-aa5be7cf.entry.js} +1 -1
  327. package/dist/twilight/{p-b71673ee.entry.js → p-ac31a382.entry.js} +1 -1
  328. package/dist/twilight/{p-9a2567e2.entry.js → p-ad95bb9a.entry.js} +1 -1
  329. package/dist/twilight/{p-8b0b6bca.entry.js → p-ae4ea8c9.entry.js} +1 -1
  330. package/dist/twilight/{p-c0301e00.entry.js → p-ba601791.entry.js} +1 -1
  331. package/dist/twilight/{p-008740fe.entry.js → p-c0423cfc.entry.js} +1 -1
  332. package/dist/twilight/{p-8d3c5d1f.entry.js → p-c861b955.entry.js} +1 -1
  333. package/dist/twilight/{p-792494c8.entry.js → p-c96e9150.entry.js} +1 -1
  334. package/dist/twilight/{p-d61298f8.entry.js → p-cdd8e44a.entry.js} +1 -1
  335. package/dist/twilight/{p-830abcc1.entry.js → p-cf3285f1.entry.js} +1 -1
  336. package/dist/twilight/p-d02dee6d.entry.js +4 -0
  337. package/dist/twilight/{p-f7c06bee.entry.js → p-d204326c.entry.js} +1 -1
  338. package/dist/twilight/{p-cbd056ba.entry.js → p-d304b8fc.entry.js} +1 -1
  339. package/dist/twilight/{p-9dd7cf71.entry.js → p-da63cbf0.entry.js} +1 -1
  340. package/dist/twilight/p-db2b9499.entry.js +4 -0
  341. package/dist/twilight/{p-59694c45.entry.js → p-dba5b89a.entry.js} +1 -1
  342. package/dist/twilight/{p-f23ada45.entry.js → p-e0387b79.entry.js} +1 -1
  343. package/dist/twilight/{p-12a52f1b.entry.js → p-e0dc2c2d.entry.js} +1 -1
  344. package/dist/twilight/{p-16e2a110.entry.js → p-e3d37ab2.entry.js} +1 -1
  345. package/dist/twilight/{p-5f9d87ec.entry.js → p-e59a8901.entry.js} +1 -1
  346. package/dist/twilight/{p-dceb3725.entry.js → p-e776afcd.entry.js} +1 -1
  347. package/dist/twilight/{p-03b2df97.entry.js → p-e8921db3.entry.js} +1 -1
  348. package/dist/twilight/{p-da0349f9.entry.js → p-ec9434d9.entry.js} +1 -1
  349. package/dist/twilight/{p-cdeaf60b.entry.js → p-ee7e6ce9.entry.js} +1 -1
  350. package/dist/twilight/{p-3ec3e9fb.entry.js → p-f0ab3933.entry.js} +1 -1
  351. package/dist/twilight/{p-cb961f05.entry.js → p-f16bdaf5.entry.js} +1 -1
  352. package/dist/twilight/{p-a7849674.entry.js → p-f2718aec.entry.js} +1 -1
  353. package/dist/twilight/{p-da60995f.entry.js → p-f581bb32.entry.js} +1 -1
  354. package/dist/twilight/{p-de10d0c3.entry.js → p-f6981856.entry.js} +1 -1
  355. package/dist/twilight/{p-a1a650ab.entry.js → p-f7f8d758.entry.js} +1 -1
  356. package/dist/twilight/{p-20949dfb.entry.js → p-fbff3efd.entry.js} +1 -1
  357. package/dist/twilight/{p-07e581af.entry.js → p-ff890108.entry.js} +1 -1
  358. package/dist/twilight/{p-4cf81a44.entry.js → p-fffd562d.entry.js} +1 -1
  359. package/dist/twilight/{p-ze9e0dxM.js → p-g-_4am8C.js} +1 -1
  360. package/dist/twilight/twilight.esm.js +1 -1
  361. package/dist/types/components/salla-cart-summary-card/salla-cart-summary-card.d.ts +26 -0
  362. package/dist/types/components/salla-order-totals-card/interfaces.d.ts +8 -3
  363. package/dist/types/components/salla-order-totals-card/salla-order-totals-card.d.ts +2 -1
  364. package/package.json +5 -5
  365. package/dist/twilight/p-0c0b2b36.entry.js +0 -4
  366. package/dist/twilight/p-61b98119.entry.js +0 -4
  367. package/dist/twilight/p-8d096f95.entry.js +0 -4
  368. package/dist/twilight/p-be8c42f1.entry.js +0 -4
@@ -1,21 +1,97 @@
1
- /*!twlt*/:host {
1
+ /*!twlt*/@charset "UTF-8";
2
+ :host {
2
3
  display: block;
3
4
  }
4
- .sticky {
5
+
6
+ .s-cart-summary-card-fee-tip-wrap {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ }
10
+
11
+ .s-cart-summary-card-fee-tip {
12
+ appearance: none;
13
+ border: 0;
14
+ background: transparent;
15
+ padding: 0;
16
+ outline: none;
17
+ }
18
+ .s-cart-summary-card-fee-tip svg {
19
+ width: 100%;
20
+ height: 100%;
21
+ fill: currentColor;
22
+ }
23
+
24
+ /*
25
+ * Fixed to the viewport from the tip icon rect — absolute tips are clipped by the sheet's
26
+ * overflow:hidden (and sit under the sticky bar on mobile).
27
+ */
28
+ .s-cart-summary-card-fee-tip-bubble {
29
+ position: fixed;
30
+ transform: translateX(-50%);
31
+ display: flex;
32
+ flex-direction: column;
33
+ gap: 6px;
34
+ min-width: 132px;
35
+ max-width: min(220px, 100vw - 24px);
36
+ padding: 10px 12px;
37
+ border-radius: 8px;
38
+ background: var(--color-primary);
39
+ color: var(--color-primary-reverse);
40
+ line-height: 1.35;
41
+ white-space: nowrap;
42
+ z-index: 1000;
43
+ pointer-events: none;
44
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
45
+ }
46
+ .s-cart-summary-card-fee-tip-bubble::after {
47
+ content: "";
48
+ position: absolute;
49
+ bottom: 100%;
50
+ left: 50%;
51
+ transform: translateX(-50%);
52
+ border: 6px solid transparent;
53
+ border-bottom-color: var(--color-primary);
54
+ }
55
+
56
+ .s-cart-summary-card-fee-tip-line {
57
+ display: flex;
58
+ align-items: baseline;
59
+ justify-content: space-between;
60
+ gap: 12px;
61
+ color: var(--color-primary-reverse);
62
+ }
63
+
64
+ .s-cart-summary-card-fee-tip-line-label {
65
+ font-size: 11px;
66
+ font-weight: 400;
67
+ opacity: 0.72;
68
+ }
69
+
70
+ .s-cart-summary-card-fee-tip-line-value {
71
+ font-size: 13px;
72
+ font-weight: 700;
73
+ }
74
+ .fixed{
75
+ position: fixed;
76
+ }
77
+ .sticky{
5
78
  position: sticky;
6
79
  }
7
- .block {
80
+ .block{
8
81
  display: block;
9
82
  }
10
- .transform {
83
+ .transform{
11
84
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
12
85
  }
13
- .transition {
86
+ .resize{
87
+ resize: both;
88
+ }
89
+ .transition{
14
90
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
15
91
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
16
92
  transition-duration: 150ms;
17
93
  }
18
- .\!btn {
94
+ .\!btn{
19
95
  display: inline-flex;
20
96
  flex: 1 1 0%;
21
97
  align-items: center;
@@ -33,10 +109,10 @@
33
109
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
34
110
  transition-duration: 300ms;
35
111
  }
36
- .\!btn:hover {
112
+ .\!btn:hover{
37
113
  opacity: 0.8;
38
114
  }
39
- .btn {
115
+ .btn{
40
116
  display: inline-flex;
41
117
  flex: 1 1 0%;
42
118
  align-items: center;
@@ -54,10 +130,10 @@
54
130
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
55
131
  transition-duration: 300ms;
56
132
  }
57
- .btn:hover {
133
+ .btn:hover{
58
134
  opacity: 0.8;
59
135
  }
60
- .s-cart-summary-card-sheet-title {
136
+ .s-cart-summary-card-sheet-title{
61
137
  margin-bottom: 0.5rem;
62
138
  flex: 1 1 0%;
63
139
  font-size: 0.875rem;
@@ -66,7 +142,7 @@
66
142
  --tw-text-opacity: 1;
67
143
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
68
144
  }
69
- .s-cart-summary-card-line {
145
+ .s-cart-summary-card-line{
70
146
  margin-bottom: 0.5rem;
71
147
  display: flex;
72
148
  align-items: center;
@@ -74,36 +150,53 @@
74
150
  font-size: 0.875rem;
75
151
  line-height: 1.25rem;
76
152
  }
77
- .s-cart-summary-card-line span {
153
+ .s-cart-summary-card-line > span{
78
154
  --tw-text-opacity: 1;
79
155
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
80
156
  }
81
- .s-cart-summary-card-line b {
157
+ .s-cart-summary-card-line b{
82
158
  font-size: 1rem;
83
159
  line-height: 1.5rem;
84
160
  font-weight: 600;
85
161
  --tw-text-opacity: 1;
86
162
  color: rgb(51 51 51 / var(--tw-text-opacity, 1));
87
163
  }
88
- .s-cart-summary-card-line--discount b {
164
+ .s-cart-summary-card-line--discount b{
89
165
  --tw-text-opacity: 1 !important;
90
166
  color: rgb(220 38 38 / var(--tw-text-opacity, 1)) !important;
91
167
  }
92
- .s-cart-summary-card-line--discount b * {
168
+ .s-cart-summary-card-line--discount b *{
93
169
  --tw-text-opacity: 1 !important;
94
170
  color: rgb(220 38 38 / var(--tw-text-opacity, 1)) !important;
95
171
  }
96
- .s-cart-summary-card-bar-label {
172
+ .s-cart-summary-card-fee-label{
173
+ display: inline-flex;
174
+ align-items: center;
175
+ gap: 0.25rem;
176
+ --tw-text-opacity: 1;
177
+ color: rgb(75 85 99 / var(--tw-text-opacity, 1));
178
+ }
179
+ .s-cart-summary-card-fee-tip{
180
+ display: inline-flex;
181
+ height: 0.875rem;
182
+ width: 0.875rem;
183
+ cursor: pointer;
184
+ align-items: center;
185
+ justify-content: center;
186
+ --tw-text-opacity: 1;
187
+ color: rgb(107 114 128 / var(--tw-text-opacity, 1));
188
+ }
189
+ .s-cart-summary-card-bar-label{
97
190
  display: flex;
98
191
  flex-direction: column;
99
192
  gap: 0.125rem;
100
193
  }
101
- .s-cart-summary-card-bar-label-main {
194
+ .s-cart-summary-card-bar-label-main{
102
195
  display: flex;
103
196
  align-items: baseline;
104
197
  gap: 0.375rem;
105
198
  }
106
- .s-cart-summary-card-bar-label-text {
199
+ .s-cart-summary-card-bar-label-text{
107
200
  white-space: nowrap;
108
201
  font-size: 1rem;
109
202
  line-height: 1.5rem;
@@ -111,44 +204,44 @@
111
204
  --tw-text-opacity: 1;
112
205
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
113
206
  }
114
- .s-cart-summary-card-bar-count {
207
+ .s-cart-summary-card-bar-count{
115
208
  white-space: nowrap;
116
209
  font-size: 0.75rem;
117
210
  line-height: 1rem;
118
211
  --tw-text-opacity: 1;
119
212
  color: rgb(115 115 115 / var(--tw-text-opacity, 1));
120
213
  }
121
- .s-cart-summary-card-bar-label-sub {
214
+ .s-cart-summary-card-bar-label-sub{
122
215
  font-size: 11px;
123
216
  --tw-text-opacity: 1;
124
217
  color: rgb(115 115 115 / var(--tw-text-opacity, 1));
125
218
  }
126
- .s-cart-summary-card-bar-totals {
219
+ .s-cart-summary-card-bar-totals{
127
220
  display: flex;
128
221
  flex-direction: column;
129
222
  align-items: flex-end;
130
223
  gap: 0.375rem;
131
224
  }
132
- .s-cart-summary-card-bar-totals-row {
225
+ .s-cart-summary-card-bar-totals-row{
133
226
  display: flex;
134
227
  align-items: center;
135
228
  gap: 0.375rem;
136
229
  }
137
- .s-cart-summary-card-bar-total {
230
+ .s-cart-summary-card-bar-total{
138
231
  font-size: 1rem;
139
232
  line-height: 1.5rem;
140
233
  font-weight: 700;
141
234
  --tw-text-opacity: 1;
142
235
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
143
236
  }
144
- .s-cart-summary-card-bar-original {
237
+ .s-cart-summary-card-bar-original{
145
238
  font-size: 1rem;
146
239
  line-height: 1.5rem;
147
240
  --tw-text-opacity: 1;
148
241
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
149
242
  text-decoration-line: line-through;
150
243
  }
151
- .s-cart-summary-card-bar-savings-badge {
244
+ .s-cart-summary-card-bar-savings-badge{
152
245
  display: inline-flex;
153
246
  width: max-content;
154
247
  align-items: center;
@@ -165,7 +258,7 @@
165
258
  --tw-text-opacity: 1;
166
259
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
167
260
  }
168
- .s-cart-summary-card-chevron {
261
+ .s-cart-summary-card-chevron{
169
262
  display: inline-flex;
170
263
  height: 1.5rem;
171
264
  width: 1.5rem;
@@ -179,19 +272,19 @@
179
272
  outline: 2px solid transparent;
180
273
  outline-offset: 2px;
181
274
  }
182
- .s-cart-summary-card-chevron-icon {
275
+ .s-cart-summary-card-chevron-icon{
183
276
  display: inline-flex;
184
277
  transition-property: transform;
185
278
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
186
279
  transition-duration: 300ms;
187
280
  }
188
- .s-cart-summary-card {
281
+ .s-cart-summary-card{
189
282
  display: block;
190
283
  --tw-bg-opacity: 1;
191
284
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
192
285
  }
193
- @media (max-width: 1023px) {
194
- .s-cart-summary-card {
286
+ @media (max-width: 1023px){
287
+ .s-cart-summary-card{
195
288
  position: fixed;
196
289
  inset-inline: 0;
197
290
  bottom: 0;
@@ -202,8 +295,8 @@
202
295
  padding-bottom: calc(env(safe-area-inset-bottom) + 0.5rem);
203
296
  }
204
297
  }
205
- @media (min-width: 1024px) {
206
- .s-cart-summary-card {
298
+ @media (min-width: 1024px){
299
+ .s-cart-summary-card{
207
300
  position: relative;
208
301
  border-radius: 0.5rem;
209
302
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
@@ -211,19 +304,19 @@
211
304
  margin-bottom: 1.25rem;
212
305
  }
213
306
  }
214
- @media (max-width: 1023px) {
215
- .s-cart-summary-card--open {
307
+ @media (max-width: 1023px){
308
+ .s-cart-summary-card--open{
216
309
  border-radius: 0;
217
310
  box-shadow: none;
218
311
  }
219
312
  }
220
- .s-cart-summary-card-sheet-wrap {
313
+ .s-cart-summary-card-sheet-wrap{
221
314
  display: grid;
222
315
  grid-template-rows: 0fr;
223
316
  transition: grid-template-rows 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s ease;
224
317
  }
225
- @media (max-width: 1023px) {
226
- .s-cart-summary-card-sheet-wrap {
318
+ @media (max-width: 1023px){
319
+ .s-cart-summary-card-sheet-wrap{
227
320
  position: absolute;
228
321
  inset-inline: 0;
229
322
  bottom: calc(100% - 1px);
@@ -233,41 +326,41 @@
233
326
  box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, 0);
234
327
  }
235
328
  }
236
- @media (min-width: 1024px) {
237
- .s-cart-summary-card-sheet-wrap {
329
+ @media (min-width: 1024px){
330
+ .s-cart-summary-card-sheet-wrap{
238
331
  grid-template-rows: 1fr;
239
332
  }
240
333
  }
241
- @media (max-width: 1023px) {
242
- .s-cart-summary-card-sheet-wrap--open {
334
+ @media (max-width: 1023px){
335
+ .s-cart-summary-card-sheet-wrap--open{
243
336
  grid-template-rows: 1fr;
244
337
  box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, 0.12);
245
338
  }
246
339
  }
247
- .s-cart-summary-card-sheet {
340
+ .s-cart-summary-card-sheet{
248
341
  min-height: 0;
249
342
  overflow: hidden;
250
343
  }
251
- @media (max-width: 1023px) {
252
- .s-cart-summary-card-sheet-wrap--open .s-cart-summary-card-sheet {
344
+ @media (max-width: 1023px){
345
+ .s-cart-summary-card-sheet-wrap--open .s-cart-summary-card-sheet{
253
346
  overflow-y: auto;
254
347
  max-height: 70vh;
255
348
  -webkit-overflow-scrolling: touch;
256
349
  padding: 0.75rem 1rem 0;
257
350
  }
258
351
  }
259
- .s-cart-summary-card-sheet-header {
352
+ .s-cart-summary-card-sheet-header{
260
353
  display: flex;
261
354
  align-items: center;
262
355
  justify-content: space-between;
263
356
  gap: 0.5rem;
264
357
  }
265
- @media (max-width: 1023px) {
266
- .s-cart-summary-card-sheet-header {
358
+ @media (max-width: 1023px){
359
+ .s-cart-summary-card-sheet-header{
267
360
  padding-bottom: 0.5rem;
268
361
  }
269
362
  }
270
- .s-cart-summary-card-bar {
363
+ .s-cart-summary-card-bar{
271
364
  display: flex;
272
365
  align-items: flex-start;
273
366
  justify-content: space-between;
@@ -275,34 +368,34 @@
275
368
  --tw-bg-opacity: 1;
276
369
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
277
370
  }
278
- @media (min-width: 1024px) {
279
- .s-cart-summary-card-bar {
371
+ @media (min-width: 1024px){
372
+ .s-cart-summary-card-bar{
280
373
  margin-top: 1rem;
281
374
  }
282
375
  }
283
- @media (max-width: 1023px) {
284
- .s-cart-summary-card-bar {
376
+ @media (max-width: 1023px){
377
+ .s-cart-summary-card-bar{
285
378
  padding: 0.875rem 1rem 0.5rem;
286
379
  border-radius: 24px 24px 0 0;
287
380
  }
288
- .s-cart-summary-card--open .s-cart-summary-card-bar {
381
+ .s-cart-summary-card--open .s-cart-summary-card-bar{
289
382
  padding-top: 0;
290
383
  border-radius: 0;
291
384
  }
292
385
  }
293
- @media (min-width: 1024px) {
294
- .s-cart-summary-card-action {
386
+ @media (min-width: 1024px){
387
+ .s-cart-summary-card-action{
295
388
  padding-top: 1rem;
296
389
  }
297
390
  }
298
- @media (max-width: 1023px) {
299
- .s-cart-summary-card-action {
391
+ @media (max-width: 1023px){
392
+ .s-cart-summary-card-action{
300
393
  padding: 0 1rem 0.75rem;
301
394
  }
302
395
  }
303
- .s-cart-summary-card--open .s-cart-summary-card-chevron-icon {
396
+ .s-cart-summary-card--open .s-cart-summary-card-chevron-icon{
304
397
  transform: rotate(180deg);
305
398
  }
306
- .s-cart-summary-card-action *:focus {
399
+ .s-cart-summary-card-action *:focus{
307
400
  outline: none;
308
401
  }
@@ -2,6 +2,7 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { h, Host } from "@stencil/core";
5
+ import InfoIcon from "../../assets/svg/info.svg";
5
6
  const SKELETON_ROWS = [
6
7
  { label: '100px', value: '56px' },
7
8
  { label: '72px', value: '64px' },
@@ -21,6 +22,8 @@ export class SallaCartSummaryCard {
21
22
  this.cartCashbackAmount = 0;
22
23
  this.cartSubTotal = 0;
23
24
  this.cartOptionsTotal = 0;
25
+ /* From cart.service_fees[] — charged amount plus optional min/max for the tip. */
26
+ this.cartServiceFees = [];
24
27
  this.cartShippingCost = 0;
25
28
  this.cartTaxAmount = 0;
26
29
  this.cartHasShipping = false;
@@ -28,6 +31,24 @@ export class SallaCartSummaryCard {
28
31
  this.isDesktop = false;
29
32
  /** True until the first cart payload (API response or cart event) arrives. */
30
33
  this.isLoading = true;
34
+ /* Viewport coords — fixed tip escapes the sheet's overflow:hidden. */
35
+ this.feeTip = null;
36
+ this.showFeeTip = (key, event) => {
37
+ const wrap = event.currentTarget;
38
+ if (!wrap)
39
+ return;
40
+ const rect = wrap.getBoundingClientRect();
41
+ this.feeTip = {
42
+ key,
43
+ top: Math.round(rect.bottom + 8),
44
+ left: this.clampFeeTipLeft(rect.left + rect.width / 2),
45
+ };
46
+ this.bindFeeTipDismiss();
47
+ };
48
+ this.hideFeeTip = () => {
49
+ this.feeTip = null;
50
+ this.unbindFeeTipDismiss();
51
+ };
31
52
  // Original DOM location — needed to restore the host on the mobile→desktop flip.
32
53
  this.originalParent = null;
33
54
  this.originalNextSibling = null;
@@ -35,6 +56,7 @@ export class SallaCartSummaryCard {
35
56
  this.mediaQueryList = null;
36
57
  this.submitObserver = null;
37
58
  this.isSubmitting = false;
59
+ this.feeTipDismissBound = false;
38
60
  // Stable handler refs — anonymous functions can't be unbound from listeners.
39
61
  this.mqlChangeHandler = (e) => {
40
62
  this.isDesktop = e.matches;
@@ -60,8 +82,11 @@ export class SallaCartSummaryCard {
60
82
  this.host.querySelector('#s-cart-summary-card-submit')?.removeAttribute?.('loading');
61
83
  };
62
84
  this.toggleSheet = () => {
63
- if (!this.isDesktop)
64
- this.isOpen = !this.isOpen;
85
+ if (this.isDesktop)
86
+ return;
87
+ this.isOpen = !this.isOpen;
88
+ if (!this.isOpen)
89
+ this.hideFeeTip();
65
90
  };
66
91
  this.handleSubmit = async (event) => {
67
92
  // Re-entrancy guard, set before the async validation so a second tap during
@@ -136,6 +161,8 @@ export class SallaCartSummaryCard {
136
161
  this.completeOrderLabel = salla.lang.get('pages.cart.complete_order');
137
162
  this.openSummaryLabel = salla.lang.get('pages.cart.open_summary');
138
163
  this.closeSummaryLabel = salla.lang.get('pages.cart.close_summary');
164
+ this.minimumLabel = salla.lang.get('pages.cart.minimum');
165
+ this.maximumLabel = salla.lang.get('pages.cart.up_to');
139
166
  this.itemsCountTemplate = salla.lang.get('pages.cart.items_with_count');
140
167
  }
141
168
  /** Coerces PHP cart values: numbers, strings, and Money/MoneyTaxable objects. */
@@ -156,6 +183,86 @@ export class SallaCartSummaryCard {
156
183
  }
157
184
  return 0;
158
185
  }
186
+ /* BE uses null for “no bound”; treat 0 the same so the tip never shows a useless zero. */
187
+ optionalBound(value) {
188
+ if (value === null || value === undefined || value === '')
189
+ return null;
190
+ const amount = this.num(value);
191
+ return Number.isFinite(amount) && amount > 0 ? amount : null;
192
+ }
193
+ mapServiceFees(fees) {
194
+ return fees.flatMap((fee, index) => {
195
+ const title = String(fee?.title ?? '').trim();
196
+ const amount = this.num(fee?.amount);
197
+ if (!title || amount <= 0)
198
+ return [];
199
+ return [
200
+ {
201
+ key: String(index),
202
+ title,
203
+ amount,
204
+ minAmount: this.optionalBound(fee?.min_amount ?? fee?.min_service_amount),
205
+ maxAmount: this.optionalBound(fee?.max_amount ?? fee?.max_service_amount),
206
+ },
207
+ ];
208
+ });
209
+ }
210
+ /* Strip HTML for tip text; keep SAR when the theme renders it as <i class="sicon-sar">. */
211
+ plainMoney(value) {
212
+ return this.money(value)
213
+ .replace(/<i[^>]*sicon-sar[^>]*>.*?<\/i>/gi, ' SAR')
214
+ .replace(/<[^>]+>/g, '')
215
+ .replace(/\s+/g, ' ')
216
+ .trim();
217
+ }
218
+ serviceFeeBoundLines(fee) {
219
+ const lines = [];
220
+ if (fee.minAmount !== null)
221
+ lines.push({ label: this.minimumLabel, amount: fee.minAmount });
222
+ if (fee.maxAmount !== null)
223
+ lines.push({ label: this.maximumLabel, amount: fee.maxAmount });
224
+ return lines;
225
+ }
226
+ /* Bubble is centered with translateX(-50%); keep that center inside the viewport. */
227
+ clampFeeTipLeft(centerX) {
228
+ const margin = 12;
229
+ const tipWidth = Math.min(220, Math.max(132, window.innerWidth - margin * 2));
230
+ const half = tipWidth / 2;
231
+ const min = margin + half;
232
+ const max = window.innerWidth - margin - half;
233
+ if (max <= min)
234
+ return Math.round(window.innerWidth / 2);
235
+ return Math.round(Math.min(Math.max(centerX, min), max));
236
+ }
237
+ bindFeeTipDismiss() {
238
+ if (this.feeTipDismissBound)
239
+ return;
240
+ window.addEventListener('scroll', this.hideFeeTip, true);
241
+ window.addEventListener('resize', this.hideFeeTip);
242
+ this.feeTipDismissBound = true;
243
+ }
244
+ unbindFeeTipDismiss() {
245
+ if (!this.feeTipDismissBound)
246
+ return;
247
+ window.removeEventListener('scroll', this.hideFeeTip, true);
248
+ window.removeEventListener('resize', this.hideFeeTip);
249
+ this.feeTipDismissBound = false;
250
+ }
251
+ renderServiceFeeBoundsTip(fee) {
252
+ const lines = this.serviceFeeBoundLines(fee);
253
+ if (!lines.length)
254
+ return null;
255
+ return (h("span", { class: "s-cart-summary-card-fee-tip-wrap", onMouseEnter: event => this.showFeeTip(fee.key, event), onMouseLeave: this.hideFeeTip }, h("button", { type: "button", class: "s-cart-summary-card-fee-tip", "aria-label": lines.map(line => `${line.label}: ${this.plainMoney(line.amount)}`).join(', '), innerHTML: InfoIcon, onFocus: event => this.showFeeTip(fee.key, event), onBlur: this.hideFeeTip })));
256
+ }
257
+ renderFixedFeeTipBubble() {
258
+ if (!this.feeTip)
259
+ return null;
260
+ const fee = this.cartServiceFees.find(item => item.key === this.feeTip.key);
261
+ const lines = fee ? this.serviceFeeBoundLines(fee) : [];
262
+ if (!lines.length)
263
+ return null;
264
+ return (h("span", { class: "s-cart-summary-card-fee-tip-bubble", role: "tooltip", style: { top: `${this.feeTip.top}px`, left: `${this.feeTip.left}px` } }, lines.map(line => (h("span", { class: "s-cart-summary-card-fee-tip-line", key: line.label }, h("span", { class: "s-cart-summary-card-fee-tip-line-label" }, line.label), h("span", { class: "s-cart-summary-card-fee-tip-line-value" }, this.plainMoney(line.amount)))))));
265
+ }
159
266
  // Desktop cutoff — must match the SCSS media queries so JS and CSS never diverge.
160
267
  breakpointPx() {
161
268
  return 1024;
@@ -235,6 +342,7 @@ export class SallaCartSummaryCard {
235
342
  this.mediaQueryList?.removeListener(this.mqlChangeHandler);
236
343
  }
237
344
  this.mediaQueryList = null;
345
+ this.unbindFeeTipDismiss();
238
346
  this.cartEventNames.forEach(name => salla.event.off(name, this.cartEventHandler));
239
347
  salla.event.off('cart::submit.failed', this.releaseSubmitLoading);
240
348
  });
@@ -310,6 +418,13 @@ export class SallaCartSummaryCard {
310
418
  this.cartOptionsTotal = this.num(data.options_total);
311
419
  if (data.tax_amount !== undefined)
312
420
  this.cartTaxAmount = this.num(data.tax_amount);
421
+ /* Same retractability as cashback — cached/metadata payloads must not wipe live fees. */
422
+ if (Array.isArray(data.service_fees)) {
423
+ this.cartServiceFees = this.mapServiceFees(data.service_fees);
424
+ }
425
+ else if (recomputedTotals) {
426
+ this.cartServiceFees = [];
427
+ }
313
428
  // Shipping cost (free-shipping aware): prefer `shipping_cost`, else `real_shipping_cost`.
314
429
  const hasFreeShipping = !!data.free_shipping_bar?.has_free_shipping;
315
430
  if (data.shipping_cost !== undefined)
@@ -389,7 +504,7 @@ export class SallaCartSummaryCard {
389
504
  } }, h("div", { class: {
390
505
  's-cart-summary-card-sheet-wrap': true,
391
506
  's-cart-summary-card-sheet-wrap--open': this.isOpen,
392
- }, "aria-hidden": this.isOpen ? 'false' : 'true' }, h("div", { class: "s-cart-summary-card-sheet", style: sheetStyle }, h("header", { class: "s-cart-summary-card-sheet-header" }, h("h3", { class: "s-cart-summary-card-sheet-title" }, this.summaryLabel)), h("div", { class: "s-cart-summary-card-line" }, h("span", null, subTotalLabel), h("b", { innerHTML: this.money(this.cartSubTotal) })), this.cartOptionsTotal > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.optionsTotalLabel), h("b", { innerHTML: this.money(this.cartOptionsTotal) }))), this.cartHasShipping && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.shippingCostLabel), h("b", { innerHTML: this.money(this.cartShippingCost) }))), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.vatTaxLabel), h("b", { innerHTML: this.money(this.cartTaxAmount) }))), showSavings && (h("div", { class: "s-cart-summary-card-line s-cart-summary-card-line--discount" }, h("span", null, this.savedLabel), h("b", null, "\u2212 ", h("span", { innerHTML: this.money(this.cartTotalDiscount) })))))), h("div", { class: "s-cart-summary-card-bar" }, h("div", { class: "s-cart-summary-card-bar-label" }, h("div", { class: "s-cart-summary-card-bar-label-main" }, h("span", { class: "s-cart-summary-card-bar-label-text" }, this.finalTotalLabel), h("span", { class: "s-cart-summary-card-bar-count" }, this.getItemsLabel())), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-bar-label-sub" }, this.pricesTaxedLabel))), h("div", { class: "s-cart-summary-card-bar-totals" }, h("div", { class: "s-cart-summary-card-bar-totals-row" }, showSavings && (h("s", { class: "s-cart-summary-card-bar-original" }, salla.helpers.number(this.roundToCurrency(this.cartTotal + this.cartTotalDiscount)))), h("b", { class: "s-cart-summary-card-bar-total", innerHTML: this.money(this.cartTotal) }), !this.isDesktop && (h("button", { type: "button", class: "s-cart-summary-card-chevron", "aria-label": this.isOpen ? this.closeSummaryLabel : this.openSummaryLabel, "aria-expanded": this.isOpen ? 'true' : 'false', onClick: this.toggleSheet }, h("i", { class: "sicon-keyboard_arrow_up s-cart-summary-card-chevron-icon" })))), (showSavings || showCashback) && (h("div", { class: "s-cart-summary-card-bar-savings-badge" }, h("span", { "aria-hidden": "true" }, "\uD83C\uDF89"), h("span", null, showSavings && (h("span", null, this.discountBadge, " ", h("span", { innerHTML: this.money(this.cartTotalDiscount) }))), showSavings && showCashback && ' + ', showCashback && (h("span", null, h("span", { innerHTML: this.money(this.cartCashbackAmount) }), " ", this.cashbackLabel))))))), h("div", { class: "s-cart-summary-card-action" }, h("salla-button", { id: "s-cart-summary-card-submit", width: "wide", "loader-position": "center", onClick: this.handleSubmit }, this.completeOrderLabel))));
507
+ }, "aria-hidden": this.isOpen ? 'false' : 'true' }, h("div", { class: "s-cart-summary-card-sheet", style: sheetStyle }, h("header", { class: "s-cart-summary-card-sheet-header" }, h("h3", { class: "s-cart-summary-card-sheet-title" }, this.summaryLabel)), h("div", { class: "s-cart-summary-card-line" }, h("span", null, subTotalLabel), h("b", { innerHTML: this.money(this.cartSubTotal) })), this.cartOptionsTotal > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.optionsTotalLabel), h("b", { innerHTML: this.money(this.cartOptionsTotal) }))), this.cartServiceFees.map(fee => (h("div", { class: "s-cart-summary-card-line", key: fee.key }, h("span", { class: "s-cart-summary-card-fee-label" }, h("span", null, fee.title), this.renderServiceFeeBoundsTip(fee)), h("b", { innerHTML: this.money(fee.amount) })))), this.cartHasShipping && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.shippingCostLabel), h("b", { innerHTML: this.money(this.cartShippingCost) }))), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.vatTaxLabel), h("b", { innerHTML: this.money(this.cartTaxAmount) }))), showSavings && (h("div", { class: "s-cart-summary-card-line s-cart-summary-card-line--discount" }, h("span", null, this.savedLabel), h("b", null, "\u2212 ", h("span", { innerHTML: this.money(this.cartTotalDiscount) })))))), h("div", { class: "s-cart-summary-card-bar" }, h("div", { class: "s-cart-summary-card-bar-label" }, h("div", { class: "s-cart-summary-card-bar-label-main" }, h("span", { class: "s-cart-summary-card-bar-label-text" }, this.finalTotalLabel), h("span", { class: "s-cart-summary-card-bar-count" }, this.getItemsLabel())), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-bar-label-sub" }, this.pricesTaxedLabel))), h("div", { class: "s-cart-summary-card-bar-totals" }, h("div", { class: "s-cart-summary-card-bar-totals-row" }, showSavings && (h("s", { class: "s-cart-summary-card-bar-original" }, salla.helpers.number(this.roundToCurrency(this.cartTotal + this.cartTotalDiscount)))), h("b", { class: "s-cart-summary-card-bar-total", innerHTML: this.money(this.cartTotal) }), !this.isDesktop && (h("button", { type: "button", class: "s-cart-summary-card-chevron", "aria-label": this.isOpen ? this.closeSummaryLabel : this.openSummaryLabel, "aria-expanded": this.isOpen ? 'true' : 'false', onClick: this.toggleSheet }, h("i", { class: "sicon-keyboard_arrow_up s-cart-summary-card-chevron-icon" })))), (showSavings || showCashback) && (h("div", { class: "s-cart-summary-card-bar-savings-badge" }, h("span", { "aria-hidden": "true" }, "\uD83C\uDF89"), h("span", null, showSavings && (h("span", null, this.discountBadge, " ", h("span", { innerHTML: this.money(this.cartTotalDiscount) }))), showSavings && showCashback && ' + ', showCashback && (h("span", null, h("span", { innerHTML: this.money(this.cartCashbackAmount) }), " ", this.cashbackLabel))))))), h("div", { class: "s-cart-summary-card-action" }, h("salla-button", { id: "s-cart-summary-card-submit", width: "wide", "loader-position": "center", onClick: this.handleSubmit }, this.completeOrderLabel)), this.renderFixedFeeTipBubble()));
393
508
  }
394
509
  static get is() { return "salla-cart-summary-card"; }
395
510
  static get originalStyleUrls() {
@@ -434,6 +549,7 @@ export class SallaCartSummaryCard {
434
549
  "cartCashbackAmount": {},
435
550
  "cartSubTotal": {},
436
551
  "cartOptionsTotal": {},
552
+ "cartServiceFees": {},
437
553
  "cartShippingCost": {},
438
554
  "cartTaxAmount": {},
439
555
  "cartHasShipping": {},
@@ -454,7 +570,10 @@ export class SallaCartSummaryCard {
454
570
  "completeOrderLabel": {},
455
571
  "openSummaryLabel": {},
456
572
  "closeSummaryLabel": {},
457
- "itemsCountTemplate": {}
573
+ "minimumLabel": {},
574
+ "maximumLabel": {},
575
+ "itemsCountTemplate": {},
576
+ "feeTip": {}
458
577
  };
459
578
  }
460
579
  static get elementRef() { return "host"; }
@@ -1,6 +1,9 @@
1
1
  /*!twlt*/:host {
2
2
  display: block;
3
3
  }
4
+ .filter {
5
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
6
+ }
4
7
  .s-order-totals-card-wrapper {
5
8
  display: block;
6
9
  }