@treeal/ds 0.1.1 → 0.1.2

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/dist/assets/style.css +1 -1
  2. package/dist/components/Select/Select.d.ts +24 -0
  3. package/dist/components/Select/Select.d.ts.map +1 -0
  4. package/dist/components/Select/index.d.ts +3 -0
  5. package/dist/components/Select/index.d.ts.map +1 -0
  6. package/dist/components/Tab/Tab.d.ts +22 -0
  7. package/dist/components/Tab/Tab.d.ts.map +1 -0
  8. package/dist/components/Tab/index.d.ts +3 -0
  9. package/dist/components/Tab/index.d.ts.map +1 -0
  10. package/dist/components/index.d.ts +4 -0
  11. package/dist/components/index.d.ts.map +1 -1
  12. package/dist/index.cjs.js +1 -1
  13. package/dist/index.cjs11.js +1 -1
  14. package/dist/index.cjs12.js +1 -1
  15. package/dist/index.cjs13.js +1 -1
  16. package/dist/index.cjs13.js.map +1 -1
  17. package/dist/index.cjs14.js +1 -1
  18. package/dist/index.cjs14.js.map +1 -1
  19. package/dist/index.cjs15.js +1 -1
  20. package/dist/index.cjs15.js.map +1 -1
  21. package/dist/index.cjs16.js +1 -1
  22. package/dist/index.cjs16.js.map +1 -1
  23. package/dist/index.cjs17.js +1 -1
  24. package/dist/index.cjs19.js +1 -1
  25. package/dist/index.cjs20.js +1 -1
  26. package/dist/index.cjs21.js +1 -1
  27. package/dist/index.cjs22.js +1 -1
  28. package/dist/index.cjs24.js +1 -1
  29. package/dist/index.cjs25.js +2 -0
  30. package/dist/index.cjs25.js.map +1 -0
  31. package/dist/index.cjs26.js +2 -0
  32. package/dist/index.cjs26.js.map +1 -0
  33. package/dist/index.cjs27.js +2 -0
  34. package/dist/index.cjs27.js.map +1 -0
  35. package/dist/index.cjs28.js +2 -0
  36. package/dist/index.cjs28.js.map +1 -0
  37. package/dist/index.cjs5.js +1 -1
  38. package/dist/index.cjs6.js +1 -1
  39. package/dist/index.cjs7.js +1 -1
  40. package/dist/index.cjs8.js +1 -1
  41. package/dist/index.cjs9.js +1 -1
  42. package/dist/index.esm.js +15 -11
  43. package/dist/index.esm.js.map +1 -1
  44. package/dist/index.esm11.js +1 -1
  45. package/dist/index.esm12.js +1 -1
  46. package/dist/index.esm13.js +58 -84
  47. package/dist/index.esm13.js.map +1 -1
  48. package/dist/index.esm14.js +83 -212
  49. package/dist/index.esm14.js.map +1 -1
  50. package/dist/index.esm15.js +35 -23
  51. package/dist/index.esm15.js.map +1 -1
  52. package/dist/index.esm16.js +219 -39
  53. package/dist/index.esm16.js.map +1 -1
  54. package/dist/index.esm17.js +38 -30
  55. package/dist/index.esm17.js.map +1 -1
  56. package/dist/index.esm19.js +102 -60
  57. package/dist/index.esm19.js.map +1 -1
  58. package/dist/index.esm20.js +22 -20
  59. package/dist/index.esm20.js.map +1 -1
  60. package/dist/index.esm21.js +20 -102
  61. package/dist/index.esm21.js.map +1 -1
  62. package/dist/index.esm22.js +60 -22
  63. package/dist/index.esm22.js.map +1 -1
  64. package/dist/index.esm24.js +22 -48
  65. package/dist/index.esm24.js.map +1 -1
  66. package/dist/index.esm25.js +52 -0
  67. package/dist/index.esm25.js.map +1 -0
  68. package/dist/index.esm26.js +34 -0
  69. package/dist/index.esm26.js.map +1 -0
  70. package/dist/index.esm27.js +26 -0
  71. package/dist/index.esm27.js.map +1 -0
  72. package/dist/index.esm28.js +16 -0
  73. package/dist/index.esm28.js.map +1 -0
  74. package/dist/index.esm5.js +1 -1
  75. package/dist/index.esm6.js +1 -1
  76. package/dist/index.esm7.js +1 -1
  77. package/dist/index.esm8.js +1 -1
  78. package/dist/index.esm9.js +1 -1
  79. package/package.json +1 -1
