vlite3 1.1.2 → 1.1.4

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 (87) hide show
  1. package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -1
  2. package/components/AttachmentsList/AttachmentsList.vue.js +237 -163
  3. package/components/Avatar.vue.js +1 -1
  4. package/components/AvatarUploader/AvatarUploader.vue.js +40 -37
  5. package/components/Button.vue.js +30 -28
  6. package/components/Carousel/Carousel.vue.d.ts +2 -2
  7. package/components/CategoryManager/CategoryManager.vue.d.ts +10 -2
  8. package/components/CategoryManager/CategoryManager.vue.js +137 -118
  9. package/components/CategoryManager/CategoryNode.vue.d.ts +2 -0
  10. package/components/CategoryManager/CategoryNode.vue.js +93 -88
  11. package/components/Chat/ChatBubble.vue.js +22 -22
  12. package/components/CheckBox.vue.js +29 -28
  13. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  14. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  15. package/components/ConfirmationModal.vue.js +30 -28
  16. package/components/CopyButton.vue.d.ts +50 -0
  17. package/components/CopyButton.vue.js +69 -0
  18. package/components/CopyButton.vue2.js +4 -0
  19. package/components/DataTable/DataTable.vue.js +44 -44
  20. package/components/DatePicker.vue.js +41 -35
  21. package/components/DateRangePicker.vue.js +18 -17
  22. package/components/Dropdown/Dropdown.vue.d.ts +3 -0
  23. package/components/Dropdown/Dropdown.vue.js +117 -115
  24. package/components/Dropdown/DropdownBooleanItem.vue.js +16 -15
  25. package/components/Dropdown/DropdownItem.vue.js +21 -20
  26. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  27. package/components/Dropdown/DropdownMenu.vue2.js +13 -12
  28. package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
  29. package/components/Dropdown/DropdownTrigger.vue.js +10 -6
  30. package/components/Dropdown/composables/useDropdownHydration.d.ts +2 -0
  31. package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -0
  32. package/components/Dropdown/composables/useDropdownSelection.js +46 -31
  33. package/components/FilePicker/FilePicker.vue.js +93 -90
  34. package/components/Form/CustomFields.vue.js +2 -2
  35. package/components/Form/Form.vue.js +2 -2
  36. package/components/Form/Form.vue2.js +68 -64
  37. package/components/Form/FormField.vue.js +204 -148
  38. package/components/Form/FormFields.vue.js +2 -2
  39. package/components/Form/FormFields.vue2.js +28 -27
  40. package/components/Form/types.d.ts +2 -2
  41. package/components/Form/utils/form.utils.d.ts +3 -3
  42. package/components/Form/utils/form.utils.js +37 -37
  43. package/components/Input.vue.js +64 -62
  44. package/components/Invoice/Invoice.vue.js +9 -7
  45. package/components/Invoice/InvoiceTotals.vue.d.ts +14 -0
  46. package/components/Invoice/InvoiceTotals.vue.js +86 -0
  47. package/components/Invoice/InvoiceTotals.vue2.js +4 -0
  48. package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -1
  49. package/components/Invoice/InvoiceVariant1.vue.js +194 -207
  50. package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -1
  51. package/components/Invoice/InvoiceVariant2.vue.js +109 -118
  52. package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -1
  53. package/components/Invoice/InvoiceVariant3.vue.js +157 -167
  54. package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -1
  55. package/components/Invoice/InvoiceVariant4.vue.js +192 -202
  56. package/components/Invoice/index.d.ts +1 -0
  57. package/components/Invoice/types.d.ts +22 -0
  58. package/components/Masonry/Masonry.vue.d.ts +1 -1
  59. package/components/Modal.vue.js +1 -1
  60. package/components/Modal.vue2.js +60 -54
  61. package/components/MultiSelect/MultiSelect.vue.js +47 -46
  62. package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +2 -0
  63. package/components/NavbarCommandPalette.vue.js +1 -1
  64. package/components/NumberInput.vue.js +2 -2
  65. package/components/NumberInput.vue2.js +121 -116
  66. package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
  67. package/components/SidePanel.vue.js +2 -2
  68. package/components/SidePanel.vue2.js +58 -52
  69. package/components/Stats/StatItem.vue.js +96 -91
  70. package/components/Stats/types.d.ts +1 -0
  71. package/components/Switch.vue.d.ts +6 -1
  72. package/components/Switch.vue.js +61 -24
  73. package/components/TagInput/TagInput.vue.d.ts +187 -0
  74. package/components/TagInput/TagInput.vue.js +113 -0
  75. package/components/TagInput/TagInput.vue2.js +4 -0
  76. package/components/TagInput/index.d.ts +1 -0
  77. package/components/Textarea.vue.js +19 -18
  78. package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
  79. package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +19 -16
  80. package/core/config.d.ts +36 -0
  81. package/index.d.ts +2 -0
  82. package/index.js +130 -124
  83. package/package.json +1 -1
  84. package/style.css +616 -1
  85. package/types/button.d.ts +1 -1
  86. package/types/styles.d.ts +1 -0
  87. package/utils/functions.js +9 -9
