@alquimia-ai/ui 1.9.3 → 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,249 +1,651 @@
|
|
|
1
1
|
"use strict";
|
|
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 _array_without_holes(arr) {
|
|
11
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
12
|
+
}
|
|
13
|
+
function _define_property(obj, key, value) {
|
|
14
|
+
if (key in obj) {
|
|
15
|
+
Object.defineProperty(obj, key, {
|
|
16
|
+
value: value,
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true
|
|
20
|
+
});
|
|
21
|
+
} else {
|
|
22
|
+
obj[key] = value;
|
|
23
|
+
}
|
|
24
|
+
return obj;
|
|
25
|
+
}
|
|
26
|
+
function _extends() {
|
|
27
|
+
_extends = Object.assign || function(target) {
|
|
28
|
+
for(var i = 1; i < arguments.length; i++){
|
|
29
|
+
var source = arguments[i];
|
|
30
|
+
for(var key in source){
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32
|
+
target[key] = source[key];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
return _extends.apply(this, arguments);
|
|
39
|
+
}
|
|
40
|
+
function _iterable_to_array(iter) {
|
|
41
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
42
|
+
}
|
|
43
|
+
function _iterable_to_array_limit(arr, i) {
|
|
44
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45
|
+
if (_i == null) return;
|
|
46
|
+
var _arr = [];
|
|
47
|
+
var _n = true;
|
|
48
|
+
var _d = false;
|
|
49
|
+
var _s, _e;
|
|
50
|
+
try {
|
|
51
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
52
|
+
_arr.push(_s.value);
|
|
53
|
+
if (i && _arr.length === i) break;
|
|
54
|
+
}
|
|
55
|
+
} catch (err) {
|
|
56
|
+
_d = true;
|
|
57
|
+
_e = err;
|
|
58
|
+
} finally{
|
|
59
|
+
try {
|
|
60
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
61
|
+
} finally{
|
|
62
|
+
if (_d) throw _e;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return _arr;
|
|
66
|
+
}
|
|
67
|
+
function _non_iterable_rest() {
|
|
68
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
69
|
+
}
|
|
70
|
+
function _non_iterable_spread() {
|
|
71
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
72
|
+
}
|
|
73
|
+
function _object_destructuring_empty(o) {
|
|
74
|
+
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
75
|
+
return o;
|
|
76
|
+
}
|
|
77
|
+
function _object_spread(target) {
|
|
78
|
+
for(var i = 1; i < arguments.length; i++){
|
|
79
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
80
|
+
var ownKeys = Object.keys(source);
|
|
81
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
82
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
83
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
ownKeys.forEach(function(key) {
|
|
87
|
+
_define_property(target, key, source[key]);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return target;
|
|
91
|
+
}
|
|
92
|
+
function ownKeys(object, enumerableOnly) {
|
|
93
|
+
var keys = Object.keys(object);
|
|
94
|
+
if (Object.getOwnPropertySymbols) {
|
|
95
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
96
|
+
if (enumerableOnly) {
|
|
97
|
+
symbols = symbols.filter(function(sym) {
|
|
98
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
keys.push.apply(keys, symbols);
|
|
102
|
+
}
|
|
103
|
+
return keys;
|
|
104
|
+
}
|
|
105
|
+
function _object_spread_props(target, source) {
|
|
106
|
+
source = source != null ? source : {};
|
|
107
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
108
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
109
|
+
} else {
|
|
110
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
111
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return target;
|
|
115
|
+
}
|
|
116
|
+
function _object_without_properties(source, excluded) {
|
|
117
|
+
if (source == null) return {};
|
|
118
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
119
|
+
var key, i;
|
|
120
|
+
if (Object.getOwnPropertySymbols) {
|
|
121
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
122
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
123
|
+
key = sourceSymbolKeys[i];
|
|
124
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
125
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
126
|
+
target[key] = source[key];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return target;
|
|
130
|
+
}
|
|
131
|
+
function _object_without_properties_loose(source, excluded) {
|
|
132
|
+
if (source == null) return {};
|
|
133
|
+
var target = {};
|
|
134
|
+
var sourceKeys = Object.keys(source);
|
|
135
|
+
var key, i;
|
|
136
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
137
|
+
key = sourceKeys[i];
|
|
138
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
139
|
+
target[key] = source[key];
|
|
140
|
+
}
|
|
141
|
+
return target;
|
|
142
|
+
}
|
|
143
|
+
function _sliced_to_array(arr, i) {
|
|
144
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
145
|
+
}
|
|
146
|
+
function _to_consumable_array(arr) {
|
|
147
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
148
|
+
}
|
|
149
|
+
function _type_of(obj) {
|
|
150
|
+
"@swc/helpers - typeof";
|
|
151
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
152
|
+
}
|
|
153
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
154
|
+
if (!o) return;
|
|
155
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
156
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
157
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
158
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
159
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
160
|
+
}
|
|
2
161
|
var __create = Object.create;
|
|
3
162
|
var __defProp = Object.defineProperty;
|
|
4
163
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
164
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
165
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
166
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all)
|
|
9
|
-
|
|
10
|
-
|
|
167
|
+
var __export = function(target, all) {
|
|
168
|
+
for(var name in all)__defProp(target, name, {
|
|
169
|
+
get: all[name],
|
|
170
|
+
enumerable: true
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
var __copyProps = function(to, from, except, desc) {
|
|
174
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
175
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
176
|
+
try {
|
|
177
|
+
var _loop = function() {
|
|
178
|
+
var key = _step.value;
|
|
179
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
180
|
+
get: function() {
|
|
181
|
+
return from[key];
|
|
182
|
+
},
|
|
183
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
187
|
+
} catch (err) {
|
|
188
|
+
_didIteratorError = true;
|
|
189
|
+
_iteratorError = err;
|
|
190
|
+
} finally{
|
|
191
|
+
try {
|
|
192
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
193
|
+
_iterator.return();
|
|
194
|
+
}
|
|
195
|
+
} finally{
|
|
196
|
+
if (_didIteratorError) {
|
|
197
|
+
throw _iteratorError;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return to;
|
|
203
|
+
};
|
|
204
|
+
var __toESM = function(mod, isNodeMode, target) {
|
|
205
|
+
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
206
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
207
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
208
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
209
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
210
|
+
value: mod,
|
|
211
|
+
enumerable: true
|
|
212
|
+
}) : target, mod);
|
|
11
213
|
};
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
214
|
+
var __toCommonJS = function(mod) {
|
|
215
|
+
return __copyProps(__defProp({}, "__esModule", {
|
|
216
|
+
value: true
|
|
217
|
+
}), mod);
|
|
19
218
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
219
|
// src/components/atoms/index.ts
|
|
31
220
|
var atoms_exports = {};
|
|
32
221
|
__export(atoms_exports, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
222
|
+
Alert: function() {
|
|
223
|
+
return Alert;
|
|
224
|
+
},
|
|
225
|
+
AlertDescription: function() {
|
|
226
|
+
return AlertDescription;
|
|
227
|
+
},
|
|
228
|
+
AlertDialog: function() {
|
|
229
|
+
return AlertDialog;
|
|
230
|
+
},
|
|
231
|
+
AlertDialogAction: function() {
|
|
232
|
+
return AlertDialogAction;
|
|
233
|
+
},
|
|
234
|
+
AlertDialogCancel: function() {
|
|
235
|
+
return AlertDialogCancel;
|
|
236
|
+
},
|
|
237
|
+
AlertDialogContent: function() {
|
|
238
|
+
return AlertDialogContent;
|
|
239
|
+
},
|
|
240
|
+
AlertDialogDescription: function() {
|
|
241
|
+
return AlertDialogDescription;
|
|
242
|
+
},
|
|
243
|
+
AlertDialogFooter: function() {
|
|
244
|
+
return AlertDialogFooter;
|
|
245
|
+
},
|
|
246
|
+
AlertDialogHeader: function() {
|
|
247
|
+
return AlertDialogHeader;
|
|
248
|
+
},
|
|
249
|
+
AlertDialogOverlay: function() {
|
|
250
|
+
return AlertDialogOverlay;
|
|
251
|
+
},
|
|
252
|
+
AlertDialogPortal: function() {
|
|
253
|
+
return AlertDialogPortal;
|
|
254
|
+
},
|
|
255
|
+
AlertDialogTitle: function() {
|
|
256
|
+
return AlertDialogTitle;
|
|
257
|
+
},
|
|
258
|
+
AlertDialogTrigger: function() {
|
|
259
|
+
return AlertDialogTrigger;
|
|
260
|
+
},
|
|
261
|
+
AlertTitle: function() {
|
|
262
|
+
return AlertTitle;
|
|
263
|
+
},
|
|
264
|
+
AspectRatio: function() {
|
|
265
|
+
return AspectRatio;
|
|
266
|
+
},
|
|
267
|
+
Avatar: function() {
|
|
268
|
+
return Avatar;
|
|
269
|
+
},
|
|
270
|
+
AvatarFallback: function() {
|
|
271
|
+
return AvatarFallback;
|
|
272
|
+
},
|
|
273
|
+
AvatarImage: function() {
|
|
274
|
+
return AvatarImage;
|
|
275
|
+
},
|
|
276
|
+
Badge: function() {
|
|
277
|
+
return Badge;
|
|
278
|
+
},
|
|
279
|
+
Breadcrumb: function() {
|
|
280
|
+
return Breadcrumb;
|
|
281
|
+
},
|
|
282
|
+
BreadcrumbEllipsis: function() {
|
|
283
|
+
return BreadcrumbEllipsis;
|
|
284
|
+
},
|
|
285
|
+
BreadcrumbItem: function() {
|
|
286
|
+
return BreadcrumbItem;
|
|
287
|
+
},
|
|
288
|
+
BreadcrumbLink: function() {
|
|
289
|
+
return BreadcrumbLink;
|
|
290
|
+
},
|
|
291
|
+
BreadcrumbList: function() {
|
|
292
|
+
return BreadcrumbList;
|
|
293
|
+
},
|
|
294
|
+
BreadcrumbPage: function() {
|
|
295
|
+
return BreadcrumbPage;
|
|
296
|
+
},
|
|
297
|
+
BreadcrumbSeparator: function() {
|
|
298
|
+
return BreadcrumbSeparator;
|
|
299
|
+
},
|
|
300
|
+
Button: function() {
|
|
301
|
+
return Button;
|
|
302
|
+
},
|
|
303
|
+
Card: function() {
|
|
304
|
+
return Card;
|
|
305
|
+
},
|
|
306
|
+
CardContent: function() {
|
|
307
|
+
return CardContent;
|
|
308
|
+
},
|
|
309
|
+
CardDescription: function() {
|
|
310
|
+
return CardDescription;
|
|
311
|
+
},
|
|
312
|
+
CardFooter: function() {
|
|
313
|
+
return CardFooter;
|
|
314
|
+
},
|
|
315
|
+
CardHeader: function() {
|
|
316
|
+
return CardHeader;
|
|
317
|
+
},
|
|
318
|
+
CardTitle: function() {
|
|
319
|
+
return CardTitle;
|
|
320
|
+
},
|
|
321
|
+
Checkbox: function() {
|
|
322
|
+
return Checkbox;
|
|
323
|
+
},
|
|
324
|
+
Command: function() {
|
|
325
|
+
return Command;
|
|
326
|
+
},
|
|
327
|
+
CommandDialog: function() {
|
|
328
|
+
return CommandDialog;
|
|
329
|
+
},
|
|
330
|
+
CommandEmpty: function() {
|
|
331
|
+
return CommandEmpty;
|
|
332
|
+
},
|
|
333
|
+
CommandGroup: function() {
|
|
334
|
+
return CommandGroup;
|
|
335
|
+
},
|
|
336
|
+
CommandInput: function() {
|
|
337
|
+
return CommandInput;
|
|
338
|
+
},
|
|
339
|
+
CommandItem: function() {
|
|
340
|
+
return CommandItem;
|
|
341
|
+
},
|
|
342
|
+
CommandList: function() {
|
|
343
|
+
return CommandList;
|
|
344
|
+
},
|
|
345
|
+
CommandSeparator: function() {
|
|
346
|
+
return CommandSeparator;
|
|
347
|
+
},
|
|
348
|
+
CommandShortcut: function() {
|
|
349
|
+
return CommandShortcut;
|
|
350
|
+
},
|
|
351
|
+
Dialog: function() {
|
|
352
|
+
return Dialog;
|
|
353
|
+
},
|
|
354
|
+
DialogClose: function() {
|
|
355
|
+
return DialogClose;
|
|
356
|
+
},
|
|
357
|
+
DialogContent: function() {
|
|
358
|
+
return DialogContent;
|
|
359
|
+
},
|
|
360
|
+
DialogDescription: function() {
|
|
361
|
+
return DialogDescription;
|
|
362
|
+
},
|
|
363
|
+
DialogFooter: function() {
|
|
364
|
+
return DialogFooter;
|
|
365
|
+
},
|
|
366
|
+
DialogHeader: function() {
|
|
367
|
+
return DialogHeader;
|
|
368
|
+
},
|
|
369
|
+
DialogOverlay: function() {
|
|
370
|
+
return DialogOverlay;
|
|
371
|
+
},
|
|
372
|
+
DialogPortal: function() {
|
|
373
|
+
return DialogPortal;
|
|
374
|
+
},
|
|
375
|
+
DialogTitle: function() {
|
|
376
|
+
return DialogTitle;
|
|
377
|
+
},
|
|
378
|
+
DialogTrigger: function() {
|
|
379
|
+
return DialogTrigger;
|
|
380
|
+
},
|
|
381
|
+
Drawer: function() {
|
|
382
|
+
return Drawer;
|
|
383
|
+
},
|
|
384
|
+
DrawerClose: function() {
|
|
385
|
+
return DrawerClose;
|
|
386
|
+
},
|
|
387
|
+
DrawerContent: function() {
|
|
388
|
+
return DrawerContent;
|
|
389
|
+
},
|
|
390
|
+
DrawerDescription: function() {
|
|
391
|
+
return DrawerDescription;
|
|
392
|
+
},
|
|
393
|
+
DrawerFooter: function() {
|
|
394
|
+
return DrawerFooter;
|
|
395
|
+
},
|
|
396
|
+
DrawerHeader: function() {
|
|
397
|
+
return DrawerHeader;
|
|
398
|
+
},
|
|
399
|
+
DrawerOverlay: function() {
|
|
400
|
+
return DrawerOverlay;
|
|
401
|
+
},
|
|
402
|
+
DrawerPortal: function() {
|
|
403
|
+
return DrawerPortal;
|
|
404
|
+
},
|
|
405
|
+
DrawerTitle: function() {
|
|
406
|
+
return DrawerTitle;
|
|
407
|
+
},
|
|
408
|
+
DrawerTrigger: function() {
|
|
409
|
+
return DrawerTrigger;
|
|
410
|
+
},
|
|
411
|
+
Input: function() {
|
|
412
|
+
return Input;
|
|
413
|
+
},
|
|
414
|
+
Label: function() {
|
|
415
|
+
return Label2;
|
|
416
|
+
},
|
|
417
|
+
Loader: function() {
|
|
418
|
+
return Loader;
|
|
419
|
+
},
|
|
420
|
+
Popover: function() {
|
|
421
|
+
return Popover;
|
|
422
|
+
},
|
|
423
|
+
PopoverContent: function() {
|
|
424
|
+
return PopoverContent;
|
|
425
|
+
},
|
|
426
|
+
PopoverTrigger: function() {
|
|
427
|
+
return PopoverTrigger;
|
|
428
|
+
},
|
|
429
|
+
RichText: function() {
|
|
430
|
+
return RichText;
|
|
431
|
+
},
|
|
432
|
+
ScrollArea: function() {
|
|
433
|
+
return ScrollArea;
|
|
434
|
+
},
|
|
435
|
+
ScrollBar: function() {
|
|
436
|
+
return ScrollBar;
|
|
437
|
+
},
|
|
438
|
+
Select: function() {
|
|
439
|
+
return Select;
|
|
440
|
+
},
|
|
441
|
+
SelectContent: function() {
|
|
442
|
+
return SelectContent;
|
|
443
|
+
},
|
|
444
|
+
SelectGroup: function() {
|
|
445
|
+
return SelectGroup;
|
|
446
|
+
},
|
|
447
|
+
SelectItem: function() {
|
|
448
|
+
return SelectItem;
|
|
449
|
+
},
|
|
450
|
+
SelectLabel: function() {
|
|
451
|
+
return SelectLabel;
|
|
452
|
+
},
|
|
453
|
+
SelectScrollDownButton: function() {
|
|
454
|
+
return SelectScrollDownButton;
|
|
455
|
+
},
|
|
456
|
+
SelectScrollUpButton: function() {
|
|
457
|
+
return SelectScrollUpButton;
|
|
458
|
+
},
|
|
459
|
+
SelectSeparator: function() {
|
|
460
|
+
return SelectSeparator;
|
|
461
|
+
},
|
|
462
|
+
SelectTrigger: function() {
|
|
463
|
+
return SelectTrigger;
|
|
464
|
+
},
|
|
465
|
+
SelectValue: function() {
|
|
466
|
+
return SelectValue;
|
|
467
|
+
},
|
|
468
|
+
Separator: function() {
|
|
469
|
+
return Separator2;
|
|
470
|
+
},
|
|
471
|
+
Skeleton: function() {
|
|
472
|
+
return Skeleton;
|
|
473
|
+
},
|
|
474
|
+
Slider: function() {
|
|
475
|
+
return Slider;
|
|
476
|
+
},
|
|
477
|
+
Switch: function() {
|
|
478
|
+
return Switch;
|
|
479
|
+
},
|
|
480
|
+
Table: function() {
|
|
481
|
+
return Table;
|
|
482
|
+
},
|
|
483
|
+
TableBody: function() {
|
|
484
|
+
return TableBody;
|
|
485
|
+
},
|
|
486
|
+
TableCaption: function() {
|
|
487
|
+
return TableCaption;
|
|
488
|
+
},
|
|
489
|
+
TableCell: function() {
|
|
490
|
+
return TableCell;
|
|
491
|
+
},
|
|
492
|
+
TableFooter: function() {
|
|
493
|
+
return TableFooter;
|
|
494
|
+
},
|
|
495
|
+
TableHead: function() {
|
|
496
|
+
return TableHead;
|
|
497
|
+
},
|
|
498
|
+
TableHeader: function() {
|
|
499
|
+
return TableHeader;
|
|
500
|
+
},
|
|
501
|
+
TableRow: function() {
|
|
502
|
+
return TableRow;
|
|
503
|
+
},
|
|
504
|
+
Tabs: function() {
|
|
505
|
+
return Tabs;
|
|
506
|
+
},
|
|
507
|
+
TabsContent: function() {
|
|
508
|
+
return TabsContent;
|
|
509
|
+
},
|
|
510
|
+
TabsList: function() {
|
|
511
|
+
return TabsList;
|
|
512
|
+
},
|
|
513
|
+
TabsTrigger: function() {
|
|
514
|
+
return TabsTrigger;
|
|
515
|
+
},
|
|
516
|
+
Textarea: function() {
|
|
517
|
+
return Textarea;
|
|
518
|
+
},
|
|
519
|
+
ThinkIndicator: function() {
|
|
520
|
+
return ThinkIndicator;
|
|
521
|
+
},
|
|
522
|
+
Toast: function() {
|
|
523
|
+
return Toast;
|
|
524
|
+
},
|
|
525
|
+
ToastAction: function() {
|
|
526
|
+
return ToastAction;
|
|
527
|
+
},
|
|
528
|
+
ToastClose: function() {
|
|
529
|
+
return ToastClose;
|
|
530
|
+
},
|
|
531
|
+
ToastDescription: function() {
|
|
532
|
+
return ToastDescription;
|
|
533
|
+
},
|
|
534
|
+
ToastProvider: function() {
|
|
535
|
+
return ToastProvider;
|
|
536
|
+
},
|
|
537
|
+
ToastTitle: function() {
|
|
538
|
+
return ToastTitle;
|
|
539
|
+
},
|
|
540
|
+
ToastViewport: function() {
|
|
541
|
+
return ToastViewport;
|
|
542
|
+
},
|
|
543
|
+
Toaster: function() {
|
|
544
|
+
return Toaster;
|
|
545
|
+
},
|
|
546
|
+
Toggle: function() {
|
|
547
|
+
return Toggle;
|
|
548
|
+
},
|
|
549
|
+
Typography: function() {
|
|
550
|
+
return Typography;
|
|
551
|
+
},
|
|
552
|
+
badgeVariants: function() {
|
|
553
|
+
return badgeVariants;
|
|
554
|
+
},
|
|
555
|
+
buttonVariants: function() {
|
|
556
|
+
return buttonVariants;
|
|
557
|
+
},
|
|
558
|
+
thinkIndicatorVariants: function() {
|
|
559
|
+
return thinkIndicatorVariants;
|
|
560
|
+
},
|
|
561
|
+
toggleVariants: function() {
|
|
562
|
+
return toggleVariants;
|
|
563
|
+
}
|
|
147
564
|
});
|
|
148
565
|
module.exports = __toCommonJS(atoms_exports);
|
|
149
|
-
|
|
150
566
|
// src/components/atoms/ui/button.tsx
|
|
151
567
|
var React = __toESM(require("react"));
|
|
152
568
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
153
569
|
var import_class_variance_authority = require("class-variance-authority");
|
|
154
|
-
|
|
155
570
|
// src/lib/utils.ts
|
|
156
571
|
var import_clsx = require("clsx");
|
|
157
572
|
var import_tailwind_merge = require("tailwind-merge");
|
|
158
|
-
function cn(
|
|
159
|
-
|
|
573
|
+
function cn() {
|
|
574
|
+
for(var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++){
|
|
575
|
+
inputs[_key] = arguments[_key];
|
|
576
|
+
}
|
|
577
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
160
578
|
}
|
|
161
|
-
|
|
162
579
|
// src/components/atoms/ui/button.tsx
|
|
163
580
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
164
|
-
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
165
|
-
"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",
|
|
166
|
-
{
|
|
581
|
+
var buttonVariants = (0, import_class_variance_authority.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", {
|
|
167
582
|
variants: {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
583
|
+
variant: {
|
|
584
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
585
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
586
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
587
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
588
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
589
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
590
|
+
},
|
|
591
|
+
size: {
|
|
592
|
+
default: "h-10 px-4 py-2",
|
|
593
|
+
sm: "h-9 rounded-md px-3",
|
|
594
|
+
lg: "h-11 rounded-md px-8",
|
|
595
|
+
icon: "h-10 w-10"
|
|
596
|
+
}
|
|
182
597
|
},
|
|
183
598
|
defaultVariants: {
|
|
184
|
-
|
|
185
|
-
|
|
599
|
+
variant: "default",
|
|
600
|
+
size: "default"
|
|
186
601
|
}
|
|
187
|
-
|
|
188
|
-
)
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
)
|
|
602
|
+
});
|
|
603
|
+
var Button = React.forwardRef(function(_param, ref) {
|
|
604
|
+
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, [
|
|
605
|
+
"className",
|
|
606
|
+
"variant",
|
|
607
|
+
"size",
|
|
608
|
+
"asChild"
|
|
609
|
+
]);
|
|
610
|
+
var Comp = asChild ? import_react_slot.Slot : "button";
|
|
611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, _object_spread({
|
|
612
|
+
className: cn(buttonVariants({
|
|
613
|
+
variant: variant,
|
|
614
|
+
size: size,
|
|
615
|
+
className: className
|
|
616
|
+
})),
|
|
617
|
+
ref: ref
|
|
618
|
+
}, props));
|
|
619
|
+
});
|
|
202
620
|
Button.displayName = "Button";
|
|
203
|
-
|
|
204
621
|
// src/components/atoms/ui/textarea.tsx
|
|
205
622
|
var React2 = __toESM(require("react"));
|
|
206
623
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
207
|
-
var Textarea = React2.forwardRef(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
className: cn(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
),
|
|
217
|
-
ref,
|
|
218
|
-
...props
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
);
|
|
624
|
+
var Textarea = React2.forwardRef(function(_param, ref) {
|
|
625
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
626
|
+
"className"
|
|
627
|
+
]);
|
|
628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("textarea", _object_spread({
|
|
629
|
+
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"),
|
|
630
|
+
ref: ref
|
|
631
|
+
}, props));
|
|
632
|
+
});
|
|
223
633
|
Textarea.displayName = "Textarea";
|
|
224
|
-
|
|
225
634
|
// src/components/atoms/ui/input.tsx
|
|
226
635
|
var import_react = require("react");
|
|
227
636
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
228
|
-
var Input = (0, import_react.forwardRef)(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
ref,
|
|
240
|
-
...props
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
);
|
|
637
|
+
var Input = (0, import_react.forwardRef)(function(_param, ref) {
|
|
638
|
+
var className = _param.className, type = _param.type, props = _object_without_properties(_param, [
|
|
639
|
+
"className",
|
|
640
|
+
"type"
|
|
641
|
+
]);
|
|
642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", _object_spread({
|
|
643
|
+
type: type,
|
|
644
|
+
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"),
|
|
645
|
+
ref: ref
|
|
646
|
+
}, props));
|
|
647
|
+
});
|
|
245
648
|
Input.displayName = "Input";
|
|
246
|
-
|
|
247
649
|
// src/components/atoms/ui/select.tsx
|
|
248
650
|
var React3 = __toESM(require("react"));
|
|
249
651
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
@@ -252,782 +654,799 @@ var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
|
252
654
|
var Select = SelectPrimitive.Root;
|
|
253
655
|
var SelectGroup = SelectPrimitive.Group;
|
|
254
656
|
var SelectValue = SelectPrimitive.Value;
|
|
255
|
-
var SelectTrigger = React3.forwardRef((
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
)
|
|
657
|
+
var SelectTrigger = React3.forwardRef(function(_param, ref) {
|
|
658
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
659
|
+
"className",
|
|
660
|
+
"children"
|
|
661
|
+
]);
|
|
662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
663
|
+
ref: ref,
|
|
664
|
+
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")
|
|
665
|
+
}, props), {
|
|
666
|
+
children: [
|
|
667
|
+
children,
|
|
668
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Icon, {
|
|
669
|
+
asChild: true,
|
|
670
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, {
|
|
671
|
+
className: "h-4 w-4 opacity-50"
|
|
672
|
+
})
|
|
673
|
+
})
|
|
674
|
+
]
|
|
675
|
+
}));
|
|
676
|
+
});
|
|
271
677
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
272
|
-
var SelectScrollUpButton = React3.forwardRef((
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
),
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
));
|
|
678
|
+
var SelectScrollUpButton = React3.forwardRef(function(_param, ref) {
|
|
679
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
680
|
+
"className"
|
|
681
|
+
]);
|
|
682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
683
|
+
ref: ref,
|
|
684
|
+
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
685
|
+
}, props), {
|
|
686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronUp, {
|
|
687
|
+
className: "h-4 w-4"
|
|
688
|
+
})
|
|
689
|
+
}));
|
|
690
|
+
});
|
|
284
691
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
285
|
-
var SelectScrollDownButton = React3.forwardRef((
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
),
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
));
|
|
692
|
+
var SelectScrollDownButton = React3.forwardRef(function(_param, ref) {
|
|
693
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
694
|
+
"className"
|
|
695
|
+
]);
|
|
696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
697
|
+
ref: ref,
|
|
698
|
+
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
699
|
+
}, props), {
|
|
700
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, {
|
|
701
|
+
className: "h-4 w-4"
|
|
702
|
+
})
|
|
703
|
+
}));
|
|
704
|
+
});
|
|
297
705
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
298
|
-
var SelectContent = React3.forwardRef((
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollDownButton, {})
|
|
322
|
-
]
|
|
323
|
-
}
|
|
324
|
-
) }));
|
|
706
|
+
var SelectContent = React3.forwardRef(function(_param, ref) {
|
|
707
|
+
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
708
|
+
"className",
|
|
709
|
+
"children",
|
|
710
|
+
"position"
|
|
711
|
+
]);
|
|
712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Portal, {
|
|
713
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
714
|
+
ref: ref,
|
|
715
|
+
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),
|
|
716
|
+
position: position
|
|
717
|
+
}, props), {
|
|
718
|
+
children: [
|
|
719
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollUpButton, {}),
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Viewport, {
|
|
721
|
+
className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
722
|
+
children: children
|
|
723
|
+
}),
|
|
724
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollDownButton, {})
|
|
725
|
+
]
|
|
726
|
+
}))
|
|
727
|
+
});
|
|
728
|
+
});
|
|
325
729
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
326
|
-
var SelectLabel = React3.forwardRef((
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
));
|
|
730
|
+
var SelectLabel = React3.forwardRef(function(_param, ref) {
|
|
731
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
732
|
+
"className"
|
|
733
|
+
]);
|
|
734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Label, _object_spread({
|
|
735
|
+
ref: ref,
|
|
736
|
+
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)
|
|
737
|
+
}, props));
|
|
738
|
+
});
|
|
334
739
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
335
|
-
var SelectItem = React3.forwardRef((
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
740
|
+
var SelectItem = React3.forwardRef(function(_param, ref) {
|
|
741
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
742
|
+
"className",
|
|
743
|
+
"children"
|
|
744
|
+
]);
|
|
745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
746
|
+
ref: ref,
|
|
747
|
+
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)
|
|
748
|
+
}, props), {
|
|
749
|
+
children: [
|
|
750
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", {
|
|
751
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
752
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ItemIndicator, {
|
|
753
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.Check, {
|
|
754
|
+
className: "h-4 w-4"
|
|
755
|
+
})
|
|
756
|
+
})
|
|
757
|
+
}),
|
|
758
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ItemText, {
|
|
759
|
+
children: children
|
|
760
|
+
})
|
|
761
|
+
]
|
|
762
|
+
}));
|
|
763
|
+
});
|
|
350
764
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
351
|
-
var SelectSeparator = React3.forwardRef((
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
));
|
|
765
|
+
var SelectSeparator = React3.forwardRef(function(_param, ref) {
|
|
766
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
767
|
+
"className"
|
|
768
|
+
]);
|
|
769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Separator, _object_spread({
|
|
770
|
+
ref: ref,
|
|
771
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className)
|
|
772
|
+
}, props));
|
|
773
|
+
});
|
|
359
774
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
360
|
-
|
|
361
775
|
// src/components/atoms/ui/avatar.tsx
|
|
362
776
|
var React4 = __toESM(require("react"));
|
|
363
777
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
|
|
364
778
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
365
|
-
var Avatar = React4.forwardRef((
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
)
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
));
|
|
779
|
+
var Avatar = React4.forwardRef(function(_param, ref) {
|
|
780
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
781
|
+
"className"
|
|
782
|
+
]);
|
|
783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarPrimitive.Root, _object_spread({
|
|
784
|
+
ref: ref,
|
|
785
|
+
className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)
|
|
786
|
+
}, props));
|
|
787
|
+
});
|
|
376
788
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
377
|
-
var AvatarImage = React4.forwardRef((
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
));
|
|
789
|
+
var AvatarImage = React4.forwardRef(function(_param, ref) {
|
|
790
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
791
|
+
"className"
|
|
792
|
+
]);
|
|
793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarPrimitive.Image, _object_spread({
|
|
794
|
+
ref: ref,
|
|
795
|
+
className: cn("aspect-square h-full w-full", className)
|
|
796
|
+
}, props));
|
|
797
|
+
});
|
|
385
798
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
386
|
-
var AvatarFallback = React4.forwardRef((
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
)
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
));
|
|
799
|
+
var AvatarFallback = React4.forwardRef(function(_param, ref) {
|
|
800
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
801
|
+
"className"
|
|
802
|
+
]);
|
|
803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarPrimitive.Fallback, _object_spread({
|
|
804
|
+
ref: ref,
|
|
805
|
+
className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)
|
|
806
|
+
}, props));
|
|
807
|
+
});
|
|
397
808
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
398
|
-
|
|
399
809
|
// src/components/atoms/ui/scroll-area.tsx
|
|
400
810
|
var React5 = __toESM(require("react"));
|
|
401
811
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
402
812
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
403
|
-
var ScrollArea = React5.forwardRef((
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
813
|
+
var ScrollArea = React5.forwardRef(function(_param, ref) {
|
|
814
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
815
|
+
"className",
|
|
816
|
+
"children"
|
|
817
|
+
]);
|
|
818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(ScrollAreaPrimitive.Root, _object_spread_props(_object_spread({
|
|
819
|
+
ref: ref,
|
|
820
|
+
className: cn("relative overflow-hidden", className)
|
|
821
|
+
}, props), {
|
|
822
|
+
children: [
|
|
823
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.Viewport, {
|
|
824
|
+
className: "h-full w-full rounded-[inherit]",
|
|
825
|
+
children: children
|
|
826
|
+
}),
|
|
827
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollBar, {}),
|
|
828
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
829
|
+
]
|
|
830
|
+
}));
|
|
831
|
+
});
|
|
416
832
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
417
|
-
var ScrollBar = React5.forwardRef((
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
)
|
|
833
|
+
var ScrollBar = React5.forwardRef(function(_param, ref) {
|
|
834
|
+
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
|
|
835
|
+
"className",
|
|
836
|
+
"orientation"
|
|
837
|
+
]);
|
|
838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread_props(_object_spread({
|
|
839
|
+
ref: ref,
|
|
840
|
+
orientation: orientation,
|
|
841
|
+
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)
|
|
842
|
+
}, props), {
|
|
843
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
844
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
845
|
+
})
|
|
846
|
+
}));
|
|
847
|
+
});
|
|
432
848
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
433
|
-
|
|
434
849
|
// src/components/atoms/ui/rich-text.tsx
|
|
435
850
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
436
851
|
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
437
852
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
438
|
-
function RichText(
|
|
439
|
-
|
|
853
|
+
function RichText(param) {
|
|
854
|
+
var content = param.content, className = param.className;
|
|
855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_markdown.default, {
|
|
856
|
+
className: cn(className),
|
|
857
|
+
remarkPlugins: [
|
|
858
|
+
import_remark_gfm.default
|
|
859
|
+
],
|
|
860
|
+
children: content
|
|
861
|
+
});
|
|
440
862
|
}
|
|
441
|
-
|
|
442
863
|
// src/components/atoms/ui/skeleton.tsx
|
|
443
864
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
444
|
-
function Skeleton({
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
className: cn("animate-pulse rounded-md bg-muted text-muted-foreground", className, "alq--skeleton"),
|
|
452
|
-
...props
|
|
453
|
-
}
|
|
454
|
-
);
|
|
865
|
+
function Skeleton(_param) {
|
|
866
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
867
|
+
"className"
|
|
868
|
+
]);
|
|
869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", _object_spread({
|
|
870
|
+
className: cn("animate-pulse rounded-md bg-muted text-muted-foreground", className, "alq--skeleton")
|
|
871
|
+
}, props));
|
|
455
872
|
}
|
|
456
|
-
|
|
457
873
|
// src/components/atoms/ui/card.tsx
|
|
458
874
|
var React6 = __toESM(require("react"));
|
|
459
875
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
460
|
-
var Card = React6.forwardRef((
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
"shadow-raised",
|
|
470
|
-
className
|
|
471
|
-
),
|
|
472
|
-
...props
|
|
473
|
-
}
|
|
474
|
-
));
|
|
876
|
+
var Card = React6.forwardRef(function(_param, ref) {
|
|
877
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
878
|
+
"className"
|
|
879
|
+
]);
|
|
880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", _object_spread({
|
|
881
|
+
ref: ref,
|
|
882
|
+
className: cn("rounded-lg", " border", "bg-card", "text-card-foreground", "shadow-raised", className)
|
|
883
|
+
}, props));
|
|
884
|
+
});
|
|
475
885
|
Card.displayName = "Card";
|
|
476
|
-
var CardHeader = React6.forwardRef((
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
));
|
|
886
|
+
var CardHeader = React6.forwardRef(function(_param, ref) {
|
|
887
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
888
|
+
"className"
|
|
889
|
+
]);
|
|
890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", _object_spread({
|
|
891
|
+
ref: ref,
|
|
892
|
+
className: cn("flex flex-col space-y-1.5 p-6", className)
|
|
893
|
+
}, props));
|
|
894
|
+
});
|
|
484
895
|
CardHeader.displayName = "CardHeader";
|
|
485
|
-
var CardTitle = React6.forwardRef((
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
));
|
|
896
|
+
var CardTitle = React6.forwardRef(function(_param, ref) {
|
|
897
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
898
|
+
"className"
|
|
899
|
+
]);
|
|
900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", _object_spread({
|
|
901
|
+
ref: ref,
|
|
902
|
+
className: cn("alq--typography-heading4", className)
|
|
903
|
+
}, props));
|
|
904
|
+
});
|
|
493
905
|
CardTitle.displayName = "CardTitle";
|
|
494
|
-
var CardDescription = React6.forwardRef((
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
));
|
|
906
|
+
var CardDescription = React6.forwardRef(function(_param, ref) {
|
|
907
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
908
|
+
"className"
|
|
909
|
+
]);
|
|
910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", _object_spread({
|
|
911
|
+
ref: ref,
|
|
912
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
913
|
+
}, props));
|
|
914
|
+
});
|
|
502
915
|
CardDescription.displayName = "CardDescription";
|
|
503
|
-
var CardContent = React6.forwardRef((
|
|
916
|
+
var CardContent = React6.forwardRef(function(_param, ref) {
|
|
917
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
918
|
+
"className"
|
|
919
|
+
]);
|
|
920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", _object_spread({
|
|
921
|
+
ref: ref,
|
|
922
|
+
className: cn("p-6 pt-0", className)
|
|
923
|
+
}, props));
|
|
924
|
+
});
|
|
504
925
|
CardContent.displayName = "CardContent";
|
|
505
|
-
var CardFooter = React6.forwardRef((
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
));
|
|
926
|
+
var CardFooter = React6.forwardRef(function(_param, ref) {
|
|
927
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
928
|
+
"className"
|
|
929
|
+
]);
|
|
930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", _object_spread({
|
|
931
|
+
ref: ref,
|
|
932
|
+
className: cn("flex items-center p-6 pt-0", className)
|
|
933
|
+
}, props));
|
|
934
|
+
});
|
|
513
935
|
CardFooter.displayName = "CardFooter";
|
|
514
|
-
|
|
515
936
|
// src/components/atoms/ui/drawer.tsx
|
|
516
937
|
var React7 = __toESM(require("react"));
|
|
517
938
|
var import_vaul = require("vaul");
|
|
518
939
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
519
|
-
var Drawer = ({
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
528
|
-
);
|
|
940
|
+
var Drawer = function(_param) {
|
|
941
|
+
var _param_shouldScaleBackground = _param.shouldScaleBackground, shouldScaleBackground = _param_shouldScaleBackground === void 0 ? true : _param_shouldScaleBackground, props = _object_without_properties(_param, [
|
|
942
|
+
"shouldScaleBackground"
|
|
943
|
+
]);
|
|
944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vaul.Drawer.Root, _object_spread({
|
|
945
|
+
shouldScaleBackground: shouldScaleBackground
|
|
946
|
+
}, props));
|
|
947
|
+
};
|
|
529
948
|
Drawer.displayName = "Drawer";
|
|
530
949
|
var DrawerTrigger = import_vaul.Drawer.Trigger;
|
|
531
950
|
var DrawerPortal = import_vaul.Drawer.Portal;
|
|
532
951
|
var DrawerClose = import_vaul.Drawer.Close;
|
|
533
|
-
var DrawerOverlay = React7.forwardRef((
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
));
|
|
952
|
+
var DrawerOverlay = React7.forwardRef(function(_param, ref) {
|
|
953
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
954
|
+
"className"
|
|
955
|
+
]);
|
|
956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vaul.Drawer.Overlay, _object_spread({
|
|
957
|
+
ref: ref,
|
|
958
|
+
className: cn("fixed inset-0 z-50 bg-black/80", className)
|
|
959
|
+
}, props));
|
|
960
|
+
});
|
|
541
961
|
DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
|
|
542
|
-
var DrawerContent = React7.forwardRef((
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
]
|
|
962
|
+
var DrawerContent = React7.forwardRef(function(_param, ref) {
|
|
963
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
964
|
+
"className",
|
|
965
|
+
"children"
|
|
966
|
+
]);
|
|
967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DrawerPortal, {
|
|
968
|
+
children: [
|
|
969
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DrawerOverlay, {}),
|
|
970
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_vaul.Drawer.Content, _object_spread_props(_object_spread({
|
|
971
|
+
ref: ref,
|
|
972
|
+
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)
|
|
973
|
+
}, props), {
|
|
974
|
+
children: [
|
|
975
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", {
|
|
976
|
+
className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
|
|
977
|
+
}),
|
|
978
|
+
children
|
|
979
|
+
]
|
|
980
|
+
}))
|
|
981
|
+
]
|
|
982
|
+
});
|
|
983
|
+
});
|
|
560
984
|
DrawerContent.displayName = "DrawerContent";
|
|
561
|
-
var DrawerHeader = ({
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
);
|
|
985
|
+
var DrawerHeader = function(_param) {
|
|
986
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
987
|
+
"className"
|
|
988
|
+
]);
|
|
989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", _object_spread({
|
|
990
|
+
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header")
|
|
991
|
+
}, props));
|
|
992
|
+
};
|
|
571
993
|
DrawerHeader.displayName = "DrawerHeader";
|
|
572
|
-
var DrawerFooter = ({
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
);
|
|
994
|
+
var DrawerFooter = function(_param) {
|
|
995
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
996
|
+
"className"
|
|
997
|
+
]);
|
|
998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", _object_spread({
|
|
999
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer")
|
|
1000
|
+
}, props));
|
|
1001
|
+
};
|
|
582
1002
|
DrawerFooter.displayName = "DrawerFooter";
|
|
583
|
-
var DrawerTitle = React7.forwardRef((
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
...props
|
|
593
|
-
}
|
|
594
|
-
));
|
|
1003
|
+
var DrawerTitle = React7.forwardRef(function(_param, ref) {
|
|
1004
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1005
|
+
"className"
|
|
1006
|
+
]);
|
|
1007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vaul.Drawer.Title, _object_spread({
|
|
1008
|
+
ref: ref,
|
|
1009
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className, "alq--drawer-title")
|
|
1010
|
+
}, props));
|
|
1011
|
+
});
|
|
595
1012
|
DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
|
|
596
|
-
var DrawerDescription = React7.forwardRef((
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
));
|
|
1013
|
+
var DrawerDescription = React7.forwardRef(function(_param, ref) {
|
|
1014
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1015
|
+
"className"
|
|
1016
|
+
]);
|
|
1017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vaul.Drawer.Description, _object_spread({
|
|
1018
|
+
ref: ref,
|
|
1019
|
+
className: cn("text-sm text-muted-foreground", className, "alq--drawer-description")
|
|
1020
|
+
}, props));
|
|
1021
|
+
});
|
|
604
1022
|
DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
|
|
605
|
-
|
|
606
1023
|
// src/components/atoms/ui/typography/index.tsx
|
|
607
1024
|
var import_react2 = require("react");
|
|
608
1025
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
609
|
-
var Typography = (0, import_react2.forwardRef)(
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
className: cn(props.className,
|
|
616
|
-
ref
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
);
|
|
1026
|
+
var Typography = (0, import_react2.forwardRef)(function(_param, ref) {
|
|
1027
|
+
var tmp = _param.as, Component = tmp === void 0 ? "p" : tmp, typeStyle = _param.typeStyle, props = _object_without_properties(_param, [
|
|
1028
|
+
"as",
|
|
1029
|
+
"typeStyle"
|
|
1030
|
+
]);
|
|
1031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Component, _object_spread_props(_object_spread({}, props), {
|
|
1032
|
+
className: cn(props.className, "alq--typography-".concat(typeStyle)),
|
|
1033
|
+
ref: ref
|
|
1034
|
+
}));
|
|
1035
|
+
});
|
|
621
1036
|
Typography.displayName = "Typography";
|
|
622
|
-
|
|
623
1037
|
// src/components/atoms/ui/badge.tsx
|
|
624
1038
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
625
1039
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
626
|
-
var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
627
|
-
"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",
|
|
628
|
-
{
|
|
1040
|
+
var badgeVariants = (0, import_class_variance_authority2.cva)("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", {
|
|
629
1041
|
variants: {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
1042
|
+
variant: {
|
|
1043
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
1044
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
1045
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
1046
|
+
outline: "text-foreground"
|
|
1047
|
+
}
|
|
636
1048
|
},
|
|
637
1049
|
defaultVariants: {
|
|
638
|
-
|
|
1050
|
+
variant: "default"
|
|
639
1051
|
}
|
|
640
|
-
|
|
641
|
-
)
|
|
642
|
-
|
|
643
|
-
|
|
1052
|
+
});
|
|
1053
|
+
function Badge(_param) {
|
|
1054
|
+
var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
|
|
1055
|
+
"className",
|
|
1056
|
+
"variant"
|
|
1057
|
+
]);
|
|
1058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", _object_spread({
|
|
1059
|
+
className: cn(badgeVariants({
|
|
1060
|
+
variant: variant
|
|
1061
|
+
}), className, "alq--badge")
|
|
1062
|
+
}, props));
|
|
644
1063
|
}
|
|
645
|
-
|
|
646
1064
|
// src/components/atoms/ui/alert.tsx
|
|
647
1065
|
var React8 = __toESM(require("react"));
|
|
648
1066
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
649
1067
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
650
|
-
var alertVariants = (0, import_class_variance_authority3.cva)(
|
|
651
|
-
"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",
|
|
652
|
-
{
|
|
1068
|
+
var alertVariants = (0, import_class_variance_authority3.cva)("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", {
|
|
653
1069
|
variants: {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
1070
|
+
variant: {
|
|
1071
|
+
default: "bg-background text-foreground",
|
|
1072
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
1073
|
+
}
|
|
658
1074
|
},
|
|
659
1075
|
defaultVariants: {
|
|
660
|
-
|
|
1076
|
+
variant: "default"
|
|
661
1077
|
}
|
|
662
|
-
|
|
663
|
-
)
|
|
664
|
-
var
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
1078
|
+
});
|
|
1079
|
+
var Alert = React8.forwardRef(function(_param, ref) {
|
|
1080
|
+
var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
|
|
1081
|
+
"className",
|
|
1082
|
+
"variant"
|
|
1083
|
+
]);
|
|
1084
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", _object_spread({
|
|
1085
|
+
ref: ref,
|
|
1086
|
+
role: "alert",
|
|
1087
|
+
className: cn(alertVariants({
|
|
1088
|
+
variant: variant
|
|
1089
|
+
}), className)
|
|
1090
|
+
}, props));
|
|
1091
|
+
});
|
|
673
1092
|
Alert.displayName = "Alert";
|
|
674
|
-
var AlertTitle = React8.forwardRef((
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
));
|
|
1093
|
+
var AlertTitle = React8.forwardRef(function(_param, ref) {
|
|
1094
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1095
|
+
"className"
|
|
1096
|
+
]);
|
|
1097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h5", _object_spread({
|
|
1098
|
+
ref: ref,
|
|
1099
|
+
className: cn("mb-1 font-medium leading-none tracking-tight", className)
|
|
1100
|
+
}, props));
|
|
1101
|
+
});
|
|
682
1102
|
AlertTitle.displayName = "AlertTitle";
|
|
683
|
-
var AlertDescription = React8.forwardRef((
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
));
|
|
1103
|
+
var AlertDescription = React8.forwardRef(function(_param, ref) {
|
|
1104
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1105
|
+
"className"
|
|
1106
|
+
]);
|
|
1107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", _object_spread({
|
|
1108
|
+
ref: ref,
|
|
1109
|
+
className: cn("text-sm [&_p]:leading-relaxed", className)
|
|
1110
|
+
}, props));
|
|
1111
|
+
});
|
|
691
1112
|
AlertDescription.displayName = "AlertDescription";
|
|
692
|
-
|
|
693
1113
|
// src/components/atoms/ui/label.tsx
|
|
694
1114
|
var React9 = __toESM(require("react"));
|
|
695
1115
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
696
1116
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
697
1117
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
698
|
-
var labelVariants = (0, import_class_variance_authority4.cva)(
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
));
|
|
1118
|
+
var labelVariants = (0, import_class_variance_authority4.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
1119
|
+
var Label2 = React9.forwardRef(function(_param, ref) {
|
|
1120
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1121
|
+
"className"
|
|
1122
|
+
]);
|
|
1123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LabelPrimitive.Root, _object_spread({
|
|
1124
|
+
ref: ref,
|
|
1125
|
+
className: cn(labelVariants(), className, "alq--label")
|
|
1126
|
+
}, props));
|
|
1127
|
+
});
|
|
709
1128
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
710
|
-
|
|
711
1129
|
// src/components/atoms/ui/checkbox.tsx
|
|
712
1130
|
var React10 = __toESM(require("react"));
|
|
713
1131
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
714
1132
|
var import_lucide_react2 = require("lucide-react");
|
|
715
1133
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
716
|
-
var Checkbox = React10.forwardRef((
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
)
|
|
733
|
-
}
|
|
734
|
-
));
|
|
1134
|
+
var Checkbox = React10.forwardRef(function(_param, ref) {
|
|
1135
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1136
|
+
"className"
|
|
1137
|
+
]);
|
|
1138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CheckboxPrimitive.Root, _object_spread_props(_object_spread({
|
|
1139
|
+
ref: ref,
|
|
1140
|
+
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")
|
|
1141
|
+
}, props), {
|
|
1142
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CheckboxPrimitive.Indicator, {
|
|
1143
|
+
className: cn("flex items-center justify-center text-current"),
|
|
1144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.Check, {
|
|
1145
|
+
className: "h-4 w-4"
|
|
1146
|
+
})
|
|
1147
|
+
})
|
|
1148
|
+
}));
|
|
1149
|
+
});
|
|
735
1150
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
736
|
-
|
|
737
1151
|
// src/components/atoms/ui/toggle.tsx
|
|
738
1152
|
var React11 = __toESM(require("react"));
|
|
739
1153
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"));
|
|
740
1154
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
741
1155
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
742
|
-
var toggleVariants = (0, import_class_variance_authority5.cva)(
|
|
743
|
-
"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",
|
|
744
|
-
{
|
|
1156
|
+
var toggleVariants = (0, import_class_variance_authority5.cva)("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", {
|
|
745
1157
|
variants: {
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
1158
|
+
variant: {
|
|
1159
|
+
default: "bg-transparent",
|
|
1160
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
1161
|
+
},
|
|
1162
|
+
size: {
|
|
1163
|
+
default: "h-10 px-3",
|
|
1164
|
+
sm: "h-9 px-2.5",
|
|
1165
|
+
lg: "h-11 px-5"
|
|
1166
|
+
}
|
|
755
1167
|
},
|
|
756
1168
|
defaultVariants: {
|
|
757
|
-
|
|
758
|
-
|
|
1169
|
+
variant: "default",
|
|
1170
|
+
size: "default"
|
|
759
1171
|
}
|
|
760
|
-
|
|
761
|
-
)
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
1172
|
+
});
|
|
1173
|
+
var Toggle = React11.forwardRef(function(_param, ref) {
|
|
1174
|
+
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
1175
|
+
"className",
|
|
1176
|
+
"variant",
|
|
1177
|
+
"size"
|
|
1178
|
+
]);
|
|
1179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TogglePrimitive.Root, _object_spread({
|
|
1180
|
+
ref: ref,
|
|
1181
|
+
className: cn(toggleVariants({
|
|
1182
|
+
variant: variant,
|
|
1183
|
+
size: size,
|
|
1184
|
+
className: className
|
|
1185
|
+
}), "alq--toggle")
|
|
1186
|
+
}, props));
|
|
1187
|
+
});
|
|
770
1188
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
771
|
-
|
|
772
1189
|
// src/components/atoms/ui/slider.tsx
|
|
773
1190
|
var React12 = __toESM(require("react"));
|
|
774
1191
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
775
1192
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
776
|
-
var Slider = React12.forwardRef((
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
)
|
|
1193
|
+
var Slider = React12.forwardRef(function(_param, ref) {
|
|
1194
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1195
|
+
"className"
|
|
1196
|
+
]);
|
|
1197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
1198
|
+
ref: ref,
|
|
1199
|
+
className: cn("relative flex w-44 touch-none select-none items-center", className, "alq--slider")
|
|
1200
|
+
}, props), {
|
|
1201
|
+
children: [
|
|
1202
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SliderPrimitive.Track, {
|
|
1203
|
+
className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary",
|
|
1204
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SliderPrimitive.Range, {
|
|
1205
|
+
className: "absolute h-full bg-secondary"
|
|
1206
|
+
})
|
|
1207
|
+
}),
|
|
1208
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SliderPrimitive.Thumb, {
|
|
1209
|
+
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"
|
|
1210
|
+
})
|
|
1211
|
+
]
|
|
1212
|
+
}));
|
|
1213
|
+
});
|
|
792
1214
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
793
|
-
|
|
794
1215
|
// src/components/atoms/ui/switch.tsx
|
|
795
1216
|
var React13 = __toESM(require("react"));
|
|
796
1217
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
797
1218
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
798
|
-
var Switch = React13.forwardRef((
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
className: cn(
|
|
812
|
-
"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"
|
|
813
|
-
)
|
|
814
|
-
}
|
|
815
|
-
)
|
|
816
|
-
}
|
|
817
|
-
));
|
|
1219
|
+
var Switch = React13.forwardRef(function(_param, ref) {
|
|
1220
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1221
|
+
"className"
|
|
1222
|
+
]);
|
|
1223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
1224
|
+
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")
|
|
1225
|
+
}, props), {
|
|
1226
|
+
ref: ref,
|
|
1227
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SwitchPrimitives.Thumb, {
|
|
1228
|
+
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")
|
|
1229
|
+
})
|
|
1230
|
+
}));
|
|
1231
|
+
});
|
|
818
1232
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
819
|
-
|
|
820
1233
|
// src/components/atoms/ui/tabs.tsx
|
|
821
1234
|
var React14 = __toESM(require("react"));
|
|
822
1235
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
823
1236
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
824
1237
|
var Tabs = TabsPrimitive.Root;
|
|
825
|
-
var TabsList = React14.forwardRef((
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
...props
|
|
835
|
-
}
|
|
836
|
-
));
|
|
1238
|
+
var TabsList = React14.forwardRef(function(_param, ref) {
|
|
1239
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1240
|
+
"className"
|
|
1241
|
+
]);
|
|
1242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TabsPrimitive.List, _object_spread({
|
|
1243
|
+
ref: ref,
|
|
1244
|
+
className: cn("inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground", className, "alq--tabs")
|
|
1245
|
+
}, props));
|
|
1246
|
+
});
|
|
837
1247
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
838
|
-
var TabsTrigger = React14.forwardRef((
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
)
|
|
846
|
-
|
|
847
|
-
}
|
|
848
|
-
));
|
|
1248
|
+
var TabsTrigger = React14.forwardRef(function(_param, ref) {
|
|
1249
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1250
|
+
"className"
|
|
1251
|
+
]);
|
|
1252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TabsPrimitive.Trigger, _object_spread({
|
|
1253
|
+
ref: ref,
|
|
1254
|
+
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)
|
|
1255
|
+
}, props));
|
|
1256
|
+
});
|
|
849
1257
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
850
|
-
var TabsContent = React14.forwardRef((
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
)
|
|
858
|
-
|
|
859
|
-
}
|
|
860
|
-
));
|
|
1258
|
+
var TabsContent = React14.forwardRef(function(_param, ref) {
|
|
1259
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1260
|
+
"className"
|
|
1261
|
+
]);
|
|
1262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TabsPrimitive.Content, _object_spread({
|
|
1263
|
+
ref: ref,
|
|
1264
|
+
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)
|
|
1265
|
+
}, props));
|
|
1266
|
+
});
|
|
861
1267
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
862
|
-
|
|
863
1268
|
// src/components/atoms/ui/aspect-ratio.tsx
|
|
864
1269
|
var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"));
|
|
865
1270
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
866
|
-
|
|
867
1271
|
// src/components/atoms/ui/table.tsx
|
|
868
1272
|
var React15 = __toESM(require("react"));
|
|
869
1273
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
870
|
-
var Table = React15.forwardRef((
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
1274
|
+
var Table = React15.forwardRef(function(_param, ref) {
|
|
1275
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1276
|
+
"className"
|
|
1277
|
+
]);
|
|
1278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
|
|
1279
|
+
className: "relative w-full overflow-auto",
|
|
1280
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("table", _object_spread({
|
|
1281
|
+
ref: ref,
|
|
1282
|
+
className: cn("w-full caption-bottom text-sm text-foreground bg-background", className, "alq--table")
|
|
1283
|
+
}, props))
|
|
1284
|
+
});
|
|
1285
|
+
});
|
|
878
1286
|
Table.displayName = "Table";
|
|
879
|
-
var TableHeader = React15.forwardRef((
|
|
1287
|
+
var TableHeader = React15.forwardRef(function(_param, ref) {
|
|
1288
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1289
|
+
"className"
|
|
1290
|
+
]);
|
|
1291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("thead", _object_spread({
|
|
1292
|
+
ref: ref,
|
|
1293
|
+
className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header")
|
|
1294
|
+
}, props));
|
|
1295
|
+
});
|
|
880
1296
|
TableHeader.displayName = "TableHeader";
|
|
881
|
-
var TableBody = React15.forwardRef((
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
));
|
|
1297
|
+
var TableBody = React15.forwardRef(function(_param, ref) {
|
|
1298
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1299
|
+
"className"
|
|
1300
|
+
]);
|
|
1301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tbody", _object_spread({
|
|
1302
|
+
ref: ref,
|
|
1303
|
+
className: cn("[&_tr:last-child]:border-0 [&_tr]:border-b border-border", className, "alq--table-body")
|
|
1304
|
+
}, props));
|
|
1305
|
+
});
|
|
889
1306
|
TableBody.displayName = "TableBody";
|
|
890
|
-
var TableFooter = React15.forwardRef((
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
...props
|
|
900
|
-
}
|
|
901
|
-
));
|
|
1307
|
+
var TableFooter = React15.forwardRef(function(_param, ref) {
|
|
1308
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1309
|
+
"className"
|
|
1310
|
+
]);
|
|
1311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tfoot", _object_spread({
|
|
1312
|
+
ref: ref,
|
|
1313
|
+
className: cn("border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0", className, "alq--table-footer")
|
|
1314
|
+
}, props));
|
|
1315
|
+
});
|
|
902
1316
|
TableFooter.displayName = "TableFooter";
|
|
903
|
-
var TableRow = React15.forwardRef((
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
)
|
|
911
|
-
|
|
912
|
-
}
|
|
913
|
-
));
|
|
1317
|
+
var TableRow = React15.forwardRef(function(_param, ref) {
|
|
1318
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1319
|
+
"className"
|
|
1320
|
+
]);
|
|
1321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tr", _object_spread({
|
|
1322
|
+
ref: ref,
|
|
1323
|
+
className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className)
|
|
1324
|
+
}, props));
|
|
1325
|
+
});
|
|
914
1326
|
TableRow.displayName = "TableRow";
|
|
915
|
-
var TableHead = React15.forwardRef((
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
)
|
|
923
|
-
|
|
924
|
-
}
|
|
925
|
-
));
|
|
1327
|
+
var TableHead = React15.forwardRef(function(_param, ref) {
|
|
1328
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1329
|
+
"className"
|
|
1330
|
+
]);
|
|
1331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("th", _object_spread({
|
|
1332
|
+
ref: ref,
|
|
1333
|
+
className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className)
|
|
1334
|
+
}, props));
|
|
1335
|
+
});
|
|
926
1336
|
TableHead.displayName = "TableHead";
|
|
927
|
-
var TableCell = React15.forwardRef((
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
));
|
|
1337
|
+
var TableCell = React15.forwardRef(function(_param, ref) {
|
|
1338
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1339
|
+
"className"
|
|
1340
|
+
]);
|
|
1341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", _object_spread({
|
|
1342
|
+
ref: ref,
|
|
1343
|
+
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)
|
|
1344
|
+
}, props));
|
|
1345
|
+
});
|
|
935
1346
|
TableCell.displayName = "TableCell";
|
|
936
|
-
var TableCaption = React15.forwardRef((
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
));
|
|
1347
|
+
var TableCaption = React15.forwardRef(function(_param, ref) {
|
|
1348
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1349
|
+
"className"
|
|
1350
|
+
]);
|
|
1351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("caption", _object_spread({
|
|
1352
|
+
ref: ref,
|
|
1353
|
+
className: cn("mt-4 text-sm text-muted-foreground", className)
|
|
1354
|
+
}, props));
|
|
1355
|
+
});
|
|
944
1356
|
TableCaption.displayName = "TableCaption";
|
|
945
|
-
|
|
946
1357
|
// src/components/atoms/ui/breadcrumb.tsx
|
|
947
1358
|
var React16 = __toESM(require("react"));
|
|
948
1359
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
949
1360
|
var import_lucide_react3 = require("lucide-react");
|
|
950
1361
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
951
|
-
var Breadcrumb = React16.forwardRef((
|
|
1362
|
+
var Breadcrumb = React16.forwardRef(function(_param, ref) {
|
|
1363
|
+
var props = _extends({}, _object_destructuring_empty(_param));
|
|
1364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("nav", _object_spread({
|
|
1365
|
+
ref: ref,
|
|
1366
|
+
"aria-label": "breadcrumb"
|
|
1367
|
+
}, props));
|
|
1368
|
+
});
|
|
952
1369
|
Breadcrumb.displayName = "Breadcrumb";
|
|
953
|
-
var BreadcrumbList = React16.forwardRef((
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
)
|
|
961
|
-
|
|
962
|
-
}
|
|
963
|
-
));
|
|
1370
|
+
var BreadcrumbList = React16.forwardRef(function(_param, ref) {
|
|
1371
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1372
|
+
"className"
|
|
1373
|
+
]);
|
|
1374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ol", _object_spread({
|
|
1375
|
+
ref: ref,
|
|
1376
|
+
className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className)
|
|
1377
|
+
}, props));
|
|
1378
|
+
});
|
|
964
1379
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
965
|
-
var BreadcrumbItem = React16.forwardRef((
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
));
|
|
1380
|
+
var BreadcrumbItem = React16.forwardRef(function(_param, ref) {
|
|
1381
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1382
|
+
"className"
|
|
1383
|
+
]);
|
|
1384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("li", _object_spread({
|
|
1385
|
+
ref: ref,
|
|
1386
|
+
className: cn("inline-flex items-center gap-1.5", className)
|
|
1387
|
+
}, props));
|
|
1388
|
+
});
|
|
973
1389
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
974
|
-
var BreadcrumbLink = React16.forwardRef((
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1390
|
+
var BreadcrumbLink = React16.forwardRef(function(_param, ref) {
|
|
1391
|
+
var asChild = _param.asChild, className = _param.className, props = _object_without_properties(_param, [
|
|
1392
|
+
"asChild",
|
|
1393
|
+
"className"
|
|
1394
|
+
]);
|
|
1395
|
+
var Comp = asChild ? import_react_slot2.Slot : "a";
|
|
1396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Comp, _object_spread({
|
|
1397
|
+
ref: ref,
|
|
1398
|
+
className: cn("transition-colors hover:text-foreground", className)
|
|
1399
|
+
}, props));
|
|
984
1400
|
});
|
|
985
1401
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
986
|
-
var BreadcrumbPage = React16.forwardRef((
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
));
|
|
1402
|
+
var BreadcrumbPage = React16.forwardRef(function(_param, ref) {
|
|
1403
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1404
|
+
"className"
|
|
1405
|
+
]);
|
|
1406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", _object_spread({
|
|
1407
|
+
ref: ref,
|
|
1408
|
+
role: "link",
|
|
1409
|
+
"aria-disabled": "true",
|
|
1410
|
+
"aria-current": "page",
|
|
1411
|
+
className: cn("font-normal text-foreground", className)
|
|
1412
|
+
}, props));
|
|
1413
|
+
});
|
|
997
1414
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
998
|
-
var BreadcrumbSeparator = ({
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
);
|
|
1415
|
+
var BreadcrumbSeparator = function(_param) {
|
|
1416
|
+
var children = _param.children, className = _param.className, props = _object_without_properties(_param, [
|
|
1417
|
+
"children",
|
|
1418
|
+
"className"
|
|
1419
|
+
]);
|
|
1420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("li", _object_spread_props(_object_spread({
|
|
1421
|
+
role: "presentation",
|
|
1422
|
+
"aria-hidden": "true",
|
|
1423
|
+
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)
|
|
1424
|
+
}, props), {
|
|
1425
|
+
children: children !== null && children !== void 0 ? children : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.ChevronRight, {})
|
|
1426
|
+
}));
|
|
1427
|
+
};
|
|
1012
1428
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1013
|
-
var BreadcrumbEllipsis = ({
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1429
|
+
var BreadcrumbEllipsis = function(_param) {
|
|
1430
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1431
|
+
"className"
|
|
1432
|
+
]);
|
|
1433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", _object_spread_props(_object_spread({
|
|
1434
|
+
role: "presentation",
|
|
1435
|
+
"aria-hidden": "true",
|
|
1436
|
+
className: cn("flex h-9 w-9 items-center justify-center", className)
|
|
1437
|
+
}, props), {
|
|
1438
|
+
children: [
|
|
1439
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.MoreHorizontal, {
|
|
1440
|
+
className: "h-4 w-4"
|
|
1441
|
+
}),
|
|
1442
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", {
|
|
1443
|
+
className: "sr-only",
|
|
1444
|
+
children: "More"
|
|
1445
|
+
})
|
|
1446
|
+
]
|
|
1447
|
+
}));
|
|
1448
|
+
};
|
|
1029
1449
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
1030
|
-
|
|
1031
1450
|
// src/components/molecules/alert-dialog.tsx
|
|
1032
1451
|
var React17 = __toESM(require("react"));
|
|
1033
1452
|
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
|
|
@@ -1035,128 +1454,118 @@ var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
|
1035
1454
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1036
1455
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1037
1456
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1038
|
-
var AlertDialogOverlay = React17.forwardRef((
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
),
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
));
|
|
1457
|
+
var AlertDialogOverlay = React17.forwardRef(function(_param, ref) {
|
|
1458
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1459
|
+
"className"
|
|
1460
|
+
]);
|
|
1461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
1462
|
+
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)
|
|
1463
|
+
}, props), {
|
|
1464
|
+
ref: ref
|
|
1465
|
+
}));
|
|
1466
|
+
});
|
|
1049
1467
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
1050
|
-
var AlertDialogContent = React17.forwardRef((
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
{
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1468
|
+
var AlertDialogContent = React17.forwardRef(function(_param, ref) {
|
|
1469
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1470
|
+
"className"
|
|
1471
|
+
]);
|
|
1472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AlertDialogPortal, {
|
|
1473
|
+
children: [
|
|
1474
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogOverlay, {}),
|
|
1475
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogPrimitive.Content, _object_spread({
|
|
1476
|
+
ref: ref,
|
|
1477
|
+
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)
|
|
1478
|
+
}, props))
|
|
1479
|
+
]
|
|
1480
|
+
});
|
|
1481
|
+
});
|
|
1064
1482
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
1065
|
-
var AlertDialogHeader = ({
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
className
|
|
1074
|
-
),
|
|
1075
|
-
...props
|
|
1076
|
-
}
|
|
1077
|
-
);
|
|
1483
|
+
var AlertDialogHeader = function(_param) {
|
|
1484
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1485
|
+
"className"
|
|
1486
|
+
]);
|
|
1487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", _object_spread({
|
|
1488
|
+
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
1489
|
+
}, props));
|
|
1490
|
+
};
|
|
1078
1491
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1079
|
-
var AlertDialogFooter = ({
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
className
|
|
1088
|
-
),
|
|
1089
|
-
...props
|
|
1090
|
-
}
|
|
1091
|
-
);
|
|
1492
|
+
var AlertDialogFooter = function(_param) {
|
|
1493
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1494
|
+
"className"
|
|
1495
|
+
]);
|
|
1496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", _object_spread({
|
|
1497
|
+
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
1498
|
+
}, props));
|
|
1499
|
+
};
|
|
1092
1500
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1093
|
-
var AlertDialogTitle = React17.forwardRef((
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
));
|
|
1501
|
+
var AlertDialogTitle = React17.forwardRef(function(_param, ref) {
|
|
1502
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1503
|
+
"className"
|
|
1504
|
+
]);
|
|
1505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogPrimitive.Title, _object_spread({
|
|
1506
|
+
ref: ref,
|
|
1507
|
+
className: cn("text-lg font-semibold", className)
|
|
1508
|
+
}, props));
|
|
1509
|
+
});
|
|
1101
1510
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
1102
|
-
var AlertDialogDescription = React17.forwardRef((
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
));
|
|
1511
|
+
var AlertDialogDescription = React17.forwardRef(function(_param, ref) {
|
|
1512
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1513
|
+
"className"
|
|
1514
|
+
]);
|
|
1515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogPrimitive.Description, _object_spread({
|
|
1516
|
+
ref: ref,
|
|
1517
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
1518
|
+
}, props));
|
|
1519
|
+
});
|
|
1110
1520
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
1111
|
-
var AlertDialogAction = React17.forwardRef((
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
));
|
|
1521
|
+
var AlertDialogAction = React17.forwardRef(function(_param, ref) {
|
|
1522
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1523
|
+
"className"
|
|
1524
|
+
]);
|
|
1525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogPrimitive.Action, _object_spread({
|
|
1526
|
+
ref: ref,
|
|
1527
|
+
className: cn(buttonVariants(), className)
|
|
1528
|
+
}, props));
|
|
1529
|
+
});
|
|
1119
1530
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
1120
|
-
var AlertDialogCancel = React17.forwardRef((
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
));
|
|
1531
|
+
var AlertDialogCancel = React17.forwardRef(function(_param, ref) {
|
|
1532
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1533
|
+
"className"
|
|
1534
|
+
]);
|
|
1535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogPrimitive.Cancel, _object_spread({
|
|
1536
|
+
ref: ref,
|
|
1537
|
+
className: cn(buttonVariants({
|
|
1538
|
+
variant: "outline"
|
|
1539
|
+
}), "mt-2 sm:mt-0", className)
|
|
1540
|
+
}, props));
|
|
1541
|
+
});
|
|
1132
1542
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1133
|
-
|
|
1134
1543
|
// src/components/atoms/ui/popover.tsx
|
|
1135
1544
|
var React18 = __toESM(require("react"));
|
|
1136
1545
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
1137
1546
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1138
1547
|
var Popover = PopoverPrimitive.Root;
|
|
1139
1548
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1140
|
-
var PopoverContent = React18.forwardRef((
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1549
|
+
var PopoverContent = React18.forwardRef(function(_param, ref) {
|
|
1550
|
+
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, [
|
|
1551
|
+
"className",
|
|
1552
|
+
"align",
|
|
1553
|
+
"sideOffset"
|
|
1554
|
+
]);
|
|
1555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverPrimitive.Portal, {
|
|
1556
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverPrimitive.Content, _object_spread({
|
|
1557
|
+
ref: ref,
|
|
1558
|
+
align: align,
|
|
1559
|
+
sideOffset: sideOffset,
|
|
1560
|
+
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)
|
|
1561
|
+
}, props))
|
|
1562
|
+
});
|
|
1563
|
+
});
|
|
1153
1564
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1154
|
-
|
|
1155
1565
|
// src/components/atoms/ui/command.tsx
|
|
1156
1566
|
var React20 = __toESM(require("react"));
|
|
1157
1567
|
var import_cmdk = require("cmdk");
|
|
1158
1568
|
var import_lucide_react5 = require("lucide-react");
|
|
1159
|
-
|
|
1160
1569
|
// src/components/atoms/ui/dialog.tsx
|
|
1161
1570
|
var React19 = __toESM(require("react"));
|
|
1162
1571
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
@@ -1166,193 +1575,187 @@ var Dialog = DialogPrimitive.Root;
|
|
|
1166
1575
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1167
1576
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1168
1577
|
var DialogClose = DialogPrimitive.Close;
|
|
1169
|
-
var DialogOverlay = React19.forwardRef((
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
)
|
|
1177
|
-
|
|
1178
|
-
}
|
|
1179
|
-
));
|
|
1578
|
+
var DialogOverlay = React19.forwardRef(function(_param, ref) {
|
|
1579
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1580
|
+
"className"
|
|
1581
|
+
]);
|
|
1582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogPrimitive.Overlay, _object_spread({
|
|
1583
|
+
ref: ref,
|
|
1584
|
+
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)
|
|
1585
|
+
}, props));
|
|
1586
|
+
});
|
|
1180
1587
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1181
|
-
var DialogContent = React19.forwardRef((
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1588
|
+
var DialogContent = React19.forwardRef(function(_param, ref) {
|
|
1589
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1590
|
+
"className",
|
|
1591
|
+
"children"
|
|
1592
|
+
]);
|
|
1593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DialogPortal, {
|
|
1594
|
+
children: [
|
|
1595
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogOverlay, {}),
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DialogPrimitive.Content, _object_spread_props(_object_spread({
|
|
1597
|
+
ref: ref,
|
|
1598
|
+
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")
|
|
1599
|
+
}, props), {
|
|
1600
|
+
children: [
|
|
1601
|
+
children,
|
|
1602
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DialogPrimitive.Close, {
|
|
1603
|
+
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",
|
|
1604
|
+
children: [
|
|
1605
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react4.X, {
|
|
1606
|
+
className: "h-4 w-4"
|
|
1607
|
+
}),
|
|
1608
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", {
|
|
1609
|
+
className: "sr-only",
|
|
1610
|
+
children: "Close"
|
|
1611
|
+
})
|
|
1612
|
+
]
|
|
1613
|
+
})
|
|
1614
|
+
]
|
|
1615
|
+
}))
|
|
1616
|
+
]
|
|
1617
|
+
});
|
|
1618
|
+
});
|
|
1203
1619
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1204
|
-
var DialogHeader = ({
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
className,
|
|
1213
|
-
"alq--dialog-header"
|
|
1214
|
-
),
|
|
1215
|
-
...props
|
|
1216
|
-
}
|
|
1217
|
-
);
|
|
1620
|
+
var DialogHeader = function(_param) {
|
|
1621
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1622
|
+
"className"
|
|
1623
|
+
]);
|
|
1624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", _object_spread({
|
|
1625
|
+
className: cn("flex flex-col space-y-1.5 text-center sm:text-left text-foreground", className, "alq--dialog-header")
|
|
1626
|
+
}, props));
|
|
1627
|
+
};
|
|
1218
1628
|
DialogHeader.displayName = "DialogHeader";
|
|
1219
|
-
var DialogFooter = ({
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
className
|
|
1228
|
-
),
|
|
1229
|
-
...props
|
|
1230
|
-
}
|
|
1231
|
-
);
|
|
1629
|
+
var DialogFooter = function(_param) {
|
|
1630
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1631
|
+
"className"
|
|
1632
|
+
]);
|
|
1633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", _object_spread({
|
|
1634
|
+
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
1635
|
+
}, props));
|
|
1636
|
+
};
|
|
1232
1637
|
DialogFooter.displayName = "DialogFooter";
|
|
1233
|
-
var DialogTitle = React19.forwardRef((
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
...props
|
|
1243
|
-
}
|
|
1244
|
-
));
|
|
1638
|
+
var DialogTitle = React19.forwardRef(function(_param, ref) {
|
|
1639
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1640
|
+
"className"
|
|
1641
|
+
]);
|
|
1642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogPrimitive.Title, _object_spread({
|
|
1643
|
+
ref: ref,
|
|
1644
|
+
className: cn("text-lg font-semibold leading-none tracking-tight text-foreground", className, "alq--dialog-title")
|
|
1645
|
+
}, props));
|
|
1646
|
+
});
|
|
1245
1647
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1246
|
-
var DialogDescription = React19.forwardRef((
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
));
|
|
1648
|
+
var DialogDescription = React19.forwardRef(function(_param, ref) {
|
|
1649
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1650
|
+
"className"
|
|
1651
|
+
]);
|
|
1652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogPrimitive.Description, _object_spread({
|
|
1653
|
+
ref: ref,
|
|
1654
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
1655
|
+
}, props));
|
|
1656
|
+
});
|
|
1254
1657
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1255
|
-
|
|
1256
1658
|
// src/components/atoms/ui/command.tsx
|
|
1257
1659
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1258
|
-
var Command = React20.forwardRef((
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
)
|
|
1266
|
-
|
|
1267
|
-
}
|
|
1268
|
-
));
|
|
1660
|
+
var Command = React20.forwardRef(function(_param, ref) {
|
|
1661
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1662
|
+
"className"
|
|
1663
|
+
]);
|
|
1664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command, _object_spread({
|
|
1665
|
+
ref: ref,
|
|
1666
|
+
className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className)
|
|
1667
|
+
}, props));
|
|
1668
|
+
});
|
|
1269
1669
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1270
|
-
var CommandDialog = (
|
|
1271
|
-
|
|
1670
|
+
var CommandDialog = function(_param) {
|
|
1671
|
+
var children = _param.children, props = _object_without_properties(_param, [
|
|
1672
|
+
"children"
|
|
1673
|
+
]);
|
|
1674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Dialog, _object_spread_props(_object_spread({}, props), {
|
|
1675
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogContent, {
|
|
1676
|
+
className: "overflow-hidden p-0 shadow-lg",
|
|
1677
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Command, {
|
|
1678
|
+
className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
1679
|
+
children: children
|
|
1680
|
+
})
|
|
1681
|
+
})
|
|
1682
|
+
}));
|
|
1272
1683
|
};
|
|
1273
|
-
var CommandInput = React20.forwardRef((
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
{
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1684
|
+
var CommandInput = React20.forwardRef(function(_param, ref) {
|
|
1685
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1686
|
+
"className"
|
|
1687
|
+
]);
|
|
1688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", {
|
|
1689
|
+
className: "flex items-center border-b px-3",
|
|
1690
|
+
"cmdk-input-wrapper": "",
|
|
1691
|
+
children: [
|
|
1692
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react5.Search, {
|
|
1693
|
+
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
1694
|
+
}),
|
|
1695
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command.Input, _object_spread({
|
|
1696
|
+
ref: ref,
|
|
1697
|
+
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)
|
|
1698
|
+
}, props))
|
|
1699
|
+
]
|
|
1700
|
+
});
|
|
1701
|
+
});
|
|
1287
1702
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1288
|
-
var CommandList = React20.forwardRef((
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
));
|
|
1703
|
+
var CommandList = React20.forwardRef(function(_param, ref) {
|
|
1704
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1705
|
+
"className"
|
|
1706
|
+
]);
|
|
1707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command.List, _object_spread({
|
|
1708
|
+
ref: ref,
|
|
1709
|
+
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)
|
|
1710
|
+
}, props));
|
|
1711
|
+
});
|
|
1296
1712
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1297
|
-
var CommandEmpty = React20.forwardRef((props, ref)
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1304
|
-
));
|
|
1713
|
+
var CommandEmpty = React20.forwardRef(function(props, ref) {
|
|
1714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command.Empty, _object_spread({
|
|
1715
|
+
ref: ref,
|
|
1716
|
+
className: "py-6 text-center text-sm"
|
|
1717
|
+
}, props));
|
|
1718
|
+
});
|
|
1305
1719
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1306
|
-
var CommandGroup = React20.forwardRef((
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
)
|
|
1314
|
-
|
|
1315
|
-
}
|
|
1316
|
-
));
|
|
1720
|
+
var CommandGroup = React20.forwardRef(function(_param, ref) {
|
|
1721
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1722
|
+
"className"
|
|
1723
|
+
]);
|
|
1724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command.Group, _object_spread({
|
|
1725
|
+
ref: ref,
|
|
1726
|
+
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)
|
|
1727
|
+
}, props));
|
|
1728
|
+
});
|
|
1317
1729
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1318
|
-
var CommandSeparator = React20.forwardRef((
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
));
|
|
1730
|
+
var CommandSeparator = React20.forwardRef(function(_param, ref) {
|
|
1731
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1732
|
+
"className"
|
|
1733
|
+
]);
|
|
1734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command.Separator, _object_spread({
|
|
1735
|
+
ref: ref,
|
|
1736
|
+
className: cn("-mx-1 h-px bg-border", className)
|
|
1737
|
+
}, props));
|
|
1738
|
+
});
|
|
1326
1739
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1327
|
-
var CommandItem = React20.forwardRef((
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
)
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
));
|
|
1740
|
+
var CommandItem = React20.forwardRef(function(_param, ref) {
|
|
1741
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1742
|
+
"className"
|
|
1743
|
+
]);
|
|
1744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_cmdk.Command.Item, _object_spread({
|
|
1745
|
+
ref: ref,
|
|
1746
|
+
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)
|
|
1747
|
+
}, props));
|
|
1748
|
+
});
|
|
1338
1749
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
1339
|
-
var CommandShortcut = ({
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
className: cn(
|
|
1347
|
-
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1348
|
-
className
|
|
1349
|
-
),
|
|
1350
|
-
...props
|
|
1351
|
-
}
|
|
1352
|
-
);
|
|
1750
|
+
var CommandShortcut = function(_param) {
|
|
1751
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1752
|
+
"className"
|
|
1753
|
+
]);
|
|
1754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", _object_spread({
|
|
1755
|
+
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className)
|
|
1756
|
+
}, props));
|
|
1353
1757
|
};
|
|
1354
1758
|
CommandShortcut.displayName = "CommandShortcut";
|
|
1355
|
-
|
|
1356
1759
|
// src/components/atoms/ui/toast.tsx
|
|
1357
1760
|
var React21 = __toESM(require("react"));
|
|
1358
1761
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
@@ -1360,375 +1763,392 @@ var import_class_variance_authority6 = require("class-variance-authority");
|
|
|
1360
1763
|
var import_lucide_react6 = require("lucide-react");
|
|
1361
1764
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1362
1765
|
var ToastProvider = ToastPrimitives.Provider;
|
|
1363
|
-
var ToastViewport = React21.forwardRef((
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
)
|
|
1371
|
-
|
|
1372
|
-
}
|
|
1373
|
-
));
|
|
1766
|
+
var ToastViewport = React21.forwardRef(function(_param, ref) {
|
|
1767
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1768
|
+
"className"
|
|
1769
|
+
]);
|
|
1770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToastPrimitives.Viewport, _object_spread({
|
|
1771
|
+
ref: ref,
|
|
1772
|
+
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)
|
|
1773
|
+
}, props));
|
|
1774
|
+
});
|
|
1374
1775
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1375
|
-
var toastVariants = (0, import_class_variance_authority6.cva)(
|
|
1376
|
-
"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",
|
|
1377
|
-
{
|
|
1776
|
+
var toastVariants = (0, import_class_variance_authority6.cva)("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", {
|
|
1378
1777
|
variants: {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1778
|
+
variant: {
|
|
1779
|
+
default: "border bg-background text-foreground",
|
|
1780
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
1781
|
+
}
|
|
1383
1782
|
},
|
|
1384
1783
|
defaultVariants: {
|
|
1385
|
-
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
);
|
|
1389
|
-
var Toast = React21.forwardRef(({ className, variant, ...props }, ref) => {
|
|
1390
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1391
|
-
ToastPrimitives.Root,
|
|
1392
|
-
{
|
|
1393
|
-
ref,
|
|
1394
|
-
className: cn(toastVariants({ variant }), className),
|
|
1395
|
-
...props
|
|
1784
|
+
variant: "default"
|
|
1396
1785
|
}
|
|
1397
|
-
|
|
1786
|
+
});
|
|
1787
|
+
var Toast = React21.forwardRef(function(_param, ref) {
|
|
1788
|
+
var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
|
|
1789
|
+
"className",
|
|
1790
|
+
"variant"
|
|
1791
|
+
]);
|
|
1792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToastPrimitives.Root, _object_spread({
|
|
1793
|
+
ref: ref,
|
|
1794
|
+
className: cn(toastVariants({
|
|
1795
|
+
variant: variant
|
|
1796
|
+
}), className)
|
|
1797
|
+
}, props));
|
|
1398
1798
|
});
|
|
1399
1799
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1400
|
-
var ToastAction = React21.forwardRef((
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
)
|
|
1408
|
-
|
|
1409
|
-
}
|
|
1410
|
-
));
|
|
1800
|
+
var ToastAction = React21.forwardRef(function(_param, ref) {
|
|
1801
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1802
|
+
"className"
|
|
1803
|
+
]);
|
|
1804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToastPrimitives.Action, _object_spread({
|
|
1805
|
+
ref: ref,
|
|
1806
|
+
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)
|
|
1807
|
+
}, props));
|
|
1808
|
+
});
|
|
1411
1809
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1412
|
-
var ToastClose = React21.forwardRef((
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
));
|
|
1810
|
+
var ToastClose = React21.forwardRef(function(_param, ref) {
|
|
1811
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1812
|
+
"className"
|
|
1813
|
+
]);
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
1815
|
+
ref: ref,
|
|
1816
|
+
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),
|
|
1817
|
+
"toast-close": ""
|
|
1818
|
+
}, props), {
|
|
1819
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react6.X, {
|
|
1820
|
+
className: "h-4 w-4"
|
|
1821
|
+
})
|
|
1822
|
+
}));
|
|
1823
|
+
});
|
|
1425
1824
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1426
|
-
var ToastTitle = React21.forwardRef((
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
));
|
|
1825
|
+
var ToastTitle = React21.forwardRef(function(_param, ref) {
|
|
1826
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1827
|
+
"className"
|
|
1828
|
+
]);
|
|
1829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToastPrimitives.Title, _object_spread({
|
|
1830
|
+
ref: ref,
|
|
1831
|
+
className: cn("text-sm font-semibold", className)
|
|
1832
|
+
}, props));
|
|
1833
|
+
});
|
|
1434
1834
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1435
|
-
var ToastDescription = React21.forwardRef((
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
));
|
|
1835
|
+
var ToastDescription = React21.forwardRef(function(_param, ref) {
|
|
1836
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1837
|
+
"className"
|
|
1838
|
+
]);
|
|
1839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToastPrimitives.Description, _object_spread({
|
|
1840
|
+
ref: ref,
|
|
1841
|
+
className: cn("text-sm opacity-90", className)
|
|
1842
|
+
}, props));
|
|
1843
|
+
});
|
|
1443
1844
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1444
|
-
|
|
1445
1845
|
// src/components/atoms/ui/loader.tsx
|
|
1446
1846
|
var React22 = __toESM(require("react"));
|
|
1447
1847
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
1448
1848
|
var import_lucide_react7 = require("lucide-react");
|
|
1449
1849
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1450
|
-
var loaderVariants = (0, import_class_variance_authority7.cva)(
|
|
1451
|
-
"flex justify-center items-center w-full",
|
|
1452
|
-
{
|
|
1850
|
+
var loaderVariants = (0, import_class_variance_authority7.cva)("flex justify-center items-center w-full", {
|
|
1453
1851
|
variants: {
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1852
|
+
size: {
|
|
1853
|
+
small: "h-6 w-6",
|
|
1854
|
+
medium: "h-8 w-8",
|
|
1855
|
+
large: "h-12 w-12",
|
|
1856
|
+
xl: "h-24 w-24"
|
|
1857
|
+
},
|
|
1858
|
+
colorVariant: {
|
|
1859
|
+
default: "text-primary",
|
|
1860
|
+
primary: "text-primary",
|
|
1861
|
+
secondary: "text-secondary",
|
|
1862
|
+
destructive: "text-destructive"
|
|
1863
|
+
}
|
|
1466
1864
|
},
|
|
1467
1865
|
defaultVariants: {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
);
|
|
1473
|
-
var Loader = React22.forwardRef(
|
|
1474
|
-
({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1475
|
-
"div",
|
|
1476
|
-
{
|
|
1477
|
-
ref,
|
|
1478
|
-
className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
|
|
1479
|
-
...props,
|
|
1480
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.Loader2, { className: "animate-spin" })
|
|
1866
|
+
size: "medium",
|
|
1867
|
+
colorVariant: "default"
|
|
1481
1868
|
}
|
|
1482
|
-
|
|
1483
|
-
)
|
|
1869
|
+
});
|
|
1870
|
+
var Loader = React22.forwardRef(function(_param, ref) {
|
|
1871
|
+
var className = _param.className, size = _param.size, colorVariant = _param.colorVariant, props = _object_without_properties(_param, [
|
|
1872
|
+
"className",
|
|
1873
|
+
"size",
|
|
1874
|
+
"colorVariant"
|
|
1875
|
+
]);
|
|
1876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", _object_spread_props(_object_spread({
|
|
1877
|
+
ref: ref,
|
|
1878
|
+
className: cn(loaderVariants({
|
|
1879
|
+
size: size,
|
|
1880
|
+
colorVariant: colorVariant
|
|
1881
|
+
}), "flex justify-center items-center h-full w-full", className)
|
|
1882
|
+
}, props), {
|
|
1883
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.Loader2, {
|
|
1884
|
+
className: "animate-spin"
|
|
1885
|
+
})
|
|
1886
|
+
}));
|
|
1887
|
+
});
|
|
1484
1888
|
Loader.displayName = "Loader";
|
|
1485
|
-
|
|
1486
1889
|
// src/components/atoms/ui/separator.tsx
|
|
1487
1890
|
var React23 = __toESM(require("react"));
|
|
1488
1891
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
1489
1892
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1490
|
-
var Separator2 = React23.forwardRef((
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
)
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1504
|
-
));
|
|
1893
|
+
var Separator2 = React23.forwardRef(function(_param, ref) {
|
|
1894
|
+
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, [
|
|
1895
|
+
"className",
|
|
1896
|
+
"orientation",
|
|
1897
|
+
"decorative"
|
|
1898
|
+
]);
|
|
1899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SeparatorPrimitive.Root, _object_spread({
|
|
1900
|
+
ref: ref,
|
|
1901
|
+
decorative: decorative,
|
|
1902
|
+
orientation: orientation,
|
|
1903
|
+
className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className, "alq--separator")
|
|
1904
|
+
}, props));
|
|
1905
|
+
});
|
|
1505
1906
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1506
|
-
|
|
1507
1907
|
// src/components/hooks/use-toast.ts
|
|
1508
1908
|
var React24 = __toESM(require("react"));
|
|
1509
1909
|
var TOAST_LIMIT = 1;
|
|
1510
1910
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
1511
1911
|
var count = 0;
|
|
1512
1912
|
function genId() {
|
|
1513
|
-
|
|
1514
|
-
|
|
1913
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
1914
|
+
return count.toString();
|
|
1515
1915
|
}
|
|
1516
1916
|
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
1517
|
-
var addToRemoveQueue = (toastId)
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
});
|
|
1527
|
-
}, TOAST_REMOVE_DELAY);
|
|
1528
|
-
toastTimeouts.set(toastId, timeout);
|
|
1529
|
-
};
|
|
1530
|
-
var reducer = (state, action) => {
|
|
1531
|
-
switch (action.type) {
|
|
1532
|
-
case "ADD_TOAST":
|
|
1533
|
-
return {
|
|
1534
|
-
...state,
|
|
1535
|
-
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
1536
|
-
};
|
|
1537
|
-
case "UPDATE_TOAST":
|
|
1538
|
-
return {
|
|
1539
|
-
...state,
|
|
1540
|
-
toasts: state.toasts.map(
|
|
1541
|
-
(t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
|
|
1542
|
-
)
|
|
1543
|
-
};
|
|
1544
|
-
case "DISMISS_TOAST": {
|
|
1545
|
-
const { toastId } = action;
|
|
1546
|
-
if (toastId) {
|
|
1547
|
-
addToRemoveQueue(toastId);
|
|
1548
|
-
} else {
|
|
1549
|
-
state.toasts.forEach((toast2) => {
|
|
1550
|
-
addToRemoveQueue(toast2.id);
|
|
1917
|
+
var addToRemoveQueue = function(toastId) {
|
|
1918
|
+
if (toastTimeouts.has(toastId)) {
|
|
1919
|
+
return;
|
|
1920
|
+
}
|
|
1921
|
+
var timeout = setTimeout(function() {
|
|
1922
|
+
toastTimeouts.delete(toastId);
|
|
1923
|
+
dispatch({
|
|
1924
|
+
type: "REMOVE_TOAST",
|
|
1925
|
+
toastId: toastId
|
|
1551
1926
|
});
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1927
|
+
}, TOAST_REMOVE_DELAY);
|
|
1928
|
+
toastTimeouts.set(toastId, timeout);
|
|
1929
|
+
};
|
|
1930
|
+
var reducer = function(state, action) {
|
|
1931
|
+
switch(action.type){
|
|
1932
|
+
case "ADD_TOAST":
|
|
1933
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
1934
|
+
toasts: [
|
|
1935
|
+
action.toast
|
|
1936
|
+
].concat(_to_consumable_array(state.toasts)).slice(0, TOAST_LIMIT)
|
|
1937
|
+
});
|
|
1938
|
+
case "UPDATE_TOAST":
|
|
1939
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
1940
|
+
toasts: state.toasts.map(function(t) {
|
|
1941
|
+
return t.id === action.toast.id ? _object_spread({}, t, action.toast) : t;
|
|
1942
|
+
})
|
|
1943
|
+
});
|
|
1944
|
+
case "DISMISS_TOAST":
|
|
1945
|
+
{
|
|
1946
|
+
var toastId = action.toastId;
|
|
1947
|
+
if (toastId) {
|
|
1948
|
+
addToRemoveQueue(toastId);
|
|
1949
|
+
} else {
|
|
1950
|
+
state.toasts.forEach(function(toast2) {
|
|
1951
|
+
addToRemoveQueue(toast2.id);
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
1955
|
+
toasts: state.toasts.map(function(t) {
|
|
1956
|
+
return t.id === toastId || toastId === void 0 ? _object_spread_props(_object_spread({}, t), {
|
|
1957
|
+
open: false
|
|
1958
|
+
}) : t;
|
|
1959
|
+
})
|
|
1960
|
+
});
|
|
1961
|
+
}
|
|
1962
|
+
case "REMOVE_TOAST":
|
|
1963
|
+
if (action.toastId === void 0) {
|
|
1964
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
1965
|
+
toasts: []
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
1969
|
+
toasts: state.toasts.filter(function(t) {
|
|
1970
|
+
return t.id !== action.toastId;
|
|
1971
|
+
})
|
|
1972
|
+
});
|
|
1562
1973
|
}
|
|
1563
|
-
case "REMOVE_TOAST":
|
|
1564
|
-
if (action.toastId === void 0) {
|
|
1565
|
-
return {
|
|
1566
|
-
...state,
|
|
1567
|
-
toasts: []
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
return {
|
|
1571
|
-
...state,
|
|
1572
|
-
toasts: state.toasts.filter((t) => t.id !== action.toastId)
|
|
1573
|
-
};
|
|
1574
|
-
}
|
|
1575
1974
|
};
|
|
1576
1975
|
var listeners = [];
|
|
1577
|
-
var memoryState = {
|
|
1976
|
+
var memoryState = {
|
|
1977
|
+
toasts: []
|
|
1978
|
+
};
|
|
1578
1979
|
function dispatch(action) {
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1980
|
+
memoryState = reducer(memoryState, action);
|
|
1981
|
+
listeners.forEach(function(listener) {
|
|
1982
|
+
listener(memoryState);
|
|
1983
|
+
});
|
|
1583
1984
|
}
|
|
1584
|
-
function toast(
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1985
|
+
function toast(_param) {
|
|
1986
|
+
var props = _extends({}, _object_destructuring_empty(_param));
|
|
1987
|
+
var id = genId();
|
|
1988
|
+
var update = function(props2) {
|
|
1989
|
+
return dispatch({
|
|
1990
|
+
type: "UPDATE_TOAST",
|
|
1991
|
+
toast: _object_spread_props(_object_spread({}, props2), {
|
|
1992
|
+
id: id
|
|
1993
|
+
})
|
|
1994
|
+
});
|
|
1995
|
+
};
|
|
1996
|
+
var dismiss = function() {
|
|
1997
|
+
return dispatch({
|
|
1998
|
+
type: "DISMISS_TOAST",
|
|
1999
|
+
toastId: id
|
|
2000
|
+
});
|
|
2001
|
+
};
|
|
2002
|
+
dispatch({
|
|
2003
|
+
type: "ADD_TOAST",
|
|
2004
|
+
toast: _object_spread_props(_object_spread({}, props), {
|
|
2005
|
+
id: id,
|
|
2006
|
+
open: true,
|
|
2007
|
+
onOpenChange: function(open) {
|
|
2008
|
+
if (!open) dismiss();
|
|
2009
|
+
}
|
|
2010
|
+
})
|
|
2011
|
+
});
|
|
2012
|
+
return {
|
|
2013
|
+
id: id,
|
|
2014
|
+
dismiss: dismiss,
|
|
2015
|
+
update: update
|
|
2016
|
+
};
|
|
1607
2017
|
}
|
|
1608
2018
|
function useToast() {
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
2019
|
+
var _React24_useState = _sliced_to_array(React24.useState(memoryState), 2), state = _React24_useState[0], setState = _React24_useState[1];
|
|
2020
|
+
React24.useEffect(function() {
|
|
2021
|
+
listeners.push(setState);
|
|
2022
|
+
return function() {
|
|
2023
|
+
var index = listeners.indexOf(setState);
|
|
2024
|
+
if (index > -1) {
|
|
2025
|
+
listeners.splice(index, 1);
|
|
2026
|
+
}
|
|
2027
|
+
};
|
|
2028
|
+
}, [
|
|
2029
|
+
state
|
|
2030
|
+
]);
|
|
2031
|
+
return _object_spread_props(_object_spread({}, state), {
|
|
2032
|
+
toast: toast,
|
|
2033
|
+
dismiss: function(toastId) {
|
|
2034
|
+
return dispatch({
|
|
2035
|
+
type: "DISMISS_TOAST",
|
|
2036
|
+
toastId: toastId
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
1624
2040
|
}
|
|
1625
|
-
|
|
1626
2041
|
// src/components/atoms/ui/toaster.tsx
|
|
1627
2042
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1628
2043
|
function Toaster() {
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
2044
|
+
var toasts = useToast().toasts;
|
|
2045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ToastProvider, {
|
|
2046
|
+
children: [
|
|
2047
|
+
toasts.map(function(_param) {
|
|
2048
|
+
var id = _param.id, title = _param.title, description = _param.description, action = _param.action, props = _object_without_properties(_param, [
|
|
2049
|
+
"id",
|
|
2050
|
+
"title",
|
|
2051
|
+
"description",
|
|
2052
|
+
"action"
|
|
2053
|
+
]);
|
|
2054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Toast, _object_spread_props(_object_spread({}, props), {
|
|
2055
|
+
children: [
|
|
2056
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", {
|
|
2057
|
+
className: "grid gap-1",
|
|
2058
|
+
children: [
|
|
2059
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastTitle, {
|
|
2060
|
+
children: title
|
|
2061
|
+
}),
|
|
2062
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastDescription, {
|
|
2063
|
+
children: description
|
|
2064
|
+
})
|
|
2065
|
+
]
|
|
2066
|
+
}),
|
|
2067
|
+
action,
|
|
2068
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastClose, {})
|
|
2069
|
+
]
|
|
2070
|
+
}), id);
|
|
2071
|
+
}),
|
|
2072
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastViewport, {})
|
|
2073
|
+
]
|
|
2074
|
+
});
|
|
1643
2075
|
}
|
|
1644
|
-
|
|
1645
2076
|
// src/components/atoms/ui/think-indicator.tsx
|
|
1646
2077
|
var React25 = __toESM(require("react"));
|
|
1647
2078
|
var import_react3 = require("react");
|
|
1648
2079
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1649
2080
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1650
|
-
var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
|
|
1651
|
-
"flex items-center gap-3",
|
|
1652
|
-
{
|
|
2081
|
+
var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)("flex items-center gap-3", {
|
|
1653
2082
|
variants: {
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
2083
|
+
variant: {
|
|
2084
|
+
default: "text-muted-foreground",
|
|
2085
|
+
primary: "text-primary",
|
|
2086
|
+
secondary: "text-secondary"
|
|
2087
|
+
},
|
|
2088
|
+
size: {
|
|
2089
|
+
default: "gap-3",
|
|
2090
|
+
sm: "gap-2",
|
|
2091
|
+
lg: "gap-4"
|
|
2092
|
+
}
|
|
1664
2093
|
},
|
|
1665
2094
|
defaultVariants: {
|
|
1666
|
-
|
|
1667
|
-
|
|
2095
|
+
variant: "default",
|
|
2096
|
+
size: "default"
|
|
1668
2097
|
}
|
|
1669
|
-
|
|
1670
|
-
)
|
|
1671
|
-
var
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
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
|
-
|
|
2098
|
+
});
|
|
2099
|
+
var ThinkIndicator = React25.forwardRef(function(_param, ref) {
|
|
2100
|
+
var className = _param.className, variant = _param.variant, size = _param.size, _param_thoughts = _param.thoughts, thoughts = _param_thoughts === void 0 ? [
|
|
2101
|
+
"Analyzing your request...",
|
|
2102
|
+
"Processing information...",
|
|
2103
|
+
"Formulating response..."
|
|
2104
|
+
] : _param_thoughts, _param_interval = _param.interval, interval = _param_interval === void 0 ? 5e3 : _param_interval, loader = _param.loader, props = _object_without_properties(_param, [
|
|
2105
|
+
"className",
|
|
2106
|
+
"variant",
|
|
2107
|
+
"size",
|
|
2108
|
+
"thoughts",
|
|
2109
|
+
"interval",
|
|
2110
|
+
"loader"
|
|
2111
|
+
]);
|
|
2112
|
+
var _ref = _sliced_to_array((0, import_react3.useState)(0), 2), currentThoughtIndex = _ref[0], setCurrentThoughtIndex = _ref[1];
|
|
2113
|
+
var _ref1 = _sliced_to_array((0, import_react3.useState)(false), 2), isAnimating = _ref1[0], setIsAnimating = _ref1[1];
|
|
2114
|
+
(0, import_react3.useEffect)(function() {
|
|
2115
|
+
var timer = setInterval(function() {
|
|
2116
|
+
setIsAnimating(true);
|
|
2117
|
+
setTimeout(function() {
|
|
2118
|
+
setCurrentThoughtIndex(function(prev) {
|
|
2119
|
+
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
2120
|
+
});
|
|
2121
|
+
setIsAnimating(false);
|
|
2122
|
+
}, 300);
|
|
2123
|
+
}, interval);
|
|
2124
|
+
if (currentThoughtIndex === thoughts.length - 1) {
|
|
2125
|
+
clearInterval(timer);
|
|
2126
|
+
}
|
|
2127
|
+
return function() {
|
|
2128
|
+
return clearInterval(timer);
|
|
2129
|
+
};
|
|
2130
|
+
}, [
|
|
2131
|
+
thoughts,
|
|
2132
|
+
interval,
|
|
2133
|
+
currentThoughtIndex
|
|
2134
|
+
]);
|
|
2135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", _object_spread_props(_object_spread({
|
|
2136
|
+
ref: ref,
|
|
2137
|
+
className: cn(thinkIndicatorVariants({
|
|
2138
|
+
variant: variant,
|
|
2139
|
+
size: size
|
|
2140
|
+
}), className, "alq--think-indicator")
|
|
2141
|
+
}, props), {
|
|
1708
2142
|
children: [
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
}
|
|
1716
|
-
),
|
|
1717
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1718
|
-
"div",
|
|
1719
|
-
{
|
|
1720
|
-
className: cn(
|
|
1721
|
-
"alq--think-indicator-text",
|
|
1722
|
-
"transition-all duration-300",
|
|
1723
|
-
isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
|
|
1724
|
-
),
|
|
1725
|
-
children: thoughts[currentThoughtIndex]
|
|
1726
|
-
}
|
|
1727
|
-
)
|
|
2143
|
+
loader || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Loader, {
|
|
2144
|
+
className: cn(size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4")
|
|
2145
|
+
}),
|
|
2146
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", {
|
|
2147
|
+
className: cn("alq--think-indicator-text", "transition-all duration-300", isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"),
|
|
2148
|
+
children: thoughts[currentThoughtIndex]
|
|
2149
|
+
})
|
|
1728
2150
|
]
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
}
|
|
1732
|
-
);
|
|
2151
|
+
}));
|
|
2152
|
+
});
|
|
1733
2153
|
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1734
2154
|
//# sourceMappingURL=index.js.map
|