@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.8

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 (202) hide show
  1. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  2. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  3. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +2 -4
  5. package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
  6. package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
  7. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +2 -5
  8. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
  9. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +1 -2
  11. package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
  12. package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
  13. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +1 -5
  14. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
  15. package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
  16. package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
  17. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs} +32 -189
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
  19. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
  20. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -31
  21. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +4 -7
  22. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
  23. package/dist/adyenLoader-CEH4A2b2.js +1 -0
  24. package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
  25. package/dist/component-C2Gc-wsE.js +1 -0
  26. package/dist/component-CM9g6tbD.mjs +804 -0
  27. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  28. package/dist/components/BillingInformation/BillingInformation.es.js +3 -7
  29. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  30. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +9 -17
  31. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  32. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
  33. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  34. package/dist/components/Invoice/Invoice.es.js +42 -2659
  35. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  36. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
  37. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  38. package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
  39. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  40. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
  41. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  42. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -33
  43. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  44. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +8 -4824
  45. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  46. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
  47. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  48. package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
  49. package/dist/core/index.cjs.js +1 -1
  50. package/dist/core/index.es.js +1 -1
  51. package/dist/core/types.d.ts +2 -0
  52. package/dist/{customer-CcQR-JIm.js → customer-C_Hz_npf.js} +1 -1
  53. package/dist/{customer-CJrpbGX4.mjs → customer-TIi7iZFw.mjs} +1 -1
  54. package/dist/en-US-CBoPxQwX.mjs +199 -0
  55. package/dist/en-US-DJq-9dD8.js +1 -0
  56. package/dist/index-CzL1ZcGi.mjs +85 -0
  57. package/dist/index-DRdBmZ2-.js +1 -0
  58. package/dist/index.cjs.js +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.es.js +4 -1
  61. package/dist/{invoices-CNK1Ushv.mjs → invoices-BuVOuTOm.mjs} +2 -15
  62. package/dist/invoices-DbvwXAsm.js +1 -0
  63. package/dist/nl-NL-BB7KbK-h.mjs +181 -0
  64. package/dist/nl-NL-CtU1Lg2F.js +1 -0
  65. package/dist/paymentMethods-B4AYGf0K.js +1 -0
  66. package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-Di32oJ39.mjs} +2 -2
  67. package/dist/{payments-CE9U7aKK.mjs → payments-C5fD1PXB.mjs} +1 -1
  68. package/dist/{payments-CLt0SExf.js → payments-DeutKq9x.js} +1 -1
  69. package/dist/{registry-B99ZnfEn.mjs → registry-BLwMl1bK.mjs} +6 -4
  70. package/dist/registry-CMSmkLcy.js +1 -0
  71. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  72. package/dist/screens/Checkout/Checkout.es.js +420 -2388
  73. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  74. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
  75. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  76. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  77. package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
  78. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  79. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +79 -61
  80. package/dist/solvimon-web.css +1 -1
  81. package/dist/source-DKDKBlUm.mjs +179 -0
  82. package/dist/source-dkMNFWDc.js +1 -0
  83. package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-mOgjjzUi.mjs} +2 -2
  84. package/dist/subscriptions-wdMADcQZ.js +1 -0
  85. package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
  86. package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
  87. package/dist/{useCustomer-PthyTFLl.js → useCustomer-DanZzn-l.js} +1 -1
  88. package/dist/{useCustomer--jycAz--.mjs → useCustomer-cbhDyWJL.mjs} +2 -2
  89. package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
  90. package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -8
  91. package/dist/useInvoiceData-CxxHa5R2.js +1 -0
  92. package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
  93. package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-BQQxcPdz.mjs} +23 -260
  94. package/dist/useInvoicesList-CtJqmblZ.js +1 -0
  95. package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
  96. package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
  97. package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
  98. package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
  99. package/dist/usePayments-B13S_yai.js +1 -0
  100. package/dist/usePayments-D4uGKBsV.mjs +36 -0
  101. package/dist/usePortal-DJDJNLbo.mjs +12 -0
  102. package/dist/usePortal-DWJEVkTj.js +1 -0
  103. package/dist/useService-9fCKPTmu.js +1 -0
  104. package/dist/useService-BuWWE5ND.mjs +68 -0
  105. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  106. package/dist/useViewport-CKRY1CKR.js +1 -0
  107. package/dist/useWalletBalanceItems-B53Gkjro.mjs +106 -0
  108. package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
  109. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  110. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  111. package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
  112. package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
  113. package/package.json +17 -10
  114. package/dist/Alert.vue.es-DMPvSykx.js +0 -1
  115. package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
  116. package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
  117. package/dist/Amount.vue.es-h8wulbBG.js +0 -1
  118. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
  119. package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
  120. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
  121. package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
  122. package/dist/Button.vue.es-BC4_TItq.js +0 -1
  123. package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
  124. package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
  125. package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
  126. package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
  127. package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
  128. package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
  129. package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
  130. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
  131. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
  132. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
  133. package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
  134. package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
  135. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
  136. package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
  137. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
  138. package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
  139. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
  140. package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
  141. package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
  142. package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
  143. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
  144. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
  145. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
  146. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
  147. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
  148. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
  149. package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
  150. package/dist/Section.vue.es-BuzTXRLP.js +0 -1
  151. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
  152. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
  153. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
  154. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
  155. package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
  156. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  157. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  158. package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
  159. package/dist/_flatRest.es-dFffnTpX.js +0 -1
  160. package/dist/api.es-B4qAAJKr.js +0 -1
  161. package/dist/api.es-UkfpLiLL.mjs +0 -83
  162. package/dist/cloneDeep-Hs8Pp07F.js +0 -1
  163. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  164. package/dist/cn.es-C7xoIs3C.js +0 -1
  165. package/dist/cn.es-tfxVlz02.mjs +0 -3191
  166. package/dist/component-ZRZIt3ZW.js +0 -1
  167. package/dist/component-dpA83LIN.mjs +0 -6569
  168. package/dist/countryData.es--zJAd6LA.mjs +0 -252
  169. package/dist/countryData.es-D3MFzU92.js +0 -1
  170. package/dist/customer.es-D42Md24r.js +0 -1
  171. package/dist/customer.es-LIW2YmLL.mjs +0 -30
  172. package/dist/formatting.es-9hM8aHSg.js +0 -1
  173. package/dist/formatting.es-D5H_ySFv.mjs +0 -68
  174. package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
  175. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
  176. package/dist/index-2jo9BSPM.js +0 -1
  177. package/dist/index-BFZ0dPh9.mjs +0 -179
  178. package/dist/index-CI71bVGE.mjs +0 -2521
  179. package/dist/index-CWSXne1Q.js +0 -1
  180. package/dist/index-D3v7hAtc.mjs +0 -253
  181. package/dist/index-WLSPwi90.js +0 -1
  182. package/dist/index.es-BBJF2O2l.js +0 -1
  183. package/dist/index.es-LCAKs4tH.mjs +0 -438
  184. package/dist/invoices-3kVHsAXr.js +0 -1
  185. package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
  186. package/dist/isEmpty.es-Dycf-CD_.js +0 -1
  187. package/dist/paymentMethods-DZRf0WRl.js +0 -1
  188. package/dist/pick.es-BgDAfhAl.js +0 -1
  189. package/dist/pick.es-DdVOyp0Q.mjs +0 -45
  190. package/dist/registry-ClZ43bQn.js +0 -1
  191. package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
  192. package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
  193. package/dist/subscriptions-CS8HTxzC.js +0 -1
  194. package/dist/typeGuards.es-C4nR5FkL.js +0 -1
  195. package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
  196. package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
  197. package/dist/useInvoiceData-DvQO_nKz.js +0 -1
  198. package/dist/useInvoicesList-CHkwSNO9.js +0 -1
  199. package/dist/useService-B67YWAcN.js +0 -1
  200. package/dist/useService-DG_zedHV.mjs +0 -282
  201. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
  202. package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvimon/solvimon-web",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.8",
