@fiscozen/composables 1.0.3 → 1.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.
- package/CHANGELOG.md +19 -0
- package/README.md +106 -3
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +313 -0
- package/coverage/coverage-final.json +10 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +131 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/coverage/src/FzFloating.vue.html +847 -0
- package/coverage/src/composables/index.html +206 -0
- package/coverage/src/composables/useBreakpoints.ts.html +223 -0
- package/coverage/src/composables/useClickOutside.ts.html +247 -0
- package/coverage/src/composables/useCurrency.ts.html +124 -0
- package/coverage/src/composables/useFloating.ts.html +1906 -0
- package/coverage/src/composables/useKeyDown.ts.html +172 -0
- package/coverage/src/composables/useKeyUp.ts.html +181 -0
- package/coverage/src/composables/useMediaQuery.ts.html +151 -0
- package/coverage/src/index.html +131 -0
- package/coverage/src/types.ts.html +271 -0
- package/dist/composables.js +2174 -1451
- package/dist/composables.umd.cjs +1 -1
- package/package.json +10 -10
- package/src/__tests__/FzFloating.spec.ts +4 -5
- package/src/__tests__/useBreakpoints.spec.ts +153 -0
- package/src/__tests__/useFloating.spec.ts +36 -5
- package/src/composables/useBreakpoints.ts +29 -0
- package/src/composables/useFloating.ts +14 -0
package/dist/composables.js
CHANGED
|
@@ -1,1460 +1,2183 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
1
|
+
import { Teleport as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, nextTick as s, normalizeClass as c, onBeforeUnmount as l, onMounted as u, onUnmounted as d, openBlock as f, reactive as p, ref as m, renderSlot as h, toRef as g, toRefs as _, unref as v, useSlots as y, vShow as b, watch as x, withDirectives as S } from "vue";
|
|
2
|
+
//#region src/utils/number/index.ts
|
|
3
|
+
var C = (e, t) => {
|
|
4
|
+
if (!isFinite(e) || t < 0) return e;
|
|
5
|
+
if (t === 0) return Math.trunc(e);
|
|
6
|
+
let n = String(e);
|
|
7
|
+
if (n.includes("e") || n.includes("E")) {
|
|
8
|
+
let n = 10 ** t;
|
|
9
|
+
return Math.trunc(e * n) / n;
|
|
10
|
+
}
|
|
11
|
+
let r = n.indexOf(".");
|
|
12
|
+
return r === -1 || n.length - r - 1 <= t ? e : Number(n.slice(0, r + t + 1));
|
|
13
|
+
}, w = (e, { minimumFractionDigits: t = 0, maximumFractionDigits: n = 2, roundDecimals: r = !0, useGrouping: i = !0 } = {}) => e == null || isNaN(e) || !isFinite(e) ? "" : (r ? e : C(e, n)).toLocaleString("it-IT", {
|
|
14
|
+
minimumFractionDigits: t,
|
|
15
|
+
maximumFractionDigits: n,
|
|
16
|
+
useGrouping: i
|
|
17
|
+
}), T = (e) => {
|
|
18
|
+
if (!e || typeof e != "string") return NaN;
|
|
19
|
+
let t = e.trim();
|
|
20
|
+
return t.includes(",") && (t = t.replace(/\./g, ""), t = t.replace(",", ".")), parseFloat(t);
|
|
21
|
+
}, E = (e, t) => {
|
|
22
|
+
let n = t, r = t % e, i = t >= 0 ? e : -e;
|
|
23
|
+
return r !== 0 && (n = Math.abs(r) >= e / 2 ? t + i - r : t - r), n;
|
|
24
|
+
}, D = (e, t, n) => Math.max(e, Math.min(t, n)), O = new DOMRect(0, 0, window.innerWidth, window.innerHeight), k = (e, t, n, r, i) => {
|
|
25
|
+
let a = i ? "bottom" : "right", o = i ? "bottom-start" : "right-start";
|
|
26
|
+
O.width = window.innerWidth, O.height = window.innerHeight, O.x = 0, O.y = 0;
|
|
27
|
+
let s = e ? e.getBoundingClientRect() : O, c = t.getBoundingClientRect(), l = n.getBoundingClientRect(), u = (l.left - s.left - c.width) / s.width, d = (s.right - l.right - c.width) / s.width, f = (l.top - s.top - c.height) / s.height, p = (s.bottom - l.bottom - c.height) / s.height, m = [
|
|
28
|
+
{
|
|
29
|
+
key: "right",
|
|
30
|
+
space: d
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "top",
|
|
34
|
+
space: f
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: "bottom",
|
|
38
|
+
space: p
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "left",
|
|
42
|
+
space: u
|
|
43
|
+
}
|
|
44
|
+
].sort((e, t) => t.space - e.space);
|
|
45
|
+
if (i && (m = m.filter((e) => e.key === "top" || e.key === "bottom")), a = m[0].key, !r) {
|
|
46
|
+
let e = (c.height - l.height) / 2;
|
|
47
|
+
switch (a) {
|
|
48
|
+
case "right":
|
|
49
|
+
case "left":
|
|
50
|
+
s.top > l.top - e && (r = "end"), s.bottom < l.top - e && (r = "start");
|
|
51
|
+
break;
|
|
52
|
+
default: break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return o = r ? `${a}-${r}` : a, o;
|
|
56
|
+
}, A = (e, t, n, r) => ({
|
|
57
|
+
x: t.x + e.width * n / 100,
|
|
58
|
+
y: t.y + e.height * r / 100
|
|
59
|
+
}), j = (e) => typeof e == "string" ? document.querySelector(e) : e, M = (e) => ({
|
|
60
|
+
left: parseFloat(e.marginLeft),
|
|
61
|
+
right: parseFloat(e.marginRight),
|
|
62
|
+
top: parseFloat(e.marginTop),
|
|
63
|
+
bottom: parseFloat(e.marginBottom)
|
|
64
|
+
}), N = (e) => e !== null && (e.width > 0 || e.height > 0), P = {
|
|
65
|
+
bottom: (e, t) => ({
|
|
66
|
+
position: {
|
|
67
|
+
x: e.left - t.left + e.width / 2,
|
|
68
|
+
y: e.bottom
|
|
69
|
+
},
|
|
70
|
+
transform: {
|
|
71
|
+
x: -50,
|
|
72
|
+
y: 0
|
|
73
|
+
}
|
|
74
|
+
}),
|
|
75
|
+
"bottom-start": (e, t) => ({
|
|
76
|
+
position: {
|
|
77
|
+
x: e.left - t.left,
|
|
78
|
+
y: e.bottom
|
|
79
|
+
},
|
|
80
|
+
transform: {
|
|
81
|
+
x: 0,
|
|
82
|
+
y: 0
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
"bottom-end": (e, t) => ({
|
|
86
|
+
position: {
|
|
87
|
+
x: e.right + t.right,
|
|
88
|
+
y: e.bottom
|
|
89
|
+
},
|
|
90
|
+
transform: {
|
|
91
|
+
x: -100,
|
|
92
|
+
y: 0
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
top: (e, t) => ({
|
|
96
|
+
position: {
|
|
97
|
+
x: e.left - t.left + e.width / 2,
|
|
98
|
+
y: e.top - t.bottom
|
|
99
|
+
},
|
|
100
|
+
transform: {
|
|
101
|
+
x: -50,
|
|
102
|
+
y: -100
|
|
103
|
+
}
|
|
104
|
+
}),
|
|
105
|
+
"top-start": (e, t) => ({
|
|
106
|
+
position: {
|
|
107
|
+
x: e.left - t.left,
|
|
108
|
+
y: e.top - t.bottom
|
|
109
|
+
},
|
|
110
|
+
transform: {
|
|
111
|
+
x: 0,
|
|
112
|
+
y: -100
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
"top-end": (e, t) => ({
|
|
116
|
+
position: {
|
|
117
|
+
x: e.right + t.right,
|
|
118
|
+
y: e.top - t.bottom
|
|
119
|
+
},
|
|
120
|
+
transform: {
|
|
121
|
+
x: -100,
|
|
122
|
+
y: -100
|
|
123
|
+
}
|
|
124
|
+
}),
|
|
125
|
+
left: (e, t) => ({
|
|
126
|
+
position: {
|
|
127
|
+
x: e.left - t.right,
|
|
128
|
+
y: e.top - t.top + e.height / 2
|
|
129
|
+
},
|
|
130
|
+
transform: {
|
|
131
|
+
x: -100,
|
|
132
|
+
y: -50
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
"left-start": (e, t) => ({
|
|
136
|
+
position: {
|
|
137
|
+
x: e.left - t.right,
|
|
138
|
+
y: e.top - t.top
|
|
139
|
+
},
|
|
140
|
+
transform: {
|
|
141
|
+
x: -100,
|
|
142
|
+
y: 0
|
|
143
|
+
}
|
|
144
|
+
}),
|
|
145
|
+
"left-end": (e, t) => ({
|
|
146
|
+
position: {
|
|
147
|
+
x: e.left - t.right,
|
|
148
|
+
y: e.bottom + t.bottom
|
|
149
|
+
},
|
|
150
|
+
transform: {
|
|
151
|
+
x: -100,
|
|
152
|
+
y: -100
|
|
153
|
+
}
|
|
154
|
+
}),
|
|
155
|
+
right: (e, t) => ({
|
|
156
|
+
position: {
|
|
157
|
+
x: e.right + t.left,
|
|
158
|
+
y: e.top - t.top + e.height / 2
|
|
159
|
+
},
|
|
160
|
+
transform: {
|
|
161
|
+
x: 0,
|
|
162
|
+
y: -50
|
|
163
|
+
}
|
|
164
|
+
}),
|
|
165
|
+
"right-start": (e, t) => ({
|
|
166
|
+
position: {
|
|
167
|
+
x: e.right + t.left,
|
|
168
|
+
y: e.top - t.top
|
|
169
|
+
},
|
|
170
|
+
transform: {
|
|
171
|
+
x: 0,
|
|
172
|
+
y: 0
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
175
|
+
"right-end": (e, t) => ({
|
|
176
|
+
position: {
|
|
177
|
+
x: e.right + t.left,
|
|
178
|
+
y: e.bottom + t.bottom
|
|
179
|
+
},
|
|
180
|
+
transform: {
|
|
181
|
+
x: 0,
|
|
182
|
+
y: -100
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
}, F = (e, t, n) => {
|
|
186
|
+
let r = P[e];
|
|
187
|
+
return r ? r(t, n) : {
|
|
188
|
+
position: {
|
|
189
|
+
x: 0,
|
|
190
|
+
y: 0
|
|
191
|
+
},
|
|
192
|
+
transform: {
|
|
193
|
+
x: 0,
|
|
194
|
+
y: 0
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
}, I = {
|
|
198
|
+
bottom: (e, t) => ({
|
|
199
|
+
position: {
|
|
200
|
+
x: e.left + e.width / 2,
|
|
201
|
+
y: e.bottom - t.height
|
|
202
|
+
},
|
|
203
|
+
transform: {
|
|
204
|
+
x: -50,
|
|
205
|
+
y: 0
|
|
206
|
+
}
|
|
207
|
+
}),
|
|
208
|
+
"bottom-start": (e, t) => ({
|
|
209
|
+
position: {
|
|
210
|
+
x: e.left,
|
|
211
|
+
y: e.bottom - t.height
|
|
212
|
+
},
|
|
213
|
+
transform: {
|
|
214
|
+
x: 0,
|
|
215
|
+
y: 0
|
|
216
|
+
}
|
|
217
|
+
}),
|
|
218
|
+
"bottom-end": (e, t) => ({
|
|
219
|
+
position: {
|
|
220
|
+
x: e.right - t.width,
|
|
221
|
+
y: e.bottom - t.height
|
|
222
|
+
},
|
|
223
|
+
transform: {
|
|
224
|
+
x: 0,
|
|
225
|
+
y: 0
|
|
226
|
+
}
|
|
227
|
+
}),
|
|
228
|
+
top: (e) => ({
|
|
229
|
+
position: {
|
|
230
|
+
x: e.left + e.width / 2,
|
|
231
|
+
y: e.top
|
|
232
|
+
},
|
|
233
|
+
transform: {
|
|
234
|
+
x: -50,
|
|
235
|
+
y: 0
|
|
236
|
+
}
|
|
237
|
+
}),
|
|
238
|
+
"top-start": (e) => ({
|
|
239
|
+
position: {
|
|
240
|
+
x: e.left,
|
|
241
|
+
y: e.top
|
|
242
|
+
},
|
|
243
|
+
transform: {
|
|
244
|
+
x: 0,
|
|
245
|
+
y: 0
|
|
246
|
+
}
|
|
247
|
+
}),
|
|
248
|
+
"top-end": (e, t) => ({
|
|
249
|
+
position: {
|
|
250
|
+
x: e.right - t.width,
|
|
251
|
+
y: e.top
|
|
252
|
+
},
|
|
253
|
+
transform: {
|
|
254
|
+
x: 0,
|
|
255
|
+
y: 0
|
|
256
|
+
}
|
|
257
|
+
}),
|
|
258
|
+
left: (e, t) => ({
|
|
259
|
+
position: {
|
|
260
|
+
x: e.left,
|
|
261
|
+
y: e.top + (e.height - t.height) / 2
|
|
262
|
+
},
|
|
263
|
+
transform: {
|
|
264
|
+
x: 0,
|
|
265
|
+
y: 0
|
|
266
|
+
}
|
|
267
|
+
}),
|
|
268
|
+
"left-start": (e) => ({
|
|
269
|
+
position: {
|
|
270
|
+
x: e.left,
|
|
271
|
+
y: e.top
|
|
272
|
+
},
|
|
273
|
+
transform: {
|
|
274
|
+
x: 0,
|
|
275
|
+
y: 0
|
|
276
|
+
}
|
|
277
|
+
}),
|
|
278
|
+
"left-end": (e, t) => ({
|
|
279
|
+
position: {
|
|
280
|
+
x: e.left,
|
|
281
|
+
y: e.bottom - t.height
|
|
282
|
+
},
|
|
283
|
+
transform: {
|
|
284
|
+
x: 0,
|
|
285
|
+
y: 0
|
|
286
|
+
}
|
|
287
|
+
}),
|
|
288
|
+
right: (e, t) => ({
|
|
289
|
+
position: {
|
|
290
|
+
x: e.right - t.width,
|
|
291
|
+
y: e.top + (e.height - t.height) / 2
|
|
292
|
+
},
|
|
293
|
+
transform: {
|
|
294
|
+
x: 0,
|
|
295
|
+
y: 0
|
|
296
|
+
}
|
|
297
|
+
}),
|
|
298
|
+
"right-start": (e, t) => ({
|
|
299
|
+
position: {
|
|
300
|
+
x: e.right - t.width,
|
|
301
|
+
y: e.top
|
|
302
|
+
},
|
|
303
|
+
transform: {
|
|
304
|
+
x: 0,
|
|
305
|
+
y: 0
|
|
306
|
+
}
|
|
307
|
+
}),
|
|
308
|
+
"right-end": (e, t) => ({
|
|
309
|
+
position: {
|
|
310
|
+
x: e.right - t.width,
|
|
311
|
+
y: e.bottom - t.height
|
|
312
|
+
},
|
|
313
|
+
transform: {
|
|
314
|
+
x: 0,
|
|
315
|
+
y: 0
|
|
316
|
+
}
|
|
317
|
+
})
|
|
318
|
+
}, L = (e, t, n) => {
|
|
319
|
+
let r = I[e];
|
|
320
|
+
return r ? r(t, n) : {
|
|
321
|
+
position: {
|
|
322
|
+
x: 0,
|
|
323
|
+
y: 0
|
|
324
|
+
},
|
|
325
|
+
transform: {
|
|
326
|
+
x: 0,
|
|
327
|
+
y: 0
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}, R = (e, t, n, r) => {
|
|
331
|
+
let i = { ...e }, a = { ...r };
|
|
332
|
+
if (e.x < n.left && (i.x = n.left, a.x = 0), e.x + t.width > n.right) {
|
|
333
|
+
let e = n.right - t.width;
|
|
334
|
+
e > 0 && (i.x = e), a.x = 0;
|
|
335
|
+
}
|
|
336
|
+
if (e.y < n.top && (i.y = n.top, a.y = 0), e.y + t.height > n.bottom) {
|
|
337
|
+
let e = n.bottom - t.height;
|
|
338
|
+
e > 0 && (i.y = e), a.y = 0;
|
|
339
|
+
}
|
|
340
|
+
return {
|
|
341
|
+
position: i,
|
|
342
|
+
transform: a
|
|
343
|
+
};
|
|
344
|
+
}, z = (e, t, n, r, i) => {
|
|
345
|
+
let a = i ? null : t;
|
|
346
|
+
switch (e) {
|
|
347
|
+
case "auto": return k(a, n, r);
|
|
348
|
+
case "auto-vertical": return k(a, n, r, void 0, !0);
|
|
349
|
+
case "auto-start": return k(a, n, r, "start");
|
|
350
|
+
case "auto-vertical-start": return k(a, n, r, "start", !0);
|
|
351
|
+
case "auto-end": return k(a, n, r, "end");
|
|
352
|
+
case "auto-vertical-end": return k(a, n, r, "end", !0);
|
|
353
|
+
default: return "bottom-start";
|
|
354
|
+
}
|
|
355
|
+
}, B = (e) => e.startsWith("auto"), V = (e) => {
|
|
356
|
+
let t = m("auto"), n = m(), r = m(), i = m(), a = m(), o = p({ position: {
|
|
357
|
+
x: 0,
|
|
358
|
+
y: 0
|
|
359
|
+
} }), c = {
|
|
360
|
+
root: null,
|
|
361
|
+
rootMargin: "0px",
|
|
362
|
+
threshold: 1,
|
|
363
|
+
...e.element.value.intersectionOptions
|
|
364
|
+
}, l = m(new IntersectionObserver(() => {}, c)), u = () => {
|
|
365
|
+
let t = j(e.element.value.domRef.value);
|
|
366
|
+
return t ? {
|
|
367
|
+
element: t,
|
|
368
|
+
container: e.container?.value ? j(e.container.value.domRef.value) ?? document.body : document.body,
|
|
369
|
+
opener: e.opener?.value ? j(e.opener.value.domRef.value) : null
|
|
370
|
+
} : null;
|
|
371
|
+
}, f = (e) => ({
|
|
372
|
+
element: e.element.getBoundingClientRect(),
|
|
373
|
+
container: e.container.getBoundingClientRect(),
|
|
374
|
+
opener: e.opener?.getBoundingClientRect() ?? null
|
|
375
|
+
});
|
|
376
|
+
return d(() => {
|
|
377
|
+
l.value.disconnect();
|
|
378
|
+
}), {
|
|
379
|
+
float: o,
|
|
380
|
+
rect: r,
|
|
381
|
+
setPosition: (c = !1) => s(() => {
|
|
382
|
+
n.value = e.position?.value ?? "auto";
|
|
383
|
+
let s = u();
|
|
384
|
+
if (!s) return;
|
|
385
|
+
Object.assign(s.element.style, {
|
|
386
|
+
position: "fixed",
|
|
387
|
+
top: "0px",
|
|
388
|
+
left: "0px"
|
|
389
|
+
});
|
|
390
|
+
let d = f(s);
|
|
391
|
+
if (r.value = d.element, i.value = d.opener ?? void 0, a.value = d.container, s.opener && !N(d.opener)) {
|
|
392
|
+
s.element.style.display = "none";
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
l.value.observe(s.element), l.value.observe(s.container), B(n.value) && s.opener && (n.value = z(n.value, s.container, s.element, s.opener, e.useViewport?.value ?? !1));
|
|
396
|
+
let p = M(window.getComputedStyle(s.element)), m = s.opener && d.opener ? F(n.value, d.opener, p) : L(n.value, d.container, d.element), h = R(A(d.element, m.position, m.transform.x, m.transform.y), d.element, d.container, m.transform);
|
|
397
|
+
o.position.x = h.position.x, o.position.y = h.position.y, Object.assign(s.element.style, {
|
|
398
|
+
top: `${o.position.y}px`,
|
|
399
|
+
left: `${o.position.x}px`,
|
|
400
|
+
position: "fixed",
|
|
401
|
+
display: "flex"
|
|
402
|
+
}), r.value = s.element.getBoundingClientRect(), e.callback?.value && !c && e.callback.value(r, i, a, t, n);
|
|
403
|
+
}),
|
|
404
|
+
position: t,
|
|
405
|
+
actualPosition: n,
|
|
406
|
+
openerRect: i,
|
|
407
|
+
containerRect: a
|
|
408
|
+
};
|
|
347
409
|
};
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/composables/useMediaQuery.ts
|
|
412
|
+
function H(e) {
|
|
413
|
+
let n = window.matchMedia(e), r = m(n.matches);
|
|
414
|
+
function i(e) {
|
|
415
|
+
r.value = e.matches;
|
|
416
|
+
}
|
|
417
|
+
return u(() => {
|
|
418
|
+
n.addEventListener("change", i);
|
|
419
|
+
}), d(() => {
|
|
420
|
+
n.removeEventListener("change", i);
|
|
421
|
+
}), t(() => r.value);
|
|
358
422
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region src/composables/useBreakpoints.ts
|
|
425
|
+
function U(e) {
|
|
426
|
+
return {
|
|
427
|
+
isGreater(t) {
|
|
428
|
+
return H(`(min-width: ${e[t]})`);
|
|
429
|
+
},
|
|
430
|
+
isSmaller(t) {
|
|
431
|
+
return H(`(max-width: ${e[t]})`);
|
|
432
|
+
},
|
|
433
|
+
isInBetween(t, n) {
|
|
434
|
+
return H(`(min-width: ${e[t]}) and (max-width: ${e[n]})`);
|
|
435
|
+
},
|
|
436
|
+
current() {
|
|
437
|
+
let n = Object.entries(e).map(([e, t]) => ({
|
|
438
|
+
name: e,
|
|
439
|
+
value: parseInt(t, 10)
|
|
440
|
+
})).sort((e, t) => e.value - t.value), r = n.map(({ name: e, value: t }) => ({
|
|
441
|
+
name: e,
|
|
442
|
+
matches: H(`(min-width: ${t}px)`)
|
|
443
|
+
}));
|
|
444
|
+
return t(() => {
|
|
445
|
+
let e = n[0].name;
|
|
446
|
+
for (let { name: t, matches: n } of r) n.value && (e = t);
|
|
447
|
+
return e;
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
};
|
|
371
451
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
});
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region src/composables/useClickOutside.ts
|
|
454
|
+
function W(e, t, n) {
|
|
455
|
+
if (!e) throw Error("A target component has to be provided.");
|
|
456
|
+
if (!t) throw Error("A callback has to be provided.");
|
|
457
|
+
let r = (n) => {
|
|
458
|
+
!e.value || n.target === e.value || n.composedPath().includes(e.value) || typeof t == "function" && t();
|
|
459
|
+
};
|
|
460
|
+
n && x(n, (e, t) => {
|
|
461
|
+
t && t.removeEventListener("click", r), e?.addEventListener("click", r);
|
|
462
|
+
}), u(() => {
|
|
463
|
+
n || document.addEventListener("click", r);
|
|
464
|
+
}), l(() => {
|
|
465
|
+
if (n) {
|
|
466
|
+
n.value?.removeEventListener("click", r);
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
document.removeEventListener("click", r);
|
|
470
|
+
});
|
|
392
471
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/composables/useKeyDown.ts
|
|
474
|
+
function G(e, t) {
|
|
475
|
+
if (!e) throw Error("A target component has to be provided.");
|
|
476
|
+
if (!t || typeof t != "function") throw Error("A callback has to be provided.");
|
|
477
|
+
let n = (e) => {
|
|
478
|
+
t(e);
|
|
479
|
+
};
|
|
480
|
+
u(() => {
|
|
481
|
+
e.value.addEventListener("keydown", n);
|
|
482
|
+
}), l(() => {
|
|
483
|
+
e.value.removeEventListener("keydown", n);
|
|
484
|
+
});
|
|
406
485
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
486
|
+
//#endregion
|
|
487
|
+
//#region src/composables/useKeyUp.ts
|
|
488
|
+
function K(e, t) {
|
|
489
|
+
if (!e || typeof e != "function") throw Error("A callback has to be provided.");
|
|
490
|
+
let n = (t) => {
|
|
491
|
+
e(t);
|
|
492
|
+
};
|
|
493
|
+
u(() => {
|
|
494
|
+
if (!t) {
|
|
495
|
+
document.addEventListener("keyup", n);
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
t.value.addEventListener("keyup", n);
|
|
499
|
+
}), l(() => {
|
|
500
|
+
if (!t) {
|
|
501
|
+
document.removeEventListener("keyup", n);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
t.value.removeEventListener("keyup", n);
|
|
505
|
+
});
|
|
426
506
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
},
|
|
1264
|
-
|
|
1265
|
-
},
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
},
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region src/composables/useCurrency.ts
|
|
509
|
+
var q = (e) => ({
|
|
510
|
+
format: w,
|
|
511
|
+
parse: T
|
|
512
|
+
}), J = {
|
|
513
|
+
global: {
|
|
514
|
+
blue: {
|
|
515
|
+
50: {
|
|
516
|
+
value: "#eff1ff",
|
|
517
|
+
type: "color"
|
|
518
|
+
},
|
|
519
|
+
100: {
|
|
520
|
+
value: "#dee2ff",
|
|
521
|
+
type: "color"
|
|
522
|
+
},
|
|
523
|
+
200: {
|
|
524
|
+
value: "#bdc5ff",
|
|
525
|
+
type: "color"
|
|
526
|
+
},
|
|
527
|
+
300: {
|
|
528
|
+
value: "#9ca8ff",
|
|
529
|
+
type: "color"
|
|
530
|
+
},
|
|
531
|
+
400: {
|
|
532
|
+
value: "#7b8bff",
|
|
533
|
+
type: "color"
|
|
534
|
+
},
|
|
535
|
+
500: {
|
|
536
|
+
value: "#5a6eff",
|
|
537
|
+
type: "color"
|
|
538
|
+
},
|
|
539
|
+
600: {
|
|
540
|
+
value: "#4858cc",
|
|
541
|
+
type: "color"
|
|
542
|
+
},
|
|
543
|
+
700: {
|
|
544
|
+
value: "#364299",
|
|
545
|
+
type: "color"
|
|
546
|
+
},
|
|
547
|
+
800: {
|
|
548
|
+
value: "#242c66",
|
|
549
|
+
type: "color"
|
|
550
|
+
},
|
|
551
|
+
900: {
|
|
552
|
+
value: "#1b214c",
|
|
553
|
+
type: "color"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
purple: {
|
|
557
|
+
50: {
|
|
558
|
+
value: "#f8f4ff",
|
|
559
|
+
type: "color"
|
|
560
|
+
},
|
|
561
|
+
100: {
|
|
562
|
+
value: "#f0e9ff",
|
|
563
|
+
type: "color"
|
|
564
|
+
},
|
|
565
|
+
200: {
|
|
566
|
+
value: "#e1d3ff",
|
|
567
|
+
type: "color"
|
|
568
|
+
},
|
|
569
|
+
300: {
|
|
570
|
+
value: "#d2bdff",
|
|
571
|
+
type: "color"
|
|
572
|
+
},
|
|
573
|
+
400: {
|
|
574
|
+
value: "#c3a7ff",
|
|
575
|
+
type: "color"
|
|
576
|
+
},
|
|
577
|
+
500: {
|
|
578
|
+
value: "#b491ff",
|
|
579
|
+
type: "color"
|
|
580
|
+
},
|
|
581
|
+
600: {
|
|
582
|
+
value: "#9074cc",
|
|
583
|
+
type: "color"
|
|
584
|
+
},
|
|
585
|
+
700: {
|
|
586
|
+
value: "#6c5799",
|
|
587
|
+
type: "color"
|
|
588
|
+
},
|
|
589
|
+
800: {
|
|
590
|
+
value: "#483a66",
|
|
591
|
+
type: "color"
|
|
592
|
+
},
|
|
593
|
+
900: {
|
|
594
|
+
value: "#241d33",
|
|
595
|
+
type: "color"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
orange: {
|
|
599
|
+
50: {
|
|
600
|
+
value: "#fff2ef",
|
|
601
|
+
type: "color"
|
|
602
|
+
},
|
|
603
|
+
100: {
|
|
604
|
+
value: "#ffe4de",
|
|
605
|
+
type: "color"
|
|
606
|
+
},
|
|
607
|
+
200: {
|
|
608
|
+
value: "#ffc9bd",
|
|
609
|
+
type: "color"
|
|
610
|
+
},
|
|
611
|
+
300: {
|
|
612
|
+
value: "#ffae9c",
|
|
613
|
+
type: "color"
|
|
614
|
+
},
|
|
615
|
+
400: {
|
|
616
|
+
value: "#ff937b",
|
|
617
|
+
type: "color"
|
|
618
|
+
},
|
|
619
|
+
500: {
|
|
620
|
+
value: "#ff785a",
|
|
621
|
+
type: "color"
|
|
622
|
+
},
|
|
623
|
+
600: {
|
|
624
|
+
value: "#cc6048",
|
|
625
|
+
type: "color"
|
|
626
|
+
},
|
|
627
|
+
700: {
|
|
628
|
+
value: "#994836",
|
|
629
|
+
type: "color"
|
|
630
|
+
},
|
|
631
|
+
800: {
|
|
632
|
+
value: "#663024",
|
|
633
|
+
type: "color"
|
|
634
|
+
},
|
|
635
|
+
900: {
|
|
636
|
+
value: "#331812",
|
|
637
|
+
type: "color"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
pink: {
|
|
641
|
+
50: {
|
|
642
|
+
value: "#fff5f5",
|
|
643
|
+
type: "color"
|
|
644
|
+
},
|
|
645
|
+
100: {
|
|
646
|
+
value: "#ffe0e0",
|
|
647
|
+
type: "color"
|
|
648
|
+
},
|
|
649
|
+
200: {
|
|
650
|
+
value: "#ffcbcb",
|
|
651
|
+
type: "color"
|
|
652
|
+
},
|
|
653
|
+
300: {
|
|
654
|
+
value: "#ffc0c0",
|
|
655
|
+
type: "color"
|
|
656
|
+
},
|
|
657
|
+
400: {
|
|
658
|
+
value: "#ffabab",
|
|
659
|
+
type: "color"
|
|
660
|
+
},
|
|
661
|
+
500: {
|
|
662
|
+
value: "#ff9696",
|
|
663
|
+
type: "color"
|
|
664
|
+
},
|
|
665
|
+
600: {
|
|
666
|
+
value: "#cc7878",
|
|
667
|
+
type: "color"
|
|
668
|
+
},
|
|
669
|
+
700: {
|
|
670
|
+
value: "#995a5a",
|
|
671
|
+
type: "color"
|
|
672
|
+
},
|
|
673
|
+
800: {
|
|
674
|
+
value: "#663c3c",
|
|
675
|
+
type: "color"
|
|
676
|
+
},
|
|
677
|
+
900: {
|
|
678
|
+
value: "#331e1e",
|
|
679
|
+
type: "color"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
yellow: {
|
|
683
|
+
50: {
|
|
684
|
+
value: "#fffbf4",
|
|
685
|
+
type: "color"
|
|
686
|
+
},
|
|
687
|
+
100: {
|
|
688
|
+
value: "#fff3de",
|
|
689
|
+
type: "color"
|
|
690
|
+
},
|
|
691
|
+
200: {
|
|
692
|
+
value: "#ffebc8",
|
|
693
|
+
type: "color"
|
|
694
|
+
},
|
|
695
|
+
300: {
|
|
696
|
+
value: "#ffe7bd",
|
|
697
|
+
type: "color"
|
|
698
|
+
},
|
|
699
|
+
400: {
|
|
700
|
+
value: "#ffdfa7",
|
|
701
|
+
type: "color"
|
|
702
|
+
},
|
|
703
|
+
500: {
|
|
704
|
+
value: "#ffd791",
|
|
705
|
+
type: "color"
|
|
706
|
+
},
|
|
707
|
+
600: {
|
|
708
|
+
value: "#ccac74",
|
|
709
|
+
type: "color"
|
|
710
|
+
},
|
|
711
|
+
700: {
|
|
712
|
+
value: "#998157",
|
|
713
|
+
type: "color"
|
|
714
|
+
},
|
|
715
|
+
800: {
|
|
716
|
+
value: "#806c49",
|
|
717
|
+
type: "color"
|
|
718
|
+
},
|
|
719
|
+
900: {
|
|
720
|
+
value: "#4c402b",
|
|
721
|
+
type: "color"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
semantic: {
|
|
725
|
+
error: {
|
|
726
|
+
50: {
|
|
727
|
+
value: "#fef3f3",
|
|
728
|
+
type: "color"
|
|
729
|
+
},
|
|
730
|
+
100: {
|
|
731
|
+
value: "#f8baba",
|
|
732
|
+
type: "color"
|
|
733
|
+
},
|
|
734
|
+
200: {
|
|
735
|
+
value: "#f04242",
|
|
736
|
+
type: "color"
|
|
737
|
+
},
|
|
738
|
+
300: {
|
|
739
|
+
value: "#aa2f2f",
|
|
740
|
+
type: "color"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
warning: {
|
|
744
|
+
50: {
|
|
745
|
+
value: "#fff8f3",
|
|
746
|
+
type: "color"
|
|
747
|
+
},
|
|
748
|
+
100: {
|
|
749
|
+
value: "#ffdabd",
|
|
750
|
+
type: "color"
|
|
751
|
+
},
|
|
752
|
+
200: {
|
|
753
|
+
value: "#ffae4f",
|
|
754
|
+
type: "color"
|
|
755
|
+
},
|
|
756
|
+
300: {
|
|
757
|
+
value: "#b47b38",
|
|
758
|
+
type: "color"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
success: {
|
|
762
|
+
50: {
|
|
763
|
+
value: "#f2f8f6",
|
|
764
|
+
type: "color"
|
|
765
|
+
},
|
|
766
|
+
100: {
|
|
767
|
+
value: "#b5d8ce",
|
|
768
|
+
type: "color"
|
|
769
|
+
},
|
|
770
|
+
200: {
|
|
771
|
+
value: "#0fa88c",
|
|
772
|
+
type: "color"
|
|
773
|
+
},
|
|
774
|
+
300: {
|
|
775
|
+
value: "#0b7763",
|
|
776
|
+
type: "color"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
info: {
|
|
780
|
+
50: {
|
|
781
|
+
value: "#f3f7ff",
|
|
782
|
+
type: "color"
|
|
783
|
+
},
|
|
784
|
+
100: {
|
|
785
|
+
value: "#b4c8e1",
|
|
786
|
+
type: "color"
|
|
787
|
+
},
|
|
788
|
+
200: {
|
|
789
|
+
value: "#4e9fff",
|
|
790
|
+
type: "color"
|
|
791
|
+
},
|
|
792
|
+
300: {
|
|
793
|
+
value: "#3770b4",
|
|
794
|
+
type: "color"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
background: {
|
|
799
|
+
"white-smoke": {
|
|
800
|
+
value: "#f7f6f3",
|
|
801
|
+
type: "color"
|
|
802
|
+
},
|
|
803
|
+
seashell: {
|
|
804
|
+
value: "#f8ece7",
|
|
805
|
+
type: "color"
|
|
806
|
+
},
|
|
807
|
+
"pale-purple": {
|
|
808
|
+
value: "#f2e6ff",
|
|
809
|
+
type: "color"
|
|
810
|
+
},
|
|
811
|
+
"alice-blue": {
|
|
812
|
+
value: "#ecf2fc",
|
|
813
|
+
type: "color"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
grey: {
|
|
817
|
+
100: {
|
|
818
|
+
value: "#e9edf0",
|
|
819
|
+
type: "color"
|
|
820
|
+
},
|
|
821
|
+
200: {
|
|
822
|
+
value: "#d1dde6",
|
|
823
|
+
type: "color"
|
|
824
|
+
},
|
|
825
|
+
300: {
|
|
826
|
+
value: "#9da9b2",
|
|
827
|
+
type: "color"
|
|
828
|
+
},
|
|
829
|
+
400: {
|
|
830
|
+
value: "#6e777e",
|
|
831
|
+
type: "color"
|
|
832
|
+
},
|
|
833
|
+
500: {
|
|
834
|
+
value: "#596167",
|
|
835
|
+
type: "color"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
core: {
|
|
839
|
+
white: {
|
|
840
|
+
value: "#ffffff",
|
|
841
|
+
type: "color"
|
|
842
|
+
},
|
|
843
|
+
black: {
|
|
844
|
+
value: "#2c282f",
|
|
845
|
+
type: "color"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"font-sans": {
|
|
849
|
+
"sharp-grotesk": {
|
|
850
|
+
value: "\"Sharp Grotesk\", sans-serif",
|
|
851
|
+
type: "fontFamilies"
|
|
852
|
+
},
|
|
853
|
+
inter: {
|
|
854
|
+
value: "\"Inter\", sans-serif",
|
|
855
|
+
type: "fontFamilies"
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
font: {
|
|
859
|
+
light: {
|
|
860
|
+
value: "300",
|
|
861
|
+
type: "fontWeights"
|
|
862
|
+
},
|
|
863
|
+
normal: {
|
|
864
|
+
value: "400",
|
|
865
|
+
type: "fontWeights"
|
|
866
|
+
},
|
|
867
|
+
medium: {
|
|
868
|
+
value: "500",
|
|
869
|
+
type: "fontWeights"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
spacing: {
|
|
873
|
+
0: {
|
|
874
|
+
value: "0px",
|
|
875
|
+
type: "spacing"
|
|
876
|
+
},
|
|
877
|
+
1: {
|
|
878
|
+
value: "1px",
|
|
879
|
+
type: "spacing"
|
|
880
|
+
},
|
|
881
|
+
2: {
|
|
882
|
+
value: "2px",
|
|
883
|
+
type: "spacing"
|
|
884
|
+
},
|
|
885
|
+
4: {
|
|
886
|
+
value: "4px",
|
|
887
|
+
type: "spacing"
|
|
888
|
+
},
|
|
889
|
+
6: {
|
|
890
|
+
value: "6px",
|
|
891
|
+
type: "spacing"
|
|
892
|
+
},
|
|
893
|
+
8: {
|
|
894
|
+
value: "8px",
|
|
895
|
+
type: "spacing"
|
|
896
|
+
},
|
|
897
|
+
10: {
|
|
898
|
+
value: "10px",
|
|
899
|
+
type: "spacing"
|
|
900
|
+
},
|
|
901
|
+
12: {
|
|
902
|
+
value: "12px",
|
|
903
|
+
type: "spacing"
|
|
904
|
+
},
|
|
905
|
+
14: {
|
|
906
|
+
value: "14px",
|
|
907
|
+
type: "spacing"
|
|
908
|
+
},
|
|
909
|
+
16: {
|
|
910
|
+
value: "16px",
|
|
911
|
+
type: "spacing"
|
|
912
|
+
},
|
|
913
|
+
20: {
|
|
914
|
+
value: "20px",
|
|
915
|
+
type: "spacing"
|
|
916
|
+
},
|
|
917
|
+
24: {
|
|
918
|
+
value: "24px",
|
|
919
|
+
type: "spacing"
|
|
920
|
+
},
|
|
921
|
+
28: {
|
|
922
|
+
value: "28px",
|
|
923
|
+
type: "spacing"
|
|
924
|
+
},
|
|
925
|
+
32: {
|
|
926
|
+
value: "32px",
|
|
927
|
+
type: "spacing"
|
|
928
|
+
},
|
|
929
|
+
36: {
|
|
930
|
+
value: "36px",
|
|
931
|
+
type: "spacing"
|
|
932
|
+
},
|
|
933
|
+
40: {
|
|
934
|
+
value: "40px",
|
|
935
|
+
type: "spacing"
|
|
936
|
+
},
|
|
937
|
+
44: {
|
|
938
|
+
value: "44px",
|
|
939
|
+
type: "spacing"
|
|
940
|
+
},
|
|
941
|
+
48: {
|
|
942
|
+
value: "48px",
|
|
943
|
+
type: "spacing"
|
|
944
|
+
},
|
|
945
|
+
56: {
|
|
946
|
+
value: "56px",
|
|
947
|
+
type: "spacing"
|
|
948
|
+
},
|
|
949
|
+
64: {
|
|
950
|
+
value: "64px",
|
|
951
|
+
type: "spacing"
|
|
952
|
+
},
|
|
953
|
+
80: {
|
|
954
|
+
value: "80px",
|
|
955
|
+
type: "spacing"
|
|
956
|
+
},
|
|
957
|
+
96: {
|
|
958
|
+
value: "96px",
|
|
959
|
+
type: "spacing"
|
|
960
|
+
},
|
|
961
|
+
112: {
|
|
962
|
+
value: "112px",
|
|
963
|
+
type: "spacing"
|
|
964
|
+
},
|
|
965
|
+
128: {
|
|
966
|
+
value: "128px",
|
|
967
|
+
type: "spacing"
|
|
968
|
+
},
|
|
969
|
+
144: {
|
|
970
|
+
value: "144px",
|
|
971
|
+
type: "spacing"
|
|
972
|
+
},
|
|
973
|
+
160: {
|
|
974
|
+
value: "160px",
|
|
975
|
+
type: "spacing"
|
|
976
|
+
},
|
|
977
|
+
176: {
|
|
978
|
+
value: "176px",
|
|
979
|
+
type: "spacing"
|
|
980
|
+
},
|
|
981
|
+
192: {
|
|
982
|
+
value: "192px",
|
|
983
|
+
type: "spacing"
|
|
984
|
+
},
|
|
985
|
+
208: {
|
|
986
|
+
value: "208px",
|
|
987
|
+
type: "spacing"
|
|
988
|
+
},
|
|
989
|
+
224: {
|
|
990
|
+
value: "224px",
|
|
991
|
+
type: "spacing"
|
|
992
|
+
},
|
|
993
|
+
240: {
|
|
994
|
+
value: "240px",
|
|
995
|
+
type: "spacing"
|
|
996
|
+
},
|
|
997
|
+
256: {
|
|
998
|
+
value: "256px",
|
|
999
|
+
type: "spacing"
|
|
1000
|
+
},
|
|
1001
|
+
288: {
|
|
1002
|
+
value: "288px",
|
|
1003
|
+
type: "spacing"
|
|
1004
|
+
},
|
|
1005
|
+
320: {
|
|
1006
|
+
value: "320px",
|
|
1007
|
+
type: "spacing"
|
|
1008
|
+
},
|
|
1009
|
+
384: {
|
|
1010
|
+
value: "384px",
|
|
1011
|
+
type: "spacing"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
border: {
|
|
1015
|
+
0: {
|
|
1016
|
+
value: "0px",
|
|
1017
|
+
type: "borderWidth"
|
|
1018
|
+
},
|
|
1019
|
+
1: {
|
|
1020
|
+
value: "1px",
|
|
1021
|
+
type: "borderWidth"
|
|
1022
|
+
},
|
|
1023
|
+
2: {
|
|
1024
|
+
value: "2px",
|
|
1025
|
+
type: "borderWidth"
|
|
1026
|
+
},
|
|
1027
|
+
4: {
|
|
1028
|
+
value: "4px",
|
|
1029
|
+
type: "borderWidth"
|
|
1030
|
+
},
|
|
1031
|
+
8: {
|
|
1032
|
+
value: "8px",
|
|
1033
|
+
type: "borderWidth"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
rounded: {
|
|
1037
|
+
none: {
|
|
1038
|
+
value: "0px",
|
|
1039
|
+
type: "borderRadius"
|
|
1040
|
+
},
|
|
1041
|
+
sm: {
|
|
1042
|
+
value: "2px",
|
|
1043
|
+
type: "borderRadius"
|
|
1044
|
+
},
|
|
1045
|
+
base: {
|
|
1046
|
+
value: "4px",
|
|
1047
|
+
type: "borderRadius"
|
|
1048
|
+
},
|
|
1049
|
+
md: {
|
|
1050
|
+
value: "6px",
|
|
1051
|
+
type: "borderRadius"
|
|
1052
|
+
},
|
|
1053
|
+
lg: {
|
|
1054
|
+
value: "8px",
|
|
1055
|
+
type: "borderRadius"
|
|
1056
|
+
},
|
|
1057
|
+
xl: {
|
|
1058
|
+
value: "12px",
|
|
1059
|
+
type: "borderRadius"
|
|
1060
|
+
},
|
|
1061
|
+
"2xl": {
|
|
1062
|
+
value: "16px",
|
|
1063
|
+
type: "borderRadius"
|
|
1064
|
+
},
|
|
1065
|
+
"3xl": {
|
|
1066
|
+
value: "24px",
|
|
1067
|
+
type: "borderRadius"
|
|
1068
|
+
},
|
|
1069
|
+
full: {
|
|
1070
|
+
value: "9999px",
|
|
1071
|
+
type: "borderRadius"
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
breakpoint: {
|
|
1075
|
+
xs: {
|
|
1076
|
+
value: "376px",
|
|
1077
|
+
type: "sizing"
|
|
1078
|
+
},
|
|
1079
|
+
sm: {
|
|
1080
|
+
value: "640px",
|
|
1081
|
+
type: "sizing"
|
|
1082
|
+
},
|
|
1083
|
+
md: {
|
|
1084
|
+
value: "768px",
|
|
1085
|
+
type: "sizing"
|
|
1086
|
+
},
|
|
1087
|
+
lg: {
|
|
1088
|
+
value: "1024px",
|
|
1089
|
+
type: "sizing"
|
|
1090
|
+
},
|
|
1091
|
+
desktop: {
|
|
1092
|
+
value: "1200px",
|
|
1093
|
+
type: "sizing"
|
|
1094
|
+
},
|
|
1095
|
+
xl: {
|
|
1096
|
+
value: "1280px",
|
|
1097
|
+
type: "sizing"
|
|
1098
|
+
},
|
|
1099
|
+
"2xl": {
|
|
1100
|
+
value: "1440px",
|
|
1101
|
+
type: "sizing"
|
|
1102
|
+
},
|
|
1103
|
+
"3xl": {
|
|
1104
|
+
value: "1536px",
|
|
1105
|
+
type: "sizing"
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
shadow: {
|
|
1109
|
+
none: {
|
|
1110
|
+
value: {
|
|
1111
|
+
color: "#000000",
|
|
1112
|
+
type: "dropShadow",
|
|
1113
|
+
x: "0",
|
|
1114
|
+
y: "0",
|
|
1115
|
+
blur: "0",
|
|
1116
|
+
spread: "0"
|
|
1117
|
+
},
|
|
1118
|
+
type: "boxShadow"
|
|
1119
|
+
},
|
|
1120
|
+
sm: {
|
|
1121
|
+
value: {
|
|
1122
|
+
color: "#0000000d",
|
|
1123
|
+
type: "dropShadow",
|
|
1124
|
+
x: "0",
|
|
1125
|
+
y: "1",
|
|
1126
|
+
blur: "2",
|
|
1127
|
+
spread: "0"
|
|
1128
|
+
},
|
|
1129
|
+
type: "boxShadow"
|
|
1130
|
+
},
|
|
1131
|
+
base: {
|
|
1132
|
+
value: [{
|
|
1133
|
+
color: "#0000000f",
|
|
1134
|
+
type: "dropShadow",
|
|
1135
|
+
x: "0",
|
|
1136
|
+
y: "1",
|
|
1137
|
+
blur: "2",
|
|
1138
|
+
spread: "0"
|
|
1139
|
+
}, {
|
|
1140
|
+
color: "#0000001a",
|
|
1141
|
+
type: "dropShadow",
|
|
1142
|
+
x: "0",
|
|
1143
|
+
y: "1",
|
|
1144
|
+
blur: "3",
|
|
1145
|
+
spread: "0"
|
|
1146
|
+
}],
|
|
1147
|
+
type: "boxShadow"
|
|
1148
|
+
},
|
|
1149
|
+
md: {
|
|
1150
|
+
value: [{
|
|
1151
|
+
color: "#0000000f",
|
|
1152
|
+
type: "dropShadow",
|
|
1153
|
+
x: "0",
|
|
1154
|
+
y: "2",
|
|
1155
|
+
blur: "4",
|
|
1156
|
+
spread: "-1"
|
|
1157
|
+
}, {
|
|
1158
|
+
color: "#0000001a",
|
|
1159
|
+
type: "dropShadow",
|
|
1160
|
+
x: "0",
|
|
1161
|
+
y: "4",
|
|
1162
|
+
blur: "6",
|
|
1163
|
+
spread: "-1"
|
|
1164
|
+
}],
|
|
1165
|
+
type: "boxShadow"
|
|
1166
|
+
},
|
|
1167
|
+
lg: {
|
|
1168
|
+
value: [{
|
|
1169
|
+
color: "#0000000d",
|
|
1170
|
+
type: "dropShadow",
|
|
1171
|
+
x: "0",
|
|
1172
|
+
y: "4",
|
|
1173
|
+
blur: "6",
|
|
1174
|
+
spread: "-2"
|
|
1175
|
+
}, {
|
|
1176
|
+
color: "#0000001a",
|
|
1177
|
+
type: "dropShadow",
|
|
1178
|
+
x: "0",
|
|
1179
|
+
y: "10",
|
|
1180
|
+
blur: "15",
|
|
1181
|
+
spread: "-3"
|
|
1182
|
+
}],
|
|
1183
|
+
type: "boxShadow"
|
|
1184
|
+
},
|
|
1185
|
+
xl: {
|
|
1186
|
+
value: [{
|
|
1187
|
+
color: "#0000000a",
|
|
1188
|
+
type: "dropShadow",
|
|
1189
|
+
x: "0",
|
|
1190
|
+
y: "10",
|
|
1191
|
+
blur: "10",
|
|
1192
|
+
spread: "-5"
|
|
1193
|
+
}, {
|
|
1194
|
+
color: "#0000001a",
|
|
1195
|
+
type: "dropShadow",
|
|
1196
|
+
x: "0",
|
|
1197
|
+
y: "20",
|
|
1198
|
+
blur: "25",
|
|
1199
|
+
spread: "-5"
|
|
1200
|
+
}],
|
|
1201
|
+
type: "boxShadow"
|
|
1202
|
+
},
|
|
1203
|
+
"2xl": {
|
|
1204
|
+
value: {
|
|
1205
|
+
color: "#00000040",
|
|
1206
|
+
type: "dropShadow",
|
|
1207
|
+
x: "0",
|
|
1208
|
+
y: "25",
|
|
1209
|
+
blur: "50",
|
|
1210
|
+
spread: "-12"
|
|
1211
|
+
},
|
|
1212
|
+
type: "boxShadow"
|
|
1213
|
+
},
|
|
1214
|
+
inner: {
|
|
1215
|
+
value: {
|
|
1216
|
+
color: "#0000000f",
|
|
1217
|
+
type: "innerShadow",
|
|
1218
|
+
x: "0",
|
|
1219
|
+
y: "2",
|
|
1220
|
+
blur: "4",
|
|
1221
|
+
spread: "0"
|
|
1222
|
+
},
|
|
1223
|
+
type: "boxShadow"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
underline: {
|
|
1227
|
+
value: "underline",
|
|
1228
|
+
type: "textDecoration"
|
|
1229
|
+
},
|
|
1230
|
+
text: {
|
|
1231
|
+
xs: {
|
|
1232
|
+
value: "12px",
|
|
1233
|
+
type: "fontSizes"
|
|
1234
|
+
},
|
|
1235
|
+
sm: {
|
|
1236
|
+
value: "14px",
|
|
1237
|
+
type: "fontSizes"
|
|
1238
|
+
},
|
|
1239
|
+
base: {
|
|
1240
|
+
value: "16px",
|
|
1241
|
+
type: "fontSizes"
|
|
1242
|
+
},
|
|
1243
|
+
lg: {
|
|
1244
|
+
value: "18px",
|
|
1245
|
+
type: "fontSizes"
|
|
1246
|
+
},
|
|
1247
|
+
xl: {
|
|
1248
|
+
value: "20px",
|
|
1249
|
+
type: "fontSizes"
|
|
1250
|
+
},
|
|
1251
|
+
"2xl": {
|
|
1252
|
+
value: "24px",
|
|
1253
|
+
type: "fontSizes"
|
|
1254
|
+
},
|
|
1255
|
+
"3xl": {
|
|
1256
|
+
value: "30px",
|
|
1257
|
+
type: "fontSizes"
|
|
1258
|
+
},
|
|
1259
|
+
"4xl": {
|
|
1260
|
+
value: "36px",
|
|
1261
|
+
type: "fontSizes"
|
|
1262
|
+
},
|
|
1263
|
+
"5xl": {
|
|
1264
|
+
value: "48px",
|
|
1265
|
+
type: "fontSizes"
|
|
1266
|
+
},
|
|
1267
|
+
"6xl": {
|
|
1268
|
+
value: "60px",
|
|
1269
|
+
type: "fontSizes"
|
|
1270
|
+
},
|
|
1271
|
+
"7xl": {
|
|
1272
|
+
value: "72px",
|
|
1273
|
+
type: "fontSizes"
|
|
1274
|
+
},
|
|
1275
|
+
"8xl": {
|
|
1276
|
+
value: "96px",
|
|
1277
|
+
type: "fontSizes"
|
|
1278
|
+
},
|
|
1279
|
+
"9xl": {
|
|
1280
|
+
value: "128px",
|
|
1281
|
+
type: "fontSizes"
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
leading: {
|
|
1285
|
+
xs: {
|
|
1286
|
+
value: "16px",
|
|
1287
|
+
type: "lineHeights"
|
|
1288
|
+
},
|
|
1289
|
+
sm: {
|
|
1290
|
+
value: "18px",
|
|
1291
|
+
type: "lineHeights"
|
|
1292
|
+
},
|
|
1293
|
+
base: {
|
|
1294
|
+
value: "20px",
|
|
1295
|
+
type: "lineHeights"
|
|
1296
|
+
},
|
|
1297
|
+
lg: {
|
|
1298
|
+
value: "24px",
|
|
1299
|
+
type: "lineHeights"
|
|
1300
|
+
},
|
|
1301
|
+
xl: {
|
|
1302
|
+
value: "28px",
|
|
1303
|
+
type: "lineHeights"
|
|
1304
|
+
},
|
|
1305
|
+
"2xl": {
|
|
1306
|
+
value: "32px",
|
|
1307
|
+
type: "lineHeights"
|
|
1308
|
+
},
|
|
1309
|
+
"3xl": {
|
|
1310
|
+
value: "36px",
|
|
1311
|
+
type: "lineHeights"
|
|
1312
|
+
},
|
|
1313
|
+
"4xl": {
|
|
1314
|
+
value: "40px",
|
|
1315
|
+
type: "lineHeights"
|
|
1316
|
+
},
|
|
1317
|
+
"5xl": {
|
|
1318
|
+
value: "48px",
|
|
1319
|
+
type: "lineHeights"
|
|
1320
|
+
},
|
|
1321
|
+
"6xl": {
|
|
1322
|
+
value: "60px",
|
|
1323
|
+
type: "lineHeights"
|
|
1324
|
+
},
|
|
1325
|
+
"7xl": {
|
|
1326
|
+
value: "72px",
|
|
1327
|
+
type: "lineHeights"
|
|
1328
|
+
},
|
|
1329
|
+
"8xl": {
|
|
1330
|
+
value: "96px",
|
|
1331
|
+
type: "lineHeights"
|
|
1332
|
+
},
|
|
1333
|
+
"9xl": {
|
|
1334
|
+
value: "128px",
|
|
1335
|
+
type: "lineHeights"
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
alias: {
|
|
1340
|
+
avatar: {
|
|
1341
|
+
initials: {
|
|
1342
|
+
"background-color": {
|
|
1343
|
+
value: "{core.black}",
|
|
1344
|
+
type: "color"
|
|
1345
|
+
},
|
|
1346
|
+
color: {
|
|
1347
|
+
value: "{core.white}",
|
|
1348
|
+
type: "color"
|
|
1349
|
+
},
|
|
1350
|
+
spacing: {
|
|
1351
|
+
value: "{spacing.32}",
|
|
1352
|
+
type: "spacing"
|
|
1353
|
+
},
|
|
1354
|
+
"border-radius": {
|
|
1355
|
+
value: "{rounded.full}",
|
|
1356
|
+
type: "borderRadius"
|
|
1357
|
+
},
|
|
1358
|
+
"font-family": {
|
|
1359
|
+
value: "{font-sans.inter}",
|
|
1360
|
+
type: "fontFamilies"
|
|
1361
|
+
},
|
|
1362
|
+
"font-weight": {
|
|
1363
|
+
value: "{font.normal}",
|
|
1364
|
+
type: "fontWeights"
|
|
1365
|
+
},
|
|
1366
|
+
"font-size": {
|
|
1367
|
+
value: "{text.sm}",
|
|
1368
|
+
type: "fontSizes"
|
|
1369
|
+
},
|
|
1370
|
+
"line-height": {
|
|
1371
|
+
value: "{leading.sm}",
|
|
1372
|
+
type: "lineHeights"
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
image: {
|
|
1376
|
+
"border-radius": {
|
|
1377
|
+
value: "{rounded.full}",
|
|
1378
|
+
type: "borderRadius"
|
|
1379
|
+
},
|
|
1380
|
+
sm: {
|
|
1381
|
+
value: "{spacing.16}",
|
|
1382
|
+
type: "spacing"
|
|
1383
|
+
},
|
|
1384
|
+
md: {
|
|
1385
|
+
value: "{spacing.24}",
|
|
1386
|
+
type: "spacing"
|
|
1387
|
+
},
|
|
1388
|
+
lg: {
|
|
1389
|
+
value: "{spacing.32}",
|
|
1390
|
+
type: "spacing"
|
|
1391
|
+
},
|
|
1392
|
+
xl: {
|
|
1393
|
+
value: "{spacing.40}",
|
|
1394
|
+
type: "spacing"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
"nav-link": {
|
|
1399
|
+
spacing: {
|
|
1400
|
+
value: "{spacing.32}",
|
|
1401
|
+
type: "spacing"
|
|
1402
|
+
},
|
|
1403
|
+
"border-radius": {
|
|
1404
|
+
value: "{rounded.base}",
|
|
1405
|
+
type: "borderRadius"
|
|
1406
|
+
},
|
|
1407
|
+
"font-family": {
|
|
1408
|
+
value: "{font-sans.inter}",
|
|
1409
|
+
type: "fontFamilies"
|
|
1410
|
+
},
|
|
1411
|
+
"font-weight": {
|
|
1412
|
+
value: "{font.medium}",
|
|
1413
|
+
type: "fontWeights"
|
|
1414
|
+
},
|
|
1415
|
+
"line-height": {
|
|
1416
|
+
value: "{leading.sm}",
|
|
1417
|
+
type: "lineHeights"
|
|
1418
|
+
},
|
|
1419
|
+
"font-size": {
|
|
1420
|
+
value: "{text.sm}",
|
|
1421
|
+
type: "fontSizes"
|
|
1422
|
+
},
|
|
1423
|
+
"background-color": {
|
|
1424
|
+
default: {
|
|
1425
|
+
value: "none",
|
|
1426
|
+
type: "color"
|
|
1427
|
+
},
|
|
1428
|
+
hover: {
|
|
1429
|
+
value: "{background.alice-blue}",
|
|
1430
|
+
type: "color"
|
|
1431
|
+
},
|
|
1432
|
+
pressed: {
|
|
1433
|
+
value: "{background.alice-blue}",
|
|
1434
|
+
type: "color"
|
|
1435
|
+
},
|
|
1436
|
+
focus: {
|
|
1437
|
+
value: "{background.alice-blue}",
|
|
1438
|
+
type: "color"
|
|
1439
|
+
},
|
|
1440
|
+
disabled: {
|
|
1441
|
+
value: "none",
|
|
1442
|
+
type: "color"
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
color: {
|
|
1446
|
+
default: {
|
|
1447
|
+
value: "{grey.500}",
|
|
1448
|
+
type: "color"
|
|
1449
|
+
},
|
|
1450
|
+
hover: {
|
|
1451
|
+
value: "{blue.500}",
|
|
1452
|
+
type: "color"
|
|
1453
|
+
},
|
|
1454
|
+
pressed: {
|
|
1455
|
+
value: "{blue.500}",
|
|
1456
|
+
type: "color"
|
|
1457
|
+
},
|
|
1458
|
+
focus: {
|
|
1459
|
+
value: "{blue.500}",
|
|
1460
|
+
type: "color"
|
|
1461
|
+
},
|
|
1462
|
+
disabled: {
|
|
1463
|
+
value: "{grey.100}",
|
|
1464
|
+
type: "color"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
border: {
|
|
1468
|
+
default: {
|
|
1469
|
+
value: "none",
|
|
1470
|
+
type: "color"
|
|
1471
|
+
},
|
|
1472
|
+
hover: {
|
|
1473
|
+
value: "none",
|
|
1474
|
+
type: "color"
|
|
1475
|
+
},
|
|
1476
|
+
pressed: {
|
|
1477
|
+
value: "none",
|
|
1478
|
+
type: "color"
|
|
1479
|
+
},
|
|
1480
|
+
focus: {
|
|
1481
|
+
value: "{blue.500}",
|
|
1482
|
+
type: "color"
|
|
1483
|
+
},
|
|
1484
|
+
disabled: {
|
|
1485
|
+
value: "none",
|
|
1486
|
+
type: "color"
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
"border-width": {
|
|
1490
|
+
default: {
|
|
1491
|
+
value: "none",
|
|
1492
|
+
type: "borderWidth"
|
|
1493
|
+
},
|
|
1494
|
+
hover: {
|
|
1495
|
+
value: "none",
|
|
1496
|
+
type: "borderWidth"
|
|
1497
|
+
},
|
|
1498
|
+
pressed: {
|
|
1499
|
+
value: "none",
|
|
1500
|
+
type: "borderWidth"
|
|
1501
|
+
},
|
|
1502
|
+
focus: {
|
|
1503
|
+
value: "{border.1}",
|
|
1504
|
+
type: "borderWidth"
|
|
1505
|
+
},
|
|
1506
|
+
disabled: {
|
|
1507
|
+
value: "none",
|
|
1508
|
+
type: "borderWidth"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
"box-shadow": {
|
|
1512
|
+
default: {
|
|
1513
|
+
value: "{shadow.none}",
|
|
1514
|
+
type: "boxShadow"
|
|
1515
|
+
},
|
|
1516
|
+
hover: {
|
|
1517
|
+
value: "{shadow.none}",
|
|
1518
|
+
type: "boxShadow"
|
|
1519
|
+
},
|
|
1520
|
+
pressed: {
|
|
1521
|
+
value: "{shadow.inner}",
|
|
1522
|
+
type: "boxShadow"
|
|
1523
|
+
},
|
|
1524
|
+
focus: {
|
|
1525
|
+
value: "none",
|
|
1526
|
+
type: "boxShadow"
|
|
1527
|
+
},
|
|
1528
|
+
disabled: {
|
|
1529
|
+
value: "none",
|
|
1530
|
+
type: "boxShadow"
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
"icon-button": {
|
|
1535
|
+
button: {
|
|
1536
|
+
sm: {
|
|
1537
|
+
value: "{spacing.28}",
|
|
1538
|
+
type: "spacing"
|
|
1539
|
+
},
|
|
1540
|
+
md: {
|
|
1541
|
+
value: "{spacing.32}",
|
|
1542
|
+
type: "spacing"
|
|
1543
|
+
},
|
|
1544
|
+
lg: {
|
|
1545
|
+
value: "{spacing.40}",
|
|
1546
|
+
type: "spacing"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
icon: {
|
|
1550
|
+
sm: {
|
|
1551
|
+
value: "{spacing.16}",
|
|
1552
|
+
type: "spacing"
|
|
1553
|
+
},
|
|
1554
|
+
md: {
|
|
1555
|
+
value: "{spacing.20}",
|
|
1556
|
+
type: "spacing"
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
primary: {
|
|
1560
|
+
"background-color": {
|
|
1561
|
+
default: {
|
|
1562
|
+
value: "{blue.500}",
|
|
1563
|
+
type: "color"
|
|
1564
|
+
},
|
|
1565
|
+
hover: {
|
|
1566
|
+
value: "{blue.600}",
|
|
1567
|
+
type: "color"
|
|
1568
|
+
},
|
|
1569
|
+
pressed: {
|
|
1570
|
+
value: "{blue.600}",
|
|
1571
|
+
type: "color"
|
|
1572
|
+
},
|
|
1573
|
+
focus: {
|
|
1574
|
+
value: "{blue.500}",
|
|
1575
|
+
type: "color"
|
|
1576
|
+
},
|
|
1577
|
+
disabled: {
|
|
1578
|
+
value: "{blue.200}",
|
|
1579
|
+
type: "color"
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
color: {
|
|
1583
|
+
default: {
|
|
1584
|
+
value: "{core.white}",
|
|
1585
|
+
type: "color"
|
|
1586
|
+
},
|
|
1587
|
+
hover: {
|
|
1588
|
+
value: "{core.white}",
|
|
1589
|
+
type: "color"
|
|
1590
|
+
},
|
|
1591
|
+
pressed: {
|
|
1592
|
+
value: "{core.white}",
|
|
1593
|
+
type: "color"
|
|
1594
|
+
},
|
|
1595
|
+
focus: {
|
|
1596
|
+
value: "{core.white}",
|
|
1597
|
+
type: "color"
|
|
1598
|
+
},
|
|
1599
|
+
disabled: {
|
|
1600
|
+
value: "{core.white}",
|
|
1601
|
+
type: "color"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
border: {
|
|
1605
|
+
default: {
|
|
1606
|
+
value: "none",
|
|
1607
|
+
type: "color"
|
|
1608
|
+
},
|
|
1609
|
+
hover: {
|
|
1610
|
+
value: "none",
|
|
1611
|
+
type: "color"
|
|
1612
|
+
},
|
|
1613
|
+
pressed: {
|
|
1614
|
+
value: "none",
|
|
1615
|
+
type: "color"
|
|
1616
|
+
},
|
|
1617
|
+
focus: {
|
|
1618
|
+
value: "{blue.600}",
|
|
1619
|
+
type: "color"
|
|
1620
|
+
},
|
|
1621
|
+
disabled: {
|
|
1622
|
+
value: "none",
|
|
1623
|
+
type: "color"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
"border-width": {
|
|
1627
|
+
default: {
|
|
1628
|
+
value: "none",
|
|
1629
|
+
type: "borderWidth"
|
|
1630
|
+
},
|
|
1631
|
+
hover: {
|
|
1632
|
+
value: "none",
|
|
1633
|
+
type: "borderWidth"
|
|
1634
|
+
},
|
|
1635
|
+
pressed: {
|
|
1636
|
+
value: "none",
|
|
1637
|
+
type: "borderWidth"
|
|
1638
|
+
},
|
|
1639
|
+
focus: {
|
|
1640
|
+
value: "{border.1}",
|
|
1641
|
+
type: "borderWidth"
|
|
1642
|
+
},
|
|
1643
|
+
disabled: {
|
|
1644
|
+
value: "none",
|
|
1645
|
+
type: "borderWidth"
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
secondary: {
|
|
1650
|
+
"background-color": {
|
|
1651
|
+
default: {
|
|
1652
|
+
value: "none",
|
|
1653
|
+
type: "color"
|
|
1654
|
+
},
|
|
1655
|
+
hover: {
|
|
1656
|
+
value: "{grey.100}",
|
|
1657
|
+
type: "color"
|
|
1658
|
+
},
|
|
1659
|
+
pressed: {
|
|
1660
|
+
value: "{grey.100}",
|
|
1661
|
+
type: "color"
|
|
1662
|
+
},
|
|
1663
|
+
focus: {
|
|
1664
|
+
value: "none",
|
|
1665
|
+
type: "color"
|
|
1666
|
+
},
|
|
1667
|
+
disabled: {
|
|
1668
|
+
value: "none",
|
|
1669
|
+
type: "color"
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
color: {
|
|
1673
|
+
default: {
|
|
1674
|
+
value: "{grey.500}",
|
|
1675
|
+
type: "color"
|
|
1676
|
+
},
|
|
1677
|
+
hover: {
|
|
1678
|
+
value: "{grey.500}",
|
|
1679
|
+
type: "color"
|
|
1680
|
+
},
|
|
1681
|
+
pressed: {
|
|
1682
|
+
value: "{grey.500}",
|
|
1683
|
+
type: "color"
|
|
1684
|
+
},
|
|
1685
|
+
focus: {
|
|
1686
|
+
value: "{grey.500}",
|
|
1687
|
+
type: "color"
|
|
1688
|
+
},
|
|
1689
|
+
disabled: {
|
|
1690
|
+
value: "{grey.100}",
|
|
1691
|
+
type: "color"
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
border: {
|
|
1695
|
+
default: {
|
|
1696
|
+
value: "{grey.200}",
|
|
1697
|
+
type: "color"
|
|
1698
|
+
},
|
|
1699
|
+
hover: {
|
|
1700
|
+
value: "{grey.200}",
|
|
1701
|
+
type: "color"
|
|
1702
|
+
},
|
|
1703
|
+
pressed: {
|
|
1704
|
+
value: "{grey.200}",
|
|
1705
|
+
type: "color"
|
|
1706
|
+
},
|
|
1707
|
+
focus: {
|
|
1708
|
+
value: "{blue.600}",
|
|
1709
|
+
type: "color"
|
|
1710
|
+
},
|
|
1711
|
+
disabled: {
|
|
1712
|
+
value: "{grey.100}",
|
|
1713
|
+
type: "color"
|
|
1714
|
+
}
|
|
1715
|
+
},
|
|
1716
|
+
"border-width": {
|
|
1717
|
+
value: "{border.1}",
|
|
1718
|
+
type: "borderWidth"
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1721
|
+
notification: {
|
|
1722
|
+
"background-color": {
|
|
1723
|
+
default: {
|
|
1724
|
+
value: "none",
|
|
1725
|
+
type: "color"
|
|
1726
|
+
},
|
|
1727
|
+
hover: {
|
|
1728
|
+
value: "{grey.100}",
|
|
1729
|
+
type: "color"
|
|
1730
|
+
},
|
|
1731
|
+
pressed: {
|
|
1732
|
+
value: "{grey.100}",
|
|
1733
|
+
type: "color"
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
color: {
|
|
1737
|
+
default: {
|
|
1738
|
+
value: "{grey.500}",
|
|
1739
|
+
type: "color"
|
|
1740
|
+
},
|
|
1741
|
+
hover: {
|
|
1742
|
+
value: "{grey.500}",
|
|
1743
|
+
type: "color"
|
|
1744
|
+
},
|
|
1745
|
+
pressed: {
|
|
1746
|
+
value: "{grey.500}",
|
|
1747
|
+
type: "color"
|
|
1748
|
+
},
|
|
1749
|
+
focus: {
|
|
1750
|
+
value: "{grey.500}",
|
|
1751
|
+
type: "color"
|
|
1752
|
+
},
|
|
1753
|
+
disabled: {
|
|
1754
|
+
value: "{grey.100}",
|
|
1755
|
+
type: "color"
|
|
1756
|
+
}
|
|
1757
|
+
},
|
|
1758
|
+
border: {
|
|
1759
|
+
default: {
|
|
1760
|
+
value: "{grey.200}",
|
|
1761
|
+
type: "color"
|
|
1762
|
+
},
|
|
1763
|
+
hover: {
|
|
1764
|
+
value: "{grey.200}",
|
|
1765
|
+
type: "color"
|
|
1766
|
+
},
|
|
1767
|
+
pressed: {
|
|
1768
|
+
value: "{grey.200}",
|
|
1769
|
+
type: "color"
|
|
1770
|
+
},
|
|
1771
|
+
focus: {
|
|
1772
|
+
value: "{grey.200}",
|
|
1773
|
+
type: "color"
|
|
1774
|
+
},
|
|
1775
|
+
disabled: {
|
|
1776
|
+
value: "{grey.100}",
|
|
1777
|
+
type: "color"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
"border-width": {
|
|
1781
|
+
value: "{border.1}",
|
|
1782
|
+
type: "borderWidth"
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
"notification-badge": {
|
|
1786
|
+
"background-color": {
|
|
1787
|
+
default: {
|
|
1788
|
+
value: "{blue.500}",
|
|
1789
|
+
type: "color"
|
|
1790
|
+
},
|
|
1791
|
+
hover: {
|
|
1792
|
+
value: "{blue.500}",
|
|
1793
|
+
type: "color"
|
|
1794
|
+
},
|
|
1795
|
+
pressed: {
|
|
1796
|
+
value: "{blue.500}",
|
|
1797
|
+
type: "color"
|
|
1798
|
+
},
|
|
1799
|
+
focus: {
|
|
1800
|
+
value: "{blue.500}",
|
|
1801
|
+
type: "color"
|
|
1802
|
+
},
|
|
1803
|
+
disabled: {
|
|
1804
|
+
value: "{grey.200}",
|
|
1805
|
+
type: "color"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
border: {
|
|
1809
|
+
default: {
|
|
1810
|
+
value: "{core.white}",
|
|
1811
|
+
type: "color"
|
|
1812
|
+
},
|
|
1813
|
+
hover: {
|
|
1814
|
+
value: "{core.white}",
|
|
1815
|
+
type: "color"
|
|
1816
|
+
},
|
|
1817
|
+
pressed: {
|
|
1818
|
+
value: "{core.white}",
|
|
1819
|
+
type: "color"
|
|
1820
|
+
},
|
|
1821
|
+
focus: {
|
|
1822
|
+
value: "{core.white}",
|
|
1823
|
+
type: "color"
|
|
1824
|
+
},
|
|
1825
|
+
disabled: {
|
|
1826
|
+
value: "{core.white}",
|
|
1827
|
+
type: "color"
|
|
1828
|
+
}
|
|
1829
|
+
},
|
|
1830
|
+
sm: {
|
|
1831
|
+
value: "{spacing.6}",
|
|
1832
|
+
type: "spacing"
|
|
1833
|
+
},
|
|
1834
|
+
md: {
|
|
1835
|
+
value: "{spacing.8}",
|
|
1836
|
+
type: "spacing"
|
|
1837
|
+
},
|
|
1838
|
+
lg: {
|
|
1839
|
+
value: "{spacing.10}",
|
|
1840
|
+
type: "spacing"
|
|
1841
|
+
},
|
|
1842
|
+
"border-width": {
|
|
1843
|
+
value: "{border.1}",
|
|
1844
|
+
type: "borderWidth"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
invisible: {
|
|
1848
|
+
"background-color": {
|
|
1849
|
+
default: {
|
|
1850
|
+
value: "none",
|
|
1851
|
+
type: "color"
|
|
1852
|
+
},
|
|
1853
|
+
hover: {
|
|
1854
|
+
value: "{grey.100}",
|
|
1855
|
+
type: "color"
|
|
1856
|
+
},
|
|
1857
|
+
pressed: {
|
|
1858
|
+
value: "{grey.100}",
|
|
1859
|
+
type: "color"
|
|
1860
|
+
},
|
|
1861
|
+
focus: {
|
|
1862
|
+
value: "none",
|
|
1863
|
+
type: "color"
|
|
1864
|
+
},
|
|
1865
|
+
disabled: {
|
|
1866
|
+
value: "none",
|
|
1867
|
+
type: "color"
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
color: {
|
|
1871
|
+
default: {
|
|
1872
|
+
value: "{grey.500}",
|
|
1873
|
+
type: "color"
|
|
1874
|
+
},
|
|
1875
|
+
hover: {
|
|
1876
|
+
value: "{grey.500}",
|
|
1877
|
+
type: "color"
|
|
1878
|
+
},
|
|
1879
|
+
pressed: {
|
|
1880
|
+
value: "{grey.500}",
|
|
1881
|
+
type: "color"
|
|
1882
|
+
},
|
|
1883
|
+
focus: {
|
|
1884
|
+
value: "{grey.500}",
|
|
1885
|
+
type: "color"
|
|
1886
|
+
},
|
|
1887
|
+
disabled: {
|
|
1888
|
+
value: "{grey.100}",
|
|
1889
|
+
type: "color"
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1892
|
+
border: {
|
|
1893
|
+
default: {
|
|
1894
|
+
value: "none",
|
|
1895
|
+
type: "color"
|
|
1896
|
+
},
|
|
1897
|
+
hover: {
|
|
1898
|
+
value: "none",
|
|
1899
|
+
type: "color"
|
|
1900
|
+
},
|
|
1901
|
+
pressed: {
|
|
1902
|
+
value: "none",
|
|
1903
|
+
type: "color"
|
|
1904
|
+
},
|
|
1905
|
+
focus: {
|
|
1906
|
+
value: "{blue.600}",
|
|
1907
|
+
type: "color"
|
|
1908
|
+
},
|
|
1909
|
+
disabled: {
|
|
1910
|
+
value: "{grey.100}",
|
|
1911
|
+
type: "color"
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
"border-width": {
|
|
1915
|
+
default: {
|
|
1916
|
+
value: "none",
|
|
1917
|
+
type: "borderWidth"
|
|
1918
|
+
},
|
|
1919
|
+
hover: {
|
|
1920
|
+
value: "none",
|
|
1921
|
+
type: "borderWidth"
|
|
1922
|
+
},
|
|
1923
|
+
pressed: {
|
|
1924
|
+
value: "none",
|
|
1925
|
+
type: "borderWidth"
|
|
1926
|
+
},
|
|
1927
|
+
focus: {
|
|
1928
|
+
value: "{border.1}",
|
|
1929
|
+
type: "borderWidth"
|
|
1930
|
+
},
|
|
1931
|
+
disabled: {
|
|
1932
|
+
value: "{border.1}",
|
|
1933
|
+
type: "borderWidth"
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
"border-radius": {
|
|
1938
|
+
value: "{rounded.base}",
|
|
1939
|
+
type: "borderRadius"
|
|
1940
|
+
},
|
|
1941
|
+
"box-shadow": {
|
|
1942
|
+
default: {
|
|
1943
|
+
value: "{shadow.none}",
|
|
1944
|
+
type: "boxShadow"
|
|
1945
|
+
},
|
|
1946
|
+
hover: {
|
|
1947
|
+
value: "{shadow.none}",
|
|
1948
|
+
type: "boxShadow"
|
|
1949
|
+
},
|
|
1950
|
+
pressed: {
|
|
1951
|
+
value: "{shadow.inner}",
|
|
1952
|
+
type: "boxShadow"
|
|
1953
|
+
},
|
|
1954
|
+
focus: {
|
|
1955
|
+
value: "none",
|
|
1956
|
+
type: "boxShadow"
|
|
1957
|
+
},
|
|
1958
|
+
disabled: {
|
|
1959
|
+
value: "none",
|
|
1960
|
+
type: "boxShadow"
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
breadcrumbs: {
|
|
1965
|
+
color: {
|
|
1966
|
+
"previous-page": {
|
|
1967
|
+
value: "{blue.500}",
|
|
1968
|
+
type: "color"
|
|
1969
|
+
},
|
|
1970
|
+
divider: {
|
|
1971
|
+
value: "{grey.300}",
|
|
1972
|
+
type: "color"
|
|
1973
|
+
},
|
|
1974
|
+
"current-page": {
|
|
1975
|
+
value: "{grey.500}",
|
|
1976
|
+
type: "color"
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"font-family": {
|
|
1980
|
+
value: "{font-sans.inter}",
|
|
1981
|
+
type: "fontFamilies"
|
|
1982
|
+
},
|
|
1983
|
+
"font-weight": {
|
|
1984
|
+
value: "{font.normal}",
|
|
1985
|
+
type: "fontWeights"
|
|
1986
|
+
},
|
|
1987
|
+
"line-height": {
|
|
1988
|
+
value: "{leading.sm}",
|
|
1989
|
+
type: "lineHeights"
|
|
1990
|
+
},
|
|
1991
|
+
"font-size": {
|
|
1992
|
+
value: "{text.sm}",
|
|
1993
|
+
type: "fontSizes"
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
"main-content": {
|
|
1997
|
+
sm: {
|
|
1998
|
+
value: "{spacing.32}",
|
|
1999
|
+
type: "spacing"
|
|
2000
|
+
},
|
|
2001
|
+
base: {
|
|
2002
|
+
value: "{spacing.48}",
|
|
2003
|
+
type: "spacing"
|
|
2004
|
+
},
|
|
2005
|
+
lg: {
|
|
2006
|
+
value: "{spacing.64}",
|
|
2007
|
+
type: "spacing"
|
|
2008
|
+
}
|
|
2009
|
+
},
|
|
2010
|
+
"section-content": {
|
|
2011
|
+
none: {
|
|
2012
|
+
value: "{spacing.0}",
|
|
2013
|
+
type: "spacing"
|
|
2014
|
+
},
|
|
2015
|
+
xs: {
|
|
2016
|
+
value: "{spacing.8}",
|
|
2017
|
+
type: "spacing"
|
|
2018
|
+
},
|
|
2019
|
+
sm: {
|
|
2020
|
+
value: "{spacing.16}",
|
|
2021
|
+
type: "spacing"
|
|
2022
|
+
},
|
|
2023
|
+
base: {
|
|
2024
|
+
value: "{spacing.24}",
|
|
2025
|
+
type: "spacing"
|
|
2026
|
+
},
|
|
2027
|
+
lg: {
|
|
2028
|
+
value: "{spacing.32}",
|
|
2029
|
+
type: "spacing"
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
},
|
|
2033
|
+
$themes: [],
|
|
2034
|
+
$metadata: { tokenSetOrder: ["global", "alias"] }
|
|
2035
|
+
}, Y = {
|
|
2036
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
2037
|
+
description: "Lista dei colori da includere nella safelist di Tailwind. Per aggiungere un nuovo colore, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
|
|
2038
|
+
safeColorNames: [
|
|
2039
|
+
"blue",
|
|
2040
|
+
"purple",
|
|
2041
|
+
"orange",
|
|
2042
|
+
"pink",
|
|
2043
|
+
"yellow",
|
|
2044
|
+
"grey",
|
|
2045
|
+
"core"
|
|
2046
|
+
]
|
|
2047
|
+
}, X = {
|
|
2048
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
2049
|
+
description: "Lista dei colori semantici da includere nella safelist di Tailwind. Per aggiungere un nuovo colore semantico, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
|
|
2050
|
+
semanticColorNames: [
|
|
2051
|
+
"error",
|
|
2052
|
+
"warning",
|
|
2053
|
+
"success",
|
|
2054
|
+
"info"
|
|
2055
|
+
]
|
|
2056
|
+
}, Z = Y.safeColorNames, ee = X.semanticColorNames, Q = {};
|
|
2057
|
+
Z.forEach((e) => {
|
|
2058
|
+
let t = J.global[e];
|
|
2059
|
+
t && Object.keys(t).forEach((n) => {
|
|
2060
|
+
let r = t[n]?.value;
|
|
2061
|
+
r && (Q[e] || (Q[e] = {}), Q[e][n] = r);
|
|
2062
|
+
});
|
|
1290
2063
|
});
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
});
|
|
2064
|
+
var $ = J.global.semantic;
|
|
2065
|
+
$ && ee.forEach((e) => {
|
|
2066
|
+
let t = $[e];
|
|
2067
|
+
t && typeof t == "object" && Object.keys(t).forEach((n) => {
|
|
2068
|
+
let r = t[n]?.value;
|
|
2069
|
+
if (r) {
|
|
2070
|
+
let t = `semantic-${e}`;
|
|
2071
|
+
Q[t] || (Q[t] = {}), Q[t][n] = r;
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
1302
2074
|
});
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
], 512),
|
|
1410
|
-
C(a.$slots, "opener-end"),
|
|
1411
|
-
e.teleport ? U("", !0) : T((M(), V("div", {
|
|
1412
|
-
key: 0,
|
|
1413
|
-
ref_key: "content",
|
|
1414
|
-
ref: r,
|
|
1415
|
-
class: q(["fz__floating__content w-full sm:w-auto", A.value])
|
|
1416
|
-
}, [
|
|
1417
|
-
C(a.$slots, "default", {
|
|
1418
|
-
isOpen: e.isOpen,
|
|
1419
|
-
floating: P(u)
|
|
1420
|
-
})
|
|
1421
|
-
], 2)), [
|
|
1422
|
-
[G, a.$slots.default && (!a.$slots.opener || a.$slots.opener && e.isOpen)]
|
|
1423
|
-
]),
|
|
1424
|
-
e.teleport ? (M(), te(oe, {
|
|
1425
|
-
key: 1,
|
|
1426
|
-
to: "body"
|
|
1427
|
-
}, [
|
|
1428
|
-
T(D("div", {
|
|
1429
|
-
ref_key: "content",
|
|
1430
|
-
ref: r,
|
|
1431
|
-
class: q(["fz__floating__content", A.value])
|
|
1432
|
-
}, [
|
|
1433
|
-
C(a.$slots, "default", {
|
|
1434
|
-
isOpen: e.isOpen,
|
|
1435
|
-
floating: P(u)
|
|
1436
|
-
})
|
|
1437
|
-
], 2), [
|
|
1438
|
-
[G, a.$slots.default && (!a.$slots.opener || a.$slots.opener && e.isOpen)]
|
|
1439
|
-
])
|
|
1440
|
-
])) : U("", !0)
|
|
1441
|
-
]));
|
|
1442
|
-
}
|
|
2075
|
+
//#endregion
|
|
2076
|
+
//#region ../style/src/constants.ts
|
|
2077
|
+
var te = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {}), ne = /* @__PURE__ */ o({
|
|
2078
|
+
__name: "FzFloating",
|
|
2079
|
+
props: {
|
|
2080
|
+
isOpen: {
|
|
2081
|
+
type: Boolean,
|
|
2082
|
+
default: !1
|
|
2083
|
+
},
|
|
2084
|
+
position: { default: "auto" },
|
|
2085
|
+
container: {},
|
|
2086
|
+
contentClass: {},
|
|
2087
|
+
openerClass: {},
|
|
2088
|
+
overrideContentClass: { type: Boolean },
|
|
2089
|
+
overrideOpener: {},
|
|
2090
|
+
teleport: {
|
|
2091
|
+
type: Boolean,
|
|
2092
|
+
default: !1
|
|
2093
|
+
},
|
|
2094
|
+
useViewport: { type: Boolean }
|
|
2095
|
+
},
|
|
2096
|
+
emits: ["fzfloating:setPosition"],
|
|
2097
|
+
setup(o, { expose: s, emit: d }) {
|
|
2098
|
+
let p = o, C = d, w = m(null), T = m(null), E = y(), D = H(`(max-width: ${te.xs})`), O = !1, k = !1, A = null, j = null, M = {
|
|
2099
|
+
position: p.position,
|
|
2100
|
+
element: { domRef: w },
|
|
2101
|
+
container: { domRef: g(p.container || document.body) },
|
|
2102
|
+
opener: { domRef: g(null) },
|
|
2103
|
+
useViewport: p.useViewport,
|
|
2104
|
+
callback(...e) {
|
|
2105
|
+
C("fzfloating:setPosition", ...e);
|
|
2106
|
+
}
|
|
2107
|
+
}, N = _(M);
|
|
2108
|
+
E.opener && (M.opener = { domRef: T });
|
|
2109
|
+
let P = V(N), F = () => {
|
|
2110
|
+
O || !k || (O = !0, requestAnimationFrame(() => {
|
|
2111
|
+
k && p.isOpen && P.setPosition(), O = !1;
|
|
2112
|
+
}));
|
|
2113
|
+
};
|
|
2114
|
+
u(() => {
|
|
2115
|
+
k = !0;
|
|
2116
|
+
});
|
|
2117
|
+
let I = () => {
|
|
2118
|
+
F();
|
|
2119
|
+
}, L = () => {
|
|
2120
|
+
F();
|
|
2121
|
+
}, R = () => {
|
|
2122
|
+
window.addEventListener("scroll", I, !0), window.addEventListener("resize", L), w.value && !A && (A = new ResizeObserver(() => {
|
|
2123
|
+
F();
|
|
2124
|
+
}), A.observe(w.value)), T.value && !j && (j = new ResizeObserver(() => {
|
|
2125
|
+
F();
|
|
2126
|
+
}), j.observe(T.value));
|
|
2127
|
+
}, z = () => {
|
|
2128
|
+
window.removeEventListener("scroll", I, !0), window.removeEventListener("resize", L), A &&= (A.disconnect(), null), j &&= (j.disconnect(), null);
|
|
2129
|
+
};
|
|
2130
|
+
x(() => p.position, () => F()), x(() => p.isOpen, (e) => {
|
|
2131
|
+
if (!e || !w.value || !k) {
|
|
2132
|
+
z();
|
|
2133
|
+
return;
|
|
2134
|
+
}
|
|
2135
|
+
R();
|
|
2136
|
+
let t = T.value?.getBoundingClientRect();
|
|
2137
|
+
w.value.style.position = "fixed", w.value.style.top = "0px", w.value.style.left = "0px", w.value.style.transform = "none", w.value.style.width = D.value ? t?.width + "px" : "auto", P.setPosition();
|
|
2138
|
+
}), x(() => p.overrideOpener, (e) => {
|
|
2139
|
+
e && N.opener && N.opener.value && (N.opener.value = { domRef: e });
|
|
2140
|
+
}), l(() => {
|
|
2141
|
+
k = !1, z();
|
|
2142
|
+
});
|
|
2143
|
+
let B = (e) => e.startsWith("bottom") ? "mt-4" : e.startsWith("top") ? "mb-4" : e.startsWith("left") ? "mr-4" : e.startsWith("right") ? "ml-4" : "mt-4", U = t(() => B(P.actualPosition?.value ?? p.position)), W = t(() => p.overrideContentClass ? p.contentClass : [
|
|
2144
|
+
"bg-core-white fixed",
|
|
2145
|
+
U.value,
|
|
2146
|
+
p.contentClass
|
|
2147
|
+
]);
|
|
2148
|
+
return s({ setPosition: P.setPosition }), (t, s) => (f(), i("div", null, [
|
|
2149
|
+
h(t.$slots, "opener-start"),
|
|
2150
|
+
a("div", {
|
|
2151
|
+
ref_key: "opener",
|
|
2152
|
+
ref: T,
|
|
2153
|
+
class: "inline-flex w-full sm:w-auto"
|
|
2154
|
+
}, [h(t.$slots, "opener", {
|
|
2155
|
+
isOpen: o.isOpen,
|
|
2156
|
+
floating: v(P)
|
|
2157
|
+
})], 512),
|
|
2158
|
+
h(t.$slots, "opener-end"),
|
|
2159
|
+
o.teleport ? r("", !0) : S((f(), i("div", {
|
|
2160
|
+
key: 0,
|
|
2161
|
+
ref_key: "content",
|
|
2162
|
+
ref: w,
|
|
2163
|
+
class: c(["fz__floating__content w-full sm:w-auto", W.value])
|
|
2164
|
+
}, [h(t.$slots, "default", {
|
|
2165
|
+
isOpen: o.isOpen,
|
|
2166
|
+
floating: v(P)
|
|
2167
|
+
})], 2)), [[b, t.$slots.default && (!t.$slots.opener || t.$slots.opener && o.isOpen)]]),
|
|
2168
|
+
o.teleport ? (f(), n(e, {
|
|
2169
|
+
key: 1,
|
|
2170
|
+
to: "body"
|
|
2171
|
+
}, [S(a("div", {
|
|
2172
|
+
ref_key: "content",
|
|
2173
|
+
ref: w,
|
|
2174
|
+
class: c(["fz__floating__content", W.value])
|
|
2175
|
+
}, [h(t.$slots, "default", {
|
|
2176
|
+
isOpen: o.isOpen,
|
|
2177
|
+
floating: v(P)
|
|
2178
|
+
})], 2), [[b, t.$slots.default && (!t.$slots.opener || t.$slots.opener && o.isOpen)]])])) : r("", !0)
|
|
2179
|
+
]));
|
|
2180
|
+
}
|
|
1443
2181
|
});
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
ae as calcRealPos,
|
|
1447
|
-
Ee as clamp,
|
|
1448
|
-
ne as format,
|
|
1449
|
-
b as getHighestAvailableSpacePos,
|
|
1450
|
-
re as parse,
|
|
1451
|
-
ze as roundTo,
|
|
1452
|
-
le as truncateDecimals,
|
|
1453
|
-
ke as useBreakpoints,
|
|
1454
|
-
Oe as useClickOutside,
|
|
1455
|
-
Ne as useCurrency,
|
|
1456
|
-
ve as useFloating,
|
|
1457
|
-
Le as useKeyDown,
|
|
1458
|
-
Be as useKeyUp,
|
|
1459
|
-
N as useMediaQuery
|
|
1460
|
-
};
|
|
2182
|
+
//#endregion
|
|
2183
|
+
export { ne as FzFloating, A as calcRealPos, D as clamp, w as format, k as getHighestAvailableSpacePos, T as parse, E as roundTo, C as truncateDecimals, U as useBreakpoints, W as useClickOutside, q as useCurrency, V as useFloating, G as useKeyDown, K as useKeyUp, H as useMediaQuery };
|