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

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 (179) hide show
  1. package/dist/Alert.vue.es-DMPvSykx.js +1 -0
  2. package/dist/Alert.vue.es-DsJ1ckRU.mjs +172 -0
  3. package/dist/Amount.vue.es-C6JE5rL8.mjs +23 -0
  4. package/dist/Amount.vue.es-h8wulbBG.js +1 -0
  5. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +93 -0
  6. package/dist/Avatar.vue.es-BbyE0AjW.js +1 -0
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +1 -0
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs} +6 -4
  9. package/dist/Button.vue.es-6sBk5tBL.mjs +408 -0
  10. package/dist/Button.vue.es-BC4_TItq.js +1 -0
  11. package/dist/CardContent.vue.es-ChEMrFCc.mjs +115 -0
  12. package/dist/CardContent.vue.es-i9ivuGKG.js +1 -0
  13. package/dist/Chip.vue.es-D0fkSe8a.js +1 -0
  14. package/dist/Chip.vue.es-DcW2CjUA.mjs +1576 -0
  15. package/dist/Comparators.vue.es-BdxDqU8o.js +1 -0
  16. package/dist/Comparators.vue.es-DdTKGB80.mjs +406 -0
  17. package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-Ct24RV-2.mjs} +1 -1
  18. package/dist/{ContentWithAsideLayout-BZJPhvLh.js → ContentWithAsideLayout-UHovpjZu.js} +1 -1
  19. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +1 -0
  20. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +175 -0
  21. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +1 -0
  22. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs} +14 -11
  23. package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
  24. package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
  25. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +72 -0
  26. package/dist/DividerText.vue.es-yiFdPQvo.js +1 -0
  27. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +30 -0
  28. package/dist/ErrorNotification.vue.es-FpRyg0De.js +1 -0
  29. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
  30. package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
  31. package/dist/IconButton.vue.es-DNCwwH_j.mjs +825 -0
  32. package/dist/IconButton.vue.es-DiSiGPWO.js +1 -0
  33. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +1 -0
  34. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs} +3 -2
  35. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +1 -0
  36. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs} +9 -5
  37. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs +1067 -0
  38. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +1 -0
  39. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +1 -0
  40. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +1255 -0
  41. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs} +6 -5
  42. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +1 -0
  43. package/dist/Section.vue.es-3-H1pUTB.mjs +79 -0
  44. package/dist/Section.vue.es-BuzTXRLP.js +1 -0
  45. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs} +23 -20
  46. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +1 -0
  47. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +136 -0
  48. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +1 -0
  49. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +759 -0
  50. package/dist/TrialChip.vue.es-C6Xg_5rR.js +1 -0
  51. package/dist/_flatRest.es-BHFPCqZh.mjs +642 -0
  52. package/dist/_flatRest.es-dFffnTpX.js +1 -0
  53. package/dist/adyen-51SvcyqV.mjs +4 -0
  54. package/dist/adyen-DZsyEXkw.js +1 -0
  55. package/dist/api.es-B4qAAJKr.js +1 -0
  56. package/dist/api.es-UkfpLiLL.mjs +83 -0
  57. package/dist/{cloneDeep-DranHQkY.js → cloneDeep-Hs8Pp07F.js} +1 -1
  58. package/dist/cn.es-C7xoIs3C.js +1 -0
  59. package/dist/cn.es-tfxVlz02.mjs +3191 -0
  60. package/dist/component-ZRZIt3ZW.js +1 -0
  61. package/dist/component-dpA83LIN.mjs +6569 -0
  62. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
  63. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  64. package/dist/components/BillingInformation/BillingInformation.es.js +14 -10
  65. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
  66. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  67. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +27 -23
  68. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
  69. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  70. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -3
  71. package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
  72. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  73. package/dist/components/Invoice/Invoice.es.js +2612 -28
  74. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
  75. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  76. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  77. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
  78. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  79. package/dist/components/InvoicesList/InvoicesList.es.js +2 -2
  80. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
  81. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  82. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  83. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
  84. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +10 -8
  86. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
  87. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +4820 -7
  89. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
  90. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  91. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -4
  92. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -1
  93. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  94. package/dist/components/WalletBalances/WalletBalances.es.js +2 -2
  95. package/dist/core/index.cjs.js +1 -1
  96. package/dist/core/index.es.js +1 -1
  97. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  98. package/dist/countryData.es-D3MFzU92.js +1 -0
  99. package/dist/customer-CJrpbGX4.mjs +32 -0
  100. package/dist/customer-CcQR-JIm.js +1 -0
  101. package/dist/customer.es-D42Md24r.js +1 -0
  102. package/dist/customer.es-LIW2YmLL.mjs +30 -0
  103. package/dist/formatting.es-9hM8aHSg.js +1 -0
  104. package/dist/formatting.es-D5H_ySFv.mjs +68 -0
  105. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  106. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  107. package/dist/index-CI71bVGE.mjs +2521 -0
  108. package/dist/index-WLSPwi90.js +1 -0
  109. package/dist/index.cjs.js +1 -1
  110. package/dist/index.es-BBJF2O2l.js +1 -0
  111. package/dist/index.es-LCAKs4tH.mjs +438 -0
  112. package/dist/index.es.js +1 -1
  113. package/dist/invoices-3kVHsAXr.js +1 -0
  114. package/dist/{invoices-C7BHqB0g.mjs → invoices-CNK1Ushv.mjs} +15 -1
  115. package/dist/isEmpty.es-Bp1SbWFu.mjs +131 -0
  116. package/dist/isEmpty.es-Dycf-CD_.js +1 -0
  117. package/dist/{paymentMethods-BA7Kt8ti.mjs → paymentMethods-C-ApE-G4.mjs} +2 -1
  118. package/dist/paymentMethods-DZRf0WRl.js +1 -0
  119. package/dist/{payments-NTHUh5je.mjs → payments-CE9U7aKK.mjs} +1 -1
  120. package/dist/{payments-B8W0W6wZ.js → payments-CLt0SExf.js} +1 -1
  121. package/dist/pick.es-BgDAfhAl.js +1 -0
  122. package/dist/pick.es-DdVOyp0Q.mjs +45 -0
  123. package/dist/{registry-DgRnFEVF.mjs → registry-B99ZnfEn.mjs} +1 -2
  124. package/dist/registry-ClZ43bQn.js +1 -0
  125. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
  126. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  127. package/dist/screens/Checkout/Checkout.es.js +1862 -162
  128. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
  129. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  130. package/dist/screens/CustomerOverview/CustomerOverview.es.js +11 -11
  131. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +1 -1
  132. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  133. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +46 -40
  134. package/dist/solvimon-web.css +1 -1
  135. package/dist/subscriptions-CS8HTxzC.js +1 -0
  136. package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-CoeCrY1I.mjs} +2 -1
  137. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  138. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  139. package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-CWVV_xsi.js} +1 -1
  140. package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-eO2qFPGv.mjs} +1 -1
  141. package/dist/useCustomer--jycAz--.mjs +25 -0
  142. package/dist/useCustomer-PthyTFLl.js +1 -0
  143. package/dist/useIncrementalLoading-CAdNW-Bf.js +1 -0
  144. package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-CcnL3flF.mjs} +5 -1
  145. package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-BiMMoVoW.mjs} +2 -2
  146. package/dist/{useInvoiceData-CS7hLTea.js → useInvoiceData-DvQO_nKz.js} +1 -1
  147. package/dist/useInvoicesList-CHkwSNO9.js +1 -0
  148. package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-DFhF_gp7.mjs} +260 -23
  149. package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-BRQ7-dUr.js} +1 -1
  150. package/dist/{usePaymentMethods-B8Nft16c.mjs → usePaymentMethods-BX2RnHZN.mjs} +2 -2
  151. package/dist/{useService-D-CUtlp3.js → useService-B67YWAcN.js} +1 -1
  152. package/dist/{useService-B4qv5N2D.mjs → useService-DG_zedHV.mjs} +1 -0
  153. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +308 -0
  154. package/dist/useWalletBalanceItems-BY3gq0fc.js +1 -0
  155. package/package.json +14 -8
  156. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
  157. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +0 -1
  158. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js +0 -1
  159. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js +0 -1
  160. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js +0 -1
  161. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs +0 -6568
  162. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js +0 -1
  163. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +0 -1
  164. package/dist/component-DI3AxwdD.mjs +0 -58733
  165. package/dist/component-yWF07boR.js +0 -1
  166. package/dist/index-CzL1ZcGi.mjs +0 -85
  167. package/dist/index-DRdBmZ2-.js +0 -1
  168. package/dist/invoices-CjBHfDXp.js +0 -1
  169. package/dist/paymentMethods-A-5SBmy1.js +0 -1
  170. package/dist/registry-SwmYGFn7.js +0 -1
  171. package/dist/subscriptions-DSi93KpN.js +0 -1
  172. package/dist/useCustomer-DkrBNt5f.mjs +0 -45
  173. package/dist/useCustomer-fK-w7ifj.js +0 -1
  174. package/dist/useIncrementalLoading-BK6N8sYW.js +0 -1
  175. package/dist/useInvoicesList-CIFGVsDj.js +0 -1
  176. package/dist/useWalletBalanceItems-DreHuOra.mjs +0 -105
  177. package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
  178. /package/dist/{sprite-DZD704h3-CCc3Mz1x.js → sprite.svg.es-CCc3Mz1x.js} +0 -0
  179. /package/dist/{sprite-DZD704h3-DZD704h3.mjs → sprite.svg.es-DZD704h3.mjs} +0 -0