4
4
  "description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -39,7 +39,8 @@
39
39
  "version:major": "npm version major --no-git-tag-version",
40
40
  "changelog:check": "node scripts/check-changelog.mjs",
41
41
  "publish:guard": "node scripts/publish-guard.mjs",
42
- "prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build"
42
+ "prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build",
43
+ "prepare": "husky"
43
44
  },
44
45
  "files": [
45
46
  "dist"
@@ -76,6 +77,11 @@
76
77
  "import": "./dist/screens/UpgradeSubscription/UpgradeSubscription.es.js",
77
78
  "require": "./dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js"
78
79
  },
80
+ "./screens/pay-invoice": {
81
+ "types": "./dist/screens/PayInvoice/PayInvoice.ce.d.ts",
82
+ "import": "./dist/screens/PayInvoice/PayInvoice.es.js",
83
+ "require": "./dist/screens/PayInvoice/PayInvoice.cjs.js"
84
+ },
79
85
  "./components/subscriptions-list": {
80
86
  "types": "./dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts",
81
87
  "import": "./dist/components/SubscriptionsList/SubscriptionsList.es.js",
@@ -132,17 +138,17 @@
132
138
  "require": "./dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js"
133
139
  }
134
140
  },
141
+ "sideEffects": false,
142
+ "peerDependencies": {
143
+ "vue": ">=3.5.0"
144
+ },
135
145
  "dependencies": {
136
146
  "@adyen/adyen-web": "^6.14.0",
137
- "@formatjs/intl": "^3.1.5",
138
- "@vueuse/core": "^9.13.0",
139
- "@vueuse/shared": "^10.7.2",
140
- "jwt-decode": "^4.0.0",
141
- "lodash-es": "^4.18.0",
142
- "vite-plugin-string": "^1.2.3",
143
- "vue": "^3.5.13"
147
+ "jwt-decode": "^4.0.0"
144
148
  },
