@alquimia-ai/ui 1.9.2 → 2.0.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/dist/components/atoms/index.d.mts +1 -1
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/atoms/index.js +1848 -1428
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +1453 -1409
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/hooks/index.d.mts +1 -0
- package/dist/components/hooks/index.d.ts +1 -0
- package/dist/components/hooks/index.js +572 -211
- package/dist/components/hooks/index.js.map +1 -1
- package/dist/components/hooks/index.mjs +505 -193
- package/dist/components/hooks/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.d.mts +1 -0
- package/dist/components/molecules/documents/index.d.ts +1 -0
- package/dist/components/molecules/documents/index.js +2366 -1884
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +2207 -1764
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js +2261 -2095
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +2084 -2075
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +1303 -1185
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +1254 -1167
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +1 -0
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/components/organisms/index.js +3074 -2609
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +2999 -2586
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/index.d.mts +25 -3
- package/dist/components/templates/index.d.ts +25 -3
- package/dist/components/templates/index.js +1490 -1300
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +1413 -1281
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3951 -2977
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3368 -2950
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.js +106 -54
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +42 -43
- package/dist/lib/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +17 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/providers/index.js +177 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/index.mjs +101 -0
- package/dist/providers/index.mjs.map +1 -0
- package/dist/styles.css +68 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.d.mts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/tailwind.config.js +4 -10
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +52 -19
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +6 -8
- package/dist/types/index.mjs.map +1 -1
- package/package.json +8 -7
- package/dist/components/index.d.mts +0 -23
- package/dist/components/index.d.ts +0 -23
- package/dist/components/index.js +0 -1734
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs +0 -1702
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/templates/cards/index.d.mts +0 -26
- package/dist/components/templates/cards/index.d.ts +0 -26
- package/dist/components/templates/cards/index.js +0 -1536
- package/dist/components/templates/cards/index.js.map +0 -1
- package/dist/components/templates/cards/index.mjs +0 -1504
- package/dist/components/templates/cards/index.mjs.map +0 -1
|
@@ -1,26 +1,298 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
function _array_like_to_array(arr, len) {
|
|
3
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5
|
+
return arr2;
|
|
6
|
+
}
|
|
7
|
+
function _array_with_holes(arr) {
|
|
8
|
+
if (Array.isArray(arr)) return arr;
|
|
9
|
+
}
|
|
10
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11
|
+
try {
|
|
12
|
+
var info = gen[key](arg);
|
|
13
|
+
var value = info.value;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
reject(error);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (info.done) {
|
|
19
|
+
resolve(value);
|
|
20
|
+
} else {
|
|
21
|
+
Promise.resolve(value).then(_next, _throw);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _async_to_generator(fn) {
|
|
25
|
+
return function() {
|
|
26
|
+
var self = this, args = arguments;
|
|
27
|
+
return new Promise(function(resolve, reject) {
|
|
28
|
+
var gen = fn.apply(self, args);
|
|
29
|
+
function _next(value) {
|
|
30
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
31
|
+
}
|
|
32
|
+
function _throw(err) {
|
|
33
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
34
|
+
}
|
|
35
|
+
_next(undefined);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function _define_property(obj, key, value) {
|
|
40
|
+
if (key in obj) {
|
|
41
|
+
Object.defineProperty(obj, key, {
|
|
42
|
+
value: value,
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
obj[key] = value;
|
|
49
|
+
}
|
|
50
|
+
return obj;
|
|
51
|
+
}
|
|
52
|
+
function _extends() {
|
|
53
|
+
_extends = Object.assign || function(target) {
|
|
54
|
+
for(var i = 1; i < arguments.length; i++){
|
|
55
|
+
var source = arguments[i];
|
|
56
|
+
for(var key in source){
|
|
57
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
58
|
+
target[key] = source[key];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return target;
|
|
63
|
+
};
|
|
64
|
+
return _extends.apply(this, arguments);
|
|
65
|
+
}
|
|
66
|
+
function _iterable_to_array_limit(arr, i) {
|
|
67
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
68
|
+
if (_i == null) return;
|
|
69
|
+
var _arr = [];
|
|
70
|
+
var _n = true;
|
|
71
|
+
var _d = false;
|
|
72
|
+
var _s, _e;
|
|
73
|
+
try {
|
|
74
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
75
|
+
_arr.push(_s.value);
|
|
76
|
+
if (i && _arr.length === i) break;
|
|
77
|
+
}
|
|
78
|
+
} catch (err) {
|
|
79
|
+
_d = true;
|
|
80
|
+
_e = err;
|
|
81
|
+
} finally{
|
|
82
|
+
try {
|
|
83
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
84
|
+
} finally{
|
|
85
|
+
if (_d) throw _e;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return _arr;
|
|
89
|
+
}
|
|
90
|
+
function _non_iterable_rest() {
|
|
91
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
92
|
+
}
|
|
93
|
+
function _object_destructuring_empty(o) {
|
|
94
|
+
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
95
|
+
return o;
|
|
96
|
+
}
|
|
97
|
+
function _object_spread(target) {
|
|
98
|
+
for(var i = 1; i < arguments.length; i++){
|
|
99
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
100
|
+
var ownKeys = Object.keys(source);
|
|
101
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
102
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
103
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
104
|
+
}));
|
|
105
|
+
}
|
|
106
|
+
ownKeys.forEach(function(key) {
|
|
107
|
+
_define_property(target, key, source[key]);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
return target;
|
|
111
|
+
}
|
|
112
|
+
function ownKeys(object, enumerableOnly) {
|
|
113
|
+
var keys = Object.keys(object);
|
|
114
|
+
if (Object.getOwnPropertySymbols) {
|
|
115
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
116
|
+
if (enumerableOnly) {
|
|
117
|
+
symbols = symbols.filter(function(sym) {
|
|
118
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
keys.push.apply(keys, symbols);
|
|
122
|
+
}
|
|
123
|
+
return keys;
|
|
124
|
+
}
|
|
125
|
+
function _object_spread_props(target, source) {
|
|
126
|
+
source = source != null ? source : {};
|
|
127
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
128
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
129
|
+
} else {
|
|
130
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
131
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return target;
|
|
135
|
+
}
|
|
136
|
+
function _object_without_properties(source, excluded) {
|
|
137
|
+
if (source == null) return {};
|
|
138
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
139
|
+
var key, i;
|
|
140
|
+
if (Object.getOwnPropertySymbols) {
|
|
141
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
142
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
143
|
+
key = sourceSymbolKeys[i];
|
|
144
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
145
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
146
|
+
target[key] = source[key];
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return target;
|
|
150
|
+
}
|
|
151
|
+
function _object_without_properties_loose(source, excluded) {
|
|
152
|
+
if (source == null) return {};
|
|
153
|
+
var target = {};
|
|
154
|
+
var sourceKeys = Object.keys(source);
|
|
155
|
+
var key, i;
|
|
156
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
157
|
+
key = sourceKeys[i];
|
|
158
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
159
|
+
target[key] = source[key];
|
|
160
|
+
}
|
|
161
|
+
return target;
|
|
162
|
+
}
|
|
163
|
+
function _sliced_to_array(arr, i) {
|
|
164
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
165
|
+
}
|
|
166
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
167
|
+
if (!o) return;
|
|
168
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
169
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
170
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
171
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
172
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
173
|
+
}
|
|
174
|
+
function _ts_generator(thisArg, body) {
|
|
175
|
+
var f, y, t, g, _ = {
|
|
176
|
+
label: 0,
|
|
177
|
+
sent: function() {
|
|
178
|
+
if (t[0] & 1) throw t[1];
|
|
179
|
+
return t[1];
|
|
180
|
+
},
|
|
181
|
+
trys: [],
|
|
182
|
+
ops: []
|
|
183
|
+
};
|
|
184
|
+
return g = {
|
|
185
|
+
next: verb(0),
|
|
186
|
+
"throw": verb(1),
|
|
187
|
+
"return": verb(2)
|
|
188
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
189
|
+
return this;
|
|
190
|
+
}), g;
|
|
191
|
+
function verb(n) {
|
|
192
|
+
return function(v) {
|
|
193
|
+
return step([
|
|
194
|
+
n,
|
|
195
|
+
v
|
|
196
|
+
]);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function step(op) {
|
|
200
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
201
|
+
while(_)try {
|
|
202
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
203
|
+
if (y = 0, t) op = [
|
|
204
|
+
op[0] & 2,
|
|
205
|
+
t.value
|
|
206
|
+
];
|
|
207
|
+
switch(op[0]){
|
|
208
|
+
case 0:
|
|
209
|
+
case 1:
|
|
210
|
+
t = op;
|
|
211
|
+
break;
|
|
212
|
+
case 4:
|
|
213
|
+
_.label++;
|
|
214
|
+
return {
|
|
215
|
+
value: op[1],
|
|
216
|
+
done: false
|
|
217
|
+
};
|
|
218
|
+
case 5:
|
|
219
|
+
_.label++;
|
|
220
|
+
y = op[1];
|
|
221
|
+
op = [
|
|
222
|
+
0
|
|
223
|
+
];
|
|
224
|
+
continue;
|
|
225
|
+
case 7:
|
|
226
|
+
op = _.ops.pop();
|
|
227
|
+
_.trys.pop();
|
|
228
|
+
continue;
|
|
229
|
+
default:
|
|
230
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
231
|
+
_ = 0;
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
235
|
+
_.label = op[1];
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
239
|
+
_.label = t[1];
|
|
240
|
+
t = op;
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
if (t && _.label < t[2]) {
|
|
244
|
+
_.label = t[2];
|
|
245
|
+
_.ops.push(op);
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
if (t[2]) _.ops.pop();
|
|
249
|
+
_.trys.pop();
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
252
|
+
op = body.call(thisArg, _);
|
|
253
|
+
} catch (e) {
|
|
254
|
+
op = [
|
|
255
|
+
6,
|
|
256
|
+
e
|
|
257
|
+
];
|
|
258
|
+
y = 0;
|
|
259
|
+
} finally{
|
|
260
|
+
f = t = 0;
|
|
261
|
+
}
|
|
262
|
+
if (op[0] & 5) throw op[1];
|
|
263
|
+
return {
|
|
264
|
+
value: op[0] ? op[1] : void 0,
|
|
265
|
+
done: true
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}
|
|
2
269
|
var __defProp = Object.defineProperty;
|
|
3
270
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __esm = (fn, res)
|
|
5
|
-
|
|
271
|
+
var __esm = function(fn, res) {
|
|
272
|
+
return function __init() {
|
|
273
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
274
|
+
};
|
|
6
275
|
};
|
|
7
|
-
var __export = (target, all)
|
|
8
|
-
|
|
9
|
-
|
|
276
|
+
var __export = function(target, all) {
|
|
277
|
+
for(var name in all)__defProp(target, name, {
|
|
278
|
+
get: all[name],
|
|
279
|
+
enumerable: true
|
|
280
|
+
});
|
|
10
281
|
};
|
|
11
|
-
|
|
12
282
|
// src/lib/utils.ts
|
|
13
283
|
import { clsx } from "clsx";
|
|
14
284
|
import { twMerge } from "tailwind-merge";
|
|
15
|
-
function cn(
|
|
16
|
-
|
|
285
|
+
function cn() {
|
|
286
|
+
for(var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++){
|
|
287
|
+
inputs[_key] = arguments[_key];
|
|
288
|
+
}
|
|
289
|
+
return twMerge(clsx(inputs));
|
|
17
290
|
}
|
|
18
291
|
var init_utils = __esm({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
292
|
+
"src/lib/utils.ts": function() {
|
|
293
|
+
"use strict";
|
|
294
|
+
}
|
|
22
295
|
});
|
|
23
|
-
|
|
24
296
|
// src/components/atoms/ui/button.tsx
|
|
25
297
|
import * as React from "react";
|
|
26
298
|
import { Slot } from "@radix-ui/react-slot";
|
|
@@ -28,108 +300,93 @@ import { cva } from "class-variance-authority";
|
|
|
28
300
|
import { jsx } from "react/jsx-runtime";
|
|
29
301
|
var buttonVariants, Button;
|
|
30
302
|
var init_button = __esm({
|
|
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
|
-
|
|
303
|
+
"src/components/atoms/ui/button.tsx": function() {
|
|
304
|
+
"use strict";
|
|
305
|
+
init_utils();
|
|
306
|
+
buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
307
|
+
variants: {
|
|
308
|
+
variant: {
|
|
309
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
310
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
311
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
312
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
313
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
314
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
315
|
+
},
|
|
316
|
+
size: {
|
|
317
|
+
default: "h-10 px-4 py-2",
|
|
318
|
+
sm: "h-9 rounded-md px-3",
|
|
319
|
+
lg: "h-11 rounded-md px-8",
|
|
320
|
+
icon: "h-10 w-10"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
defaultVariants: {
|
|
324
|
+
variant: "default",
|
|
325
|
+
size: "default"
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
Button = React.forwardRef(function(_param, ref) {
|
|
329
|
+
var className = _param.className, variant = _param.variant, size = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, props = _object_without_properties(_param, [
|
|
330
|
+
"className",
|
|
331
|
+
"variant",
|
|
332
|
+
"size",
|
|
333
|
+
"asChild"
|
|
334
|
+
]);
|
|
335
|
+
var Comp = asChild ? Slot : "button";
|
|
336
|
+
return /* @__PURE__ */ jsx(Comp, _object_spread({
|
|
337
|
+
className: cn(buttonVariants({
|
|
338
|
+
variant: variant,
|
|
339
|
+
size: size,
|
|
340
|
+
className: className
|
|
341
|
+
})),
|
|
342
|
+
ref: ref
|
|
343
|
+
}, props));
|
|
344
|
+
});
|
|
345
|
+
Button.displayName = "Button";
|
|
346
|
+
}
|
|
74
347
|
});
|
|
75
|
-
|
|
76
348
|
// src/components/atoms/ui/textarea.tsx
|
|
77
349
|
import * as React2 from "react";
|
|
78
350
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
79
351
|
var Textarea;
|
|
80
352
|
var init_textarea = __esm({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...props
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
Textarea.displayName = "Textarea";
|
|
101
|
-
}
|
|
353
|
+
"src/components/atoms/ui/textarea.tsx": function() {
|
|
354
|
+
"use strict";
|
|
355
|
+
init_utils();
|
|
356
|
+
Textarea = React2.forwardRef(function(_param, ref) {
|
|
357
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
358
|
+
"className"
|
|
359
|
+
]);
|
|
360
|
+
return /* @__PURE__ */ jsx2("textarea", _object_spread({
|
|
361
|
+
className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className, "alq--textarea"),
|
|
362
|
+
ref: ref
|
|
363
|
+
}, props));
|
|
364
|
+
});
|
|
365
|
+
Textarea.displayName = "Textarea";
|
|
366
|
+
}
|
|
102
367
|
});
|
|
103
|
-
|
|
104
368
|
// src/components/atoms/ui/input.tsx
|
|
105
369
|
import { forwardRef as forwardRef3 } from "react";
|
|
106
370
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
107
371
|
var Input;
|
|
108
372
|
var init_input = __esm({
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
Input.displayName = "Input";
|
|
130
|
-
}
|
|
373
|
+
"src/components/atoms/ui/input.tsx": function() {
|
|
374
|
+
"use strict";
|
|
375
|
+
init_utils();
|
|
376
|
+
Input = forwardRef3(function(_param, ref) {
|
|
377
|
+
var className = _param.className, type = _param.type, props = _object_without_properties(_param, [
|
|
378
|
+
"className",
|
|
379
|
+
"type"
|
|
380
|
+
]);
|
|
381
|
+
return /* @__PURE__ */ jsx3("input", _object_spread({
|
|
382
|
+
type: type,
|
|
383
|
+
className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className, "alq--input"),
|
|
384
|
+
ref: ref
|
|
385
|
+
}, props));
|
|
386
|
+
});
|
|
387
|
+
Input.displayName = "Input";
|
|
388
|
+
}
|
|
131
389
|
});
|
|
132
|
-
|
|
133
390
|
// src/components/atoms/ui/select.tsx
|
|
134
391
|
import * as React3 from "react";
|
|
135
392
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
@@ -137,502 +394,516 @@ import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
|
|
137
394
|
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
138
395
|
var Select, SelectGroup, SelectValue, SelectTrigger, SelectScrollUpButton, SelectScrollDownButton, SelectContent, SelectLabel, SelectItem, SelectSeparator;
|
|
139
396
|
var init_select = __esm({
|
|
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
|
-
ref
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
397
|
+
"src/components/atoms/ui/select.tsx": function() {
|
|
398
|
+
"use strict";
|
|
399
|
+
"use client";
|
|
400
|
+
init_utils();
|
|
401
|
+
Select = SelectPrimitive.Root;
|
|
402
|
+
SelectGroup = SelectPrimitive.Group;
|
|
403
|
+
SelectValue = SelectPrimitive.Value;
|
|
404
|
+
SelectTrigger = React3.forwardRef(function(_param, ref) {
|
|
405
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
406
|
+
"className",
|
|
407
|
+
"children"
|
|
408
|
+
]);
|
|
409
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
410
|
+
ref: ref,
|
|
411
|
+
className: cn("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className, "alq--select")
|
|
412
|
+
}, props), {
|
|
413
|
+
children: [
|
|
414
|
+
children,
|
|
415
|
+
/* @__PURE__ */ jsx4(SelectPrimitive.Icon, {
|
|
416
|
+
asChild: true,
|
|
417
|
+
children: /* @__PURE__ */ jsx4(ChevronDown, {
|
|
418
|
+
className: "h-4 w-4 opacity-50"
|
|
419
|
+
})
|
|
420
|
+
})
|
|
421
|
+
]
|
|
422
|
+
}));
|
|
423
|
+
});
|
|
424
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
425
|
+
SelectScrollUpButton = React3.forwardRef(function(_param, ref) {
|
|
426
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
427
|
+
"className"
|
|
428
|
+
]);
|
|
429
|
+
return /* @__PURE__ */ jsx4(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
430
|
+
ref: ref,
|
|
431
|
+
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
432
|
+
}, props), {
|
|
433
|
+
children: /* @__PURE__ */ jsx4(ChevronUp, {
|
|
434
|
+
className: "h-4 w-4"
|
|
435
|
+
})
|
|
436
|
+
}));
|
|
437
|
+
});
|
|
438
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
439
|
+
SelectScrollDownButton = React3.forwardRef(function(_param, ref) {
|
|
440
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
441
|
+
"className"
|
|
442
|
+
]);
|
|
443
|
+
return /* @__PURE__ */ jsx4(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
444
|
+
ref: ref,
|
|
445
|
+
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
446
|
+
}, props), {
|
|
447
|
+
children: /* @__PURE__ */ jsx4(ChevronDown, {
|
|
448
|
+
className: "h-4 w-4"
|
|
449
|
+
})
|
|
450
|
+
}));
|
|
451
|
+
});
|
|
452
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
453
|
+
SelectContent = React3.forwardRef(function(_param, ref) {
|
|
454
|
+
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
455
|
+
"className",
|
|
456
|
+
"children",
|
|
457
|
+
"position"
|
|
458
|
+
]);
|
|
459
|
+
return /* @__PURE__ */ jsx4(SelectPrimitive.Portal, {
|
|
460
|
+
children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
461
|
+
ref: ref,
|
|
462
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
463
|
+
position: position
|
|
464
|
+
}, props), {
|
|
465
|
+
children: [
|
|
466
|
+
/* @__PURE__ */ jsx4(SelectScrollUpButton, {}),
|
|
467
|
+
/* @__PURE__ */ jsx4(SelectPrimitive.Viewport, {
|
|
468
|
+
className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
469
|
+
children: children
|
|
470
|
+
}),
|
|
471
|
+
/* @__PURE__ */ jsx4(SelectScrollDownButton, {})
|
|
472
|
+
]
|
|
473
|
+
}))
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
477
|
+
SelectLabel = React3.forwardRef(function(_param, ref) {
|
|
478
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
479
|
+
"className"
|
|
480
|
+
]);
|
|
481
|
+
return /* @__PURE__ */ jsx4(SelectPrimitive.Label, _object_spread({
|
|
482
|
+
ref: ref,
|
|
483
|
+
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)
|
|
484
|
+
}, props));
|
|
485
|
+
});
|
|
486
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
487
|
+
SelectItem = React3.forwardRef(function(_param, ref) {
|
|
488
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
489
|
+
"className",
|
|
490
|
+
"children"
|
|
491
|
+
]);
|
|
492
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
493
|
+
ref: ref,
|
|
494
|
+
className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)
|
|
495
|
+
}, props), {
|
|
496
|
+
children: [
|
|
497
|
+
/* @__PURE__ */ jsx4("span", {
|
|
498
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
499
|
+
children: /* @__PURE__ */ jsx4(SelectPrimitive.ItemIndicator, {
|
|
500
|
+
children: /* @__PURE__ */ jsx4(Check, {
|
|
501
|
+
className: "h-4 w-4"
|
|
502
|
+
})
|
|
503
|
+
})
|
|
504
|
+
}),
|
|
505
|
+
/* @__PURE__ */ jsx4(SelectPrimitive.ItemText, {
|
|
506
|
+
children: children
|
|
507
|
+
})
|
|
508
|
+
]
|
|
509
|
+
}));
|
|
510
|
+
});
|
|
511
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
512
|
+
SelectSeparator = React3.forwardRef(function(_param, ref) {
|
|
513
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
514
|
+
"className"
|
|
515
|
+
]);
|
|
516
|
+
return /* @__PURE__ */ jsx4(SelectPrimitive.Separator, _object_spread({
|
|
517
|
+
ref: ref,
|
|
518
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className)
|
|
519
|
+
}, props));
|
|
520
|
+
});
|
|
521
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
522
|
+
}
|
|
253
523
|
});
|
|
254
|
-
|
|
255
524
|
// src/components/atoms/ui/avatar.tsx
|
|
256
525
|
import * as React4 from "react";
|
|
257
526
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
258
527
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
259
528
|
var Avatar, AvatarImage, AvatarFallback;
|
|
260
529
|
var init_avatar = __esm({
|
|
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
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
298
|
-
}
|
|
530
|
+
"src/components/atoms/ui/avatar.tsx": function() {
|
|
531
|
+
"use strict";
|
|
532
|
+
"use client";
|
|
533
|
+
init_utils();
|
|
534
|
+
Avatar = React4.forwardRef(function(_param, ref) {
|
|
535
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
536
|
+
"className"
|
|
537
|
+
]);
|
|
538
|
+
return /* @__PURE__ */ jsx5(AvatarPrimitive.Root, _object_spread({
|
|
539
|
+
ref: ref,
|
|
540
|
+
className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)
|
|
541
|
+
}, props));
|
|
542
|
+
});
|
|
543
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
544
|
+
AvatarImage = React4.forwardRef(function(_param, ref) {
|
|
545
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
546
|
+
"className"
|
|
547
|
+
]);
|
|
548
|
+
return /* @__PURE__ */ jsx5(AvatarPrimitive.Image, _object_spread({
|
|
549
|
+
ref: ref,
|
|
550
|
+
className: cn("aspect-square h-full w-full", className)
|
|
551
|
+
}, props));
|
|
552
|
+
});
|
|
553
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
554
|
+
AvatarFallback = React4.forwardRef(function(_param, ref) {
|
|
555
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
556
|
+
"className"
|
|
557
|
+
]);
|
|
558
|
+
return /* @__PURE__ */ jsx5(AvatarPrimitive.Fallback, _object_spread({
|
|
559
|
+
ref: ref,
|
|
560
|
+
className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)
|
|
561
|
+
}, props));
|
|
562
|
+
});
|
|
563
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
564
|
+
}
|
|
299
565
|
});
|
|
300
|
-
|
|
301
566
|
// src/components/atoms/ui/scroll-area.tsx
|
|
302
567
|
import * as React5 from "react";
|
|
303
568
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
304
569
|
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
305
570
|
var ScrollArea, ScrollBar;
|
|
306
571
|
var init_scroll_area = __esm({
|
|
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
|
-
|
|
572
|
+
"src/components/atoms/ui/scroll-area.tsx": function() {
|
|
573
|
+
"use strict";
|
|
574
|
+
"use client";
|
|
575
|
+
init_utils();
|
|
576
|
+
ScrollArea = React5.forwardRef(function(_param, ref) {
|
|
577
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
578
|
+
"className",
|
|
579
|
+
"children"
|
|
580
|
+
]);
|
|
581
|
+
return /* @__PURE__ */ jsxs2(ScrollAreaPrimitive.Root, _object_spread_props(_object_spread({
|
|
582
|
+
ref: ref,
|
|
583
|
+
className: cn("relative overflow-hidden", className)
|
|
584
|
+
}, props), {
|
|
585
|
+
children: [
|
|
586
|
+
/* @__PURE__ */ jsx6(ScrollAreaPrimitive.Viewport, {
|
|
587
|
+
className: "h-full w-full rounded-[inherit]",
|
|
588
|
+
children: children
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ jsx6(ScrollBar, {}),
|
|
591
|
+
/* @__PURE__ */ jsx6(ScrollAreaPrimitive.Corner, {})
|
|
592
|
+
]
|
|
593
|
+
}));
|
|
594
|
+
});
|
|
595
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
596
|
+
ScrollBar = React5.forwardRef(function(_param, ref) {
|
|
597
|
+
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
|
|
598
|
+
"className",
|
|
599
|
+
"orientation"
|
|
600
|
+
]);
|
|
601
|
+
return /* @__PURE__ */ jsx6(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread_props(_object_spread({
|
|
602
|
+
ref: ref,
|
|
603
|
+
orientation: orientation,
|
|
604
|
+
className: cn("flex touch-none select-none transition-colors", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]", className)
|
|
605
|
+
}, props), {
|
|
606
|
+
children: /* @__PURE__ */ jsx6(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
607
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
608
|
+
})
|
|
609
|
+
}));
|
|
610
|
+
});
|
|
611
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
612
|
+
}
|
|
342
613
|
});
|
|
343
|
-
|
|
344
614
|
// src/components/atoms/ui/rich-text.tsx
|
|
345
615
|
import ReactMarkdown from "react-markdown";
|
|
346
616
|
import remarkGfm from "remark-gfm";
|
|
347
617
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
348
|
-
function RichText(
|
|
349
|
-
|
|
618
|
+
function RichText(param) {
|
|
619
|
+
var content = param.content, className = param.className;
|
|
620
|
+
return /* @__PURE__ */ jsx7(ReactMarkdown, {
|
|
621
|
+
className: cn(className),
|
|
622
|
+
remarkPlugins: [
|
|
623
|
+
remarkGfm
|
|
624
|
+
],
|
|
625
|
+
children: content
|
|
626
|
+
});
|
|
350
627
|
}
|
|
351
628
|
var init_rich_text = __esm({
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
629
|
+
"src/components/atoms/ui/rich-text.tsx": function() {
|
|
630
|
+
"use strict";
|
|
631
|
+
init_utils();
|
|
632
|
+
}
|
|
356
633
|
});
|
|
357
|
-
|
|
358
634
|
// src/components/atoms/ui/skeleton.tsx
|
|
359
635
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
360
636
|
var init_skeleton = __esm({
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
637
|
+
"src/components/atoms/ui/skeleton.tsx": function() {
|
|
638
|
+
"use strict";
|
|
639
|
+
init_utils();
|
|
640
|
+
}
|
|
365
641
|
});
|
|
366
|
-
|
|
367
642
|
// src/components/atoms/ui/card.tsx
|
|
368
643
|
import * as React6 from "react";
|
|
369
644
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
370
645
|
var Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter;
|
|
371
646
|
var init_card = __esm({
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
647
|
+
"src/components/atoms/ui/card.tsx": function() {
|
|
648
|
+
"use strict";
|
|
649
|
+
init_utils();
|
|
650
|
+
Card = React6.forwardRef(function(_param, ref) {
|
|
651
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
652
|
+
"className"
|
|
653
|
+
]);
|
|
654
|
+
return /* @__PURE__ */ jsx9("div", _object_spread({
|
|
655
|
+
ref: ref,
|
|
656
|
+
className: cn("rounded-lg", " border", "bg-card", "text-card-foreground", "shadow-raised", className)
|
|
657
|
+
}, props));
|
|
658
|
+
});
|
|
659
|
+
Card.displayName = "Card";
|
|
660
|
+
CardHeader = React6.forwardRef(function(_param, ref) {
|
|
661
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
662
|
+
"className"
|
|
663
|
+
]);
|
|
664
|
+
return /* @__PURE__ */ jsx9("div", _object_spread({
|
|
665
|
+
ref: ref,
|
|
666
|
+
className: cn("flex flex-col space-y-1.5 p-6", className)
|
|
667
|
+
}, props));
|
|
668
|
+
});
|
|
669
|
+
CardHeader.displayName = "CardHeader";
|
|
670
|
+
CardTitle = React6.forwardRef(function(_param, ref) {
|
|
671
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
672
|
+
"className"
|
|
673
|
+
]);
|
|
674
|
+
return /* @__PURE__ */ jsx9("h3", _object_spread({
|
|
675
|
+
ref: ref,
|
|
676
|
+
className: cn("alq--typography-heading4", className)
|
|
677
|
+
}, props));
|
|
678
|
+
});
|
|
679
|
+
CardTitle.displayName = "CardTitle";
|
|
680
|
+
CardDescription = React6.forwardRef(function(_param, ref) {
|
|
681
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
682
|
+
"className"
|
|
683
|
+
]);
|
|
684
|
+
return /* @__PURE__ */ jsx9("p", _object_spread({
|
|
685
|
+
ref: ref,
|
|
686
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
687
|
+
}, props));
|
|
688
|
+
});
|
|
689
|
+
CardDescription.displayName = "CardDescription";
|
|
690
|
+
CardContent = React6.forwardRef(function(_param, ref) {
|
|
691
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
692
|
+
"className"
|
|
693
|
+
]);
|
|
694
|
+
return /* @__PURE__ */ jsx9("div", _object_spread({
|
|
695
|
+
ref: ref,
|
|
696
|
+
className: cn("p-6 pt-0", className)
|
|
697
|
+
}, props));
|
|
698
|
+
});
|
|
699
|
+
CardContent.displayName = "CardContent";
|
|
700
|
+
CardFooter = React6.forwardRef(function(_param, ref) {
|
|
701
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
702
|
+
"className"
|
|
703
|
+
]);
|
|
704
|
+
return /* @__PURE__ */ jsx9("div", _object_spread({
|
|
705
|
+
ref: ref,
|
|
706
|
+
className: cn("flex items-center p-6 pt-0", className)
|
|
707
|
+
}, props));
|
|
708
|
+
});
|
|
709
|
+
CardFooter.displayName = "CardFooter";
|
|
710
|
+
}
|
|
430
711
|
});
|
|
431
|
-
|
|
432
712
|
// src/components/atoms/ui/drawer.tsx
|
|
433
713
|
import * as React7 from "react";
|
|
434
714
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
435
715
|
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
436
716
|
var Drawer, DrawerTrigger, DrawerPortal, DrawerClose, DrawerOverlay, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription;
|
|
437
717
|
var init_drawer = __esm({
|
|
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
|
-
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
528
|
-
}
|
|
718
|
+
"src/components/atoms/ui/drawer.tsx": function() {
|
|
719
|
+
"use strict";
|
|
720
|
+
"use client";
|
|
721
|
+
init_utils();
|
|
722
|
+
Drawer = function(_param) {
|
|
723
|
+
var _param_shouldScaleBackground = _param.shouldScaleBackground, shouldScaleBackground = _param_shouldScaleBackground === void 0 ? true : _param_shouldScaleBackground, props = _object_without_properties(_param, [
|
|
724
|
+
"shouldScaleBackground"
|
|
725
|
+
]);
|
|
726
|
+
return /* @__PURE__ */ jsx10(DrawerPrimitive.Root, _object_spread({
|
|
727
|
+
shouldScaleBackground: shouldScaleBackground
|
|
728
|
+
}, props));
|
|
729
|
+
};
|
|
730
|
+
Drawer.displayName = "Drawer";
|
|
731
|
+
DrawerTrigger = DrawerPrimitive.Trigger;
|
|
732
|
+
DrawerPortal = DrawerPrimitive.Portal;
|
|
733
|
+
DrawerClose = DrawerPrimitive.Close;
|
|
734
|
+
DrawerOverlay = React7.forwardRef(function(_param, ref) {
|
|
735
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
736
|
+
"className"
|
|
737
|
+
]);
|
|
738
|
+
return /* @__PURE__ */ jsx10(DrawerPrimitive.Overlay, _object_spread({
|
|
739
|
+
ref: ref,
|
|
740
|
+
className: cn("fixed inset-0 z-50 bg-black/80", className)
|
|
741
|
+
}, props));
|
|
742
|
+
});
|
|
743
|
+
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
744
|
+
DrawerContent = React7.forwardRef(function(_param, ref) {
|
|
745
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
746
|
+
"className",
|
|
747
|
+
"children"
|
|
748
|
+
]);
|
|
749
|
+
return /* @__PURE__ */ jsxs3(DrawerPortal, {
|
|
750
|
+
children: [
|
|
751
|
+
/* @__PURE__ */ jsx10(DrawerOverlay, {}),
|
|
752
|
+
/* @__PURE__ */ jsxs3(DrawerPrimitive.Content, _object_spread_props(_object_spread({
|
|
753
|
+
ref: ref,
|
|
754
|
+
className: cn("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border border-border bg-background text-foreground alq--drawer-content", className)
|
|
755
|
+
}, props), {
|
|
756
|
+
children: [
|
|
757
|
+
/* @__PURE__ */ jsx10("div", {
|
|
758
|
+
className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
|
|
759
|
+
}),
|
|
760
|
+
children
|
|
761
|
+
]
|
|
762
|
+
}))
|
|
763
|
+
]
|
|
764
|
+
});
|
|
765
|
+
});
|
|
766
|
+
DrawerContent.displayName = "DrawerContent";
|
|
767
|
+
DrawerHeader = function(_param) {
|
|
768
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
769
|
+
"className"
|
|
770
|
+
]);
|
|
771
|
+
return /* @__PURE__ */ jsx10("div", _object_spread({
|
|
772
|
+
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header")
|
|
773
|
+
}, props));
|
|
774
|
+
};
|
|
775
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
776
|
+
DrawerFooter = function(_param) {
|
|
777
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
778
|
+
"className"
|
|
779
|
+
]);
|
|
780
|
+
return /* @__PURE__ */ jsx10("div", _object_spread({
|
|
781
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer")
|
|
782
|
+
}, props));
|
|
783
|
+
};
|
|
784
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
785
|
+
DrawerTitle = React7.forwardRef(function(_param, ref) {
|
|
786
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
787
|
+
"className"
|
|
788
|
+
]);
|
|
789
|
+
return /* @__PURE__ */ jsx10(DrawerPrimitive.Title, _object_spread({
|
|
790
|
+
ref: ref,
|
|
791
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className, "alq--drawer-title")
|
|
792
|
+
}, props));
|
|
793
|
+
});
|
|
794
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
795
|
+
DrawerDescription = React7.forwardRef(function(_param, ref) {
|
|
796
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
797
|
+
"className"
|
|
798
|
+
]);
|
|
799
|
+
return /* @__PURE__ */ jsx10(DrawerPrimitive.Description, _object_spread({
|
|
800
|
+
ref: ref,
|
|
801
|
+
className: cn("text-sm text-muted-foreground", className, "alq--drawer-description")
|
|
802
|
+
}, props));
|
|
803
|
+
});
|
|
804
|
+
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
805
|
+
}
|
|
529
806
|
});
|
|
530
|
-
|
|
531
807
|
// src/components/atoms/ui/typography/index.tsx
|
|
532
808
|
import { forwardRef as forwardRef9 } from "react";
|
|
533
809
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
534
810
|
var Typography;
|
|
535
811
|
var init_typography = __esm({
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
);
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
Typography.displayName = "Typography";
|
|
552
|
-
}
|
|
812
|
+
"src/components/atoms/ui/typography/index.tsx": function() {
|
|
813
|
+
"use strict";
|
|
814
|
+
init_utils();
|
|
815
|
+
Typography = forwardRef9(function(_param, ref) {
|
|
816
|
+
var tmp = _param.as, Component = tmp === void 0 ? "p" : tmp, typeStyle = _param.typeStyle, props = _object_without_properties(_param, [
|
|
817
|
+
"as",
|
|
818
|
+
"typeStyle"
|
|
819
|
+
]);
|
|
820
|
+
return /* @__PURE__ */ jsx11(Component, _object_spread_props(_object_spread({}, props), {
|
|
821
|
+
className: cn(props.className, "alq--typography-".concat(typeStyle)),
|
|
822
|
+
ref: ref
|
|
823
|
+
}));
|
|
824
|
+
});
|
|
825
|
+
Typography.displayName = "Typography";
|
|
826
|
+
}
|
|
553
827
|
});
|
|
554
|
-
|
|
555
828
|
// src/components/atoms/ui/badge.tsx
|
|
556
829
|
import { cva as cva2 } from "class-variance-authority";
|
|
557
830
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
558
831
|
var badgeVariants;
|
|
559
832
|
var init_badge = __esm({
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
);
|
|
579
|
-
}
|
|
833
|
+
"src/components/atoms/ui/badge.tsx": function() {
|
|
834
|
+
"use strict";
|
|
835
|
+
init_utils();
|
|
836
|
+
badgeVariants = cva2("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
837
|
+
variants: {
|
|
838
|
+
variant: {
|
|
839
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
840
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
841
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
842
|
+
outline: "text-foreground"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
defaultVariants: {
|
|
846
|
+
variant: "default"
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
}
|
|
580
850
|
});
|
|
581
|
-
|
|
582
851
|
// src/components/atoms/ui/alert.tsx
|
|
583
852
|
import * as React8 from "react";
|
|
584
853
|
import { cva as cva3 } from "class-variance-authority";
|
|
585
854
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
586
855
|
var alertVariants, Alert, AlertTitle, AlertDescription;
|
|
587
856
|
var init_alert = __esm({
|
|
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
|
-
|
|
857
|
+
"src/components/atoms/ui/alert.tsx": function() {
|
|
858
|
+
"use strict";
|
|
859
|
+
init_utils();
|
|
860
|
+
alertVariants = cva3("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
861
|
+
variants: {
|
|
862
|
+
variant: {
|
|
863
|
+
default: "bg-background text-foreground",
|
|
864
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
defaultVariants: {
|
|
868
|
+
variant: "default"
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
Alert = React8.forwardRef(function(_param, ref) {
|
|
872
|
+
var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
|
|
873
|
+
"className",
|
|
874
|
+
"variant"
|
|
875
|
+
]);
|
|
876
|
+
return /* @__PURE__ */ jsx13("div", _object_spread({
|
|
877
|
+
ref: ref,
|
|
878
|
+
role: "alert",
|
|
879
|
+
className: cn(alertVariants({
|
|
880
|
+
variant: variant
|
|
881
|
+
}), className)
|
|
882
|
+
}, props));
|
|
883
|
+
});
|
|
884
|
+
Alert.displayName = "Alert";
|
|
885
|
+
AlertTitle = React8.forwardRef(function(_param, ref) {
|
|
886
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
887
|
+
"className"
|
|
888
|
+
]);
|
|
889
|
+
return /* @__PURE__ */ jsx13("h5", _object_spread({
|
|
890
|
+
ref: ref,
|
|
891
|
+
className: cn("mb-1 font-medium leading-none tracking-tight", className)
|
|
892
|
+
}, props));
|
|
893
|
+
});
|
|
894
|
+
AlertTitle.displayName = "AlertTitle";
|
|
895
|
+
AlertDescription = React8.forwardRef(function(_param, ref) {
|
|
896
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
897
|
+
"className"
|
|
898
|
+
]);
|
|
899
|
+
return /* @__PURE__ */ jsx13("div", _object_spread({
|
|
900
|
+
ref: ref,
|
|
901
|
+
className: cn("text-sm [&_p]:leading-relaxed", className)
|
|
902
|
+
}, props));
|
|
903
|
+
});
|
|
904
|
+
AlertDescription.displayName = "AlertDescription";
|
|
905
|
+
}
|
|
634
906
|
});
|
|
635
|
-
|
|
636
907
|
// src/components/atoms/ui/label.tsx
|
|
637
908
|
import * as React9 from "react";
|
|
638
909
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
@@ -640,25 +911,23 @@ import { cva as cva4 } from "class-variance-authority";
|
|
|
640
911
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
641
912
|
var labelVariants, Label2;
|
|
642
913
|
var init_label = __esm({
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}
|
|
914
|
+
"src/components/atoms/ui/label.tsx": function() {
|
|
915
|
+
"use strict";
|
|
916
|
+
"use client";
|
|
917
|
+
init_utils();
|
|
918
|
+
labelVariants = cva4("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
919
|
+
Label2 = React9.forwardRef(function(_param, ref) {
|
|
920
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
921
|
+
"className"
|
|
922
|
+
]);
|
|
923
|
+
return /* @__PURE__ */ jsx14(LabelPrimitive.Root, _object_spread({
|
|
924
|
+
ref: ref,
|
|
925
|
+
className: cn(labelVariants(), className, "alq--label")
|
|
926
|
+
}, props));
|
|
927
|
+
});
|
|
928
|
+
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
929
|
+
}
|
|
660
930
|
});
|
|
661
|
-
|
|
662
931
|
// src/components/atoms/ui/checkbox.tsx
|
|
663
932
|
import * as React10 from "react";
|
|
664
933
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
@@ -666,33 +935,29 @@ import { Check as Check2 } from "lucide-react";
|
|
|
666
935
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
667
936
|
var Checkbox;
|
|
668
937
|
var init_checkbox = __esm({
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
));
|
|
692
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
693
|
-
}
|
|
938
|
+
"src/components/atoms/ui/checkbox.tsx": function() {
|
|
939
|
+
"use strict";
|
|
940
|
+
"use client";
|
|
941
|
+
init_utils();
|
|
942
|
+
Checkbox = React10.forwardRef(function(_param, ref) {
|
|
943
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
944
|
+
"className"
|
|
945
|
+
]);
|
|
946
|
+
return /* @__PURE__ */ jsx15(CheckboxPrimitive.Root, _object_spread_props(_object_spread({
|
|
947
|
+
ref: ref,
|
|
948
|
+
className: cn("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", className, "alq--checkbox")
|
|
949
|
+
}, props), {
|
|
950
|
+
children: /* @__PURE__ */ jsx15(CheckboxPrimitive.Indicator, {
|
|
951
|
+
className: cn("flex items-center justify-center text-current"),
|
|
952
|
+
children: /* @__PURE__ */ jsx15(Check2, {
|
|
953
|
+
className: "h-4 w-4"
|
|
954
|
+
})
|
|
955
|
+
})
|
|
956
|
+
}));
|
|
957
|
+
});
|
|
958
|
+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
959
|
+
}
|
|
694
960
|
});
|
|
695
|
-
|
|
696
961
|
// src/components/atoms/ui/toggle.tsx
|
|
697
962
|
import * as React11 from "react";
|
|
698
963
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
@@ -700,251 +965,248 @@ import { cva as cva5 } from "class-variance-authority";
|
|
|
700
965
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
701
966
|
var toggleVariants, Toggle;
|
|
702
967
|
var init_toggle = __esm({
|
|
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
|
-
|
|
968
|
+
"src/components/atoms/ui/toggle.tsx": function() {
|
|
969
|
+
"use strict";
|
|
970
|
+
"use client";
|
|
971
|
+
init_utils();
|
|
972
|
+
toggleVariants = cva5("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
|
|
973
|
+
variants: {
|
|
974
|
+
variant: {
|
|
975
|
+
default: "bg-transparent",
|
|
976
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
977
|
+
},
|
|
978
|
+
size: {
|
|
979
|
+
default: "h-10 px-3",
|
|
980
|
+
sm: "h-9 px-2.5",
|
|
981
|
+
lg: "h-11 px-5"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
defaultVariants: {
|
|
985
|
+
variant: "default",
|
|
986
|
+
size: "default"
|
|
987
|
+
}
|
|
988
|
+
});
|
|
989
|
+
Toggle = React11.forwardRef(function(_param, ref) {
|
|
990
|
+
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
991
|
+
"className",
|
|
992
|
+
"variant",
|
|
993
|
+
"size"
|
|
994
|
+
]);
|
|
995
|
+
return /* @__PURE__ */ jsx16(TogglePrimitive.Root, _object_spread({
|
|
996
|
+
ref: ref,
|
|
997
|
+
className: cn(toggleVariants({
|
|
998
|
+
variant: variant,
|
|
999
|
+
size: size,
|
|
1000
|
+
className: className
|
|
1001
|
+
}), "alq--toggle")
|
|
1002
|
+
}, props));
|
|
1003
|
+
});
|
|
1004
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
1005
|
+
}
|
|
737
1006
|
});
|
|
738
|
-
|
|
739
1007
|
// src/components/atoms/ui/slider.tsx
|
|
740
1008
|
import * as React12 from "react";
|
|
741
1009
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
742
1010
|
import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
743
1011
|
var Slider;
|
|
744
1012
|
var init_slider = __esm({
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
1013
|
+
"src/components/atoms/ui/slider.tsx": function() {
|
|
1014
|
+
"use strict";
|
|
1015
|
+
"use client";
|
|
1016
|
+
init_utils();
|
|
1017
|
+
Slider = React12.forwardRef(function(_param, ref) {
|
|
1018
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1019
|
+
"className"
|
|
1020
|
+
]);
|
|
1021
|
+
return /* @__PURE__ */ jsxs4(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
1022
|
+
ref: ref,
|
|
1023
|
+
className: cn("relative flex w-44 touch-none select-none items-center", className, "alq--slider")
|
|
1024
|
+
}, props), {
|
|
1025
|
+
children: [
|
|
1026
|
+
/* @__PURE__ */ jsx17(SliderPrimitive.Track, {
|
|
1027
|
+
className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary",
|
|
1028
|
+
children: /* @__PURE__ */ jsx17(SliderPrimitive.Range, {
|
|
1029
|
+
className: "absolute h-full bg-secondary"
|
|
1030
|
+
})
|
|
1031
|
+
}),
|
|
1032
|
+
/* @__PURE__ */ jsx17(SliderPrimitive.Thumb, {
|
|
1033
|
+
className: "block h-5 w-5 rounded-full border-2 border-gray bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
1034
|
+
})
|
|
1035
|
+
]
|
|
1036
|
+
}));
|
|
1037
|
+
});
|
|
1038
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1039
|
+
}
|
|
767
1040
|
});
|
|
768
|
-
|
|
769
1041
|
// src/components/atoms/ui/switch.tsx
|
|
770
1042
|
import * as React13 from "react";
|
|
771
1043
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
772
1044
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
773
1045
|
var Switch;
|
|
774
1046
|
var init_switch = __esm({
|
|
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
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
800
|
-
}
|
|
1047
|
+
"src/components/atoms/ui/switch.tsx": function() {
|
|
1048
|
+
"use strict";
|
|
1049
|
+
"use client";
|
|
1050
|
+
init_utils();
|
|
1051
|
+
Switch = React13.forwardRef(function(_param, ref) {
|
|
1052
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1053
|
+
"className"
|
|
1054
|
+
]);
|
|
1055
|
+
return /* @__PURE__ */ jsx18(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
1056
|
+
className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className, "alq--switch")
|
|
1057
|
+
}, props), {
|
|
1058
|
+
ref: ref,
|
|
1059
|
+
children: /* @__PURE__ */ jsx18(SwitchPrimitives.Thumb, {
|
|
1060
|
+
className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")
|
|
1061
|
+
})
|
|
1062
|
+
}));
|
|
1063
|
+
});
|
|
1064
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1065
|
+
}
|
|
801
1066
|
});
|
|
802
|
-
|
|
803
1067
|
// src/components/atoms/ui/tabs.tsx
|
|
804
1068
|
import * as React14 from "react";
|
|
805
1069
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
806
1070
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
807
1071
|
var TabsList, TabsTrigger, TabsContent;
|
|
808
1072
|
var init_tabs = __esm({
|
|
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
|
-
className
|
|
845
|
-
),
|
|
846
|
-
...props
|
|
847
|
-
}
|
|
848
|
-
));
|
|
849
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
850
|
-
}
|
|
1073
|
+
"src/components/atoms/ui/tabs.tsx": function() {
|
|
1074
|
+
"use strict";
|
|
1075
|
+
"use client";
|
|
1076
|
+
init_utils();
|
|
1077
|
+
TabsList = React14.forwardRef(function(_param, ref) {
|
|
1078
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1079
|
+
"className"
|
|
1080
|
+
]);
|
|
1081
|
+
return /* @__PURE__ */ jsx19(TabsPrimitive.List, _object_spread({
|
|
1082
|
+
ref: ref,
|
|
1083
|
+
className: cn("inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground", className, "alq--tabs")
|
|
1084
|
+
}, props));
|
|
1085
|
+
});
|
|
1086
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1087
|
+
TabsTrigger = React14.forwardRef(function(_param, ref) {
|
|
1088
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1089
|
+
"className"
|
|
1090
|
+
]);
|
|
1091
|
+
return /* @__PURE__ */ jsx19(TabsPrimitive.Trigger, _object_spread({
|
|
1092
|
+
ref: ref,
|
|
1093
|
+
className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:border-b-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:text-foreground data-[state=active]:shadow-sm", className)
|
|
1094
|
+
}, props));
|
|
1095
|
+
});
|
|
1096
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1097
|
+
TabsContent = React14.forwardRef(function(_param, ref) {
|
|
1098
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1099
|
+
"className"
|
|
1100
|
+
]);
|
|
1101
|
+
return /* @__PURE__ */ jsx19(TabsPrimitive.Content, _object_spread({
|
|
1102
|
+
ref: ref,
|
|
1103
|
+
className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className)
|
|
1104
|
+
}, props));
|
|
1105
|
+
});
|
|
1106
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
1107
|
+
}
|
|
851
1108
|
});
|
|
852
|
-
|
|
853
1109
|
// src/components/atoms/ui/aspect-ratio.tsx
|
|
854
1110
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
855
1111
|
var init_aspect_ratio = __esm({
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
1112
|
+
"src/components/atoms/ui/aspect-ratio.tsx": function() {
|
|
1113
|
+
"use strict";
|
|
1114
|
+
"use client";
|
|
1115
|
+
}
|
|
860
1116
|
});
|
|
861
|
-
|
|
862
1117
|
// src/components/atoms/ui/table.tsx
|
|
863
1118
|
import * as React15 from "react";
|
|
864
1119
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
865
1120
|
var Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption;
|
|
866
1121
|
var init_table = __esm({
|
|
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
|
-
ref
|
|
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
|
-
|
|
1122
|
+
"src/components/atoms/ui/table.tsx": function() {
|
|
1123
|
+
"use strict";
|
|
1124
|
+
init_utils();
|
|
1125
|
+
Table = React15.forwardRef(function(_param, ref) {
|
|
1126
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1127
|
+
"className"
|
|
1128
|
+
]);
|
|
1129
|
+
return /* @__PURE__ */ jsx20("div", {
|
|
1130
|
+
className: "relative w-full overflow-auto",
|
|
1131
|
+
children: /* @__PURE__ */ jsx20("table", _object_spread({
|
|
1132
|
+
ref: ref,
|
|
1133
|
+
className: cn("w-full caption-bottom text-sm text-foreground bg-background", className, "alq--table")
|
|
1134
|
+
}, props))
|
|
1135
|
+
});
|
|
1136
|
+
});
|
|
1137
|
+
Table.displayName = "Table";
|
|
1138
|
+
TableHeader = React15.forwardRef(function(_param, ref) {
|
|
1139
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1140
|
+
"className"
|
|
1141
|
+
]);
|
|
1142
|
+
return /* @__PURE__ */ jsx20("thead", _object_spread({
|
|
1143
|
+
ref: ref,
|
|
1144
|
+
className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header")
|
|
1145
|
+
}, props));
|
|
1146
|
+
});
|
|
1147
|
+
TableHeader.displayName = "TableHeader";
|
|
1148
|
+
TableBody = React15.forwardRef(function(_param, ref) {
|
|
1149
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1150
|
+
"className"
|
|
1151
|
+
]);
|
|
1152
|
+
return /* @__PURE__ */ jsx20("tbody", _object_spread({
|
|
1153
|
+
ref: ref,
|
|
1154
|
+
className: cn("[&_tr:last-child]:border-0 [&_tr]:border-b border-border", className, "alq--table-body")
|
|
1155
|
+
}, props));
|
|
1156
|
+
});
|
|
1157
|
+
TableBody.displayName = "TableBody";
|
|
1158
|
+
TableFooter = React15.forwardRef(function(_param, ref) {
|
|
1159
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1160
|
+
"className"
|
|
1161
|
+
]);
|
|
1162
|
+
return /* @__PURE__ */ jsx20("tfoot", _object_spread({
|
|
1163
|
+
ref: ref,
|
|
1164
|
+
className: cn("border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0", className, "alq--table-footer")
|
|
1165
|
+
}, props));
|
|
1166
|
+
});
|
|
1167
|
+
TableFooter.displayName = "TableFooter";
|
|
1168
|
+
TableRow = React15.forwardRef(function(_param, ref) {
|
|
1169
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1170
|
+
"className"
|
|
1171
|
+
]);
|
|
1172
|
+
return /* @__PURE__ */ jsx20("tr", _object_spread({
|
|
1173
|
+
ref: ref,
|
|
1174
|
+
className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className)
|
|
1175
|
+
}, props));
|
|
1176
|
+
});
|
|
1177
|
+
TableRow.displayName = "TableRow";
|
|
1178
|
+
TableHead = React15.forwardRef(function(_param, ref) {
|
|
1179
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1180
|
+
"className"
|
|
1181
|
+
]);
|
|
1182
|
+
return /* @__PURE__ */ jsx20("th", _object_spread({
|
|
1183
|
+
ref: ref,
|
|
1184
|
+
className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className)
|
|
1185
|
+
}, props));
|
|
1186
|
+
});
|
|
1187
|
+
TableHead.displayName = "TableHead";
|
|
1188
|
+
TableCell = React15.forwardRef(function(_param, ref) {
|
|
1189
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1190
|
+
"className"
|
|
1191
|
+
]);
|
|
1192
|
+
return /* @__PURE__ */ jsx20("td", _object_spread({
|
|
1193
|
+
ref: ref,
|
|
1194
|
+
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)
|
|
1195
|
+
}, props));
|
|
1196
|
+
});
|
|
1197
|
+
TableCell.displayName = "TableCell";
|
|
1198
|
+
TableCaption = React15.forwardRef(function(_param, ref) {
|
|
1199
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1200
|
+
"className"
|
|
1201
|
+
]);
|
|
1202
|
+
return /* @__PURE__ */ jsx20("caption", _object_spread({
|
|
1203
|
+
ref: ref,
|
|
1204
|
+
className: cn("mt-4 text-sm text-muted-foreground", className)
|
|
1205
|
+
}, props));
|
|
1206
|
+
});
|
|
1207
|
+
TableCaption.displayName = "TableCaption";
|
|
1208
|
+
}
|
|
946
1209
|
});
|
|
947
|
-
|
|
948
1210
|
// src/components/atoms/ui/breadcrumb.tsx
|
|
949
1211
|
import * as React16 from "react";
|
|
950
1212
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
@@ -952,228 +1214,227 @@ import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
|
952
1214
|
import { jsx as jsx21, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
953
1215
|
var Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis;
|
|
954
1216
|
var init_breadcrumb = __esm({
|
|
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
|
-
|
|
1217
|
+
"src/components/atoms/ui/breadcrumb.tsx": function() {
|
|
1218
|
+
"use strict";
|
|
1219
|
+
init_utils();
|
|
1220
|
+
Breadcrumb = React16.forwardRef(function(_param, ref) {
|
|
1221
|
+
var props = _extends({}, _object_destructuring_empty(_param));
|
|
1222
|
+
return /* @__PURE__ */ jsx21("nav", _object_spread({
|
|
1223
|
+
ref: ref,
|
|
1224
|
+
"aria-label": "breadcrumb"
|
|
1225
|
+
}, props));
|
|
1226
|
+
});
|
|
1227
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
1228
|
+
BreadcrumbList = React16.forwardRef(function(_param, ref) {
|
|
1229
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1230
|
+
"className"
|
|
1231
|
+
]);
|
|
1232
|
+
return /* @__PURE__ */ jsx21("ol", _object_spread({
|
|
1233
|
+
ref: ref,
|
|
1234
|
+
className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className)
|
|
1235
|
+
}, props));
|
|
1236
|
+
});
|
|
1237
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1238
|
+
BreadcrumbItem = React16.forwardRef(function(_param, ref) {
|
|
1239
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1240
|
+
"className"
|
|
1241
|
+
]);
|
|
1242
|
+
return /* @__PURE__ */ jsx21("li", _object_spread({
|
|
1243
|
+
ref: ref,
|
|
1244
|
+
className: cn("inline-flex items-center gap-1.5", className)
|
|
1245
|
+
}, props));
|
|
1246
|
+
});
|
|
1247
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1248
|
+
BreadcrumbLink = React16.forwardRef(function(_param, ref) {
|
|
1249
|
+
var asChild = _param.asChild, className = _param.className, props = _object_without_properties(_param, [
|
|
1250
|
+
"asChild",
|
|
1251
|
+
"className"
|
|
1252
|
+
]);
|
|
1253
|
+
var Comp = asChild ? Slot2 : "a";
|
|
1254
|
+
return /* @__PURE__ */ jsx21(Comp, _object_spread({
|
|
1255
|
+
ref: ref,
|
|
1256
|
+
className: cn("transition-colors hover:text-foreground", className)
|
|
1257
|
+
}, props));
|
|
1258
|
+
});
|
|
1259
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1260
|
+
BreadcrumbPage = React16.forwardRef(function(_param, ref) {
|
|
1261
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1262
|
+
"className"
|
|
1263
|
+
]);
|
|
1264
|
+
return /* @__PURE__ */ jsx21("span", _object_spread({
|
|
1265
|
+
ref: ref,
|
|
1266
|
+
role: "link",
|
|
1267
|
+
"aria-disabled": "true",
|
|
1268
|
+
"aria-current": "page",
|
|
1269
|
+
className: cn("font-normal text-foreground", className)
|
|
1270
|
+
}, props));
|
|
1271
|
+
});
|
|
1272
|
+
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
1273
|
+
BreadcrumbSeparator = function(_param) {
|
|
1274
|
+
var children = _param.children, className = _param.className, props = _object_without_properties(_param, [
|
|
1275
|
+
"children",
|
|
1276
|
+
"className"
|
|
1277
|
+
]);
|
|
1278
|
+
return /* @__PURE__ */ jsx21("li", _object_spread_props(_object_spread({
|
|
1279
|
+
role: "presentation",
|
|
1280
|
+
"aria-hidden": "true",
|
|
1281
|
+
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)
|
|
1282
|
+
}, props), {
|
|
1283
|
+
children: children !== null && children !== void 0 ? children : /* @__PURE__ */ jsx21(ChevronRight, {})
|
|
1284
|
+
}));
|
|
1285
|
+
};
|
|
1286
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1287
|
+
BreadcrumbEllipsis = function(_param) {
|
|
1288
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1289
|
+
"className"
|
|
1290
|
+
]);
|
|
1291
|
+
return /* @__PURE__ */ jsxs5("span", _object_spread_props(_object_spread({
|
|
1292
|
+
role: "presentation",
|
|
1293
|
+
"aria-hidden": "true",
|
|
1294
|
+
className: cn("flex h-9 w-9 items-center justify-center", className)
|
|
1295
|
+
}, props), {
|
|
1296
|
+
children: [
|
|
1297
|
+
/* @__PURE__ */ jsx21(MoreHorizontal, {
|
|
1298
|
+
className: "h-4 w-4"
|
|
1299
|
+
}),
|
|
1300
|
+
/* @__PURE__ */ jsx21("span", {
|
|
1301
|
+
className: "sr-only",
|
|
1302
|
+
children: "More"
|
|
1303
|
+
})
|
|
1304
|
+
]
|
|
1305
|
+
}));
|
|
1306
|
+
};
|
|
1307
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
1308
|
+
}
|
|
1038
1309
|
});
|
|
1039
|
-
|
|
1040
1310
|
// src/components/molecules/alert-dialog.tsx
|
|
1041
1311
|
import * as React17 from "react";
|
|
1042
1312
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1043
1313
|
import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1044
1314
|
var AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel;
|
|
1045
1315
|
var init_alert_dialog = __esm({
|
|
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
|
-
buttonVariants({ variant: "outline" }),
|
|
1140
|
-
"mt-2 sm:mt-0",
|
|
1141
|
-
className
|
|
1142
|
-
),
|
|
1143
|
-
...props
|
|
1144
|
-
}
|
|
1145
|
-
));
|
|
1146
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1147
|
-
}
|
|
1316
|
+
"src/components/molecules/alert-dialog.tsx": function() {
|
|
1317
|
+
"use strict";
|
|
1318
|
+
"use client";
|
|
1319
|
+
init_utils();
|
|
1320
|
+
init_button();
|
|
1321
|
+
AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1322
|
+
AlertDialogOverlay = React17.forwardRef(function(_param, ref) {
|
|
1323
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1324
|
+
"className"
|
|
1325
|
+
]);
|
|
1326
|
+
return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
1327
|
+
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
|
|
1328
|
+
}, props), {
|
|
1329
|
+
ref: ref
|
|
1330
|
+
}));
|
|
1331
|
+
});
|
|
1332
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
1333
|
+
AlertDialogContent = React17.forwardRef(function(_param, ref) {
|
|
1334
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1335
|
+
"className"
|
|
1336
|
+
]);
|
|
1337
|
+
return /* @__PURE__ */ jsxs6(AlertDialogPortal, {
|
|
1338
|
+
children: [
|
|
1339
|
+
/* @__PURE__ */ jsx22(AlertDialogOverlay, {}),
|
|
1340
|
+
/* @__PURE__ */ jsx22(AlertDialogPrimitive.Content, _object_spread({
|
|
1341
|
+
ref: ref,
|
|
1342
|
+
className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className)
|
|
1343
|
+
}, props))
|
|
1344
|
+
]
|
|
1345
|
+
});
|
|
1346
|
+
});
|
|
1347
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
1348
|
+
AlertDialogHeader = function(_param) {
|
|
1349
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1350
|
+
"className"
|
|
1351
|
+
]);
|
|
1352
|
+
return /* @__PURE__ */ jsx22("div", _object_spread({
|
|
1353
|
+
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
1354
|
+
}, props));
|
|
1355
|
+
};
|
|
1356
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1357
|
+
AlertDialogFooter = function(_param) {
|
|
1358
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1359
|
+
"className"
|
|
1360
|
+
]);
|
|
1361
|
+
return /* @__PURE__ */ jsx22("div", _object_spread({
|
|
1362
|
+
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
1363
|
+
}, props));
|
|
1364
|
+
};
|
|
1365
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1366
|
+
AlertDialogTitle = React17.forwardRef(function(_param, ref) {
|
|
1367
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1368
|
+
"className"
|
|
1369
|
+
]);
|
|
1370
|
+
return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Title, _object_spread({
|
|
1371
|
+
ref: ref,
|
|
1372
|
+
className: cn("text-lg font-semibold", className)
|
|
1373
|
+
}, props));
|
|
1374
|
+
});
|
|
1375
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
1376
|
+
AlertDialogDescription = React17.forwardRef(function(_param, ref) {
|
|
1377
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1378
|
+
"className"
|
|
1379
|
+
]);
|
|
1380
|
+
return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Description, _object_spread({
|
|
1381
|
+
ref: ref,
|
|
1382
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
1383
|
+
}, props));
|
|
1384
|
+
});
|
|
1385
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
1386
|
+
AlertDialogAction = React17.forwardRef(function(_param, ref) {
|
|
1387
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1388
|
+
"className"
|
|
1389
|
+
]);
|
|
1390
|
+
return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Action, _object_spread({
|
|
1391
|
+
ref: ref,
|
|
1392
|
+
className: cn(buttonVariants(), className)
|
|
1393
|
+
}, props));
|
|
1394
|
+
});
|
|
1395
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
1396
|
+
AlertDialogCancel = React17.forwardRef(function(_param, ref) {
|
|
1397
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1398
|
+
"className"
|
|
1399
|
+
]);
|
|
1400
|
+
return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Cancel, _object_spread({
|
|
1401
|
+
ref: ref,
|
|
1402
|
+
className: cn(buttonVariants({
|
|
1403
|
+
variant: "outline"
|
|
1404
|
+
}), "mt-2 sm:mt-0", className)
|
|
1405
|
+
}, props));
|
|
1406
|
+
});
|
|
1407
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1408
|
+
}
|
|
1148
1409
|
});
|
|
1149
|
-
|
|
1150
1410
|
// src/components/atoms/ui/popover.tsx
|
|
1151
1411
|
import * as React18 from "react";
|
|
1152
1412
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1153
1413
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1154
1414
|
var PopoverContent;
|
|
1155
1415
|
var init_popover = __esm({
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1416
|
+
"src/components/atoms/ui/popover.tsx": function() {
|
|
1417
|
+
"use strict";
|
|
1418
|
+
"use client";
|
|
1419
|
+
init_utils();
|
|
1420
|
+
PopoverContent = React18.forwardRef(function(_param, ref) {
|
|
1421
|
+
var className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "center" : _param_align, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
1422
|
+
"className",
|
|
1423
|
+
"align",
|
|
1424
|
+
"sideOffset"
|
|
1425
|
+
]);
|
|
1426
|
+
return /* @__PURE__ */ jsx23(PopoverPrimitive.Portal, {
|
|
1427
|
+
children: /* @__PURE__ */ jsx23(PopoverPrimitive.Content, _object_spread({
|
|
1428
|
+
ref: ref,
|
|
1429
|
+
align: align,
|
|
1430
|
+
sideOffset: sideOffset,
|
|
1431
|
+
className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className)
|
|
1432
|
+
}, props))
|
|
1433
|
+
});
|
|
1434
|
+
});
|
|
1435
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1436
|
+
}
|
|
1175
1437
|
});
|
|
1176
|
-
|
|
1177
1438
|
// src/components/atoms/ui/dialog.tsx
|
|
1178
1439
|
import * as React19 from "react";
|
|
1179
1440
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
@@ -1181,101 +1442,94 @@ import { X } from "lucide-react";
|
|
|
1181
1442
|
import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1182
1443
|
var Dialog, DialogPortal, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription;
|
|
1183
1444
|
var init_dialog = __esm({
|
|
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
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
1272
|
-
...props
|
|
1273
|
-
}
|
|
1274
|
-
));
|
|
1275
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1276
|
-
}
|
|
1445
|
+
"src/components/atoms/ui/dialog.tsx": function() {
|
|
1446
|
+
"use strict";
|
|
1447
|
+
"use client";
|
|
1448
|
+
init_utils();
|
|
1449
|
+
Dialog = DialogPrimitive.Root;
|
|
1450
|
+
DialogPortal = DialogPrimitive.Portal;
|
|
1451
|
+
DialogOverlay = React19.forwardRef(function(_param, ref) {
|
|
1452
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1453
|
+
"className"
|
|
1454
|
+
]);
|
|
1455
|
+
return /* @__PURE__ */ jsx24(DialogPrimitive.Overlay, _object_spread({
|
|
1456
|
+
ref: ref,
|
|
1457
|
+
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
|
|
1458
|
+
}, props));
|
|
1459
|
+
});
|
|
1460
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1461
|
+
DialogContent = React19.forwardRef(function(_param, ref) {
|
|
1462
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1463
|
+
"className",
|
|
1464
|
+
"children"
|
|
1465
|
+
]);
|
|
1466
|
+
return /* @__PURE__ */ jsxs7(DialogPortal, {
|
|
1467
|
+
children: [
|
|
1468
|
+
/* @__PURE__ */ jsx24(DialogOverlay, {}),
|
|
1469
|
+
/* @__PURE__ */ jsxs7(DialogPrimitive.Content, _object_spread_props(_object_spread({
|
|
1470
|
+
ref: ref,
|
|
1471
|
+
className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className, "alq--dialog-content")
|
|
1472
|
+
}, props), {
|
|
1473
|
+
children: [
|
|
1474
|
+
children,
|
|
1475
|
+
/* @__PURE__ */ jsxs7(DialogPrimitive.Close, {
|
|
1476
|
+
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
1477
|
+
children: [
|
|
1478
|
+
/* @__PURE__ */ jsx24(X, {
|
|
1479
|
+
className: "h-4 w-4"
|
|
1480
|
+
}),
|
|
1481
|
+
/* @__PURE__ */ jsx24("span", {
|
|
1482
|
+
className: "sr-only",
|
|
1483
|
+
children: "Close"
|
|
1484
|
+
})
|
|
1485
|
+
]
|
|
1486
|
+
})
|
|
1487
|
+
]
|
|
1488
|
+
}))
|
|
1489
|
+
]
|
|
1490
|
+
});
|
|
1491
|
+
});
|
|
1492
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1493
|
+
DialogHeader = function(_param) {
|
|
1494
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1495
|
+
"className"
|
|
1496
|
+
]);
|
|
1497
|
+
return /* @__PURE__ */ jsx24("div", _object_spread({
|
|
1498
|
+
className: cn("flex flex-col space-y-1.5 text-center sm:text-left text-foreground", className, "alq--dialog-header")
|
|
1499
|
+
}, props));
|
|
1500
|
+
};
|
|
1501
|
+
DialogHeader.displayName = "DialogHeader";
|
|
1502
|
+
DialogFooter = function(_param) {
|
|
1503
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1504
|
+
"className"
|
|
1505
|
+
]);
|
|
1506
|
+
return /* @__PURE__ */ jsx24("div", _object_spread({
|
|
1507
|
+
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
1508
|
+
}, props));
|
|
1509
|
+
};
|
|
1510
|
+
DialogFooter.displayName = "DialogFooter";
|
|
1511
|
+
DialogTitle = React19.forwardRef(function(_param, ref) {
|
|
1512
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1513
|
+
"className"
|
|
1514
|
+
]);
|
|
1515
|
+
return /* @__PURE__ */ jsx24(DialogPrimitive.Title, _object_spread({
|
|
1516
|
+
ref: ref,
|
|
1517
|
+
className: cn("text-lg font-semibold leading-none tracking-tight text-foreground", className, "alq--dialog-title")
|
|
1518
|
+
}, props));
|
|
1519
|
+
});
|
|
1520
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1521
|
+
DialogDescription = React19.forwardRef(function(_param, ref) {
|
|
1522
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1523
|
+
"className"
|
|
1524
|
+
]);
|
|
1525
|
+
return /* @__PURE__ */ jsx24(DialogPrimitive.Description, _object_spread({
|
|
1526
|
+
ref: ref,
|
|
1527
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
1528
|
+
}, props));
|
|
1529
|
+
});
|
|
1530
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1531
|
+
}
|
|
1277
1532
|
});
|
|
1278
|
-
|
|
1279
1533
|
// src/components/atoms/ui/command.tsx
|
|
1280
1534
|
import * as React20 from "react";
|
|
1281
1535
|
import { Command as CommandPrimitive } from "cmdk";
|
|
@@ -1283,108 +1537,98 @@ import { Search } from "lucide-react";
|
|
|
1283
1537
|
import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1284
1538
|
var Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandSeparator, CommandItem, CommandShortcut;
|
|
1285
1539
|
var init_command = __esm({
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
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
|
-
ref
|
|
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
|
-
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1378
|
-
className
|
|
1379
|
-
),
|
|
1380
|
-
...props
|
|
1381
|
-
}
|
|
1382
|
-
);
|
|
1383
|
-
};
|
|
1384
|
-
CommandShortcut.displayName = "CommandShortcut";
|
|
1385
|
-
}
|
|
1540
|
+
"src/components/atoms/ui/command.tsx": function() {
|
|
1541
|
+
"use strict";
|
|
1542
|
+
"use client";
|
|
1543
|
+
init_utils();
|
|
1544
|
+
init_dialog();
|
|
1545
|
+
Command = React20.forwardRef(function(_param, ref) {
|
|
1546
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1547
|
+
"className"
|
|
1548
|
+
]);
|
|
1549
|
+
return /* @__PURE__ */ jsx25(CommandPrimitive, _object_spread({
|
|
1550
|
+
ref: ref,
|
|
1551
|
+
className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className)
|
|
1552
|
+
}, props));
|
|
1553
|
+
});
|
|
1554
|
+
Command.displayName = CommandPrimitive.displayName;
|
|
1555
|
+
CommandInput = React20.forwardRef(function(_param, ref) {
|
|
1556
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1557
|
+
"className"
|
|
1558
|
+
]);
|
|
1559
|
+
return /* @__PURE__ */ jsxs8("div", {
|
|
1560
|
+
className: "flex items-center border-b px-3",
|
|
1561
|
+
"cmdk-input-wrapper": "",
|
|
1562
|
+
children: [
|
|
1563
|
+
/* @__PURE__ */ jsx25(Search, {
|
|
1564
|
+
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
1565
|
+
}),
|
|
1566
|
+
/* @__PURE__ */ jsx25(CommandPrimitive.Input, _object_spread({
|
|
1567
|
+
ref: ref,
|
|
1568
|
+
className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className)
|
|
1569
|
+
}, props))
|
|
1570
|
+
]
|
|
1571
|
+
});
|
|
1572
|
+
});
|
|
1573
|
+
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1574
|
+
CommandList = React20.forwardRef(function(_param, ref) {
|
|
1575
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1576
|
+
"className"
|
|
1577
|
+
]);
|
|
1578
|
+
return /* @__PURE__ */ jsx25(CommandPrimitive.List, _object_spread({
|
|
1579
|
+
ref: ref,
|
|
1580
|
+
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)
|
|
1581
|
+
}, props));
|
|
1582
|
+
});
|
|
1583
|
+
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1584
|
+
CommandEmpty = React20.forwardRef(function(props, ref) {
|
|
1585
|
+
return /* @__PURE__ */ jsx25(CommandPrimitive.Empty, _object_spread({
|
|
1586
|
+
ref: ref,
|
|
1587
|
+
className: "py-6 text-center text-sm"
|
|
1588
|
+
}, props));
|
|
1589
|
+
});
|
|
1590
|
+
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1591
|
+
CommandGroup = React20.forwardRef(function(_param, ref) {
|
|
1592
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1593
|
+
"className"
|
|
1594
|
+
]);
|
|
1595
|
+
return /* @__PURE__ */ jsx25(CommandPrimitive.Group, _object_spread({
|
|
1596
|
+
ref: ref,
|
|
1597
|
+
className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className)
|
|
1598
|
+
}, props));
|
|
1599
|
+
});
|
|
1600
|
+
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1601
|
+
CommandSeparator = React20.forwardRef(function(_param, ref) {
|
|
1602
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1603
|
+
"className"
|
|
1604
|
+
]);
|
|
1605
|
+
return /* @__PURE__ */ jsx25(CommandPrimitive.Separator, _object_spread({
|
|
1606
|
+
ref: ref,
|
|
1607
|
+
className: cn("-mx-1 h-px bg-border", className)
|
|
1608
|
+
}, props));
|
|
1609
|
+
});
|
|
1610
|
+
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1611
|
+
CommandItem = React20.forwardRef(function(_param, ref) {
|
|
1612
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1613
|
+
"className"
|
|
1614
|
+
]);
|
|
1615
|
+
return /* @__PURE__ */ jsx25(CommandPrimitive.Item, _object_spread({
|
|
1616
|
+
ref: ref,
|
|
1617
|
+
className: cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className)
|
|
1618
|
+
}, props));
|
|
1619
|
+
});
|
|
1620
|
+
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1621
|
+
CommandShortcut = function(_param) {
|
|
1622
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1623
|
+
"className"
|
|
1624
|
+
]);
|
|
1625
|
+
return /* @__PURE__ */ jsx25("span", _object_spread({
|
|
1626
|
+
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className)
|
|
1627
|
+
}, props));
|
|
1628
|
+
};
|
|
1629
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
1630
|
+
}
|
|
1386
1631
|
});
|
|
1387
|
-
|
|
1388
1632
|
// src/components/atoms/ui/toast.tsx
|
|
1389
1633
|
import * as React21 from "react";
|
|
1390
1634
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
@@ -1393,94 +1637,91 @@ import { X as X2 } from "lucide-react";
|
|
|
1393
1637
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1394
1638
|
var ToastViewport, toastVariants, Toast, ToastAction, ToastClose, ToastTitle, ToastDescription;
|
|
1395
1639
|
var init_toast = __esm({
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
)
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1481
|
-
}
|
|
1640
|
+
"src/components/atoms/ui/toast.tsx": function() {
|
|
1641
|
+
"use strict";
|
|
1642
|
+
"use client";
|
|
1643
|
+
init_utils();
|
|
1644
|
+
ToastViewport = React21.forwardRef(function(_param, ref) {
|
|
1645
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1646
|
+
"className"
|
|
1647
|
+
]);
|
|
1648
|
+
return /* @__PURE__ */ jsx26(ToastPrimitives.Viewport, _object_spread({
|
|
1649
|
+
ref: ref,
|
|
1650
|
+
className: cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", className)
|
|
1651
|
+
}, props));
|
|
1652
|
+
});
|
|
1653
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1654
|
+
toastVariants = cva6("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
1655
|
+
variants: {
|
|
1656
|
+
variant: {
|
|
1657
|
+
default: "border bg-background text-foreground",
|
|
1658
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
defaultVariants: {
|
|
1662
|
+
variant: "default"
|
|
1663
|
+
}
|
|
1664
|
+
});
|
|
1665
|
+
Toast = React21.forwardRef(function(_param, ref) {
|
|
1666
|
+
var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
|
|
1667
|
+
"className",
|
|
1668
|
+
"variant"
|
|
1669
|
+
]);
|
|
1670
|
+
return /* @__PURE__ */ jsx26(ToastPrimitives.Root, _object_spread({
|
|
1671
|
+
ref: ref,
|
|
1672
|
+
className: cn(toastVariants({
|
|
1673
|
+
variant: variant
|
|
1674
|
+
}), className)
|
|
1675
|
+
}, props));
|
|
1676
|
+
});
|
|
1677
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1678
|
+
ToastAction = React21.forwardRef(function(_param, ref) {
|
|
1679
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1680
|
+
"className"
|
|
1681
|
+
]);
|
|
1682
|
+
return /* @__PURE__ */ jsx26(ToastPrimitives.Action, _object_spread({
|
|
1683
|
+
ref: ref,
|
|
1684
|
+
className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", className)
|
|
1685
|
+
}, props));
|
|
1686
|
+
});
|
|
1687
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1688
|
+
ToastClose = React21.forwardRef(function(_param, ref) {
|
|
1689
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1690
|
+
"className"
|
|
1691
|
+
]);
|
|
1692
|
+
return /* @__PURE__ */ jsx26(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
1693
|
+
ref: ref,
|
|
1694
|
+
className: cn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
|
|
1695
|
+
"toast-close": ""
|
|
1696
|
+
}, props), {
|
|
1697
|
+
children: /* @__PURE__ */ jsx26(X2, {
|
|
1698
|
+
className: "h-4 w-4"
|
|
1699
|
+
})
|
|
1700
|
+
}));
|
|
1701
|
+
});
|
|
1702
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1703
|
+
ToastTitle = React21.forwardRef(function(_param, ref) {
|
|
1704
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1705
|
+
"className"
|
|
1706
|
+
]);
|
|
1707
|
+
return /* @__PURE__ */ jsx26(ToastPrimitives.Title, _object_spread({
|
|
1708
|
+
ref: ref,
|
|
1709
|
+
className: cn("text-sm font-semibold", className)
|
|
1710
|
+
}, props));
|
|
1711
|
+
});
|
|
1712
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1713
|
+
ToastDescription = React21.forwardRef(function(_param, ref) {
|
|
1714
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1715
|
+
"className"
|
|
1716
|
+
]);
|
|
1717
|
+
return /* @__PURE__ */ jsx26(ToastPrimitives.Description, _object_spread({
|
|
1718
|
+
ref: ref,
|
|
1719
|
+
className: cn("text-sm opacity-90", className)
|
|
1720
|
+
}, props));
|
|
1721
|
+
});
|
|
1722
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1723
|
+
}
|
|
1482
1724
|
});
|
|
1483
|
-
|
|
1484
1725
|
// src/components/atoms/ui/loader.tsx
|
|
1485
1726
|
import * as React22 from "react";
|
|
1486
1727
|
import { cva as cva7 } from "class-variance-authority";
|
|
@@ -1488,96 +1729,94 @@ import { Loader2 } from "lucide-react";
|
|
|
1488
1729
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1489
1730
|
var loaderVariants, Loader;
|
|
1490
1731
|
var init_loader = __esm({
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1732
|
+
"src/components/atoms/ui/loader.tsx": function() {
|
|
1733
|
+
"use strict";
|
|
1734
|
+
init_utils();
|
|
1735
|
+
loaderVariants = cva7("flex justify-center items-center w-full", {
|
|
1736
|
+
variants: {
|
|
1737
|
+
size: {
|
|
1738
|
+
small: "h-6 w-6",
|
|
1739
|
+
medium: "h-8 w-8",
|
|
1740
|
+
large: "h-12 w-12",
|
|
1741
|
+
xl: "h-24 w-24"
|
|
1742
|
+
},
|
|
1743
|
+
colorVariant: {
|
|
1744
|
+
default: "text-primary",
|
|
1745
|
+
primary: "text-primary",
|
|
1746
|
+
secondary: "text-secondary",
|
|
1747
|
+
destructive: "text-destructive"
|
|
1748
|
+
}
|
|
1749
|
+
},
|
|
1750
|
+
defaultVariants: {
|
|
1751
|
+
size: "medium",
|
|
1752
|
+
colorVariant: "default"
|
|
1753
|
+
}
|
|
1754
|
+
});
|
|
1755
|
+
Loader = React22.forwardRef(function(_param, ref) {
|
|
1756
|
+
var className = _param.className, size = _param.size, colorVariant = _param.colorVariant, props = _object_without_properties(_param, [
|
|
1757
|
+
"className",
|
|
1758
|
+
"size",
|
|
1759
|
+
"colorVariant"
|
|
1760
|
+
]);
|
|
1761
|
+
return /* @__PURE__ */ jsx27("div", _object_spread_props(_object_spread({
|
|
1762
|
+
ref: ref,
|
|
1763
|
+
className: cn(loaderVariants({
|
|
1764
|
+
size: size,
|
|
1765
|
+
colorVariant: colorVariant
|
|
1766
|
+
}), "flex justify-center items-center h-full w-full", className)
|
|
1767
|
+
}, props), {
|
|
1768
|
+
children: /* @__PURE__ */ jsx27(Loader2, {
|
|
1769
|
+
className: "animate-spin"
|
|
1770
|
+
})
|
|
1771
|
+
}));
|
|
1772
|
+
});
|
|
1773
|
+
Loader.displayName = "Loader";
|
|
1774
|
+
}
|
|
1530
1775
|
});
|
|
1531
|
-
|
|
1532
1776
|
// src/components/atoms/ui/separator.tsx
|
|
1533
1777
|
import * as React23 from "react";
|
|
1534
1778
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1535
1779
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1536
1780
|
var Separator2;
|
|
1537
1781
|
var init_separator = __esm({
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1558
|
-
}
|
|
1782
|
+
"src/components/atoms/ui/separator.tsx": function() {
|
|
1783
|
+
"use strict";
|
|
1784
|
+
"use client";
|
|
1785
|
+
init_utils();
|
|
1786
|
+
Separator2 = React23.forwardRef(function(_param, ref) {
|
|
1787
|
+
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_decorative = _param.decorative, decorative = _param_decorative === void 0 ? true : _param_decorative, props = _object_without_properties(_param, [
|
|
1788
|
+
"className",
|
|
1789
|
+
"orientation",
|
|
1790
|
+
"decorative"
|
|
1791
|
+
]);
|
|
1792
|
+
return /* @__PURE__ */ jsx28(SeparatorPrimitive.Root, _object_spread({
|
|
1793
|
+
ref: ref,
|
|
1794
|
+
decorative: decorative,
|
|
1795
|
+
orientation: orientation,
|
|
1796
|
+
className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className, "alq--separator")
|
|
1797
|
+
}, props));
|
|
1798
|
+
});
|
|
1799
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1800
|
+
}
|
|
1559
1801
|
});
|
|
1560
|
-
|
|
1561
1802
|
// src/components/hooks/use-toast.ts
|
|
1562
1803
|
import * as React24 from "react";
|
|
1563
1804
|
var init_use_toast = __esm({
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1805
|
+
"src/components/hooks/use-toast.ts": function() {
|
|
1806
|
+
"use strict";
|
|
1807
|
+
"use client";
|
|
1808
|
+
}
|
|
1568
1809
|
});
|
|
1569
|
-
|
|
1570
1810
|
// src/components/atoms/ui/toaster.tsx
|
|
1571
1811
|
import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1572
1812
|
var init_toaster = __esm({
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1813
|
+
"src/components/atoms/ui/toaster.tsx": function() {
|
|
1814
|
+
"use strict";
|
|
1815
|
+
"use client";
|
|
1816
|
+
init_use_toast();
|
|
1817
|
+
init_toast();
|
|
1818
|
+
}
|
|
1579
1819
|
});
|
|
1580
|
-
|
|
1581
1820
|
// src/components/atoms/ui/think-indicator.tsx
|
|
1582
1821
|
import * as React25 from "react";
|
|
1583
1822
|
import { useState as useState2, useEffect as useEffect2 } from "react";
|
|
@@ -1585,163 +1824,155 @@ import { cva as cva8 } from "class-variance-authority";
|
|
|
1585
1824
|
import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1586
1825
|
var thinkIndicatorVariants, ThinkIndicator;
|
|
1587
1826
|
var init_think_indicator = __esm({
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
sm: "gap-2",
|
|
1605
|
-
lg: "gap-4"
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
defaultVariants: {
|
|
1609
|
-
variant: "default",
|
|
1610
|
-
size: "default"
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
);
|
|
1614
|
-
ThinkIndicator = React25.forwardRef(
|
|
1615
|
-
({
|
|
1616
|
-
className,
|
|
1617
|
-
variant,
|
|
1618
|
-
size,
|
|
1619
|
-
thoughts = [
|
|
1620
|
-
"Analyzing your request...",
|
|
1621
|
-
"Processing information...",
|
|
1622
|
-
"Formulating response..."
|
|
1623
|
-
],
|
|
1624
|
-
interval = 5e3,
|
|
1625
|
-
loader,
|
|
1626
|
-
...props
|
|
1627
|
-
}, ref) => {
|
|
1628
|
-
const [currentThoughtIndex, setCurrentThoughtIndex] = useState2(0);
|
|
1629
|
-
const [isAnimating, setIsAnimating] = useState2(false);
|
|
1630
|
-
useEffect2(() => {
|
|
1631
|
-
const timer = setInterval(() => {
|
|
1632
|
-
setIsAnimating(true);
|
|
1633
|
-
setTimeout(() => {
|
|
1634
|
-
setCurrentThoughtIndex((prev) => {
|
|
1635
|
-
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
1636
|
-
});
|
|
1637
|
-
setIsAnimating(false);
|
|
1638
|
-
}, 300);
|
|
1639
|
-
}, interval);
|
|
1640
|
-
if (currentThoughtIndex === thoughts.length - 1) {
|
|
1641
|
-
clearInterval(timer);
|
|
1642
|
-
}
|
|
1643
|
-
return () => clearInterval(timer);
|
|
1644
|
-
}, [thoughts, interval, currentThoughtIndex]);
|
|
1645
|
-
return /* @__PURE__ */ jsxs10(
|
|
1646
|
-
"div",
|
|
1647
|
-
{
|
|
1648
|
-
ref,
|
|
1649
|
-
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1650
|
-
...props,
|
|
1651
|
-
children: [
|
|
1652
|
-
loader || /* @__PURE__ */ jsx30(
|
|
1653
|
-
Loader,
|
|
1654
|
-
{
|
|
1655
|
-
className: cn(
|
|
1656
|
-
size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
|
|
1657
|
-
)
|
|
1827
|
+
"src/components/atoms/ui/think-indicator.tsx": function() {
|
|
1828
|
+
"use strict";
|
|
1829
|
+
"use client";
|
|
1830
|
+
init_atoms();
|
|
1831
|
+
init_utils();
|
|
1832
|
+
thinkIndicatorVariants = cva8("flex items-center gap-3", {
|
|
1833
|
+
variants: {
|
|
1834
|
+
variant: {
|
|
1835
|
+
default: "text-muted-foreground",
|
|
1836
|
+
primary: "text-primary",
|
|
1837
|
+
secondary: "text-secondary"
|
|
1838
|
+
},
|
|
1839
|
+
size: {
|
|
1840
|
+
default: "gap-3",
|
|
1841
|
+
sm: "gap-2",
|
|
1842
|
+
lg: "gap-4"
|
|
1658
1843
|
}
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
"
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1844
|
+
},
|
|
1845
|
+
defaultVariants: {
|
|
1846
|
+
variant: "default",
|
|
1847
|
+
size: "default"
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
ThinkIndicator = React25.forwardRef(function(_param, ref) {
|
|
1851
|
+
var className = _param.className, variant = _param.variant, size = _param.size, _param_thoughts = _param.thoughts, thoughts = _param_thoughts === void 0 ? [
|
|
1852
|
+
"Analyzing your request...",
|
|
1853
|
+
"Processing information...",
|
|
1854
|
+
"Formulating response..."
|
|
1855
|
+
] : _param_thoughts, _param_interval = _param.interval, interval = _param_interval === void 0 ? 5e3 : _param_interval, loader = _param.loader, props = _object_without_properties(_param, [
|
|
1856
|
+
"className",
|
|
1857
|
+
"variant",
|
|
1858
|
+
"size",
|
|
1859
|
+
"thoughts",
|
|
1860
|
+
"interval",
|
|
1861
|
+
"loader"
|
|
1862
|
+
]);
|
|
1863
|
+
var _useState2 = _sliced_to_array(useState2(0), 2), currentThoughtIndex = _useState2[0], setCurrentThoughtIndex = _useState2[1];
|
|
1864
|
+
var _useState21 = _sliced_to_array(useState2(false), 2), isAnimating = _useState21[0], setIsAnimating = _useState21[1];
|
|
1865
|
+
useEffect2(function() {
|
|
1866
|
+
var timer = setInterval(function() {
|
|
1867
|
+
setIsAnimating(true);
|
|
1868
|
+
setTimeout(function() {
|
|
1869
|
+
setCurrentThoughtIndex(function(prev) {
|
|
1870
|
+
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
1871
|
+
});
|
|
1872
|
+
setIsAnimating(false);
|
|
1873
|
+
}, 300);
|
|
1874
|
+
}, interval);
|
|
1875
|
+
if (currentThoughtIndex === thoughts.length - 1) {
|
|
1876
|
+
clearInterval(timer);
|
|
1669
1877
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1878
|
+
return function() {
|
|
1879
|
+
return clearInterval(timer);
|
|
1880
|
+
};
|
|
1881
|
+
}, [
|
|
1882
|
+
thoughts,
|
|
1883
|
+
interval,
|
|
1884
|
+
currentThoughtIndex
|
|
1885
|
+
]);
|
|
1886
|
+
return /* @__PURE__ */ jsxs10("div", _object_spread_props(_object_spread({
|
|
1887
|
+
ref: ref,
|
|
1888
|
+
className: cn(thinkIndicatorVariants({
|
|
1889
|
+
variant: variant,
|
|
1890
|
+
size: size
|
|
1891
|
+
}), className, "alq--think-indicator")
|
|
1892
|
+
}, props), {
|
|
1893
|
+
children: [
|
|
1894
|
+
loader || /* @__PURE__ */ jsx30(Loader, {
|
|
1895
|
+
className: cn(size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4")
|
|
1896
|
+
}),
|
|
1897
|
+
/* @__PURE__ */ jsx30("div", {
|
|
1898
|
+
className: cn("alq--think-indicator-text", "transition-all duration-300", isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"),
|
|
1899
|
+
children: thoughts[currentThoughtIndex]
|
|
1900
|
+
})
|
|
1901
|
+
]
|
|
1902
|
+
}));
|
|
1903
|
+
});
|
|
1904
|
+
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1905
|
+
}
|
|
1678
1906
|
});
|
|
1679
|
-
|
|
1680
1907
|
// src/components/atoms/index.ts
|
|
1681
1908
|
var init_atoms = __esm({
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1909
|
+
"src/components/atoms/index.ts": function() {
|
|
1910
|
+
"use strict";
|
|
1911
|
+
init_button();
|
|
1912
|
+
init_textarea();
|
|
1913
|
+
init_input();
|
|
1914
|
+
init_select();
|
|
1915
|
+
init_avatar();
|
|
1916
|
+
init_scroll_area();
|
|
1917
|
+
init_rich_text();
|
|
1918
|
+
init_skeleton();
|
|
1919
|
+
init_card();
|
|
1920
|
+
init_drawer();
|
|
1921
|
+
init_typography();
|
|
1922
|
+
init_badge();
|
|
1923
|
+
init_alert();
|
|
1924
|
+
init_input();
|
|
1925
|
+
init_label();
|
|
1926
|
+
init_checkbox();
|
|
1927
|
+
init_toggle();
|
|
1928
|
+
init_select();
|
|
1929
|
+
init_slider();
|
|
1930
|
+
init_switch();
|
|
1931
|
+
init_tabs();
|
|
1932
|
+
init_aspect_ratio();
|
|
1933
|
+
init_table();
|
|
1934
|
+
init_breadcrumb();
|
|
1935
|
+
init_alert_dialog();
|
|
1936
|
+
init_popover();
|
|
1937
|
+
init_command();
|
|
1938
|
+
init_dialog();
|
|
1939
|
+
init_toast();
|
|
1940
|
+
init_loader();
|
|
1941
|
+
init_separator();
|
|
1942
|
+
init_toaster();
|
|
1943
|
+
init_think_indicator();
|
|
1944
|
+
}
|
|
1718
1945
|
});
|
|
1719
|
-
|
|
1720
1946
|
// src/components/hooks/use-resize-observer.ts
|
|
1721
1947
|
import { useEffect as useEffect3, useRef } from "react";
|
|
1722
1948
|
function useResizeObserver(element, options2, observerCallback) {
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1949
|
+
var observerRef = useRef(null);
|
|
1950
|
+
useEffect3(function() {
|
|
1951
|
+
if (!element) return;
|
|
1952
|
+
observerRef.current = new ResizeObserver(observerCallback);
|
|
1953
|
+
observerRef.current.observe(element, options2);
|
|
1954
|
+
return function() {
|
|
1955
|
+
if (observerRef.current) {
|
|
1956
|
+
observerRef.current.disconnect();
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1959
|
+
}, [
|
|
1960
|
+
element,
|
|
1961
|
+
options2,
|
|
1962
|
+
observerCallback
|
|
1963
|
+
]);
|
|
1734
1964
|
}
|
|
1735
1965
|
var init_use_resize_observer = __esm({
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1966
|
+
"src/components/hooks/use-resize-observer.ts": function() {
|
|
1967
|
+
"use strict";
|
|
1968
|
+
}
|
|
1739
1969
|
});
|
|
1740
|
-
|
|
1741
1970
|
// src/components/molecules/viewers/pdf-viewer.tsx
|
|
1742
1971
|
var pdf_viewer_exports = {};
|
|
1743
1972
|
__export(pdf_viewer_exports, {
|
|
1744
|
-
|
|
1973
|
+
default: function() {
|
|
1974
|
+
return PdfViewer;
|
|
1975
|
+
}
|
|
1745
1976
|
});
|
|
1746
1977
|
import { useState as useState4, useCallback, useEffect as useEffect4 } from "react";
|
|
1747
1978
|
import { ChevronLeft, ChevronRight as ChevronRight2, ZoomIn, ZoomOut } from "lucide-react";
|
|
@@ -1749,299 +1980,511 @@ import { pdfjs, Document, Page } from "react-pdf";
|
|
|
1749
1980
|
import "react-pdf/dist/esm/Page/AnnotationLayer.css";
|
|
1750
1981
|
import "react-pdf/dist/esm/Page/TextLayer.css";
|
|
1751
1982
|
import { Fragment, jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1752
|
-
function PdfViewer(
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
setPageNumber(1);
|
|
1770
|
-
setScale(1);
|
|
1771
|
-
};
|
|
1772
|
-
useEffect4(() => {
|
|
1773
|
-
resetDocument();
|
|
1774
|
-
}, []);
|
|
1775
|
-
const handlePrevPage = () => setPageNumber((prev) => Math.max(prev - 1, 1));
|
|
1776
|
-
const handleNextPage = () => setPageNumber((prev) => Math.min(prev + 1, numPages));
|
|
1777
|
-
const handleZoomIn = () => setScale((prev) => Math.min(prev + 0.1, 2));
|
|
1778
|
-
const handleZoomOut = () => setScale((prev) => Math.max(prev - 0.1, 0.5));
|
|
1779
|
-
const handleKeyDown = useCallback((e) => {
|
|
1780
|
-
if (e.key === "ArrowLeft") {
|
|
1781
|
-
handlePrevPage();
|
|
1782
|
-
} else if (e.key === "ArrowRight") {
|
|
1783
|
-
handleNextPage();
|
|
1983
|
+
function PdfViewer(param) {
|
|
1984
|
+
var doc = param.doc, docId = param.docId;
|
|
1985
|
+
var _useState4 = _sliced_to_array(useState4(0), 2), numPages = _useState4[0], setNumPages = _useState4[1];
|
|
1986
|
+
var _useState41 = _sliced_to_array(useState4(1), 2), pageNumber = _useState41[0], setPageNumber = _useState41[1];
|
|
1987
|
+
var _useState42 = _sliced_to_array(useState4(1), 2), scale = _useState42[0], setScale = _useState42[1];
|
|
1988
|
+
var _useState43 = _sliced_to_array(useState4(null), 2), containerRef = _useState43[0], setContainerRef = _useState43[1];
|
|
1989
|
+
var _useState44 = _sliced_to_array(useState4(), 2), containerWidth = _useState44[0], setContainerWidth = _useState44[1];
|
|
1990
|
+
var onResize = useCallback(function(entries) {
|
|
1991
|
+
var _entries = _sliced_to_array(entries, 1), entry = _entries[0];
|
|
1992
|
+
if (entry) {
|
|
1993
|
+
setContainerWidth(entry.contentRect.width);
|
|
1994
|
+
}
|
|
1995
|
+
}, []);
|
|
1996
|
+
useResizeObserver(containerRef, resizeObserverOptions, onResize);
|
|
1997
|
+
function onDocumentLoadSuccess(param) {
|
|
1998
|
+
var nextNumPages = param.numPages;
|
|
1999
|
+
setNumPages(nextNumPages);
|
|
1784
2000
|
}
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
)
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
2001
|
+
var resetDocument = function() {
|
|
2002
|
+
setPageNumber(1);
|
|
2003
|
+
setScale(1);
|
|
2004
|
+
};
|
|
2005
|
+
useEffect4(function() {
|
|
2006
|
+
resetDocument();
|
|
2007
|
+
}, []);
|
|
2008
|
+
var handlePrevPage = function() {
|
|
2009
|
+
return setPageNumber(function(prev) {
|
|
2010
|
+
return Math.max(prev - 1, 1);
|
|
2011
|
+
});
|
|
2012
|
+
};
|
|
2013
|
+
var handleNextPage = function() {
|
|
2014
|
+
return setPageNumber(function(prev) {
|
|
2015
|
+
return Math.min(prev + 1, numPages);
|
|
2016
|
+
});
|
|
2017
|
+
};
|
|
2018
|
+
var handleZoomIn = function() {
|
|
2019
|
+
return setScale(function(prev) {
|
|
2020
|
+
return Math.min(prev + 0.1, 2);
|
|
2021
|
+
});
|
|
2022
|
+
};
|
|
2023
|
+
var handleZoomOut = function() {
|
|
2024
|
+
return setScale(function(prev) {
|
|
2025
|
+
return Math.max(prev - 0.1, 0.5);
|
|
2026
|
+
});
|
|
2027
|
+
};
|
|
2028
|
+
var handleKeyDown = useCallback(function(e) {
|
|
2029
|
+
if (e.key === "ArrowLeft") {
|
|
2030
|
+
handlePrevPage();
|
|
2031
|
+
} else if (e.key === "ArrowRight") {
|
|
2032
|
+
handleNextPage();
|
|
2033
|
+
}
|
|
2034
|
+
}, [
|
|
2035
|
+
handlePrevPage,
|
|
2036
|
+
handleNextPage
|
|
2037
|
+
]);
|
|
2038
|
+
useEffect4(function() {
|
|
2039
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
2040
|
+
return function() {
|
|
2041
|
+
return window.removeEventListener("keydown", handleKeyDown);
|
|
2042
|
+
};
|
|
2043
|
+
}, [
|
|
2044
|
+
handleKeyDown
|
|
2045
|
+
]);
|
|
2046
|
+
var handleDownloadFile = function() {
|
|
2047
|
+
var docUrl = doc && URL.createObjectURL(doc);
|
|
2048
|
+
var a = document.createElement("a");
|
|
2049
|
+
a.href = docUrl || "";
|
|
2050
|
+
a.download = docId;
|
|
2051
|
+
a.click();
|
|
2052
|
+
URL.revokeObjectURL(docUrl || "");
|
|
2053
|
+
};
|
|
2054
|
+
return /* @__PURE__ */ jsxs11(Fragment, {
|
|
2055
|
+
children: [
|
|
2056
|
+
/* @__PURE__ */ jsxs11("div", {
|
|
2057
|
+
className: "flex justify-between items-center p-4 border-b border-border",
|
|
2058
|
+
children: [
|
|
2059
|
+
/* @__PURE__ */ jsxs11("div", {
|
|
2060
|
+
children: [
|
|
2061
|
+
/* @__PURE__ */ jsx31(Button, {
|
|
2062
|
+
onClick: handlePrevPage,
|
|
2063
|
+
disabled: pageNumber <= 1,
|
|
2064
|
+
children: /* @__PURE__ */ jsx31(ChevronLeft, {
|
|
2065
|
+
className: "h-4 w-4"
|
|
2066
|
+
})
|
|
2067
|
+
}),
|
|
2068
|
+
/* @__PURE__ */ jsxs11("span", {
|
|
2069
|
+
className: "mx-2",
|
|
2070
|
+
children: [
|
|
2071
|
+
"Page ",
|
|
2072
|
+
pageNumber,
|
|
2073
|
+
" of ",
|
|
2074
|
+
numPages
|
|
2075
|
+
]
|
|
2076
|
+
}),
|
|
2077
|
+
/* @__PURE__ */ jsx31(Button, {
|
|
2078
|
+
onClick: handleNextPage,
|
|
2079
|
+
disabled: pageNumber >= numPages,
|
|
2080
|
+
children: /* @__PURE__ */ jsx31(ChevronRight2, {
|
|
2081
|
+
className: "h-4 w-4"
|
|
2082
|
+
})
|
|
2083
|
+
})
|
|
2084
|
+
]
|
|
2085
|
+
}),
|
|
2086
|
+
/* @__PURE__ */ jsxs11("div", {
|
|
2087
|
+
children: [
|
|
2088
|
+
/* @__PURE__ */ jsx31(Button, {
|
|
2089
|
+
onClick: handleZoomOut,
|
|
2090
|
+
children: /* @__PURE__ */ jsx31(ZoomOut, {
|
|
2091
|
+
className: "h-4 w-4"
|
|
2092
|
+
})
|
|
2093
|
+
}),
|
|
2094
|
+
/* @__PURE__ */ jsxs11("span", {
|
|
2095
|
+
className: "mx-2",
|
|
2096
|
+
children: [
|
|
2097
|
+
(scale * 100).toFixed(0),
|
|
2098
|
+
"%"
|
|
2099
|
+
]
|
|
2100
|
+
}),
|
|
2101
|
+
/* @__PURE__ */ jsx31(Button, {
|
|
2102
|
+
onClick: handleZoomIn,
|
|
2103
|
+
children: /* @__PURE__ */ jsx31(ZoomIn, {
|
|
2104
|
+
className: "h-4 w-4"
|
|
2105
|
+
})
|
|
2106
|
+
})
|
|
2107
|
+
]
|
|
2108
|
+
})
|
|
2109
|
+
]
|
|
2110
|
+
}),
|
|
2111
|
+
/* @__PURE__ */ jsx31("div", {
|
|
2112
|
+
ref: setContainerRef,
|
|
2113
|
+
className: "overflow-auto",
|
|
2114
|
+
children: /* @__PURE__ */ jsx31(Document, {
|
|
2115
|
+
file: doc,
|
|
2116
|
+
onLoadSuccess: onDocumentLoadSuccess,
|
|
2117
|
+
options: options,
|
|
2118
|
+
loading: /* @__PURE__ */ jsx31(Loader, {
|
|
2119
|
+
size: "xl",
|
|
2120
|
+
colorVariant: "destructive"
|
|
2121
|
+
}),
|
|
2122
|
+
children: /* @__PURE__ */ jsx31(Page, {
|
|
2123
|
+
pageNumber: pageNumber,
|
|
2124
|
+
scale: scale,
|
|
2125
|
+
width: containerWidth,
|
|
2126
|
+
className: "w-full"
|
|
2127
|
+
})
|
|
2128
|
+
})
|
|
2129
|
+
})
|
|
2130
|
+
]
|
|
2131
|
+
});
|
|
1852
2132
|
}
|
|
1853
2133
|
var options, resizeObserverOptions;
|
|
1854
2134
|
var init_pdf_viewer = __esm({
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
2135
|
+
"src/components/molecules/viewers/pdf-viewer.tsx": function() {
|
|
2136
|
+
"use strict";
|
|
2137
|
+
"use client";
|
|
2138
|
+
init_atoms();
|
|
2139
|
+
init_use_resize_observer();
|
|
2140
|
+
pdfjs.GlobalWorkerOptions.workerSrc = "//unpkg.com/pdfjs-dist@".concat(pdfjs.version, "/build/pdf.worker.min.mjs");
|
|
2141
|
+
options = {
|
|
2142
|
+
cMapUrl: "/cmaps/",
|
|
2143
|
+
standardFontDataUrl: "/standard_fonts/",
|
|
2144
|
+
cMapPacked: true
|
|
2145
|
+
};
|
|
2146
|
+
resizeObserverOptions = {};
|
|
2147
|
+
}
|
|
1868
2148
|
});
|
|
1869
|
-
|
|
1870
2149
|
// src/components/molecules/viewers/plain-text-viewer.tsx
|
|
1871
2150
|
var plain_text_viewer_exports = {};
|
|
1872
2151
|
__export(plain_text_viewer_exports, {
|
|
1873
|
-
|
|
2152
|
+
default: function() {
|
|
2153
|
+
return PlainTextViewer;
|
|
2154
|
+
}
|
|
1874
2155
|
});
|
|
1875
2156
|
import { useState as useState5, useEffect as useEffect5 } from "react";
|
|
1876
2157
|
import { Fragment as Fragment2, jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1877
|
-
function PlainTextViewer(
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
2158
|
+
function PlainTextViewer(param) {
|
|
2159
|
+
var doc = param.doc;
|
|
2160
|
+
var _useState5 = _sliced_to_array(useState5(null), 2), content = _useState5[0], setContent = _useState5[1];
|
|
2161
|
+
var _useState51 = _sliced_to_array(useState5(true), 2), loading = _useState51[0], setLoading = _useState51[1];
|
|
2162
|
+
useEffect5(function() {
|
|
2163
|
+
var parseDocument = function parseDocument() {
|
|
2164
|
+
return _parseDocument.apply(this, arguments);
|
|
2165
|
+
};
|
|
2166
|
+
function _parseDocument() {
|
|
2167
|
+
_parseDocument = _async_to_generator(function() {
|
|
2168
|
+
var text, err;
|
|
2169
|
+
return _ts_generator(this, function(_state) {
|
|
2170
|
+
switch(_state.label){
|
|
2171
|
+
case 0:
|
|
2172
|
+
_state.trys.push([
|
|
2173
|
+
0,
|
|
2174
|
+
3,
|
|
2175
|
+
4,
|
|
2176
|
+
5
|
|
2177
|
+
]);
|
|
2178
|
+
if (!(doc && doc.type === "text/plain")) return [
|
|
2179
|
+
3,
|
|
2180
|
+
2
|
|
2181
|
+
];
|
|
2182
|
+
return [
|
|
2183
|
+
4,
|
|
2184
|
+
doc.text()
|
|
2185
|
+
];
|
|
2186
|
+
case 1:
|
|
2187
|
+
text = _state.sent();
|
|
2188
|
+
setContent(text);
|
|
2189
|
+
_state.label = 2;
|
|
2190
|
+
case 2:
|
|
2191
|
+
return [
|
|
2192
|
+
3,
|
|
2193
|
+
5
|
|
2194
|
+
];
|
|
2195
|
+
case 3:
|
|
2196
|
+
err = _state.sent();
|
|
2197
|
+
console.error("Error parsing Document:", err);
|
|
2198
|
+
return [
|
|
2199
|
+
3,
|
|
2200
|
+
5
|
|
2201
|
+
];
|
|
2202
|
+
case 4:
|
|
2203
|
+
setLoading(false);
|
|
2204
|
+
return [
|
|
2205
|
+
7
|
|
2206
|
+
];
|
|
2207
|
+
case 5:
|
|
2208
|
+
return [
|
|
2209
|
+
2
|
|
2210
|
+
];
|
|
2211
|
+
}
|
|
2212
|
+
});
|
|
2213
|
+
});
|
|
2214
|
+
return _parseDocument.apply(this, arguments);
|
|
1886
2215
|
}
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
2216
|
+
parseDocument();
|
|
2217
|
+
}, [
|
|
2218
|
+
doc
|
|
2219
|
+
]);
|
|
2220
|
+
return /* @__PURE__ */ jsx32(Fragment2, {
|
|
2221
|
+
children: /* @__PURE__ */ jsxs12("div", {
|
|
2222
|
+
className: "relative w-full h-full max-h-[80vh] overflow-y-auto p-8 alq--prose",
|
|
2223
|
+
children: [
|
|
2224
|
+
loading && /* @__PURE__ */ jsx32(Loader, {}),
|
|
2225
|
+
!loading && /* @__PURE__ */ jsx32(RichText, {
|
|
2226
|
+
content: content || ""
|
|
2227
|
+
})
|
|
2228
|
+
]
|
|
2229
|
+
})
|
|
2230
|
+
});
|
|
1899
2231
|
}
|
|
1900
2232
|
var init_plain_text_viewer = __esm({
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
2233
|
+
"src/components/molecules/viewers/plain-text-viewer.tsx": function() {
|
|
2234
|
+
"use strict";
|
|
2235
|
+
"use client";
|
|
2236
|
+
init_atoms();
|
|
2237
|
+
}
|
|
1906
2238
|
});
|
|
1907
|
-
|
|
1908
2239
|
// src/components/molecules/documents/document-selector.tsx
|
|
1909
2240
|
init_atoms();
|
|
1910
2241
|
import { useState as useState6 } from "react";
|
|
1911
2242
|
import { ExternalLink } from "lucide-react";
|
|
1912
|
-
|
|
1913
2243
|
// src/components/molecules/documents/document-viewer.tsx
|
|
1914
2244
|
init_atoms();
|
|
1915
|
-
import { useEffect as useEffect6 } from "react";
|
|
1916
|
-
|
|
2245
|
+
import React28, { useEffect as useEffect6, Suspense } from "react";
|
|
1917
2246
|
// src/components/hooks/use-document.tsx
|
|
1918
2247
|
import { useState as useState3 } from "react";
|
|
1919
|
-
var useDocumentReader = (url, getDocument)
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
2248
|
+
var useDocumentReader = function(url, getDocument) {
|
|
2249
|
+
var _useState3 = _sliced_to_array(useState3(true), 2), loading = _useState3[0], setLoading = _useState3[1];
|
|
2250
|
+
var _useState31 = _sliced_to_array(useState3(null), 2), error = _useState31[0], setError = _useState31[1];
|
|
2251
|
+
var _useState32 = _sliced_to_array(useState3(null), 2), document2 = _useState32[0], setDocument = _useState32[1];
|
|
2252
|
+
var handleDocumentError = function(error2) {
|
|
2253
|
+
var errorMessage = "Hubo un error al obtener el documento. Por favor ponganse en contacto con el administrador.";
|
|
2254
|
+
setError(errorMessage);
|
|
2255
|
+
throw new Error((error2 === null || error2 === void 0 ? void 0 : error2.message) || "Unknown error");
|
|
2256
|
+
};
|
|
2257
|
+
var resetDocument = function() {
|
|
2258
|
+
setDocument(null);
|
|
2259
|
+
};
|
|
2260
|
+
var fetchDocument = /*#__PURE__*/ function() {
|
|
2261
|
+
var _ref = _async_to_generator(function() {
|
|
2262
|
+
var res, error2;
|
|
2263
|
+
return _ts_generator(this, function(_state) {
|
|
2264
|
+
switch(_state.label){
|
|
2265
|
+
case 0:
|
|
2266
|
+
setLoading(true);
|
|
2267
|
+
setError(null);
|
|
2268
|
+
_state.label = 1;
|
|
2269
|
+
case 1:
|
|
2270
|
+
_state.trys.push([
|
|
2271
|
+
1,
|
|
2272
|
+
3,
|
|
2273
|
+
4,
|
|
2274
|
+
5
|
|
2275
|
+
]);
|
|
2276
|
+
return [
|
|
2277
|
+
4,
|
|
2278
|
+
getDocument(url)
|
|
2279
|
+
];
|
|
2280
|
+
case 2:
|
|
2281
|
+
res = _state.sent();
|
|
2282
|
+
if (!res.success) {
|
|
2283
|
+
handleDocumentError(res.error || new Error("Unknown error"));
|
|
2284
|
+
setLoading(false);
|
|
2285
|
+
return [
|
|
2286
|
+
2
|
|
2287
|
+
];
|
|
2288
|
+
}
|
|
2289
|
+
res.data && setDocument(res.data);
|
|
2290
|
+
return [
|
|
2291
|
+
3,
|
|
2292
|
+
5
|
|
2293
|
+
];
|
|
2294
|
+
case 3:
|
|
2295
|
+
error2 = _state.sent();
|
|
2296
|
+
handleDocumentError(error2);
|
|
2297
|
+
return [
|
|
2298
|
+
3,
|
|
2299
|
+
5
|
|
2300
|
+
];
|
|
2301
|
+
case 4:
|
|
2302
|
+
setLoading(false);
|
|
2303
|
+
return [
|
|
2304
|
+
7
|
|
2305
|
+
];
|
|
2306
|
+
case 5:
|
|
2307
|
+
return [
|
|
2308
|
+
2
|
|
2309
|
+
];
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
});
|
|
2313
|
+
return function fetchDocument() {
|
|
2314
|
+
return _ref.apply(this, arguments);
|
|
2315
|
+
};
|
|
2316
|
+
}();
|
|
2317
|
+
return {
|
|
2318
|
+
document: document2,
|
|
2319
|
+
loading: loading,
|
|
2320
|
+
fetchDocument: fetchDocument,
|
|
2321
|
+
resetDocument: resetDocument,
|
|
2322
|
+
error: error
|
|
2323
|
+
};
|
|
1949
2324
|
};
|
|
1950
|
-
|
|
1951
2325
|
// src/components/molecules/documents/document-viewer.tsx
|
|
1952
|
-
import dynamic from "next/dynamic";
|
|
1953
2326
|
import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1954
|
-
var PdfViewer2 =
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
})
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
2327
|
+
var PdfViewer2 = React28.lazy(function() {
|
|
2328
|
+
return Promise.resolve().then(function() {
|
|
2329
|
+
return init_pdf_viewer(), pdf_viewer_exports;
|
|
2330
|
+
});
|
|
2331
|
+
});
|
|
2332
|
+
var PlainTextViewer2 = React28.lazy(function() {
|
|
2333
|
+
return Promise.resolve().then(function() {
|
|
2334
|
+
return init_plain_text_viewer(), plain_text_viewer_exports;
|
|
2335
|
+
});
|
|
2336
|
+
});
|
|
2337
|
+
var DocumentViewer = function(param) {
|
|
2338
|
+
var docId = param.docId, doc = param.doc, isOpen = param.isOpen, onClose = param.onClose, getDocument = param.getDocument;
|
|
2339
|
+
var _useDocumentReader = useDocumentReader(doc.id, getDocument), document2 = _useDocumentReader.document, loading = _useDocumentReader.loading, fetchDocument = _useDocumentReader.fetchDocument, resetDocument = _useDocumentReader.resetDocument, error = _useDocumentReader.error;
|
|
2340
|
+
useEffect6(function() {
|
|
2341
|
+
resetDocument();
|
|
2342
|
+
if (isOpen) {
|
|
2343
|
+
fetchDocument();
|
|
2344
|
+
}
|
|
2345
|
+
}, [
|
|
2346
|
+
isOpen
|
|
2347
|
+
]);
|
|
2348
|
+
var documentRender = document2 && !error ? /* @__PURE__ */ jsx33(DocumentFactory, {
|
|
2349
|
+
document: document2,
|
|
2350
|
+
docId: doc.id
|
|
2351
|
+
}) : /* @__PURE__ */ jsx33("div", {
|
|
2352
|
+
className: "flex flex-col items-center justify-center h-full w-full text-center p-4",
|
|
2353
|
+
children: /* @__PURE__ */ jsx33("div", {
|
|
2354
|
+
className: "text-primary font-medium",
|
|
2355
|
+
children: error
|
|
2356
|
+
})
|
|
2357
|
+
});
|
|
2358
|
+
return /* @__PURE__ */ jsx33(Dialog, {
|
|
2359
|
+
open: isOpen,
|
|
2360
|
+
onOpenChange: onClose,
|
|
2361
|
+
children: /* @__PURE__ */ jsxs13(DialogContent, {
|
|
2362
|
+
"aria-describedby": document2 ? "document-description" : void 0,
|
|
2363
|
+
className: "h-[90%] max-w-[90%] gap-0 flex flex-col focus:outline-none alq--document-viewer-container",
|
|
2364
|
+
children: [
|
|
2365
|
+
/* @__PURE__ */ jsx33(DialogHeader, {
|
|
2366
|
+
className: "border-b border-border pb-2",
|
|
2367
|
+
children: /* @__PURE__ */ jsx33(DialogTitle, {
|
|
2368
|
+
children: doc.name
|
|
2369
|
+
})
|
|
2370
|
+
}),
|
|
2371
|
+
!document2 && loading ? /* @__PURE__ */ jsx33(Loader, {
|
|
2372
|
+
size: "xl",
|
|
2373
|
+
colorVariant: "destructive"
|
|
2374
|
+
}) : documentRender
|
|
2375
|
+
]
|
|
2376
|
+
})
|
|
2377
|
+
});
|
|
1982
2378
|
};
|
|
1983
|
-
var DocumentFactory = (
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
2379
|
+
var DocumentFactory = function(param) {
|
|
2380
|
+
var document2 = param.document, docId = param.docId;
|
|
2381
|
+
var fallback = /* @__PURE__ */ jsx33(Loader, {
|
|
2382
|
+
size: "xl",
|
|
2383
|
+
colorVariant: "destructive"
|
|
2384
|
+
});
|
|
2385
|
+
switch(document2 && document2.type){
|
|
2386
|
+
case "application/pdf":
|
|
2387
|
+
return /* @__PURE__ */ jsx33(Suspense, {
|
|
2388
|
+
fallback: fallback,
|
|
2389
|
+
children: /* @__PURE__ */ jsx33(PdfViewer2, {
|
|
2390
|
+
doc: document2,
|
|
2391
|
+
docId: docId
|
|
2392
|
+
})
|
|
2393
|
+
});
|
|
2394
|
+
case "text/plain":
|
|
2395
|
+
return /* @__PURE__ */ jsx33(Suspense, {
|
|
2396
|
+
fallback: fallback,
|
|
2397
|
+
children: /* @__PURE__ */ jsx33(PlainTextViewer2, {
|
|
2398
|
+
doc: document2,
|
|
2399
|
+
docId: docId
|
|
2400
|
+
})
|
|
2401
|
+
});
|
|
2402
|
+
default:
|
|
2403
|
+
return /* @__PURE__ */ jsx33("div", {
|
|
2404
|
+
children: "Unsupported file type"
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
1992
2407
|
};
|
|
1993
|
-
|
|
1994
2408
|
// src/components/molecules/documents/document-selector.tsx
|
|
1995
2409
|
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1996
|
-
var DocumentSelector = (
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
event
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2410
|
+
var DocumentSelector = function(param) {
|
|
2411
|
+
var documents = param.documents, getDocument = param.getDocument, logInfoMessage = param.logInfoMessage;
|
|
2412
|
+
var _useState6 = _sliced_to_array(useState6(void 0), 2), selectedDocName = _useState6[0], setSelectedDocName = _useState6[1];
|
|
2413
|
+
var _useState61 = _sliced_to_array(useState6(null), 2), selectedDoc = _useState61[0], setSelectedDoc = _useState61[1];
|
|
2414
|
+
var _useState62 = _sliced_to_array(useState6(false), 2), isModalOpen = _useState62[0], setIsModalOpen = _useState62[1];
|
|
2415
|
+
var handleDocumentClick = function(doc, event) {
|
|
2416
|
+
event.stopPropagation();
|
|
2417
|
+
setSelectedDoc(doc);
|
|
2418
|
+
logInfoMessage("Selected document", {
|
|
2419
|
+
documentId: doc.id,
|
|
2420
|
+
documentName: doc.name
|
|
2421
|
+
});
|
|
2422
|
+
setIsModalOpen(true);
|
|
2423
|
+
};
|
|
2424
|
+
var handleDrawerClose = function() {
|
|
2425
|
+
setIsModalOpen(false);
|
|
2426
|
+
};
|
|
2427
|
+
return /* @__PURE__ */ jsxs14("div", {
|
|
2428
|
+
className: "w-full md:w-4/6 alq--document-selector",
|
|
2429
|
+
children: [
|
|
2430
|
+
/* @__PURE__ */ jsxs14(Select, {
|
|
2431
|
+
value: selectedDocName,
|
|
2432
|
+
onValueChange: setSelectedDocName,
|
|
2433
|
+
children: [
|
|
2434
|
+
/* @__PURE__ */ jsx34(SelectTrigger, {
|
|
2435
|
+
"aria-label": "Documentos",
|
|
2436
|
+
children: /* @__PURE__ */ jsx34(SelectValue, {
|
|
2437
|
+
placeholder: "Documentos"
|
|
2438
|
+
})
|
|
2439
|
+
}),
|
|
2440
|
+
/* @__PURE__ */ jsx34(SelectContent, {
|
|
2441
|
+
children: /* @__PURE__ */ jsxs14(SelectGroup, {
|
|
2442
|
+
children: [
|
|
2443
|
+
/* @__PURE__ */ jsx34(SelectLabel, {
|
|
2444
|
+
children: "Documents"
|
|
2445
|
+
}),
|
|
2446
|
+
documents.map(function(doc) {
|
|
2447
|
+
return /* @__PURE__ */ jsxs14("div", {
|
|
2448
|
+
className: "w-full flex relative",
|
|
2449
|
+
children: [
|
|
2450
|
+
/* @__PURE__ */ jsx34(SelectItem, {
|
|
2451
|
+
className: "w-full",
|
|
2452
|
+
value: doc.id,
|
|
2453
|
+
children: /* @__PURE__ */ jsx34("div", {
|
|
2454
|
+
className: "flex justify-between w-full",
|
|
2455
|
+
children: /* @__PURE__ */ jsx34("p", {
|
|
2456
|
+
className: "h-4 truncate mr-5",
|
|
2457
|
+
children: doc.name
|
|
2458
|
+
})
|
|
2459
|
+
})
|
|
2460
|
+
}, doc.id),
|
|
2461
|
+
/* @__PURE__ */ jsx34("div", {
|
|
2462
|
+
onClick: function(event) {
|
|
2463
|
+
return handleDocumentClick(doc, event);
|
|
2464
|
+
},
|
|
2465
|
+
className: "bflex items-center text-gray-400 hover:text-gray-500 absolute right-0 mt-2",
|
|
2466
|
+
"aria-label": "Open ".concat(doc.name),
|
|
2467
|
+
children: /* @__PURE__ */ jsx34(ExternalLink, {
|
|
2468
|
+
className: "h-4 w-4 mx-2"
|
|
2469
|
+
})
|
|
2470
|
+
})
|
|
2471
|
+
]
|
|
2472
|
+
}, doc.id);
|
|
2473
|
+
})
|
|
2474
|
+
]
|
|
2475
|
+
})
|
|
2476
|
+
})
|
|
2477
|
+
]
|
|
2478
|
+
}),
|
|
2479
|
+
selectedDoc && /* @__PURE__ */ jsx34(DocumentViewer, {
|
|
2480
|
+
doc: selectedDoc,
|
|
2481
|
+
docName: selectedDocName || "",
|
|
2482
|
+
isOpen: isModalOpen,
|
|
2483
|
+
onClose: handleDrawerClose,
|
|
2484
|
+
getDocument: getDocument
|
|
2485
|
+
})
|
|
2486
|
+
]
|
|
2006
2487
|
});
|
|
2007
|
-
setIsModalOpen(true);
|
|
2008
|
-
};
|
|
2009
|
-
const handleDrawerClose = () => {
|
|
2010
|
-
setIsModalOpen(false);
|
|
2011
|
-
};
|
|
2012
|
-
return /* @__PURE__ */ jsxs14("div", { className: "w-full md:w-4/6 alq--document-selector", children: [
|
|
2013
|
-
/* @__PURE__ */ jsxs14(Select, { value: selectedDocName, onValueChange: setSelectedDocName, children: [
|
|
2014
|
-
/* @__PURE__ */ jsx34(SelectTrigger, { "aria-label": "Documentos", children: /* @__PURE__ */ jsx34(SelectValue, { placeholder: "Documentos" }) }),
|
|
2015
|
-
/* @__PURE__ */ jsx34(SelectContent, { children: /* @__PURE__ */ jsxs14(SelectGroup, { children: [
|
|
2016
|
-
/* @__PURE__ */ jsx34(SelectLabel, { children: "Documents" }),
|
|
2017
|
-
documents.map((doc) => /* @__PURE__ */ jsxs14("div", { className: "w-full flex relative", children: [
|
|
2018
|
-
/* @__PURE__ */ jsx34(SelectItem, { className: "w-full", value: doc.id, children: /* @__PURE__ */ jsx34("div", { className: "flex justify-between w-full", children: /* @__PURE__ */ jsx34("p", { className: "h-4 truncate mr-5", children: doc.name }) }) }, doc.id),
|
|
2019
|
-
/* @__PURE__ */ jsx34(
|
|
2020
|
-
"div",
|
|
2021
|
-
{
|
|
2022
|
-
onClick: (event) => handleDocumentClick(doc, event),
|
|
2023
|
-
className: "bflex items-center text-gray-400 hover:text-gray-500 absolute right-0 mt-2",
|
|
2024
|
-
"aria-label": `Open ${doc.name}`,
|
|
2025
|
-
children: /* @__PURE__ */ jsx34(ExternalLink, { className: "h-4 w-4 mx-2" })
|
|
2026
|
-
}
|
|
2027
|
-
)
|
|
2028
|
-
] }, doc.id))
|
|
2029
|
-
] }) })
|
|
2030
|
-
] }),
|
|
2031
|
-
selectedDoc && /* @__PURE__ */ jsx34(
|
|
2032
|
-
DocumentViewer,
|
|
2033
|
-
{
|
|
2034
|
-
doc: selectedDoc,
|
|
2035
|
-
docName: selectedDocName || "",
|
|
2036
|
-
isOpen: isModalOpen,
|
|
2037
|
-
onClose: handleDrawerClose,
|
|
2038
|
-
getDocument
|
|
2039
|
-
}
|
|
2040
|
-
)
|
|
2041
|
-
] });
|
|
2042
|
-
};
|
|
2043
|
-
export {
|
|
2044
|
-
DocumentSelector,
|
|
2045
|
-
DocumentViewer
|
|
2046
2488
|
};
|
|
2489
|
+
export { DocumentSelector, DocumentViewer };
|
|
2047
2490
|
//# sourceMappingURL=index.mjs.map
|