@@ -1,42 +1,222 @@
1
- const t = "_alert_p4b5i_21", e = "_typeDefault_p4b5i_36", n = "_typeInfo_p4b5i_37", _ = "_typeSuccess_p4b5i_38", i = "_typeWarning_p4b5i_39", o = "_typeError_p4b5i_40", s = "_iconSlot_p4b5i_44", c = "_textContent_p4b5i_54", l = "_title_p4b5i_63", p = "_titleDefault_p4b5i_72", r = "_titleInfo_p4b5i_73", a = "_titleSuccess_p4b5i_74", b = "_titleWarning_p4b5i_75", y = "_titleError_p4b5i_76", f = "_message_p4b5i_78", u = "_rightSlot_p4b5i_90", g = "_actionBtn_p4b5i_101", S = "_closeBtn_p4b5i_127", B = {
2
- alert: t,
3
- typeDefault: e,
4
- typeInfo: n,
5
- typeSuccess: _,
6
- typeWarning: i,
7
- typeError: o,
8
- iconSlot: s,
9
- textContent: c,
10
- title: l,
11
- titleDefault: p,
12
- titleInfo: r,
13
- titleSuccess: a,
14
- titleWarning: b,
15
- titleError: y,
16
- message: f,
17
- rightSlot: u,
18
- actionBtn: g,
19
- closeBtn: S
20
- };
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { useRef as L, useState as w } from "react";
3
+ import r from "./index.esm23.js";
4
+ const y = () => /* @__PURE__ */ a("svg", { viewBox: "0 0 12 12", width: "12", height: "12", "aria-hidden": "true", children: [
5
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "fileGrad", x1: "0%", y1: "100%", x2: "100%", y2: "0%", children: [
6
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#2970FF" }),
7
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#0040C1" })
8
+ ] }) }),
9
+ /* @__PURE__ */ e(
10
+ "path",
11
+ {
12
+ fill: "url(#fileGrad)",
13
+ d: "M2 0h5.5L10 2.5V12H2V0zm5 0v3h3L7 0zM3 5h6v1H3V5zm0 2h6v1H3V7zm0 2h4v1H3V9z"
14
+ }
15
+ )
16
+ ] }), b = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 12 12", width: "12", height: "12", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8.707.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414L9.414 5.1 6.9 2.586 8.707.293zM0 9.5V12h2.5l7-7L7 2.5l-7 7zM1.5 10.5v-.793l5.5-5.5.793.793-5.5 5.5H1.5z" }) }), D = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 12 12", width: "12", height: "12", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6 2C3.27 2 1 4 1 6s2.27 4 5 4 5-2 5-4-2.27-4-5-4zm0 7a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-5a2 2 0 1 0 0 4 2 2 0 0 0 0-4z" }) }), I = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 12 12", width: "12", height: "12", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M4 1V0h4v1h3v1H1V1h3zM2 3h8l-.8 8H2.8L2 3zm2 1v6h1V4H4zm2 0v6h1V4H6z" }) }), W = () => /* @__PURE__ */ a("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", "aria-hidden": "true", children: [
17
+ /* @__PURE__ */ e(
18
+ "rect",
19
+ {
20
+ x: "18",
21
+ y: "10",
22
+ width: "10",
23
+ height: "13",
24
+ rx: "1.5",
25
+ fill: "#DBE8FF",
26
+ stroke: "#B2C9FF",
27
+ strokeWidth: "0.5",
28
+ transform: "rotate(12 18 10)"
29
+ }
30
+ ),
31
+ /* @__PURE__ */ e(
32
+ "rect",
33
+ {
34
+ x: "4",
35
+ y: "10",
36
+ width: "10",
37
+ height: "13",
38
+ rx: "1.5",
39
+ fill: "#DBE8FF",
40
+ stroke: "#B2C9FF",
41
+ strokeWidth: "0.5",
42
+ transform: "rotate(-12 4 10)"
43
+ }
44
+ ),
45
+ /* @__PURE__ */ e("rect", { x: "10", y: "7", width: "12", height: "16", rx: "1.5", fill: "#FFFFFF", stroke: "#B2C9FF", strokeWidth: "1" }),
46
+ /* @__PURE__ */ e("path", { d: "M13 12h6M13 15h6M13 18h4", stroke: "#B2C9FF", strokeWidth: "1", strokeLinecap: "round" }),
47
+ /* @__PURE__ */ e("circle", { cx: "23", cy: "23", r: "5", fill: "#2970FF" }),
48
+ /* @__PURE__ */ e("path", { d: "M23 26v-6M20.5 22.5L23 20l2.5 2.5", stroke: "#FFF", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
49
+ ] }), H = () => /* @__PURE__ */ a("svg", { width: "96", height: "64", viewBox: "0 0 96 64", fill: "none", "aria-hidden": "true", children: [
50
+ /* @__PURE__ */ a("g", { transform: "rotate(15 70 35)", children: [
51
+ /* @__PURE__ */ e("rect", { x: "55", y: "18", width: "28", height: "36", rx: "3", fill: "#DBE8FF", stroke: "#B2C9FF", strokeWidth: "1" }),
52
+ /* @__PURE__ */ e("path", { d: "M61 28h16M61 34h16M61 40h10", stroke: "#B2C9FF", strokeWidth: "1.5", strokeLinecap: "round" })
53
+ ] }),
54
+ /* @__PURE__ */ a("g", { transform: "rotate(-15 26 35)", children: [
55
+ /* @__PURE__ */ e("rect", { x: "13", y: "18", width: "28", height: "36", rx: "3", fill: "#DBE8FF", stroke: "#B2C9FF", strokeWidth: "1" }),
56
+ /* @__PURE__ */ e("path", { d: "M19 28h16M19 34h16M19 40h10", stroke: "#B2C9FF", strokeWidth: "1.5", strokeLinecap: "round" })
57
+ ] }),
58
+ /* @__PURE__ */ e("rect", { x: "30", y: "8", width: "36", height: "48", rx: "3", fill: "#FFFFFF", stroke: "#B2C9FF", strokeWidth: "1.5" }),
59
+ /* @__PURE__ */ e("path", { d: "M38 22h20M38 30h20M38 38h14", stroke: "#B2C9FF", strokeWidth: "1.5", strokeLinecap: "round" }),
60
+ /* @__PURE__ */ e("circle", { cx: "76", cy: "50", r: "10", fill: "#2970FF" }),
61
+ /* @__PURE__ */ e("path", { d: "M76 55v-10M71 48l5-5 5 5", stroke: "#FFF", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
62
+ ] });
63
+ function V({ file: t, size: n, onEdit: s, onPreview: o, onRemove: l }) {
64
+ const h = t.state === "loading" || t.indicator === "loader", c = n === "LG" && t.indicator !== "loader";
65
+ return /* @__PURE__ */ a(
66
+ "div",
67
+ {
68
+ className: [
69
+ r.fileItem,
70
+ n === "LG" ? r.fileItemLg : r.fileItemMd
71
+ ].join(" "),
72
+ children: [
73
+ /* @__PURE__ */ e("div", { className: r.fileBadge, children: /* @__PURE__ */ e(y, {}) }),
74
+ /* @__PURE__ */ a("div", { className: r.fileContent, children: [
75
+ /* @__PURE__ */ a("div", { className: r.fileHeader, children: [
76
+ /* @__PURE__ */ a("div", { className: r.fileTexts, children: [
77
+ /* @__PURE__ */ e("p", { className: r.fileName, children: t.name }),
78
+ /* @__PURE__ */ e("p", { className: r.fileSize, children: t.size })
79
+ ] }),
80
+ h ? /* @__PURE__ */ e("div", { className: r.spinner, role: "status", "aria-label": "Uploading…" }) : /* @__PURE__ */ a("div", { className: r.actions, children: [
81
+ /* @__PURE__ */ e(
82
+ "button",
83
+ {
84
+ className: r.actionBtn,
85
+ onClick: () => s == null ? void 0 : s(t.id),
86
+ "aria-label": `Edit ${t.name}`,
87
+ type: "button",
88
+ children: /* @__PURE__ */ e(b, {})
89
+ }
90
+ ),
91
+ /* @__PURE__ */ e(
92
+ "button",
93
+ {
94
+ className: r.actionBtn,
95
+ onClick: () => o == null ? void 0 : o(t.id),
96
+ "aria-label": `Preview ${t.name}`,
97
+ type: "button",
98
+ children: /* @__PURE__ */ e(D, {})
99
+ }
100
+ ),
101
+ /* @__PURE__ */ e(
102
+ "button",
103
+ {
104
+ className: r.actionBtn,
105
+ onClick: () => l == null ? void 0 : l(t.id),
106
+ "aria-label": `Remove ${t.name}`,
107
+ type: "button",
108
+ children: /* @__PURE__ */ e(I, {})
109
+ }
110
+ )
111
+ ] })
112
+ ] }),
113
+ c && /* @__PURE__ */ a("div", { className: r.progressRow, children: [
114
+ /* @__PURE__ */ e("div", { className: r.progressTrack, children: /* @__PURE__ */ e(
115
+ "div",
116
+ {
117
+ className: r.progressFill,
118
+ style: { width: `${Math.min(100, Math.max(0, t.progress))}%` },
119
+ role: "progressbar",
120
+ "aria-valuenow": t.progress,
121
+ "aria-valuemin": 0,
122
+ "aria-valuemax": 100
123
+ }
124
+ ) }),
125
+ /* @__PURE__ */ a("p", { className: r.progressLabel, children: [
126
+ t.progress,
127
+ "%"
128
+ ] })
129
+ ] })
130
+ ] })
131
+ ]
132
+ }
133
+ );
134
+ }
135
+ function $({
136
+ size: t = "LG",
137
+ type: n = "multiple",
138
+ status: s = "default",
139
+ files: o = [],
140
+ onDrop: l,
141
+ onRemove: h,
142
+ onEdit: c,
143
+ onPreview: u,
144
+ accept: f,
145
+ className: v
146
+ }) {
147
+ const m = L(null), [k, p] = w(!1), M = (i) => {
148
+ i.preventDefault(), p(!0);
149
+ }, x = (i) => {
150
+ i.preventDefault(), p(!1);
151
+ }, N = (i) => {
152
+ i.preventDefault(), p(!1);
153
+ const d = Array.from(i.dataTransfer.files);
154
+ d.length && (l == null || l(d));
155
+ }, B = (i) => {
156
+ const d = Array.from(i.target.files ?? []);
157
+ d.length && (l == null || l(d)), i.target.value = "";
158
+ }, g = () => {
159
+ var i;
160
+ return (i = m.current) == null ? void 0 : i.click();
161
+ }, z = n === "single" && s === "active" && o.length > 0, C = [
162
+ r.dropzone,
163
+ t === "MD" ? r.dropzoneMd : r.dropzoneLg,
164
+ k ? r.dropzoneDragging : ""
165
+ ].filter(Boolean).join(" "), F = n === "multiple" ? "Drop your files here, or" : "Drop your file here, or";
166
+ return /* @__PURE__ */ a("div", { className: [r.wrapper, v].filter(Boolean).join(" "), children: [
167
+ /* @__PURE__ */ e(
168
+ "input",
169
+ {
170
+ ref: m,
171
+ type: "file",
172
+ multiple: n === "multiple",
173
+ accept: f,
174
+ onChange: B,
175
+ style: { display: "none" },
176
+ "aria-hidden": "true",
177
+ tabIndex: -1
178
+ }
179
+ ),
180
+ !z && /* @__PURE__ */ a(
181
+ "div",
182
+ {
183
+ className: C,
184
+ onClick: g,
185
+ onDragOver: M,
186
+ onDragLeave: x,
187
+ onDrop: N,
188
+ role: "button",
189
+ tabIndex: 0,
190
+ "aria-label": `${F} browse`,
191
+ onKeyDown: (i) => {
192
+ (i.key === " " || i.key === "Enter") && g();
193
+ },
194
+ children: [
195
+ t === "MD" ? /* @__PURE__ */ e("div", { className: r.dropzoneIconMd, children: /* @__PURE__ */ e(W, {}) }) : /* @__PURE__ */ e("div", { className: r.dropzoneIconLg, children: /* @__PURE__ */ e(H, {}) }),
196
+ /* @__PURE__ */ a("div", { className: r.dropzoneContent, children: [
197
+ /* @__PURE__ */ a("div", { className: r.dropzoneTitleRow, children: [
198
+ /* @__PURE__ */ e("p", { className: r.dropzoneTitle, children: F }),
199
+ /* @__PURE__ */ e("span", { className: r.dropzoneBrowse, "aria-hidden": "true", children: "browse" })
200
+ ] }),
201
+ /* @__PURE__ */ e("p", { className: r.dropzoneSubtitle, children: "JPG, PNG, PDF (Max 800×400px – 2Mo)" })
202
+ ] })
203
+ ]
204
+ }
205
+ ),
206
+ s === "active" && o.length > 0 && /* @__PURE__ */ e("div", { className: r.fileList, children: o.map((i) => /* @__PURE__ */ e(
207
+ V,
208
+ {
209
+ file: i,
210
+ size: t,
211
+ onEdit: c,
212
+ onPreview: u,
213
+ onRemove: h
214
+ },
215
+ i.id
216
+ )) })
217
+ ] });
218
+ }
21
219
  export {
22
- g as actionBtn,
23
- t as alert,
24
- S as closeBtn,
25
- B as default,
26
- s as iconSlot,
27
- f as message,
28
- u as rightSlot,
29
- c as textContent,
30
- l as title,
31
- p as titleDefault,
32
- y as titleError,
33
- r as titleInfo,
34
- a as titleSuccess,
35
- b as titleWarning,
36
- e as typeDefault,
37
- o as typeError,
38
- n as typeInfo,
39
- _ as typeSuccess,
40
- i as typeWarning
220
+ $ as Upload
41
221
  };
42
222
  //# sourceMappingURL=index.esm16.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm16.js","sources":["../components/Upload/Upload.tsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport styles from './Upload.module.css';\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport type UploadSize = 'MD' | 'LG';\nexport type UploadType = 'single' | 'multiple';\nexport type UploadStatus = 'default' | 'active';\nexport type UploadFileState = 'loading' | 'loaded' | 'error';\nexport type UploadIndicator = 'loader' | 'progress-bar';\n\nexport interface UploadFile {\n id: string;\n name: string;\n size: string;\n /** 0–100 */\n progress: number;\n state: UploadFileState;\n /** 'loader' shows spinner · 'progress-bar' shows progress (LG only) */\n indicator?: UploadIndicator;\n}\n\nexport interface UploadProps {\n size?: UploadSize;\n type?: UploadType;\n /** 'default' = drop area only · 'active' = files listed */\n status?: UploadStatus;\n files?: UploadFile[];\n onDrop?: (files: File[]) => void;\n onRemove?: (id: string) => void;\n onEdit?: (id: string) => void;\n onPreview?: (id: string) => void;\n /** Native accept attribute, e.g. \".pdf,.png,.jpg\" */\n accept?: string;\n /** Max file size in bytes */\n maxSize?: number;\n className?: string;\n}\n\n// ─── SVG icons (inline, no external dependency) ──────────────────────────────\n\nconst IconFile = () => (\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" aria-hidden=\"true\">\n <defs>\n <linearGradient id=\"fileGrad\" x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\">\n {/* Figma: linear-gradient(63.88deg, #2970FF 0.2%, #0040C1 99.99%) */}\n <stop offset=\"0%\" stopColor=\"#2970FF\" />\n <stop offset=\"100%\" stopColor=\"#0040C1\" />\n </linearGradient>\n </defs>\n <path\n fill=\"url(#fileGrad)\"\n d=\"M2 0h5.5L10 2.5V12H2V0zm5 0v3h3L7 0zM3 5h6v1H3V5zm0 2h6v1H3V7zm0 2h4v1H3V9z\"\n />\n </svg>\n);\n\nconst IconPen = () => (\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M8.707.293a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414L9.414 5.1 6.9 2.586 8.707.293zM0 9.5V12h2.5l7-7L7 2.5l-7 7zM1.5 10.5v-.793l5.5-5.5.793.793-5.5 5.5H1.5z\" />\n </svg>\n);\n\nconst IconEye = () => (\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M6 2C3.27 2 1 4 1 6s2.27 4 5 4 5-2 5-4-2.27-4-5-4zm0 7a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-5a2 2 0 1 0 0 4 2 2 0 0 0 0-4z\" />\n </svg>\n);\n\nconst IconTrash = () => (\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M4 1V0h4v1h3v1H1V1h3zM2 3h8l-.8 8H2.8L2 3zm2 1v6h1V4H4zm2 0v6h1V4H6z\" />\n </svg>\n);\n\n// SVG illustration for MD drop zone (32×32 stacked files)\nconst DropIconMd = () => (\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" aria-hidden=\"true\">\n {/* back-right file */}\n <rect x=\"18\" y=\"10\" width=\"10\" height=\"13\" rx=\"1.5\" fill=\"#DBE8FF\" stroke=\"#B2C9FF\" strokeWidth=\"0.5\"\n transform=\"rotate(12 18 10)\" />\n {/* back-left file */}\n <rect x=\"4\" y=\"10\" width=\"10\" height=\"13\" rx=\"1.5\" fill=\"#DBE8FF\" stroke=\"#B2C9FF\" strokeWidth=\"0.5\"\n transform=\"rotate(-12 4 10)\" />\n {/* center file */}\n <rect x=\"10\" y=\"7\" width=\"12\" height=\"16\" rx=\"1.5\" fill=\"#FFFFFF\" stroke=\"#B2C9FF\" strokeWidth=\"1\" />\n <path d=\"M13 12h6M13 15h6M13 18h4\" stroke=\"#B2C9FF\" strokeWidth=\"1\" strokeLinecap=\"round\" />\n {/* upload arrow */}\n <circle cx=\"23\" cy=\"23\" r=\"5\" fill=\"#2970FF\" />\n <path d=\"M23 26v-6M20.5 22.5L23 20l2.5 2.5\" stroke=\"#FFF\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n);\n\n// SVG illustration for LG drop zone (96×64 stacked files)\nconst DropIconLg = () => (\n <svg width=\"96\" height=\"64\" viewBox=\"0 0 96 64\" fill=\"none\" aria-hidden=\"true\">\n {/* right file — rotated 15deg */}\n <g transform=\"rotate(15 70 35)\">\n <rect x=\"55\" y=\"18\" width=\"28\" height=\"36\" rx=\"3\" fill=\"#DBE8FF\" stroke=\"#B2C9FF\" strokeWidth=\"1\" />\n <path d=\"M61 28h16M61 34h16M61 40h10\" stroke=\"#B2C9FF\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n </g>\n {/* left file — rotated -15deg */}\n <g transform=\"rotate(-15 26 35)\">\n <rect x=\"13\" y=\"18\" width=\"28\" height=\"36\" rx=\"3\" fill=\"#DBE8FF\" stroke=\"#B2C9FF\" strokeWidth=\"1\" />\n <path d=\"M19 28h16M19 34h16M19 40h10\" stroke=\"#B2C9FF\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n </g>\n {/* center file */}\n <rect x=\"30\" y=\"8\" width=\"36\" height=\"48\" rx=\"3\" fill=\"#FFFFFF\" stroke=\"#B2C9FF\" strokeWidth=\"1.5\" />\n <path d=\"M38 22h20M38 30h20M38 38h14\" stroke=\"#B2C9FF\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n {/* upload arrow overlay */}\n <circle cx=\"76\" cy=\"50\" r=\"10\" fill=\"#2970FF\" />\n <path d=\"M76 55v-10M71 48l5-5 5 5\" stroke=\"#FFF\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n);\n\n// ─── Sub-components ───────────────────────────────────────────────────────────\n\ninterface UploadItemProps {\n file: UploadFile;\n size: UploadSize;\n onEdit?: (id: string) => void;\n onPreview?: (id: string) => void;\n onRemove?: (id: string) => void;\n}\n\nfunction UploadItem({ file, size, onEdit, onPreview, onRemove }: UploadItemProps) {\n const isLoading = file.state === 'loading' || file.indicator === 'loader';\n const showProgress = size === 'LG' && file.indicator !== 'loader';\n\n return (\n <div\n className={[\n styles.fileItem,\n size === 'LG' ? styles.fileItemLg : styles.fileItemMd,\n ].join(' ')}\n >\n {/* Badge */}\n <div className={styles.fileBadge}>\n <IconFile />\n </div>\n\n {/* Content */}\n <div className={styles.fileContent}>\n <div className={styles.fileHeader}>\n {/* Name + size */}\n <div className={styles.fileTexts}>\n <p className={styles.fileName}>{file.name}</p>\n <p className={styles.fileSize}>{file.size}</p>\n </div>\n\n {/* Actions or spinner */}\n {isLoading ? (\n <div className={styles.spinner} role=\"status\" aria-label=\"Uploading…\" />\n ) : (\n <div className={styles.actions}>\n <button\n className={styles.actionBtn}\n onClick={() => onEdit?.(file.id)}\n aria-label={`Edit ${file.name}`}\n type=\"button\"\n >\n <IconPen />\n </button>\n <button\n className={styles.actionBtn}\n onClick={() => onPreview?.(file.id)}\n aria-label={`Preview ${file.name}`}\n type=\"button\"\n >\n <IconEye />\n </button>\n <button\n className={styles.actionBtn}\n onClick={() => onRemove?.(file.id)}\n aria-label={`Remove ${file.name}`}\n type=\"button\"\n >\n <IconTrash />\n </button>\n </div>\n )}\n </div>\n\n {/* Progress bar — LG only, not during loader */}\n {showProgress && (\n <div className={styles.progressRow}>\n <div className={styles.progressTrack}>\n <div\n className={styles.progressFill}\n style={{ width: `${Math.min(100, Math.max(0, file.progress))}%` }}\n role=\"progressbar\"\n aria-valuenow={file.progress}\n aria-valuemin={0}\n aria-valuemax={100}\n />\n </div>\n <p className={styles.progressLabel}>{file.progress}%</p>\n </div>\n )}\n </div>\n </div>\n );\n}\n\n// ─── Main component ───────────────────────────────────────────────────────────\n\nexport function Upload({\n size = 'LG',\n type = 'multiple',\n status = 'default',\n files = [],\n onDrop,\n onRemove,\n onEdit,\n onPreview,\n accept,\n className,\n}: UploadProps) {\n const inputRef = useRef<HTMLInputElement>(null);\n const [dragging, setDragging] = useState(false);\n\n const handleDragOver = (e: React.DragEvent) => {\n e.preventDefault();\n setDragging(true);\n };\n\n const handleDragLeave = (e: React.DragEvent) => {\n e.preventDefault();\n setDragging(false);\n };\n\n const handleDrop = (e: React.DragEvent) => {\n e.preventDefault();\n setDragging(false);\n const dropped = Array.from(e.dataTransfer.files);\n if (dropped.length) onDrop?.(dropped);\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const selected = Array.from(e.target.files ?? []);\n if (selected.length) onDrop?.(selected);\n // reset so same file can be re-selected\n e.target.value = '';\n };\n\n const openFilePicker = () => inputRef.current?.click();\n\n // LG single active / MD single active: hide drop zone when a file is loaded\n const hideDrop = type === 'single' && status === 'active' && files.length > 0;\n\n const dropzoneClass = [\n styles.dropzone,\n size === 'MD' ? styles.dropzoneMd : styles.dropzoneLg,\n dragging ? styles.dropzoneDragging : '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const titleText =\n type === 'multiple' ? 'Drop your files here, or' : 'Drop your file here, or';\n\n return (\n <div className={[styles.wrapper, className].filter(Boolean).join(' ')}>\n {/* Hidden file input */}\n <input\n ref={inputRef}\n type=\"file\"\n multiple={type === 'multiple'}\n accept={accept}\n onChange={handleInputChange}\n style={{ display: 'none' }}\n aria-hidden=\"true\"\n tabIndex={-1}\n />\n\n {/* Drop zone */}\n {!hideDrop && (\n <div\n className={dropzoneClass}\n onClick={openFilePicker}\n onDragOver={handleDragOver}\n onDragLeave={handleDragLeave}\n onDrop={handleDrop}\n role=\"button\"\n tabIndex={0}\n aria-label={`${titleText} browse`}\n onKeyDown={(e) => {\n if (e.key === ' ' || e.key === 'Enter') openFilePicker();\n }}\n >\n {/* Icon */}\n {size === 'MD' ? (\n <div className={styles.dropzoneIconMd}>\n <DropIconMd />\n </div>\n ) : (\n <div className={styles.dropzoneIconLg}>\n <DropIconLg />\n </div>\n )}\n\n {/* Text content */}\n <div className={styles.dropzoneContent}>\n <div className={styles.dropzoneTitleRow}>\n <p className={styles.dropzoneTitle}>{titleText}</p>\n <span className={styles.dropzoneBrowse} aria-hidden=\"true\">\n browse\n </span>\n </div>\n <p className={styles.dropzoneSubtitle}>\n JPG, PNG, PDF (Max 800×400px – 2Mo)\n </p>\n </div>\n </div>\n )}\n\n {/* File list */}\n {status === 'active' && files.length > 0 && (\n <div className={styles.fileList}>\n {files.map((file) => (\n <UploadItem\n key={file.id}\n file={file}\n size={size}\n onEdit={onEdit}\n onPreview={onPreview}\n onRemove={onRemove}\n />\n ))}\n </div>\n )}\n </div>\n );\n}\n"],"names":["IconFile","jsxs","jsx","IconPen","IconEye","IconTrash","DropIconMd","DropIconLg","UploadItem","file","size","onEdit","onPreview","onRemove","isLoading","showProgress","styles","Upload","type","status","files","onDrop","accept","className","inputRef","useRef","dragging","setDragging","useState","handleDragOver","e","handleDragLeave","handleDrop","dropped","handleInputChange","selected","openFilePicker","_a","hideDrop","dropzoneClass","titleText"],"mappings":";;;AAyCA,MAAMA,IAAW,MACf,gBAAAC,EAAC,OAAA,EAAI,SAAQ,aAAY,OAAM,MAAK,QAAO,MAAK,eAAY,QAC1D,UAAA;AAAA,EAAA,gBAAAC,EAAC,QAAA,EACC,UAAA,gBAAAD,EAAC,kBAAA,EAAe,IAAG,YAAW,IAAG,MAAK,IAAG,QAAO,IAAG,QAAO,IAAG,MAE3D,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAA,EAAK,QAAO,MAAK,WAAU,WAAU;AAAA,IACtC,gBAAAA,EAAC,QAAA,EAAK,QAAO,QAAO,WAAU,UAAA,CAAU;AAAA,EAAA,EAAA,CAC1C,EAAA,CACF;AAAA,EACA,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,GAAE;AAAA,IAAA;AAAA,EAAA;AACJ,GACF,GAGIC,IAAU,MACd,gBAAAD,EAAC,SAAI,SAAQ,aAAY,OAAM,MAAK,QAAO,MAAK,MAAK,gBAAe,eAAY,QAC9E,4BAAC,QAAA,EAAK,GAAE,sKAA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gBAAAP;AAAA,MAACM;AAAA,MAAA;AAAA,QAEC,MAAAC;AAAA,QACA,MAAAC;AAAA,QACA,QAAAC;AAAA,QACA,WAAAC;AAAA,QACA,UAAAC;AAAA,MAAA;AAAA,MALKJ,EAAK;AAAA,IAAA,CAOb,EAAA,CACH;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -1,34 +1,42 @@
1
- const e = "_wrapper_1iytr_9", r = "_labelRow_1iytr_19", _ = "_label_1iytr_19", t = "_labelDisabled_1iytr_37", s = "_labelIcon_1iytr_41", l = "_field_1iytr_53", o = "_hover_1iytr_70", a = "_active_1iytr_77", i = "_disabled_1iytr_85", c = "_error_1iytr_98", n = "_icon_1iytr_110", b = "_input_1iytr_122", y = "_message_1iytr_155", d = "_messageError_1iytr_170", p = {
2
- wrapper: e,
3
- labelRow: r,
4
- label: _,
5
- labelDisabled: t,
6
- labelIcon: s,
7
- field: l,
8
- hover: o,
9
- active: a,
10
- disabled: i,
11
- error: c,
12
- icon: n,
13
- input: b,
14
- message: y,
15
- messageError: d
1
+ const t = "_alert_p4b5i_21", e = "_typeDefault_p4b5i_36", n = "_typeInfo_p4b5i_37", _ = "_typeSuccess_p4b5i_38", i = "_typeWarning_p4b5i_39", o = "_typeError_p4b5i_40", s = "_iconSlot_p4b5i_44", c = "_textContent_p4b5i_54", l = "_title_p4b5i_63", p = "_titleDefault_p4b5i_72", r = "_titleInfo_p4b5i_73", a = "_titleSuccess_p4b5i_74", b = "_titleWarning_p4b5i_75", y = "_titleError_p4b5i_76", f = "_message_p4b5i_78", u = "_rightSlot_p4b5i_90", g = "_actionBtn_p4b5i_101", S = "_closeBtn_p4b5i_127", B = {
2
+ alert: t,
3
+ typeDefault: e,
4
+ typeInfo: n,
5
+ typeSuccess: _,
6
+ typeWarning: i,
7
+ typeError: o,
8
+ iconSlot: s,
9
+ textContent: c,
10
+ title: l,
11
+ titleDefault: p,
12
+ titleInfo: r,
13
+ titleSuccess: a,
14
+ titleWarning: b,
15
+ titleError: y,
16
+ message: f,
17
+ rightSlot: u,
18
+ actionBtn: g,
19
+ closeBtn: S
16
20
  };
17
21
  export {
18
- a as active,
19
- p as default,
20
- i as disabled,
21
- c as error,
22
- l as field,
23
- o as hover,
24
- n as icon,
25
- b as input,
26
- _ as label,
27
- t as labelDisabled,
28
- s as labelIcon,
29
- r as labelRow,
30
- y as message,
31
- d as messageError,
32
- e as wrapper
22
+ g as actionBtn,
23
+ t as alert,
24
+ S as closeBtn,
25
+ B as default,
26
+ s as iconSlot,
27
+ f as message,
28
+ u as rightSlot,
29
+ c as textContent,
30
+ l as title,
31
+ p as titleDefault,
32
+ y as titleError,
33
+ r as titleInfo,
34
+ a as titleSuccess,
35
+ b as titleWarning,
36
+ e as typeDefault,
37
+ o as typeError,
38
+ n as typeInfo,
39
+ _ as typeSuccess,
40
+ i as typeWarning
33
41
  };
34
42
  //# sourceMappingURL=index.esm17.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm17.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm17.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -1,64 +1,106 @@
1
- const a = "_header_1jw5v_25", e = "_variantDefault_1jw5v_36", t = "_variantMobile_1jw5v_37", o = "_variantMobileOpen_1jw5v_38", s = "_pageTitle_1jw5v_49", _ = "_pageTitleDesktop_1jw5v_63", n = "_pageTitleMobile_1jw5v_64", c = "_actions_1jw5v_68", r = "_actionsMobileOpen_1jw5v_76", w = "_workspace_1jw5v_86", v = "_workspaceFull_1jw5v_104", i = "_workspaceLeft_1jw5v_110", l = "_statusDot_1jw5v_118", p = "_workspaceCol_1jw5v_126", j = "_workspaceAccount_1jw5v_134", u = "_workspaceName_1jw5v_144", k = "_workspaceArrow_1jw5v_156", m = "_bellBtn_1jw5v_168", b = "_menuBtn_1jw5v_188", g = "_menuIcon_1jw5v_208", M = "_navUser_1jw5v_219", T = "_avatar_1jw5v_227", A = "_avatarImg_1jw5v_239", B = "_avatarInitials_1jw5v_248", D = "_userText_1jw5v_255", I = "_userName_1jw5v_262", f = "_userRole_1jw5v_271", N = "_ctaBtn_1jw5v_282", O = "_mainActions_1jw5v_307", d = {
2
- header: a,
3
- variantDefault: e,
4
- variantMobile: t,
5
- variantMobileOpen: o,
6
- pageTitle: s,
7
- pageTitleDesktop: _,
8
- pageTitleMobile: n,
9
- actions: c,
10
- actionsMobileOpen: r,
11
- workspace: w,
12
- workspaceFull: v,
13
- workspaceLeft: i,
14
- statusDot: l,
15
- workspaceCol: p,
16
- workspaceAccount: j,
17
- workspaceName: u,
18
- workspaceArrow: k,
19
- bellBtn: m,
20
- menuBtn: b,
21
- menuIcon: g,
22
- navUser: M,
23
- avatar: T,
24
- avatarImg: A,
25
- avatarInitials: B,
26
- userText: D,
27
- userName: I,
28
- userRole: f,
29
- ctaBtn: N,
30
- mainActions: O
1
+ const e = "_nav_53r24_22", t = "_navOpen_53r24_32", o = "_navClosed_53r24_33", _ = "_navMobile_53r24_42", n = "_header_53r24_51", a = "_headerOpen_53r24_58", s = "_headerClosed_53r24_64", l = "_headerMobile_53r24_73", c = "_logoIcon_53r24_80", i = "_logoFull_53r24_87", r = "_headerTitle_53r24_93", m = "_headerActions_53r24_102", v = "_bellBtn_53r24_108", b = "_links_53r24_129", d = "_linksOpen_53r24_136", p = "_linksClosed_53r24_137", I = "_linksMobile_53r24_138", h = "_section_53r24_142", k = "_sectionTitle_53r24_147", M = "_sectionItems_53r24_160", C = "_item_53r24_168", L = "_itemOpen_53r24_181", A = "_itemOpenActive_53r24_191", B = "_itemClosed_53r24_201", O = "_itemClosedActive_53r24_211", f = "_itemMobile_53r24_222", w = "_itemMobileActive_53r24_231", g = "_itemIcon_53r24_237", u = "_itemIconDark_53r24_246", D = "_itemIconLight_53r24_247", R = "_itemLabel_53r24_251", T = "_itemLabelDefault_53r24_263", F = "_itemLabelActive_53r24_264", N = "_itemLabelMobile_53r24_265", x = "_chevron_53r24_269", y = "_footer_53r24_283", j = "_collapseBtn_53r24_289", q = "_collapseBtnClosed_53r24_310", z = "_collapseBtnIcon_53r24_314", E = "_footerMobile_53r24_326", G = "_ctaBtn_53r24_335", H = "_workspace_53r24_358", J = "_workspaceIcon_53r24_372", K = "_workspaceLabel_53r24_383", P = "_avatarRow_53r24_397", Q = "_avatar_53r24_397", S = "_avatarInitials_53r24_415", U = "_avatarInfo_53r24_422", V = "_avatarName_53r24_430", W = "_avatarRole_53r24_441", X = {
2
+ nav: e,
3
+ navOpen: t,
4
+ navClosed: o,
5
+ navMobile: _,
6
+ header: n,
7
+ headerOpen: a,
8
+ headerClosed: s,
9
+ headerMobile: l,
10
+ logoIcon: c,
11
+ logoFull: i,
12
+ headerTitle: r,
13
+ headerActions: m,
14
+ bellBtn: v,
15
+ links: b,
16
+ linksOpen: d,
17
+ linksClosed: p,
18
+ linksMobile: I,
19
+ section: h,
20
+ sectionTitle: k,
21
+ sectionItems: M,
22
+ item: C,
23
+ itemOpen: L,
24
+ itemOpenActive: A,
25
+ itemClosed: B,
26
+ itemClosedActive: O,
27
+ itemMobile: f,
28
+ itemMobileActive: w,
29
+ itemIcon: g,
30
+ itemIconDark: u,
31
+ itemIconLight: D,
32
+ itemLabel: R,
33
+ itemLabelDefault: T,
34
+ itemLabelActive: F,
35
+ itemLabelMobile: N,
36
+ chevron: x,
37
+ footer: y,
38
+ collapseBtn: j,
39
+ collapseBtnClosed: q,
40
+ collapseBtnIcon: z,
41
+ footerMobile: E,
42
+ ctaBtn: G,
43
+ workspace: H,
44
+ workspaceIcon: J,
45
+ workspaceLabel: K,
46
+ avatarRow: P,
47
+ avatar: Q,
48
+ avatarInitials: S,
49
+ avatarInfo: U,
50
+ avatarName: V,
51
+ avatarRole: W
31
52
  };
32
53
  export {
33
- c as actions,
34
- r as actionsMobileOpen,
35
- T as avatar,
36
- A as avatarImg,
37
- B as avatarInitials,
38
- m as bellBtn,
39
- N as ctaBtn,
40
- d as default,
41
- a as header,
42
- O as mainActions,
43
- b as menuBtn,
44
- g as menuIcon,
45
- M as navUser,
46
- s as pageTitle,
47
- _ as pageTitleDesktop,
48
- n as pageTitleMobile,
49
- l as statusDot,
50
- I as userName,
51
- f as userRole,
52
- D as userText,
53
- e as variantDefault,
54
- t as variantMobile,
55
- o as variantMobileOpen,
56
- w as workspace,
57
- j as workspaceAccount,
58
- k as workspaceArrow,
59
- p as workspaceCol,
60
- v as workspaceFull,
61
- i as workspaceLeft,
62
- u as workspaceName
54
+ Q as avatar,
55
+ U as avatarInfo,
56
+ S as avatarInitials,
57
+ V as avatarName,
58
+ W as avatarRole,
59
+ P as avatarRow,
60
+ v as bellBtn,
61
+ x as chevron,
62
+ j as collapseBtn,
63
+ q as collapseBtnClosed,
64
+ z as collapseBtnIcon,
65
+ G as ctaBtn,
66
+ X as default,
67
+ y as footer,
68
+ E as footerMobile,
69
+ n as header,
70
+ m as headerActions,
71
+ s as headerClosed,
72
+ l as headerMobile,
73
+ a as headerOpen,
74
+ r as headerTitle,
75
+ C as item,
76
+ B as itemClosed,
77
+ O as itemClosedActive,
78
+ g as itemIcon,
79
+ u as itemIconDark,
80
+ D as itemIconLight,
81
+ R as itemLabel,
82
+ F as itemLabelActive,
83
+ T as itemLabelDefault,
84
+ N as itemLabelMobile,
85
+ f as itemMobile,
86
+ w as itemMobileActive,
87
+ L as itemOpen,
88
+ A as itemOpenActive,
89
+ b as links,
90
+ p as linksClosed,
91
+ I as linksMobile,
92
+ d as linksOpen,
93
+ i as logoFull,
94
+ c as logoIcon,
95
+ e as nav,
96
+ o as navClosed,
97
+ _ as navMobile,
98
+ t as navOpen,
99
+ h as section,
100
+ M as sectionItems,
101
+ k as sectionTitle,
102
+ H as workspace,
103
+ J as workspaceIcon,
104
+ K as workspaceLabel
63
105
  };
64
106
  //# sourceMappingURL=index.esm19.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,24 +1,26 @@
1
- const o = "_pagination_olot7_11", t = "_item_olot7_20", _ = "_xs_olot7_55", n = "_md_olot7_63", c = "_lg_olot7_71", s = "_active_olot7_81", i = "_inactive_olot7_88", l = "_dots_olot7_102", a = "_control_olot7_110", e = {
2
- pagination: o,
3
- item: t,
4
- xs: _,
5
- md: n,
6
- lg: c,
7
- active: s,
8
- inactive: i,
9
- dots: l,
10
- control: a
1
+ const e = "_base_106pz_9", c = "_checkDefault_106pz_18", o = "_radioDefault_106pz_19", _ = "_checkChecked_106pz_40", t = "_radioChecked_106pz_41", a = "_checkIcon_106pz_64", k = "_radioIcon_106pz_86", d = "_toggleWrapper_106pz_105", r = "_toggleTrack_106pz_113", g = "_toggleChecked_106pz_140", h = {
2
+ base: e,
3
+ checkDefault: c,
4
+ radioDefault: o,
5
+ checkChecked: _,
6
+ radioChecked: t,
7
+ checkIcon: a,
8
+ radioIcon: k,
9
+ toggleWrapper: d,
10
+ toggleTrack: r,
11
+ toggleChecked: g
11
12
  };
12
13
  export {
13
- s as active,
14
- a as control,
15
- e as default,
16
- l as dots,
17
- i as inactive,
18
- t as item,
19
- c as lg,
20
- n as md,
21
- o as pagination,
22
- _ as xs
14
+ e as base,
15
+ _ as checkChecked,
16
+ c as checkDefault,
17
+ a as checkIcon,
18
+ h as default,
19
+ t as radioChecked,
20
+ o as radioDefault,
21
+ k as radioIcon,
22
+ g as toggleChecked,
23
+ r as toggleTrack,
24
+ d as toggleWrapper
23
25
  };
24
26
  //# sourceMappingURL=index.esm20.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}