@axzydev/axzy_ui_system 1.8.11 → 1.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8914,9 +8914,12 @@ function ITSidebar({
8914
8914
  header,
8915
8915
  notification,
8916
8916
  brand,
8917
+ profile,
8918
+ variant = "default",
8917
8919
  onToggleCollapse,
8918
8920
  expandOnHover = true
8919
8921
  }) {
8922
+ const bentoPanel = variant === "bento";
8920
8923
  const appearance = useITAppearance();
8921
8924
  const bento = appearance === "bento";
8922
8925
  const flat = appearance === "flat" || bento;
@@ -9153,7 +9156,7 @@ function ITSidebar({
9153
9156
  }
9154
9157
  );
9155
9158
  };
9156
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9159
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9157
9160
  "aside",
9158
9161
  {
9159
9162
  ref: sidebarRef,
@@ -9167,202 +9170,243 @@ function ITSidebar({
9167
9170
  `,
9168
9171
  style: {
9169
9172
  zIndex: 50,
9170
- backgroundColor: "var(--it-sidebar-bg, rgba(255, 255, 255, 0.90))",
9171
- borderRight: bento ? "none" : "1px solid var(--it-sidebar-border, var(--color-secondary-200))",
9172
- ...flat ? {} : { WebkitBackdropFilter: "blur(12px)", backdropFilter: "blur(12px)" }
9173
+ backgroundColor: bentoPanel ? "transparent" : "var(--it-sidebar-bg, rgba(255, 255, 255, 0.90))",
9174
+ borderRight: bento || bentoPanel ? "none" : "1px solid var(--it-sidebar-border, var(--color-secondary-200))",
9175
+ ...bentoPanel || !flat ? {} : { WebkitBackdropFilter: "blur(12px)", backdropFilter: "blur(12px)" }
9173
9176
  },
9174
- children: [
9175
- brand && (brand.logo || brand.text) && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9176
- "div",
9177
- {
9178
- className: `flex items-center flex-shrink-0 h-[64px] ${isSidebarCollapsed ? "justify-center px-2" : "gap-2.5 px-7"}`,
9179
- children: [
9180
- brand.logo && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-shrink-0 flex items-center", children: brand.logo }),
9181
- brand.text && !isSidebarCollapsed && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9182
- ITText,
9183
- {
9184
- as: "span",
9185
- className: "text-[1.05rem] font-bold tracking-tight truncate",
9186
- style: { color: "var(--it-sidebar-brand-color, var(--it-sidebar-label-color, var(--color-secondary-900)))" },
9187
- children: brand.text
9188
- }
9189
- )
9190
- ]
9191
- }
9192
- ),
9193
- header && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `px-4 pt-4 pb-1 flex-shrink-0 ${isSidebarCollapsed ? "overflow-hidden" : ""}`, children: isSidebarCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `${expandedWidth} invisible`, "aria-hidden": "true", children: header }) : header }),
9194
- notification && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-4 pt-3 flex-shrink-0", children: renderNotification() }),
9195
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("nav", { "aria-label": t("sidebar.navAria"), className: `flex-1 py-4 px-4 custom-scrollbar ${fixedRail ? "overflow-visible" : "overflow-y-auto overflow-x-hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { className: "space-y-1", children: navigationItems.map((item) => {
9196
- const hasSubmenu = !!item.subitems && item.subitems.length > 0;
9197
- const submenuId = `it-sidebar-submenu-${item.id}`;
9198
- const hasRenderedSubmenu = hasSubmenu && !isSidebarCollapsed;
9199
- const { className: badgeClassName, ...badgeRest } = item.badgeProps ?? {};
9200
- const active = !!item.isActive && !(flat && hasSubmenu && !isSidebarCollapsed);
9201
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("li", { className: "relative group/navitem", children: [
9202
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9177
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9178
+ "div",
9179
+ {
9180
+ className: bentoPanel ? "flex h-full min-h-0 flex-col overflow-hidden rounded-[26px]" : "flex h-full min-h-0 flex-col",
9181
+ style: bentoPanel ? {
9182
+ backgroundColor: "var(--it-sidebar-bg, var(--it-card-bg, #ffffff))",
9183
+ boxShadow: "0 18px 44px -28px rgba(13, 47, 64, 0.45), inset 0 0 0 1px rgba(13, 47, 64, 0.05)"
9184
+ } : void 0,
9185
+ children: [
9186
+ brand && (brand.logo || brand.text) && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9203
9187
  "div",
9204
9188
  {
9205
- role: "button",
9206
- tabIndex: 0,
9207
- "aria-label": item.label,
9208
- "aria-expanded": hasSubmenu ? expandedItems.has(item.id) : void 0,
9209
- "aria-controls": hasRenderedSubmenu ? submenuId : void 0,
9210
- className: `flex items-center cursor-pointer
9189
+ className: `flex items-center flex-shrink-0 h-[64px] ${isSidebarCollapsed ? "justify-center px-2" : "gap-2.5 px-7"}`,
9190
+ children: [
9191
+ brand.logo && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-shrink-0 flex items-center", children: brand.logo }),
9192
+ brand.text && !isSidebarCollapsed && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9193
+ ITText,
9194
+ {
9195
+ as: "span",
9196
+ className: "text-[1.05rem] font-bold tracking-tight truncate",
9197
+ style: { color: "var(--it-sidebar-brand-color, var(--it-sidebar-label-color, var(--color-secondary-900)))" },
9198
+ children: brand.text
9199
+ }
9200
+ )
9201
+ ]
9202
+ }
9203
+ ),
9204
+ header && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `px-4 pt-4 pb-1 flex-shrink-0 ${isSidebarCollapsed ? "overflow-hidden" : ""}`, children: isSidebarCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `${expandedWidth} invisible`, "aria-hidden": "true", children: header }) : header }),
9205
+ notification && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-4 pt-3 flex-shrink-0", children: renderNotification() }),
9206
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("nav", { "aria-label": t("sidebar.navAria"), className: `flex-1 py-4 px-4 custom-scrollbar ${fixedRail ? "overflow-visible" : "overflow-y-auto overflow-x-hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { className: "space-y-1", children: navigationItems.map((item) => {
9207
+ const hasSubmenu = !!item.subitems && item.subitems.length > 0;
9208
+ const submenuId = `it-sidebar-submenu-${item.id}`;
9209
+ const hasRenderedSubmenu = hasSubmenu && !isSidebarCollapsed;
9210
+ const { className: badgeClassName, ...badgeRest } = item.badgeProps ?? {};
9211
+ const active = !!item.isActive && !(flat && hasSubmenu && !isSidebarCollapsed);
9212
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("li", { className: "relative group/navitem", children: [
9213
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9214
+ "div",
9215
+ {
9216
+ role: "button",
9217
+ tabIndex: 0,
9218
+ "aria-label": item.label,
9219
+ "aria-expanded": hasSubmenu ? expandedItems.has(item.id) : void 0,
9220
+ "aria-controls": hasRenderedSubmenu ? submenuId : void 0,
9221
+ className: `flex items-center cursor-pointer
9211
9222
  transition-all duration-300 ease-[cubic-bezier(0.2,0,0,1)]
9212
9223
  rounded-xl relative overflow-visible
9213
9224
  h-10
9214
9225
  ${flat ? "px-3" : "px-5"}
9215
9226
  ${isSidebarCollapsed ? "justify-start" : "justify-between"}
9216
9227
  `,
9217
- style: {
9218
- backgroundColor: active ? "var(--it-sidebar-active-bg, var(--color-secondary-50))" : "transparent",
9219
- boxShadow: active && !flat ? "var(--shadow-xs)" : "none",
9220
- border: active && !flat ? "1px solid var(--it-sidebar-border, var(--color-secondary-200))" : "1px solid transparent"
9221
- },
9222
- onMouseEnter: (e) => {
9223
- if (!active) e.currentTarget.style.backgroundColor = "var(--it-sidebar-hover-bg, var(--color-secondary-100))";
9224
- },
9225
- onMouseLeave: (e) => {
9226
- if (!active) e.currentTarget.style.backgroundColor = "transparent";
9227
- },
9228
- onClick: () => handleItemClick(item),
9229
- onKeyDown: (e) => {
9230
- if (e.key === "Enter" || e.key === " ") {
9231
- e.preventDefault();
9232
- handleItemClick(item);
9233
- }
9234
- },
9235
- children: [
9236
- active && !isSidebarCollapsed && !flat && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9237
- "div",
9238
- {
9239
- className: "absolute left-0 top-1/4 bottom-1/4 w-[3px] rounded-r-full transition-all",
9240
- style: { backgroundColor: "var(--it-sidebar-active-icon, var(--color-primary-500))", boxShadow: "0 0 10px var(--it-sidebar-active-icon, var(--color-primary-500))" }
9241
- }
9242
- ),
9243
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center gap-2.5 relative z-10 w-full", children: [
9244
- item.icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9245
- "div",
9246
- {
9247
- className: `transition-all duration-300 flex-shrink-0 flex items-center justify-center`,
9248
- style: {
9249
- color: active ? "var(--it-sidebar-active-icon, var(--color-primary-500))" : "var(--it-sidebar-icon-color, #9ca3af)",
9250
- opacity: active ? 1 : 0.8,
9251
- fontSize: flat ? "1rem" : active ? "1.12rem" : "1.05rem",
9252
- filter: active && !flat ? "drop-shadow(0 0 8px rgba(255,255,255,0.2))" : "none"
9253
- },
9254
- children: item.icon
9255
- }
9256
- ),
9257
- !isSidebarCollapsed && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9258
- ITText,
9259
- {
9260
- as: "span",
9261
- className: `transition-all duration-300 truncate tracking-wide`,
9262
- style: {
9263
- color: active ? "var(--it-sidebar-active-color, #ffffff)" : "var(--it-sidebar-label-color, var(--color-secondary-300))",
9264
- fontSize: flat ? "0.875rem" : "0.8rem",
9265
- fontWeight: active ? bento ? "700" : "600" : "500"
9266
- },
9267
- children: item.label
9228
+ style: {
9229
+ backgroundColor: active ? "var(--it-sidebar-active-bg, var(--color-secondary-50))" : "transparent",
9230
+ boxShadow: active && !flat ? "var(--shadow-xs)" : "none",
9231
+ border: active && !flat ? "1px solid var(--it-sidebar-border, var(--color-secondary-200))" : "1px solid transparent"
9232
+ },
9233
+ onMouseEnter: (e) => {
9234
+ if (!active) e.currentTarget.style.backgroundColor = "var(--it-sidebar-hover-bg, var(--color-secondary-100))";
9235
+ },
9236
+ onMouseLeave: (e) => {
9237
+ if (!active) e.currentTarget.style.backgroundColor = "transparent";
9238
+ },
9239
+ onClick: () => handleItemClick(item),
9240
+ onKeyDown: (e) => {
9241
+ if (e.key === "Enter" || e.key === " ") {
9242
+ e.preventDefault();
9243
+ handleItemClick(item);
9268
9244
  }
9269
- )
9270
- ] }),
9271
- !isSidebarCollapsed && item.subitems && item.subitems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9272
- "div",
9273
- {
9274
- className: `flex-shrink-0 transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "rotate-180" : ""}`,
9275
- style: { color: active ? "var(--it-sidebar-active-color, var(--color-secondary-900))" : "var(--it-sidebar-icon-color, var(--color-secondary-500))", opacity: 0.7 },
9276
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_fa26.FaChevronDown, { className: "w-3 h-3" })
9277
- }
9278
- ),
9279
- item.badge != null && item.badge !== "" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9280
- ITBadget,
9281
- {
9282
- color: "primary",
9283
- size: "sm",
9284
- ...badgeRest,
9285
- className: (0, import_clsx42.default)(
9286
- "absolute shadow-md",
9287
- // En el riel no hay ancho para una etiqueta larga: el badge se
9288
- // ancla a la esquina y se recorta, así nunca desborda ni tapa el icono.
9289
- isSidebarCollapsed ? "top-0.5 right-0.5 max-w-[2.1rem] overflow-hidden" : "right-3 top-1/2 -translate-y-1/2",
9290
- badgeClassName
9245
+ },
9246
+ children: [
9247
+ active && !isSidebarCollapsed && !flat && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9248
+ "div",
9249
+ {
9250
+ className: "absolute left-0 top-1/4 bottom-1/4 w-[3px] rounded-r-full transition-all",
9251
+ style: { backgroundColor: "var(--it-sidebar-active-icon, var(--color-primary-500))", boxShadow: "0 0 10px var(--it-sidebar-active-icon, var(--color-primary-500))" }
9252
+ }
9291
9253
  ),
9292
- children: isSidebarCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(RailBadge, { value: item.badge }) : String(item.badge)
9293
- }
9294
- )
9295
- ]
9296
- }
9297
- ),
9298
- isSidebarCollapsed && flat && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9299
- "div",
9300
- {
9301
- role: "tooltip",
9302
- className: "absolute left-full top-1/2 -translate-y-1/2 ml-3 px-2.5 py-1.5 rounded-lg whitespace-nowrap opacity-0 invisible group-hover/navitem:opacity-100 group-hover/navitem:visible transition-opacity duration-150 pointer-events-none z-[70]",
9303
- style: {
9304
- backgroundColor: "var(--it-sidebar-tooltip-bg, var(--color-secondary-900))",
9305
- color: "var(--it-sidebar-tooltip-color, #ffffff)",
9306
- fontSize: "0.78rem",
9307
- fontWeight: 500
9308
- },
9309
- children: item.label
9310
- }
9311
- ),
9312
- isSidebarCollapsed && !flat && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9313
- "div",
9314
- {
9315
- className: "absolute left-full top-0 ml-4 rounded-2xl opacity-0 invisible group-hover/navitem:opacity-100 group-hover/navitem:visible transition-all duration-300 pointer-events-none z-[70] min-w-[220px] overflow-hidden -translate-x-2 group-hover/navitem:translate-x-0 shadow-[0_10px_40px_-10px_rgba(0,0,0,0.15)]",
9316
- style: {
9317
- backgroundColor: "var(--it-sidebar-bg, #ffffff)",
9318
- border: "1px solid var(--it-sidebar-border, var(--color-secondary-200))",
9319
- WebkitBackdropFilter: "blur(16px)",
9320
- backdropFilter: "blur(16px)"
9321
- },
9322
- children: [
9323
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "px-5 py-4 flex items-center gap-3 font-semibold border-b", style: { borderColor: "var(--it-sidebar-border, var(--color-secondary-200))", color: "var(--it-sidebar-active-color, var(--color-secondary-900))" }, children: [
9324
- item.icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { style: { color: "var(--it-sidebar-active-icon, var(--color-primary-500))" }, className: "text-xl drop-shadow-sm", children: item.icon }),
9325
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "span", className: "tracking-wide text-[15px]", children: item.label })
9326
- ] }),
9327
- item.subitems && item.subitems.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "py-2", children: flattenSubItems(item.subitems).map((subitem) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9328
- "div",
9329
- {
9330
- className: `px-5 py-2.5 text-sm flex items-center gap-3 transition-colors relative`,
9331
- children: [
9332
- subitem.isActive && subitemConnector === "|" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9254
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center gap-2.5 relative z-10 w-full", children: [
9255
+ item.icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9333
9256
  "div",
9334
9257
  {
9335
- className: "absolute left-0 top-1/3 bottom-1/3 w-[2.5px] rounded-r-full",
9258
+ className: `transition-all duration-300 flex-shrink-0 flex items-center justify-center`,
9336
9259
  style: {
9337
- backgroundColor: "var(--it-sidebar-active-icon, var(--color-primary-500))",
9338
- boxShadow: "0 0 6px color-mix(in srgb, var(--it-sidebar-active-icon, var(--color-primary-500)) 25%, transparent)"
9339
- }
9260
+ color: active ? "var(--it-sidebar-active-icon, var(--color-primary-500))" : "var(--it-sidebar-icon-color, #9ca3af)",
9261
+ opacity: active ? 1 : 0.8,
9262
+ fontSize: flat ? "1rem" : active ? "1.12rem" : "1.05rem",
9263
+ filter: active && !flat ? "drop-shadow(0 0 8px rgba(255,255,255,0.2))" : "none"
9264
+ },
9265
+ children: item.icon
9340
9266
  }
9341
9267
  ),
9342
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: `w-1.5 h-1.5 rounded-full transition-all ${subitem.isActive ? "scale-125" : ""}`, style: { backgroundColor: subitem.isActive ? "var(--it-sidebar-active-icon, var(--color-primary-500))" : "var(--it-sidebar-icon-color, var(--color-secondary-400))" } }),
9343
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "span", style: { color: subitem.isActive ? "var(--it-sidebar-active-color, var(--color-secondary-900))" : "var(--it-sidebar-label-color, var(--color-secondary-600))", fontWeight: subitem.isActive ? 600 : 500 }, children: subitem.label })
9344
- ]
9268
+ !isSidebarCollapsed && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9269
+ ITText,
9270
+ {
9271
+ as: "span",
9272
+ className: `transition-all duration-300 truncate tracking-wide`,
9273
+ style: {
9274
+ color: active ? "var(--it-sidebar-active-color, #ffffff)" : "var(--it-sidebar-label-color, var(--color-secondary-300))",
9275
+ fontSize: flat ? "0.875rem" : "0.8rem",
9276
+ fontWeight: active ? bento ? "700" : "600" : "500"
9277
+ },
9278
+ children: item.label
9279
+ }
9280
+ )
9281
+ ] }),
9282
+ !isSidebarCollapsed && item.subitems && item.subitems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9283
+ "div",
9284
+ {
9285
+ className: `flex-shrink-0 transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "rotate-180" : ""}`,
9286
+ style: { color: active ? "var(--it-sidebar-active-color, var(--color-secondary-900))" : "var(--it-sidebar-icon-color, var(--color-secondary-500))", opacity: 0.7 },
9287
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_fa26.FaChevronDown, { className: "w-3 h-3" })
9288
+ }
9289
+ ),
9290
+ item.badge != null && item.badge !== "" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9291
+ ITBadget,
9292
+ {
9293
+ color: "primary",
9294
+ size: "sm",
9295
+ ...badgeRest,
9296
+ className: (0, import_clsx42.default)(
9297
+ "absolute shadow-md",
9298
+ // En el riel no hay ancho para una etiqueta larga: el badge se
9299
+ // ancla a la esquina y se recorta, así nunca desborda ni tapa el icono.
9300
+ isSidebarCollapsed ? "top-0.5 right-0.5 max-w-[2.1rem] overflow-hidden" : "right-3 top-1/2 -translate-y-1/2",
9301
+ badgeClassName
9302
+ ),
9303
+ children: isSidebarCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(RailBadge, { value: item.badge }) : String(item.badge)
9304
+ }
9305
+ )
9306
+ ]
9307
+ }
9308
+ ),
9309
+ isSidebarCollapsed && flat && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9310
+ "div",
9311
+ {
9312
+ role: "tooltip",
9313
+ className: "absolute left-full top-1/2 -translate-y-1/2 ml-3 px-2.5 py-1.5 rounded-lg whitespace-nowrap opacity-0 invisible group-hover/navitem:opacity-100 group-hover/navitem:visible transition-opacity duration-150 pointer-events-none z-[70]",
9314
+ style: {
9315
+ backgroundColor: "var(--it-sidebar-tooltip-bg, var(--color-secondary-900))",
9316
+ color: "var(--it-sidebar-tooltip-color, #ffffff)",
9317
+ fontSize: "0.78rem",
9318
+ fontWeight: 500
9345
9319
  },
9346
- subitem.id
9347
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "div", className: "px-5 py-3 text-sm italic", style: { color: "var(--it-sidebar-label-color, var(--color-secondary-400))" }, children: t("sidebar.noSubmenu") })
9348
- ]
9349
- }
9350
- ),
9351
- !isSidebarCollapsed && item.subitems && item.subitems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { id: submenuId, role: "group", "aria-label": item.label, className: `overflow-hidden transition-all duration-400 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "max-h-[1000px] opacity-100 mt-1" : "max-h-0 opacity-0"}`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9352
- "ul",
9320
+ children: item.label
9321
+ }
9322
+ ),
9323
+ isSidebarCollapsed && !flat && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9324
+ "div",
9325
+ {
9326
+ className: "absolute left-full top-0 ml-4 rounded-2xl opacity-0 invisible group-hover/navitem:opacity-100 group-hover/navitem:visible transition-all duration-300 pointer-events-none z-[70] min-w-[220px] overflow-hidden -translate-x-2 group-hover/navitem:translate-x-0 shadow-[0_10px_40px_-10px_rgba(0,0,0,0.15)]",
9327
+ style: {
9328
+ backgroundColor: "var(--it-sidebar-bg, #ffffff)",
9329
+ border: "1px solid var(--it-sidebar-border, var(--color-secondary-200))",
9330
+ WebkitBackdropFilter: "blur(16px)",
9331
+ backdropFilter: "blur(16px)"
9332
+ },
9333
+ children: [
9334
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "px-5 py-4 flex items-center gap-3 font-semibold border-b", style: { borderColor: "var(--it-sidebar-border, var(--color-secondary-200))", color: "var(--it-sidebar-active-color, var(--color-secondary-900))" }, children: [
9335
+ item.icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { style: { color: "var(--it-sidebar-active-icon, var(--color-primary-500))" }, className: "text-xl drop-shadow-sm", children: item.icon }),
9336
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "span", className: "tracking-wide text-[15px]", children: item.label })
9337
+ ] }),
9338
+ item.subitems && item.subitems.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "py-2", children: flattenSubItems(item.subitems).map((subitem) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9339
+ "div",
9340
+ {
9341
+ className: `px-5 py-2.5 text-sm flex items-center gap-3 transition-colors relative`,
9342
+ children: [
9343
+ subitem.isActive && subitemConnector === "|" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9344
+ "div",
9345
+ {
9346
+ className: "absolute left-0 top-1/3 bottom-1/3 w-[2.5px] rounded-r-full",
9347
+ style: {
9348
+ backgroundColor: "var(--it-sidebar-active-icon, var(--color-primary-500))",
9349
+ boxShadow: "0 0 6px color-mix(in srgb, var(--it-sidebar-active-icon, var(--color-primary-500)) 25%, transparent)"
9350
+ }
9351
+ }
9352
+ ),
9353
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: `w-1.5 h-1.5 rounded-full transition-all ${subitem.isActive ? "scale-125" : ""}`, style: { backgroundColor: subitem.isActive ? "var(--it-sidebar-active-icon, var(--color-primary-500))" : "var(--it-sidebar-icon-color, var(--color-secondary-400))" } }),
9354
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "span", style: { color: subitem.isActive ? "var(--it-sidebar-active-color, var(--color-secondary-900))" : "var(--it-sidebar-label-color, var(--color-secondary-600))", fontWeight: subitem.isActive ? 600 : 500 }, children: subitem.label })
9355
+ ]
9356
+ },
9357
+ subitem.id
9358
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "div", className: "px-5 py-3 text-sm italic", style: { color: "var(--it-sidebar-label-color, var(--color-secondary-400))" }, children: t("sidebar.noSubmenu") })
9359
+ ]
9360
+ }
9361
+ ),
9362
+ !isSidebarCollapsed && item.subitems && item.subitems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { id: submenuId, role: "group", "aria-label": item.label, className: `overflow-hidden transition-all duration-400 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "max-h-[1000px] opacity-100 mt-1" : "max-h-0 opacity-0"}`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9363
+ "ul",
9364
+ {
9365
+ className: `${flat && subitemConnector === "|" ? "ml-[21px] pl-2" : "ml-4"} flex flex-col gap-0 py-0.5`,
9366
+ style: {
9367
+ borderLeft: subitemConnector === "|" ? "1px solid var(--it-sidebar-border, var(--color-secondary-200))" : "none"
9368
+ },
9369
+ children: item.subitems.map(
9370
+ (entry) => isSubItemGroup(entry) ? renderSubItemGroup(entry, item.id) : renderSubItem(entry)
9371
+ )
9372
+ }
9373
+ ) })
9374
+ ] }, item.id);
9375
+ }) }) }),
9376
+ bentoPanel && profile && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-shrink-0 px-3 pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9377
+ "button",
9353
9378
  {
9354
- className: `${flat && subitemConnector === "|" ? "ml-[21px] pl-2" : "ml-4"} flex flex-col gap-0 py-0.5`,
9355
- style: {
9356
- borderLeft: subitemConnector === "|" ? "1px solid var(--it-sidebar-border, var(--color-secondary-200))" : "none"
9357
- },
9358
- children: item.subitems.map(
9359
- (entry) => isSubItemGroup(entry) ? renderSubItemGroup(entry, item.id) : renderSubItem(entry)
9360
- )
9379
+ type: "button",
9380
+ onClick: profile.onClick,
9381
+ "aria-label": profile.label ?? profile.name,
9382
+ title: isSidebarCollapsed ? profile.name : void 0,
9383
+ className: `flex w-full items-center gap-2.5 rounded-2xl px-2.5 py-2 text-left transition-colors hover:bg-[var(--it-sidebar-hover-bg,var(--color-secondary-100))] ${isSidebarCollapsed ? "justify-center" : ""}`,
9384
+ children: [
9385
+ profile.image ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("img", { src: profile.image, alt: "", className: "h-9 w-9 flex-shrink-0 rounded-full object-cover" }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9386
+ "span",
9387
+ {
9388
+ "aria-hidden": "true",
9389
+ className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full text-[12px] font-bold",
9390
+ style: {
9391
+ backgroundColor: "var(--color-primary-50)",
9392
+ color: "var(--color-primary-600)"
9393
+ },
9394
+ children: profile.name.split(" ").filter(Boolean).slice(0, 2).map((part) => part[0]).join("").toUpperCase()
9395
+ }
9396
+ ),
9397
+ !isSidebarCollapsed && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
9398
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "min-w-0 flex-1", children: [
9399
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "span", className: "block truncate text-[13px] font-bold", style: { color: "var(--it-sidebar-label-color, var(--color-secondary-900))" }, children: profile.name }),
9400
+ profile.detail && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ITText, { as: "span", className: "block truncate text-[11px]", style: { color: "var(--it-sidebar-icon-color, var(--color-secondary-500))" }, children: profile.detail })
9401
+ ] }),
9402
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_fa26.FaChevronDown, { className: "h-3 w-3 -rotate-90 opacity-50", "aria-hidden": "true" })
9403
+ ] })
9404
+ ]
9361
9405
  }
