@prosync_solutions/ui 0.1.0

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 (79) hide show
  1. package/README.docx +0 -0
  2. package/README.md +129 -0
  3. package/dist/chunks/ProSidebarItem-CNJJi_zd.js +4 -0
  4. package/dist/chunks/ProSidebarItem-W3KGbpUN.js +1 -0
  5. package/dist/chunks/ProSpinner.vue_vue_type_script_setup_true_lang-C3WfTGch.js +661 -0
  6. package/dist/chunks/ProSpinner.vue_vue_type_script_setup_true_lang-g-x6G5qO.js +1 -0
  7. package/dist/components/ProAvatar/ProAvatar.vue.d.ts +14 -0
  8. package/dist/components/ProAvatar/index.d.ts +1 -0
  9. package/dist/components/ProBanner/ProBanner.vue.d.ts +40 -0
  10. package/dist/components/ProBanner/index.d.ts +1 -0
  11. package/dist/components/ProBreadcrumbs/ProBreadcrumbs.vue.d.ts +10 -0
  12. package/dist/components/ProBreadcrumbs/index.d.ts +1 -0
  13. package/dist/components/ProButton/ProButton.vue.d.ts +32 -0
  14. package/dist/components/ProButton/index.d.ts +1 -0
  15. package/dist/components/ProCard/ProCard.vue.d.ts +25 -0
  16. package/dist/components/ProCard/index.d.ts +1 -0
  17. package/dist/components/ProDivider/ProDivider.vue.d.ts +20 -0
  18. package/dist/components/ProDivider/index.d.ts +1 -0
  19. package/dist/components/ProDrawer/ProDrawer.vue.d.ts +33 -0
  20. package/dist/components/ProDrawer/index.d.ts +1 -0
  21. package/dist/components/ProEmpty/ProEmpty.vue.d.ts +25 -0
  22. package/dist/components/ProEmpty/index.d.ts +1 -0
  23. package/dist/components/ProFormField/ProFormField.vue.d.ts +19 -0
  24. package/dist/components/ProFormField/index.d.ts +1 -0
  25. package/dist/components/ProInput/ProInput.vue.d.ts +31 -0
  26. package/dist/components/ProInput/index.d.ts +1 -0
  27. package/dist/components/ProMenu/ProMenu.vue.d.ts +44 -0
  28. package/dist/components/ProMenu/index.d.ts +1 -0
  29. package/dist/components/ProModal/ProModal.vue.d.ts +33 -0
  30. package/dist/components/ProModal/index.d.ts +1 -0
  31. package/dist/components/ProPageHeader/ProPageHeader.vue.d.ts +26 -0
  32. package/dist/components/ProPageHeader/index.d.ts +1 -0
  33. package/dist/components/ProPagination/ProPagination.vue.d.ts +13 -0
  34. package/dist/components/ProPagination/index.d.ts +1 -0
  35. package/dist/components/ProSelect/ProSelect.vue.d.ts +22 -0
  36. package/dist/components/ProSelect/index.d.ts +1 -0
  37. package/dist/components/ProSidebar/ProSidebar.vue.d.ts +33 -0
  38. package/dist/components/ProSidebar/index.d.ts +1 -0
  39. package/dist/components/ProSidebarItem/ProSidebarItem.vue.d.ts +7 -0
  40. package/dist/components/ProSidebarItem/index.d.ts +1 -0
  41. package/dist/components/ProSkeleton/ProSkeleton.vue.d.ts +22 -0
  42. package/dist/components/ProSkeleton/index.d.ts +1 -0
  43. package/dist/components/ProSpinner/ProSpinner.vue.d.ts +10 -0
  44. package/dist/components/ProSpinner/index.d.ts +1 -0
  45. package/dist/components/ProStatisticCard/ProStatisticCard.vue.d.ts +17 -0
  46. package/dist/components/ProStatisticCard/index.d.ts +1 -0
  47. package/dist/components/ProStatusBadge/ProStatusBadge.vue.d.ts +6 -0
  48. package/dist/components/ProStatusBadge/index.d.ts +1 -0
  49. package/dist/components/ProTable/ProTable.vue.d.ts +19 -0
  50. package/dist/components/ProTable/index.d.ts +1 -0
  51. package/dist/components/ProTableCell/ProTableCell.vue.d.ts +16 -0
  52. package/dist/components/ProTableCell/index.d.ts +1 -0
  53. package/dist/components/ProTableRow/ProTableRow.vue.d.ts +29 -0
  54. package/dist/components/ProTableRow/index.d.ts +1 -0
  55. package/dist/components/ProTabs/ProTabs.vue.d.ts +27 -0
  56. package/dist/components/ProTabs/index.d.ts +1 -0
  57. package/dist/components/ProTag/ProTag.vue.d.ts +28 -0
  58. package/dist/components/ProTag/index.d.ts +1 -0
  59. package/dist/components/ProTextarea/ProTextarea.vue.d.ts +21 -0
  60. package/dist/components/ProTextarea/index.d.ts +1 -0
  61. package/dist/components/ProToast/ProToast.vue.d.ts +18 -0
  62. package/dist/components/ProToast/index.d.ts +1 -0
  63. package/dist/components/ProTooltip/ProTooltip.vue.d.ts +21 -0
  64. package/dist/components/ProTooltip/index.d.ts +1 -0
  65. package/dist/components/ProTopbar/ProTopbar.vue.d.ts +27 -0
  66. package/dist/components/ProTopbar/index.d.ts +1 -0
  67. package/dist/components/index.d.ts +30 -0
  68. package/dist/components/tier1/index.d.ts +12 -0
  69. package/dist/index.d.ts +6 -0
  70. package/dist/prosync-ui-tier1.js +36 -0
  71. package/dist/prosync-ui-tier1.umd.cjs +1 -0
  72. package/dist/prosync-ui.js +1034 -0
  73. package/dist/prosync-ui.umd.cjs +1 -0
  74. package/dist/tier1.d.ts +17 -0
  75. package/dist/types/index.d.ts +62 -0
  76. package/dist/ui.css +1 -0
  77. package/package.json +75 -0
  78. package/src/styles/tokens-tier1.css +80 -0
  79. package/src/styles/tokens.json +673 -0
