@cupcodev/ui 1.0.2 → 1.0.7
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/README.md +144 -93
- package/dist/{charts-KwYmX5He.d.cts → charts-DqY2Q-7w.d.cts} +8 -8
- package/dist/{charts-KwYmX5He.d.ts → charts-DqY2Q-7w.d.ts} +8 -8
- package/dist/charts.cjs +1 -1
- package/dist/charts.d.cts +1 -1
- package/dist/charts.d.ts +1 -1
- package/dist/charts.js +0 -1
- package/dist/index.cjs +1154 -976
- package/dist/index.d.cts +70 -55
- package/dist/index.d.ts +70 -55
- package/dist/index.js +1126 -949
- package/package.json +166 -157
- package/styles/base.css +24 -0
- package/styles/dock.css +875 -858
- package/styles/global.css +1192 -1190
- package/styles/index.css +3 -0
- package/styles/tokens.css +305 -305
- package/tailwind-preset.cjs +192 -192
- package/dist/charts 2.cjs +0 -500
- package/dist/charts 2.js +0 -454
- package/dist/charts-KwYmX5He.d 2.cts +0 -97
- package/dist/charts-KwYmX5He.d 2.ts +0 -97
- package/dist/charts.cjs 2.map +0 -1
- package/dist/charts.cjs.map +0 -1
- package/dist/charts.d 2.cts +0 -11
- package/dist/charts.d 2.ts +0 -11
- package/dist/charts.js 2.map +0 -1
- package/dist/charts.js.map +0 -1
- package/dist/index 2.cjs +0 -6568
- package/dist/index 2.js +0 -6207
- package/dist/index.cjs 2.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d 2.cts +0 -1019
- package/dist/index.d 2.ts +0 -1019
- package/dist/index.js 2.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -199,6 +200,7 @@ __export(src_exports, {
|
|
|
199
200
|
Label: () => Label3,
|
|
200
201
|
LoadingScreen: () => LoadingScreen,
|
|
201
202
|
LoadingSpinner: () => LoadingSpinner,
|
|
203
|
+
MainNavbar: () => MainNavbar,
|
|
202
204
|
Menubar: () => Menubar,
|
|
203
205
|
MenubarCheckboxItem: () => MenubarCheckboxItem,
|
|
204
206
|
MenubarContent: () => MenubarContent,
|
|
@@ -345,7 +347,6 @@ __export(src_exports, {
|
|
|
345
347
|
buttonVariants: () => buttonVariants,
|
|
346
348
|
cn: () => cn,
|
|
347
349
|
getMainNavItems: () => getMainNavItems,
|
|
348
|
-
mainDockCategories: () => mainDockCategories,
|
|
349
350
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
350
351
|
parseAssetId: () => parseAssetId,
|
|
351
352
|
responsiveSizeClasses: () => responsiveSizeClasses,
|
|
@@ -782,7 +783,7 @@ function BackgroundStars() {
|
|
|
782
783
|
const { r, g, b } = hexToRgb(hex);
|
|
783
784
|
return [r / 255, g / 255, b / 255];
|
|
784
785
|
}
|
|
785
|
-
|
|
786
|
+
const comets = [];
|
|
786
787
|
function spawnComet() {
|
|
787
788
|
const angle = Math.random() * Math.PI * 2;
|
|
788
789
|
const len = rand(80, 160);
|
|
@@ -981,10 +982,10 @@ CardGlass.displayName = "CardGlass";
|
|
|
981
982
|
var import_lucide_react2 = require("lucide-react");
|
|
982
983
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
983
984
|
var variantStyles = {
|
|
984
|
-
default: "bg-muted text-cupcode-ink border-border",
|
|
985
|
+
default: "bg-muted text-cupcode-ink border-border dark:text-white dark:bg-cupcode-ink/40",
|
|
985
986
|
primary: "bg-gradient-to-r from-cupcode-pink to-cupcode-purple text-white border-transparent",
|
|
986
987
|
secondary: "bg-cupcode-purple/10 text-cupcode-purple border-cupcode-purple/20",
|
|
987
|
-
outline: "bg-transparent text-cupcode-ink border-cupcode-purple"
|
|
988
|
+
outline: "bg-transparent text-cupcode-ink border-cupcode-purple dark:text-cupcode-purple"
|
|
988
989
|
};
|
|
989
990
|
var ChipTag = ({
|
|
990
991
|
label,
|
|
@@ -1124,7 +1125,9 @@ var Dock = ({ items, className }) => {
|
|
|
1124
1125
|
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1125
1126
|
"li",
|
|
1126
1127
|
{
|
|
1127
|
-
ref: (el) =>
|
|
1128
|
+
ref: (el) => {
|
|
1129
|
+
itemsRef.current[index] = el;
|
|
1130
|
+
},
|
|
1128
1131
|
className: "relative z-10",
|
|
1129
1132
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Tooltip, { children: [
|
|
1130
1133
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
@@ -1166,7 +1169,7 @@ var import_react7 = require("react");
|
|
|
1166
1169
|
|
|
1167
1170
|
// src/hooks/useTelescupAsset.ts
|
|
1168
1171
|
var import_react6 = require("react");
|
|
1169
|
-
var API_BASE = "https://
|
|
1172
|
+
var API_BASE = "https://cdn.cupcode.com.br";
|
|
1170
1173
|
function buildTelescupImageURL(options) {
|
|
1171
1174
|
const { id, width, height, fit = "cover", format = "avif", quality = 60 } = options;
|
|
1172
1175
|
const params = new URLSearchParams({ id });
|
|
@@ -1225,21 +1228,109 @@ function parseAssetId(input) {
|
|
|
1225
1228
|
|
|
1226
1229
|
// src/components/cupcode/DockWrapper.tsx
|
|
1227
1230
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1228
|
-
var
|
|
1231
|
+
var getImageUrl = (rawId, width = 60, height = 60, format = "avif", quality = 60) => {
|
|
1232
|
+
const id = parseAssetId(rawId);
|
|
1233
|
+
if (!id) return void 0;
|
|
1234
|
+
return buildTelescupImageURL({ id, width, height, fit: "cover", format, quality });
|
|
1235
|
+
};
|
|
1236
|
+
var DockCardIcon = ({ card }) => {
|
|
1237
|
+
const url = getImageUrl(card.iconApiId, 64, 64, card.iconFormat, card.iconQuality);
|
|
1238
|
+
if (!url) return null;
|
|
1239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1240
|
+
"img",
|
|
1241
|
+
{
|
|
1242
|
+
className: "icon",
|
|
1243
|
+
src: url,
|
|
1244
|
+
loading: "lazy",
|
|
1245
|
+
decoding: "async",
|
|
1246
|
+
alt: card.title
|
|
1247
|
+
}
|
|
1248
|
+
);
|
|
1249
|
+
};
|
|
1250
|
+
var DockCategoryBg = ({ apiIdOrUrl, alt }) => {
|
|
1251
|
+
const url = getImageUrl(apiIdOrUrl, 90, 90);
|
|
1252
|
+
const fallbackText = (alt == null ? void 0 : alt.trim().slice(0, 1).toUpperCase()) || "\u2022";
|
|
1253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1254
|
+
"div",
|
|
1255
|
+
{
|
|
1256
|
+
className: `bg-img-menu-fix-mob${url ? " has-bg" : " dock-fallback"}`,
|
|
1257
|
+
"aria-label": alt,
|
|
1258
|
+
role: "img",
|
|
1259
|
+
style: {
|
|
1260
|
+
backgroundImage: url ? `url(${url})` : void 0,
|
|
1261
|
+
backgroundSize: "contain",
|
|
1262
|
+
backgroundPosition: "center",
|
|
1263
|
+
backgroundRepeat: "no-repeat"
|
|
1264
|
+
},
|
|
1265
|
+
children: !url ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "dock-fallback-icon", "aria-hidden": "true", children: fallbackText }) : null
|
|
1266
|
+
}
|
|
1267
|
+
);
|
|
1268
|
+
};
|
|
1269
|
+
var DockWrapper = ({ categories, activeCategoryId }) => {
|
|
1229
1270
|
const rootRef = (0, import_react7.useRef)(null);
|
|
1230
1271
|
const timeoutsRef = (0, import_react7.useRef)([]);
|
|
1231
1272
|
const listenersRef = (0, import_react7.useRef)([]);
|
|
1273
|
+
const sortedCategories = (0, import_react7.useMemo)(
|
|
1274
|
+
() => [...categories].sort((a, b) => a.order - b.order),
|
|
1275
|
+
[categories]
|
|
1276
|
+
);
|
|
1277
|
+
const lastInteractiveId = (0, import_react7.useMemo)(() => {
|
|
1278
|
+
for (let i = sortedCategories.length - 1; i >= 0; i -= 1) {
|
|
1279
|
+
const candidate = sortedCategories[i];
|
|
1280
|
+
if (candidate && candidate.type !== "divider") {
|
|
1281
|
+
return candidate.id;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
return void 0;
|
|
1285
|
+
}, [sortedCategories]);
|
|
1232
1286
|
(0, import_react7.useEffect)(() => {
|
|
1287
|
+
var _a;
|
|
1233
1288
|
const root = rootRef.current;
|
|
1234
1289
|
if (!root) return;
|
|
1235
1290
|
const $ = (sel) => root.querySelector(sel);
|
|
1236
|
-
const $$ = (sel) => Array.from(root.querySelectorAll(sel));
|
|
1237
1291
|
const tabbar = $(".tabbar");
|
|
1238
1292
|
const dock = $(".dock");
|
|
1239
1293
|
const listMenuShow = $(".list-menu-mob-show");
|
|
1240
1294
|
const tabbarUl = root.querySelector(".tabbar ul");
|
|
1241
|
-
const
|
|
1295
|
+
const INTERACTIVE_SELECTOR = '.tab-style1 li[data-divider="false"]';
|
|
1296
|
+
const getDockItems = () => Array.from(root.querySelectorAll(INTERACTIVE_SELECTOR));
|
|
1297
|
+
const dockItems = getDockItems();
|
|
1242
1298
|
if (!tabbar || !dock || !listMenuShow || !tabbarUl || dockItems.length === 0) return;
|
|
1299
|
+
const persistentId = (_a = activeCategoryId != null ? activeCategoryId : lastInteractiveId) != null ? _a : null;
|
|
1300
|
+
let openItem = null;
|
|
1301
|
+
let latestToggleToken = null;
|
|
1302
|
+
const persistentSelector = persistentId != null ? `${INTERACTIVE_SELECTOR}[data-cat-id="${persistentId}"]` : null;
|
|
1303
|
+
const getPersistentItem = () => {
|
|
1304
|
+
if (persistentSelector) {
|
|
1305
|
+
const candidate = root.querySelector(persistentSelector);
|
|
1306
|
+
if (candidate) return candidate;
|
|
1307
|
+
}
|
|
1308
|
+
if (lastInteractiveId) {
|
|
1309
|
+
return root.querySelector(
|
|
1310
|
+
`${INTERACTIVE_SELECTOR}[data-cat-id="${lastInteractiveId}"]`
|
|
1311
|
+
);
|
|
1312
|
+
}
|
|
1313
|
+
return null;
|
|
1314
|
+
};
|
|
1315
|
+
const clearPersistentHighlight = () => {
|
|
1316
|
+
const persistent = getPersistentItem();
|
|
1317
|
+
if (!persistent) return;
|
|
1318
|
+
delete persistent.dataset.persistent;
|
|
1319
|
+
persistent.removeAttribute("aria-current");
|
|
1320
|
+
};
|
|
1321
|
+
const ensurePersistentHighlight = () => {
|
|
1322
|
+
if (openItem) return;
|
|
1323
|
+
const persistent = getPersistentItem();
|
|
1324
|
+
if (persistent) {
|
|
1325
|
+
persistent.dataset.persistent = "true";
|
|
1326
|
+
persistent.setAttribute("aria-current", "page");
|
|
1327
|
+
}
|
|
1328
|
+
const items = getDockItems();
|
|
1329
|
+
const fallback = items.length > 0 ? items[items.length - 1] : null;
|
|
1330
|
+
const target = persistent != null ? persistent : fallback;
|
|
1331
|
+
if (!target) return;
|
|
1332
|
+
requestAnimationFrame(() => moveSliderTo(target));
|
|
1333
|
+
};
|
|
1243
1334
|
const tip = document.createElement("div");
|
|
1244
1335
|
tip.id = "dock-tip";
|
|
1245
1336
|
Object.assign(tip.style, {
|
|
@@ -1449,6 +1540,19 @@ var DockWrapper = ({ categories }) => {
|
|
|
1449
1540
|
submenuStack.style.left = `${offsetX}px`;
|
|
1450
1541
|
submenuStack.style.top = `-${submenuStack.offsetHeight + 10}px`;
|
|
1451
1542
|
}
|
|
1543
|
+
const getMenuFor = (item) => {
|
|
1544
|
+
if (!item) return null;
|
|
1545
|
+
const dataWhere = item.getAttribute("data-where");
|
|
1546
|
+
if (!dataWhere) return null;
|
|
1547
|
+
return root.querySelector(
|
|
1548
|
+
`.mob-list-menu[data-tagget="${dataWhere}"]`
|
|
1549
|
+
);
|
|
1550
|
+
};
|
|
1551
|
+
const setTabbarTheme = (slug) => {
|
|
1552
|
+
if (!tabbar) return;
|
|
1553
|
+
const base = tabbar.className.split(" ").filter((c) => !c.endsWith("-style")).join(" ").trim() || "tabbar tab-style1";
|
|
1554
|
+
tabbar.className = slug ? `${base} ${slug}-style` : base;
|
|
1555
|
+
};
|
|
1452
1556
|
function openMenu(menu) {
|
|
1453
1557
|
if (!menu) return;
|
|
1454
1558
|
menu.classList.remove("hide");
|
|
@@ -1490,107 +1594,138 @@ var DockWrapper = ({ categories }) => {
|
|
|
1490
1594
|
callback == null ? void 0 : callback();
|
|
1491
1595
|
}, total);
|
|
1492
1596
|
}
|
|
1493
|
-
const
|
|
1494
|
-
var
|
|
1597
|
+
const hideBootstrapTooltip = (el) => {
|
|
1598
|
+
var _a2, _b;
|
|
1599
|
+
const tooltip = ((_b = (_a2 = window.bootstrap) == null ? void 0 : _a2.Tooltip) == null ? void 0 : _b.getInstance) ? window.bootstrap.Tooltip.getInstance(el) : null;
|
|
1600
|
+
tooltip == null ? void 0 : tooltip.hide();
|
|
1601
|
+
};
|
|
1602
|
+
const openMenuForItem = (item, menu) => {
|
|
1603
|
+
clearPersistentHighlight();
|
|
1604
|
+
openItem = item;
|
|
1605
|
+
item.classList.add("active");
|
|
1606
|
+
item.dataset.menuOpen = "true";
|
|
1607
|
+
listMenuShow.classList.add("show");
|
|
1608
|
+
tabbar.classList.add("is-active-menu");
|
|
1609
|
+
dock.classList.add("dock-open");
|
|
1610
|
+
setTabbarTheme(item.getAttribute("data-where"));
|
|
1611
|
+
openMenu(menu);
|
|
1612
|
+
positionSubmenuFor(item, menu);
|
|
1495
1613
|
moveSliderTo(item);
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1614
|
+
latestToggleToken = null;
|
|
1615
|
+
};
|
|
1616
|
+
const closeActiveMenu = (opts = {}) => {
|
|
1617
|
+
var _a2;
|
|
1618
|
+
if (!opts.onClosed) {
|
|
1619
|
+
latestToggleToken = null;
|
|
1620
|
+
}
|
|
1621
|
+
const itemToClose = openItem;
|
|
1622
|
+
if (!itemToClose) {
|
|
1623
|
+
if (!opts.preserveWrapper) ensurePersistentHighlight();
|
|
1624
|
+
(_a2 = opts.onClosed) == null ? void 0 : _a2.call(opts);
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
1627
|
+
const menu = getMenuFor(itemToClose);
|
|
1628
|
+
openItem = null;
|
|
1629
|
+
itemToClose.classList.remove("active");
|
|
1630
|
+
delete itemToClose.dataset.menuOpen;
|
|
1631
|
+
const finalize = () => {
|
|
1632
|
+
var _a3;
|
|
1633
|
+
if (!opts.preserveWrapper) {
|
|
1509
1634
|
listMenuShow.classList.remove("show");
|
|
1510
1635
|
tabbar.classList.remove("is-active-menu");
|
|
1511
1636
|
dock.classList.remove("dock-open");
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
});
|
|
1515
|
-
} else {
|
|
1516
|
-
const currentActiveItem = root.querySelector(
|
|
1517
|
-
'.tab-style1 li.active[data-has-cards="true"]'
|
|
1518
|
-
);
|
|
1519
|
-
if (currentActiveItem && currentActiveItem !== item) {
|
|
1520
|
-
const currentWhere = currentActiveItem.getAttribute("data-where");
|
|
1521
|
-
const currentMenu = root.querySelector(
|
|
1522
|
-
`.mob-list-menu[data-tagget="${currentWhere}"]`
|
|
1523
|
-
);
|
|
1524
|
-
currentActiveItem.classList.remove("active");
|
|
1525
|
-
closeMenu(currentMenu, () => {
|
|
1526
|
-
item.classList.add("active");
|
|
1527
|
-
tabbar.classList.add("is-active-menu");
|
|
1528
|
-
dock.classList.add("dock-open");
|
|
1529
|
-
listMenuShow.classList.add("show");
|
|
1530
|
-
openMenu(targetMenu);
|
|
1531
|
-
positionSubmenuFor(item, targetMenu);
|
|
1532
|
-
const resetClass = tabbar.className.split(" ").filter((c) => !c.endsWith("-style")).join(" ");
|
|
1533
|
-
tabbar.className = `${resetClass} ${dataWhere}-style`;
|
|
1534
|
-
});
|
|
1535
|
-
} else {
|
|
1536
|
-
item.classList.add("active");
|
|
1537
|
-
tabbar.classList.add("is-active-menu");
|
|
1538
|
-
dock.classList.add("dock-open");
|
|
1539
|
-
listMenuShow.classList.add("show");
|
|
1540
|
-
openMenu(targetMenu);
|
|
1541
|
-
positionSubmenuFor(item, targetMenu);
|
|
1542
|
-
const resetClass = tabbar.className.split(" ").filter((c) => !c.endsWith("-style")).join(" ");
|
|
1543
|
-
tabbar.className = `${resetClass} ${dataWhere}-style`;
|
|
1637
|
+
setTabbarTheme(null);
|
|
1638
|
+
ensurePersistentHighlight();
|
|
1544
1639
|
}
|
|
1640
|
+
(_a3 = opts.onClosed) == null ? void 0 : _a3.call(opts);
|
|
1641
|
+
};
|
|
1642
|
+
closeMenu(menu, finalize);
|
|
1643
|
+
};
|
|
1644
|
+
const toggleItem = (item) => {
|
|
1645
|
+
const hasCards = item.getAttribute("data-has-cards") === "true";
|
|
1646
|
+
hideBootstrapTooltip(item);
|
|
1647
|
+
if (!hasCards) {
|
|
1648
|
+
clearPersistentHighlight();
|
|
1649
|
+
moveSliderTo(item);
|
|
1650
|
+
ensurePersistentHighlight();
|
|
1651
|
+
return;
|
|
1652
|
+
}
|
|
1653
|
+
const menu = getMenuFor(item);
|
|
1654
|
+
if (!menu) return;
|
|
1655
|
+
if (item.dataset.menuOpen === "true") {
|
|
1656
|
+
latestToggleToken = null;
|
|
1657
|
+
closeActiveMenu();
|
|
1658
|
+
return;
|
|
1659
|
+
}
|
|
1660
|
+
const token = Symbol("dock-toggle");
|
|
1661
|
+
latestToggleToken = token;
|
|
1662
|
+
const activate = () => {
|
|
1663
|
+
if (latestToggleToken !== token) return;
|
|
1664
|
+
openMenuForItem(item, menu);
|
|
1665
|
+
};
|
|
1666
|
+
if (openItem) {
|
|
1667
|
+
closeActiveMenu({ preserveWrapper: true, onClosed: activate });
|
|
1668
|
+
} else {
|
|
1669
|
+
activate();
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
const onItemClick = (item) => (event) => {
|
|
1673
|
+
if (item.getAttribute("data-has-cards") === "true") {
|
|
1674
|
+
event.preventDefault();
|
|
1675
|
+
}
|
|
1676
|
+
toggleItem(item);
|
|
1677
|
+
};
|
|
1678
|
+
const onItemKeyDown = (item) => (event) => {
|
|
1679
|
+
if (!(event instanceof KeyboardEvent)) return;
|
|
1680
|
+
if (event.key === " " || event.key === "Enter") {
|
|
1681
|
+
event.preventDefault();
|
|
1682
|
+
toggleItem(item);
|
|
1545
1683
|
}
|
|
1546
1684
|
};
|
|
1547
|
-
dockItems.forEach((item) =>
|
|
1685
|
+
dockItems.forEach((item) => {
|
|
1686
|
+
on(item, "click", onItemClick(item));
|
|
1687
|
+
on(item, "keydown", onItemKeyDown(item));
|
|
1688
|
+
});
|
|
1548
1689
|
const clickOutside = (e) => {
|
|
1549
1690
|
if (!tabbar || !listMenuShow) return;
|
|
1550
1691
|
const target = e.target;
|
|
1551
1692
|
const isInside = tabbar.contains(target) || listMenuShow.contains(target);
|
|
1552
1693
|
if (!isInside) {
|
|
1553
|
-
|
|
1554
|
-
'.tab-style1 li.active[data-has-cards="true"]'
|
|
1555
|
-
);
|
|
1556
|
-
if (currentActiveItem) {
|
|
1557
|
-
const currentWhere = currentActiveItem.getAttribute("data-where");
|
|
1558
|
-
const currentMenu = root.querySelector(
|
|
1559
|
-
`.mob-list-menu[data-tagget="${currentWhere}"]`
|
|
1560
|
-
);
|
|
1561
|
-
closeMenu(currentMenu, () => {
|
|
1562
|
-
$$(".tab-style1 li").forEach((el) => el.classList.remove("active"));
|
|
1563
|
-
listMenuShow.classList.remove("show");
|
|
1564
|
-
tabbar.classList.remove("is-active-menu");
|
|
1565
|
-
dock.classList.remove("dock-open");
|
|
1566
|
-
tabbar.className = "tabbar tab-style1";
|
|
1567
|
-
const firstItem = root.querySelector(".tab-style1 li");
|
|
1568
|
-
if (firstItem) moveSliderTo(firstItem);
|
|
1569
|
-
});
|
|
1570
|
-
currentActiveItem.classList.remove("active");
|
|
1571
|
-
}
|
|
1694
|
+
closeActiveMenu();
|
|
1572
1695
|
}
|
|
1573
1696
|
};
|
|
1574
1697
|
on(document, "click", clickOutside);
|
|
1575
1698
|
const onResize = () => {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1699
|
+
if (openItem) {
|
|
1700
|
+
moveSliderTo(openItem);
|
|
1701
|
+
const menu = getMenuFor(openItem);
|
|
1702
|
+
if (menu && menu.classList.contains("show")) {
|
|
1703
|
+
positionSubmenuFor(openItem, menu);
|
|
1704
|
+
}
|
|
1705
|
+
return;
|
|
1706
|
+
}
|
|
1707
|
+
const persistent = getPersistentItem();
|
|
1708
|
+
if (persistent) {
|
|
1709
|
+
moveSliderTo(persistent);
|
|
1710
|
+
return;
|
|
1584
1711
|
}
|
|
1712
|
+
const items = getDockItems();
|
|
1713
|
+
const lastItem = items.length > 0 ? items[items.length - 1] : null;
|
|
1714
|
+
if (lastItem) moveSliderTo(lastItem);
|
|
1585
1715
|
};
|
|
1586
1716
|
on(window, "resize", onResize);
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1717
|
+
getDockItems().forEach((el) => {
|
|
1718
|
+
el.classList.remove("active");
|
|
1719
|
+
delete el.dataset.menuOpen;
|
|
1720
|
+
delete el.dataset.persistent;
|
|
1721
|
+
el.removeAttribute("aria-current");
|
|
1722
|
+
});
|
|
1723
|
+
setTabbarTheme(null);
|
|
1724
|
+
requestAnimationFrame(() => {
|
|
1725
|
+
ensurePersistentHighlight();
|
|
1726
|
+
});
|
|
1592
1727
|
return () => {
|
|
1593
|
-
|
|
1728
|
+
clearAllTimeouts();
|
|
1594
1729
|
cleanupListeners();
|
|
1595
1730
|
tabbarUl.removeEventListener("mouseover", _tipOver);
|
|
1596
1731
|
tabbarUl.removeEventListener("mousemove", _tipMove);
|
|
@@ -1598,129 +1733,120 @@ var DockWrapper = ({ categories }) => {
|
|
|
1598
1733
|
window.removeEventListener("scroll", _tipOnScroll);
|
|
1599
1734
|
tip.remove();
|
|
1600
1735
|
};
|
|
1601
|
-
}, [
|
|
1736
|
+
}, [sortedCategories, activeCategoryId, lastInteractiveId]);
|
|
1602
1737
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref: rootRef, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "dock", children: [
|
|
1603
1738
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "tabbar tab-style1", children: [
|
|
1604
1739
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "glass-filter" }),
|
|
1605
1740
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "glass-overlay" }),
|
|
1606
1741
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "glass-specular" }),
|
|
1607
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "flex-center", children:
|
|
1608
|
-
var _a
|
|
1742
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "flex-center", children: sortedCategories.map((cat) => {
|
|
1743
|
+
var _a;
|
|
1744
|
+
if (cat.type === "divider") {
|
|
1745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1746
|
+
"li",
|
|
1747
|
+
{
|
|
1748
|
+
className: "dock-divider",
|
|
1749
|
+
"data-divider": "true",
|
|
1750
|
+
"aria-hidden": "true"
|
|
1751
|
+
},
|
|
1752
|
+
cat.id
|
|
1753
|
+
);
|
|
1754
|
+
}
|
|
1755
|
+
const hasCards = (((_a = cat.cards) == null ? void 0 : _a.length) || 0) > 0;
|
|
1756
|
+
const link = cat.href;
|
|
1757
|
+
const isCurrent = cat.id === activeCategoryId;
|
|
1609
1758
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1610
1759
|
"li",
|
|
1611
1760
|
{
|
|
1612
|
-
className: `dock-tooltip ${cat.slug}`,
|
|
1761
|
+
className: `dock-tooltip ${cat.slug}${isCurrent ? " is-current" : ""}`,
|
|
1762
|
+
"data-cat-id": cat.id,
|
|
1763
|
+
"data-divider": "false",
|
|
1613
1764
|
"data-where": cat.slug,
|
|
1614
|
-
"data-has-cards":
|
|
1615
|
-
"data-tip":
|
|
1765
|
+
"data-has-cards": hasCards ? "true" : "false",
|
|
1766
|
+
"data-tip": hasCards ? cat.tooltip || cat.title : void 0,
|
|
1616
1767
|
role: "button",
|
|
1617
1768
|
"aria-label": cat.title,
|
|
1618
1769
|
tabIndex: 0,
|
|
1619
1770
|
children: [
|
|
1620
|
-
((
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
})(),
|
|
1633
|
-
cat.bgImageUrl && (() => {
|
|
1634
|
-
const bgUrl = cat.bgImageUrl.startsWith("http") ? cat.bgImageUrl : buildTelescupImageURL({
|
|
1635
|
-
id: parseAssetId(cat.bgImageUrl),
|
|
1636
|
-
width: 60,
|
|
1637
|
-
height: 60,
|
|
1638
|
-
fit: "cover",
|
|
1639
|
-
format: "avif",
|
|
1640
|
-
quality: 60
|
|
1641
|
-
});
|
|
1642
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1643
|
-
"div",
|
|
1644
|
-
{
|
|
1645
|
-
className: "bg-img-menu-fix-mob",
|
|
1646
|
-
style: { backgroundImage: `url(${bgUrl})` }
|
|
1647
|
-
}
|
|
1648
|
-
);
|
|
1649
|
-
})()
|
|
1771
|
+
link && !hasCards ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1772
|
+
"a",
|
|
1773
|
+
{
|
|
1774
|
+
className: "link-absolute-menu",
|
|
1775
|
+
href: link,
|
|
1776
|
+
"data-tip": cat.tooltip || cat.title,
|
|
1777
|
+
"aria-label": cat.title,
|
|
1778
|
+
target: link.startsWith("http") ? "_blank" : void 0,
|
|
1779
|
+
rel: link.startsWith("http") ? "noopener noreferrer" : void 0
|
|
1780
|
+
}
|
|
1781
|
+
) : null,
|
|
1782
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DockCategoryBg, { apiIdOrUrl: cat.bgImageUrl, alt: cat.title })
|
|
1650
1783
|
]
|
|
1651
1784
|
},
|
|
1652
1785
|
cat.id
|
|
1653
1786
|
);
|
|
1654
1787
|
}) }),
|
|
1655
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "list-menu-mob-show", children:
|
|
1788
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "list-menu-mob-show", children: sortedCategories.filter((cat) => {
|
|
1656
1789
|
var _a;
|
|
1657
|
-
return
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
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
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
},
|
|
1718
|
-
`${cat.id}-card-${i}-btn-${idx}`
|
|
1719
|
-
);
|
|
1720
|
-
}) })
|
|
1721
|
-
] })
|
|
1722
|
-
] }, `${cat.id}-card-${i}`);
|
|
1723
|
-
}) }) }, `${cat.id}-menu`)) })
|
|
1790
|
+
return cat.type !== "divider" && (((_a = cat.cards) == null ? void 0 : _a.length) || 0) > 0;
|
|
1791
|
+
}).map((cat) => {
|
|
1792
|
+
var _a;
|
|
1793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "mob-list-menu hide", "data-tagget": cat.slug, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: `submenu-stack ${cat.slug}`, children: ((_a = cat.cards) != null ? _a : []).map((card, i) => {
|
|
1794
|
+
var _a2;
|
|
1795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1796
|
+
"div",
|
|
1797
|
+
{
|
|
1798
|
+
className: `submenu-card${card.backgroundClass ? ` ${card.backgroundClass}` : ""}`,
|
|
1799
|
+
children: [
|
|
1800
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "fold" }),
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "glass-filter" }),
|
|
1802
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "glass-overlay" }),
|
|
1803
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "glass-specular" }),
|
|
1804
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "card-content", children: [
|
|
1805
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DockCardIcon, { card }),
|
|
1806
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "text-content", children: [
|
|
1807
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "title", children: card.title }),
|
|
1808
|
+
card.description ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "description", children: card.description }) : null
|
|
1809
|
+
] }),
|
|
1810
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "actions", children: ((_a2 = card.buttons) != null ? _a2 : []).slice(0, 2).map((btn, idx) => {
|
|
1811
|
+
var _a3, _b, _c, _d;
|
|
1812
|
+
const className = idx === 0 ? "saiba-mais" : "saiba-mais-1";
|
|
1813
|
+
if (btn.type === "popup") {
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1815
|
+
"a",
|
|
1816
|
+
{
|
|
1817
|
+
href: "#",
|
|
1818
|
+
"data-popup-id": btn.popupId,
|
|
1819
|
+
className,
|
|
1820
|
+
onClick: (e) => {
|
|
1821
|
+
e.preventDefault();
|
|
1822
|
+
if (btn.popupId) {
|
|
1823
|
+
window.dispatchEvent(new Event(`qw:open:${btn.popupId}`));
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
children: (_a3 = btn.label) != null ? _a3 : "Abrir"
|
|
1827
|
+
},
|
|
1828
|
+
`${cat.id}-card-${i}-btn-${idx}`
|
|
1829
|
+
);
|
|
1830
|
+
}
|
|
1831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1832
|
+
"a",
|
|
1833
|
+
{
|
|
1834
|
+
href: btn.href || "#",
|
|
1835
|
+
className,
|
|
1836
|
+
target: ((_b = btn.href) == null ? void 0 : _b.startsWith("http")) ? "_blank" : void 0,
|
|
1837
|
+
rel: ((_c = btn.href) == null ? void 0 : _c.startsWith("http")) ? "noopener noreferrer" : void 0,
|
|
1838
|
+
children: (_d = btn.label) != null ? _d : "Saiba mais >"
|
|
1839
|
+
},
|
|
1840
|
+
`${cat.id}-card-${i}-btn-${idx}`
|
|
1841
|
+
);
|
|
1842
|
+
}) })
|
|
1843
|
+
] })
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
`${cat.id}-card-${i}`
|
|
1847
|
+
);
|
|
1848
|
+
}) }) }, `${cat.id}-menu`);
|
|
1849
|
+
}) })
|
|
1724
1850
|
] }),
|
|
1725
1851
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { id: "lg-filter", style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("filter", { id: "lg-dist", x: "-10%", y: "-10%", width: "120%", height: "120%", children: [
|
|
1726
1852
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
@@ -1741,11 +1867,9 @@ var DockWrapper = ({ categories }) => {
|
|
|
1741
1867
|
in2: "blurred",
|
|
1742
1868
|
scale: "50",
|
|
1743
1869
|
xChannelSelector: "R",
|
|
1744
|
-
yChannelSelector: "G"
|
|
1745
|
-
result: "displaced"
|
|
1870
|
+
yChannelSelector: "G"
|
|
1746
1871
|
}
|
|
1747
|
-
)
|
|
1748
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("feComposite", { in: "displaced", in2: "SourceGraphic", operator: "atop" })
|
|
1872
|
+
)
|
|
1749
1873
|
] }) })
|
|
1750
1874
|
] }) });
|
|
1751
1875
|
};
|
|
@@ -1757,16 +1881,25 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
|
1757
1881
|
var JellyButton = (0, import_react8.forwardRef)(
|
|
1758
1882
|
({ variant = "primary", size = "md", className, children, onClick, ...props }, ref) => {
|
|
1759
1883
|
const internalRef = (0, import_react8.useRef)(null);
|
|
1760
|
-
const
|
|
1761
|
-
const rafRef = (0, import_react8.useRef)();
|
|
1884
|
+
const rafRef = (0, import_react8.useRef)(null);
|
|
1762
1885
|
const animationRef = (0, import_react8.useRef)(null);
|
|
1763
1886
|
const isAnimatingRef = (0, import_react8.useRef)(false);
|
|
1887
|
+
const setButtonRef = (node) => {
|
|
1888
|
+
internalRef.current = node;
|
|
1889
|
+
if (typeof ref === "function") {
|
|
1890
|
+
ref(node);
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
if (ref) {
|
|
1894
|
+
ref.current = node;
|
|
1895
|
+
}
|
|
1896
|
+
};
|
|
1764
1897
|
const ROTATE_LIMIT = 8;
|
|
1765
1898
|
const SMOOTHING = 0.15;
|
|
1766
1899
|
const REFLECT_SMOOTHING = 0.2;
|
|
1767
1900
|
const JELLY_DURATION = 1600;
|
|
1768
1901
|
(0, import_react8.useEffect)(() => {
|
|
1769
|
-
const button =
|
|
1902
|
+
const button = internalRef.current;
|
|
1770
1903
|
if (!button) return;
|
|
1771
1904
|
let targetRx = 0, targetRy = 0;
|
|
1772
1905
|
let currentRx = 0, currentRy = 0;
|
|
@@ -1824,7 +1957,7 @@ var JellyButton = (0, import_react8.forwardRef)(
|
|
|
1824
1957
|
return () => {
|
|
1825
1958
|
button.removeEventListener("mousemove", handleMouseMove);
|
|
1826
1959
|
button.removeEventListener("mouseleave", handleMouseLeave);
|
|
1827
|
-
if (rafRef.current) cancelAnimationFrame(rafRef.current);
|
|
1960
|
+
if (rafRef.current !== null) cancelAnimationFrame(rafRef.current);
|
|
1828
1961
|
};
|
|
1829
1962
|
}, []);
|
|
1830
1963
|
const handleClick = (e) => {
|
|
@@ -1867,10 +2000,15 @@ var JellyButton = (0, import_react8.forwardRef)(
|
|
|
1867
2000
|
}
|
|
1868
2001
|
};
|
|
1869
2002
|
const currentStyle = variantStyles3[variant];
|
|
2003
|
+
const buttonStyle = {
|
|
2004
|
+
transform: "perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1, 1)",
|
|
2005
|
+
"--rx": "50%",
|
|
2006
|
+
"--ry": "50%"
|
|
2007
|
+
};
|
|
1870
2008
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1871
2009
|
"button",
|
|
1872
2010
|
{
|
|
1873
|
-
ref:
|
|
2011
|
+
ref: setButtonRef,
|
|
1874
2012
|
onClick: handleClick,
|
|
1875
2013
|
className: cn(
|
|
1876
2014
|
baseClasses,
|
|
@@ -1878,12 +2016,7 @@ var JellyButton = (0, import_react8.forwardRef)(
|
|
|
1878
2016
|
currentStyle.base,
|
|
1879
2017
|
className
|
|
1880
2018
|
),
|
|
1881
|
-
style:
|
|
1882
|
-
transform: "perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1, 1)",
|
|
1883
|
-
// @ts-ignore
|
|
1884
|
-
"--rx": "50%",
|
|
1885
|
-
"--ry": "50%"
|
|
1886
|
-
},
|
|
2019
|
+
style: buttonStyle,
|
|
1887
2020
|
...props,
|
|
1888
2021
|
children: [
|
|
1889
2022
|
currentStyle.overlay && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: cn("absolute inset-0 pointer-events-none", currentStyle.overlay) }),
|
|
@@ -2012,7 +2145,12 @@ var HeroTitle = ({
|
|
|
2012
2145
|
className,
|
|
2013
2146
|
level = 2
|
|
2014
2147
|
}) => {
|
|
2015
|
-
const
|
|
2148
|
+
const headingTagMap = {
|
|
2149
|
+
1: "h1",
|
|
2150
|
+
2: "h2",
|
|
2151
|
+
3: "h3"
|
|
2152
|
+
};
|
|
2153
|
+
const Tag = headingTagMap[level];
|
|
2016
2154
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("space-y-3", className), children: [
|
|
2017
2155
|
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "span-destaque animate-fade-in", children: eyebrow }),
|
|
2018
2156
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Tag, { className: "font-display font-bold leading-tight animate-slide-up", children: [
|
|
@@ -2427,7 +2565,6 @@ ModalDescription.displayName = DialogPrimitive.Description.displayName;
|
|
|
2427
2565
|
// src/components/cupcode/NavbarCupcode.tsx
|
|
2428
2566
|
var React10 = __toESM(require("react"), 1);
|
|
2429
2567
|
var import_lucide_react5 = require("lucide-react");
|
|
2430
|
-
var import_react_router_dom = require("react-router-dom");
|
|
2431
2568
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2432
2569
|
var NavbarCupcode = ({
|
|
2433
2570
|
logo,
|
|
@@ -2440,48 +2577,59 @@ var NavbarCupcode = ({
|
|
|
2440
2577
|
"nav",
|
|
2441
2578
|
{
|
|
2442
2579
|
className: cn(
|
|
2443
|
-
"fixed top-0 left-0 right-0 z-
|
|
2580
|
+
"fixed top-0 left-0 right-0 z-[200] pointer-events-auto",
|
|
2444
2581
|
"glass border-b border-border",
|
|
2445
2582
|
className
|
|
2446
2583
|
),
|
|
2447
2584
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "cc-container", children: [
|
|
2448
2585
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center justify-between h-16", children: [
|
|
2449
2586
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex-shrink-0", children: logo }),
|
|
2450
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:flex items-center space-x-8", children: items.map((item, index) =>
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2587
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:flex items-center space-x-8", children: items.map((item, index) => {
|
|
2588
|
+
const key = `${item.label}-${index}`;
|
|
2589
|
+
const isActive = item.isActive;
|
|
2590
|
+
const baseClasses = cn(
|
|
2591
|
+
"flex items-center gap-2 text-sm font-semibold text-foreground",
|
|
2592
|
+
"hover:text-primary transition-colors duration-200",
|
|
2593
|
+
"relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0",
|
|
2594
|
+
"after:bg-primary after:transition-all after:duration-300",
|
|
2595
|
+
"hover:after:w-full",
|
|
2596
|
+
isActive && "text-primary after:w-full"
|
|
2597
|
+
);
|
|
2598
|
+
const handleClick = (event) => {
|
|
2599
|
+
var _a;
|
|
2600
|
+
(_a = item.onClick) == null ? void 0 : _a.call(item, event);
|
|
2601
|
+
};
|
|
2602
|
+
if (item.href.startsWith("#")) {
|
|
2603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2604
|
+
"a",
|
|
2605
|
+
{
|
|
2606
|
+
href: item.href,
|
|
2607
|
+
className: baseClasses,
|
|
2608
|
+
onClick: handleClick,
|
|
2609
|
+
"aria-current": isActive ? "page" : void 0,
|
|
2610
|
+
children: [
|
|
2611
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: item.icon }),
|
|
2612
|
+
item.label
|
|
2613
|
+
]
|
|
2614
|
+
},
|
|
2615
|
+
key
|
|
2616
|
+
);
|
|
2617
|
+
}
|
|
2618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2619
|
+
"a",
|
|
2620
|
+
{
|
|
2621
|
+
href: item.href,
|
|
2622
|
+
className: baseClasses,
|
|
2623
|
+
onClick: handleClick,
|
|
2624
|
+
"aria-current": isActive ? "page" : void 0,
|
|
2625
|
+
children: [
|
|
2626
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: item.icon }),
|
|
2627
|
+
item.label
|
|
2628
|
+
]
|
|
2629
|
+
},
|
|
2630
|
+
key
|
|
2631
|
+
);
|
|
2632
|
+
}) }),
|
|
2485
2633
|
actions && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:flex", children: actions }),
|
|
2486
2634
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2487
2635
|
"button",
|
|
@@ -2493,31 +2641,29 @@ var NavbarCupcode = ({
|
|
|
2493
2641
|
)
|
|
2494
2642
|
] }),
|
|
2495
2643
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "md:hidden py-4 space-y-3 animate-slide-up", children: [
|
|
2496
|
-
items.map((item, index) =>
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
{
|
|
2511
|
-
to: item.href,
|
|
2512
|
-
className: "flex items-center gap-2 px-4 py-2 text-sm font-semibold text-foreground hover:bg-primary/10 rounded-lg transition-colors",
|
|
2513
|
-
onClick: () => setIsOpen(false),
|
|
2514
|
-
children: [
|
|
2644
|
+
items.map((item, index) => {
|
|
2645
|
+
const key = `${item.label}-${index}`;
|
|
2646
|
+
const isActive = item.isActive;
|
|
2647
|
+
const classes = cn(
|
|
2648
|
+
"flex items-center gap-2 px-4 py-2 text-sm font-semibold text-foreground hover:bg-primary/10 rounded-lg transition-colors",
|
|
2649
|
+
isActive && "text-primary"
|
|
2650
|
+
);
|
|
2651
|
+
const handleClick = (event) => {
|
|
2652
|
+
var _a;
|
|
2653
|
+
(_a = item.onClick) == null ? void 0 : _a.call(item, event);
|
|
2654
|
+
setIsOpen(false);
|
|
2655
|
+
};
|
|
2656
|
+
if (item.href.startsWith("#")) {
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("a", { href: item.href, className: classes, onClick: handleClick, children: [
|
|
2515
2658
|
item.icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: item.icon }),
|
|
2516
2659
|
item.label
|
|
2517
|
-
]
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
|
|
2660
|
+
] }, key);
|
|
2661
|
+
}
|
|
2662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("a", { href: item.href, className: classes, onClick: handleClick, children: [
|
|
2663
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: item.icon }),
|
|
2664
|
+
item.label
|
|
2665
|
+
] }, key);
|
|
2666
|
+
}),
|
|
2521
2667
|
actions && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "px-4 pt-2", children: actions })
|
|
2522
2668
|
] })
|
|
2523
2669
|
] })
|
|
@@ -2525,16 +2671,232 @@ var NavbarCupcode = ({
|
|
|
2525
2671
|
);
|
|
2526
2672
|
};
|
|
2527
2673
|
|
|
2528
|
-
// src/components/cupcode/
|
|
2674
|
+
// src/components/cupcode/MainNavbar.tsx
|
|
2529
2675
|
var import_react13 = require("react");
|
|
2676
|
+
|
|
2677
|
+
// src/components/cupcode/TelescupImage.tsx
|
|
2530
2678
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2679
|
+
var TelescupImage = ({
|
|
2680
|
+
apiId,
|
|
2681
|
+
imageWidth,
|
|
2682
|
+
imageHeight,
|
|
2683
|
+
fit = "cover",
|
|
2684
|
+
format = "avif",
|
|
2685
|
+
quality = 60,
|
|
2686
|
+
lang = "pt-BR",
|
|
2687
|
+
alt,
|
|
2688
|
+
title,
|
|
2689
|
+
loading = "lazy",
|
|
2690
|
+
className,
|
|
2691
|
+
...props
|
|
2692
|
+
}) => {
|
|
2693
|
+
const { url, meta } = useTelescupImage(
|
|
2694
|
+
{
|
|
2695
|
+
id: apiId,
|
|
2696
|
+
width: imageWidth,
|
|
2697
|
+
height: imageHeight,
|
|
2698
|
+
fit,
|
|
2699
|
+
format,
|
|
2700
|
+
quality
|
|
2701
|
+
},
|
|
2702
|
+
lang
|
|
2703
|
+
);
|
|
2704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2705
|
+
"img",
|
|
2706
|
+
{
|
|
2707
|
+
src: url,
|
|
2708
|
+
"data-api-id": apiId,
|
|
2709
|
+
alt: alt || meta.alt || "",
|
|
2710
|
+
title: title || meta.title,
|
|
2711
|
+
loading,
|
|
2712
|
+
className,
|
|
2713
|
+
...props
|
|
2714
|
+
}
|
|
2715
|
+
);
|
|
2716
|
+
};
|
|
2717
|
+
|
|
2718
|
+
// src/components/cupcode/ThemeToggle.tsx
|
|
2719
|
+
var React11 = __toESM(require("react"), 1);
|
|
2720
|
+
var import_lucide_react6 = require("lucide-react");
|
|
2721
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2722
|
+
function resolveTheme(defaultTheme) {
|
|
2723
|
+
if (typeof document === "undefined") return defaultTheme;
|
|
2724
|
+
if (document.documentElement.classList.contains("dark")) return "dark";
|
|
2725
|
+
if (document.documentElement.classList.contains("light")) return "light";
|
|
2726
|
+
if (typeof window !== "undefined" && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
2727
|
+
return "dark";
|
|
2728
|
+
}
|
|
2729
|
+
return defaultTheme;
|
|
2730
|
+
}
|
|
2731
|
+
var ThemeToggle = ({
|
|
2732
|
+
className,
|
|
2733
|
+
theme,
|
|
2734
|
+
defaultTheme = "light",
|
|
2735
|
+
onThemeChange
|
|
2736
|
+
}) => {
|
|
2737
|
+
var _a;
|
|
2738
|
+
const [mounted, setMounted] = React11.useState(false);
|
|
2739
|
+
const [internalTheme, setInternalTheme] = React11.useState(defaultTheme);
|
|
2740
|
+
const isControlled = typeof theme !== "undefined";
|
|
2741
|
+
const activeTheme = (_a = isControlled ? theme : internalTheme) != null ? _a : defaultTheme;
|
|
2742
|
+
React11.useEffect(() => {
|
|
2743
|
+
if (!isControlled) {
|
|
2744
|
+
setInternalTheme(resolveTheme(defaultTheme));
|
|
2745
|
+
}
|
|
2746
|
+
setMounted(true);
|
|
2747
|
+
}, [defaultTheme, isControlled]);
|
|
2748
|
+
React11.useEffect(() => {
|
|
2749
|
+
if (!mounted || isControlled || typeof document === "undefined") return;
|
|
2750
|
+
document.documentElement.classList.toggle("dark", activeTheme === "dark");
|
|
2751
|
+
}, [activeTheme, isControlled, mounted]);
|
|
2752
|
+
if (!mounted) {
|
|
2753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cn("w-10 h-10 rounded-lg bg-muted", className) });
|
|
2754
|
+
}
|
|
2755
|
+
const handleToggle = () => {
|
|
2756
|
+
const nextTheme = activeTheme === "dark" ? "light" : "dark";
|
|
2757
|
+
if (!isControlled) {
|
|
2758
|
+
setInternalTheme(nextTheme);
|
|
2759
|
+
}
|
|
2760
|
+
onThemeChange == null ? void 0 : onThemeChange(nextTheme);
|
|
2761
|
+
};
|
|
2762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2763
|
+
"button",
|
|
2764
|
+
{
|
|
2765
|
+
onClick: handleToggle,
|
|
2766
|
+
className: cn(
|
|
2767
|
+
"relative inline-flex items-center justify-center w-10 h-10",
|
|
2768
|
+
"rounded-lg transition-all duration-300",
|
|
2769
|
+
"glass hover:glass-strong",
|
|
2770
|
+
"group",
|
|
2771
|
+
className
|
|
2772
|
+
),
|
|
2773
|
+
"aria-label": "Toggle theme",
|
|
2774
|
+
children: [
|
|
2775
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react6.Sun, { className: "h-5 w-5 text-cupcode-purple rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
2776
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react6.Moon, { className: "absolute h-5 w-5 text-cupcode-pink rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
2777
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "sr-only", children: [
|
|
2778
|
+
"Current theme: ",
|
|
2779
|
+
activeTheme
|
|
2780
|
+
] })
|
|
2781
|
+
]
|
|
2782
|
+
}
|
|
2783
|
+
);
|
|
2784
|
+
};
|
|
2785
|
+
|
|
2786
|
+
// src/lib/navigation.tsx
|
|
2787
|
+
var import_lucide_react7 = require("lucide-react");
|
|
2788
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2789
|
+
var getMainNavItems = () => [
|
|
2790
|
+
{
|
|
2791
|
+
label: "In\xEDcio",
|
|
2792
|
+
href: "/",
|
|
2793
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.Home, { className: "h-4 w-4" })
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
label: "Componentes",
|
|
2797
|
+
href: "/componentes",
|
|
2798
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.Layers, { className: "h-4 w-4" })
|
|
2799
|
+
},
|
|
2800
|
+
{
|
|
2801
|
+
label: "Docs",
|
|
2802
|
+
href: "/docs",
|
|
2803
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.BookOpen, { className: "h-4 w-4" })
|
|
2804
|
+
}
|
|
2805
|
+
];
|
|
2806
|
+
|
|
2807
|
+
// src/components/cupcode/MainNavbar.tsx
|
|
2808
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2809
|
+
var MainNavbar = ({
|
|
2810
|
+
ctaLabel = "Ver Componentes",
|
|
2811
|
+
ctaHref = "/componentes",
|
|
2812
|
+
pathname,
|
|
2813
|
+
onNavigate
|
|
2814
|
+
}) => {
|
|
2815
|
+
const currentPathname = (0, import_react13.useMemo)(() => {
|
|
2816
|
+
if (pathname && pathname.trim() !== "") return pathname;
|
|
2817
|
+
if (typeof window !== "undefined") return window.location.pathname || "/";
|
|
2818
|
+
return "/";
|
|
2819
|
+
}, [pathname]);
|
|
2820
|
+
const items = (0, import_react13.useMemo)(() => {
|
|
2821
|
+
const normalizedPathname = currentPathname === "" ? "/" : currentPathname;
|
|
2822
|
+
return getMainNavItems().map((item) => {
|
|
2823
|
+
const isAnchor = item.href.startsWith("#");
|
|
2824
|
+
const isActive = !isAnchor ? item.href === "/" ? normalizedPathname === "/" : normalizedPathname.startsWith(item.href) : false;
|
|
2825
|
+
return {
|
|
2826
|
+
...item,
|
|
2827
|
+
isActive,
|
|
2828
|
+
onClick: isAnchor ? item.onClick : (event) => {
|
|
2829
|
+
var _a;
|
|
2830
|
+
(_a = item.onClick) == null ? void 0 : _a.call(item, event);
|
|
2831
|
+
if (!onNavigate || event.defaultPrevented) return;
|
|
2832
|
+
event.preventDefault();
|
|
2833
|
+
onNavigate(item.href);
|
|
2834
|
+
}
|
|
2835
|
+
};
|
|
2836
|
+
});
|
|
2837
|
+
}, [currentPathname, onNavigate]);
|
|
2838
|
+
const handleCtaClick = () => {
|
|
2839
|
+
if (onNavigate) {
|
|
2840
|
+
onNavigate(ctaHref);
|
|
2841
|
+
return;
|
|
2842
|
+
}
|
|
2843
|
+
if (typeof window !== "undefined") {
|
|
2844
|
+
window.location.href = ctaHref;
|
|
2845
|
+
}
|
|
2846
|
+
};
|
|
2847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2848
|
+
NavbarCupcode,
|
|
2849
|
+
{
|
|
2850
|
+
logo: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center gap-[15px]", children: [
|
|
2851
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2852
|
+
TelescupImage,
|
|
2853
|
+
{
|
|
2854
|
+
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
2855
|
+
imageWidth: 40,
|
|
2856
|
+
imageHeight: 40,
|
|
2857
|
+
alt: "Design System Cupcode",
|
|
2858
|
+
loading: "eager",
|
|
2859
|
+
className: "h-10 w-auto"
|
|
2860
|
+
}
|
|
2861
|
+
),
|
|
2862
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2863
|
+
TelescupImage,
|
|
2864
|
+
{
|
|
2865
|
+
apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
|
|
2866
|
+
imageWidth: 120,
|
|
2867
|
+
imageHeight: 32,
|
|
2868
|
+
alt: "Cupcode",
|
|
2869
|
+
loading: "eager",
|
|
2870
|
+
className: "h-8 w-auto"
|
|
2871
|
+
}
|
|
2872
|
+
)
|
|
2873
|
+
] }),
|
|
2874
|
+
items,
|
|
2875
|
+
actions: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2876
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ThemeToggle, {}),
|
|
2877
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2878
|
+
JellyButtonOriginal,
|
|
2879
|
+
{
|
|
2880
|
+
label: ctaLabel,
|
|
2881
|
+
size: "sm",
|
|
2882
|
+
onClick: handleCtaClick
|
|
2883
|
+
}
|
|
2884
|
+
)
|
|
2885
|
+
] })
|
|
2886
|
+
}
|
|
2887
|
+
);
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
// src/components/cupcode/ParticleSystem.tsx
|
|
2891
|
+
var import_react14 = require("react");
|
|
2892
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2531
2893
|
function ParticleSystem({
|
|
2532
2894
|
count: count2 = 50,
|
|
2533
2895
|
variant = "stars",
|
|
2534
2896
|
className
|
|
2535
2897
|
}) {
|
|
2536
|
-
const canvasRef = (0,
|
|
2537
|
-
(0,
|
|
2898
|
+
const canvasRef = (0, import_react14.useRef)(null);
|
|
2899
|
+
(0, import_react14.useEffect)(() => {
|
|
2538
2900
|
const canvas = canvasRef.current;
|
|
2539
2901
|
if (!canvas) return;
|
|
2540
2902
|
const ctx = canvas.getContext("2d");
|
|
@@ -2599,7 +2961,7 @@ function ParticleSystem({
|
|
|
2599
2961
|
cancelAnimationFrame(animationId);
|
|
2600
2962
|
};
|
|
2601
2963
|
}, [count2, variant]);
|
|
2602
|
-
return /* @__PURE__ */ (0,
|
|
2964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2603
2965
|
"canvas",
|
|
2604
2966
|
{
|
|
2605
2967
|
ref: canvasRef,
|
|
@@ -2609,8 +2971,8 @@ function ParticleSystem({
|
|
|
2609
2971
|
}
|
|
2610
2972
|
|
|
2611
2973
|
// src/components/cupcode/PricingCard.tsx
|
|
2612
|
-
var
|
|
2613
|
-
var
|
|
2974
|
+
var import_lucide_react8 = require("lucide-react");
|
|
2975
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2614
2976
|
function PricingCard({
|
|
2615
2977
|
title,
|
|
2616
2978
|
price,
|
|
@@ -2622,7 +2984,7 @@ function PricingCard({
|
|
|
2622
2984
|
buttonText = "Escolher plano",
|
|
2623
2985
|
className
|
|
2624
2986
|
}) {
|
|
2625
|
-
return /* @__PURE__ */ (0,
|
|
2987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2626
2988
|
CardGlass,
|
|
2627
2989
|
{
|
|
2628
2990
|
className: cn(
|
|
@@ -2632,18 +2994,18 @@ function PricingCard({
|
|
|
2632
2994
|
className
|
|
2633
2995
|
),
|
|
2634
2996
|
children: [
|
|
2635
|
-
highlighted && /* @__PURE__ */ (0,
|
|
2636
|
-
/* @__PURE__ */ (0,
|
|
2637
|
-
/* @__PURE__ */ (0,
|
|
2638
|
-
description && /* @__PURE__ */ (0,
|
|
2997
|
+
highlighted && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-cupcode-purple text-white text-xs font-bold px-4 py-1 rounded-pill", children: "POPULAR" }) }),
|
|
2998
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "text-center mb-6", children: [
|
|
2999
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className: "text-2xl font-display font-bold text-foreground mb-2", children: title }),
|
|
3000
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm text-muted-foreground", children: description })
|
|
2639
3001
|
] }),
|
|
2640
|
-
/* @__PURE__ */ (0,
|
|
2641
|
-
/* @__PURE__ */ (0,
|
|
2642
|
-
/* @__PURE__ */ (0,
|
|
3002
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "text-center mb-8", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-baseline justify-center gap-2", children: [
|
|
3003
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-5xl font-display font-bold cc-text-gradient-galaxy", children: price }),
|
|
3004
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-muted-foreground", children: period })
|
|
2643
3005
|
] }) }),
|
|
2644
|
-
/* @__PURE__ */ (0,
|
|
2645
|
-
/* @__PURE__ */ (0,
|
|
2646
|
-
|
|
3006
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("ul", { className: "space-3 mb-8", children: features.map((feature, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("li", { className: "flex items-start gap-3", children: [
|
|
3007
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3008
|
+
import_lucide_react8.Check,
|
|
2647
3009
|
{
|
|
2648
3010
|
className: cn(
|
|
2649
3011
|
"w-5 h-5 shrink-0 mt-0.5",
|
|
@@ -2651,7 +3013,7 @@ function PricingCard({
|
|
|
2651
3013
|
)
|
|
2652
3014
|
}
|
|
2653
3015
|
),
|
|
2654
|
-
/* @__PURE__ */ (0,
|
|
3016
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2655
3017
|
"span",
|
|
2656
3018
|
{
|
|
2657
3019
|
className: cn(
|
|
@@ -2662,7 +3024,7 @@ function PricingCard({
|
|
|
2662
3024
|
}
|
|
2663
3025
|
)
|
|
2664
3026
|
] }, index)) }),
|
|
2665
|
-
/* @__PURE__ */ (0,
|
|
3027
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2666
3028
|
JellyButton,
|
|
2667
3029
|
{
|
|
2668
3030
|
onClick: onSelect,
|
|
@@ -2677,10 +3039,10 @@ function PricingCard({
|
|
|
2677
3039
|
}
|
|
2678
3040
|
|
|
2679
3041
|
// src/components/cupcode/ProgressCupcode.tsx
|
|
2680
|
-
var
|
|
3042
|
+
var React12 = __toESM(require("react"), 1);
|
|
2681
3043
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
|
|
2682
|
-
var
|
|
2683
|
-
var ProgressCupcode =
|
|
3044
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3045
|
+
var ProgressCupcode = React12.forwardRef(({ className, value, variant = "default", showLabel = false, size = "md", ...props }, ref) => {
|
|
2684
3046
|
const sizeClasses2 = {
|
|
2685
3047
|
sm: "h-2",
|
|
2686
3048
|
md: "h-3",
|
|
@@ -2693,15 +3055,15 @@ var ProgressCupcode = React11.forwardRef(({ className, value, variant = "default
|
|
|
2693
3055
|
warning: "bg-warning",
|
|
2694
3056
|
error: "bg-destructive"
|
|
2695
3057
|
};
|
|
2696
|
-
return /* @__PURE__ */ (0,
|
|
2697
|
-
showLabel && /* @__PURE__ */ (0,
|
|
2698
|
-
/* @__PURE__ */ (0,
|
|
2699
|
-
/* @__PURE__ */ (0,
|
|
3058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "w-full space-y-2", children: [
|
|
3059
|
+
showLabel && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center justify-between text-sm", children: [
|
|
3060
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "font-semibold text-foreground", children: "Progresso" }),
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
2700
3062
|
value,
|
|
2701
3063
|
"%"
|
|
2702
3064
|
] })
|
|
2703
3065
|
] }),
|
|
2704
|
-
/* @__PURE__ */ (0,
|
|
3066
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2705
3067
|
ProgressPrimitive.Root,
|
|
2706
3068
|
{
|
|
2707
3069
|
ref,
|
|
@@ -2711,7 +3073,7 @@ var ProgressCupcode = React11.forwardRef(({ className, value, variant = "default
|
|
|
2711
3073
|
className
|
|
2712
3074
|
),
|
|
2713
3075
|
...props,
|
|
2714
|
-
children: /* @__PURE__ */ (0,
|
|
3076
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2715
3077
|
ProgressPrimitive.Indicator,
|
|
2716
3078
|
{
|
|
2717
3079
|
className: cn(
|
|
@@ -2728,14 +3090,14 @@ var ProgressCupcode = React11.forwardRef(({ className, value, variant = "default
|
|
|
2728
3090
|
ProgressCupcode.displayName = "ProgressCupcode";
|
|
2729
3091
|
|
|
2730
3092
|
// src/components/cupcode/SelectField.tsx
|
|
2731
|
-
var
|
|
3093
|
+
var React13 = __toESM(require("react"), 1);
|
|
2732
3094
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
2733
|
-
var
|
|
2734
|
-
var
|
|
3095
|
+
var import_lucide_react9 = require("lucide-react");
|
|
3096
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2735
3097
|
var Select = SelectPrimitive.Root;
|
|
2736
3098
|
var SelectGroup = SelectPrimitive.Group;
|
|
2737
3099
|
var SelectValue = SelectPrimitive.Value;
|
|
2738
|
-
var SelectTrigger =
|
|
3100
|
+
var SelectTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2739
3101
|
SelectPrimitive.Trigger,
|
|
2740
3102
|
{
|
|
2741
3103
|
ref,
|
|
@@ -2753,12 +3115,12 @@ var SelectTrigger = React12.forwardRef(({ className, children, ...props }, ref)
|
|
|
2753
3115
|
...props,
|
|
2754
3116
|
children: [
|
|
2755
3117
|
children,
|
|
2756
|
-
/* @__PURE__ */ (0,
|
|
3118
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react9.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
2757
3119
|
]
|
|
2758
3120
|
}
|
|
2759
3121
|
));
|
|
2760
3122
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2761
|
-
var SelectContent =
|
|
3123
|
+
var SelectContent = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2762
3124
|
SelectPrimitive.Content,
|
|
2763
3125
|
{
|
|
2764
3126
|
ref,
|
|
@@ -2775,7 +3137,7 @@ var SelectContent = React12.forwardRef(({ className, children, position = "poppe
|
|
|
2775
3137
|
),
|
|
2776
3138
|
position,
|
|
2777
3139
|
...props,
|
|
2778
|
-
children: /* @__PURE__ */ (0,
|
|
3140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2779
3141
|
SelectPrimitive.Viewport,
|
|
2780
3142
|
{
|
|
2781
3143
|
className: cn(
|
|
@@ -2788,7 +3150,7 @@ var SelectContent = React12.forwardRef(({ className, children, position = "poppe
|
|
|
2788
3150
|
}
|
|
2789
3151
|
) }));
|
|
2790
3152
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2791
|
-
var SelectItem =
|
|
3153
|
+
var SelectItem = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2792
3154
|
SelectPrimitive.Item,
|
|
2793
3155
|
{
|
|
2794
3156
|
ref,
|
|
@@ -2801,8 +3163,8 @@ var SelectItem = React12.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2801
3163
|
),
|
|
2802
3164
|
...props,
|
|
2803
3165
|
children: [
|
|
2804
|
-
/* @__PURE__ */ (0,
|
|
2805
|
-
/* @__PURE__ */ (0,
|
|
3166
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react9.Check, { className: "h-4 w-4 text-cupcode-purple" }) }) }),
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.ItemText, { children })
|
|
2806
3168
|
]
|
|
2807
3169
|
}
|
|
2808
3170
|
));
|
|
@@ -2816,21 +3178,21 @@ var SelectField = ({
|
|
|
2816
3178
|
options,
|
|
2817
3179
|
disabled
|
|
2818
3180
|
}) => {
|
|
2819
|
-
return /* @__PURE__ */ (0,
|
|
2820
|
-
label && /* @__PURE__ */ (0,
|
|
2821
|
-
/* @__PURE__ */ (0,
|
|
2822
|
-
/* @__PURE__ */ (0,
|
|
2823
|
-
/* @__PURE__ */ (0,
|
|
3181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "cc-stack space-2 w-full", children: [
|
|
3182
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
3183
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Select, { value, onValueChange, disabled, children: [
|
|
3184
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectValue, { placeholder }) }),
|
|
3185
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectGroup, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectItem, { value: option.value, children: option.label }, option.value)) }) })
|
|
2824
3186
|
] }),
|
|
2825
|
-
error && /* @__PURE__ */ (0,
|
|
3187
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
2826
3188
|
] });
|
|
2827
3189
|
};
|
|
2828
3190
|
|
|
2829
3191
|
// src/components/cupcode/SwitchField.tsx
|
|
2830
|
-
var
|
|
3192
|
+
var React14 = __toESM(require("react"), 1);
|
|
2831
3193
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
2832
|
-
var
|
|
2833
|
-
var Switch =
|
|
3194
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3195
|
+
var Switch = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2834
3196
|
SwitchPrimitives.Root,
|
|
2835
3197
|
{
|
|
2836
3198
|
className: cn(
|
|
@@ -2845,7 +3207,7 @@ var Switch = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2845
3207
|
),
|
|
2846
3208
|
...props,
|
|
2847
3209
|
ref,
|
|
2848
|
-
children: /* @__PURE__ */ (0,
|
|
3210
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2849
3211
|
SwitchPrimitives.Thumb,
|
|
2850
3212
|
{
|
|
2851
3213
|
className: cn(
|
|
@@ -2861,21 +3223,21 @@ var Switch = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2861
3223
|
));
|
|
2862
3224
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
2863
3225
|
var SwitchField = ({ label, description, ...props }) => {
|
|
2864
|
-
return /* @__PURE__ */ (0,
|
|
2865
|
-
/* @__PURE__ */ (0,
|
|
2866
|
-
label && /* @__PURE__ */ (0,
|
|
2867
|
-
description && /* @__PURE__ */ (0,
|
|
3226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between space-x-4", children: [
|
|
3227
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "cc-stack space-1 flex-1", children: [
|
|
3228
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink cursor-pointer", children: label }),
|
|
3229
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-xs text-muted-foreground", children: description })
|
|
2868
3230
|
] }),
|
|
2869
|
-
/* @__PURE__ */ (0,
|
|
3231
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Switch, { ...props })
|
|
2870
3232
|
] });
|
|
2871
3233
|
};
|
|
2872
3234
|
|
|
2873
3235
|
// src/components/cupcode/TabsCupcode.tsx
|
|
2874
|
-
var
|
|
3236
|
+
var React15 = __toESM(require("react"), 1);
|
|
2875
3237
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
2876
|
-
var
|
|
3238
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2877
3239
|
var Tabs = TabsPrimitive.Root;
|
|
2878
|
-
var TabsList =
|
|
3240
|
+
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2879
3241
|
TabsPrimitive.List,
|
|
2880
3242
|
{
|
|
2881
3243
|
ref,
|
|
@@ -2888,12 +3250,12 @@ var TabsList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2888
3250
|
}
|
|
2889
3251
|
));
|
|
2890
3252
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2891
|
-
var TabsTrigger =
|
|
3253
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2892
3254
|
TabsPrimitive.Trigger,
|
|
2893
3255
|
{
|
|
2894
3256
|
ref,
|
|
2895
3257
|
className: cn(
|
|
2896
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-4 py-2",
|
|
3258
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-t-md px-4 py-2",
|
|
2897
3259
|
"text-sm font-semibold ring-offset-background transition-all",
|
|
2898
3260
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cupcode-purple focus-visible:ring-offset-2",
|
|
2899
3261
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -2910,7 +3272,7 @@ var TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2910
3272
|
}
|
|
2911
3273
|
));
|
|
2912
3274
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2913
|
-
var TabsContent =
|
|
3275
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2914
3276
|
TabsPrimitive.Content,
|
|
2915
3277
|
{
|
|
2916
3278
|
ref,
|
|
@@ -2923,51 +3285,10 @@ var TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2923
3285
|
...props
|
|
2924
3286
|
}
|
|
2925
3287
|
));
|
|
2926
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2927
|
-
|
|
2928
|
-
// src/components/cupcode/TelescupImage.tsx
|
|
2929
|
-
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2930
|
-
var TelescupImage = ({
|
|
2931
|
-
apiId,
|
|
2932
|
-
imageWidth,
|
|
2933
|
-
imageHeight,
|
|
2934
|
-
fit = "cover",
|
|
2935
|
-
format = "avif",
|
|
2936
|
-
quality = 60,
|
|
2937
|
-
lang = "pt-BR",
|
|
2938
|
-
alt,
|
|
2939
|
-
title,
|
|
2940
|
-
loading = "lazy",
|
|
2941
|
-
className,
|
|
2942
|
-
...props
|
|
2943
|
-
}) => {
|
|
2944
|
-
const { url, meta } = useTelescupImage(
|
|
2945
|
-
{
|
|
2946
|
-
id: apiId,
|
|
2947
|
-
width: imageWidth,
|
|
2948
|
-
height: imageHeight,
|
|
2949
|
-
fit,
|
|
2950
|
-
format,
|
|
2951
|
-
quality
|
|
2952
|
-
},
|
|
2953
|
-
lang
|
|
2954
|
-
);
|
|
2955
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2956
|
-
"img",
|
|
2957
|
-
{
|
|
2958
|
-
src: url,
|
|
2959
|
-
"data-api-id": apiId,
|
|
2960
|
-
alt: alt || meta.alt || "",
|
|
2961
|
-
title: title || meta.title,
|
|
2962
|
-
loading,
|
|
2963
|
-
className,
|
|
2964
|
-
...props
|
|
2965
|
-
}
|
|
2966
|
-
);
|
|
2967
|
-
};
|
|
3288
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2968
3289
|
|
|
2969
3290
|
// src/components/cupcode/TelescupVideo.tsx
|
|
2970
|
-
var
|
|
3291
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2971
3292
|
var TelescupVideo = ({
|
|
2972
3293
|
apiId,
|
|
2973
3294
|
lang = "pt-BR",
|
|
@@ -2977,7 +3298,7 @@ var TelescupVideo = ({
|
|
|
2977
3298
|
}) => {
|
|
2978
3299
|
const url = buildTelescupVideoURL(apiId);
|
|
2979
3300
|
const { meta } = useTelescupMeta(apiId, lang);
|
|
2980
|
-
return /* @__PURE__ */ (0,
|
|
3301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2981
3302
|
"video",
|
|
2982
3303
|
{
|
|
2983
3304
|
src: url,
|
|
@@ -2991,13 +3312,13 @@ var TelescupVideo = ({
|
|
|
2991
3312
|
};
|
|
2992
3313
|
|
|
2993
3314
|
// src/components/cupcode/TextareaField.tsx
|
|
2994
|
-
var
|
|
2995
|
-
var
|
|
2996
|
-
var TextareaField =
|
|
3315
|
+
var React16 = __toESM(require("react"), 1);
|
|
3316
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3317
|
+
var TextareaField = React16.forwardRef(
|
|
2997
3318
|
({ className, label, error, ...props }, ref) => {
|
|
2998
|
-
return /* @__PURE__ */ (0,
|
|
2999
|
-
label && /* @__PURE__ */ (0,
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "cc-stack space-2 w-full", children: [
|
|
3320
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
3321
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3001
3322
|
"textarea",
|
|
3002
3323
|
{
|
|
3003
3324
|
className: cn(
|
|
@@ -3017,65 +3338,18 @@ var TextareaField = React15.forwardRef(
|
|
|
3017
3338
|
...props
|
|
3018
3339
|
}
|
|
3019
3340
|
),
|
|
3020
|
-
error && /* @__PURE__ */ (0,
|
|
3341
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
3021
3342
|
] });
|
|
3022
3343
|
}
|
|
3023
3344
|
);
|
|
3024
3345
|
TextareaField.displayName = "TextareaField";
|
|
3025
3346
|
|
|
3026
|
-
// src/components/cupcode/ThemeToggle.tsx
|
|
3027
|
-
var React16 = __toESM(require("react"), 1);
|
|
3028
|
-
var import_lucide_react8 = require("lucide-react");
|
|
3029
|
-
var import_next_themes = require("next-themes");
|
|
3030
|
-
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3031
|
-
var ThemeToggle = ({ className }) => {
|
|
3032
|
-
const { theme, setTheme } = (0, import_next_themes.useTheme)();
|
|
3033
|
-
const [mounted, setMounted] = React16.useState(false);
|
|
3034
|
-
React16.useEffect(() => {
|
|
3035
|
-
setMounted(true);
|
|
3036
|
-
console.log("ThemeToggle mounted, current theme:", theme);
|
|
3037
|
-
}, []);
|
|
3038
|
-
React16.useEffect(() => {
|
|
3039
|
-
console.log("Theme changed:", theme);
|
|
3040
|
-
console.log("HTML class:", document.documentElement.className);
|
|
3041
|
-
}, [theme]);
|
|
3042
|
-
if (!mounted) {
|
|
3043
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("w-10 h-10 rounded-lg bg-muted", className) });
|
|
3044
|
-
}
|
|
3045
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3046
|
-
"button",
|
|
3047
|
-
{
|
|
3048
|
-
onClick: () => {
|
|
3049
|
-
const newTheme = theme === "dark" ? "light" : "dark";
|
|
3050
|
-
console.log("Theme toggle clicked:", { currentTheme: theme, newTheme });
|
|
3051
|
-
setTheme(newTheme);
|
|
3052
|
-
},
|
|
3053
|
-
className: cn(
|
|
3054
|
-
"relative inline-flex items-center justify-center w-10 h-10",
|
|
3055
|
-
"rounded-lg transition-all duration-300",
|
|
3056
|
-
"glass hover:glass-strong",
|
|
3057
|
-
"group",
|
|
3058
|
-
className
|
|
3059
|
-
),
|
|
3060
|
-
"aria-label": "Toggle theme",
|
|
3061
|
-
children: [
|
|
3062
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.Sun, { className: "h-5 w-5 text-cupcode-purple rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
3063
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.Moon, { className: "absolute h-5 w-5 text-cupcode-pink rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
3064
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "sr-only", children: [
|
|
3065
|
-
"Current theme: ",
|
|
3066
|
-
theme
|
|
3067
|
-
] })
|
|
3068
|
-
]
|
|
3069
|
-
}
|
|
3070
|
-
);
|
|
3071
|
-
};
|
|
3072
|
-
|
|
3073
3347
|
// src/components/cupcode/TimelineCupcode.tsx
|
|
3074
|
-
var
|
|
3348
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3075
3349
|
function Timeline({ items, variant = "vertical", className }) {
|
|
3076
3350
|
if (variant === "horizontal") {
|
|
3077
|
-
return /* @__PURE__ */ (0,
|
|
3078
|
-
/* @__PURE__ */ (0,
|
|
3351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn("flex items-start gap-4 overflow-x-auto pb-4", className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col items-center min-w-[200px]", children: [
|
|
3352
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3079
3353
|
"div",
|
|
3080
3354
|
{
|
|
3081
3355
|
className: cn(
|
|
@@ -3083,27 +3357,27 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
3083
3357
|
"transition-all duration-300",
|
|
3084
3358
|
item.active ? "cc-gradient-galaxy text-white elevation-3 scale-110" : "bg-muted text-muted-foreground"
|
|
3085
3359
|
),
|
|
3086
|
-
children: item.icon || /* @__PURE__ */ (0,
|
|
3360
|
+
children: item.icon || /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm font-bold", children: index + 1 })
|
|
3087
3361
|
}
|
|
3088
3362
|
),
|
|
3089
|
-
index < items.length - 1 && /* @__PURE__ */ (0,
|
|
3363
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn(
|
|
3090
3364
|
"h-1 w-full mb-3",
|
|
3091
3365
|
item.active ? "bg-cupcode-purple" : "bg-muted"
|
|
3092
3366
|
) }),
|
|
3093
|
-
/* @__PURE__ */ (0,
|
|
3094
|
-
/* @__PURE__ */ (0,
|
|
3367
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "text-center", children: [
|
|
3368
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h4", { className: cn(
|
|
3095
3369
|
"font-display font-semibold mb-1",
|
|
3096
3370
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
3097
3371
|
), children: item.title }),
|
|
3098
|
-
item.description && /* @__PURE__ */ (0,
|
|
3099
|
-
item.date && /* @__PURE__ */ (0,
|
|
3372
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm text-muted-foreground", children: item.description }),
|
|
3373
|
+
item.date && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-xs text-muted-foreground mt-1", children: item.date })
|
|
3100
3374
|
] })
|
|
3101
3375
|
] }, item.id)) });
|
|
3102
3376
|
}
|
|
3103
|
-
return /* @__PURE__ */ (0,
|
|
3104
|
-
/* @__PURE__ */ (0,
|
|
3105
|
-
items.map((item, index) => /* @__PURE__ */ (0,
|
|
3106
|
-
/* @__PURE__ */ (0,
|
|
3377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cn("relative space-6", className), children: [
|
|
3378
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute left-6 top-0 bottom-0 w-0.5 bg-muted" }),
|
|
3379
|
+
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex gap-6 pb-8 last:pb-0", children: [
|
|
3380
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3107
3381
|
"div",
|
|
3108
3382
|
{
|
|
3109
3383
|
className: cn(
|
|
@@ -3111,46 +3385,46 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
3111
3385
|
"transition-all duration-300",
|
|
3112
3386
|
item.active ? "cc-gradient-galaxy text-white elevation-3" : "bg-muted text-muted-foreground"
|
|
3113
3387
|
),
|
|
3114
|
-
children: item.icon || /* @__PURE__ */ (0,
|
|
3388
|
+
children: item.icon || /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm font-bold", children: index + 1 })
|
|
3115
3389
|
}
|
|
3116
3390
|
),
|
|
3117
|
-
/* @__PURE__ */ (0,
|
|
3118
|
-
/* @__PURE__ */ (0,
|
|
3391
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex-1 pt-1", children: [
|
|
3392
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h4", { className: cn(
|
|
3119
3393
|
"font-display font-semibold mb-1",
|
|
3120
3394
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
3121
3395
|
), children: item.title }),
|
|
3122
|
-
item.description && /* @__PURE__ */ (0,
|
|
3123
|
-
item.date && /* @__PURE__ */ (0,
|
|
3396
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm text-muted-foreground mb-2", children: item.description }),
|
|
3397
|
+
item.date && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-xs text-muted-foreground", children: item.date })
|
|
3124
3398
|
] })
|
|
3125
3399
|
] }, item.id))
|
|
3126
3400
|
] });
|
|
3127
3401
|
}
|
|
3128
3402
|
|
|
3129
3403
|
// src/components/cupcode/ToastCupcode.tsx
|
|
3130
|
-
var
|
|
3131
|
-
var
|
|
3404
|
+
var import_lucide_react10 = require("lucide-react");
|
|
3405
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3132
3406
|
var variantStyles2 = {
|
|
3133
3407
|
success: {
|
|
3134
3408
|
gradient: "from-success/20 to-success/5",
|
|
3135
|
-
icon:
|
|
3409
|
+
icon: import_lucide_react10.CheckCircle,
|
|
3136
3410
|
iconColor: "text-success",
|
|
3137
3411
|
border: "border-success/30"
|
|
3138
3412
|
},
|
|
3139
3413
|
error: {
|
|
3140
3414
|
gradient: "from-destructive/20 to-destructive/5",
|
|
3141
|
-
icon:
|
|
3415
|
+
icon: import_lucide_react10.AlertCircle,
|
|
3142
3416
|
iconColor: "text-destructive",
|
|
3143
3417
|
border: "border-destructive/30"
|
|
3144
3418
|
},
|
|
3145
3419
|
warning: {
|
|
3146
3420
|
gradient: "from-warning/20 to-warning/5",
|
|
3147
|
-
icon:
|
|
3421
|
+
icon: import_lucide_react10.AlertTriangle,
|
|
3148
3422
|
iconColor: "text-warning",
|
|
3149
3423
|
border: "border-warning/30"
|
|
3150
3424
|
},
|
|
3151
3425
|
info: {
|
|
3152
3426
|
gradient: "from-info/20 to-info/5",
|
|
3153
|
-
icon:
|
|
3427
|
+
icon: import_lucide_react10.Info,
|
|
3154
3428
|
iconColor: "text-info",
|
|
3155
3429
|
border: "border-info/30"
|
|
3156
3430
|
}
|
|
@@ -3163,7 +3437,7 @@ var ToastCupcode = ({
|
|
|
3163
3437
|
}) => {
|
|
3164
3438
|
const style = variantStyles2[variant];
|
|
3165
3439
|
const Icon3 = style.icon;
|
|
3166
|
-
return /* @__PURE__ */ (0,
|
|
3440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3167
3441
|
"div",
|
|
3168
3442
|
{
|
|
3169
3443
|
className: cn(
|
|
@@ -3175,18 +3449,18 @@ var ToastCupcode = ({
|
|
|
3175
3449
|
"min-w-[300px] max-w-[420px]",
|
|
3176
3450
|
"animate-slide-up"
|
|
3177
3451
|
),
|
|
3178
|
-
children: /* @__PURE__ */ (0,
|
|
3179
|
-
/* @__PURE__ */ (0,
|
|
3180
|
-
/* @__PURE__ */ (0,
|
|
3181
|
-
/* @__PURE__ */ (0,
|
|
3182
|
-
description && /* @__PURE__ */ (0,
|
|
3452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
3453
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon3, { className: cn("h-5 w-5 shrink-0 mt-0.5", style.iconColor) }),
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 space-y-1", children: [
|
|
3455
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm font-semibold text-cupcode-ink", children: title }),
|
|
3456
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xs text-cupcode-ink/70", children: description })
|
|
3183
3457
|
] }),
|
|
3184
|
-
onClose && /* @__PURE__ */ (0,
|
|
3458
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3185
3459
|
"button",
|
|
3186
3460
|
{
|
|
3187
3461
|
onClick: onClose,
|
|
3188
3462
|
className: "shrink-0 rounded-md p-1 hover:bg-cupcode-ink/10 transition-colors",
|
|
3189
|
-
children: /* @__PURE__ */ (0,
|
|
3463
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react10.X, { className: "h-4 w-4 text-cupcode-ink/50" })
|
|
3190
3464
|
}
|
|
3191
3465
|
)
|
|
3192
3466
|
] })
|
|
@@ -3197,11 +3471,11 @@ var ToastCupcode = ({
|
|
|
3197
3471
|
// src/components/cupcode/TooltipCupcode.tsx
|
|
3198
3472
|
var React17 = __toESM(require("react"), 1);
|
|
3199
3473
|
var TooltipPrimitive2 = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
3200
|
-
var
|
|
3474
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3201
3475
|
var TooltipProvider2 = TooltipPrimitive2.Provider;
|
|
3202
3476
|
var TooltipCupcode = TooltipPrimitive2.Root;
|
|
3203
3477
|
var TooltipTrigger2 = TooltipPrimitive2.Trigger;
|
|
3204
|
-
var TooltipContent2 = React17.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3478
|
+
var TooltipContent2 = React17.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3205
3479
|
TooltipPrimitive2.Content,
|
|
3206
3480
|
{
|
|
3207
3481
|
ref,
|
|
@@ -3224,12 +3498,12 @@ TooltipContent2.displayName = TooltipPrimitive2.Content.displayName;
|
|
|
3224
3498
|
// src/components/ui/accordion.tsx
|
|
3225
3499
|
var React18 = __toESM(require("react"), 1);
|
|
3226
3500
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"), 1);
|
|
3227
|
-
var
|
|
3228
|
-
var
|
|
3501
|
+
var import_lucide_react11 = require("lucide-react");
|
|
3502
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3229
3503
|
var Accordion = AccordionPrimitive2.Root;
|
|
3230
|
-
var AccordionItem2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3504
|
+
var AccordionItem2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AccordionPrimitive2.Item, { ref, className: cn("border-b", className), ...props }));
|
|
3231
3505
|
AccordionItem2.displayName = "AccordionItem";
|
|
3232
|
-
var AccordionTrigger2 = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3506
|
+
var AccordionTrigger2 = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AccordionPrimitive2.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3233
3507
|
AccordionPrimitive2.Trigger,
|
|
3234
3508
|
{
|
|
3235
3509
|
ref,
|
|
@@ -3240,18 +3514,18 @@ var AccordionTrigger2 = React18.forwardRef(({ className, children, ...props }, r
|
|
|
3240
3514
|
...props,
|
|
3241
3515
|
children: [
|
|
3242
3516
|
children,
|
|
3243
|
-
/* @__PURE__ */ (0,
|
|
3517
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react11.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
3244
3518
|
]
|
|
3245
3519
|
}
|
|
3246
3520
|
) }));
|
|
3247
3521
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
3248
|
-
var AccordionContent2 = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3522
|
+
var AccordionContent2 = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3249
3523
|
AccordionPrimitive2.Content,
|
|
3250
3524
|
{
|
|
3251
3525
|
ref,
|
|
3252
3526
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
3253
3527
|
...props,
|
|
3254
|
-
children: /* @__PURE__ */ (0,
|
|
3528
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: cn("pb-4 pt-0", className), children })
|
|
3255
3529
|
}
|
|
3256
3530
|
));
|
|
3257
3531
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
@@ -3259,7 +3533,7 @@ AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
|
3259
3533
|
// src/components/ui/alert.tsx
|
|
3260
3534
|
var React19 = __toESM(require("react"), 1);
|
|
3261
3535
|
var import_class_variance_authority = require("class-variance-authority");
|
|
3262
|
-
var
|
|
3536
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3263
3537
|
var alertVariants = (0, import_class_variance_authority.cva)(
|
|
3264
3538
|
"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",
|
|
3265
3539
|
{
|
|
@@ -3274,14 +3548,14 @@ var alertVariants = (0, import_class_variance_authority.cva)(
|
|
|
3274
3548
|
}
|
|
3275
3549
|
}
|
|
3276
3550
|
);
|
|
3277
|
-
var Alert = React19.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3551
|
+
var Alert = React19.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
3278
3552
|
Alert.displayName = "Alert";
|
|
3279
3553
|
var AlertTitle = React19.forwardRef(
|
|
3280
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3554
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
3281
3555
|
);
|
|
3282
3556
|
AlertTitle.displayName = "AlertTitle";
|
|
3283
3557
|
var AlertDescription = React19.forwardRef(
|
|
3284
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3558
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
3285
3559
|
);
|
|
3286
3560
|
AlertDescription.displayName = "AlertDescription";
|
|
3287
3561
|
|
|
@@ -3293,7 +3567,7 @@ var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
|
3293
3567
|
var React20 = __toESM(require("react"), 1);
|
|
3294
3568
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
3295
3569
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
3296
|
-
var
|
|
3570
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3297
3571
|
var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
3298
3572
|
"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",
|
|
3299
3573
|
{
|
|
@@ -3322,17 +3596,17 @@ var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
3322
3596
|
var Button = React20.forwardRef(
|
|
3323
3597
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
3324
3598
|
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
3325
|
-
return /* @__PURE__ */ (0,
|
|
3599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
3326
3600
|
}
|
|
3327
3601
|
);
|
|
3328
3602
|
Button.displayName = "Button";
|
|
3329
3603
|
|
|
3330
3604
|
// src/components/ui/alert-dialog.tsx
|
|
3331
|
-
var
|
|
3605
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3332
3606
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
3333
3607
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
3334
3608
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
3335
|
-
var AlertDialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3609
|
+
var AlertDialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3336
3610
|
AlertDialogPrimitive.Overlay,
|
|
3337
3611
|
{
|
|
3338
3612
|
className: cn(
|
|
@@ -3344,9 +3618,9 @@ var AlertDialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3344
3618
|
}
|
|
3345
3619
|
));
|
|
3346
3620
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
3347
|
-
var AlertDialogContent = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3348
|
-
/* @__PURE__ */ (0,
|
|
3349
|
-
/* @__PURE__ */ (0,
|
|
3621
|
+
var AlertDialogContent = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(AlertDialogPortal, { children: [
|
|
3622
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AlertDialogOverlay, {}),
|
|
3623
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3350
3624
|
AlertDialogPrimitive.Content,
|
|
3351
3625
|
{
|
|
3352
3626
|
ref,
|
|
@@ -3359,17 +3633,17 @@ var AlertDialogContent = React21.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3359
3633
|
)
|
|
3360
3634
|
] }));
|
|
3361
3635
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
3362
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3636
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
3363
3637
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
3364
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3638
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
3365
3639
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3366
|
-
var AlertDialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3640
|
+
var AlertDialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
3367
3641
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
3368
|
-
var AlertDialogDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3642
|
+
var AlertDialogDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
3369
3643
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
3370
|
-
var AlertDialogAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3644
|
+
var AlertDialogAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
3371
3645
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
3372
|
-
var AlertDialogCancel = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3646
|
+
var AlertDialogCancel = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3373
3647
|
AlertDialogPrimitive.Cancel,
|
|
3374
3648
|
{
|
|
3375
3649
|
ref,
|
|
@@ -3386,8 +3660,8 @@ var AspectRatio = AspectRatioPrimitive.Root;
|
|
|
3386
3660
|
// src/components/ui/avatar.tsx
|
|
3387
3661
|
var React22 = __toESM(require("react"), 1);
|
|
3388
3662
|
var AvatarPrimitive2 = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
3389
|
-
var
|
|
3390
|
-
var Avatar2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3663
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3664
|
+
var Avatar2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3391
3665
|
AvatarPrimitive2.Root,
|
|
3392
3666
|
{
|
|
3393
3667
|
ref,
|
|
@@ -3396,9 +3670,9 @@ var Avatar2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3396
3670
|
}
|
|
3397
3671
|
));
|
|
3398
3672
|
Avatar2.displayName = AvatarPrimitive2.Root.displayName;
|
|
3399
|
-
var AvatarImage2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3673
|
+
var AvatarImage2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AvatarPrimitive2.Image, { ref, className: cn("aspect-square h-full w-full", className), ...props }));
|
|
3400
3674
|
AvatarImage2.displayName = AvatarPrimitive2.Image.displayName;
|
|
3401
|
-
var AvatarFallback2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3675
|
+
var AvatarFallback2 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3402
3676
|
AvatarPrimitive2.Fallback,
|
|
3403
3677
|
{
|
|
3404
3678
|
ref,
|
|
@@ -3410,7 +3684,7 @@ AvatarFallback2.displayName = AvatarPrimitive2.Fallback.displayName;
|
|
|
3410
3684
|
|
|
3411
3685
|
// src/components/ui/badge.tsx
|
|
3412
3686
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
3413
|
-
var
|
|
3687
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3414
3688
|
var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
3415
3689
|
"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",
|
|
3416
3690
|
{
|
|
@@ -3428,18 +3702,18 @@ var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
|
3428
3702
|
}
|
|
3429
3703
|
);
|
|
3430
3704
|
function Badge2({ className, variant, ...props }) {
|
|
3431
|
-
return /* @__PURE__ */ (0,
|
|
3705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
3432
3706
|
}
|
|
3433
3707
|
|
|
3434
3708
|
// src/components/ui/breadcrumb.tsx
|
|
3435
3709
|
var React23 = __toESM(require("react"), 1);
|
|
3436
3710
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
3437
|
-
var
|
|
3438
|
-
var
|
|
3439
|
-
var Breadcrumb = React23.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
3711
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3712
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3713
|
+
var Breadcrumb = React23.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
3440
3714
|
Breadcrumb.displayName = "Breadcrumb";
|
|
3441
3715
|
var BreadcrumbList = React23.forwardRef(
|
|
3442
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3716
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3443
3717
|
"ol",
|
|
3444
3718
|
{
|
|
3445
3719
|
ref,
|
|
@@ -3453,16 +3727,16 @@ var BreadcrumbList = React23.forwardRef(
|
|
|
3453
3727
|
);
|
|
3454
3728
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
3455
3729
|
var BreadcrumbItem = React23.forwardRef(
|
|
3456
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3730
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
3457
3731
|
);
|
|
3458
3732
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
3459
3733
|
var BreadcrumbLink = React23.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
3460
3734
|
const Comp = asChild ? import_react_slot2.Slot : "a";
|
|
3461
|
-
return /* @__PURE__ */ (0,
|
|
3735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Comp, { ref, className: cn("transition-colors hover:text-foreground", className), ...props });
|
|
3462
3736
|
});
|
|
3463
3737
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
3464
3738
|
var BreadcrumbPage = React23.forwardRef(
|
|
3465
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3739
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3466
3740
|
"span",
|
|
3467
3741
|
{
|
|
3468
3742
|
ref,
|
|
@@ -3475,9 +3749,9 @@ var BreadcrumbPage = React23.forwardRef(
|
|
|
3475
3749
|
)
|
|
3476
3750
|
);
|
|
3477
3751
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
3478
|
-
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0,
|
|
3752
|
+
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react12.ChevronRight, {}) });
|
|
3479
3753
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
3480
|
-
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3754
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3481
3755
|
"span",
|
|
3482
3756
|
{
|
|
3483
3757
|
role: "presentation",
|
|
@@ -3485,19 +3759,19 @@ var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import
|
|
|
3485
3759
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3486
3760
|
...props,
|
|
3487
3761
|
children: [
|
|
3488
|
-
/* @__PURE__ */ (0,
|
|
3489
|
-
/* @__PURE__ */ (0,
|
|
3762
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
|
|
3763
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "sr-only", children: "More" })
|
|
3490
3764
|
]
|
|
3491
3765
|
}
|
|
3492
3766
|
);
|
|
3493
3767
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
3494
3768
|
|
|
3495
3769
|
// src/components/ui/calendar.tsx
|
|
3496
|
-
var
|
|
3770
|
+
var import_lucide_react13 = require("lucide-react");
|
|
3497
3771
|
var import_react_day_picker = require("react-day-picker");
|
|
3498
|
-
var
|
|
3772
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3499
3773
|
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
3500
|
-
return /* @__PURE__ */ (0,
|
|
3774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3501
3775
|
import_react_day_picker.DayPicker,
|
|
3502
3776
|
{
|
|
3503
3777
|
showOutsideDays,
|
|
@@ -3530,8 +3804,12 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
3530
3804
|
...classNames
|
|
3531
3805
|
},
|
|
3532
3806
|
components: {
|
|
3533
|
-
|
|
3534
|
-
|
|
3807
|
+
Chevron: ({ orientation, className: className2, ...chevronProps }) => {
|
|
3808
|
+
if (orientation === "left") {
|
|
3809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react13.ChevronLeft, { className: cn("h-4 w-4", className2), ...chevronProps });
|
|
3810
|
+
}
|
|
3811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react13.ChevronRight, { className: cn("h-4 w-4", className2), ...chevronProps });
|
|
3812
|
+
}
|
|
3535
3813
|
},
|
|
3536
3814
|
...props
|
|
3537
3815
|
}
|
|
@@ -3541,35 +3819,35 @@ Calendar.displayName = "Calendar";
|
|
|
3541
3819
|
|
|
3542
3820
|
// src/components/ui/card.tsx
|
|
3543
3821
|
var React24 = __toESM(require("react"), 1);
|
|
3544
|
-
var
|
|
3545
|
-
var Card = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3822
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3823
|
+
var Card = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props }));
|
|
3546
3824
|
Card.displayName = "Card";
|
|
3547
3825
|
var CardHeader = React24.forwardRef(
|
|
3548
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3826
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
3549
3827
|
);
|
|
3550
3828
|
CardHeader.displayName = "CardHeader";
|
|
3551
3829
|
var CardTitle = React24.forwardRef(
|
|
3552
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3830
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
3553
3831
|
);
|
|
3554
3832
|
CardTitle.displayName = "CardTitle";
|
|
3555
3833
|
var CardDescription = React24.forwardRef(
|
|
3556
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3834
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
3557
3835
|
);
|
|
3558
3836
|
CardDescription.displayName = "CardDescription";
|
|
3559
3837
|
var CardContent = React24.forwardRef(
|
|
3560
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3838
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
3561
3839
|
);
|
|
3562
3840
|
CardContent.displayName = "CardContent";
|
|
3563
3841
|
var CardFooter = React24.forwardRef(
|
|
3564
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3842
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
3565
3843
|
);
|
|
3566
3844
|
CardFooter.displayName = "CardFooter";
|
|
3567
3845
|
|
|
3568
3846
|
// src/components/ui/carousel.tsx
|
|
3569
3847
|
var React25 = __toESM(require("react"), 1);
|
|
3570
3848
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
3571
|
-
var
|
|
3572
|
-
var
|
|
3849
|
+
var import_lucide_react14 = require("lucide-react");
|
|
3850
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3573
3851
|
var CarouselContext = React25.createContext(null);
|
|
3574
3852
|
function useCarousel() {
|
|
3575
3853
|
const context = React25.useContext(CarouselContext);
|
|
@@ -3631,7 +3909,7 @@ var Carousel = React25.forwardRef(
|
|
|
3631
3909
|
api == null ? void 0 : api.off("select", onSelect);
|
|
3632
3910
|
};
|
|
3633
3911
|
}, [api, onSelect]);
|
|
3634
|
-
return /* @__PURE__ */ (0,
|
|
3912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3635
3913
|
CarouselContext.Provider,
|
|
3636
3914
|
{
|
|
3637
3915
|
value: {
|
|
@@ -3644,7 +3922,7 @@ var Carousel = React25.forwardRef(
|
|
|
3644
3922
|
canScrollPrev,
|
|
3645
3923
|
canScrollNext
|
|
3646
3924
|
},
|
|
3647
|
-
children: /* @__PURE__ */ (0,
|
|
3925
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3648
3926
|
"div",
|
|
3649
3927
|
{
|
|
3650
3928
|
ref,
|
|
@@ -3664,7 +3942,7 @@ Carousel.displayName = "Carousel";
|
|
|
3664
3942
|
var CarouselContent = React25.forwardRef(
|
|
3665
3943
|
({ className, ...props }, ref) => {
|
|
3666
3944
|
const { carouselRef, orientation } = useCarousel();
|
|
3667
|
-
return /* @__PURE__ */ (0,
|
|
3945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3668
3946
|
"div",
|
|
3669
3947
|
{
|
|
3670
3948
|
ref,
|
|
@@ -3678,7 +3956,7 @@ CarouselContent.displayName = "CarouselContent";
|
|
|
3678
3956
|
var CarouselItem = React25.forwardRef(
|
|
3679
3957
|
({ className, ...props }, ref) => {
|
|
3680
3958
|
const { orientation } = useCarousel();
|
|
3681
|
-
return /* @__PURE__ */ (0,
|
|
3959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3682
3960
|
"div",
|
|
3683
3961
|
{
|
|
3684
3962
|
ref,
|
|
@@ -3694,7 +3972,7 @@ CarouselItem.displayName = "CarouselItem";
|
|
|
3694
3972
|
var CarouselPrevious = React25.forwardRef(
|
|
3695
3973
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
3696
3974
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3697
|
-
return /* @__PURE__ */ (0,
|
|
3975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3698
3976
|
Button,
|
|
3699
3977
|
{
|
|
3700
3978
|
ref,
|
|
@@ -3709,8 +3987,8 @@ var CarouselPrevious = React25.forwardRef(
|
|
|
3709
3987
|
onClick: scrollPrev,
|
|
3710
3988
|
...props,
|
|
3711
3989
|
children: [
|
|
3712
|
-
/* @__PURE__ */ (0,
|
|
3713
|
-
/* @__PURE__ */ (0,
|
|
3990
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react14.ArrowLeft, { className: "h-4 w-4" }),
|
|
3991
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
3714
3992
|
]
|
|
3715
3993
|
}
|
|
3716
3994
|
);
|
|
@@ -3720,7 +3998,7 @@ CarouselPrevious.displayName = "CarouselPrevious";
|
|
|
3720
3998
|
var CarouselNext = React25.forwardRef(
|
|
3721
3999
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
3722
4000
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3723
|
-
return /* @__PURE__ */ (0,
|
|
4001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3724
4002
|
Button,
|
|
3725
4003
|
{
|
|
3726
4004
|
ref,
|
|
@@ -3735,8 +4013,8 @@ var CarouselNext = React25.forwardRef(
|
|
|
3735
4013
|
onClick: scrollNext,
|
|
3736
4014
|
...props,
|
|
3737
4015
|
children: [
|
|
3738
|
-
/* @__PURE__ */ (0,
|
|
3739
|
-
/* @__PURE__ */ (0,
|
|
4016
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react14.ArrowRight, { className: "h-4 w-4" }),
|
|
4017
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
3740
4018
|
]
|
|
3741
4019
|
}
|
|
3742
4020
|
);
|
|
@@ -3747,7 +4025,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
3747
4025
|
// src/components/ui/chart.tsx
|
|
3748
4026
|
var React26 = __toESM(require("react"), 1);
|
|
3749
4027
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
3750
|
-
var
|
|
4028
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3751
4029
|
var THEMES = { light: "", dark: ".dark" };
|
|
3752
4030
|
var ChartContext = React26.createContext(null);
|
|
3753
4031
|
function useChart() {
|
|
@@ -3760,7 +4038,7 @@ function useChart() {
|
|
|
3760
4038
|
var ChartContainer = React26.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
3761
4039
|
const uniqueId = React26.useId();
|
|
3762
4040
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
3763
|
-
return /* @__PURE__ */ (0,
|
|
4041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3764
4042
|
"div",
|
|
3765
4043
|
{
|
|
3766
4044
|
"data-chart": chartId,
|
|
@@ -3771,8 +4049,8 @@ var ChartContainer = React26.forwardRef(({ id, className, children, config, ...p
|
|
|
3771
4049
|
),
|
|
3772
4050
|
...props,
|
|
3773
4051
|
children: [
|
|
3774
|
-
/* @__PURE__ */ (0,
|
|
3775
|
-
/* @__PURE__ */ (0,
|
|
4052
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ChartStyle, { id: chartId, config }),
|
|
4053
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
3776
4054
|
]
|
|
3777
4055
|
}
|
|
3778
4056
|
) });
|
|
@@ -3783,7 +4061,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
3783
4061
|
if (!colorConfig.length) {
|
|
3784
4062
|
return null;
|
|
3785
4063
|
}
|
|
3786
|
-
return /* @__PURE__ */ (0,
|
|
4064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3787
4065
|
"style",
|
|
3788
4066
|
{
|
|
3789
4067
|
dangerouslySetInnerHTML: {
|
|
@@ -3830,18 +4108,18 @@ var ChartTooltipContent = React26.forwardRef(
|
|
|
3830
4108
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3831
4109
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
3832
4110
|
if (labelFormatter) {
|
|
3833
|
-
return /* @__PURE__ */ (0,
|
|
4111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
3834
4112
|
}
|
|
3835
4113
|
if (!value) {
|
|
3836
4114
|
return null;
|
|
3837
4115
|
}
|
|
3838
|
-
return /* @__PURE__ */ (0,
|
|
4116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
3839
4117
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
3840
4118
|
if (!active || !(payload == null ? void 0 : payload.length)) {
|
|
3841
4119
|
return null;
|
|
3842
4120
|
}
|
|
3843
4121
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
3844
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3845
4123
|
"div",
|
|
3846
4124
|
{
|
|
3847
4125
|
ref,
|
|
@@ -3851,19 +4129,19 @@ var ChartTooltipContent = React26.forwardRef(
|
|
|
3851
4129
|
),
|
|
3852
4130
|
children: [
|
|
3853
4131
|
!nestLabel ? tooltipLabel : null,
|
|
3854
|
-
/* @__PURE__ */ (0,
|
|
4132
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
3855
4133
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
3856
4134
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3857
4135
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
3858
|
-
return /* @__PURE__ */ (0,
|
|
4136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3859
4137
|
"div",
|
|
3860
4138
|
{
|
|
3861
4139
|
className: cn(
|
|
3862
4140
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
3863
4141
|
indicator === "dot" && "items-center"
|
|
3864
4142
|
),
|
|
3865
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
3866
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
4143
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
4144
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3867
4145
|
"div",
|
|
3868
4146
|
{
|
|
3869
4147
|
className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
|
|
@@ -3878,7 +4156,7 @@ var ChartTooltipContent = React26.forwardRef(
|
|
|
3878
4156
|
}
|
|
3879
4157
|
}
|
|
3880
4158
|
),
|
|
3881
|
-
/* @__PURE__ */ (0,
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3882
4160
|
"div",
|
|
3883
4161
|
{
|
|
3884
4162
|
className: cn(
|
|
@@ -3886,11 +4164,11 @@ var ChartTooltipContent = React26.forwardRef(
|
|
|
3886
4164
|
nestLabel ? "items-end" : "items-center"
|
|
3887
4165
|
),
|
|
3888
4166
|
children: [
|
|
3889
|
-
/* @__PURE__ */ (0,
|
|
4167
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
3890
4168
|
nestLabel ? tooltipLabel : null,
|
|
3891
|
-
/* @__PURE__ */ (0,
|
|
4169
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-muted-foreground", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
3892
4170
|
] }),
|
|
3893
|
-
item.value && /* @__PURE__ */ (0,
|
|
4171
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
3894
4172
|
]
|
|
3895
4173
|
}
|
|
3896
4174
|
)
|
|
@@ -3911,7 +4189,7 @@ var ChartLegendContent = React26.forwardRef(({ className, hideIcon = false, payl
|
|
|
3911
4189
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
3912
4190
|
return null;
|
|
3913
4191
|
}
|
|
3914
|
-
return /* @__PURE__ */ (0,
|
|
4192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3915
4193
|
"div",
|
|
3916
4194
|
{
|
|
3917
4195
|
ref,
|
|
@@ -3919,12 +4197,12 @@ var ChartLegendContent = React26.forwardRef(({ className, hideIcon = false, payl
|
|
|
3919
4197
|
children: payload.map((item) => {
|
|
3920
4198
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
3921
4199
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3922
|
-
return /* @__PURE__ */ (0,
|
|
4200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3923
4201
|
"div",
|
|
3924
4202
|
{
|
|
3925
4203
|
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
3926
4204
|
children: [
|
|
3927
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
4205
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3928
4206
|
"div",
|
|
3929
4207
|
{
|
|
3930
4208
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -3960,9 +4238,9 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
3960
4238
|
// src/components/ui/checkbox.tsx
|
|
3961
4239
|
var React27 = __toESM(require("react"), 1);
|
|
3962
4240
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
3963
|
-
var
|
|
3964
|
-
var
|
|
3965
|
-
var Checkbox = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4241
|
+
var import_lucide_react15 = require("lucide-react");
|
|
4242
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4243
|
+
var Checkbox = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3966
4244
|
CheckboxPrimitive.Root,
|
|
3967
4245
|
{
|
|
3968
4246
|
ref,
|
|
@@ -3971,7 +4249,7 @@ var Checkbox = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3971
4249
|
className
|
|
3972
4250
|
),
|
|
3973
4251
|
...props,
|
|
3974
|
-
children: /* @__PURE__ */ (0,
|
|
4252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.Check, { className: "h-4 w-4" }) })
|
|
3975
4253
|
}
|
|
3976
4254
|
));
|
|
3977
4255
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
@@ -3985,18 +4263,18 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
3985
4263
|
// src/components/ui/command.tsx
|
|
3986
4264
|
var React29 = __toESM(require("react"), 1);
|
|
3987
4265
|
var import_cmdk = require("cmdk");
|
|
3988
|
-
var
|
|
4266
|
+
var import_lucide_react17 = require("lucide-react");
|
|
3989
4267
|
|
|
3990
4268
|
// src/components/ui/dialog.tsx
|
|
3991
4269
|
var React28 = __toESM(require("react"), 1);
|
|
3992
4270
|
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3993
|
-
var
|
|
3994
|
-
var
|
|
4271
|
+
var import_lucide_react16 = require("lucide-react");
|
|
4272
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3995
4273
|
var Dialog = DialogPrimitive2.Root;
|
|
3996
4274
|
var DialogTrigger = DialogPrimitive2.Trigger;
|
|
3997
4275
|
var DialogPortal = DialogPrimitive2.Portal;
|
|
3998
4276
|
var DialogClose = DialogPrimitive2.Close;
|
|
3999
|
-
var DialogOverlay = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4277
|
+
var DialogOverlay = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4000
4278
|
DialogPrimitive2.Overlay,
|
|
4001
4279
|
{
|
|
4002
4280
|
ref,
|
|
@@ -4008,9 +4286,9 @@ var DialogOverlay = React28.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
4008
4286
|
}
|
|
4009
4287
|
));
|
|
4010
4288
|
DialogOverlay.displayName = DialogPrimitive2.Overlay.displayName;
|
|
4011
|
-
var DialogContent = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4012
|
-
/* @__PURE__ */ (0,
|
|
4013
|
-
/* @__PURE__ */ (0,
|
|
4289
|
+
var DialogContent = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DialogPortal, { children: [
|
|
4290
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DialogOverlay, {}),
|
|
4291
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
4014
4292
|
DialogPrimitive2.Content,
|
|
4015
4293
|
{
|
|
4016
4294
|
ref,
|
|
@@ -4021,20 +4299,20 @@ var DialogContent = React28.forwardRef(({ className, children, ...props }, ref)
|
|
|
4021
4299
|
...props,
|
|
4022
4300
|
children: [
|
|
4023
4301
|
children,
|
|
4024
|
-
/* @__PURE__ */ (0,
|
|
4025
|
-
/* @__PURE__ */ (0,
|
|
4026
|
-
/* @__PURE__ */ (0,
|
|
4302
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
4303
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react16.X, { className: "h-4 w-4" }),
|
|
4304
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "sr-only", children: "Close" })
|
|
4027
4305
|
] })
|
|
4028
4306
|
]
|
|
4029
4307
|
}
|
|
4030
4308
|
)
|
|
4031
4309
|
] }));
|
|
4032
4310
|
DialogContent.displayName = DialogPrimitive2.Content.displayName;
|
|
4033
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4311
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
4034
4312
|
DialogHeader.displayName = "DialogHeader";
|
|
4035
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4313
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
4036
4314
|
DialogFooter.displayName = "DialogFooter";
|
|
4037
|
-
var DialogTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4315
|
+
var DialogTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4038
4316
|
DialogPrimitive2.Title,
|
|
4039
4317
|
{
|
|
4040
4318
|
ref,
|
|
@@ -4043,12 +4321,12 @@ var DialogTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4043
4321
|
}
|
|
4044
4322
|
));
|
|
4045
4323
|
DialogTitle.displayName = DialogPrimitive2.Title.displayName;
|
|
4046
|
-
var DialogDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4324
|
+
var DialogDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DialogPrimitive2.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
4047
4325
|
DialogDescription.displayName = DialogPrimitive2.Description.displayName;
|
|
4048
4326
|
|
|
4049
4327
|
// src/components/ui/command.tsx
|
|
4050
|
-
var
|
|
4051
|
-
var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4328
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4329
|
+
var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4052
4330
|
import_cmdk.Command,
|
|
4053
4331
|
{
|
|
4054
4332
|
ref,
|
|
@@ -4061,11 +4339,11 @@ var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4061
4339
|
));
|
|
4062
4340
|
Command.displayName = import_cmdk.Command.displayName;
|
|
4063
4341
|
var CommandDialog = ({ children, ...props }) => {
|
|
4064
|
-
return /* @__PURE__ */ (0,
|
|
4342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Command, { 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", children }) }) });
|
|
4065
4343
|
};
|
|
4066
|
-
var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4067
|
-
/* @__PURE__ */ (0,
|
|
4068
|
-
/* @__PURE__ */ (0,
|
|
4344
|
+
var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
4345
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react17.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
4346
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4069
4347
|
import_cmdk.Command.Input,
|
|
4070
4348
|
{
|
|
4071
4349
|
ref,
|
|
@@ -4078,7 +4356,7 @@ var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4078
4356
|
)
|
|
4079
4357
|
] }));
|
|
4080
4358
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
4081
|
-
var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4359
|
+
var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4082
4360
|
import_cmdk.Command.List,
|
|
4083
4361
|
{
|
|
4084
4362
|
ref,
|
|
@@ -4087,9 +4365,9 @@ var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4087
4365
|
}
|
|
4088
4366
|
));
|
|
4089
4367
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
4090
|
-
var CommandEmpty = React29.forwardRef((props, ref) => /* @__PURE__ */ (0,
|
|
4368
|
+
var CommandEmpty = React29.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
4091
4369
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
4092
|
-
var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4370
|
+
var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4093
4371
|
import_cmdk.Command.Group,
|
|
4094
4372
|
{
|
|
4095
4373
|
ref,
|
|
@@ -4101,9 +4379,9 @@ var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4101
4379
|
}
|
|
4102
4380
|
));
|
|
4103
4381
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
4104
|
-
var CommandSeparator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4382
|
+
var CommandSeparator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_cmdk.Command.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
4105
4383
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
4106
|
-
var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4384
|
+
var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4107
4385
|
import_cmdk.Command.Item,
|
|
4108
4386
|
{
|
|
4109
4387
|
ref,
|
|
@@ -4116,22 +4394,22 @@ var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4116
4394
|
));
|
|
4117
4395
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
4118
4396
|
var CommandShortcut = ({ className, ...props }) => {
|
|
4119
|
-
return /* @__PURE__ */ (0,
|
|
4397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
4120
4398
|
};
|
|
4121
4399
|
CommandShortcut.displayName = "CommandShortcut";
|
|
4122
4400
|
|
|
4123
4401
|
// src/components/ui/context-menu.tsx
|
|
4124
4402
|
var React30 = __toESM(require("react"), 1);
|
|
4125
4403
|
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
4126
|
-
var
|
|
4127
|
-
var
|
|
4404
|
+
var import_lucide_react18 = require("lucide-react");
|
|
4405
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4128
4406
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
4129
4407
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
4130
4408
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
4131
4409
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
4132
4410
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
4133
4411
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
4134
|
-
var ContextMenuSubTrigger = React30.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4412
|
+
var ContextMenuSubTrigger = React30.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4135
4413
|
ContextMenuPrimitive.SubTrigger,
|
|
4136
4414
|
{
|
|
4137
4415
|
ref,
|
|
@@ -4143,12 +4421,12 @@ var ContextMenuSubTrigger = React30.forwardRef(({ className, inset, children, ..
|
|
|
4143
4421
|
...props,
|
|
4144
4422
|
children: [
|
|
4145
4423
|
children,
|
|
4146
|
-
/* @__PURE__ */ (0,
|
|
4424
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react18.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
4147
4425
|
]
|
|
4148
4426
|
}
|
|
4149
4427
|
));
|
|
4150
4428
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
4151
|
-
var ContextMenuSubContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4429
|
+
var ContextMenuSubContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4152
4430
|
ContextMenuPrimitive.SubContent,
|
|
4153
4431
|
{
|
|
4154
4432
|
ref,
|
|
@@ -4160,7 +4438,7 @@ var ContextMenuSubContent = React30.forwardRef(({ className, ...props }, ref) =>
|
|
|
4160
4438
|
}
|
|
4161
4439
|
));
|
|
4162
4440
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
4163
|
-
var ContextMenuContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4441
|
+
var ContextMenuContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4164
4442
|
ContextMenuPrimitive.Content,
|
|
4165
4443
|
{
|
|
4166
4444
|
ref,
|
|
@@ -4172,7 +4450,7 @@ var ContextMenuContent = React30.forwardRef(({ className, ...props }, ref) => /*
|
|
|
4172
4450
|
}
|
|
4173
4451
|
) }));
|
|
4174
4452
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
4175
|
-
var ContextMenuItem = React30.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4453
|
+
var ContextMenuItem = React30.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4176
4454
|
ContextMenuPrimitive.Item,
|
|
4177
4455
|
{
|
|
4178
4456
|
ref,
|
|
@@ -4185,7 +4463,7 @@ var ContextMenuItem = React30.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
4185
4463
|
}
|
|
4186
4464
|
));
|
|
4187
4465
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
4188
|
-
var ContextMenuCheckboxItem = React30.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4466
|
+
var ContextMenuCheckboxItem = React30.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4189
4467
|
ContextMenuPrimitive.CheckboxItem,
|
|
4190
4468
|
{
|
|
4191
4469
|
ref,
|
|
@@ -4196,13 +4474,13 @@ var ContextMenuCheckboxItem = React30.forwardRef(({ className, children, checked
|
|
|
4196
4474
|
checked,
|
|
4197
4475
|
...props,
|
|
4198
4476
|
children: [
|
|
4199
|
-
/* @__PURE__ */ (0,
|
|
4477
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react18.Check, { className: "h-4 w-4" }) }) }),
|
|
4200
4478
|
children
|
|
4201
4479
|
]
|
|
4202
4480
|
}
|
|
4203
4481
|
));
|
|
4204
4482
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
4205
|
-
var ContextMenuRadioItem = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4483
|
+
var ContextMenuRadioItem = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4206
4484
|
ContextMenuPrimitive.RadioItem,
|
|
4207
4485
|
{
|
|
4208
4486
|
ref,
|
|
@@ -4212,13 +4490,13 @@ var ContextMenuRadioItem = React30.forwardRef(({ className, children, ...props }
|
|
|
4212
4490
|
),
|
|
4213
4491
|
...props,
|
|
4214
4492
|
children: [
|
|
4215
|
-
/* @__PURE__ */ (0,
|
|
4493
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react18.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
4216
4494
|
children
|
|
4217
4495
|
]
|
|
4218
4496
|
}
|
|
4219
4497
|
));
|
|
4220
4498
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
4221
|
-
var ContextMenuLabel = React30.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4499
|
+
var ContextMenuLabel = React30.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4222
4500
|
ContextMenuPrimitive.Label,
|
|
4223
4501
|
{
|
|
4224
4502
|
ref,
|
|
@@ -4227,27 +4505,27 @@ var ContextMenuLabel = React30.forwardRef(({ className, inset, ...props }, ref)
|
|
|
4227
4505
|
}
|
|
4228
4506
|
));
|
|
4229
4507
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
4230
|
-
var ContextMenuSeparator = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4508
|
+
var ContextMenuSeparator = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ContextMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
4231
4509
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
4232
4510
|
var ContextMenuShortcut = ({ className, ...props }) => {
|
|
4233
|
-
return /* @__PURE__ */ (0,
|
|
4511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
4234
4512
|
};
|
|
4235
4513
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
4236
4514
|
|
|
4237
4515
|
// src/components/ui/drawer.tsx
|
|
4238
4516
|
var React31 = __toESM(require("react"), 1);
|
|
4239
4517
|
var import_vaul = require("vaul");
|
|
4240
|
-
var
|
|
4241
|
-
var Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ (0,
|
|
4518
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4519
|
+
var Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_vaul.Drawer.Root, { shouldScaleBackground, ...props });
|
|
4242
4520
|
Drawer.displayName = "Drawer";
|
|
4243
4521
|
var DrawerTrigger = import_vaul.Drawer.Trigger;
|
|
4244
4522
|
var DrawerPortal = import_vaul.Drawer.Portal;
|
|
4245
4523
|
var DrawerClose = import_vaul.Drawer.Close;
|
|
4246
|
-
var DrawerOverlay = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4524
|
+
var DrawerOverlay = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_vaul.Drawer.Overlay, { ref, className: cn("fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
4247
4525
|
DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
|
|
4248
|
-
var DrawerContent = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4249
|
-
/* @__PURE__ */ (0,
|
|
4250
|
-
/* @__PURE__ */ (0,
|
|
4526
|
+
var DrawerContent = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(DrawerPortal, { children: [
|
|
4527
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DrawerOverlay, {}),
|
|
4528
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
4251
4529
|
import_vaul.Drawer.Content,
|
|
4252
4530
|
{
|
|
4253
4531
|
ref,
|
|
@@ -4257,18 +4535,18 @@ var DrawerContent = React31.forwardRef(({ className, children, ...props }, ref)
|
|
|
4257
4535
|
),
|
|
4258
4536
|
...props,
|
|
4259
4537
|
children: [
|
|
4260
|
-
/* @__PURE__ */ (0,
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
4261
4539
|
children
|
|
4262
4540
|
]
|
|
4263
4541
|
}
|
|
4264
4542
|
)
|
|
4265
4543
|
] }));
|
|
4266
4544
|
DrawerContent.displayName = "DrawerContent";
|
|
4267
|
-
var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4545
|
+
var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("grid gap-1.5 p-4 text-center sm:text-left", className), ...props });
|
|
4268
4546
|
DrawerHeader.displayName = "DrawerHeader";
|
|
4269
|
-
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4547
|
+
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
|
|
4270
4548
|
DrawerFooter.displayName = "DrawerFooter";
|
|
4271
|
-
var DrawerTitle = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4549
|
+
var DrawerTitle = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4272
4550
|
import_vaul.Drawer.Title,
|
|
4273
4551
|
{
|
|
4274
4552
|
ref,
|
|
@@ -4277,21 +4555,21 @@ var DrawerTitle = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4277
4555
|
}
|
|
4278
4556
|
));
|
|
4279
4557
|
DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
|
|
4280
|
-
var DrawerDescription = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4558
|
+
var DrawerDescription = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_vaul.Drawer.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
4281
4559
|
DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
|
|
4282
4560
|
|
|
4283
4561
|
// src/components/ui/dropdown-menu.tsx
|
|
4284
4562
|
var React32 = __toESM(require("react"), 1);
|
|
4285
4563
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
4286
|
-
var
|
|
4287
|
-
var
|
|
4564
|
+
var import_lucide_react19 = require("lucide-react");
|
|
4565
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4288
4566
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
4289
4567
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
4290
4568
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
4291
4569
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
4292
4570
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
4293
4571
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
4294
|
-
var DropdownMenuSubTrigger = React32.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4572
|
+
var DropdownMenuSubTrigger = React32.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4295
4573
|
DropdownMenuPrimitive.SubTrigger,
|
|
4296
4574
|
{
|
|
4297
4575
|
ref,
|
|
@@ -4303,12 +4581,12 @@ var DropdownMenuSubTrigger = React32.forwardRef(({ className, inset, children, .
|
|
|
4303
4581
|
...props,
|
|
4304
4582
|
children: [
|
|
4305
4583
|
children,
|
|
4306
|
-
/* @__PURE__ */ (0,
|
|
4584
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react19.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
4307
4585
|
]
|
|
4308
4586
|
}
|
|
4309
4587
|
));
|
|
4310
4588
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
4311
|
-
var DropdownMenuSubContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4589
|
+
var DropdownMenuSubContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4312
4590
|
DropdownMenuPrimitive.SubContent,
|
|
4313
4591
|
{
|
|
4314
4592
|
ref,
|
|
@@ -4320,7 +4598,7 @@ var DropdownMenuSubContent = React32.forwardRef(({ className, ...props }, ref) =
|
|
|
4320
4598
|
}
|
|
4321
4599
|
));
|
|
4322
4600
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
4323
|
-
var DropdownMenuContent = React32.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4601
|
+
var DropdownMenuContent = React32.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4324
4602
|
DropdownMenuPrimitive.Content,
|
|
4325
4603
|
{
|
|
4326
4604
|
ref,
|
|
@@ -4333,7 +4611,7 @@ var DropdownMenuContent = React32.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
4333
4611
|
}
|
|
4334
4612
|
) }));
|
|
4335
4613
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
4336
|
-
var DropdownMenuItem = React32.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4614
|
+
var DropdownMenuItem = React32.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4337
4615
|
DropdownMenuPrimitive.Item,
|
|
4338
4616
|
{
|
|
4339
4617
|
ref,
|
|
@@ -4346,7 +4624,7 @@ var DropdownMenuItem = React32.forwardRef(({ className, inset, ...props }, ref)
|
|
|
4346
4624
|
}
|
|
4347
4625
|
));
|
|
4348
4626
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
4349
|
-
var DropdownMenuCheckboxItem = React32.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4627
|
+
var DropdownMenuCheckboxItem = React32.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4350
4628
|
DropdownMenuPrimitive.CheckboxItem,
|
|
4351
4629
|
{
|
|
4352
4630
|
ref,
|
|
@@ -4357,13 +4635,13 @@ var DropdownMenuCheckboxItem = React32.forwardRef(({ className, children, checke
|
|
|
4357
4635
|
checked,
|
|
4358
4636
|
...props,
|
|
4359
4637
|
children: [
|
|
4360
|
-
/* @__PURE__ */ (0,
|
|
4638
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react19.Check, { className: "h-4 w-4" }) }) }),
|
|
4361
4639
|
children
|
|
4362
4640
|
]
|
|
4363
4641
|
}
|
|
4364
4642
|
));
|
|
4365
4643
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
4366
|
-
var DropdownMenuRadioItem = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4644
|
+
var DropdownMenuRadioItem = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4367
4645
|
DropdownMenuPrimitive.RadioItem,
|
|
4368
4646
|
{
|
|
4369
4647
|
ref,
|
|
@@ -4373,13 +4651,13 @@ var DropdownMenuRadioItem = React32.forwardRef(({ className, children, ...props
|
|
|
4373
4651
|
),
|
|
4374
4652
|
...props,
|
|
4375
4653
|
children: [
|
|
4376
|
-
/* @__PURE__ */ (0,
|
|
4654
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react19.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
4377
4655
|
children
|
|
4378
4656
|
]
|
|
4379
4657
|
}
|
|
4380
4658
|
));
|
|
4381
4659
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
4382
|
-
var DropdownMenuLabel = React32.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4660
|
+
var DropdownMenuLabel = React32.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4383
4661
|
DropdownMenuPrimitive.Label,
|
|
4384
4662
|
{
|
|
4385
4663
|
ref,
|
|
@@ -4388,10 +4666,10 @@ var DropdownMenuLabel = React32.forwardRef(({ className, inset, ...props }, ref)
|
|
|
4388
4666
|
}
|
|
4389
4667
|
));
|
|
4390
4668
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
4391
|
-
var DropdownMenuSeparator = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4669
|
+
var DropdownMenuSeparator = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
4392
4670
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
4393
4671
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
4394
|
-
return /* @__PURE__ */ (0,
|
|
4672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
4395
4673
|
};
|
|
4396
4674
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
4397
4675
|
|
|
@@ -4404,19 +4682,19 @@ var import_react_hook_form = require("react-hook-form");
|
|
|
4404
4682
|
var React33 = __toESM(require("react"), 1);
|
|
4405
4683
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
4406
4684
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
4407
|
-
var
|
|
4685
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4408
4686
|
var labelVariants = (0, import_class_variance_authority4.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
4409
|
-
var Label3 = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4687
|
+
var Label3 = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
4410
4688
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
4411
4689
|
|
|
4412
4690
|
// src/components/ui/form.tsx
|
|
4413
|
-
var
|
|
4691
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4414
4692
|
var Form = import_react_hook_form.FormProvider;
|
|
4415
4693
|
var FormFieldContext = React34.createContext({});
|
|
4416
4694
|
var FormField = ({
|
|
4417
4695
|
...props
|
|
4418
4696
|
}) => {
|
|
4419
|
-
return /* @__PURE__ */ (0,
|
|
4697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
4420
4698
|
};
|
|
4421
4699
|
var useFormField = () => {
|
|
4422
4700
|
const fieldContext = React34.useContext(FormFieldContext);
|
|
@@ -4440,19 +4718,19 @@ var FormItemContext = React34.createContext({});
|
|
|
4440
4718
|
var FormItem = React34.forwardRef(
|
|
4441
4719
|
({ className, ...props }, ref) => {
|
|
4442
4720
|
const id = React34.useId();
|
|
4443
|
-
return /* @__PURE__ */ (0,
|
|
4721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
4444
4722
|
}
|
|
4445
4723
|
);
|
|
4446
4724
|
FormItem.displayName = "FormItem";
|
|
4447
4725
|
var FormLabel = React34.forwardRef(({ className, ...props }, ref) => {
|
|
4448
4726
|
const { error, formItemId } = useFormField();
|
|
4449
|
-
return /* @__PURE__ */ (0,
|
|
4727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label3, { ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
4450
4728
|
});
|
|
4451
4729
|
FormLabel.displayName = "FormLabel";
|
|
4452
4730
|
var FormControl = React34.forwardRef(
|
|
4453
4731
|
({ ...props }, ref) => {
|
|
4454
4732
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
4455
|
-
return /* @__PURE__ */ (0,
|
|
4733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4456
4734
|
import_react_slot3.Slot,
|
|
4457
4735
|
{
|
|
4458
4736
|
ref,
|
|
@@ -4468,7 +4746,7 @@ FormControl.displayName = "FormControl";
|
|
|
4468
4746
|
var FormDescription = React34.forwardRef(
|
|
4469
4747
|
({ className, ...props }, ref) => {
|
|
4470
4748
|
const { formDescriptionId } = useFormField();
|
|
4471
|
-
return /* @__PURE__ */ (0,
|
|
4749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { ref, id: formDescriptionId, className: cn("text-sm text-muted-foreground", className), ...props });
|
|
4472
4750
|
}
|
|
4473
4751
|
);
|
|
4474
4752
|
FormDescription.displayName = "FormDescription";
|
|
@@ -4479,7 +4757,7 @@ var FormMessage = React34.forwardRef(
|
|
|
4479
4757
|
if (!body) {
|
|
4480
4758
|
return null;
|
|
4481
4759
|
}
|
|
4482
|
-
return /* @__PURE__ */ (0,
|
|
4760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { ref, id: formMessageId, className: cn("text-sm font-medium text-destructive", className), ...props, children: body });
|
|
4483
4761
|
}
|
|
4484
4762
|
);
|
|
4485
4763
|
FormMessage.displayName = "FormMessage";
|
|
@@ -4487,10 +4765,10 @@ FormMessage.displayName = "FormMessage";
|
|
|
4487
4765
|
// src/components/ui/hover-card.tsx
|
|
4488
4766
|
var React35 = __toESM(require("react"), 1);
|
|
4489
4767
|
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
|
|
4490
|
-
var
|
|
4768
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4491
4769
|
var HoverCard = HoverCardPrimitive.Root;
|
|
4492
4770
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
4493
|
-
var HoverCardContent = React35.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4771
|
+
var HoverCardContent = React35.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4494
4772
|
HoverCardPrimitive.Content,
|
|
4495
4773
|
{
|
|
4496
4774
|
ref,
|
|
@@ -4507,10 +4785,10 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
|
4507
4785
|
|
|
4508
4786
|
// src/components/ui/input.tsx
|
|
4509
4787
|
var React36 = __toESM(require("react"), 1);
|
|
4510
|
-
var
|
|
4788
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4511
4789
|
var Input = React36.forwardRef(
|
|
4512
4790
|
({ className, type, ...props }, ref) => {
|
|
4513
|
-
return /* @__PURE__ */ (0,
|
|
4791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4514
4792
|
"input",
|
|
4515
4793
|
{
|
|
4516
4794
|
type,
|
|
@@ -4529,10 +4807,10 @@ Input.displayName = "Input";
|
|
|
4529
4807
|
// src/components/ui/input-otp.tsx
|
|
4530
4808
|
var React37 = __toESM(require("react"), 1);
|
|
4531
4809
|
var import_input_otp = require("input-otp");
|
|
4532
|
-
var
|
|
4533
|
-
var
|
|
4810
|
+
var import_lucide_react20 = require("lucide-react");
|
|
4811
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4534
4812
|
var InputOTP = React37.forwardRef(
|
|
4535
|
-
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4813
|
+
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4536
4814
|
import_input_otp.OTPInput,
|
|
4537
4815
|
{
|
|
4538
4816
|
ref,
|
|
@@ -4544,13 +4822,13 @@ var InputOTP = React37.forwardRef(
|
|
|
4544
4822
|
);
|
|
4545
4823
|
InputOTP.displayName = "InputOTP";
|
|
4546
4824
|
var InputOTPGroup = React37.forwardRef(
|
|
4547
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4825
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ref, className: cn("flex items-center", className), ...props })
|
|
4548
4826
|
);
|
|
4549
4827
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
4550
4828
|
var InputOTPSlot = React37.forwardRef(({ index, className, ...props }, ref) => {
|
|
4551
4829
|
const inputOTPContext = React37.useContext(import_input_otp.OTPInputContext);
|
|
4552
4830
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
4553
|
-
return /* @__PURE__ */ (0,
|
|
4831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4554
4832
|
"div",
|
|
4555
4833
|
{
|
|
4556
4834
|
ref,
|
|
@@ -4562,28 +4840,28 @@ var InputOTPSlot = React37.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
4562
4840
|
...props,
|
|
4563
4841
|
children: [
|
|
4564
4842
|
char,
|
|
4565
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
4843
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
|
|
4566
4844
|
]
|
|
4567
4845
|
}
|
|
4568
4846
|
);
|
|
4569
4847
|
});
|
|
4570
4848
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
4571
4849
|
var InputOTPSeparator = React37.forwardRef(
|
|
4572
|
-
({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
4850
|
+
({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.Dot, {}) })
|
|
4573
4851
|
);
|
|
4574
4852
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
4575
4853
|
|
|
4576
4854
|
// src/components/ui/menubar.tsx
|
|
4577
4855
|
var React38 = __toESM(require("react"), 1);
|
|
4578
4856
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
4579
|
-
var
|
|
4580
|
-
var
|
|
4857
|
+
var import_lucide_react21 = require("lucide-react");
|
|
4858
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4581
4859
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
4582
4860
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
4583
4861
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
4584
4862
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
4585
4863
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
4586
|
-
var Menubar = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4864
|
+
var Menubar = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4587
4865
|
MenubarPrimitive.Root,
|
|
4588
4866
|
{
|
|
4589
4867
|
ref,
|
|
@@ -4592,7 +4870,7 @@ var Menubar = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4592
4870
|
}
|
|
4593
4871
|
));
|
|
4594
4872
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
4595
|
-
var MenubarTrigger = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4873
|
+
var MenubarTrigger = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4596
4874
|
MenubarPrimitive.Trigger,
|
|
4597
4875
|
{
|
|
4598
4876
|
ref,
|
|
@@ -4604,7 +4882,7 @@ var MenubarTrigger = React38.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4604
4882
|
}
|
|
4605
4883
|
));
|
|
4606
4884
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
4607
|
-
var MenubarSubTrigger = React38.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4885
|
+
var MenubarSubTrigger = React38.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4608
4886
|
MenubarPrimitive.SubTrigger,
|
|
4609
4887
|
{
|
|
4610
4888
|
ref,
|
|
@@ -4616,12 +4894,12 @@ var MenubarSubTrigger = React38.forwardRef(({ className, inset, children, ...pro
|
|
|
4616
4894
|
...props,
|
|
4617
4895
|
children: [
|
|
4618
4896
|
children,
|
|
4619
|
-
/* @__PURE__ */ (0,
|
|
4897
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react21.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
4620
4898
|
]
|
|
4621
4899
|
}
|
|
4622
4900
|
));
|
|
4623
4901
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
4624
|
-
var MenubarSubContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4902
|
+
var MenubarSubContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4625
4903
|
MenubarPrimitive.SubContent,
|
|
4626
4904
|
{
|
|
4627
4905
|
ref,
|
|
@@ -4633,7 +4911,7 @@ var MenubarSubContent = React38.forwardRef(({ className, ...props }, ref) => /*
|
|
|
4633
4911
|
}
|
|
4634
4912
|
));
|
|
4635
4913
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
4636
|
-
var MenubarContent = React38.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4914
|
+
var MenubarContent = React38.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4637
4915
|
MenubarPrimitive.Content,
|
|
4638
4916
|
{
|
|
4639
4917
|
ref,
|
|
@@ -4648,7 +4926,7 @@ var MenubarContent = React38.forwardRef(({ className, align = "start", alignOffs
|
|
|
4648
4926
|
}
|
|
4649
4927
|
) }));
|
|
4650
4928
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
4651
|
-
var MenubarItem = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4929
|
+
var MenubarItem = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4652
4930
|
MenubarPrimitive.Item,
|
|
4653
4931
|
{
|
|
4654
4932
|
ref,
|
|
@@ -4661,7 +4939,7 @@ var MenubarItem = React38.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
4661
4939
|
}
|
|
4662
4940
|
));
|
|
4663
4941
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
4664
|
-
var MenubarCheckboxItem = React38.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4942
|
+
var MenubarCheckboxItem = React38.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4665
4943
|
MenubarPrimitive.CheckboxItem,
|
|
4666
4944
|
{
|
|
4667
4945
|
ref,
|
|
@@ -4672,13 +4950,13 @@ var MenubarCheckboxItem = React38.forwardRef(({ className, children, checked, ..
|
|
|
4672
4950
|
checked,
|
|
4673
4951
|
...props,
|
|
4674
4952
|
children: [
|
|
4675
|
-
/* @__PURE__ */ (0,
|
|
4953
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react21.Check, { className: "h-4 w-4" }) }) }),
|
|
4676
4954
|
children
|
|
4677
4955
|
]
|
|
4678
4956
|
}
|
|
4679
4957
|
));
|
|
4680
4958
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
4681
|
-
var MenubarRadioItem = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4959
|
+
var MenubarRadioItem = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4682
4960
|
MenubarPrimitive.RadioItem,
|
|
4683
4961
|
{
|
|
4684
4962
|
ref,
|
|
@@ -4688,13 +4966,13 @@ var MenubarRadioItem = React38.forwardRef(({ className, children, ...props }, re
|
|
|
4688
4966
|
),
|
|
4689
4967
|
...props,
|
|
4690
4968
|
children: [
|
|
4691
|
-
/* @__PURE__ */ (0,
|
|
4969
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react21.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
4692
4970
|
children
|
|
4693
4971
|
]
|
|
4694
4972
|
}
|
|
4695
4973
|
));
|
|
4696
4974
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
4697
|
-
var MenubarLabel = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4975
|
+
var MenubarLabel = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4698
4976
|
MenubarPrimitive.Label,
|
|
4699
4977
|
{
|
|
4700
4978
|
ref,
|
|
@@ -4703,10 +4981,10 @@ var MenubarLabel = React38.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
4703
4981
|
}
|
|
4704
4982
|
));
|
|
4705
4983
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
4706
|
-
var MenubarSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4984
|
+
var MenubarSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenubarPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
4707
4985
|
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
4708
4986
|
var MenubarShortcut = ({ className, ...props }) => {
|
|
4709
|
-
return /* @__PURE__ */ (0,
|
|
4987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
4710
4988
|
};
|
|
4711
4989
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
4712
4990
|
|
|
@@ -4714,9 +4992,9 @@ MenubarShortcut.displayname = "MenubarShortcut";
|
|
|
4714
4992
|
var React39 = __toESM(require("react"), 1);
|
|
4715
4993
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
4716
4994
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
4717
|
-
var
|
|
4718
|
-
var
|
|
4719
|
-
var NavigationMenu = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4995
|
+
var import_lucide_react22 = require("lucide-react");
|
|
4996
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4997
|
+
var NavigationMenu = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4720
4998
|
NavigationMenuPrimitive.Root,
|
|
4721
4999
|
{
|
|
4722
5000
|
ref,
|
|
@@ -4724,12 +5002,12 @@ var NavigationMenu = React39.forwardRef(({ className, children, ...props }, ref)
|
|
|
4724
5002
|
...props,
|
|
4725
5003
|
children: [
|
|
4726
5004
|
children,
|
|
4727
|
-
/* @__PURE__ */ (0,
|
|
5005
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NavigationMenuViewport, {})
|
|
4728
5006
|
]
|
|
4729
5007
|
}
|
|
4730
5008
|
));
|
|
4731
5009
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
4732
|
-
var NavigationMenuList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5010
|
+
var NavigationMenuList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4733
5011
|
NavigationMenuPrimitive.List,
|
|
4734
5012
|
{
|
|
4735
5013
|
ref,
|
|
@@ -4742,7 +5020,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
4742
5020
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority5.cva)(
|
|
4743
5021
|
"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"
|
|
4744
5022
|
);
|
|
4745
|
-
var NavigationMenuTrigger = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5023
|
+
var NavigationMenuTrigger = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4746
5024
|
NavigationMenuPrimitive.Trigger,
|
|
4747
5025
|
{
|
|
4748
5026
|
ref,
|
|
@@ -4751,8 +5029,8 @@ var NavigationMenuTrigger = React39.forwardRef(({ className, children, ...props
|
|
|
4751
5029
|
children: [
|
|
4752
5030
|
children,
|
|
4753
5031
|
" ",
|
|
4754
|
-
/* @__PURE__ */ (0,
|
|
4755
|
-
|
|
5032
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5033
|
+
import_lucide_react22.ChevronDown,
|
|
4756
5034
|
{
|
|
4757
5035
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
4758
5036
|
"aria-hidden": "true"
|
|
@@ -4762,7 +5040,7 @@ var NavigationMenuTrigger = React39.forwardRef(({ className, children, ...props
|
|
|
4762
5040
|
}
|
|
4763
5041
|
));
|
|
4764
5042
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
4765
|
-
var NavigationMenuContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5043
|
+
var NavigationMenuContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4766
5044
|
NavigationMenuPrimitive.Content,
|
|
4767
5045
|
{
|
|
4768
5046
|
ref,
|
|
@@ -4775,7 +5053,7 @@ var NavigationMenuContent = React39.forwardRef(({ className, ...props }, ref) =>
|
|
|
4775
5053
|
));
|
|
4776
5054
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
4777
5055
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
4778
|
-
var NavigationMenuViewport = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5056
|
+
var NavigationMenuViewport = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4779
5057
|
NavigationMenuPrimitive.Viewport,
|
|
4780
5058
|
{
|
|
4781
5059
|
className: cn(
|
|
@@ -4787,7 +5065,7 @@ var NavigationMenuViewport = React39.forwardRef(({ className, ...props }, ref) =
|
|
|
4787
5065
|
}
|
|
4788
5066
|
) }));
|
|
4789
5067
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
4790
|
-
var NavigationMenuIndicator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5068
|
+
var NavigationMenuIndicator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4791
5069
|
NavigationMenuPrimitive.Indicator,
|
|
4792
5070
|
{
|
|
4793
5071
|
ref,
|
|
@@ -4796,16 +5074,16 @@ var NavigationMenuIndicator = React39.forwardRef(({ className, ...props }, ref)
|
|
|
4796
5074
|
className
|
|
4797
5075
|
),
|
|
4798
5076
|
...props,
|
|
4799
|
-
children: /* @__PURE__ */ (0,
|
|
5077
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4800
5078
|
}
|
|
4801
5079
|
));
|
|
4802
5080
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
4803
5081
|
|
|
4804
5082
|
// src/components/ui/pagination.tsx
|
|
4805
5083
|
var React40 = __toESM(require("react"), 1);
|
|
4806
|
-
var
|
|
4807
|
-
var
|
|
4808
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
5084
|
+
var import_lucide_react23 = require("lucide-react");
|
|
5085
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5086
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4809
5087
|
"nav",
|
|
4810
5088
|
{
|
|
4811
5089
|
role: "navigation",
|
|
@@ -4816,12 +5094,12 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
4816
5094
|
);
|
|
4817
5095
|
Pagination.displayName = "Pagination";
|
|
4818
5096
|
var PaginationContent = React40.forwardRef(
|
|
4819
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5097
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
4820
5098
|
);
|
|
4821
5099
|
PaginationContent.displayName = "PaginationContent";
|
|
4822
|
-
var PaginationItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5100
|
+
var PaginationItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { ref, className: cn("", className), ...props }));
|
|
4823
5101
|
PaginationItem.displayName = "PaginationItem";
|
|
4824
|
-
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ (0,
|
|
5102
|
+
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4825
5103
|
"a",
|
|
4826
5104
|
{
|
|
4827
5105
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4836,29 +5114,29 @@ var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @_
|
|
|
4836
5114
|
}
|
|
4837
5115
|
);
|
|
4838
5116
|
PaginationLink.displayName = "PaginationLink";
|
|
4839
|
-
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
4841
|
-
/* @__PURE__ */ (0,
|
|
5117
|
+
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 pl-2.5", className), ...props, children: [
|
|
5118
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react23.ChevronLeft, { className: "h-4 w-4" }),
|
|
5119
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: "Previous" })
|
|
4842
5120
|
] });
|
|
4843
5121
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
4844
|
-
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4845
|
-
/* @__PURE__ */ (0,
|
|
4846
|
-
/* @__PURE__ */ (0,
|
|
5122
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 pr-2.5", className), ...props, children: [
|
|
5123
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: "Next" }),
|
|
5124
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react23.ChevronRight, { className: "h-4 w-4" })
|
|
4847
5125
|
] });
|
|
4848
5126
|
PaginationNext.displayName = "PaginationNext";
|
|
4849
|
-
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
4850
|
-
/* @__PURE__ */ (0,
|
|
4851
|
-
/* @__PURE__ */ (0,
|
|
5127
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
5128
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react23.MoreHorizontal, { className: "h-4 w-4" }),
|
|
5129
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
4852
5130
|
] });
|
|
4853
5131
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
4854
5132
|
|
|
4855
5133
|
// src/components/ui/popover.tsx
|
|
4856
5134
|
var React41 = __toESM(require("react"), 1);
|
|
4857
5135
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
4858
|
-
var
|
|
5136
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4859
5137
|
var Popover = PopoverPrimitive.Root;
|
|
4860
5138
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
4861
|
-
var PopoverContent = React41.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5139
|
+
var PopoverContent = React41.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4862
5140
|
PopoverPrimitive.Content,
|
|
4863
5141
|
{
|
|
4864
5142
|
ref,
|
|
@@ -4876,14 +5154,14 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
4876
5154
|
// src/components/ui/progress.tsx
|
|
4877
5155
|
var React42 = __toESM(require("react"), 1);
|
|
4878
5156
|
var ProgressPrimitive2 = __toESM(require("@radix-ui/react-progress"), 1);
|
|
4879
|
-
var
|
|
4880
|
-
var Progress = React42.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5157
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5158
|
+
var Progress = React42.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4881
5159
|
ProgressPrimitive2.Root,
|
|
4882
5160
|
{
|
|
4883
5161
|
ref,
|
|
4884
5162
|
className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
|
|
4885
5163
|
...props,
|
|
4886
|
-
children: /* @__PURE__ */ (0,
|
|
5164
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4887
5165
|
ProgressPrimitive2.Indicator,
|
|
4888
5166
|
{
|
|
4889
5167
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -4897,14 +5175,14 @@ Progress.displayName = ProgressPrimitive2.Root.displayName;
|
|
|
4897
5175
|
// src/components/ui/radio-group.tsx
|
|
4898
5176
|
var React43 = __toESM(require("react"), 1);
|
|
4899
5177
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
4900
|
-
var
|
|
4901
|
-
var
|
|
5178
|
+
var import_lucide_react24 = require("lucide-react");
|
|
5179
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4902
5180
|
var RadioGroup4 = React43.forwardRef(({ className, ...props }, ref) => {
|
|
4903
|
-
return /* @__PURE__ */ (0,
|
|
5181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
|
|
4904
5182
|
});
|
|
4905
5183
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
4906
5184
|
var RadioGroupItem = React43.forwardRef(({ className, ...props }, ref) => {
|
|
4907
|
-
return /* @__PURE__ */ (0,
|
|
5185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4908
5186
|
RadioGroupPrimitive.Item,
|
|
4909
5187
|
{
|
|
4910
5188
|
ref,
|
|
@@ -4913,17 +5191,17 @@ var RadioGroupItem = React43.forwardRef(({ className, ...props }, ref) => {
|
|
|
4913
5191
|
className
|
|
4914
5192
|
),
|
|
4915
5193
|
...props,
|
|
4916
|
-
children: /* @__PURE__ */ (0,
|
|
5194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react24.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
4917
5195
|
}
|
|
4918
5196
|
);
|
|
4919
5197
|
});
|
|
4920
5198
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
4921
5199
|
|
|
4922
5200
|
// src/components/ui/resizable.tsx
|
|
4923
|
-
var
|
|
5201
|
+
var import_lucide_react25 = require("lucide-react");
|
|
4924
5202
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
4925
|
-
var
|
|
4926
|
-
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
5203
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5204
|
+
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4927
5205
|
ResizablePrimitive.PanelGroup,
|
|
4928
5206
|
{
|
|
4929
5207
|
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
@@ -4935,7 +5213,7 @@ var ResizableHandle = ({
|
|
|
4935
5213
|
withHandle,
|
|
4936
5214
|
className,
|
|
4937
5215
|
...props
|
|
4938
|
-
}) => /* @__PURE__ */ (0,
|
|
5216
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4939
5217
|
ResizablePrimitive.PanelResizeHandle,
|
|
4940
5218
|
{
|
|
4941
5219
|
className: cn(
|
|
@@ -4943,21 +5221,21 @@ var ResizableHandle = ({
|
|
|
4943
5221
|
className
|
|
4944
5222
|
),
|
|
4945
5223
|
...props,
|
|
4946
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
5224
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react25.GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
4947
5225
|
}
|
|
4948
5226
|
);
|
|
4949
5227
|
|
|
4950
5228
|
// src/components/ui/scroll-area.tsx
|
|
4951
5229
|
var React44 = __toESM(require("react"), 1);
|
|
4952
5230
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
4953
|
-
var
|
|
4954
|
-
var ScrollArea = React44.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4955
|
-
/* @__PURE__ */ (0,
|
|
4956
|
-
/* @__PURE__ */ (0,
|
|
4957
|
-
/* @__PURE__ */ (0,
|
|
5231
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5232
|
+
var ScrollArea = React44.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(ScrollAreaPrimitive.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
5233
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
5234
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ScrollBar, {}),
|
|
5235
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
4958
5236
|
] }));
|
|
4959
5237
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
4960
|
-
var ScrollBar = React44.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0,
|
|
5238
|
+
var ScrollBar = React44.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4961
5239
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4962
5240
|
{
|
|
4963
5241
|
ref,
|
|
@@ -4969,7 +5247,7 @@ var ScrollBar = React44.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
4969
5247
|
className
|
|
4970
5248
|
),
|
|
4971
5249
|
...props,
|
|
4972
|
-
children: /* @__PURE__ */ (0,
|
|
5250
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
4973
5251
|
}
|
|
4974
5252
|
));
|
|
4975
5253
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -4977,12 +5255,12 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
4977
5255
|
// src/components/ui/select.tsx
|
|
4978
5256
|
var React45 = __toESM(require("react"), 1);
|
|
4979
5257
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
4980
|
-
var
|
|
4981
|
-
var
|
|
5258
|
+
var import_lucide_react26 = require("lucide-react");
|
|
5259
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4982
5260
|
var Select2 = SelectPrimitive2.Root;
|
|
4983
5261
|
var SelectGroup2 = SelectPrimitive2.Group;
|
|
4984
5262
|
var SelectValue2 = SelectPrimitive2.Value;
|
|
4985
|
-
var SelectTrigger2 = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5263
|
+
var SelectTrigger2 = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4986
5264
|
SelectPrimitive2.Trigger,
|
|
4987
5265
|
{
|
|
4988
5266
|
ref,
|
|
@@ -4993,32 +5271,32 @@ var SelectTrigger2 = React45.forwardRef(({ className, children, ...props }, ref)
|
|
|
4993
5271
|
...props,
|
|
4994
5272
|
children: [
|
|
4995
5273
|
children,
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
5274
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectPrimitive2.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react26.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
4997
5275
|
]
|
|
4998
5276
|
}
|
|
4999
5277
|
));
|
|
5000
5278
|
SelectTrigger2.displayName = SelectPrimitive2.Trigger.displayName;
|
|
5001
|
-
var SelectScrollUpButton = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5279
|
+
var SelectScrollUpButton = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5002
5280
|
SelectPrimitive2.ScrollUpButton,
|
|
5003
5281
|
{
|
|
5004
5282
|
ref,
|
|
5005
5283
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
5006
5284
|
...props,
|
|
5007
|
-
children: /* @__PURE__ */ (0,
|
|
5285
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react26.ChevronUp, { className: "h-4 w-4" })
|
|
5008
5286
|
}
|
|
5009
5287
|
));
|
|
5010
5288
|
SelectScrollUpButton.displayName = SelectPrimitive2.ScrollUpButton.displayName;
|
|
5011
|
-
var SelectScrollDownButton = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5289
|
+
var SelectScrollDownButton = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5012
5290
|
SelectPrimitive2.ScrollDownButton,
|
|
5013
5291
|
{
|
|
5014
5292
|
ref,
|
|
5015
5293
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
5016
5294
|
...props,
|
|
5017
|
-
children: /* @__PURE__ */ (0,
|
|
5295
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react26.ChevronDown, { className: "h-4 w-4" })
|
|
5018
5296
|
}
|
|
5019
5297
|
));
|
|
5020
5298
|
SelectScrollDownButton.displayName = SelectPrimitive2.ScrollDownButton.displayName;
|
|
5021
|
-
var SelectContent2 = React45.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0,
|
|
5299
|
+
var SelectContent2 = React45.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5022
5300
|
SelectPrimitive2.Content,
|
|
5023
5301
|
{
|
|
5024
5302
|
ref,
|
|
@@ -5030,8 +5308,8 @@ var SelectContent2 = React45.forwardRef(({ className, children, position = "popp
|
|
|
5030
5308
|
position,
|
|
5031
5309
|
...props,
|
|
5032
5310
|
children: [
|
|
5033
|
-
/* @__PURE__ */ (0,
|
|
5034
|
-
/* @__PURE__ */ (0,
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectScrollUpButton, {}),
|
|
5312
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5035
5313
|
SelectPrimitive2.Viewport,
|
|
5036
5314
|
{
|
|
5037
5315
|
className: cn(
|
|
@@ -5041,14 +5319,14 @@ var SelectContent2 = React45.forwardRef(({ className, children, position = "popp
|
|
|
5041
5319
|
children
|
|
5042
5320
|
}
|
|
5043
5321
|
),
|
|
5044
|
-
/* @__PURE__ */ (0,
|
|
5322
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectScrollDownButton, {})
|
|
5045
5323
|
]
|
|
5046
5324
|
}
|
|
5047
5325
|
) }));
|
|
5048
5326
|
SelectContent2.displayName = SelectPrimitive2.Content.displayName;
|
|
5049
|
-
var SelectLabel = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5327
|
+
var SelectLabel = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectPrimitive2.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
|
|
5050
5328
|
SelectLabel.displayName = SelectPrimitive2.Label.displayName;
|
|
5051
|
-
var SelectItem2 = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5329
|
+
var SelectItem2 = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5052
5330
|
SelectPrimitive2.Item,
|
|
5053
5331
|
{
|
|
5054
5332
|
ref,
|
|
@@ -5058,20 +5336,20 @@ var SelectItem2 = React45.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
5058
5336
|
),
|
|
5059
5337
|
...props,
|
|
5060
5338
|
children: [
|
|
5061
|
-
/* @__PURE__ */ (0,
|
|
5062
|
-
/* @__PURE__ */ (0,
|
|
5339
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react26.Check, { className: "h-4 w-4" }) }) }),
|
|
5340
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectPrimitive2.ItemText, { children })
|
|
5063
5341
|
]
|
|
5064
5342
|
}
|
|
5065
5343
|
));
|
|
5066
5344
|
SelectItem2.displayName = SelectPrimitive2.Item.displayName;
|
|
5067
|
-
var SelectSeparator = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5345
|
+
var SelectSeparator = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SelectPrimitive2.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
5068
5346
|
SelectSeparator.displayName = SelectPrimitive2.Separator.displayName;
|
|
5069
5347
|
|
|
5070
5348
|
// src/components/ui/separator.tsx
|
|
5071
5349
|
var React46 = __toESM(require("react"), 1);
|
|
5072
5350
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
5073
|
-
var
|
|
5074
|
-
var Separator5 = React46.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5351
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5352
|
+
var Separator5 = React46.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5075
5353
|
SeparatorPrimitive.Root,
|
|
5076
5354
|
{
|
|
5077
5355
|
ref,
|
|
@@ -5086,14 +5364,14 @@ Separator5.displayName = SeparatorPrimitive.Root.displayName;
|
|
|
5086
5364
|
// src/components/ui/sheet.tsx
|
|
5087
5365
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
5088
5366
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
5089
|
-
var
|
|
5367
|
+
var import_lucide_react27 = require("lucide-react");
|
|
5090
5368
|
var React47 = __toESM(require("react"), 1);
|
|
5091
|
-
var
|
|
5369
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5092
5370
|
var Sheet = SheetPrimitive.Root;
|
|
5093
5371
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
5094
5372
|
var SheetClose = SheetPrimitive.Close;
|
|
5095
5373
|
var SheetPortal = SheetPrimitive.Portal;
|
|
5096
|
-
var SheetOverlay = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5374
|
+
var SheetOverlay = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5097
5375
|
SheetPrimitive.Overlay,
|
|
5098
5376
|
{
|
|
5099
5377
|
className: cn(
|
|
@@ -5122,32 +5400,32 @@ var sheetVariants = (0, import_class_variance_authority6.cva)(
|
|
|
5122
5400
|
}
|
|
5123
5401
|
);
|
|
5124
5402
|
var SheetContent = React47.forwardRef(
|
|
5125
|
-
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5126
|
-
/* @__PURE__ */ (0,
|
|
5127
|
-
/* @__PURE__ */ (0,
|
|
5403
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(SheetPortal, { children: [
|
|
5404
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SheetOverlay, {}),
|
|
5405
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
5128
5406
|
children,
|
|
5129
|
-
/* @__PURE__ */ (0,
|
|
5130
|
-
/* @__PURE__ */ (0,
|
|
5131
|
-
/* @__PURE__ */ (0,
|
|
5407
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
5408
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_lucide_react27.X, { className: "h-4 w-4" }),
|
|
5409
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5132
5410
|
] })
|
|
5133
5411
|
] })
|
|
5134
5412
|
] })
|
|
5135
5413
|
);
|
|
5136
5414
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
5137
|
-
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
5415
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
5138
5416
|
SheetHeader.displayName = "SheetHeader";
|
|
5139
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
5417
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
5140
5418
|
SheetFooter.displayName = "SheetFooter";
|
|
5141
|
-
var SheetTitle = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5419
|
+
var SheetTitle = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
5142
5420
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
5143
|
-
var SheetDescription = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5421
|
+
var SheetDescription = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
5144
5422
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
5145
5423
|
|
|
5146
5424
|
// src/components/ui/sidebar.tsx
|
|
5147
5425
|
var React49 = __toESM(require("react"), 1);
|
|
5148
5426
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
5149
5427
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
5150
|
-
var
|
|
5428
|
+
var import_lucide_react28 = require("lucide-react");
|
|
5151
5429
|
|
|
5152
5430
|
// src/hooks/use-mobile.tsx
|
|
5153
5431
|
var React48 = __toESM(require("react"), 1);
|
|
@@ -5167,13 +5445,13 @@ function useIsMobile() {
|
|
|
5167
5445
|
}
|
|
5168
5446
|
|
|
5169
5447
|
// src/components/ui/skeleton.tsx
|
|
5170
|
-
var
|
|
5448
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5171
5449
|
function Skeleton2({ className, ...props }) {
|
|
5172
|
-
return /* @__PURE__ */ (0,
|
|
5450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props });
|
|
5173
5451
|
}
|
|
5174
5452
|
|
|
5175
5453
|
// src/components/ui/sidebar.tsx
|
|
5176
|
-
var
|
|
5454
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5177
5455
|
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
5178
5456
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5179
5457
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -5231,7 +5509,7 @@ var SidebarProvider = React49.forwardRef(({ defaultOpen = true, open: openProp,
|
|
|
5231
5509
|
}),
|
|
5232
5510
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5233
5511
|
);
|
|
5234
|
-
return /* @__PURE__ */ (0,
|
|
5512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5235
5513
|
"div",
|
|
5236
5514
|
{
|
|
5237
5515
|
style: {
|
|
@@ -5250,7 +5528,7 @@ SidebarProvider.displayName = "SidebarProvider";
|
|
|
5250
5528
|
var Sidebar = React49.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
5251
5529
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5252
5530
|
if (collapsible === "none") {
|
|
5253
|
-
return /* @__PURE__ */ (0,
|
|
5531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5254
5532
|
"div",
|
|
5255
5533
|
{
|
|
5256
5534
|
className: cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", className),
|
|
@@ -5261,7 +5539,7 @@ var Sidebar = React49.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
5261
5539
|
);
|
|
5262
5540
|
}
|
|
5263
5541
|
if (isMobile) {
|
|
5264
|
-
return /* @__PURE__ */ (0,
|
|
5542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5265
5543
|
SheetContent,
|
|
5266
5544
|
{
|
|
5267
5545
|
"data-sidebar": "sidebar",
|
|
@@ -5271,11 +5549,11 @@ var Sidebar = React49.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
5271
5549
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
5272
5550
|
},
|
|
5273
5551
|
side,
|
|
5274
|
-
children: /* @__PURE__ */ (0,
|
|
5552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5275
5553
|
}
|
|
5276
5554
|
) });
|
|
5277
5555
|
}
|
|
5278
|
-
return /* @__PURE__ */ (0,
|
|
5556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
5279
5557
|
"div",
|
|
5280
5558
|
{
|
|
5281
5559
|
ref,
|
|
@@ -5285,7 +5563,7 @@ var Sidebar = React49.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
5285
5563
|
"data-variant": variant,
|
|
5286
5564
|
"data-side": side,
|
|
5287
5565
|
children: [
|
|
5288
|
-
/* @__PURE__ */ (0,
|
|
5566
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5289
5567
|
"div",
|
|
5290
5568
|
{
|
|
5291
5569
|
className: cn(
|
|
@@ -5296,7 +5574,7 @@ var Sidebar = React49.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
5296
5574
|
)
|
|
5297
5575
|
}
|
|
5298
5576
|
),
|
|
5299
|
-
/* @__PURE__ */ (0,
|
|
5577
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5300
5578
|
"div",
|
|
5301
5579
|
{
|
|
5302
5580
|
className: cn(
|
|
@@ -5307,7 +5585,7 @@ var Sidebar = React49.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
5307
5585
|
className
|
|
5308
5586
|
),
|
|
5309
5587
|
...props,
|
|
5310
|
-
children: /* @__PURE__ */ (0,
|
|
5588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5311
5589
|
"div",
|
|
5312
5590
|
{
|
|
5313
5591
|
"data-sidebar": "sidebar",
|
|
@@ -5325,7 +5603,7 @@ Sidebar.displayName = "Sidebar";
|
|
|
5325
5603
|
var SidebarTrigger = React49.forwardRef(
|
|
5326
5604
|
({ className, onClick, ...props }, ref) => {
|
|
5327
5605
|
const { toggleSidebar } = useSidebar();
|
|
5328
|
-
return /* @__PURE__ */ (0,
|
|
5606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
5329
5607
|
Button,
|
|
5330
5608
|
{
|
|
5331
5609
|
ref,
|
|
@@ -5339,8 +5617,8 @@ var SidebarTrigger = React49.forwardRef(
|
|
|
5339
5617
|
},
|
|
5340
5618
|
...props,
|
|
5341
5619
|
children: [
|
|
5342
|
-
/* @__PURE__ */ (0,
|
|
5343
|
-
/* @__PURE__ */ (0,
|
|
5620
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_lucide_react28.PanelLeft, {}),
|
|
5621
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5344
5622
|
]
|
|
5345
5623
|
}
|
|
5346
5624
|
);
|
|
@@ -5350,7 +5628,7 @@ SidebarTrigger.displayName = "SidebarTrigger";
|
|
|
5350
5628
|
var SidebarRail = React49.forwardRef(
|
|
5351
5629
|
({ className, ...props }, ref) => {
|
|
5352
5630
|
const { toggleSidebar } = useSidebar();
|
|
5353
|
-
return /* @__PURE__ */ (0,
|
|
5631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5354
5632
|
"button",
|
|
5355
5633
|
{
|
|
5356
5634
|
ref,
|
|
@@ -5375,7 +5653,7 @@ var SidebarRail = React49.forwardRef(
|
|
|
5375
5653
|
);
|
|
5376
5654
|
SidebarRail.displayName = "SidebarRail";
|
|
5377
5655
|
var SidebarInset = React49.forwardRef(({ className, ...props }, ref) => {
|
|
5378
|
-
return /* @__PURE__ */ (0,
|
|
5656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5379
5657
|
"main",
|
|
5380
5658
|
{
|
|
5381
5659
|
ref,
|
|
@@ -5391,7 +5669,7 @@ var SidebarInset = React49.forwardRef(({ className, ...props }, ref) => {
|
|
|
5391
5669
|
SidebarInset.displayName = "SidebarInset";
|
|
5392
5670
|
var SidebarInput = React49.forwardRef(
|
|
5393
5671
|
({ className, ...props }, ref) => {
|
|
5394
|
-
return /* @__PURE__ */ (0,
|
|
5672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5395
5673
|
Input,
|
|
5396
5674
|
{
|
|
5397
5675
|
ref,
|
|
@@ -5407,16 +5685,16 @@ var SidebarInput = React49.forwardRef(
|
|
|
5407
5685
|
);
|
|
5408
5686
|
SidebarInput.displayName = "SidebarInput";
|
|
5409
5687
|
var SidebarHeader = React49.forwardRef(({ className, ...props }, ref) => {
|
|
5410
|
-
return /* @__PURE__ */ (0,
|
|
5688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
5411
5689
|
});
|
|
5412
5690
|
SidebarHeader.displayName = "SidebarHeader";
|
|
5413
5691
|
var SidebarFooter = React49.forwardRef(({ className, ...props }, ref) => {
|
|
5414
|
-
return /* @__PURE__ */ (0,
|
|
5692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
5415
5693
|
});
|
|
5416
5694
|
SidebarFooter.displayName = "SidebarFooter";
|
|
5417
5695
|
var SidebarSeparator = React49.forwardRef(
|
|
5418
5696
|
({ className, ...props }, ref) => {
|
|
5419
|
-
return /* @__PURE__ */ (0,
|
|
5697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5420
5698
|
Separator5,
|
|
5421
5699
|
{
|
|
5422
5700
|
ref,
|
|
@@ -5429,7 +5707,7 @@ var SidebarSeparator = React49.forwardRef(
|
|
|
5429
5707
|
);
|
|
5430
5708
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
5431
5709
|
var SidebarContent = React49.forwardRef(({ className, ...props }, ref) => {
|
|
5432
|
-
return /* @__PURE__ */ (0,
|
|
5710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5433
5711
|
"div",
|
|
5434
5712
|
{
|
|
5435
5713
|
ref,
|
|
@@ -5444,7 +5722,7 @@ var SidebarContent = React49.forwardRef(({ className, ...props }, ref) => {
|
|
|
5444
5722
|
});
|
|
5445
5723
|
SidebarContent.displayName = "SidebarContent";
|
|
5446
5724
|
var SidebarGroup = React49.forwardRef(({ className, ...props }, ref) => {
|
|
5447
|
-
return /* @__PURE__ */ (0,
|
|
5725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5448
5726
|
"div",
|
|
5449
5727
|
{
|
|
5450
5728
|
ref,
|
|
@@ -5458,7 +5736,7 @@ SidebarGroup.displayName = "SidebarGroup";
|
|
|
5458
5736
|
var SidebarGroupLabel = React49.forwardRef(
|
|
5459
5737
|
({ className, asChild = false, ...props }, ref) => {
|
|
5460
5738
|
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
5461
|
-
return /* @__PURE__ */ (0,
|
|
5739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5462
5740
|
Comp,
|
|
5463
5741
|
{
|
|
5464
5742
|
ref,
|
|
@@ -5477,7 +5755,7 @@ SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
|
5477
5755
|
var SidebarGroupAction = React49.forwardRef(
|
|
5478
5756
|
({ className, asChild = false, ...props }, ref) => {
|
|
5479
5757
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
5480
|
-
return /* @__PURE__ */ (0,
|
|
5758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5481
5759
|
Comp,
|
|
5482
5760
|
{
|
|
5483
5761
|
ref,
|
|
@@ -5496,12 +5774,12 @@ var SidebarGroupAction = React49.forwardRef(
|
|
|
5496
5774
|
);
|
|
5497
5775
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
5498
5776
|
var SidebarGroupContent = React49.forwardRef(
|
|
5499
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5777
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })
|
|
5500
5778
|
);
|
|
5501
5779
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
5502
|
-
var SidebarMenu = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5780
|
+
var SidebarMenu = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("ul", { ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
5503
5781
|
SidebarMenu.displayName = "SidebarMenu";
|
|
5504
|
-
var SidebarMenuItem = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5782
|
+
var SidebarMenuItem = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("li", { ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
5505
5783
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
5506
5784
|
var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)(
|
|
5507
5785
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
@@ -5526,7 +5804,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)(
|
|
|
5526
5804
|
var SidebarMenuButton = React49.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
|
|
5527
5805
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
5528
5806
|
const { isMobile, state } = useSidebar();
|
|
5529
|
-
const button = /* @__PURE__ */ (0,
|
|
5807
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5530
5808
|
Comp,
|
|
5531
5809
|
{
|
|
5532
5810
|
ref,
|
|
@@ -5545,15 +5823,15 @@ var SidebarMenuButton = React49.forwardRef(({ asChild = false, isActive = false,
|
|
|
5545
5823
|
children: tooltip
|
|
5546
5824
|
};
|
|
5547
5825
|
}
|
|
5548
|
-
return /* @__PURE__ */ (0,
|
|
5549
|
-
/* @__PURE__ */ (0,
|
|
5550
|
-
/* @__PURE__ */ (0,
|
|
5826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Tooltip, { children: [
|
|
5827
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
5828
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
5551
5829
|
] });
|
|
5552
5830
|
});
|
|
5553
5831
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
5554
5832
|
var SidebarMenuAction = React49.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
5555
5833
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
5556
|
-
return /* @__PURE__ */ (0,
|
|
5834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5557
5835
|
Comp,
|
|
5558
5836
|
{
|
|
5559
5837
|
ref,
|
|
@@ -5575,7 +5853,7 @@ var SidebarMenuAction = React49.forwardRef(({ className, asChild = false, showOn
|
|
|
5575
5853
|
});
|
|
5576
5854
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
5577
5855
|
var SidebarMenuBadge = React49.forwardRef(
|
|
5578
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5856
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5579
5857
|
"div",
|
|
5580
5858
|
{
|
|
5581
5859
|
ref,
|
|
@@ -5598,7 +5876,7 @@ var SidebarMenuSkeleton = React49.forwardRef(({ className, showIcon = false, ...
|
|
|
5598
5876
|
const width = React49.useMemo(() => {
|
|
5599
5877
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
5600
5878
|
}, []);
|
|
5601
|
-
return /* @__PURE__ */ (0,
|
|
5879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
5602
5880
|
"div",
|
|
5603
5881
|
{
|
|
5604
5882
|
ref,
|
|
@@ -5606,8 +5884,8 @@ var SidebarMenuSkeleton = React49.forwardRef(({ className, showIcon = false, ...
|
|
|
5606
5884
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
5607
5885
|
...props,
|
|
5608
5886
|
children: [
|
|
5609
|
-
showIcon && /* @__PURE__ */ (0,
|
|
5610
|
-
/* @__PURE__ */ (0,
|
|
5887
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Skeleton2, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
5888
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5611
5889
|
Skeleton2,
|
|
5612
5890
|
{
|
|
5613
5891
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -5623,7 +5901,7 @@ var SidebarMenuSkeleton = React49.forwardRef(({ className, showIcon = false, ...
|
|
|
5623
5901
|
});
|
|
5624
5902
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
5625
5903
|
var SidebarMenuSub = React49.forwardRef(
|
|
5626
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5904
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5627
5905
|
"ul",
|
|
5628
5906
|
{
|
|
5629
5907
|
ref,
|
|
@@ -5638,11 +5916,11 @@ var SidebarMenuSub = React49.forwardRef(
|
|
|
5638
5916
|
)
|
|
5639
5917
|
);
|
|
5640
5918
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
5641
|
-
var SidebarMenuSubItem = React49.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
5919
|
+
var SidebarMenuSubItem = React49.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("li", { ref, ...props }));
|
|
5642
5920
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
5643
5921
|
var SidebarMenuSubButton = React49.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
5644
5922
|
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
5645
|
-
return /* @__PURE__ */ (0,
|
|
5923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5646
5924
|
Comp,
|
|
5647
5925
|
{
|
|
5648
5926
|
ref,
|
|
@@ -5666,31 +5944,62 @@ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
|
5666
5944
|
// src/components/ui/slider.tsx
|
|
5667
5945
|
var React50 = __toESM(require("react"), 1);
|
|
5668
5946
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
5669
|
-
var
|
|
5670
|
-
var Slider = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5947
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
5948
|
+
var Slider = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
5671
5949
|
SliderPrimitive.Root,
|
|
5672
5950
|
{
|
|
5673
5951
|
ref,
|
|
5674
5952
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
5675
5953
|
...props,
|
|
5676
5954
|
children: [
|
|
5677
|
-
/* @__PURE__ */ (0,
|
|
5678
|
-
/* @__PURE__ */ (0,
|
|
5955
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
5956
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary 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" })
|
|
5679
5957
|
]
|
|
5680
5958
|
}
|
|
5681
5959
|
));
|
|
5682
5960
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
5683
5961
|
|
|
5684
5962
|
// src/components/ui/sonner.tsx
|
|
5685
|
-
var
|
|
5963
|
+
var React51 = __toESM(require("react"), 1);
|
|
5686
5964
|
var import_sonner = require("sonner");
|
|
5687
|
-
var
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5965
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5966
|
+
function resolveDocumentTheme() {
|
|
5967
|
+
if (typeof document === "undefined") return "system";
|
|
5968
|
+
if (document.documentElement.classList.contains("dark")) return "dark";
|
|
5969
|
+
if (document.documentElement.classList.contains("light")) return "light";
|
|
5970
|
+
if (typeof window !== "undefined" && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
5971
|
+
return "dark";
|
|
5972
|
+
}
|
|
5973
|
+
return "light";
|
|
5974
|
+
}
|
|
5975
|
+
var Toaster = ({ theme, ...props }) => {
|
|
5976
|
+
const [resolvedTheme, setResolvedTheme] = React51.useState(() => theme != null ? theme : "system");
|
|
5977
|
+
React51.useEffect(() => {
|
|
5978
|
+
if (typeof theme !== "undefined") return;
|
|
5979
|
+
const syncTheme = () => setResolvedTheme(resolveDocumentTheme());
|
|
5980
|
+
syncTheme();
|
|
5981
|
+
if (typeof window === "undefined" || typeof document === "undefined") return;
|
|
5982
|
+
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
5983
|
+
const handleMediaChange = () => syncTheme();
|
|
5984
|
+
const observer = new MutationObserver(syncTheme);
|
|
5985
|
+
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
|
|
5986
|
+
if (typeof mediaQuery.addEventListener === "function") {
|
|
5987
|
+
mediaQuery.addEventListener("change", handleMediaChange);
|
|
5988
|
+
return () => {
|
|
5989
|
+
mediaQuery.removeEventListener("change", handleMediaChange);
|
|
5990
|
+
observer.disconnect();
|
|
5991
|
+
};
|
|
5992
|
+
}
|
|
5993
|
+
mediaQuery.addListener(handleMediaChange);
|
|
5994
|
+
return () => {
|
|
5995
|
+
mediaQuery.removeListener(handleMediaChange);
|
|
5996
|
+
observer.disconnect();
|
|
5997
|
+
};
|
|
5998
|
+
}, [theme]);
|
|
5999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
5691
6000
|
import_sonner.Toaster,
|
|
5692
6001
|
{
|
|
5693
|
-
theme,
|
|
6002
|
+
theme: theme != null ? theme : resolvedTheme,
|
|
5694
6003
|
className: "toaster group",
|
|
5695
6004
|
toastOptions: {
|
|
5696
6005
|
classNames: {
|
|
@@ -5706,10 +6015,10 @@ var Toaster = ({ ...props }) => {
|
|
|
5706
6015
|
};
|
|
5707
6016
|
|
|
5708
6017
|
// src/components/ui/switch.tsx
|
|
5709
|
-
var
|
|
6018
|
+
var React52 = __toESM(require("react"), 1);
|
|
5710
6019
|
var SwitchPrimitives2 = __toESM(require("@radix-ui/react-switch"), 1);
|
|
5711
|
-
var
|
|
5712
|
-
var Switch2 =
|
|
6020
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6021
|
+
var Switch2 = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
5713
6022
|
SwitchPrimitives2.Root,
|
|
5714
6023
|
{
|
|
5715
6024
|
className: cn(
|
|
@@ -5718,7 +6027,7 @@ var Switch2 = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
5718
6027
|
),
|
|
5719
6028
|
...props,
|
|
5720
6029
|
ref,
|
|
5721
|
-
children: /* @__PURE__ */ (0,
|
|
6030
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
5722
6031
|
SwitchPrimitives2.Thumb,
|
|
5723
6032
|
{
|
|
5724
6033
|
className: cn(
|
|
@@ -5731,26 +6040,26 @@ var Switch2 = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
5731
6040
|
Switch2.displayName = SwitchPrimitives2.Root.displayName;
|
|
5732
6041
|
|
|
5733
6042
|
// src/components/ui/table.tsx
|
|
5734
|
-
var
|
|
5735
|
-
var
|
|
5736
|
-
var Table =
|
|
5737
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6043
|
+
var React53 = __toESM(require("react"), 1);
|
|
6044
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6045
|
+
var Table = React53.forwardRef(
|
|
6046
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
5738
6047
|
);
|
|
5739
6048
|
Table.displayName = "Table";
|
|
5740
|
-
var TableHeader =
|
|
5741
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6049
|
+
var TableHeader = React53.forwardRef(
|
|
6050
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
5742
6051
|
);
|
|
5743
6052
|
TableHeader.displayName = "TableHeader";
|
|
5744
|
-
var TableBody =
|
|
5745
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6053
|
+
var TableBody = React53.forwardRef(
|
|
6054
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
5746
6055
|
);
|
|
5747
6056
|
TableBody.displayName = "TableBody";
|
|
5748
|
-
var TableFooter =
|
|
5749
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6057
|
+
var TableFooter = React53.forwardRef(
|
|
6058
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })
|
|
5750
6059
|
);
|
|
5751
6060
|
TableFooter.displayName = "TableFooter";
|
|
5752
|
-
var TableRow =
|
|
5753
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6061
|
+
var TableRow = React53.forwardRef(
|
|
6062
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
5754
6063
|
"tr",
|
|
5755
6064
|
{
|
|
5756
6065
|
ref,
|
|
@@ -5760,8 +6069,8 @@ var TableRow = React52.forwardRef(
|
|
|
5760
6069
|
)
|
|
5761
6070
|
);
|
|
5762
6071
|
TableRow.displayName = "TableRow";
|
|
5763
|
-
var TableHead =
|
|
5764
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6072
|
+
var TableHead = React53.forwardRef(
|
|
6073
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
5765
6074
|
"th",
|
|
5766
6075
|
{
|
|
5767
6076
|
ref,
|
|
@@ -5774,21 +6083,21 @@ var TableHead = React52.forwardRef(
|
|
|
5774
6083
|
)
|
|
5775
6084
|
);
|
|
5776
6085
|
TableHead.displayName = "TableHead";
|
|
5777
|
-
var TableCell =
|
|
5778
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6086
|
+
var TableCell = React53.forwardRef(
|
|
6087
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })
|
|
5779
6088
|
);
|
|
5780
6089
|
TableCell.displayName = "TableCell";
|
|
5781
|
-
var TableCaption =
|
|
5782
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6090
|
+
var TableCaption = React53.forwardRef(
|
|
6091
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })
|
|
5783
6092
|
);
|
|
5784
6093
|
TableCaption.displayName = "TableCaption";
|
|
5785
6094
|
|
|
5786
6095
|
// src/components/ui/tabs.tsx
|
|
5787
|
-
var
|
|
6096
|
+
var React54 = __toESM(require("react"), 1);
|
|
5788
6097
|
var TabsPrimitive2 = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
5789
|
-
var
|
|
6098
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
5790
6099
|
var Tabs2 = TabsPrimitive2.Root;
|
|
5791
|
-
var TabsList2 =
|
|
6100
|
+
var TabsList2 = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5792
6101
|
TabsPrimitive2.List,
|
|
5793
6102
|
{
|
|
5794
6103
|
ref,
|
|
@@ -5800,7 +6109,7 @@ var TabsList2 = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
5800
6109
|
}
|
|
5801
6110
|
));
|
|
5802
6111
|
TabsList2.displayName = TabsPrimitive2.List.displayName;
|
|
5803
|
-
var TabsTrigger2 =
|
|
6112
|
+
var TabsTrigger2 = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5804
6113
|
TabsPrimitive2.Trigger,
|
|
5805
6114
|
{
|
|
5806
6115
|
ref,
|
|
@@ -5812,7 +6121,7 @@ var TabsTrigger2 = React53.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5812
6121
|
}
|
|
5813
6122
|
));
|
|
5814
6123
|
TabsTrigger2.displayName = TabsPrimitive2.Trigger.displayName;
|
|
5815
|
-
var TabsContent2 =
|
|
6124
|
+
var TabsContent2 = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5816
6125
|
TabsPrimitive2.Content,
|
|
5817
6126
|
{
|
|
5818
6127
|
ref,
|
|
@@ -5826,10 +6135,10 @@ var TabsContent2 = React53.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5826
6135
|
TabsContent2.displayName = TabsPrimitive2.Content.displayName;
|
|
5827
6136
|
|
|
5828
6137
|
// src/components/ui/textarea.tsx
|
|
5829
|
-
var
|
|
5830
|
-
var
|
|
5831
|
-
var Textarea =
|
|
5832
|
-
return /* @__PURE__ */ (0,
|
|
6138
|
+
var React55 = __toESM(require("react"), 1);
|
|
6139
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6140
|
+
var Textarea = React55.forwardRef(({ className, ...props }, ref) => {
|
|
6141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
5833
6142
|
"textarea",
|
|
5834
6143
|
{
|
|
5835
6144
|
className: cn(
|
|
@@ -5844,13 +6153,13 @@ var Textarea = React54.forwardRef(({ className, ...props }, ref) => {
|
|
|
5844
6153
|
Textarea.displayName = "Textarea";
|
|
5845
6154
|
|
|
5846
6155
|
// src/components/ui/toast.tsx
|
|
5847
|
-
var
|
|
6156
|
+
var React56 = __toESM(require("react"), 1);
|
|
5848
6157
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
5849
6158
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
5850
|
-
var
|
|
5851
|
-
var
|
|
6159
|
+
var import_lucide_react29 = require("lucide-react");
|
|
6160
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5852
6161
|
var ToastProvider = ToastPrimitives.Provider;
|
|
5853
|
-
var ToastViewport =
|
|
6162
|
+
var ToastViewport = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5854
6163
|
ToastPrimitives.Viewport,
|
|
5855
6164
|
{
|
|
5856
6165
|
ref,
|
|
@@ -5876,11 +6185,11 @@ var toastVariants = (0, import_class_variance_authority8.cva)(
|
|
|
5876
6185
|
}
|
|
5877
6186
|
}
|
|
5878
6187
|
);
|
|
5879
|
-
var Toast =
|
|
5880
|
-
return /* @__PURE__ */ (0,
|
|
6188
|
+
var Toast = React56.forwardRef(({ className, variant, ...props }, ref) => {
|
|
6189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToastPrimitives.Root, { ref, className: cn(toastVariants({ variant }), className), ...props });
|
|
5881
6190
|
});
|
|
5882
6191
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
5883
|
-
var ToastAction =
|
|
6192
|
+
var ToastAction = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5884
6193
|
ToastPrimitives.Action,
|
|
5885
6194
|
{
|
|
5886
6195
|
ref,
|
|
@@ -5892,7 +6201,7 @@ var ToastAction = React55.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5892
6201
|
}
|
|
5893
6202
|
));
|
|
5894
6203
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
5895
|
-
var ToastClose =
|
|
6204
|
+
var ToastClose = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5896
6205
|
ToastPrimitives.Close,
|
|
5897
6206
|
{
|
|
5898
6207
|
ref,
|
|
@@ -5902,17 +6211,17 @@ var ToastClose = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
5902
6211
|
),
|
|
5903
6212
|
"toast-close": "",
|
|
5904
6213
|
...props,
|
|
5905
|
-
children: /* @__PURE__ */ (0,
|
|
6214
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react29.X, { className: "h-4 w-4" })
|
|
5906
6215
|
}
|
|
5907
6216
|
));
|
|
5908
6217
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
5909
|
-
var ToastTitle =
|
|
6218
|
+
var ToastTitle = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToastPrimitives.Title, { ref, className: cn("text-sm font-semibold", className), ...props }));
|
|
5910
6219
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
5911
|
-
var ToastDescription =
|
|
6220
|
+
var ToastDescription = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToastPrimitives.Description, { ref, className: cn("text-sm opacity-90", className), ...props }));
|
|
5912
6221
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
5913
6222
|
|
|
5914
6223
|
// src/hooks/use-toast.ts
|
|
5915
|
-
var
|
|
6224
|
+
var React57 = __toESM(require("react"), 1);
|
|
5916
6225
|
var TOAST_LIMIT = 1;
|
|
5917
6226
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
5918
6227
|
var count = 0;
|
|
@@ -6011,8 +6320,8 @@ function toast2({ ...props }) {
|
|
|
6011
6320
|
};
|
|
6012
6321
|
}
|
|
6013
6322
|
function useToast() {
|
|
6014
|
-
const [state, setState] =
|
|
6015
|
-
|
|
6323
|
+
const [state, setState] = React57.useState(memoryState);
|
|
6324
|
+
React57.useEffect(() => {
|
|
6016
6325
|
listeners.push(setState);
|
|
6017
6326
|
return () => {
|
|
6018
6327
|
const index = listeners.indexOf(setState);
|
|
@@ -6029,29 +6338,29 @@ function useToast() {
|
|
|
6029
6338
|
}
|
|
6030
6339
|
|
|
6031
6340
|
// src/components/ui/toaster.tsx
|
|
6032
|
-
var
|
|
6341
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6033
6342
|
function Toaster2() {
|
|
6034
6343
|
const { toasts } = useToast();
|
|
6035
|
-
return /* @__PURE__ */ (0,
|
|
6344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(ToastProvider, { children: [
|
|
6036
6345
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
6037
|
-
return /* @__PURE__ */ (0,
|
|
6038
|
-
/* @__PURE__ */ (0,
|
|
6039
|
-
title && /* @__PURE__ */ (0,
|
|
6040
|
-
description && /* @__PURE__ */ (0,
|
|
6346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(Toast, { ...props, children: [
|
|
6347
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "grid gap-1", children: [
|
|
6348
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToastTitle, { children: title }),
|
|
6349
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToastDescription, { children: description })
|
|
6041
6350
|
] }),
|
|
6042
6351
|
action,
|
|
6043
|
-
/* @__PURE__ */ (0,
|
|
6352
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToastClose, {})
|
|
6044
6353
|
] }, id);
|
|
6045
6354
|
}),
|
|
6046
|
-
/* @__PURE__ */ (0,
|
|
6355
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToastViewport, {})
|
|
6047
6356
|
] });
|
|
6048
6357
|
}
|
|
6049
6358
|
|
|
6050
6359
|
// src/components/ui/toggle.tsx
|
|
6051
|
-
var
|
|
6360
|
+
var React58 = __toESM(require("react"), 1);
|
|
6052
6361
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
6053
6362
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
6054
|
-
var
|
|
6363
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6055
6364
|
var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
6056
6365
|
"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",
|
|
6057
6366
|
{
|
|
@@ -6072,22 +6381,22 @@ var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
|
6072
6381
|
}
|
|
6073
6382
|
}
|
|
6074
6383
|
);
|
|
6075
|
-
var Toggle =
|
|
6384
|
+
var Toggle = React58.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
6076
6385
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
6077
6386
|
|
|
6078
6387
|
// src/components/ui/toggle-group.tsx
|
|
6079
|
-
var
|
|
6388
|
+
var React59 = __toESM(require("react"), 1);
|
|
6080
6389
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
6081
|
-
var
|
|
6082
|
-
var ToggleGroupContext =
|
|
6390
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
6391
|
+
var ToggleGroupContext = React59.createContext({
|
|
6083
6392
|
size: "default",
|
|
6084
6393
|
variant: "default"
|
|
6085
6394
|
});
|
|
6086
|
-
var ToggleGroup =
|
|
6395
|
+
var ToggleGroup = React59.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
6087
6396
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
6088
|
-
var ToggleGroupItem =
|
|
6089
|
-
const context =
|
|
6090
|
-
return /* @__PURE__ */ (0,
|
|
6397
|
+
var ToggleGroupItem = React59.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
6398
|
+
const context = React59.useContext(ToggleGroupContext);
|
|
6399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6091
6400
|
ToggleGroupPrimitive.Item,
|
|
6092
6401
|
{
|
|
6093
6402
|
ref,
|
|
@@ -6104,136 +6413,6 @@ var ToggleGroupItem = React58.forwardRef(({ className, children, variant, size,
|
|
|
6104
6413
|
);
|
|
6105
6414
|
});
|
|
6106
6415
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
6107
|
-
|
|
6108
|
-
// src/lib/navigation.tsx
|
|
6109
|
-
var import_lucide_react29 = require("lucide-react");
|
|
6110
|
-
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6111
|
-
var getMainNavItems = () => [
|
|
6112
|
-
{
|
|
6113
|
-
label: "In\xEDcio",
|
|
6114
|
-
href: "/",
|
|
6115
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react29.Home, { className: "h-4 w-4" })
|
|
6116
|
-
},
|
|
6117
|
-
{
|
|
6118
|
-
label: "Design System",
|
|
6119
|
-
href: "/design-system",
|
|
6120
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react29.Layers, { className: "h-4 w-4" })
|
|
6121
|
-
},
|
|
6122
|
-
{
|
|
6123
|
-
label: "Docs",
|
|
6124
|
-
href: "/docs",
|
|
6125
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react29.BookOpen, { className: "h-4 w-4" })
|
|
6126
|
-
}
|
|
6127
|
-
];
|
|
6128
|
-
|
|
6129
|
-
// src/lib/dock.ts
|
|
6130
|
-
var mainDockCategories = [
|
|
6131
|
-
{
|
|
6132
|
-
id: "home",
|
|
6133
|
-
title: "Home",
|
|
6134
|
-
slug: "mn-homepage",
|
|
6135
|
-
order: 0,
|
|
6136
|
-
tooltip: "P\xE1gina inicial",
|
|
6137
|
-
href: "/",
|
|
6138
|
-
bgImageUrl: "92b6c6ac-6e41-47cf-9b92-0e16131af1c4",
|
|
6139
|
-
cards: []
|
|
6140
|
-
},
|
|
6141
|
-
{
|
|
6142
|
-
id: "marketing",
|
|
6143
|
-
title: "Marketing",
|
|
6144
|
-
slug: "marketing",
|
|
6145
|
-
order: 1,
|
|
6146
|
-
tooltip: "Servi\xE7os de Marketing",
|
|
6147
|
-
bgImageUrl: "f9a6fe47-b519-483b-8b14-a86402d30e78",
|
|
6148
|
-
cards: [
|
|
6149
|
-
{
|
|
6150
|
-
title: "Branding",
|
|
6151
|
-
description: "Otimiza\xE7\xE3o para mecanismos de busca",
|
|
6152
|
-
buttons: [
|
|
6153
|
-
{ type: "link", label: "Saiba mais >", href: "/marketing/seo" }
|
|
6154
|
-
]
|
|
6155
|
-
},
|
|
6156
|
-
{
|
|
6157
|
-
title: "Redes Sociais",
|
|
6158
|
-
description: "Gest\xE3o de redes sociais",
|
|
6159
|
-
buttons: [
|
|
6160
|
-
{ type: "link", label: "Saiba mais >", href: "/marketing/social" }
|
|
6161
|
-
]
|
|
6162
|
-
}
|
|
6163
|
-
]
|
|
6164
|
-
},
|
|
6165
|
-
{
|
|
6166
|
-
id: "desenvolvimento",
|
|
6167
|
-
title: "Desenvolvimento",
|
|
6168
|
-
slug: "mn-desenvolvimento",
|
|
6169
|
-
order: 2,
|
|
6170
|
-
tooltip: "Desenvolvimento Web",
|
|
6171
|
-
bgImageUrl: "308d748a-14f1-4794-bd42-d36c4d082983",
|
|
6172
|
-
cards: [
|
|
6173
|
-
{
|
|
6174
|
-
title: "Frontend",
|
|
6175
|
-
description: "React, Vue, Angular",
|
|
6176
|
-
buttons: [
|
|
6177
|
-
{ type: "link", label: "Saiba mais >", href: "/dev/frontend" }
|
|
6178
|
-
]
|
|
6179
|
-
},
|
|
6180
|
-
{
|
|
6181
|
-
title: "Backend",
|
|
6182
|
-
description: "Node.js, Python, PHP",
|
|
6183
|
-
buttons: [
|
|
6184
|
-
{ type: "link", label: "Saiba mais >", href: "/dev/backend" }
|
|
6185
|
-
]
|
|
6186
|
-
}
|
|
6187
|
-
]
|
|
6188
|
-
},
|
|
6189
|
-
{
|
|
6190
|
-
id: "solucoes",
|
|
6191
|
-
title: "Solu\xE7\xF5es",
|
|
6192
|
-
slug: "mn-solucoes",
|
|
6193
|
-
order: 3,
|
|
6194
|
-
tooltip: "Nossas Solu\xE7\xF5es",
|
|
6195
|
-
bgImageUrl: "3d166e89-1cd0-48aa-a056-c849f3a749b2",
|
|
6196
|
-
cards: [
|
|
6197
|
-
{
|
|
6198
|
-
title: "Cloud Computing",
|
|
6199
|
-
description: "Infraestrutura escal\xE1vel",
|
|
6200
|
-
buttons: [
|
|
6201
|
-
{ type: "link", label: "Saiba mais >", href: "/solucoes/cloud" }
|
|
6202
|
-
]
|
|
6203
|
-
}
|
|
6204
|
-
]
|
|
6205
|
-
},
|
|
6206
|
-
{
|
|
6207
|
-
id: "cases",
|
|
6208
|
-
title: "Cases",
|
|
6209
|
-
slug: "mn-cases-de-sucesso",
|
|
6210
|
-
order: 4,
|
|
6211
|
-
tooltip: "Cases de Sucesso",
|
|
6212
|
-
href: "/cases",
|
|
6213
|
-
bgImageUrl: "a22bc9cf-ed3d-44a1-b53f-10ebe9960a52",
|
|
6214
|
-
cards: []
|
|
6215
|
-
},
|
|
6216
|
-
{
|
|
6217
|
-
id: "sobre-nos",
|
|
6218
|
-
title: "Sobre N\xF3s",
|
|
6219
|
-
slug: "mn-sobre-nos",
|
|
6220
|
-
order: 5,
|
|
6221
|
-
tooltip: "Conhe\xE7a a Cupcode",
|
|
6222
|
-
href: "/sobre-nos",
|
|
6223
|
-
bgImageUrl: "2916aa79-3d21-4d1c-9787-1969f5e2b865",
|
|
6224
|
-
cards: []
|
|
6225
|
-
},
|
|
6226
|
-
{
|
|
6227
|
-
id: "contato",
|
|
6228
|
-
title: "Contato",
|
|
6229
|
-
slug: "mn-contato",
|
|
6230
|
-
order: 6,
|
|
6231
|
-
tooltip: "Fale conosco",
|
|
6232
|
-
href: "/contato",
|
|
6233
|
-
bgImageUrl: "102c3568-cb5a-48b8-878b-1ba170c3e8f5",
|
|
6234
|
-
cards: []
|
|
6235
|
-
}
|
|
6236
|
-
];
|
|
6237
6416
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6238
6417
|
0 && (module.exports = {
|
|
6239
6418
|
Accordion,
|
|
@@ -6404,6 +6583,7 @@ var mainDockCategories = [
|
|
|
6404
6583
|
Label,
|
|
6405
6584
|
LoadingScreen,
|
|
6406
6585
|
LoadingSpinner,
|
|
6586
|
+
MainNavbar,
|
|
6407
6587
|
Menubar,
|
|
6408
6588
|
MenubarCheckboxItem,
|
|
6409
6589
|
MenubarContent,
|
|
@@ -6550,7 +6730,6 @@ var mainDockCategories = [
|
|
|
6550
6730
|
buttonVariants,
|
|
6551
6731
|
cn,
|
|
6552
6732
|
getMainNavItems,
|
|
6553
|
-
mainDockCategories,
|
|
6554
6733
|
navigationMenuTriggerStyle,
|
|
6555
6734
|
parseAssetId,
|
|
6556
6735
|
responsiveSizeClasses,
|
|
@@ -6565,4 +6744,3 @@ var mainDockCategories = [
|
|
|
6565
6744
|
useTelescupMeta,
|
|
6566
6745
|
useToast
|
|
6567
6746
|
});
|
|
6568
|
-
//# sourceMappingURL=index.cjs.map
|