@geowiki/design-system 0.16.9-dev.22 → 0.16.9-dev.24
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/index.js +310 -713
- package/dist/index.mjs +186 -585
- package/dist/styles.css +1 -1
- package/package.json +5 -4
package/dist/index.mjs
CHANGED
|
@@ -1192,434 +1192,23 @@ var DropdownMenuShortcut = (_a) => {
|
|
|
1192
1192
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1193
1193
|
|
|
1194
1194
|
// src/components/ui/form.tsx
|
|
1195
|
-
import * as
|
|
1195
|
+
import * as React13 from "react";
|
|
1196
1196
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
var isNullOrUndefined = (value) => value == null;
|
|
1203
|
-
var isObjectType = (value) => typeof value === "object";
|
|
1204
|
-
var isObject = (value) => !isNullOrUndefined(value) && !Array.isArray(value) && isObjectType(value) && !isDateObject(value);
|
|
1205
|
-
var getEventValue = (event) => isObject(event) && event.target ? isCheckBoxInput(event.target) ? event.target.checked : event.target.value : event;
|
|
1206
|
-
var getFieldArrayParentNames = (names, name) => {
|
|
1207
|
-
const parts = name.split(".");
|
|
1208
|
-
const matches = [];
|
|
1209
|
-
let prefix = parts[0];
|
|
1210
|
-
for (let i = 1; i < parts.length; prefix += "." + parts[i++]) {
|
|
1211
|
-
!isNaN(+parts[i]) && names.has(prefix) && matches.push(prefix);
|
|
1212
|
-
}
|
|
1213
|
-
return matches;
|
|
1214
|
-
};
|
|
1215
|
-
var isPlainObject = (tempObject) => {
|
|
1216
|
-
const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
|
|
1217
|
-
return isObject(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
|
|
1218
|
-
};
|
|
1219
|
-
var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
|
|
1220
|
-
function cloneObject(data) {
|
|
1221
|
-
if (data instanceof Date) {
|
|
1222
|
-
return new Date(data);
|
|
1223
|
-
}
|
|
1224
|
-
const isFileListInstance = typeof FileList !== "undefined" && data instanceof FileList;
|
|
1225
|
-
if (isWeb && (data instanceof Blob || isFileListInstance)) {
|
|
1226
|
-
return data;
|
|
1227
|
-
}
|
|
1228
|
-
const isArray = Array.isArray(data);
|
|
1229
|
-
if (!isArray && !(isObject(data) && isPlainObject(data))) {
|
|
1230
|
-
return data;
|
|
1231
|
-
}
|
|
1232
|
-
const copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
|
|
1233
|
-
for (const key in data) {
|
|
1234
|
-
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
1235
|
-
copy[key] = cloneObject(data[key]);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
return copy;
|
|
1239
|
-
}
|
|
1240
|
-
var isKey = (value) => /^\w*$/.test(value);
|
|
1241
|
-
var isUndefined = (val) => val === void 0;
|
|
1242
|
-
var compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];
|
|
1243
|
-
var stringToPath = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
|
|
1244
|
-
var get = (object, path, defaultValue) => {
|
|
1245
|
-
if (!path || !isObject(object)) {
|
|
1246
|
-
return defaultValue;
|
|
1247
|
-
}
|
|
1248
|
-
const paths = isKey(path) ? [path] : stringToPath(path);
|
|
1249
|
-
const result = paths.reduce((result2, key) => {
|
|
1250
|
-
return isNullOrUndefined(result2) ? void 0 : result2[key];
|
|
1251
|
-
}, object);
|
|
1252
|
-
return isUndefined(result) || result === object ? isUndefined(object[path]) ? defaultValue : object[path] : result;
|
|
1253
|
-
};
|
|
1254
|
-
var isBoolean = (value) => typeof value === "boolean";
|
|
1255
|
-
var isFunction = (value) => typeof value === "function";
|
|
1256
|
-
var set = (object, path, value) => {
|
|
1257
|
-
let index = -1;
|
|
1258
|
-
const tempPath = isKey(path) ? [path] : stringToPath(path);
|
|
1259
|
-
const length = tempPath.length;
|
|
1260
|
-
const lastIndex = length - 1;
|
|
1261
|
-
while (++index < length) {
|
|
1262
|
-
const key = tempPath[index];
|
|
1263
|
-
let newValue = value;
|
|
1264
|
-
if (index !== lastIndex) {
|
|
1265
|
-
const objValue = object[key];
|
|
1266
|
-
newValue = isObject(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
|
|
1267
|
-
}
|
|
1268
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
1269
|
-
return;
|
|
1270
|
-
}
|
|
1271
|
-
object[key] = newValue;
|
|
1272
|
-
object = object[key];
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
|
-
var EVENTS = {
|
|
1276
|
-
BLUR: "blur",
|
|
1277
|
-
FOCUS_OUT: "focusout",
|
|
1278
|
-
CHANGE: "change",
|
|
1279
|
-
SUBMIT: "submit",
|
|
1280
|
-
TRIGGER: "trigger",
|
|
1281
|
-
VALID: "valid"
|
|
1282
|
-
};
|
|
1283
|
-
var VALIDATION_MODE = {
|
|
1284
|
-
onBlur: "onBlur",
|
|
1285
|
-
onChange: "onChange",
|
|
1286
|
-
onSubmit: "onSubmit",
|
|
1287
|
-
onTouched: "onTouched",
|
|
1288
|
-
all: "all"
|
|
1289
|
-
};
|
|
1290
|
-
var HookFormControlContext = React12.createContext(null);
|
|
1291
|
-
HookFormControlContext.displayName = "HookFormControlContext";
|
|
1292
|
-
var useFormControlContext = () => React12.useContext(HookFormControlContext);
|
|
1293
|
-
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
1294
|
-
const result = {};
|
|
1295
|
-
for (const key in formState) {
|
|
1296
|
-
Object.defineProperty(result, key, {
|
|
1297
|
-
get: () => {
|
|
1298
|
-
const _key = key;
|
|
1299
|
-
if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {
|
|
1300
|
-
control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;
|
|
1301
|
-
}
|
|
1302
|
-
localProxyFormState && (localProxyFormState[_key] = true);
|
|
1303
|
-
return formState[_key];
|
|
1304
|
-
}
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
return result;
|
|
1308
|
-
};
|
|
1309
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React12.useLayoutEffect : React12.useEffect;
|
|
1310
|
-
function useFormState(props) {
|
|
1311
|
-
const formControl = useFormControlContext();
|
|
1312
|
-
const { control = formControl, disabled, name, exact } = props || {};
|
|
1313
|
-
const [formState, updateFormState] = React12.useState(() => __spreadProps(__spreadValues({}, control._formState), {
|
|
1314
|
-
defaultValues: control._defaultValues
|
|
1315
|
-
}));
|
|
1316
|
-
const _localProxyFormState = React12.useRef({
|
|
1317
|
-
isDirty: false,
|
|
1318
|
-
isLoading: false,
|
|
1319
|
-
dirtyFields: false,
|
|
1320
|
-
touchedFields: false,
|
|
1321
|
-
validatingFields: false,
|
|
1322
|
-
isValidating: false,
|
|
1323
|
-
isValid: false,
|
|
1324
|
-
errors: false
|
|
1325
|
-
});
|
|
1326
|
-
useIsomorphicLayoutEffect(() => control._subscribe({
|
|
1327
|
-
name,
|
|
1328
|
-
formState: _localProxyFormState.current,
|
|
1329
|
-
exact,
|
|
1330
|
-
callback: (formState2) => {
|
|
1331
|
-
!disabled && updateFormState(__spreadProps(__spreadValues(__spreadValues({}, control._formState), formState2), {
|
|
1332
|
-
defaultValues: control._defaultValues
|
|
1333
|
-
}));
|
|
1334
|
-
}
|
|
1335
|
-
}), [name, disabled, exact]);
|
|
1336
|
-
React12.useEffect(() => {
|
|
1337
|
-
_localProxyFormState.current.isValid && control._setValid(true);
|
|
1338
|
-
}, [control]);
|
|
1339
|
-
return React12.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);
|
|
1340
|
-
}
|
|
1341
|
-
var isString = (value) => typeof value === "string";
|
|
1342
|
-
var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
|
|
1343
|
-
if (isString(names)) {
|
|
1344
|
-
isGlobal && _names.watch.add(names);
|
|
1345
|
-
return get(formValues, names, defaultValue);
|
|
1346
|
-
}
|
|
1347
|
-
if (Array.isArray(names)) {
|
|
1348
|
-
return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));
|
|
1349
|
-
}
|
|
1350
|
-
isGlobal && (_names.watchAll = true);
|
|
1351
|
-
return formValues;
|
|
1352
|
-
};
|
|
1353
|
-
var isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);
|
|
1354
|
-
function deepEqual(object1, object2, visited = /* @__PURE__ */ new WeakSet()) {
|
|
1355
|
-
if (object1 === object2) {
|
|
1356
|
-
return true;
|
|
1357
|
-
}
|
|
1358
|
-
if (isPrimitive(object1) || isPrimitive(object2)) {
|
|
1359
|
-
return Object.is(object1, object2);
|
|
1360
|
-
}
|
|
1361
|
-
if (isDateObject(object1) && isDateObject(object2)) {
|
|
1362
|
-
return Object.is(object1.getTime(), object2.getTime());
|
|
1363
|
-
}
|
|
1364
|
-
const keys1 = Object.keys(object1);
|
|
1365
|
-
const keys2 = Object.keys(object2);
|
|
1366
|
-
if (keys1.length !== keys2.length) {
|
|
1367
|
-
return false;
|
|
1368
|
-
}
|
|
1369
|
-
if (visited.has(object1) || visited.has(object2)) {
|
|
1370
|
-
return true;
|
|
1371
|
-
}
|
|
1372
|
-
visited.add(object1);
|
|
1373
|
-
visited.add(object2);
|
|
1374
|
-
for (const key of keys1) {
|
|
1375
|
-
const val1 = object1[key];
|
|
1376
|
-
if (!(key in object2)) {
|
|
1377
|
-
return false;
|
|
1378
|
-
}
|
|
1379
|
-
if (key !== "ref") {
|
|
1380
|
-
const val2 = object2[key];
|
|
1381
|
-
if (isDateObject(val1) && isDateObject(val2) || (isObject(val1) || Array.isArray(val1)) && (isObject(val2) || Array.isArray(val2)) ? !deepEqual(val1, val2, visited) : !Object.is(val1, val2)) {
|
|
1382
|
-
return false;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
return true;
|
|
1387
|
-
}
|
|
1388
|
-
function useWatch(props) {
|
|
1389
|
-
const formControl = useFormControlContext();
|
|
1390
|
-
const { control = formControl, name, defaultValue, disabled, exact, compute } = props || {};
|
|
1391
|
-
const _defaultValue = React12.useRef(defaultValue);
|
|
1392
|
-
const _compute = React12.useRef(compute);
|
|
1393
|
-
const _computeFormValues = React12.useRef(void 0);
|
|
1394
|
-
const _prevControl = React12.useRef(control);
|
|
1395
|
-
const _prevName = React12.useRef(name);
|
|
1396
|
-
_compute.current = compute;
|
|
1397
|
-
const [value, updateValue] = React12.useState(() => {
|
|
1398
|
-
const defaultValue2 = control._getWatch(name, _defaultValue.current);
|
|
1399
|
-
return _compute.current ? _compute.current(defaultValue2) : defaultValue2;
|
|
1400
|
-
});
|
|
1401
|
-
const getCurrentOutput = React12.useCallback((values) => {
|
|
1402
|
-
const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
|
|
1403
|
-
return _compute.current ? _compute.current(formValues) : formValues;
|
|
1404
|
-
}, [control._formValues, control._names, name]);
|
|
1405
|
-
const refreshValue = React12.useCallback((values) => {
|
|
1406
|
-
if (!disabled) {
|
|
1407
|
-
const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
|
|
1408
|
-
if (_compute.current) {
|
|
1409
|
-
const computedFormValues = _compute.current(formValues);
|
|
1410
|
-
if (!deepEqual(computedFormValues, _computeFormValues.current)) {
|
|
1411
|
-
updateValue(computedFormValues);
|
|
1412
|
-
_computeFormValues.current = computedFormValues;
|
|
1413
|
-
}
|
|
1414
|
-
} else {
|
|
1415
|
-
updateValue(formValues);
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
}, [control._formValues, control._names, disabled, name]);
|
|
1419
|
-
useIsomorphicLayoutEffect(() => {
|
|
1420
|
-
if (_prevControl.current !== control || !deepEqual(_prevName.current, name)) {
|
|
1421
|
-
_prevControl.current = control;
|
|
1422
|
-
_prevName.current = name;
|
|
1423
|
-
refreshValue();
|
|
1424
|
-
}
|
|
1425
|
-
return control._subscribe({
|
|
1426
|
-
name,
|
|
1427
|
-
formState: {
|
|
1428
|
-
values: true
|
|
1429
|
-
},
|
|
1430
|
-
exact,
|
|
1431
|
-
callback: (formState) => {
|
|
1432
|
-
refreshValue(formState.values);
|
|
1433
|
-
}
|
|
1434
|
-
});
|
|
1435
|
-
}, [control, exact, name, refreshValue]);
|
|
1436
|
-
React12.useEffect(() => control._removeUnmounted());
|
|
1437
|
-
const controlChanged = _prevControl.current !== control;
|
|
1438
|
-
const prevName = _prevName.current;
|
|
1439
|
-
const computedOutput = React12.useMemo(() => {
|
|
1440
|
-
if (disabled) {
|
|
1441
|
-
return null;
|
|
1442
|
-
}
|
|
1443
|
-
const nameChanged = !controlChanged && !deepEqual(prevName, name);
|
|
1444
|
-
const shouldReturnImmediate = controlChanged || nameChanged;
|
|
1445
|
-
return shouldReturnImmediate ? getCurrentOutput() : null;
|
|
1446
|
-
}, [disabled, controlChanged, name, prevName, getCurrentOutput]);
|
|
1447
|
-
return computedOutput !== null ? computedOutput : value;
|
|
1448
|
-
}
|
|
1449
|
-
function useController(props) {
|
|
1450
|
-
const formControl = useFormControlContext();
|
|
1451
|
-
const { name, disabled, control = formControl, shouldUnregister, defaultValue, exact = true } = props;
|
|
1452
|
-
const isArrayField = !!getFieldArrayParentNames(control._names.array, name).length;
|
|
1453
|
-
const defaultValueMemo = React12.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);
|
|
1454
|
-
const value = useWatch({
|
|
1455
|
-
control,
|
|
1456
|
-
name,
|
|
1457
|
-
defaultValue: defaultValueMemo,
|
|
1458
|
-
exact
|
|
1459
|
-
});
|
|
1460
|
-
const formState = useFormState({
|
|
1461
|
-
control,
|
|
1462
|
-
name,
|
|
1463
|
-
exact
|
|
1464
|
-
});
|
|
1465
|
-
const _props = React12.useRef(props);
|
|
1466
|
-
const _registerProps = React12.useRef(control.register(name, __spreadValues(__spreadProps(__spreadValues({}, props.rules), {
|
|
1467
|
-
value
|
|
1468
|
-
}), isBoolean(props.disabled) ? { disabled: props.disabled } : {})));
|
|
1469
|
-
_props.current = props;
|
|
1470
|
-
const fieldState = React12.useMemo(() => Object.defineProperties({}, {
|
|
1471
|
-
invalid: {
|
|
1472
|
-
enumerable: true,
|
|
1473
|
-
get: () => !!get(formState.errors, name)
|
|
1474
|
-
},
|
|
1475
|
-
isDirty: {
|
|
1476
|
-
enumerable: true,
|
|
1477
|
-
get: () => !!get(formState.dirtyFields, name)
|
|
1478
|
-
},
|
|
1479
|
-
isTouched: {
|
|
1480
|
-
enumerable: true,
|
|
1481
|
-
get: () => !!get(formState.touchedFields, name)
|
|
1482
|
-
},
|
|
1483
|
-
isValidating: {
|
|
1484
|
-
enumerable: true,
|
|
1485
|
-
get: () => !!get(formState.validatingFields, name)
|
|
1486
|
-
},
|
|
1487
|
-
error: {
|
|
1488
|
-
enumerable: true,
|
|
1489
|
-
get: () => get(formState.errors, name)
|
|
1490
|
-
}
|
|
1491
|
-
}), [formState, name]);
|
|
1492
|
-
const onChange = React12.useCallback((event) => _registerProps.current.onChange({
|
|
1493
|
-
target: {
|
|
1494
|
-
value: getEventValue(event),
|
|
1495
|
-
name
|
|
1496
|
-
},
|
|
1497
|
-
type: EVENTS.CHANGE
|
|
1498
|
-
}), [name]);
|
|
1499
|
-
const onBlur = React12.useCallback(() => _registerProps.current.onBlur({
|
|
1500
|
-
target: {
|
|
1501
|
-
value: get(control._formValues, name),
|
|
1502
|
-
name
|
|
1503
|
-
},
|
|
1504
|
-
type: EVENTS.BLUR
|
|
1505
|
-
}), [name, control._formValues]);
|
|
1506
|
-
const ref = React12.useCallback((elm) => {
|
|
1507
|
-
const field2 = get(control._fields, name);
|
|
1508
|
-
if (field2 && field2._f && elm) {
|
|
1509
|
-
field2._f.ref = {
|
|
1510
|
-
focus: () => isFunction(elm.focus) && elm.focus(),
|
|
1511
|
-
select: () => isFunction(elm.select) && elm.select(),
|
|
1512
|
-
setCustomValidity: (message) => isFunction(elm.setCustomValidity) && elm.setCustomValidity(message),
|
|
1513
|
-
reportValidity: () => isFunction(elm.reportValidity) && elm.reportValidity()
|
|
1514
|
-
};
|
|
1515
|
-
}
|
|
1516
|
-
}, [control._fields, name]);
|
|
1517
|
-
const field = React12.useMemo(() => __spreadProps(__spreadValues({
|
|
1518
|
-
name,
|
|
1519
|
-
value
|
|
1520
|
-
}, isBoolean(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {}), {
|
|
1521
|
-
onChange,
|
|
1522
|
-
onBlur,
|
|
1523
|
-
ref
|
|
1524
|
-
}), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);
|
|
1525
|
-
React12.useEffect(() => {
|
|
1526
|
-
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
1527
|
-
control.register(name, __spreadValues(__spreadValues({}, _props.current.rules), isBoolean(_props.current.disabled) ? { disabled: _props.current.disabled } : {}));
|
|
1528
|
-
const updateMounted = (name2, value2) => {
|
|
1529
|
-
const field2 = get(control._fields, name2);
|
|
1530
|
-
if (field2 && field2._f) {
|
|
1531
|
-
field2._f.mount = value2;
|
|
1532
|
-
}
|
|
1533
|
-
};
|
|
1534
|
-
updateMounted(name, true);
|
|
1535
|
-
if (_shouldUnregisterField) {
|
|
1536
|
-
const value2 = cloneObject(get(control._defaultValues, name, get(control._options.defaultValues, name, _props.current.defaultValue)));
|
|
1537
|
-
set(control._defaultValues, name, value2);
|
|
1538
|
-
if (isUndefined(get(control._formValues, name))) {
|
|
1539
|
-
set(control._formValues, name, value2);
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
!isArrayField && control.register(name);
|
|
1543
|
-
return () => {
|
|
1544
|
-
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
1545
|
-
};
|
|
1546
|
-
}, [name, control, isArrayField, shouldUnregister]);
|
|
1547
|
-
React12.useEffect(() => {
|
|
1548
|
-
control._setDisabledField({
|
|
1549
|
-
disabled,
|
|
1550
|
-
name
|
|
1551
|
-
});
|
|
1552
|
-
}, [disabled, name, control]);
|
|
1553
|
-
return React12.useMemo(() => ({
|
|
1554
|
-
field,
|
|
1555
|
-
formState,
|
|
1556
|
-
fieldState
|
|
1557
|
-
}), [field, formState, fieldState]);
|
|
1558
|
-
}
|
|
1559
|
-
var Controller = (props) => props.render(useController(props));
|
|
1560
|
-
var HookFormContext = React12.createContext(null);
|
|
1561
|
-
HookFormContext.displayName = "HookFormContext";
|
|
1562
|
-
var useFormContext = () => React12.useContext(HookFormContext);
|
|
1563
|
-
var FormProvider = (props) => {
|
|
1564
|
-
const { children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe } = props;
|
|
1565
|
-
const memoizedValue = React12.useMemo(() => ({
|
|
1566
|
-
watch,
|
|
1567
|
-
getValues,
|
|
1568
|
-
getFieldState,
|
|
1569
|
-
setError,
|
|
1570
|
-
clearErrors,
|
|
1571
|
-
setValue,
|
|
1572
|
-
setValues,
|
|
1573
|
-
trigger,
|
|
1574
|
-
formState,
|
|
1575
|
-
resetField,
|
|
1576
|
-
reset,
|
|
1577
|
-
handleSubmit,
|
|
1578
|
-
unregister,
|
|
1579
|
-
control,
|
|
1580
|
-
register,
|
|
1581
|
-
setFocus,
|
|
1582
|
-
subscribe
|
|
1583
|
-
}), [
|
|
1584
|
-
clearErrors,
|
|
1585
|
-
control,
|
|
1586
|
-
formState,
|
|
1587
|
-
getFieldState,
|
|
1588
|
-
getValues,
|
|
1589
|
-
handleSubmit,
|
|
1590
|
-
register,
|
|
1591
|
-
reset,
|
|
1592
|
-
resetField,
|
|
1593
|
-
setError,
|
|
1594
|
-
setFocus,
|
|
1595
|
-
setValue,
|
|
1596
|
-
setValues,
|
|
1597
|
-
subscribe,
|
|
1598
|
-
trigger,
|
|
1599
|
-
unregister,
|
|
1600
|
-
watch
|
|
1601
|
-
]);
|
|
1602
|
-
return React12.createElement(
|
|
1603
|
-
HookFormContext.Provider,
|
|
1604
|
-
{ value: memoizedValue },
|
|
1605
|
-
React12.createElement(HookFormControlContext.Provider, { value: memoizedValue.control }, children)
|
|
1606
|
-
);
|
|
1607
|
-
};
|
|
1608
|
-
var defaultOptions = {
|
|
1609
|
-
mode: VALIDATION_MODE.onSubmit,
|
|
1610
|
-
reValidateMode: VALIDATION_MODE.onChange,
|
|
1611
|
-
shouldFocusError: true
|
|
1612
|
-
};
|
|
1197
|
+
import {
|
|
1198
|
+
Controller,
|
|
1199
|
+
FormProvider,
|
|
1200
|
+
useFormContext
|
|
1201
|
+
} from "react-hook-form";
|
|
1613
1202
|
|
|
1614
1203
|
// src/components/ui/label.tsx
|
|
1615
|
-
import * as
|
|
1204
|
+
import * as React12 from "react";
|
|
1616
1205
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
1617
1206
|
import { cva as cva4 } from "class-variance-authority";
|
|
1618
1207
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1619
1208
|
var labelVariants = cva4(
|
|
1620
1209
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1621
1210
|
);
|
|
1622
|
-
var Label3 =
|
|
1211
|
+
var Label3 = React12.forwardRef((_a, ref) => {
|
|
1623
1212
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1624
1213
|
return /* @__PURE__ */ jsx14(
|
|
1625
1214
|
LabelPrimitive.Root,
|
|
@@ -1634,7 +1223,7 @@ Label3.displayName = LabelPrimitive.Root.displayName;
|
|
|
1634
1223
|
// src/components/ui/form.tsx
|
|
1635
1224
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1636
1225
|
var Form = FormProvider;
|
|
1637
|
-
var FormFieldContext =
|
|
1226
|
+
var FormFieldContext = React13.createContext(
|
|
1638
1227
|
{}
|
|
1639
1228
|
);
|
|
1640
1229
|
var FormField = (_a) => {
|
|
@@ -1642,8 +1231,8 @@ var FormField = (_a) => {
|
|
|
1642
1231
|
return /* @__PURE__ */ jsx15(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx15(Controller, __spreadValues({}, props)) });
|
|
1643
1232
|
};
|
|
1644
1233
|
var useFormField = () => {
|
|
1645
|
-
const fieldContext =
|
|
1646
|
-
const itemContext =
|
|
1234
|
+
const fieldContext = React13.useContext(FormFieldContext);
|
|
1235
|
+
const itemContext = React13.useContext(FormItemContext);
|
|
1647
1236
|
const { getFieldState, formState } = useFormContext();
|
|
1648
1237
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1649
1238
|
if (!fieldContext) {
|
|
@@ -1658,16 +1247,16 @@ var useFormField = () => {
|
|
|
1658
1247
|
formMessageId: `${id}-form-item-message`
|
|
1659
1248
|
}, fieldState);
|
|
1660
1249
|
};
|
|
1661
|
-
var FormItemContext =
|
|
1250
|
+
var FormItemContext = React13.createContext(
|
|
1662
1251
|
{}
|
|
1663
1252
|
);
|
|
1664
|
-
var FormItem =
|
|
1253
|
+
var FormItem = React13.forwardRef((_a, ref) => {
|
|
1665
1254
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1666
|
-
const id =
|
|
1255
|
+
const id = React13.useId();
|
|
1667
1256
|
return /* @__PURE__ */ jsx15(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx15("div", __spreadValues({ ref, className: cn("", className) }, props)) });
|
|
1668
1257
|
});
|
|
1669
1258
|
FormItem.displayName = "FormItem";
|
|
1670
|
-
var FormLabel =
|
|
1259
|
+
var FormLabel = React13.forwardRef((_a, ref) => {
|
|
1671
1260
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1672
1261
|
const { error, formItemId } = useFormField();
|
|
1673
1262
|
return /* @__PURE__ */ jsx15(
|
|
@@ -1680,7 +1269,7 @@ var FormLabel = React14.forwardRef((_a, ref) => {
|
|
|
1680
1269
|
);
|
|
1681
1270
|
});
|
|
1682
1271
|
FormLabel.displayName = "FormLabel";
|
|
1683
|
-
var FormControl =
|
|
1272
|
+
var FormControl = React13.forwardRef((_a, ref) => {
|
|
1684
1273
|
var props = __objRest(_a, []);
|
|
1685
1274
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1686
1275
|
return /* @__PURE__ */ jsx15(
|
|
@@ -1694,7 +1283,7 @@ var FormControl = React14.forwardRef((_a, ref) => {
|
|
|
1694
1283
|
);
|
|
1695
1284
|
});
|
|
1696
1285
|
FormControl.displayName = "FormControl";
|
|
1697
|
-
var FormDescription =
|
|
1286
|
+
var FormDescription = React13.forwardRef((_a, ref) => {
|
|
1698
1287
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1699
1288
|
const { formDescriptionId } = useFormField();
|
|
1700
1289
|
return /* @__PURE__ */ jsx15(
|
|
@@ -1707,7 +1296,7 @@ var FormDescription = React14.forwardRef((_a, ref) => {
|
|
|
1707
1296
|
);
|
|
1708
1297
|
});
|
|
1709
1298
|
FormDescription.displayName = "FormDescription";
|
|
1710
|
-
var FormMessage =
|
|
1299
|
+
var FormMessage = React13.forwardRef((_a, ref) => {
|
|
1711
1300
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
1712
1301
|
const { error, formMessageId } = useFormField();
|
|
1713
1302
|
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
@@ -1728,12 +1317,12 @@ var FormMessage = React14.forwardRef((_a, ref) => {
|
|
|
1728
1317
|
FormMessage.displayName = "FormMessage";
|
|
1729
1318
|
|
|
1730
1319
|
// src/components/ui/hover-card.tsx
|
|
1731
|
-
import * as
|
|
1320
|
+
import * as React14 from "react";
|
|
1732
1321
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
1733
1322
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1734
1323
|
var HoverCard = HoverCardPrimitive.Root;
|
|
1735
1324
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1736
|
-
var HoverCardContent =
|
|
1325
|
+
var HoverCardContent = React14.forwardRef((_a, ref) => {
|
|
1737
1326
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
1738
1327
|
return /* @__PURE__ */ jsx16(
|
|
1739
1328
|
HoverCardPrimitive.Content,
|
|
@@ -1751,9 +1340,9 @@ var HoverCardContent = React15.forwardRef((_a, ref) => {
|
|
|
1751
1340
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
1752
1341
|
|
|
1753
1342
|
// src/components/ui/input.tsx
|
|
1754
|
-
import * as
|
|
1343
|
+
import * as React15 from "react";
|
|
1755
1344
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1756
|
-
var Input =
|
|
1345
|
+
var Input = React15.forwardRef(
|
|
1757
1346
|
(_a, ref) => {
|
|
1758
1347
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
1759
1348
|
return /* @__PURE__ */ jsx17(
|
|
@@ -1772,7 +1361,7 @@ var Input = React16.forwardRef(
|
|
|
1772
1361
|
Input.displayName = "Input";
|
|
1773
1362
|
|
|
1774
1363
|
// src/components/ui/menubar.tsx
|
|
1775
|
-
import * as
|
|
1364
|
+
import * as React16 from "react";
|
|
1776
1365
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
1777
1366
|
import { Check as Check4, ChevronRight as ChevronRight3, Circle as Circle3 } from "lucide-react";
|
|
1778
1367
|
import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -1781,7 +1370,7 @@ var MenubarGroup = MenubarPrimitive.Group;
|
|
|
1781
1370
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
1782
1371
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
1783
1372
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
1784
|
-
var Menubar =
|
|
1373
|
+
var Menubar = React16.forwardRef((_a, ref) => {
|
|
1785
1374
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1786
1375
|
return /* @__PURE__ */ jsx18(
|
|
1787
1376
|
MenubarPrimitive.Root,
|
|
@@ -1795,7 +1384,7 @@ var Menubar = React17.forwardRef((_a, ref) => {
|
|
|
1795
1384
|
);
|
|
1796
1385
|
});
|
|
1797
1386
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
1798
|
-
var MenubarTrigger =
|
|
1387
|
+
var MenubarTrigger = React16.forwardRef((_a, ref) => {
|
|
1799
1388
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1800
1389
|
return /* @__PURE__ */ jsx18(
|
|
1801
1390
|
MenubarPrimitive.Trigger,
|
|
@@ -1809,7 +1398,7 @@ var MenubarTrigger = React17.forwardRef((_a, ref) => {
|
|
|
1809
1398
|
);
|
|
1810
1399
|
});
|
|
1811
1400
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
1812
|
-
var MenubarSubTrigger =
|
|
1401
|
+
var MenubarSubTrigger = React16.forwardRef((_a, ref) => {
|
|
1813
1402
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
1814
1403
|
return /* @__PURE__ */ jsxs7(
|
|
1815
1404
|
MenubarPrimitive.SubTrigger,
|
|
@@ -1829,7 +1418,7 @@ var MenubarSubTrigger = React17.forwardRef((_a, ref) => {
|
|
|
1829
1418
|
);
|
|
1830
1419
|
});
|
|
1831
1420
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
1832
|
-
var MenubarSubContent =
|
|
1421
|
+
var MenubarSubContent = React16.forwardRef((_a, ref) => {
|
|
1833
1422
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1834
1423
|
return /* @__PURE__ */ jsx18(
|
|
1835
1424
|
MenubarPrimitive.SubContent,
|
|
@@ -1843,7 +1432,7 @@ var MenubarSubContent = React17.forwardRef((_a, ref) => {
|
|
|
1843
1432
|
);
|
|
1844
1433
|
});
|
|
1845
1434
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
1846
|
-
var MenubarContent =
|
|
1435
|
+
var MenubarContent = React16.forwardRef(
|
|
1847
1436
|
(_a, ref) => {
|
|
1848
1437
|
var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
|
|
1849
1438
|
return /* @__PURE__ */ jsx18(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx18(
|
|
@@ -1862,7 +1451,7 @@ var MenubarContent = React17.forwardRef(
|
|
|
1862
1451
|
}
|
|
1863
1452
|
);
|
|
1864
1453
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
1865
|
-
var MenubarItem =
|
|
1454
|
+
var MenubarItem = React16.forwardRef((_a, ref) => {
|
|
1866
1455
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
1867
1456
|
return /* @__PURE__ */ jsx18(
|
|
1868
1457
|
MenubarPrimitive.Item,
|
|
@@ -1877,7 +1466,7 @@ var MenubarItem = React17.forwardRef((_a, ref) => {
|
|
|
1877
1466
|
);
|
|
1878
1467
|
});
|
|
1879
1468
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
1880
|
-
var MenubarCheckboxItem =
|
|
1469
|
+
var MenubarCheckboxItem = React16.forwardRef((_a, ref) => {
|
|
1881
1470
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
1882
1471
|
return /* @__PURE__ */ jsxs7(
|
|
1883
1472
|
MenubarPrimitive.CheckboxItem,
|
|
@@ -1897,7 +1486,7 @@ var MenubarCheckboxItem = React17.forwardRef((_a, ref) => {
|
|
|
1897
1486
|
);
|
|
1898
1487
|
});
|
|
1899
1488
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
1900
|
-
var MenubarRadioItem =
|
|
1489
|
+
var MenubarRadioItem = React16.forwardRef((_a, ref) => {
|
|
1901
1490
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
1902
1491
|
return /* @__PURE__ */ jsxs7(
|
|
1903
1492
|
MenubarPrimitive.RadioItem,
|
|
@@ -1916,7 +1505,7 @@ var MenubarRadioItem = React17.forwardRef((_a, ref) => {
|
|
|
1916
1505
|
);
|
|
1917
1506
|
});
|
|
1918
1507
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
1919
|
-
var MenubarLabel =
|
|
1508
|
+
var MenubarLabel = React16.forwardRef((_a, ref) => {
|
|
1920
1509
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
1921
1510
|
return /* @__PURE__ */ jsx18(
|
|
1922
1511
|
MenubarPrimitive.Label,
|
|
@@ -1931,7 +1520,7 @@ var MenubarLabel = React17.forwardRef((_a, ref) => {
|
|
|
1931
1520
|
);
|
|
1932
1521
|
});
|
|
1933
1522
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
1934
|
-
var MenubarSeparator =
|
|
1523
|
+
var MenubarSeparator = React16.forwardRef((_a, ref) => {
|
|
1935
1524
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1936
1525
|
return /* @__PURE__ */ jsx18(
|
|
1937
1526
|
MenubarPrimitive.Separator,
|
|
@@ -1961,12 +1550,12 @@ var MenubarShortcut = (_a) => {
|
|
|
1961
1550
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
1962
1551
|
|
|
1963
1552
|
// src/components/ui/navigation-menu.tsx
|
|
1964
|
-
import * as
|
|
1553
|
+
import * as React17 from "react";
|
|
1965
1554
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1966
1555
|
import { cva as cva5 } from "class-variance-authority";
|
|
1967
1556
|
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
1968
1557
|
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1969
|
-
var NavigationMenu =
|
|
1558
|
+
var NavigationMenu = React17.forwardRef((_a, ref) => {
|
|
1970
1559
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
1971
1560
|
return /* @__PURE__ */ jsxs8(
|
|
1972
1561
|
NavigationMenuPrimitive.Root,
|
|
@@ -1985,7 +1574,7 @@ var NavigationMenu = React18.forwardRef((_a, ref) => {
|
|
|
1985
1574
|
);
|
|
1986
1575
|
});
|
|
1987
1576
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1988
|
-
var NavigationMenuList =
|
|
1577
|
+
var NavigationMenuList = React17.forwardRef((_a, ref) => {
|
|
1989
1578
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1990
1579
|
return /* @__PURE__ */ jsx19(
|
|
1991
1580
|
NavigationMenuPrimitive.List,
|
|
@@ -2003,7 +1592,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2003
1592
|
var navigationMenuTriggerStyle = cva5(
|
|
2004
1593
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
2005
1594
|
);
|
|
2006
|
-
var NavigationMenuTrigger =
|
|
1595
|
+
var NavigationMenuTrigger = React17.forwardRef((_a, ref) => {
|
|
2007
1596
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2008
1597
|
return /* @__PURE__ */ jsxs8(
|
|
2009
1598
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -2026,7 +1615,7 @@ var NavigationMenuTrigger = React18.forwardRef((_a, ref) => {
|
|
|
2026
1615
|
);
|
|
2027
1616
|
});
|
|
2028
1617
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2029
|
-
var NavigationMenuContent =
|
|
1618
|
+
var NavigationMenuContent = React17.forwardRef((_a, ref) => {
|
|
2030
1619
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2031
1620
|
return /* @__PURE__ */ jsx19(
|
|
2032
1621
|
NavigationMenuPrimitive.Content,
|
|
@@ -2041,7 +1630,7 @@ var NavigationMenuContent = React18.forwardRef((_a, ref) => {
|
|
|
2041
1630
|
});
|
|
2042
1631
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2043
1632
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2044
|
-
var NavigationMenuViewport =
|
|
1633
|
+
var NavigationMenuViewport = React17.forwardRef((_a, ref) => {
|
|
2045
1634
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2046
1635
|
return /* @__PURE__ */ jsx19("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx19(
|
|
2047
1636
|
NavigationMenuPrimitive.Viewport,
|
|
@@ -2055,7 +1644,7 @@ var NavigationMenuViewport = React18.forwardRef((_a, ref) => {
|
|
|
2055
1644
|
) });
|
|
2056
1645
|
});
|
|
2057
1646
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2058
|
-
var NavigationMenuIndicator =
|
|
1647
|
+
var NavigationMenuIndicator = React17.forwardRef((_a, ref) => {
|
|
2059
1648
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2060
1649
|
return /* @__PURE__ */ jsx19(
|
|
2061
1650
|
NavigationMenuPrimitive.Indicator,
|
|
@@ -2073,13 +1662,13 @@ var NavigationMenuIndicator = React18.forwardRef((_a, ref) => {
|
|
|
2073
1662
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
2074
1663
|
|
|
2075
1664
|
// src/components/ui/popover.tsx
|
|
2076
|
-
import * as
|
|
1665
|
+
import * as React18 from "react";
|
|
2077
1666
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2078
1667
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2079
1668
|
var Popover = PopoverPrimitive.Root;
|
|
2080
1669
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2081
1670
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
2082
|
-
var PopoverContent =
|
|
1671
|
+
var PopoverContent = React18.forwardRef((_a, ref) => {
|
|
2083
1672
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
2084
1673
|
return /* @__PURE__ */ jsx20(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
2085
1674
|
PopoverPrimitive.Content,
|
|
@@ -2097,10 +1686,10 @@ var PopoverContent = React19.forwardRef((_a, ref) => {
|
|
|
2097
1686
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2098
1687
|
|
|
2099
1688
|
// src/components/ui/progress.tsx
|
|
2100
|
-
import * as
|
|
1689
|
+
import * as React19 from "react";
|
|
2101
1690
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2102
1691
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2103
|
-
var Progress =
|
|
1692
|
+
var Progress = React19.forwardRef((_a, ref) => {
|
|
2104
1693
|
var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
|
|
2105
1694
|
return /* @__PURE__ */ jsx21(
|
|
2106
1695
|
ProgressPrimitive.Root,
|
|
@@ -2124,11 +1713,11 @@ var Progress = React20.forwardRef((_a, ref) => {
|
|
|
2124
1713
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2125
1714
|
|
|
2126
1715
|
// src/components/ui/radio-group.tsx
|
|
2127
|
-
import * as
|
|
1716
|
+
import * as React20 from "react";
|
|
2128
1717
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2129
1718
|
import { Circle as Circle4 } from "lucide-react";
|
|
2130
1719
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2131
|
-
var RadioGroup4 =
|
|
1720
|
+
var RadioGroup4 = React20.forwardRef((_a, ref) => {
|
|
2132
1721
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2133
1722
|
return /* @__PURE__ */ jsx22(
|
|
2134
1723
|
RadioGroupPrimitive.Root,
|
|
@@ -2140,7 +1729,7 @@ var RadioGroup4 = React21.forwardRef((_a, ref) => {
|
|
|
2140
1729
|
);
|
|
2141
1730
|
});
|
|
2142
1731
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2143
|
-
var RadioGroupItem =
|
|
1732
|
+
var RadioGroupItem = React20.forwardRef((_a, ref) => {
|
|
2144
1733
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2145
1734
|
return /* @__PURE__ */ jsx22(
|
|
2146
1735
|
RadioGroupPrimitive.Item,
|
|
@@ -2158,10 +1747,10 @@ var RadioGroupItem = React21.forwardRef((_a, ref) => {
|
|
|
2158
1747
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
2159
1748
|
|
|
2160
1749
|
// src/components/ui/scroll-area.tsx
|
|
2161
|
-
import * as
|
|
1750
|
+
import * as React21 from "react";
|
|
2162
1751
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
2163
1752
|
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2164
|
-
var ScrollArea =
|
|
1753
|
+
var ScrollArea = React21.forwardRef((_a, ref) => {
|
|
2165
1754
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2166
1755
|
return /* @__PURE__ */ jsxs9(
|
|
2167
1756
|
ScrollAreaPrimitive.Root,
|
|
@@ -2178,7 +1767,7 @@ var ScrollArea = React22.forwardRef((_a, ref) => {
|
|
|
2178
1767
|
);
|
|
2179
1768
|
});
|
|
2180
1769
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2181
|
-
var ScrollBar =
|
|
1770
|
+
var ScrollBar = React21.forwardRef((_a, ref) => {
|
|
2182
1771
|
var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
|
|
2183
1772
|
return /* @__PURE__ */ jsx23(
|
|
2184
1773
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
@@ -2199,14 +1788,14 @@ var ScrollBar = React22.forwardRef((_a, ref) => {
|
|
|
2199
1788
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2200
1789
|
|
|
2201
1790
|
// src/components/ui/select.tsx
|
|
2202
|
-
import * as
|
|
1791
|
+
import * as React22 from "react";
|
|
2203
1792
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2204
1793
|
import { Check as Check5, ChevronDown as ChevronDown3 } from "lucide-react";
|
|
2205
1794
|
import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2206
1795
|
var Select = SelectPrimitive.Root;
|
|
2207
1796
|
var SelectGroup = SelectPrimitive.Group;
|
|
2208
1797
|
var SelectValue = SelectPrimitive.Value;
|
|
2209
|
-
var SelectTrigger =
|
|
1798
|
+
var SelectTrigger = React22.forwardRef((_a, ref) => {
|
|
2210
1799
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2211
1800
|
return /* @__PURE__ */ jsxs10(
|
|
2212
1801
|
SelectPrimitive.Trigger,
|
|
@@ -2225,7 +1814,7 @@ var SelectTrigger = React23.forwardRef((_a, ref) => {
|
|
|
2225
1814
|
);
|
|
2226
1815
|
});
|
|
2227
1816
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2228
|
-
var SelectContent =
|
|
1817
|
+
var SelectContent = React22.forwardRef((_a, ref) => {
|
|
2229
1818
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
2230
1819
|
return /* @__PURE__ */ jsx24(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx24(
|
|
2231
1820
|
SelectPrimitive.Content,
|
|
@@ -2252,7 +1841,7 @@ var SelectContent = React23.forwardRef((_a, ref) => {
|
|
|
2252
1841
|
) });
|
|
2253
1842
|
});
|
|
2254
1843
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2255
|
-
var SelectLabel =
|
|
1844
|
+
var SelectLabel = React22.forwardRef((_a, ref) => {
|
|
2256
1845
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2257
1846
|
return /* @__PURE__ */ jsx24(
|
|
2258
1847
|
SelectPrimitive.Label,
|
|
@@ -2263,7 +1852,7 @@ var SelectLabel = React23.forwardRef((_a, ref) => {
|
|
|
2263
1852
|
);
|
|
2264
1853
|
});
|
|
2265
1854
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2266
|
-
var SelectItem =
|
|
1855
|
+
var SelectItem = React22.forwardRef((_a, ref) => {
|
|
2267
1856
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2268
1857
|
return /* @__PURE__ */ jsxs10(
|
|
2269
1858
|
SelectPrimitive.Item,
|
|
@@ -2282,7 +1871,7 @@ var SelectItem = React23.forwardRef((_a, ref) => {
|
|
|
2282
1871
|
);
|
|
2283
1872
|
});
|
|
2284
1873
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2285
|
-
var SelectSeparator =
|
|
1874
|
+
var SelectSeparator = React22.forwardRef((_a, ref) => {
|
|
2286
1875
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2287
1876
|
return /* @__PURE__ */ jsx24(
|
|
2288
1877
|
SelectPrimitive.Separator,
|
|
@@ -2295,10 +1884,10 @@ var SelectSeparator = React23.forwardRef((_a, ref) => {
|
|
|
2295
1884
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2296
1885
|
|
|
2297
1886
|
// src/components/ui/separator.tsx
|
|
2298
|
-
import * as
|
|
1887
|
+
import * as React23 from "react";
|
|
2299
1888
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2300
1889
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2301
|
-
var Separator5 =
|
|
1890
|
+
var Separator5 = React23.forwardRef(
|
|
2302
1891
|
(_a, ref) => {
|
|
2303
1892
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
2304
1893
|
return /* @__PURE__ */ jsx25(
|
|
@@ -2319,7 +1908,7 @@ var Separator5 = React24.forwardRef(
|
|
|
2319
1908
|
Separator5.displayName = SeparatorPrimitive.Root.displayName;
|
|
2320
1909
|
|
|
2321
1910
|
// src/components/ui/sheet.tsx
|
|
2322
|
-
import * as
|
|
1911
|
+
import * as React24 from "react";
|
|
2323
1912
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2324
1913
|
import { Cross2Icon as Cross2Icon2 } from "@radix-ui/react-icons";
|
|
2325
1914
|
import { cva as cva6 } from "class-variance-authority";
|
|
@@ -2328,7 +1917,7 @@ var Sheet = SheetPrimitive.Root;
|
|
|
2328
1917
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2329
1918
|
var SheetClose = SheetPrimitive.Close;
|
|
2330
1919
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2331
|
-
var SheetOverlay =
|
|
1920
|
+
var SheetOverlay = React24.forwardRef((_a, ref) => {
|
|
2332
1921
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2333
1922
|
return /* @__PURE__ */ jsx26(
|
|
2334
1923
|
SheetPrimitive.Overlay,
|
|
@@ -2359,7 +1948,7 @@ var sheetVariants = cva6(
|
|
|
2359
1948
|
}
|
|
2360
1949
|
}
|
|
2361
1950
|
);
|
|
2362
|
-
var SheetContent =
|
|
1951
|
+
var SheetContent = React24.forwardRef((_a, ref) => {
|
|
2363
1952
|
var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
|
|
2364
1953
|
return /* @__PURE__ */ jsxs11(SheetPortal, { children: [
|
|
2365
1954
|
/* @__PURE__ */ jsx26(SheetOverlay, {}),
|
|
@@ -2415,7 +2004,7 @@ var SheetFooter = (_a) => {
|
|
|
2415
2004
|
);
|
|
2416
2005
|
};
|
|
2417
2006
|
SheetFooter.displayName = "SheetFooter";
|
|
2418
|
-
var SheetTitle =
|
|
2007
|
+
var SheetTitle = React24.forwardRef((_a, ref) => {
|
|
2419
2008
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2420
2009
|
return /* @__PURE__ */ jsx26(
|
|
2421
2010
|
SheetPrimitive.Title,
|
|
@@ -2426,7 +2015,7 @@ var SheetTitle = React25.forwardRef((_a, ref) => {
|
|
|
2426
2015
|
);
|
|
2427
2016
|
});
|
|
2428
2017
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2429
|
-
var SheetDescription =
|
|
2018
|
+
var SheetDescription = React24.forwardRef((_a, ref) => {
|
|
2430
2019
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2431
2020
|
return /* @__PURE__ */ jsx26(
|
|
2432
2021
|
SheetPrimitive.Description,
|
|
@@ -2455,10 +2044,10 @@ function Skeleton(_a) {
|
|
|
2455
2044
|
}
|
|
2456
2045
|
|
|
2457
2046
|
// src/components/ui/slider.tsx
|
|
2458
|
-
import * as
|
|
2047
|
+
import * as React25 from "react";
|
|
2459
2048
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
2460
2049
|
import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2461
|
-
var Slider =
|
|
2050
|
+
var Slider = React25.forwardRef((_a, ref) => {
|
|
2462
2051
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2463
2052
|
const value = props.value || props.defaultValue;
|
|
2464
2053
|
const thumbs = value && Array.isArray(value) ? value.length : 1;
|
|
@@ -2487,10 +2076,10 @@ var Slider = React26.forwardRef((_a, ref) => {
|
|
|
2487
2076
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
2488
2077
|
|
|
2489
2078
|
// src/components/ui/switch.tsx
|
|
2490
|
-
import * as
|
|
2079
|
+
import * as React26 from "react";
|
|
2491
2080
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
2492
2081
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2493
|
-
var Switch =
|
|
2082
|
+
var Switch = React26.forwardRef((_a, ref) => {
|
|
2494
2083
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2495
2084
|
return /* @__PURE__ */ jsx29(
|
|
2496
2085
|
SwitchPrimitives.Root,
|
|
@@ -2515,9 +2104,9 @@ var Switch = React27.forwardRef((_a, ref) => {
|
|
|
2515
2104
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
2516
2105
|
|
|
2517
2106
|
// src/components/ui/table.tsx
|
|
2518
|
-
import * as
|
|
2107
|
+
import * as React27 from "react";
|
|
2519
2108
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2520
|
-
var Table =
|
|
2109
|
+
var Table = React27.forwardRef((_a, ref) => {
|
|
2521
2110
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2522
2111
|
return /* @__PURE__ */ jsx30("div", { className: "w-full overflow-auto", children: /* @__PURE__ */ jsx30(
|
|
2523
2112
|
"table",
|
|
@@ -2528,12 +2117,12 @@ var Table = React28.forwardRef((_a, ref) => {
|
|
|
2528
2117
|
) });
|
|
2529
2118
|
});
|
|
2530
2119
|
Table.displayName = "Table";
|
|
2531
|
-
var TableHeader =
|
|
2120
|
+
var TableHeader = React27.forwardRef((_a, ref) => {
|
|
2532
2121
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2533
2122
|
return /* @__PURE__ */ jsx30("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
|
|
2534
2123
|
});
|
|
2535
2124
|
TableHeader.displayName = "TableHeader";
|
|
2536
|
-
var TableBody =
|
|
2125
|
+
var TableBody = React27.forwardRef((_a, ref) => {
|
|
2537
2126
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2538
2127
|
return /* @__PURE__ */ jsx30(
|
|
2539
2128
|
"tbody",
|
|
@@ -2544,7 +2133,7 @@ var TableBody = React28.forwardRef((_a, ref) => {
|
|
|
2544
2133
|
);
|
|
2545
2134
|
});
|
|
2546
2135
|
TableBody.displayName = "TableBody";
|
|
2547
|
-
var TableFooter =
|
|
2136
|
+
var TableFooter = React27.forwardRef((_a, ref) => {
|
|
2548
2137
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2549
2138
|
return /* @__PURE__ */ jsx30(
|
|
2550
2139
|
"tfoot",
|
|
@@ -2555,7 +2144,7 @@ var TableFooter = React28.forwardRef((_a, ref) => {
|
|
|
2555
2144
|
);
|
|
2556
2145
|
});
|
|
2557
2146
|
TableFooter.displayName = "TableFooter";
|
|
2558
|
-
var TableRow =
|
|
2147
|
+
var TableRow = React27.forwardRef((_a, ref) => {
|
|
2559
2148
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2560
2149
|
return /* @__PURE__ */ jsx30(
|
|
2561
2150
|
"tr",
|
|
@@ -2569,7 +2158,7 @@ var TableRow = React28.forwardRef((_a, ref) => {
|
|
|
2569
2158
|
);
|
|
2570
2159
|
});
|
|
2571
2160
|
TableRow.displayName = "TableRow";
|
|
2572
|
-
var TableHead =
|
|
2161
|
+
var TableHead = React27.forwardRef((_a, ref) => {
|
|
2573
2162
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2574
2163
|
return /* @__PURE__ */ jsx30(
|
|
2575
2164
|
"th",
|
|
@@ -2583,7 +2172,7 @@ var TableHead = React28.forwardRef((_a, ref) => {
|
|
|
2583
2172
|
);
|
|
2584
2173
|
});
|
|
2585
2174
|
TableHead.displayName = "TableHead";
|
|
2586
|
-
var TableCell =
|
|
2175
|
+
var TableCell = React27.forwardRef((_a, ref) => {
|
|
2587
2176
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2588
2177
|
return /* @__PURE__ */ jsx30(
|
|
2589
2178
|
"td",
|
|
@@ -2594,7 +2183,7 @@ var TableCell = React28.forwardRef((_a, ref) => {
|
|
|
2594
2183
|
);
|
|
2595
2184
|
});
|
|
2596
2185
|
TableCell.displayName = "TableCell";
|
|
2597
|
-
var TableCaption =
|
|
2186
|
+
var TableCaption = React27.forwardRef((_a, ref) => {
|
|
2598
2187
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2599
2188
|
return /* @__PURE__ */ jsx30(
|
|
2600
2189
|
"caption",
|
|
@@ -2607,11 +2196,11 @@ var TableCaption = React28.forwardRef((_a, ref) => {
|
|
|
2607
2196
|
TableCaption.displayName = "TableCaption";
|
|
2608
2197
|
|
|
2609
2198
|
// src/components/ui/tabs.tsx
|
|
2610
|
-
import * as
|
|
2199
|
+
import * as React28 from "react";
|
|
2611
2200
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2612
2201
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2613
2202
|
var Tabs = TabsPrimitive.Root;
|
|
2614
|
-
var TabsList =
|
|
2203
|
+
var TabsList = React28.forwardRef((_a, ref) => {
|
|
2615
2204
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2616
2205
|
return /* @__PURE__ */ jsx31(
|
|
2617
2206
|
TabsPrimitive.List,
|
|
@@ -2625,7 +2214,7 @@ var TabsList = React29.forwardRef((_a, ref) => {
|
|
|
2625
2214
|
);
|
|
2626
2215
|
});
|
|
2627
2216
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2628
|
-
var TabsTrigger =
|
|
2217
|
+
var TabsTrigger = React28.forwardRef((_a, ref) => {
|
|
2629
2218
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2630
2219
|
return /* @__PURE__ */ jsx31(
|
|
2631
2220
|
TabsPrimitive.Trigger,
|
|
@@ -2639,7 +2228,7 @@ var TabsTrigger = React29.forwardRef((_a, ref) => {
|
|
|
2639
2228
|
);
|
|
2640
2229
|
});
|
|
2641
2230
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2642
|
-
var TabsContent =
|
|
2231
|
+
var TabsContent = React28.forwardRef((_a, ref) => {
|
|
2643
2232
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2644
2233
|
return /* @__PURE__ */ jsx31(
|
|
2645
2234
|
TabsPrimitive.Content,
|
|
@@ -2687,9 +2276,9 @@ var TagList = (props) => {
|
|
|
2687
2276
|
var tag_list_default = TagList;
|
|
2688
2277
|
|
|
2689
2278
|
// src/components/ui/textarea.tsx
|
|
2690
|
-
import * as
|
|
2279
|
+
import * as React29 from "react";
|
|
2691
2280
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2692
|
-
var Textarea =
|
|
2281
|
+
var Textarea = React29.forwardRef(
|
|
2693
2282
|
(_a, ref) => {
|
|
2694
2283
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2695
2284
|
return /* @__PURE__ */ jsx34(
|
|
@@ -2707,13 +2296,13 @@ var Textarea = React30.forwardRef(
|
|
|
2707
2296
|
Textarea.displayName = "Textarea";
|
|
2708
2297
|
|
|
2709
2298
|
// src/components/ui/toast.tsx
|
|
2710
|
-
import * as
|
|
2299
|
+
import * as React30 from "react";
|
|
2711
2300
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
2712
2301
|
import { cva as cva7 } from "class-variance-authority";
|
|
2713
2302
|
import { X } from "lucide-react";
|
|
2714
2303
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2715
2304
|
var ToastProvider = ToastPrimitives.Provider;
|
|
2716
|
-
var ToastViewport =
|
|
2305
|
+
var ToastViewport = React30.forwardRef((_a, ref) => {
|
|
2717
2306
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2718
2307
|
return /* @__PURE__ */ jsx35(
|
|
2719
2308
|
ToastPrimitives.Viewport,
|
|
@@ -2741,7 +2330,7 @@ var toastVariants = cva7(
|
|
|
2741
2330
|
}
|
|
2742
2331
|
}
|
|
2743
2332
|
);
|
|
2744
|
-
var Toast =
|
|
2333
|
+
var Toast = React30.forwardRef((_a, ref) => {
|
|
2745
2334
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
2746
2335
|
return /* @__PURE__ */ jsx35(
|
|
2747
2336
|
ToastPrimitives.Root,
|
|
@@ -2752,7 +2341,7 @@ var Toast = React31.forwardRef((_a, ref) => {
|
|
|
2752
2341
|
);
|
|
2753
2342
|
});
|
|
2754
2343
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
2755
|
-
var ToastAction =
|
|
2344
|
+
var ToastAction = React30.forwardRef((_a, ref) => {
|
|
2756
2345
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2757
2346
|
return /* @__PURE__ */ jsx35(
|
|
2758
2347
|
ToastPrimitives.Action,
|
|
@@ -2766,7 +2355,7 @@ var ToastAction = React31.forwardRef((_a, ref) => {
|
|
|
2766
2355
|
);
|
|
2767
2356
|
});
|
|
2768
2357
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
2769
|
-
var ToastClose =
|
|
2358
|
+
var ToastClose = React30.forwardRef((_a, ref) => {
|
|
2770
2359
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2771
2360
|
return /* @__PURE__ */ jsx35(
|
|
2772
2361
|
ToastPrimitives.Close,
|
|
@@ -2783,7 +2372,7 @@ var ToastClose = React31.forwardRef((_a, ref) => {
|
|
|
2783
2372
|
);
|
|
2784
2373
|
});
|
|
2785
2374
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
2786
|
-
var ToastTitle =
|
|
2375
|
+
var ToastTitle = React30.forwardRef((_a, ref) => {
|
|
2787
2376
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2788
2377
|
return /* @__PURE__ */ jsx35(
|
|
2789
2378
|
ToastPrimitives.Title,
|
|
@@ -2794,7 +2383,7 @@ var ToastTitle = React31.forwardRef((_a, ref) => {
|
|
|
2794
2383
|
);
|
|
2795
2384
|
});
|
|
2796
2385
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
2797
|
-
var ToastDescription =
|
|
2386
|
+
var ToastDescription = React30.forwardRef((_a, ref) => {
|
|
2798
2387
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2799
2388
|
return /* @__PURE__ */ jsx35(
|
|
2800
2389
|
ToastPrimitives.Description,
|
|
@@ -2807,7 +2396,7 @@ var ToastDescription = React31.forwardRef((_a, ref) => {
|
|
|
2807
2396
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
2808
2397
|
|
|
2809
2398
|
// src/components/ui/use-toast.ts
|
|
2810
|
-
import * as
|
|
2399
|
+
import * as React31 from "react";
|
|
2811
2400
|
var TOAST_LIMIT = 1;
|
|
2812
2401
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
2813
2402
|
var count = 0;
|
|
@@ -2902,8 +2491,8 @@ function toast(_a) {
|
|
|
2902
2491
|
};
|
|
2903
2492
|
}
|
|
2904
2493
|
function useToast() {
|
|
2905
|
-
const [state, setState] =
|
|
2906
|
-
|
|
2494
|
+
const [state, setState] = React31.useState(memoryState);
|
|
2495
|
+
React31.useEffect(() => {
|
|
2907
2496
|
listeners.push(setState);
|
|
2908
2497
|
return () => {
|
|
2909
2498
|
const index = listeners.indexOf(setState);
|
|
@@ -2939,7 +2528,7 @@ function Toaster() {
|
|
|
2939
2528
|
}
|
|
2940
2529
|
|
|
2941
2530
|
// src/components/ui/toggle.tsx
|
|
2942
|
-
import * as
|
|
2531
|
+
import * as React32 from "react";
|
|
2943
2532
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
2944
2533
|
import { cva as cva8 } from "class-variance-authority";
|
|
2945
2534
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
@@ -2963,7 +2552,7 @@ var toggleVariants = cva8(
|
|
|
2963
2552
|
}
|
|
2964
2553
|
}
|
|
2965
2554
|
);
|
|
2966
|
-
var Toggle =
|
|
2555
|
+
var Toggle = React32.forwardRef((_a, ref) => {
|
|
2967
2556
|
var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
2968
2557
|
return /* @__PURE__ */ jsx37(
|
|
2969
2558
|
TogglePrimitive.Root,
|
|
@@ -2976,13 +2565,13 @@ var Toggle = React33.forwardRef((_a, ref) => {
|
|
|
2976
2565
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
2977
2566
|
|
|
2978
2567
|
// src/components/ui/tooltip.tsx
|
|
2979
|
-
import * as
|
|
2568
|
+
import * as React33 from "react";
|
|
2980
2569
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2981
2570
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2982
2571
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2983
2572
|
var Tooltip = TooltipPrimitive.Root;
|
|
2984
2573
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
2985
|
-
var TooltipContent =
|
|
2574
|
+
var TooltipContent = React33.forwardRef((_a, ref) => {
|
|
2986
2575
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
2987
2576
|
return /* @__PURE__ */ jsx38(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx38(
|
|
2988
2577
|
TooltipPrimitive.Content,
|
|
@@ -4313,12 +3902,12 @@ import { BoxSelect, Check as Check6, Palette } from "lucide-react";
|
|
|
4313
3902
|
// src/components/Shared/DropdownMenu.tsx
|
|
4314
3903
|
import * as DropdownMenuPrimitive2 from "@radix-ui/react-dropdown-menu";
|
|
4315
3904
|
import { CheckIcon, ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
4316
|
-
import
|
|
3905
|
+
import React34 from "react";
|
|
4317
3906
|
import { DotFilledIcon } from "@radix-ui/react-icons";
|
|
4318
3907
|
import { jsx as jsx86, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4319
3908
|
var DropdownMenu2 = DropdownMenuPrimitive2.Root;
|
|
4320
3909
|
var DropdownMenuTrigger2 = DropdownMenuPrimitive2.Trigger;
|
|
4321
|
-
var DropdownMenuSubTrigger2 =
|
|
3910
|
+
var DropdownMenuSubTrigger2 = React34.forwardRef((_a, ref) => {
|
|
4322
3911
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
4323
3912
|
return /* @__PURE__ */ jsxs24(
|
|
4324
3913
|
DropdownMenuPrimitive2.SubTrigger,
|
|
@@ -4338,7 +3927,7 @@ var DropdownMenuSubTrigger2 = React35.forwardRef((_a, ref) => {
|
|
|
4338
3927
|
);
|
|
4339
3928
|
});
|
|
4340
3929
|
DropdownMenuSubTrigger2.displayName = DropdownMenuPrimitive2.SubTrigger.displayName;
|
|
4341
|
-
var DropdownMenuSubContent2 =
|
|
3930
|
+
var DropdownMenuSubContent2 = React34.forwardRef((_a, ref) => {
|
|
4342
3931
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4343
3932
|
return /* @__PURE__ */ jsx86(
|
|
4344
3933
|
DropdownMenuPrimitive2.SubContent,
|
|
@@ -4352,7 +3941,7 @@ var DropdownMenuSubContent2 = React35.forwardRef((_a, ref) => {
|
|
|
4352
3941
|
);
|
|
4353
3942
|
});
|
|
4354
3943
|
DropdownMenuSubContent2.displayName = DropdownMenuPrimitive2.SubContent.displayName;
|
|
4355
|
-
var DropdownMenuContent2 =
|
|
3944
|
+
var DropdownMenuContent2 = React34.forwardRef((_a, ref) => {
|
|
4356
3945
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
4357
3946
|
return /* @__PURE__ */ jsx86(DropdownMenuPrimitive2.Portal, { children: /* @__PURE__ */ jsx86(
|
|
4358
3947
|
DropdownMenuPrimitive2.Content,
|
|
@@ -4368,7 +3957,7 @@ var DropdownMenuContent2 = React35.forwardRef((_a, ref) => {
|
|
|
4368
3957
|
) });
|
|
4369
3958
|
});
|
|
4370
3959
|
DropdownMenuContent2.displayName = DropdownMenuPrimitive2.Content.displayName;
|
|
4371
|
-
var DropdownMenuItem2 =
|
|
3960
|
+
var DropdownMenuItem2 = React34.forwardRef((_a, ref) => {
|
|
4372
3961
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
4373
3962
|
return /* @__PURE__ */ jsx86(
|
|
4374
3963
|
DropdownMenuPrimitive2.Item,
|
|
@@ -4383,7 +3972,7 @@ var DropdownMenuItem2 = React35.forwardRef((_a, ref) => {
|
|
|
4383
3972
|
);
|
|
4384
3973
|
});
|
|
4385
3974
|
DropdownMenuItem2.displayName = DropdownMenuPrimitive2.Item.displayName;
|
|
4386
|
-
var DropdownMenuCheckboxItem2 =
|
|
3975
|
+
var DropdownMenuCheckboxItem2 = React34.forwardRef((_a, ref) => {
|
|
4387
3976
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
4388
3977
|
return /* @__PURE__ */ jsxs24(
|
|
4389
3978
|
DropdownMenuPrimitive2.CheckboxItem,
|
|
@@ -4403,7 +3992,7 @@ var DropdownMenuCheckboxItem2 = React35.forwardRef((_a, ref) => {
|
|
|
4403
3992
|
);
|
|
4404
3993
|
});
|
|
4405
3994
|
DropdownMenuCheckboxItem2.displayName = DropdownMenuPrimitive2.CheckboxItem.displayName;
|
|
4406
|
-
var DropdownMenuRadioItem2 =
|
|
3995
|
+
var DropdownMenuRadioItem2 = React34.forwardRef((_a, ref) => {
|
|
4407
3996
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4408
3997
|
return /* @__PURE__ */ jsxs24(
|
|
4409
3998
|
DropdownMenuPrimitive2.RadioItem,
|
|
@@ -4422,7 +4011,7 @@ var DropdownMenuRadioItem2 = React35.forwardRef((_a, ref) => {
|
|
|
4422
4011
|
);
|
|
4423
4012
|
});
|
|
4424
4013
|
DropdownMenuRadioItem2.displayName = DropdownMenuPrimitive2.RadioItem.displayName;
|
|
4425
|
-
var DropdownMenuLabel2 =
|
|
4014
|
+
var DropdownMenuLabel2 = React34.forwardRef((_a, ref) => {
|
|
4426
4015
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
4427
4016
|
return /* @__PURE__ */ jsx86(
|
|
4428
4017
|
DropdownMenuPrimitive2.Label,
|
|
@@ -4437,7 +4026,7 @@ var DropdownMenuLabel2 = React35.forwardRef((_a, ref) => {
|
|
|
4437
4026
|
);
|
|
4438
4027
|
});
|
|
4439
4028
|
DropdownMenuLabel2.displayName = DropdownMenuPrimitive2.Label.displayName;
|
|
4440
|
-
var DropdownMenuSeparator2 =
|
|
4029
|
+
var DropdownMenuSeparator2 = React34.forwardRef((_a, ref) => {
|
|
4441
4030
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4442
4031
|
return /* @__PURE__ */ jsx86(
|
|
4443
4032
|
DropdownMenuPrimitive2.Separator,
|
|
@@ -4562,6 +4151,7 @@ var OldCustomInput = (props) => {
|
|
|
4562
4151
|
};
|
|
4563
4152
|
|
|
4564
4153
|
// src/components/Input/MultiSelect.tsx
|
|
4154
|
+
import { Controller as Controller2 } from "react-hook-form";
|
|
4565
4155
|
import Select2 from "react-select";
|
|
4566
4156
|
import { jsx as jsx89, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4567
4157
|
var MultiSelect = (props) => {
|
|
@@ -4574,7 +4164,7 @@ var MultiSelect = (props) => {
|
|
|
4574
4164
|
};
|
|
4575
4165
|
return /* @__PURE__ */ jsxs27("div", { children: [
|
|
4576
4166
|
/* @__PURE__ */ jsx89(
|
|
4577
|
-
|
|
4167
|
+
Controller2,
|
|
4578
4168
|
{
|
|
4579
4169
|
control: props.control,
|
|
4580
4170
|
rules: { required: props.isRequired },
|
|
@@ -5268,16 +4858,16 @@ var AboutInfoItem = ({ title, description }) => {
|
|
|
5268
4858
|
};
|
|
5269
4859
|
|
|
5270
4860
|
// src/components/DesignElements/breadcrumb.tsx
|
|
5271
|
-
import * as
|
|
4861
|
+
import * as React35 from "react";
|
|
5272
4862
|
import { ChevronRightIcon as ChevronRightIcon4, DotsHorizontalIcon } from "@radix-ui/react-icons";
|
|
5273
4863
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
5274
4864
|
import { jsx as jsx96, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5275
|
-
var Breadcrumb =
|
|
4865
|
+
var Breadcrumb = React35.forwardRef((_a, ref) => {
|
|
5276
4866
|
var props = __objRest(_a, []);
|
|
5277
4867
|
return /* @__PURE__ */ jsx96("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
|
|
5278
4868
|
});
|
|
5279
4869
|
Breadcrumb.displayName = "Breadcrumb";
|
|
5280
|
-
var BreadcrumbList =
|
|
4870
|
+
var BreadcrumbList = React35.forwardRef((_a, ref) => {
|
|
5281
4871
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5282
4872
|
return /* @__PURE__ */ jsx96(
|
|
5283
4873
|
"ol",
|
|
@@ -5291,7 +4881,7 @@ var BreadcrumbList = React36.forwardRef((_a, ref) => {
|
|
|
5291
4881
|
);
|
|
5292
4882
|
});
|
|
5293
4883
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
5294
|
-
var BreadcrumbItem =
|
|
4884
|
+
var BreadcrumbItem = React35.forwardRef((_a, ref) => {
|
|
5295
4885
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5296
4886
|
return /* @__PURE__ */ jsx96(
|
|
5297
4887
|
"li",
|
|
@@ -5302,7 +4892,7 @@ var BreadcrumbItem = React36.forwardRef((_a, ref) => {
|
|
|
5302
4892
|
);
|
|
5303
4893
|
});
|
|
5304
4894
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
5305
|
-
var BreadcrumbLink =
|
|
4895
|
+
var BreadcrumbLink = React35.forwardRef((_a, ref) => {
|
|
5306
4896
|
var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
|
|
5307
4897
|
const Comp = asChild ? Slot3 : "a";
|
|
5308
4898
|
return /* @__PURE__ */ jsx96(
|
|
@@ -5314,7 +4904,7 @@ var BreadcrumbLink = React36.forwardRef((_a, ref) => {
|
|
|
5314
4904
|
);
|
|
5315
4905
|
});
|
|
5316
4906
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
5317
|
-
var BreadcrumbPage =
|
|
4907
|
+
var BreadcrumbPage = React35.forwardRef((_a, ref) => {
|
|
5318
4908
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5319
4909
|
return /* @__PURE__ */ jsx96(
|
|
5320
4910
|
"span",
|
|
@@ -5372,7 +4962,7 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
5372
4962
|
|
|
5373
4963
|
// src/components/DesignElements/button.tsx
|
|
5374
4964
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
5375
|
-
import
|
|
4965
|
+
import React36 from "react";
|
|
5376
4966
|
import { cva as cva9 } from "class-variance-authority";
|
|
5377
4967
|
import { jsx as jsx97, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5378
4968
|
var designButtonVariants = cva9(
|
|
@@ -5401,7 +4991,7 @@ var designButtonVariants = cva9(
|
|
|
5401
4991
|
}
|
|
5402
4992
|
}
|
|
5403
4993
|
);
|
|
5404
|
-
var DesignButton =
|
|
4994
|
+
var DesignButton = React36.forwardRef(
|
|
5405
4995
|
(_a, ref) => {
|
|
5406
4996
|
var _b = _a, {
|
|
5407
4997
|
className,
|
|
@@ -5463,19 +5053,19 @@ var DesignButton = React37.forwardRef(
|
|
|
5463
5053
|
DesignButton.displayName = "DesignButton";
|
|
5464
5054
|
|
|
5465
5055
|
// src/components/DesignElements/carousel.tsx
|
|
5466
|
-
import * as
|
|
5056
|
+
import * as React37 from "react";
|
|
5467
5057
|
import useEmblaCarousel from "embla-carousel-react";
|
|
5468
5058
|
import { ChevronLeft, ChevronRight as ChevronRight4 } from "lucide-react";
|
|
5469
5059
|
import { jsx as jsx98, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5470
|
-
var CarouselContext =
|
|
5060
|
+
var CarouselContext = React37.createContext(null);
|
|
5471
5061
|
function useCarousel() {
|
|
5472
|
-
const context =
|
|
5062
|
+
const context = React37.useContext(CarouselContext);
|
|
5473
5063
|
if (!context) {
|
|
5474
5064
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
5475
5065
|
}
|
|
5476
5066
|
return context;
|
|
5477
5067
|
}
|
|
5478
|
-
var Carousel =
|
|
5068
|
+
var Carousel = React37.forwardRef(
|
|
5479
5069
|
(_a, ref) => {
|
|
5480
5070
|
var _b = _a, {
|
|
5481
5071
|
orientation = "horizontal",
|
|
@@ -5501,22 +5091,22 @@ var Carousel = React38.forwardRef(
|
|
|
5501
5091
|
}),
|
|
5502
5092
|
plugins
|
|
5503
5093
|
);
|
|
5504
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
5505
|
-
const [canScrollNext, setCanScrollNext] =
|
|
5506
|
-
const onSelect =
|
|
5094
|
+
const [canScrollPrev, setCanScrollPrev] = React37.useState(false);
|
|
5095
|
+
const [canScrollNext, setCanScrollNext] = React37.useState(false);
|
|
5096
|
+
const onSelect = React37.useCallback((api2) => {
|
|
5507
5097
|
if (!api2) {
|
|
5508
5098
|
return;
|
|
5509
5099
|
}
|
|
5510
5100
|
setCanScrollPrev(api2.canScrollPrev());
|
|
5511
5101
|
setCanScrollNext(api2.canScrollNext());
|
|
5512
5102
|
}, []);
|
|
5513
|
-
const scrollPrev =
|
|
5103
|
+
const scrollPrev = React37.useCallback(() => {
|
|
5514
5104
|
api == null ? void 0 : api.scrollPrev();
|
|
5515
5105
|
}, [api]);
|
|
5516
|
-
const scrollNext =
|
|
5106
|
+
const scrollNext = React37.useCallback(() => {
|
|
5517
5107
|
api == null ? void 0 : api.scrollNext();
|
|
5518
5108
|
}, [api]);
|
|
5519
|
-
const handleKeyDown =
|
|
5109
|
+
const handleKeyDown = React37.useCallback(
|
|
5520
5110
|
(event) => {
|
|
5521
5111
|
if (event.key === "ArrowLeft") {
|
|
5522
5112
|
event.preventDefault();
|
|
@@ -5528,13 +5118,13 @@ var Carousel = React38.forwardRef(
|
|
|
5528
5118
|
},
|
|
5529
5119
|
[scrollPrev, scrollNext]
|
|
5530
5120
|
);
|
|
5531
|
-
|
|
5121
|
+
React37.useEffect(() => {
|
|
5532
5122
|
if (!api || !setApi) {
|
|
5533
5123
|
return;
|
|
5534
5124
|
}
|
|
5535
5125
|
setApi(api);
|
|
5536
5126
|
}, [api, setApi]);
|
|
5537
|
-
|
|
5127
|
+
React37.useEffect(() => {
|
|
5538
5128
|
if (!api) {
|
|
5539
5129
|
return;
|
|
5540
5130
|
}
|
|
@@ -5576,7 +5166,7 @@ var Carousel = React38.forwardRef(
|
|
|
5576
5166
|
}
|
|
5577
5167
|
);
|
|
5578
5168
|
Carousel.displayName = "Carousel";
|
|
5579
|
-
var CarouselContent =
|
|
5169
|
+
var CarouselContent = React37.forwardRef((_a, ref) => {
|
|
5580
5170
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5581
5171
|
const { carouselRef, orientation } = useCarousel();
|
|
5582
5172
|
return /* @__PURE__ */ jsx98("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx98(
|
|
@@ -5592,7 +5182,7 @@ var CarouselContent = React38.forwardRef((_a, ref) => {
|
|
|
5592
5182
|
) });
|
|
5593
5183
|
});
|
|
5594
5184
|
CarouselContent.displayName = "CarouselContent";
|
|
5595
|
-
var CarouselItem =
|
|
5185
|
+
var CarouselItem = React37.forwardRef((_a, ref) => {
|
|
5596
5186
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5597
5187
|
const { orientation } = useCarousel();
|
|
5598
5188
|
return /* @__PURE__ */ jsx98(
|
|
@@ -5610,7 +5200,7 @@ var CarouselItem = React38.forwardRef((_a, ref) => {
|
|
|
5610
5200
|
);
|
|
5611
5201
|
});
|
|
5612
5202
|
CarouselItem.displayName = "CarouselItem";
|
|
5613
|
-
var CarouselPrevious =
|
|
5203
|
+
var CarouselPrevious = React37.forwardRef((_a, ref) => {
|
|
5614
5204
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5615
5205
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
5616
5206
|
return /* @__PURE__ */ jsxs32(
|
|
@@ -5633,7 +5223,7 @@ var CarouselPrevious = React38.forwardRef((_a, ref) => {
|
|
|
5633
5223
|
);
|
|
5634
5224
|
});
|
|
5635
5225
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
5636
|
-
var CarouselNext =
|
|
5226
|
+
var CarouselNext = React37.forwardRef(
|
|
5637
5227
|
(_a, ref) => {
|
|
5638
5228
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5639
5229
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
@@ -5660,11 +5250,11 @@ var CarouselNext = React38.forwardRef(
|
|
|
5660
5250
|
CarouselNext.displayName = "CarouselNext";
|
|
5661
5251
|
|
|
5662
5252
|
// src/components/DesignElements/checkbox.tsx
|
|
5663
|
-
import * as
|
|
5253
|
+
import * as React38 from "react";
|
|
5664
5254
|
import * as CheckboxPrimitive2 from "@radix-ui/react-checkbox";
|
|
5665
5255
|
import { Check as Check7 } from "lucide-react";
|
|
5666
5256
|
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
5667
|
-
var Checkbox2 =
|
|
5257
|
+
var Checkbox2 = React38.forwardRef((_a, ref) => {
|
|
5668
5258
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5669
5259
|
return /* @__PURE__ */ jsx99(
|
|
5670
5260
|
CheckboxPrimitive2.Root,
|
|
@@ -5790,7 +5380,7 @@ var InfoBox = ({ title, text }) => {
|
|
|
5790
5380
|
};
|
|
5791
5381
|
|
|
5792
5382
|
// src/components/DesignElements/input.tsx
|
|
5793
|
-
import * as
|
|
5383
|
+
import * as React39 from "react";
|
|
5794
5384
|
import { cva as cva10 } from "class-variance-authority";
|
|
5795
5385
|
import { jsx as jsx103, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
5796
5386
|
var designInputVariants = cva10(
|
|
@@ -5808,7 +5398,7 @@ var designInputVariants = cva10(
|
|
|
5808
5398
|
}
|
|
5809
5399
|
}
|
|
5810
5400
|
);
|
|
5811
|
-
var DesignInput =
|
|
5401
|
+
var DesignInput = React39.forwardRef(
|
|
5812
5402
|
(_a, ref) => {
|
|
5813
5403
|
var _b = _a, { className, type, variant } = _b, props = __objRest(_b, ["className", "type", "variant"]);
|
|
5814
5404
|
return /* @__PURE__ */ jsxs36("div", { className: "relative", children: [
|
|
@@ -5894,11 +5484,11 @@ var NoResults = () => {
|
|
|
5894
5484
|
};
|
|
5895
5485
|
|
|
5896
5486
|
// src/components/DesignElements/radio-group.tsx
|
|
5897
|
-
import * as
|
|
5487
|
+
import * as React40 from "react";
|
|
5898
5488
|
import * as RadioGroupPrimitive2 from "@radix-ui/react-radio-group";
|
|
5899
5489
|
import { Circle as Circle5 } from "lucide-react";
|
|
5900
5490
|
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
5901
|
-
var DesignRadioGroup =
|
|
5491
|
+
var DesignRadioGroup = React40.forwardRef((_a, ref) => {
|
|
5902
5492
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5903
5493
|
return /* @__PURE__ */ jsx107(
|
|
5904
5494
|
RadioGroupPrimitive2.Root,
|
|
@@ -5910,7 +5500,7 @@ var DesignRadioGroup = React41.forwardRef((_a, ref) => {
|
|
|
5910
5500
|
);
|
|
5911
5501
|
});
|
|
5912
5502
|
DesignRadioGroup.displayName = RadioGroupPrimitive2.Root.displayName;
|
|
5913
|
-
var DesignRadioGroupItem =
|
|
5503
|
+
var DesignRadioGroupItem = React40.forwardRef((_a, ref) => {
|
|
5914
5504
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
5915
5505
|
return /* @__PURE__ */ jsx107(
|
|
5916
5506
|
RadioGroupPrimitive2.Item,
|
|
@@ -6110,10 +5700,10 @@ var DesignSimpleTag = ({
|
|
|
6110
5700
|
};
|
|
6111
5701
|
|
|
6112
5702
|
// src/components/DesignElements/switch.tsx
|
|
6113
|
-
import * as
|
|
5703
|
+
import * as React41 from "react";
|
|
6114
5704
|
import * as SwitchPrimitives2 from "@radix-ui/react-switch";
|
|
6115
5705
|
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
6116
|
-
var DesignSwitch =
|
|
5706
|
+
var DesignSwitch = React41.forwardRef((_a, ref) => {
|
|
6117
5707
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6118
5708
|
return /* @__PURE__ */ jsx110(
|
|
6119
5709
|
SwitchPrimitives2.Root,
|
|
@@ -7573,7 +7163,7 @@ import { Fragment as Fragment9 } from "react";
|
|
|
7573
7163
|
import { Dialog as Dialog5, Transition as Transition3 } from "@headlessui/react";
|
|
7574
7164
|
import { XMarkIcon as XMarkIcon4 } from "@heroicons/react/24/outline";
|
|
7575
7165
|
import { useState as useState14, useEffect as useEffect8 } from "react";
|
|
7576
|
-
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight5 } from "lucide-react";
|
|
7166
|
+
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight5, RotateCw, RotateCcw } from "lucide-react";
|
|
7577
7167
|
import { jsx as jsx131, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7578
7168
|
var GalleryCarouselOpen = ({
|
|
7579
7169
|
list,
|
|
@@ -7583,6 +7173,7 @@ var GalleryCarouselOpen = ({
|
|
|
7583
7173
|
}) => {
|
|
7584
7174
|
const [defaultPhoto, setDefaultPhoto] = useState14(currentPhoto);
|
|
7585
7175
|
const [text, setDefaultText] = useState14("");
|
|
7176
|
+
const [rotation, setRotation] = useState14(0);
|
|
7586
7177
|
useEffect8(() => {
|
|
7587
7178
|
setDefaultPhoto(currentPhoto);
|
|
7588
7179
|
}, [currentPhoto]);
|
|
@@ -7643,37 +7234,47 @@ var GalleryCarouselOpen = ({
|
|
|
7643
7234
|
]
|
|
7644
7235
|
}
|
|
7645
7236
|
) }),
|
|
7646
|
-
/* @__PURE__ */ jsx131("div", { className: "mx-20 w-full items-center z-30 cursor-default ", children: /* @__PURE__ */ jsxs57("div", { className: "flex
|
|
7647
|
-
/* @__PURE__ */
|
|
7648
|
-
"button",
|
|
7649
|
-
{
|
|
7650
|
-
type: "button",
|
|
7651
|
-
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40 ",
|
|
7652
|
-
onClick: handlePrevious,
|
|
7653
|
-
children: /* @__PURE__ */ jsx131(ChevronLeft2, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
7654
|
-
}
|
|
7655
|
-
),
|
|
7656
|
-
/* @__PURE__ */ jsxs57("div", { className: "w-full flex-col flex items-center justify-center", children: [
|
|
7237
|
+
/* @__PURE__ */ jsx131("div", { className: "mx-20 w-full items-center z-30 cursor-default ", children: /* @__PURE__ */ jsxs57("div", { className: "flex flex-col", children: [
|
|
7238
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex justify-between items-center w-full ", children: [
|
|
7657
7239
|
/* @__PURE__ */ jsx131(
|
|
7658
|
-
"
|
|
7240
|
+
"button",
|
|
7659
7241
|
{
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
className: "
|
|
7242
|
+
type: "button",
|
|
7243
|
+
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40 ",
|
|
7244
|
+
onClick: handlePrevious,
|
|
7245
|
+
children: /* @__PURE__ */ jsx131(ChevronLeft2, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white", onClick: () => setRotation(0) })
|
|
7664
7246
|
}
|
|
7665
7247
|
),
|
|
7666
|
-
/* @__PURE__ */
|
|
7248
|
+
/* @__PURE__ */ jsxs57("div", { className: "w-full flex-col flex justify-center items-center", children: [
|
|
7249
|
+
/* @__PURE__ */ jsx131(
|
|
7250
|
+
"img",
|
|
7251
|
+
{
|
|
7252
|
+
src: defaultPhoto.imageUrl,
|
|
7253
|
+
alt: "Description",
|
|
7254
|
+
style: { maxWidth: "100", maxHeight: "100%", transform: `rotate(${rotation}deg)` },
|
|
7255
|
+
className: " p-4"
|
|
7256
|
+
}
|
|
7257
|
+
),
|
|
7258
|
+
/* @__PURE__ */ jsx131(Body16, { className: "z-40 text-white", children: text })
|
|
7259
|
+
] }),
|
|
7260
|
+
/* @__PURE__ */ jsx131(
|
|
7261
|
+
"button",
|
|
7262
|
+
{
|
|
7263
|
+
type: "button",
|
|
7264
|
+
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40",
|
|
7265
|
+
onClick: handleNext,
|
|
7266
|
+
children: /* @__PURE__ */ jsx131(ChevronRight5, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white", onClick: () => setRotation(0) })
|
|
7267
|
+
}
|
|
7268
|
+
)
|
|
7667
7269
|
] }),
|
|
7668
|
-
/* @__PURE__ */
|
|
7669
|
-
"
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
)
|
|
7270
|
+
/* @__PURE__ */ jsxs57("div", { className: "gap-2 flex flex-row", children: [
|
|
7271
|
+
/* @__PURE__ */ jsx131(RotateCcw, { className: "h-6 w-6 text-white cursor-pointer", onClick: () => {
|
|
7272
|
+
setRotation(rotation - 90);
|
|
7273
|
+
} }),
|
|
7274
|
+
/* @__PURE__ */ jsx131(RotateCw, { className: "h-6 w-6 text-white cursor-pointer", onClick: () => {
|
|
7275
|
+
setRotation(rotation + 90);
|
|
7276
|
+
} })
|
|
7277
|
+
] })
|
|
7677
7278
|
] }) })
|
|
7678
7279
|
] }) })
|
|
7679
7280
|
] }) });
|
|
@@ -7723,7 +7324,7 @@ import { jsx as jsx133 } from "react/jsx-runtime";
|
|
|
7723
7324
|
var OldButton = ({
|
|
7724
7325
|
label,
|
|
7725
7326
|
appearance,
|
|
7726
|
-
compact
|
|
7327
|
+
compact = false,
|
|
7727
7328
|
handleClick,
|
|
7728
7329
|
loading = false,
|
|
7729
7330
|
type
|
|
@@ -7736,11 +7337,11 @@ var OldButton = ({
|
|
|
7736
7337
|
"flex w-full justify-center lg:w-auto text-center uppercase tracking-wide font-semibold text-base md:text-sm border-2 rounded-md",
|
|
7737
7338
|
// Full-size button
|
|
7738
7339
|
{
|
|
7739
|
-
"px-8 py-4":
|
|
7340
|
+
"px-8 py-4": compact === false
|
|
7740
7341
|
},
|
|
7741
7342
|
// Compact button
|
|
7742
7343
|
{
|
|
7743
|
-
"px-6 py-2":
|
|
7344
|
+
"px-6 py-2": compact === true
|
|
7744
7345
|
},
|
|
7745
7346
|
// Specific to when the button is fully dark
|
|
7746
7347
|
{
|
|
@@ -7767,7 +7368,7 @@ var OldButton = ({
|
|
|
7767
7368
|
// src/components/Elements/button-link.tsx
|
|
7768
7369
|
import classNames5 from "classnames";
|
|
7769
7370
|
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
7770
|
-
var ButtonContent = ({ button, appearance, compact
|
|
7371
|
+
var ButtonContent = ({ button, appearance, compact }) => {
|
|
7771
7372
|
return /* @__PURE__ */ jsx134(
|
|
7772
7373
|
"div",
|
|
7773
7374
|
{
|
|
@@ -7776,11 +7377,11 @@ var ButtonContent = ({ button, appearance, compact: compact2 }) => {
|
|
|
7776
7377
|
"block mr-4 w-full lg:w-auto text-center uppercase tracking-wide font-semibold text-base md:text-sm border-2 rounded-md",
|
|
7777
7378
|
// Full-size button
|
|
7778
7379
|
{
|
|
7779
|
-
"px-8 py-4":
|
|
7380
|
+
"px-8 py-4": compact === false
|
|
7780
7381
|
},
|
|
7781
7382
|
// Compact button
|
|
7782
7383
|
{
|
|
7783
|
-
"px-6 py-2":
|
|
7384
|
+
"px-6 py-2": compact === true
|
|
7784
7385
|
},
|
|
7785
7386
|
// Specific to when the button is fully dark
|
|
7786
7387
|
{
|
|
@@ -7806,9 +7407,9 @@ var ButtonContent = ({ button, appearance, compact: compact2 }) => {
|
|
|
7806
7407
|
var ButtonLink = ({
|
|
7807
7408
|
button,
|
|
7808
7409
|
appearance,
|
|
7809
|
-
compact
|
|
7410
|
+
compact = false
|
|
7810
7411
|
}) => {
|
|
7811
|
-
return /* @__PURE__ */ jsx134(ButtonContent, { button, appearance, compact
|
|
7412
|
+
return /* @__PURE__ */ jsx134(ButtonContent, { button, appearance, compact });
|
|
7812
7413
|
};
|
|
7813
7414
|
|
|
7814
7415
|
// src/components/Elements/Error.tsx
|