@@ -1,166 +1,168 @@
1
- import { defineComponent as b, computed as g, openBlock as s, createElementBlock as o, normalizeStyle as h, normalizeClass as n, createElementVNode as a, createVNode as u, createCommentVNode as r, toDisplayString as l, unref as m, Fragment as f, renderList as p } from "vue";
2
- import i from "../Price/Price.vue.js";
3
- import k from "../DateTime/DateTime.vue.js";
4
- import w from "../Barcode/Barcode.vue.js";
5
- import I from "../QRCode/QRCode.vue.js";
6
- import v from "../Avatar.vue.js";
1
+ import { defineComponent as b, computed as v, openBlock as o, createElementBlock as c, normalizeStyle as h, normalizeClass as l, createElementVNode as a, createVNode as u, createCommentVNode as n, toDisplayString as s, unref as i, Fragment as g, renderList as k } from "vue";
2
+ import m from "../Price/Price.vue.js";
3
+ import w from "../DateTime/DateTime.vue.js";
4
+ import I from "../Barcode/Barcode.vue.js";
5
+ import _ from "../QRCode/QRCode.vue.js";
6
+ import p from "../Avatar.vue.js";
7
7
  import j from "../StatusChip/StatusChip.vue.js";
8
- const z = {
8
+ import z from "./InvoiceTotals.vue.js";
9
+ const N = {
9
10
  key: 0,
10
11
  class: "flex justify-center mb-2"
11
- }, N = { key: 0 }, V = { key: 1 }, B = { key: 2 }, D = { key: 3 }, $ = { class: "flex justify-between items-center" }, C = { class: "font-semibold text-foreground" }, L = {
12
+ }, V = { key: 0 }, $ = { key: 1 }, B = { key: 2 }, D = { key: 3 }, C = { class: "flex justify-between items-center" }, L = { class: "text-muted-foreground font-medium" }, T = { class: "font-semibold text-foreground" }, S = {
12
13
  key: 0,
13
14
  class: "flex justify-between items-center"
14
- }, T = {
15
+ }, q = { class: "text-muted-foreground font-medium" }, E = {
15
16
  key: 1,
16
17
  class: "flex justify-between items-center"
17
- }, S = { class: "font-semibold text-foreground" }, q = {
18
+ }, A = { class: "text-muted-foreground font-medium" }, F = { class: "font-semibold text-foreground" }, K = {
18
19
  key: 2,
19
20
  class: "flex justify-between items-center"
20
- }, E = { class: "flex items-start gap-2.5" }, A = { class: "flex-1 min-w-0" }, F = { class: "flex justify-between items-start gap-2" }, G = ["title"], K = {
21
+ }, O = { class: "text-muted-foreground font-medium" }, R = { class: "flex items-start gap-2.5" }, U = { class: "flex-1 min-w-0" }, G = { class: "flex justify-between items-start gap-2" }, H = ["title"], J = {
21
22
  key: 0,
22
23
  class: "text-muted-foreground"
23
- }, O = {
24
+ }, M = {
24
25
  key: 1,
25
26
  class: "text-success font-medium flex items-center gap-0.5"
26
- }, R = { key: 0 }, U = { class: "flex flex-row flex-wrap items-center justify-center gap-3" }, H = {
27
+ }, P = { key: 0 }, Q = { class: "flex flex-row flex-wrap items-center justify-center gap-3" }, W = {
27
28
  key: 0,
28
- class: "p-1 bg-white border border-border rounded"
29
- }, J = {
29
+ class: "bg-white"
30
+ }, X = {
30
31
  key: 1,
31
- class: "bg-white p-1 rounded border border-border overflow-hidden"
32
- }, ee = /* @__PURE__ */ b({
32
+ class: "bg-white overflow-hidden"
33
+ }, ne = /* @__PURE__ */ b({
33
34
  __name: "InvoiceVariant2",
34
35
  props: {
35
36
  data: {},
36
37
  compact: { type: Boolean, default: !1 },
37
- displayBarcodeValue: { type: Boolean, default: !1 }
38
+ displayBarcodeValue: { type: Boolean, default: !1 },
39
+ labels: {}
38
40
  },
39
41
  setup(t) {
40
- const y = t, e = g(() => y.data);
41
- return (M, c) => (s(), o("div", {
42
- class: n(["v-invoice-v2 bg-background text-foreground border border-border mx-auto print:max-w-[300px] font-sans tracking-tight", t.compact ? "max-w-xs" : "max-w-sm sm:max-w-md"]),
42
+ const x = t, e = v(() => x.data), r = v(() => x.labels || {});
43
+ return (Y, f) => (o(), c("div", {
44
+ class: l(["v-invoice-v2 bg-background text-foreground border border-border mx-auto print:max-w-[300px] font-sans tracking-tight", t.compact ? "max-w-xs" : "max-w-sm sm:max-w-md"]),
43
45
  style: h({
44
46
  "--text-sm": t.compact ? "12px" : "13.5px",
45
47
  "--text-xs": t.compact ? "9.5px" : "10px"
46
48
  })
47
49
  }, [
48
50
  a("div", {
49
- class: n(["text-center", t.compact ? "p-4 pb-3" : "p-6 pb-4"])
51
+ class: l(["text-center", t.compact ? "p-4 pb-3" : "p-6 pb-4"])
50
52
  }, [
51
- e.value.brandLogo ? (s(), o("div", z, [
52
- u(v, {
53
+ e.value.brandLogo ? (o(), c("div", N, [
54
+ u(p, {
53
55
  src: e.value.brandLogo,
54
56
  alt: e.value.brandName,
55
- class: n(t.compact ? "h-9 w-9" : "h-12 w-12"),
57
+ class: l(t.compact ? "h-9 w-9" : "h-12 w-12"),
56
58
  rounded: "md"
57
59
  }, null, 8, ["src", "alt", "class"])
58
- ])) : r("", !0),
59
- e.value.brandName ? (s(), o("h2", {
60
+ ])) : n("", !0),
61
+ e.value.brandName ? (o(), c("h2", {
60
62
  key: 1,
61
- class: n(["font-bold uppercase tracking-widest text-foreground", t.compact ? "text-base" : "text-xl"])
62
- }, l(e.value.brandName), 3)) : r("", !0),
63
- e.value.companyInfo ? (s(), o("div", {
63
+ class: l(["font-bold uppercase tracking-widest text-foreground", t.compact ? "text-base" : "text-xl"])
64
+ }, s(e.value.brandName), 3)) : n("", !0),
65
+ e.value.companyInfo ? (o(), c("div", {
64
66
  key: 2,
65
- class: n(["text-muted-foreground space-y-0.5 mt-1", t.compact ? "text-xs" : "text-sm"])
67
+ class: l(["text-muted-foreground space-y-0.5 mt-1", t.compact ? "text-xs" : "text-sm"])
66
68
  }, [
67
- e.value.companyInfo.address ? (s(), o("p", N, l(e.value.companyInfo.address), 1)) : r("", !0),
68
- e.value.companyInfo.city || e.value.companyInfo.state ? (s(), o("p", V, l(e.value.companyInfo.city) + " " + l(e.value.companyInfo.state) + " " + l(e.value.companyInfo.zip), 1)) : r("", !0),
69
- e.value.companyInfo.phone ? (s(), o("p", B, l(e.value.companyInfo.phone), 1)) : r("", !0),
70
- e.value.companyInfo.taxId ? (s(), o("p", D, "VAT: " + l(e.value.companyInfo.taxId), 1)) : r("", !0)
71
- ], 2)) : r("", !0)
69
+ e.value.companyInfo.address ? (o(), c("p", V, s(e.value.companyInfo.address), 1)) : n("", !0),
70
+ e.value.companyInfo.city || e.value.companyInfo.state ? (o(), c("p", $, s(e.value.companyInfo.city) + " " + s(e.value.companyInfo.state) + " " + s(e.value.companyInfo.zip), 1)) : n("", !0),
71
+ e.value.companyInfo.phone ? (o(), c("p", B, s(e.value.companyInfo.phone), 1)) : n("", !0),
72
+ e.value.companyInfo.taxId ? (o(), c("p", D, s(r.value.taxId || "VAT") + ": " + s(e.value.companyInfo.taxId), 1)) : n("", !0)
73
+ ], 2)) : n("", !0)
72
74
  ], 2),
73
75
  a("div", {
74
- class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
76
+ class: l(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
75
77
  }, null, 2),
76
78
  a("div", {
77
- class: n(t.compact ? "px-4 py-2.5 space-y-1 text-xs" : "px-5 py-3.5 space-y-1.5 text-sm")
79
+ class: l(t.compact ? "px-4 py-2.5 space-y-1 text-xs" : "px-5 py-3.5 space-y-1.5 text-sm")
78
80
  }, [
79
- a("div", $, [
80
- c[0] || (c[0] = a("span", { class: "text-muted-foreground font-medium" }, "Receipt #", -1)),
81
- a("span", C, l(e.value.invoiceNumber), 1)
81
+ a("div", C, [
82
+ a("span", L, s(r.value.invoiceNumber || "Receipt #"), 1),
83
+ a("span", T, s(e.value.invoiceNumber), 1)
82
84
  ]),
83
- e.value.issuedDate ? (s(), o("div", L, [
84
- c[1] || (c[1] = a("span", { class: "text-muted-foreground font-medium" }, "Date", -1)),
85
- u(m(k), {
85
+ e.value.issuedDate ? (o(), c("div", S, [
86
+ a("span", q, s(r.value.issued || "Date"), 1),
87
+ u(i(w), {
86
88
  value: e.value.issuedDate,
87
89
  type: "dateTime",
88
90
  class: "font-medium text-foreground"
89
91
  }, null, 8, ["value"])
90
- ])) : r("", !0),
91
- e.value.customerInfo?.name ? (s(), o("div", T, [
92
- c[2] || (c[2] = a("span", { class: "text-muted-foreground font-medium" }, "Customer", -1)),
93
- a("span", S, l(e.value.customerInfo.name), 1)
94
- ])) : r("", !0),
95
- e.value.status ? (s(), o("div", q, [
96
- c[3] || (c[3] = a("span", { class: "text-muted-foreground font-medium" }, "Status", -1)),
92
+ ])) : n("", !0),
93
+ e.value.customerInfo?.name ? (o(), c("div", E, [
94
+ a("span", A, s(r.value.billedTo || "Customer"), 1),
95
+ a("span", F, s(e.value.customerInfo.name), 1)
96
+ ])) : n("", !0),
97
+ e.value.status ? (o(), c("div", K, [
98
+ a("span", O, s(r.value.status || "Status"), 1),
97
99
  u(j, {
98
100
  status: e.value.status,
99
101
  "hide-icon": "",
100
102
  size: "small"
101
103
  }, null, 8, ["status"])
102
- ])) : r("", !0)
104
+ ])) : n("", !0)
103
105
  ], 2),
104
106
  a("div", {
105
- class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
107
+ class: l(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
106
108
  }, null, 2),
107
109
  a("div", {
108
- class: n(t.compact ? "px-4 py-2.5" : "px-5 py-3.5")
110
+ class: l(t.compact ? "px-4 py-2.5" : "px-5 py-3.5")
109
111
  }, [
110
112
  a("div", {
111
- class: n(["flex justify-between font-semibold text-muted-foreground uppercase tracking-wider mb-2", t.compact ? "text-[10px]" : "text-xs"])
112
- }, [...c[4] || (c[4] = [
113
- a("span", null, "Item", -1),
114
- a("span", null, "Amount", -1)
115
- ])], 2),
113
+ class: l(["flex justify-between font-semibold text-muted-foreground uppercase tracking-wider mb-2", t.compact ? "text-[10px]" : "text-xs"])
114
+ }, [
115
+ a("span", null, s(r.value.item || "Item"), 1),
116
+ a("span", null, s(r.value.total || "Amount"), 1)
117
+ ], 2),
116
118
  a("div", {
117
- class: n(t.compact ? "space-y-2.5" : "space-y-3.5")
119
+ class: l(t.compact ? "space-y-2.5" : "space-y-3.5")
118
120
  }, [
119
- (s(!0), o(f, null, p(e.value.items, (d, x) => (s(), o("div", {
120
- key: d.id || x
121
+ (o(!0), c(g, null, k(e.value.items, (d, y) => (o(), c("div", {
122
+ key: d.id || y
121
123
  }, [
122
- a("div", E, [
123
- d.thumbnail ? (s(), o("div", {
124
+ a("div", R, [
125
+ d.thumbnail ? (o(), c("div", {
124
126
  key: 0,
125
- class: n(["shrink-0 overflow-hidden border border-border mt-0.5", t.compact ? "w-8 h-8 rounded" : "w-9 h-9 rounded-md"])
127
+ class: l(["shrink-0 overflow-hidden border border-border mt-0.5", t.compact ? "w-8 h-8 rounded" : "w-9 h-9 rounded-md"])
126
128
  }, [
127
- u(v, {
129
+ u(p, {
128
130
  src: d.thumbnail,
129
131
  alt: d.name,
130
132
  class: "w-full h-full",
131
133
  rounded: "sm"
132
134
  }, null, 8, ["src", "alt"])
133
- ], 2)) : r("", !0),
134
- a("div", A, [
135
- a("div", F, [
135
+ ], 2)) : n("", !0),
136
+ a("div", U, [
137
+ a("div", G, [
136
138
  a("span", {
137
- class: n(["font-semibold text-foreground truncate", t.compact ? "text-xs" : "text-sm"]),
139
+ class: l(["font-semibold text-foreground truncate", t.compact ? "text-xs" : "text-sm"]),
138
140
  title: d.name
139
- }, l(d.name), 11, G),
140
- u(m(i), {
141
+ }, s(d.name), 11, H),
142
+ u(i(m), {
141
143
  value: d.total,
142
- class: n(["shrink-0 font-bold text-foreground", t.compact ? "text-xs" : "text-sm"])
144
+ class: l(["shrink-0 font-bold text-foreground", t.compact ? "text-xs" : "text-sm"])
143
145
  }, null, 8, ["value", "class"])
144
146
  ]),
145
- d.sku ? (s(), o("div", {
147
+ d.sku ? (o(), c("div", {
146
148
  key: 0,
147
- class: n(["text-muted-foreground uppercase tracking-tight truncate mt-0.5", t.compact ? "text-[9px]" : "text-[10px]"])
148
- }, " SKU: " + l(d.sku), 3)) : r("", !0),
149
+ class: l(["text-muted-foreground uppercase tracking-tight truncate mt-0.5", t.compact ? "text-[9px]" : "text-[10px]"])
150
+ }, s(r.value.sku || "SKU") + ": " + s(d.sku), 3)) : n("", !0),
149
151
  a("div", {
150
- class: n(["text-muted-foreground flex flex-wrap gap-x-1.5 gap-y-0.5 mt-0.5", t.compact ? "text-[10px]" : "text-xs"])
152
+ class: l(["text-muted-foreground flex flex-wrap gap-x-1.5 gap-y-0.5 mt-0.5", t.compact ? "text-[10px]" : "text-xs"])
151
153
  }, [
152
- a("span", null, l(d.quantity) + " x", 1),
153
- u(m(i), {
154
+ a("span", null, s(d.quantity) + " x", 1),
155
+ u(i(m), {
154
156
  value: d.price
155
157
  }, null, 8, ["value"]),
156
- d.size ? (s(), o("span", K, "· " + l(d.size), 1)) : r("", !0),
157
- d.discount !== void 0 ? (s(), o("div", O, [
158
- c[5] || (c[5] = a("span", null, "· Disc:", -1)),
159
- u(m(i), {
158
+ d.size ? (o(), c("span", J, "· " + s(d.size), 1)) : n("", !0),
159
+ d.discount !== void 0 ? (o(), c("div", M, [
160
+ f[0] || (f[0] = a("span", null, "· Disc:", -1)),
161
+ u(i(m), {
160
162
  value: -d.discount
161
163
  }, null, 8, ["value"]),
162
- d.discountLabel ? (s(), o("span", R, "(" + l(d.discountLabel) + ")", 1)) : r("", !0)
163
- ])) : r("", !0)
164
+ d.discountLabel ? (o(), c("span", P, "(" + s(d.discountLabel) + ")", 1)) : n("", !0)
165
+ ])) : n("", !0)
164
166
  ], 2)
165
167
  ])
166
168
  ])
@@ -168,59 +170,48 @@ const z = {
168
170
  ], 2)
169
171
  ], 2),
170
172
  a("div", {
171
- class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
173
+ class: l(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
172
174
  }, null, 2),
175
+ u(z, {
176
+ totals: e.value.totals,
177
+ compact: t.compact,
178
+ variant: "Variant2"
179
+ }, null, 8, ["totals", "compact"]),
173
180
  a("div", {
174
- class: n(t.compact ? "px-4 py-2.5 space-y-1" : "px-5 py-3 space-y-1.5")
175
- }, [
176
- (s(!0), o(f, null, p(e.value.totals, (d, x) => (s(), o("div", {
177
- key: x,
178
- class: n([
179
- "flex justify-between items-center",
180
- d.isGrandTotal ? t.compact ? "mt-1.5 pt-1.5 border-t border-border font-bold text-foreground text-sm" : "mt-2 pt-2 border-t border-border font-bold text-foreground text-base" : t.compact ? "text-xs font-medium text-muted-foreground" : "text-sm font-medium text-muted-foreground"
181
- ])
182
- }, [
183
- a("span", null, l(d.label), 1),
184
- u(m(i), {
185
- value: d.value
186
- }, null, 8, ["value"])
187
- ], 2))), 128))
188
- ], 2),
189
- a("div", {
190
- class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
181
+ class: l(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
191
182
  }, null, 2),
192
183
  a("div", {
193
- class: n(t.compact ? "px-4 py-3 text-center space-y-3" : "px-5 py-4 text-center space-y-4")
184
+ class: l(t.compact ? "px-4 py-3 text-center space-y-3" : "px-5 py-4 text-center space-y-4")
194
185
  }, [
195
- a("div", U, [
196
- e.value.qrcode ? (s(), o("div", H, [
197
- u(m(I), {
186
+ a("div", Q, [
187
+ e.value.qrcode ? (o(), c("div", W, [
188
+ u(i(_), {
198
189
  value: e.value.qrcode,
199
190
  size: t.compact ? 48 : 64
200
191
  }, null, 8, ["value", "size"])
201
- ])) : r("", !0),
202
- e.value.barcode ? (s(), o("div", J, [
203
- u(m(w), {
192
+ ])) : n("", !0),
193
+ e.value.barcode ? (o(), c("div", X, [
194
+ u(i(I), {
204
195
  value: e.value.barcode,
205
196
  format: "CODE128",
206
197
  height: t.compact ? 24 : 32,
207
198
  width: t.compact ? 1 : 1.2,
208
199
  "display-value": t.displayBarcodeValue
209
200
  }, null, 8, ["value", "height", "width", "display-value"])
210
- ])) : r("", !0)
201
+ ])) : n("", !0)
211
202
  ]),
212
- e.value.notes ? (s(), o("div", {
203
+ e.value.notes ? (o(), c("div", {
213
204
  key: 0,
214
- class: n(["text-muted-foreground whitespace-pre-wrap", t.compact ? "text-[10px]" : "text-xs"])
215
- }, l(e.value.notes), 3)) : r("", !0),
216
- e.value.footerText ? (s(), o("div", {
205
+ class: l(["text-muted-foreground whitespace-pre-wrap", t.compact ? "text-[10px]" : "text-xs"])
206
+ }, s(e.value.notes), 3)) : n("", !0),
207
+ e.value.footerText ? (o(), c("div", {
217
208
  key: 1,
218
- class: n(["text-muted-foreground font-medium uppercase tracking-widest", t.compact ? "text-[9px]" : "text-[10px]"])
219
- }, l(e.value.footerText), 3)) : r("", !0)
209
+ class: l(["text-muted-foreground font-medium uppercase tracking-widest", t.compact ? "text-[9px]" : "text-[10px]"])
210
+ }, s(e.value.footerText), 3)) : n("", !0)
220
211
  ], 2)
221
212
  ], 6));
222
213
  }
223
214
  });
224
215
  export {
225
- ee as default
216
+ ne as default
226
217
  };
@@ -1,10 +1,12 @@
1
- import { InvoiceData } from './types';
1
+ import { InvoiceData, InvoiceLabels } from './types';
2
2
  type __VLS_Props = {
3
3
  data: InvoiceData;
4
4
  /** Reduces padding, spacing, and font sizes for print-friendly output */
5
5
  compact?: boolean;
6
6
  /** Toggles the display of the barcode text value underneath the bars */
7
7
  displayBarcodeValue?: boolean;
8
+ /** Custom text labels for static UI strings */
9
+ labels?: InvoiceLabels;
8
10
  };
9
11
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
12
  compact: boolean;