145
149
  "devDependencies": {
150
+ "@commitlint/cli": "^20.5.3",
151
+ "@commitlint/config-conventional": "^20.5.3",
146
152
  "@formatjs/cli": "^6.6.1",
147
153
  "@playwright/test": "^1.57.0",
148
154
  "@rushstack/eslint-patch": "^1.2.0",
@@ -150,7 +156,6 @@
150
156
  "@solvimon/solvimon-ui": "^1.0.2",
151
157
  "@tsconfig/node22": "^22.0.0",
152
158
  "@types/jsdom": "^21.1.7",
153
- "@types/lodash-es": "^4.17.12",
154
159
  "@types/node": "^22.10.2",
155
160
  "@typescript-eslint/parser": "^8.46.2",
156
161
  "@vitejs/plugin-vue": "^5.2.3",
@@ -171,6 +176,7 @@
171
176
  "eslint-plugin-unused-imports": "^4.1.4",
172
177
  "eslint-plugin-vue": "^9.33.0",
173
178
  "glob": "^11.0.1",
179
+ "husky": "^9.1.7",
174
180
  "jsdom": "^26.0.0",
175
181
  "npm-run-all2": "^7.0.2",
176
182
  "postcss": "^8.5.10",
@@ -182,6 +188,7 @@
182
188
  "typescript": "~5.6.3",
183
189
  "vite": "^6.4.2",
184
190
  "vite-plugin-dts": "^4.5.3",
191
+ "vite-plugin-string": "^1.2.3",
185
192
  "vite-plugin-vue-devtools": "^7.7.2",
186
193
  "vitest": "^3.1.1",
187
194
  "vitest-localstorage-mock": "^0.1.2",
@@ -1 +0,0 @@
1
- const e=require("vue"),l="py-2 px-4 text-sm",t={danger:"text-red-700",dark:"text-gray-700",info:"text-blue-700",success:"text-green-700",warning:"text-yellow-700"},o={danger:"bg-red-100",dark:"bg-gray-100",info:"bg-blue-100",success:"bg-green-100",warning:"bg-yellow-100"},n={danger:"border-t-4 border-red-500",dark:"border-t-4 border-gray-500",info:"border-t-4 border-blue-500",success:"border-t-4 border-green-500",warning:"border-t-4 border-yellow-500"},r="ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8",a={danger:"hover:bg-red-200 focus:ring-red-400 bg-red-100 text-red-500",dark:"hover:bg-gray-200 focus:ring-gray-400 bg-gray-100 text-gray-500",info:"hover:bg-blue-200 focus:ring-blue-400 bg-blue-100 text-blue-500",success:"bg-green-100 text-green-500 focus:ring-green-400 hover:bg-green-200",warning:"focus:ring-yellow-400 hover:bg-yellow-200 bg-yellow-100 text-yellow-500"};const s={key:0,class:"ml-auto inline-flex items-center"},i=e.defineComponent({__name:"Alert",props:{type:{default:"info"},title:{default:""},closable:{type:Boolean,default:!1},icon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},inline:{type:Boolean,default:!0}},setup(i){const c=i,{alertClasses:d,textClasses:u,closeClasses:m,contentClasses:g,titleClasses:f}=function(s){const i=e.computed(()=>[l,o[s.type.value],c.value,s.border.value?n[s.type.value]:"rounded",s.inline.value?"flex items-center":""].filter(e=>!!e).join(" ")),c=e.computed(()=>t[s.type.value]??""),d=e.computed(()=>[r,a[s.type.value]??""].filter(e=>!!e).join(" ")),u=e.computed(()=>s.inline.value?s.icon.value||s.title.value?s.title.value?"grow ml-1":"grow ml-2":"":"my-2"),m=e.computed(()=>s.icon.value&&s.inline.value?["font-medium ml-2",s.inline.value?"":"text-lg"].filter(e=>!!e).join(" "):["font-medium",s.inline.value?"":"text-lg ml-2"].filter(e=>!!e).join(" "));return{alertClasses:i,textClasses:c,closeClasses:d,contentClasses:u,titleClasses:m}}(e.toRefs(c)),v=e.ref(!0),b=()=>{v.value=!1};return(l,t)=>v.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(d)),role:"alert"},[e.createElementVNode("div",{class:e.normalizeClass(i.inline?"flex":"flex items-center")},[i.icon?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["flex-shrink-0","w-5","h-5",e.unref(u)]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"},null,-1)])],2)):e.createCommentVNode("",!0),i.title?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(f))},e.toDisplayString(i.title),3)):e.createCommentVNode("",!0),!i.inline&&i.closable?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(e.unref(m)),"aria-label":"Close",onClick:b},[...t[1]||(t[1]=[e.createElementVNode("span",{class:"sr-only"},"Dismiss",-1),e.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(g))},[e.renderSlot(l.$slots,"default")],2),l.$slots.actions?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(l.$slots,"actions")])):e.createCommentVNode("",!0),i.inline&&i.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(e.unref(m)),"aria-label":"Close",onClick:b},[...t[2]||(t[2]=[e.createElementVNode("span",{class:"sr-only"},"Dismiss",-1),e.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}});exports._sfc_main=i;
@@ -1,172 +0,0 @@
1
- import { computed, defineComponent, toRefs, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- const defaultAlertClasses = "py-2 px-4 text-sm";
3
- const alertTextClasses = {
4
- danger: "text-red-700",
5
- dark: "text-gray-700",
6
- info: "text-blue-700",
7
- success: "text-green-700",
8
- warning: "text-yellow-700"
9
- };
10
- const alertTypeClasses = {
11
- danger: "bg-red-100",
12
- dark: "bg-gray-100",
13
- info: "bg-blue-100",
14
- success: "bg-green-100",
15
- warning: "bg-yellow-100"
16
- };
17
- const alertBorderClasses = {
18
- danger: "border-t-4 border-red-500",
19
- dark: "border-t-4 border-gray-500",
20
- info: "border-t-4 border-blue-500",
21
- success: "border-t-4 border-green-500",
22
- warning: "border-t-4 border-yellow-500"
23
- };
24
- const defaultCloseButtonClasses = "ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8";
25
- const closeButtonClasses = {
26
- danger: "hover:bg-red-200 focus:ring-red-400 bg-red-100 text-red-500",
27
- dark: "hover:bg-gray-200 focus:ring-gray-400 bg-gray-100 text-gray-500",
28
- info: "hover:bg-blue-200 focus:ring-blue-400 bg-blue-100 text-blue-500",
29
- success: "bg-green-100 text-green-500 focus:ring-green-400 hover:bg-green-200",
30
- warning: "focus:ring-yellow-400 hover:bg-yellow-200 bg-yellow-100 text-yellow-500"
31
- };
32
- function useAlertClasses(props) {
33
- const alertClasses = computed(
34
- () => [
35
- defaultAlertClasses,
36
- alertTypeClasses[props.type.value],
37
- textClasses.value,
38
- props.border.value ? alertBorderClasses[props.type.value] : "rounded",
39
- // rounded only if no border
40
- props.inline.value ? "flex items-center" : ""
41
- ].filter((value) => !!value).join(" ")
42
- );
43
- const textClasses = computed(() => alertTextClasses[props.type.value] ?? "");
44
- const closeClasses = computed(
45
- () => [defaultCloseButtonClasses, closeButtonClasses[props.type.value] ?? ""].filter((value) => !!value).join(" ")
46
- );
47
- const contentClasses = computed(() => {
48
- if (!props.inline.value) return "my-2";
49
- if (!props.icon.value && !props.title.value) return "";
50
- return !props.title.value ? "grow ml-2" : "grow ml-1";
51
- });
52
- const titleClasses = computed(() => {
53
- if (!props.icon.value || !props.inline.value) {
54
- return ["font-medium", !props.inline.value ? "text-lg ml-2" : ""].filter((value) => !!value).join(" ");
55
- }
56
- return ["font-medium ml-2", !props.inline.value ? "text-lg" : ""].filter((value) => !!value).join(" ");
57
- });
58
- return {
59
- alertClasses,
60
- textClasses,
61
- closeClasses,
62
- contentClasses,
63
- titleClasses
64
- };
65
- }
66
- const _hoisted_1 = {
67
- key: 0,
68
- class: "ml-auto inline-flex items-center"
69
- };
70
- const _sfc_main = /* @__PURE__ */ defineComponent({
71
- __name: "Alert",
72
- props: {
73
- type: { default: "info" },
74
- title: { default: "" },
75
- closable: { type: Boolean, default: false },
76
- icon: { type: Boolean, default: true },
77
- border: { type: Boolean, default: false },
78
- inline: { type: Boolean, default: true }
79
- },
80
- setup(__props) {
81
- const props = __props;
82
- const { alertClasses, textClasses, closeClasses, contentClasses, titleClasses } = useAlertClasses(
83
- toRefs(props)
84
- );
85
- const visible = ref(true);
86
- const onCloseClick = () => {
87
- visible.value = false;
88
- };
89
- return (_ctx, _cache) => {
90
- return visible.value ? (openBlock(), createElementBlock("div", {
91
- key: 0,
92
- class: normalizeClass(unref(alertClasses)),
93
- role: "alert"
94
- }, [
95
- createElementVNode("div", {
96
- class: normalizeClass(__props.inline ? "flex" : "flex items-center")
97
- }, [
98
- __props.icon ? (openBlock(), createElementBlock("svg", {
99
- key: 0,
100
- class: normalizeClass(["flex-shrink-0", "w-5", "h-5", unref(textClasses)]),
101
- fill: "currentColor",
102
- viewBox: "0 0 20 20",
103
- xmlns: "http://www.w3.org/2000/svg"
104
- }, [..._cache[0] || (_cache[0] = [
105
- createElementVNode("path", {
106
- "fill-rule": "evenodd",
107
- d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",
108
- "clip-rule": "evenodd"
109
- }, null, -1)
110
- ])], 2)) : createCommentVNode("", true),
111
- __props.title ? (openBlock(), createElementBlock("span", {
112
- key: 1,
113
- class: normalizeClass(unref(titleClasses))
114
- }, toDisplayString(__props.title), 3)) : createCommentVNode("", true),
115
- !__props.inline && __props.closable ? (openBlock(), createElementBlock("button", {
116
- key: 2,
117
- type: "button",
118
- class: normalizeClass(unref(closeClasses)),
119
- "aria-label": "Close",
120
- onClick: onCloseClick
121
- }, [..._cache[1] || (_cache[1] = [
122
- createElementVNode("span", { class: "sr-only" }, "Dismiss", -1),
123
- createElementVNode("svg", {
124
- class: "w-5 h-5",
125
- fill: "currentColor",
126
- viewBox: "0 0 20 20",
127
- xmlns: "http://www.w3.org/2000/svg"
128
- }, [
129
- createElementVNode("path", {
130
- "fill-rule": "evenodd",
131
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
132
- "clip-rule": "evenodd"
133
- })
134
- ], -1)
135
- ])], 2)) : createCommentVNode("", true)
136
- ], 2),
137
- createElementVNode("div", {
138
- class: normalizeClass(unref(contentClasses))
139
- }, [
140
- renderSlot(_ctx.$slots, "default")
141
- ], 2),
142
- _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1, [
143
- renderSlot(_ctx.$slots, "actions")
144
- ])) : createCommentVNode("", true),
145
- __props.inline && __props.closable ? (openBlock(), createElementBlock("button", {
146
- key: 1,
147
- type: "button",
148
- class: normalizeClass(unref(closeClasses)),
149
- "aria-label": "Close",
150
- onClick: onCloseClick
151
- }, [..._cache[2] || (_cache[2] = [
152
- createElementVNode("span", { class: "sr-only" }, "Dismiss", -1),
153
- createElementVNode("svg", {
154
- class: "w-5 h-5",
155
- fill: "currentColor",
156
- viewBox: "0 0 20 20",
157
- xmlns: "http://www.w3.org/2000/svg"
158
- }, [
159
- createElementVNode("path", {
160
- "fill-rule": "evenodd",
161
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
162
- "clip-rule": "evenodd"
163
- })
164
- ], -1)
165
- ])], 2)) : createCommentVNode("", true)
166
- ], 2)) : createCommentVNode("", true);
167
- };
168
- }
169
- });
170
- export {
171
- _sfc_main as _
172
- };
@@ -1,23 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, mergeProps, toDisplayString, unref } from "vue";
2
- import { a as formatAmount } from "./formatting.es-D5H_ySFv.mjs";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "Amount",
5
- props: {
6
- value: {},
7
- highlighted: { type: Boolean, default: false }
8
- },
9
- setup(__props) {
10
- return (_ctx, _cache) => {
11
- return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
12
- class: [
13
- { "text-primary-600 font-semibold": __props.highlighted },
14
- "inline-block"
15
- // ensures classes like my-2 / mx-2 works
16
- ]
17
- }), toDisplayString(unref(formatAmount)(__props.value)), 17);
18
- };
19
- }
20
- });
21
- export {
22
- _sfc_main as _
23
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./formatting.es-9hM8aHSg.js"),o=e.defineComponent({__name:"Amount",props:{value:{},highlighted:{type:Boolean,default:!1}},setup:o=>(n,r)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps(n.$attrs,{class:[{"text-primary-600 font-semibold":o.highlighted},"inline-block"]}),e.toDisplayString(e.unref(t.formatAmount)(o.value)),17))});exports._sfc_main=o;
@@ -1,93 +0,0 @@
1
- import { ref, watch, defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, toDisplayString, createCommentVNode } from "vue";
2
- const useHashColor = (str) => {
3
- const color = ref();
4
- const generateColorFromHash = (str2) => {
5
- let hash = 0;
6
- for (let i = 0; i < str2.length; i++) {
7
- hash = str2.charCodeAt(i) + ((hash << 5) - hash);
8
- }
9
- let colorHex = "#";
10
- for (let i = 0; i < 3; i++) {
11
- const value = hash >> i * 8 & 255;
12
- colorHex += ("00" + value.toString(16)).substr(-2);
13
- }
14
- return colorHex;
15
- };
16
- watch(
17
- () => str,
18
- () => {
19
- color.value = generateColorFromHash(str);
20
- },
21
- { immediate: true }
22
- );
23
- return color;
24
- };
25
- const getComposedString = (inputs = []) => {
26
- const filtered = inputs.filter((input) => input != null && input !== "");
27
- if (filtered.length === 1) {
28
- return filtered[0];
29
- }
30
- const areAllNamesSame = filtered.every((name) => name === filtered[0]);
31
- return areAllNamesSame ? filtered[0] : [
32
- ...filtered.slice(0, filtered.length - 2),
33
- filtered.slice(filtered.length - 2, filtered.length).join(" & ")
34
- ].join(", ");
35
- };
36
- const _sfc_main = /* @__PURE__ */ defineComponent({
37
- __name: "Avatar",
38
- props: {
39
- initials: {},
40
- imageSrc: {},
41
- size: { default: "md" },
42
- round: { type: Boolean, default: false },
43
- variant: { default: "light" },
44
- colorHash: {},
45
- font: { default: "icon" }
46
- },
47
- setup(__props) {
48
- const props = __props;
49
- const sizeMap = {
50
- xs: "w-4 h-4",
51
- sm: "w-5 h-5",
52
- md: "w-6 h-6",
53
- lg: "w-8 h-8",
54
- xl: "w-12 h-12"
55
- };
56
- const fontSizeMap = {
57
- xs: "text-base",
58
- sm: "text-lg",
59
- md: "text-2xl",
60
- lg: "text-4xl",
61
- xl: "text-6xl"
62
- };
63
- const backgroundColor = useHashColor(props.colorHash ?? props.initials ?? "A");
64
- const styles = computed(() => ({
65
- backgroundImage: props.imageSrc ? `url(${props.imageSrc})` : `linear-gradient(140deg, ${backgroundColor.value}60 0%, #DCF3FD 75%)`
66
- }));
67
- return (_ctx, _cache) => {
68
- return openBlock(), createElementBlock("div", {
69
- class: normalizeClass(["flex shrink-0 justify-center items-center rounded overflow-hidden bg-cover bg-primary-100", {
70
- [sizeMap[props.size]]: true,
71
- "rounded-full": __props.round,
72
- "border border-black border-opacity-5": __props.variant === "dark"
73
- }]),
74
- style: normalizeStyle(styles.value)
75
- }, [
76
- __props.initials && !__props.imageSrc ? (openBlock(), createElementBlock("span", {
77
- key: 0,
78
- class: normalizeClass(["font-semibold font-regular text-2xl", {
79
- [fontSizeMap[props.size]]: true,
80
- "font-regular": __props.font === "icon",
81
- "font-inter drop-shadow-sm": __props.font === "regular",
82
- "text-white/70": __props.variant === "light",
83
- "text-black/10": __props.variant === "dark"
84
- }])
85
- }, toDisplayString(__props.initials.toUpperCase()), 3)) : createCommentVNode("", true)
86
- ], 6);
87
- };
88
- }
89
- });
90
- export {
91
- _sfc_main as _,
92
- getComposedString as g
93
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),t=e.defineComponent({__name:"Avatar",props:{initials:{},imageSrc:{},size:{default:"md"},round:{type:Boolean,default:!1},variant:{default:"light"},colorHash:{},font:{default:"icon"}},setup(t){const r=t,l={xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},n={xs:"text-base",sm:"text-lg",md:"text-2xl",lg:"text-4xl",xl:"text-6xl"},a=(t=>{const r=e.ref();return e.watch(()=>t,()=>{r.value=(e=>{let t=0;for(let l=0;l<e.length;l++)t=e.charCodeAt(l)+((t<<5)-t);let r="#";for(let l=0;l<3;l++)r+=("00"+(t>>8*l&255).toString(16)).substr(-2);return r})(t)},{immediate:!0}),r})(r.colorHash??r.initials??"A"),o=e.computed(()=>({backgroundImage:r.imageSrc?`url(${r.imageSrc})`:`linear-gradient(140deg, ${a.value}60 0%, #DCF3FD 75%)`}));return(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex shrink-0 justify-center items-center rounded overflow-hidden bg-cover bg-primary-100",{[l[r.size]]:!0,"rounded-full":t.round,"border border-black border-opacity-5":"dark"===t.variant}]),style:e.normalizeStyle(o.value)},[t.initials&&!t.imageSrc?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["font-semibold font-regular text-2xl",{[n[r.size]]:!0,"font-regular":"icon"===t.font,"font-inter drop-shadow-sm":"regular"===t.font,"text-white/70":"light"===t.variant,"text-black/10":"dark"===t.variant}])},e.toDisplayString(t.initials.toUpperCase()),3)):e.createCommentVNode("",!0)],6))}});exports._sfc_main=t,exports.getComposedString=(e=[])=>{const t=e.filter(e=>null!=e&&""!==e);if(1===t.length)return t[0];return t.every(e=>e===t[0])?t[0]:[...t.slice(0,t.length-2),t.slice(t.length-2,t.length).join(" & ")].join(", ")};
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./Button.vue.es-BC4_TItq.js"),i=require("./CustomerBillingInformation.vue.es-9rP7-RzN.js"),o=require("./component-ZRZIt3ZW.js"),n=require("./Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),r=require("./useActionDispatchProvider-CWVV_xsi.js"),s=e.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{default:()=>({showEditButton:!0}),type:Object}},emits:["edit-billing-information"],setup(s){const{$t:a}=o.useIntl(),{dispatchAction:c}=r.useActionDispatchProvider();return(o,r)=>s.isLoading?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,variant:"section",class:"min-h-[100px]","data-testid":"billing-information-skeleton"})):(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,customer:s.customer,"fallback-to-reference":!1},e.createSlots({_:2},[s.configuration.showEditButton?{name:"settings",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{size:"sm",variant:"ghost",color:"gray","icon-prefix":"edit",onClick:r[0]||(r[0]=t=>e.unref(c)({action:"edit-billing-information"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=s;