9362
9406
  ) })
9363
- ] }, item.id);
9364
- }) }) })
9365
- ]
9407
+ ]
9408
+ }
9409
+ )
9366
9410
  }
9367
9411
  );
9368
9412
  }
@@ -15598,7 +15642,8 @@ function ITTopBar({
15598
15642
  navItems,
15599
15643
  onNavItemClick,
15600
15644
  hideBrandOnDesktop = false,
15601
- showDesktopMenuButton = false
15645
+ showDesktopMenuButton = false,
15646
+ variant = "default"
15602
15647
  }) {
15603
15648
  const appearance = useITAppearance();
15604
15649
  const bento = appearance === "bento";
@@ -15610,14 +15655,15 @@ function ITTopBar({
15610
15655
  const [isUserMenuOpen, setIsUserMenuOpen] = (0, import_react60.useState)(false);
15611
15656
  const userMenuRef = (0, import_react60.useRef)(null);
15612
15657
  useClickOutside_default(userMenuRef, () => setIsUserMenuOpen(false));
15658
+ const floating = variant === "bento";
15613
15659
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
15614
15660
  "header",
15615
15661
  {
15616
- className: `sticky top-0 z-40 transition-all duration-300 ${flat ? "" : "backdrop-blur-md"}`,
15662
+ className: `sticky top-0 z-40 transition-all duration-300 ${floating ? "mx-2 mt-2 rounded-[22px]" : ""} ${flat && !floating ? "" : "backdrop-blur-md"}`,
15617
15663
  style: {
15618
- backgroundColor: bento ? "var(--it-layout-bg, #f4f4f6)" : "var(--it-topbar-bg, rgba(255, 255, 255, 0.9))",
15619
- borderBottom: bento ? "none" : "1px solid var(--it-topbar-border, rgba(15, 23, 42, 0.06))",
15620
- boxShadow: flat ? "none" : "var(--shadow-xs)"
15664
+ backgroundColor: floating ? "var(--it-card-bg, #ffffff)" : bento ? "var(--it-layout-bg, #f4f4f6)" : "var(--it-topbar-bg, rgba(255, 255, 255, 0.9))",
15665
+ borderBottom: floating || bento ? "none" : "1px solid var(--it-topbar-border, rgba(15, 23, 42, 0.06))",
15666
+ boxShadow: floating ? "0 16px 40px -30px rgba(13, 47, 64, 0.45)" : flat ? "none" : "var(--shadow-xs)"
15621
15667
  },
15622
15668
  children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `flex items-center justify-between px-6 lg:px-8 ${flat ? "h-[64px]" : "h-[72px]"}`, children: [
15623
15669
  /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center gap-5", children: [
@@ -15848,7 +15894,7 @@ function ITLayout({
15848
15894
  isCollapsed: desktopCollapsed,
15849
15895
  onToggleCollapse: handleToggleCollapse,
15850
15896
  visibleOnMobile: false,
15851
- className: `h-full ${flat ? "" : "drop-shadow-2xl"} transition-all duration-400 ease-[cubic-bezier(0.2,0,0,1)] flex-shrink-0`
15897
+ className: `h-full ${flat ? "" : "drop-shadow-2xl"} transition-all duration-400 ease-[cubic-bezier(0.2,0,0,1)] flex-shrink-0 ${sidebar.className ?? ""}`
15852
15898
  }
15853
15899
  ) })
15854
15900
  ] })
@@ -15870,7 +15916,7 @@ function ITLayout({
15870
15916
  brand,
15871
15917
  isCollapsed: false,
15872
15918
  visibleOnMobile: true,
15873
- className: "h-full shadow-2xl relative z-[60]",
15919
+ className: `h-full shadow-2xl relative z-[60] ${sidebar.className ?? ""}`,
15874
15920
  onToggleCollapse: () => setMobileSidebarOpen(false),
15875
15921
  onItemClick: () => setMobileSidebarOpen(false),
15876
15922
  onSubItemClick: () => setMobileSidebarOpen(false)