@@ -1,7 +1,10 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, createSlots, withCtx, createElementBlock, Fragment, renderList, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { b as useIntl, d as _sfc_main$1g, g as _sfc_main$2, _ as _sfc_main$2$1, l as _sfc_main$2H } from "./component-DI3AxwdD.mjs";
3
- import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
4
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-zSXRlc2S.mjs";
2
+ import { _ as _sfc_main$2 } from "./Section.vue.es-3-H1pUTB.mjs";
3
+ import { _ as _sfc_main$3 } from "./PaymentMethod.vue.es-nXZoQjG3.mjs";
4
+ import { _ as _sfc_main$5 } from "./Button.vue.es-6sBk5tBL.mjs";
5
+ import { a as useIntl, _ as _sfc_main$4 } from "./component-dpA83LIN.mjs";
6
+ import { _ as _sfc_main$6 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
7
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
5
8
  const _hoisted_1 = {
6
9
  key: 0,
7
10
  class: "flex flex-col gap-2"
@@ -21,7 +24,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
21
24
  const { $t } = useIntl();
22
25
  const hasPaymentMethods = computed(() => props.paymentMethods.length > 0);
23
26
  return (_ctx, _cache) => {
24
- return openBlock(), createBlock(unref(_sfc_main$1g), {
27
+ return openBlock(), createBlock(unref(_sfc_main$2), {
25
28
  "no-spacing": "",
26
29
  "no-border": "",
27
30
  title: unref($t)(
@@ -36,18 +39,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
36
39
  default: withCtx(() => [
37
40
  hasPaymentMethods.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
38
41
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.paymentMethods, (paymentMethod) => {
39
- return openBlock(), createBlock(unref(_sfc_main$1g), {
42
+ return openBlock(), createBlock(unref(_sfc_main$2), {
40
43
  key: paymentMethod.id
41
44
  }, {
42
45
  default: withCtx(() => [
43
- createVNode(unref(_sfc_main$2), { "payment-method": paymentMethod }, null, 8, ["payment-method"])
46
+ createVNode(unref(_sfc_main$3), { "payment-method": paymentMethod }, null, 8, ["payment-method"])
44
47
  ]),
45
48
  _: 2
46
49
  }, 1024);
47
50
  }), 128))
48
- ])) : (openBlock(), createBlock(unref(_sfc_main$1g), { key: 1 }, {
51
+ ])) : (openBlock(), createBlock(unref(_sfc_main$2), { key: 1 }, {
49
52
  default: withCtx(() => [
50
- createVNode(unref(_sfc_main$2$1), {
53
+ createVNode(unref(_sfc_main$4), {
51
54
  variant: "body-sm",
52
55
  shade: "lighter",
53
56
  "no-spacing": ""
@@ -61,7 +64,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
61
64
  ]),
62
65
  _: 1
63
66
  }),
64
- __props.showAddButton ? (openBlock(), createBlock(unref(_sfc_main$2H), {
67
+ __props.showAddButton ? (openBlock(), createBlock(unref(_sfc_main$5), {
65
68
  key: 0,
66
69
  class: "mt-4 w-full",
67
70
  variant: "outline",
@@ -88,7 +91,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
88
91
  __props.showViewAllButton ? {
89
92
  name: "right",
90
93
  fn: withCtx(() => [
91
- createVNode(unref(_sfc_main$2H), {
94
+ createVNode(unref(_sfc_main$5), {
92
95
  size: "sm",
93
96
  variant: "ghost",
94
97
  color: "gray",
@@ -127,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
127
130
  const { dispatchAction } = useActionDispatchProvider();
128
131
  return (_ctx, _cache) => {
129
132
  var _a, _b;
130
- return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
133
+ return __props.isLoading ? (openBlock(), createBlock(_sfc_main$6, {
131
134
  key: 0,
132
135
  variant: "section",
133
136
  class: "h-72",
@@ -0,0 +1 @@
1
+ const s=require("vue"),e=s.defineComponent({__name:"Divider",props:{spacing:{default:"md"}},setup:e=>(n,a)=>(s.openBlock(),s.createElementBlock("hr",{class:s.normalizeClass({"my-1":"xxs"===e.spacing,"my-2":"xs"===e.spacing,"my-4":"sm"===e.spacing,"my-6":"md"===e.spacing,"my-8":"lg"===e.spacing,"my-10":"xl"===e.spacing})},null,2))});exports._sfc_main=e;
@@ -0,0 +1,24 @@
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "Divider",
4
+ props: {
5
+ spacing: { default: "md" }
6
+ },
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ return openBlock(), createElementBlock("hr", {
10
+ class: normalizeClass({
11
+ "my-1": __props.spacing === "xxs",
12
+ "my-2": __props.spacing === "xs",
13
+ "my-4": __props.spacing === "sm",
14
+ "my-6": __props.spacing === "md",
15
+ "my-8": __props.spacing === "lg",
16
+ "my-10": __props.spacing === "xl"
17
+ })
18
+ }, null, 2);
19
+ };
20
+ }
21
+ });
22
+ export {
23
+ _sfc_main as _
24
+ };
@@ -0,0 +1,72 @@
1
+ import { computed, defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
+ import { _ as _sfc_main$1 } from "./component-dpA83LIN.mjs";
3
+ const dividerBaseClasses = "relative translate-y-1/2 top-1/2 border-t border-gray-100";
4
+ const useDividerTextClasses = (props) => {
5
+ const leftDividerClasses = computed(() => {
6
+ let classes = `${dividerBaseClasses}`;
7
+ if (props.hasOuterDivider && props.textPosition === "left") {
8
+ classes += " w-2";
9
+ } else {
10
+ classes += " grow";
11
+ }
12
+ return classes;
13
+ });
14
+ const rightDividerClasses = computed(() => {
15
+ let classes = `${dividerBaseClasses}`;
16
+ if (props.hasOuterDivider && props.textPosition === "right") {
17
+ classes += " w-2";
18
+ } else {
19
+ classes += " grow";
20
+ }
21
+ return classes;
22
+ });
23
+ return { leftDividerClasses, rightDividerClasses };
24
+ };
25
+ const _sfc_main = /* @__PURE__ */ defineComponent({
26
+ __name: "DividerText",
27
+ props: {
28
+ spacing: { default: "none" },
29
+ textPosition: { default: "left" },
30
+ hasOuterDivider: { type: Boolean, default: false },
31
+ text: {}
32
+ },
33
+ setup(__props) {
34
+ const props = __props;
35
+ const { leftDividerClasses, rightDividerClasses } = useDividerTextClasses(props);
36
+ return (_ctx, _cache) => {
37
+ return openBlock(), createElementBlock("div", {
38
+ class: normalizeClass(["flex gap-2", {
39
+ "my-2": __props.spacing === "xs",
40
+ "my-4": __props.spacing === "sm",
41
+ "my-6": __props.spacing === "md",
42
+ "my-8": __props.spacing === "lg",
43
+ "my-10": __props.spacing === "xl"
44
+ }])
45
+ }, [
46
+ __props.textPosition === "left" && __props.hasOuterDivider || ["center", "right"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
47
+ key: 0,
48
+ class: normalizeClass(unref(leftDividerClasses))
49
+ }, null, 2)) : createCommentVNode("", true),
50
+ renderSlot(_ctx.$slots, "default", {}, () => [
51
+ createVNode(unref(_sfc_main$1), {
52
+ tag: "span",
53
+ "no-spacing": "",
54
+ variant: "caps-heading"
55
+ }, {
56
+ default: withCtx(() => [
57
+ createTextVNode(toDisplayString(__props.text), 1)
58
+ ]),
59
+ _: 1
60
+ })
61
+ ]),
62
+ __props.textPosition === "right" && __props.hasOuterDivider || ["center", "left"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
63
+ key: 1,
64
+ class: normalizeClass(unref(rightDividerClasses))
65
+ }, null, 2)) : createCommentVNode("", true)
66
+ ], 2);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ _sfc_main as _
72
+ };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./component-ZRZIt3ZW.js"),i="relative translate-y-1/2 top-1/2 border-t border-gray-100",s=e.defineComponent({__name:"DividerText",props:{spacing:{default:"none"},textPosition:{default:"left"},hasOuterDivider:{type:Boolean,default:!1},text:{}},setup(s){const r=s,{leftDividerClasses:n,rightDividerClasses:a}=(t=>({leftDividerClasses:e.computed(()=>{let e=`${i}`;return t.hasOuterDivider&&"left"===t.textPosition?e+=" w-2":e+=" grow",e}),rightDividerClasses:e.computed(()=>{let e=`${i}`;return t.hasOuterDivider&&"right"===t.textPosition?e+=" w-2":e+=" grow",e})}))(r);return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex gap-2",{"my-2":"xs"===s.spacing,"my-4":"sm"===s.spacing,"my-6":"md"===s.spacing,"my-8":"lg"===s.spacing,"my-10":"xl"===s.spacing}])},["left"===s.textPosition&&s.hasOuterDivider||["center","right"].includes(s.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n))},null,2)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default",{},()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span","no-spacing":"",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.text),1)]),_:1})]),"right"===s.textPosition&&s.hasOuterDivider||["center","left"].includes(s.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a))},null,2)):e.createCommentVNode("",!0)],2))}});exports._sfc_main=s;
@@ -0,0 +1,30 @@
1
+ import { defineComponent, computed, openBlock, createBlock, mergeProps } from "vue";
2
+ import { _ as _sfc_main$1 } from "./Alert.vue.es-DsJ1ckRU.mjs";
3
+ import { a as useIntl } from "./component-dpA83LIN.mjs";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "ErrorNotification",
6
+ props: {
7
+ title: {},
8
+ description: {}
9
+ },
10
+ setup(__props) {
11
+ const { formatMessage } = useIntl();
12
+ const props = __props;
13
+ const title = computed(
14
+ () => props.title ?? formatMessage({
15
+ defaultMessage: "Something went wrong",
16
+ id: "error_notification.default_error_message",
17
+ description: "The default message to display"
18
+ })
19
+ );
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
22
+ type: "danger",
23
+ title: title.value
24
+ }, _ctx.$attrs), null, 16, ["title"]);
25
+ };
26
+ }
27
+ });
28
+ export {
29
+ _sfc_main as _
30
+ };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./Alert.vue.es-DMPvSykx.js"),r=require("./component-ZRZIt3ZW.js"),o=e.defineComponent({__name:"ErrorNotification",props:{title:{},description:{}},setup(o){const{formatMessage:s}=r.useIntl(),i=o,n=e.computed(()=>i.title??s({defaultMessage:"Something went wrong",id:"error_notification.default_error_message",description:"The default message to display"}));return(r,o)=>(e.openBlock(),e.createBlock(t._sfc_main,e.mergeProps({type:"danger",title:n.value},r.$attrs),null,16,["title"]))}});exports._sfc_main=o;
@@ -0,0 +1,46 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot, createTextVNode, createCommentVNode } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "FormMessage",
4
+ props: {
5
+ message: {},
6
+ variant: { default: "error" },
7
+ capitalizeFirstLetter: { type: Boolean, default: true }
8
+ },
9
+ setup(__props) {
10
+ const props = __props;
11
+ const classNames = computed(() => {
12
+ let result = "text-xs";
13
+ if (props.variant === "default") {
14
+ result += " text-slate-400";
15
+ }
16
+ if (props.variant === "error") {
17
+ result += " text-red-600";
18
+ }
19
+ if (props.variant === "warning") {
20
+ result += " text-yellow-600";
21
+ }
22
+ if (props.capitalizeFirstLetter) {
23
+ result += " first-letter:capitalize";
24
+ }
25
+ return result;
26
+ });
27
+ return (_ctx, _cache) => {
28
+ return typeof __props.message === "object" && !("value" in __props.message) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.message, ({ $uid, $message }) => {
29
+ return openBlock(), createElementBlock("p", {
30
+ key: $uid,
31
+ class: normalizeClass(classNames.value)
32
+ }, toDisplayString($message), 3);
33
+ }), 128)) : __props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("p", {
34
+ key: 1,
35
+ class: normalizeClass(classNames.value)
36
+ }, [
37
+ renderSlot(_ctx.$slots, "default", {}, () => [
38
+ createTextVNode(toDisplayString(__props.message), 1)
39
+ ])
40
+ ], 2)) : createCommentVNode("", true);
41
+ };
42
+ }
43
+ });
44
+ export {
45
+ _sfc_main as _
46
+ };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=e.defineComponent({__name:"FormMessage",props:{message:{},variant:{default:"error"},capitalizeFirstLetter:{type:Boolean,default:!0}},setup(t){const a=t,s=e.computed(()=>{let e="text-xs";return"default"===a.variant&&(e+=" text-slate-400"),"error"===a.variant&&(e+=" text-red-600"),"warning"===a.variant&&(e+=" text-yellow-600"),a.capitalizeFirstLetter&&(e+=" first-letter:capitalize"),e});return(a,r)=>"object"!=typeof t.message||"value"in t.message?t.message||a.$slots.default?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(s.value)},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.message,({$uid:t,$message:a})=>(e.openBlock(),e.createElementBlock("p",{key:t,class:e.normalizeClass(s.value)},e.toDisplayString(a),3))),128))}});exports._sfc_main=t;