@@ -0,0 +1,661 @@
1
+ import { defineComponent as m, computed as c, openBlock as s, createElementBlock as o, normalizeClass as u, createElementVNode as d, createCommentVNode as n, renderSlot as b, createBlock as x, resolveDynamicComponent as k, toDisplayString as g, createTextVNode as $, createVNode as v, unref as h, withCtx as w, mergeProps as V, Fragment as T, renderList as A, watch as j, onUnmounted as I, Transition as z, withModifiers as E } from "vue";
2
+ import { PhQuestion as S, PhSparkle as L, PhCaretDown as M, PhInfo as O, PhCheckCircle as D, PhWarning as R, PhX as C } from "@phosphor-icons/vue";
3
+ const N = ["disabled"], F = {
4
+ key: 0,
5
+ class: "inline-flex items-center mr-2"
6
+ }, H = {
7
+ key: 1,
8
+ class: "inline-flex items-center mr-2"
9
+ }, U = {
10
+ key: 2,
11
+ class: "inline-flex items-center ml-2"
12
+ }, $e = /* @__PURE__ */ m({
13
+ __name: "ProButton",
14
+ props: {
15
+ variant: { default: "primary" },
16
+ size: { default: "md" },
17
+ disabled: { type: Boolean, default: !1 },
18
+ loading: { type: Boolean, default: !1 }
19
+ },
20
+ emits: ["click"],
21
+ setup(e) {
22
+ const a = e, l = c(() => {
23
+ const r = "rounded-button font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 inline-flex items-center justify-center cursor-pointer", t = {
24
+ sm: "px-3 py-1.5 text-body-sm",
25
+ md: "px-4 py-2 text-body-sm",
26
+ lg: "px-6 py-3 text-body"
27
+ }, i = {
28
+ primary: "bg-brand-primary text-text-on-primary hover:bg-brand-primary-strong focus:ring-brand-primary disabled:bg-surface-disabled disabled:text-text-disabled disabled:cursor-not-allowed",
29
+ secondary: "bg-surface-gray-bg text-text-body hover:bg-surface-gray-bg-strong border border-border-border focus:ring-brand-primary disabled:bg-surface-disabled disabled:text-text-disabled disabled:cursor-not-allowed",
30
+ plain: "bg-transparent text-text-body hover:bg-surface-gray-bg border border-border-border focus:ring-brand-primary disabled:text-text-disabled disabled:cursor-not-allowed disabled:border-border-border",
31
+ danger: "bg-surface-error text-text-error hover:opacity-90 border border-border-error focus:ring-brand-primary disabled:bg-surface-disabled disabled:text-text-disabled disabled:cursor-not-allowed",
32
+ ghost: "bg-transparent text-brand-primary hover:bg-surface-gray-bg focus:ring-brand-primary disabled:text-text-disabled disabled:cursor-not-allowed"
33
+ };
34
+ return `${r} ${t[a.size]} ${i[a.variant]}`;
35
+ });
36
+ return (r, t) => (s(), o("button", {
37
+ class: u(l.value),
38
+ disabled: e.disabled || e.loading,
39
+ onClick: t[0] || (t[0] = (i) => r.$emit("click", i))
40
+ }, [
41
+ e.loading ? (s(), o("span", F, [...t[1] || (t[1] = [
42
+ d("svg", {
43
+ class: "animate-spin h-4 w-4 text-current",
44
+ xmlns: "http://www.w3.org/2000/svg",
45
+ fill: "none",
46
+ viewBox: "0 0 24 24"
47
+ }, [
48
+ d("circle", {
49
+ class: "opacity-25",
50
+ cx: "12",
51
+ cy: "12",
52
+ r: "10",
53
+ stroke: "currentColor",
54
+ "stroke-width": "4"
55
+ }),
56
+ d("path", {
57
+ class: "opacity-75",
58
+ fill: "currentColor",
59
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
60
+ })
61
+ ], -1)
62
+ ])])) : n("", !0),
63
+ r.$slots.iconLeft && !e.loading ? (s(), o("span", H, [
64
+ b(r.$slots, "iconLeft")
65
+ ])) : n("", !0),
66
+ b(r.$slots, "default"),
67
+ r.$slots.iconRight ? (s(), o("span", U, [
68
+ b(r.$slots, "iconRight")
69
+ ])) : n("", !0)
70
+ ], 10, N));
71
+ }
72
+ }), Q = {
73
+ key: 0,
74
+ class: "flex items-center justify-between border-b border-border-border px-6 py-4"
75
+ }, W = {
76
+ key: 0,
77
+ class: "flex items-center space-x-2"
78
+ }, X = {
79
+ key: 1,
80
+ class: "text-body-bold text-text-heading"
81
+ }, ke = /* @__PURE__ */ m({
82
+ __name: "ProCard",
83
+ props: {
84
+ title: {},
85
+ iconComponent: {},
86
+ padding: { default: "md" },
87
+ shadow: { type: Boolean, default: !0 }
88
+ },
89
+ setup(e) {
90
+ const a = e, l = c(() => {
91
+ const t = "bg-surface-sub-bg border border-border-border rounded-card flex flex-col", i = a.shadow ? "shadow-xs" : "";
92
+ return `${t} ${i}`;
93
+ }), r = c(() => ({
94
+ none: "",
95
+ sm: "p-3",
96
+ md: "p-6",
97
+ lg: "p-8"
98
+ })[a.padding]);
99
+ return (t, i) => (s(), o("div", {
100
+ class: u(l.value)
101
+ }, [
102
+ e.title || e.iconComponent || t.$slots.header ? (s(), o("div", Q, [
103
+ e.title || e.iconComponent ? (s(), o("div", W, [
104
+ e.iconComponent ? (s(), x(k(e.iconComponent), {
105
+ key: 0,
106
+ size: 24,
107
+ class: "text-icon-default-soft"
108
+ })) : n("", !0),
109
+ e.title ? (s(), o("p", X, g(e.title), 1)) : n("", !0)
110
+ ])) : n("", !0),
111
+ b(t.$slots, "header")
112
+ ])) : n("", !0),
113
+ d("div", {
114
+ class: u(r.value)
115
+ }, [
116
+ b(t.$slots, "default")
117
+ ], 2)
118
+ ], 2));
119
+ }
120
+ }), G = { class: "flex flex-col gap-1.5" }, J = {
121
+ key: 0,
122
+ class: "flex items-center gap-1"
123
+ }, K = ["for"], Y = {
124
+ key: 0,
125
+ class: "text-text-error"
126
+ }, Z = {
127
+ key: 0,
128
+ class: "group relative flex items-center"
129
+ }, _ = { class: "absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 bg-surface-dark-bg text-text-inverse text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10" }, ee = {
130
+ key: 1,
131
+ class: "flex items-center",
132
+ title: "Extracted by AI"
133
+ }, q = /* @__PURE__ */ m({
134
+ __name: "ProFormField",
135
+ props: {
136
+ label: {},
137
+ required: { type: Boolean },
138
+ infoText: {},
139
+ isAiExtracted: { type: Boolean },
140
+ inputId: {}
141
+ },
142
+ setup(e) {
143
+ return (a, l) => (s(), o("div", G, [
144
+ e.label ? (s(), o("div", J, [
145
+ d("label", {
146
+ for: e.inputId,
147
+ class: "text-caption text-text-body font-medium"
148
+ }, [
149
+ $(g(e.label) + " ", 1),
150
+ e.required ? (s(), o("span", Y, "*")) : n("", !0)
151
+ ], 8, K),
152
+ e.infoText ? (s(), o("div", Z, [
153
+ v(h(S), {
154
+ size: 14,
155
+ class: "text-icon-default-soft cursor-help"
156
+ }),
157
+ d("div", _, [
158
+ $(g(e.infoText) + " ", 1),
159
+ l[0] || (l[0] = d("div", { class: "absolute top-full left-1/2 -translate-x-1/2 border-4 border-transparent border-t-surface-dark-bg" }, null, -1))
160
+ ])
161
+ ])) : n("", !0),
162
+ e.isAiExtracted ? (s(), o("div", ee, [
163
+ v(h(L), {
164
+ size: 14,
165
+ class: "text-icon-info",
166
+ weight: "fill"
167
+ })
168
+ ])) : n("", !0)
169
+ ])) : n("", !0),
170
+ b(a.$slots, "default")
171
+ ]));
172
+ }
173
+ }), te = { class: "relative" }, se = ["id", "type", "value", "placeholder", "required"], re = {
174
+ key: 0,
175
+ class: "absolute left-3 top-1/2 -translate-y-1/2 text-icon-default-soft"
176
+ }, ze = /* @__PURE__ */ m({
177
+ inheritAttrs: !1,
178
+ __name: "ProInput",
179
+ props: {
180
+ modelValue: { default: "" },
181
+ label: {},
182
+ placeholder: {},
183
+ type: { default: "text" },
184
+ required: { type: Boolean, default: !1 },
185
+ infoText: {},
186
+ isAiExtracted: { type: Boolean, default: !1 },
187
+ id: {}
188
+ },
189
+ emits: ["update:modelValue"],
190
+ setup(e) {
191
+ const a = e, l = c(() => a.id || `input-${Math.random().toString(36).substr(2, 9)}`);
192
+ return (r, t) => (s(), x(q, {
193
+ label: e.label,
194
+ required: e.required,
195
+ "info-text": e.infoText,
196
+ "is-ai-extracted": e.isAiExtracted,
197
+ "input-id": l.value
198
+ }, {
199
+ default: w(() => [
200
+ d("div", te, [
201
+ d("input", V(r.$attrs, {
202
+ id: l.value,
203
+ type: e.type,
204
+ value: e.modelValue,
205
+ onInput: t[0] || (t[0] = (i) => r.$emit("update:modelValue", i.target.value)),
206
+ placeholder: e.placeholder,
207
+ required: e.required,
208
+ class: ["w-full px-3 py-1.5 border border-border-border rounded-lg bg-surface-sub-bg text-body text-text-body placeholder:text-text-disabled focus:ring-2 focus:ring-brand-primary focus:border-transparent outline-none transition-all disabled:bg-surface-gray-bg disabled:text-text-disabled disabled:cursor-not-allowed", [
209
+ { "pl-9": r.$slots.prefix },
210
+ r.$attrs.readonly !== void 0 && r.$attrs.readonly !== !1 && e.modelValue ? "!bg-surface-disabled" : ""
211
+ ]]
212
+ }), null, 16, se),
213
+ r.$slots.prefix ? (s(), o("div", re, [
214
+ b(r.$slots, "prefix")
215
+ ])) : n("", !0)
216
+ ])
217
+ ]),
218
+ _: 3
219
+ }, 8, ["label", "required", "info-text", "is-ai-extracted", "input-id"]));
220
+ }
221
+ }), ae = { class: "relative" }, le = ["id", "value", "required"], oe = {
222
+ key: 0,
223
+ value: "",
224
+ disabled: "",
225
+ selected: ""
226
+ }, ne = ["value"], ie = { class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-icon-default-soft" }, Ce = /* @__PURE__ */ m({
227
+ inheritAttrs: !1,
228
+ __name: "ProSelect",
229
+ props: {
230
+ modelValue: { default: "" },
231
+ options: { default: () => [] },
232
+ label: {},
233
+ placeholder: {},
234
+ required: { type: Boolean, default: !1 },
235
+ infoText: {},
236
+ isAiExtracted: { type: Boolean, default: !1 },
237
+ id: {}
238
+ },
239
+ emits: ["update:modelValue"],
240
+ setup(e) {
241
+ const a = e, l = c(() => a.id || `select-${Math.random().toString(36).substr(2, 9)}`), r = c(() => a.options.map((t) => typeof t == "string" ? { label: t, value: t } : t));
242
+ return (t, i) => (s(), x(q, {
243
+ label: e.label,
244
+ required: e.required,
245
+ "info-text": e.infoText,
246
+ "is-ai-extracted": e.isAiExtracted,
247
+ "input-id": l.value
248
+ }, {
249
+ default: w(() => [
250
+ d("div", ae, [
251
+ d("select", V(t.$attrs, {
252
+ id: l.value,
253
+ value: e.modelValue,
254
+ onChange: i[0] || (i[0] = (f) => t.$emit("update:modelValue", f.target.value)),
255
+ required: e.required,
256
+ class: ["w-full px-3 py-1.5 border border-border-border rounded-lg bg-surface-sub-bg text-body focus:ring-2 focus:ring-brand-primary focus:border-transparent outline-none transition-all appearance-none disabled:bg-surface-gray-bg disabled:text-text-disabled disabled:cursor-not-allowed", [
257
+ e.modelValue ? "text-text-body" : "text-text-placeholder"
258
+ ]]
259
+ }), [
260
+ e.placeholder ? (s(), o("option", oe, g(e.placeholder), 1)) : n("", !0),
261
+ (s(!0), o(T, null, A(r.value, (f) => (s(), o("option", {
262
+ key: f.value,
263
+ value: f.value
264
+ }, g(f.label), 9, ne))), 128))
265
+ ], 16, le),
266
+ d("div", ie, [
267
+ v(h(M), { size: 16 })
268
+ ])
269
+ ])
270
+ ]),
271
+ _: 1
272
+ }, 8, ["label", "required", "info-text", "is-ai-extracted", "input-id"]));
273
+ }
274
+ }), de = { class: "whitespace-nowrap" }, Ve = /* @__PURE__ */ m({
275
+ __name: "ProTag",
276
+ props: {
277
+ variant: { default: "secondary" },
278
+ label: { default: "" },
279
+ iconLeft: { default: null },
280
+ iconRight: { default: null }
281
+ },
282
+ setup(e) {
283
+ const a = e, l = c(() => ({
284
+ secondary: "bg-surface-gray-bg border-border-secondary text-text-body",
285
+ success: "bg-surface-success border-border-success text-text-success",
286
+ info: "bg-surface-info border-border-info text-text-info",
287
+ warn: "bg-surface-warn border-border-warn text-text-warn",
288
+ error: "bg-surface-error border-border-error text-text-error",
289
+ attention: "bg-surface-attention border-border-attention text-text-attention"
290
+ })[a.variant]);
291
+ return (r, t) => (s(), o("div", {
292
+ class: u([
293
+ "inline-flex items-center justify-center gap-1 border border-solid px-1.5 py-0.5 rounded-[6px] text-tag transition-colors",
294
+ l.value
295
+ ])
296
+ }, [
297
+ b(r.$slots, "icon-left", {}, () => [
298
+ e.iconLeft ? (s(), x(k(e.iconLeft), {
299
+ key: 0,
300
+ size: 12,
301
+ class: "shrink-0"
302
+ })) : n("", !0)
303
+ ]),
304
+ d("span", de, [
305
+ b(r.$slots, "default", {}, () => [
306
+ $(g(e.label), 1)
307
+ ])
308
+ ]),
309
+ b(r.$slots, "icon-right", {}, () => [
310
+ e.iconRight ? (s(), x(k(e.iconRight), {
311
+ key: 0,
312
+ size: 12,
313
+ class: "shrink-0"
314
+ })) : n("", !0)
315
+ ])
316
+ ], 2));
317
+ }
318
+ }), ue = /* @__PURE__ */ m({
319
+ __name: "ProToast",
320
+ props: {
321
+ type: { default: "information" },
322
+ message: {},
323
+ modelValue: { type: Boolean },
324
+ autoDismiss: { type: Boolean, default: !0 },
325
+ duration: { default: 3e3 }
326
+ },
327
+ emits: ["update:modelValue"],
328
+ setup(e, { emit: a }) {
329
+ const l = e, r = a;
330
+ let t = null;
331
+ const i = c(() => ({
332
+ information: "border-border-info",
333
+ success: "border-border-success",
334
+ warn: "border-border-warn",
335
+ error: "border-border-error"
336
+ })[l.type]), f = c(() => ({
337
+ information: "bg-surface-info",
338
+ success: "bg-surface-success",
339
+ warn: "bg-surface-warn",
340
+ error: "bg-surface-error"
341
+ })[l.type]), y = c(() => ({
342
+ information: "text-icon-info",
343
+ success: "text-icon-success",
344
+ warn: "text-icon-warn",
345
+ error: "text-icon-error"
346
+ })[l.type]), B = c(() => ({
347
+ information: "text-text-info",
348
+ success: "text-text-success",
349
+ warn: "text-text-warn",
350
+ error: "text-text-error"
351
+ })[l.type]), P = () => {
352
+ t && (clearTimeout(t), t = null), r("update:modelValue", !1);
353
+ };
354
+ return j(() => l.modelValue, (p) => {
355
+ p && l.autoDismiss && (t && clearTimeout(t), t = setTimeout(() => {
356
+ r("update:modelValue", !1), t = null;
357
+ }, l.duration));
358
+ }, { immediate: !0 }), I(() => {
359
+ t && clearTimeout(t);
360
+ }), (p, pe) => (s(), x(z, { name: "slide-fade" }, {
361
+ default: w(() => [
362
+ e.modelValue ? (s(), o("div", {
363
+ key: 0,
364
+ class: u([i.value, "fixed top-4 right-4 z-[100] w-[320px] backdrop-blur-md bg-white/50 border rounded-xl p-4 flex items-center gap-2.5 shadow-xl"])
365
+ }, [
366
+ d("div", {
367
+ class: u([f.value, "w-9 h-9 rounded-lg flex items-center justify-center shrink-0"])
368
+ }, [
369
+ e.type === "information" ? (s(), x(h(O), {
370
+ key: 0,
371
+ size: 20,
372
+ weight: "regular",
373
+ class: u(y.value)
374
+ }, null, 8, ["class"])) : e.type === "success" ? (s(), x(h(D), {
375
+ key: 1,
376
+ size: 20,
377
+ weight: "light",
378
+ class: u(y.value)
379
+ }, null, 8, ["class"])) : e.type === "warn" ? (s(), x(h(R), {
380
+ key: 2,
381
+ size: 20,
382
+ weight: "light",
383
+ class: u(y.value)
384
+ }, null, 8, ["class"])) : e.type === "error" ? (s(), x(h(C), {
385
+ key: 3,
386
+ size: 20,
387
+ weight: "light",
388
+ class: u(y.value)
389
+ }, null, 8, ["class"])) : n("", !0)
390
+ ], 2),
391
+ d("p", {
392
+ class: u([B.value, "flex-1 text-body-sm-bold text-left break-words"])
393
+ }, g(e.message), 3),
394
+ d("button", {
395
+ onClick: P,
396
+ class: "w-8 h-8 rounded-md flex items-center justify-center shrink-0 hover:bg-black/5 transition-colors",
397
+ "aria-label": "Close notification"
398
+ }, [
399
+ v(h(C), {
400
+ size: 16,
401
+ class: "text-icon-default"
402
+ })
403
+ ])
404
+ ], 2)) : n("", !0)
405
+ ]),
406
+ _: 1
407
+ }));
408
+ }
409
+ }), ce = (e, a) => {
410
+ const l = e.__vccOpts || e;
411
+ for (const [r, t] of a)
412
+ l[r] = t;
413
+ return l;
414
+ }, qe = /* @__PURE__ */ ce(ue, [["__scopeId", "data-v-9b57d7a3"]]), fe = {
415
+ key: 0,
416
+ class: "flex items-center justify-between border-b border-border-border px-6 py-4"
417
+ }, be = { class: "text-body-bold text-text-heading" }, xe = { class: "flex-1 overflow-y-auto px-6 py-4" }, me = {
418
+ key: 1,
419
+ class: "border-t border-border-border px-6 py-4"
420
+ }, Be = /* @__PURE__ */ m({
421
+ __name: "ProModal",
422
+ props: {
423
+ modelValue: { type: Boolean },
424
+ title: { default: "" },
425
+ size: { default: "md" },
426
+ showClose: { type: Boolean, default: !0 },
427
+ closeOnOverlay: { type: Boolean, default: !0 }
428
+ },
429
+ emits: ["update:modelValue"],
430
+ setup(e, { emit: a }) {
431
+ const l = e, r = a, t = {
432
+ sm: "w-full max-w-sm max-h-[80vh]",
433
+ md: "w-full max-w-lg max-h-[80vh]",
434
+ lg: "w-full max-w-2xl max-h-[85vh]",
435
+ xl: "w-full max-w-4xl max-h-[90vh]",
436
+ full: "w-[95vw] h-[95vh]"
437
+ };
438
+ function i() {
439
+ r("update:modelValue", !1);
440
+ }
441
+ function f() {
442
+ l.closeOnOverlay && i();
443
+ }
444
+ return (y, B) => (s(), x(z, { name: "modal" }, {
445
+ default: w(() => [
446
+ e.modelValue ? (s(), o("div", {
447
+ key: 0,
448
+ class: "fixed inset-0 bg-surface-dark-bg/60 flex items-center justify-center z-50",
449
+ onClick: E(f, ["self"])
450
+ }, [
451
+ v(z, { name: "modal-panel" }, {
452
+ default: w(() => [
453
+ e.modelValue ? (s(), o("div", {
454
+ key: 0,
455
+ class: u(["bg-surface-sub-bg rounded-card shadow-xl relative flex flex-col", t])
456
+ }, [
457
+ e.title || y.$slots.header || e.showClose ? (s(), o("div", fe, [
458
+ b(y.$slots, "header", {}, () => [
459
+ d("p", be, g(e.title), 1)
460
+ ]),
461
+ e.showClose ? (s(), o("button", {
462
+ key: 0,
463
+ onClick: i,
464
+ class: "text-icon-default-soft hover:text-icon-default transition-colors p-1 rounded-md hover:bg-surface-gray-bg",
465
+ "aria-label": "Close"
466
+ }, [
467
+ v(h(C), { size: 20 })
468
+ ])) : n("", !0)
469
+ ])) : n("", !0),
470
+ d("div", xe, [
471
+ b(y.$slots, "default")
472
+ ]),
473
+ y.$slots.footer ? (s(), o("div", me, [
474
+ b(y.$slots, "footer")
475
+ ])) : n("", !0)
476
+ ], 2)) : n("", !0)
477
+ ]),
478
+ _: 3
479
+ })
480
+ ])) : n("", !0)
481
+ ]),
482
+ _: 3
483
+ }));
484
+ }
485
+ }), ye = ["id", "value", "placeholder", "required", "rows"], Pe = /* @__PURE__ */ m({
486
+ inheritAttrs: !1,
487
+ __name: "ProTextarea",
488
+ props: {
489
+ modelValue: { default: "" },
490
+ label: {},
491
+ placeholder: {},
492
+ required: { type: Boolean, default: !1 },
493
+ infoText: {},
494
+ isAiExtracted: { type: Boolean, default: !1 },
495
+ id: {},
496
+ rows: { default: 4 }
497
+ },
498
+ emits: ["update:modelValue"],
499
+ setup(e) {
500
+ const a = e, l = c(() => a.id || `textarea-${Math.random().toString(36).substr(2, 9)}`);
501
+ return (r, t) => (s(), x(q, {
502
+ label: e.label,
503
+ required: e.required,
504
+ "info-text": e.infoText,
505
+ "is-ai-extracted": e.isAiExtracted,
506
+ "input-id": l.value
507
+ }, {
508
+ default: w(() => [
509
+ d("textarea", V(r.$attrs, {
510
+ id: l.value,
511
+ value: e.modelValue,
512
+ onInput: t[0] || (t[0] = (i) => r.$emit("update:modelValue", i.target.value)),
513
+ placeholder: e.placeholder,
514
+ required: e.required,
515
+ rows: e.rows,
516
+ class: ["w-full px-3 py-2 border border-border-border rounded-lg bg-surface-sub-bg text-body text-text-body placeholder:text-text-disabled focus:ring-2 focus:ring-brand-primary focus:border-transparent outline-none transition-all resize-y disabled:bg-surface-gray-bg disabled:text-text-disabled disabled:cursor-not-allowed", [
517
+ r.$attrs.readonly !== void 0 && r.$attrs.readonly !== !1 && e.modelValue ? "!bg-surface-disabled" : ""
518
+ ]]
519
+ }), null, 16, ye)
520
+ ]),
521
+ _: 1
522
+ }, 8, ["label", "required", "info-text", "is-ai-extracted", "input-id"]));
523
+ }
524
+ }), ge = ["src", "alt"], Te = /* @__PURE__ */ m({
525
+ __name: "ProAvatar",
526
+ props: {
527
+ src: { default: "" },
528
+ alt: { default: "Avatar" },
529
+ name: { default: "" },
530
+ size: { default: "md" }
531
+ },
532
+ setup(e) {
533
+ const a = e, l = c(() => a.name ? a.name.split(" ").map((f) => f.charAt(0)).join("").toUpperCase().slice(0, 2) : "?"), r = c(() => ({
534
+ xs: "w-6 h-6",
535
+ sm: "w-8 h-8",
536
+ md: "w-10 h-10",
537
+ lg: "w-12 h-12",
538
+ xl: "w-16 h-16"
539
+ })[a.size]), t = c(() => ({
540
+ xs: "text-[10px]",
541
+ sm: "text-caption",
542
+ md: "text-body-sm",
543
+ lg: "text-body",
544
+ xl: "text-h3"
545
+ })[a.size]), i = c(() => a.src ? "bg-surface-gray-bg" : "bg-brand-primary");
546
+ return (f, y) => (s(), o("div", {
547
+ class: u(["rounded-full overflow-hidden inline-flex items-center justify-center shrink-0 border border-border-border", r.value, i.value])
548
+ }, [
549
+ e.src ? (s(), o("img", {
550
+ key: 0,
551
+ src: e.src,
552
+ alt: e.alt,
553
+ class: "w-full h-full object-cover"
554
+ }, null, 8, ge)) : (s(), o("span", {
555
+ key: 1,
556
+ class: u(["font-semibold text-text-on-primary", t.value])
557
+ }, g(l.value), 3))
558
+ ], 2));
559
+ }
560
+ }), Ae = /* @__PURE__ */ m({
561
+ __name: "ProDivider",
562
+ props: {
563
+ direction: { default: "horizontal" },
564
+ text: { default: "" }
565
+ },
566
+ setup(e) {
567
+ return (a, l) => (s(), o("div", {
568
+ class: u([
569
+ e.direction === "horizontal" ? "flex items-center w-full my-4" : "inline-flex flex-col items-center h-full mx-4"
570
+ ]),
571
+ role: "separator"
572
+ }, [
573
+ d("div", {
574
+ class: u([
575
+ "bg-border-border",
576
+ e.direction === "horizontal" ? "flex-1 h-px" : "flex-1 w-px"
577
+ ])
578
+ }, null, 2),
579
+ a.$slots.default || e.text ? (s(), o("span", {
580
+ key: 0,
581
+ class: u([
582
+ "text-caption text-text-disabled",
583
+ e.direction === "horizontal" ? "px-3" : "py-2"
584
+ ])
585
+ }, [
586
+ b(a.$slots, "default", {}, () => [
587
+ $(g(e.text), 1)
588
+ ])
589
+ ], 2)) : n("", !0),
590
+ a.$slots.default || e.text ? (s(), o("div", {
591
+ key: 1,
592
+ class: u([
593
+ "bg-border-border",
594
+ e.direction === "horizontal" ? "flex-1 h-px" : "flex-1 w-px"
595
+ ])
596
+ }, null, 2)) : n("", !0)
597
+ ], 2));
598
+ }
599
+ }), he = {
600
+ key: 0,
601
+ class: "ml-2 text-body-sm text-text-subtitle"
602
+ }, je = /* @__PURE__ */ m({
603
+ __name: "ProSpinner",
604
+ props: {
605
+ size: { default: "md" },
606
+ text: { default: "" }
607
+ },
608
+ setup(e) {
609
+ const a = e, l = c(() => ({
610
+ sm: "",
611
+ md: "",
612
+ lg: ""
613
+ })[a.size]), r = c(() => ({
614
+ sm: "h-4 w-4",
615
+ md: "h-6 w-6",
616
+ lg: "h-8 w-8"
617
+ })[a.size]);
618
+ return (t, i) => (s(), o("div", {
619
+ class: u(["inline-flex items-center justify-center", l.value]),
620
+ role: "status",
621
+ "aria-label": "Loading"
622
+ }, [
623
+ (s(), o("svg", {
624
+ class: u(["animate-spin text-brand-primary", r.value]),
625
+ xmlns: "http://www.w3.org/2000/svg",
626
+ fill: "none",
627
+ viewBox: "0 0 24 24"
628
+ }, [...i[0] || (i[0] = [
629
+ d("circle", {
630
+ class: "opacity-25",
631
+ cx: "12",
632
+ cy: "12",
633
+ r: "10",
634
+ stroke: "currentColor",
635
+ "stroke-width": "4"
636
+ }, null, -1),
637
+ d("path", {
638
+ class: "opacity-75",
639
+ fill: "currentColor",
640
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
641
+ }, null, -1)
642
+ ])], 2)),
643
+ e.text ? (s(), o("span", he, g(e.text), 1)) : n("", !0)
644
+ ], 2));
645
+ }
646
+ });
647
+ export {
648
+ qe as P,
649
+ $e as _,
650
+ ce as a,
651
+ Ve as b,
652
+ Te as c,
653
+ ke as d,
654
+ Ae as e,
655
+ q as f,
656
+ ze as g,
657
+ Be as h,
658
+ Ce as i,
659
+ je as j,
660
+ Pe as k
661
+ };