@datatechsolutions/ui 2.11.20 → 2.11.22

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.
@@ -10276,6 +10276,9 @@ function SettingsDialog({
10276
10276
  onClose,
10277
10277
  title,
10278
10278
  subtitle,
10279
+ gradient,
10280
+ icon,
10281
+ label,
10279
10282
  sections,
10280
10283
  activeSectionId,
10281
10284
  onSectionChange,
@@ -10304,14 +10307,18 @@ function SettingsDialog({
10304
10307
  contentClassName: "fixed inset-0 flex items-center justify-center overflow-y-auto p-2 sm:p-4 lg:p-6",
10305
10308
  panelClassName: "w-full max-w-[90vw] xl:max-w-[1400px] overflow-hidden rounded-[2rem] liquid-surface-strong shadow-[0_40px_100px_-30px_rgba(0,0,0,0.55)]",
10306
10309
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex h-[min(94vh,920px)] flex-col lg:flex-row", children: [
10307
- /* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "relative flex w-full shrink-0 flex-col border-b border-white/25 bg-gradient-to-b from-white/40 via-white/20 to-white/10 p-5 dark:border-white/8 dark:from-white/[0.06] dark:via-white/[0.03] dark:to-transparent lg:w-80 lg:border-b-0 lg:border-r lg:border-white/20 lg:dark:border-white/8", children: [
10308
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-x-5 top-0 h-px bg-gradient-to-r from-transparent via-white/70 to-transparent dark:via-white/12" }),
10309
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-5 pr-12", children: [
10310
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400", children: "Settings" }),
10311
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "mt-2 text-2xl font-semibold text-slate-950 dark:text-white", children: title }),
10312
- subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-slate-600 dark:text-slate-400", children: subtitle }) : null
10310
+ /* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "relative flex w-full shrink-0 flex-col border-b border-white/25 bg-gradient-to-b from-white/40 via-white/20 to-white/10 dark:border-white/8 dark:from-white/[0.06] dark:via-white/[0.03] dark:to-transparent lg:w-80 lg:border-b-0 lg:border-r lg:border-white/20 lg:dark:border-white/8", children: [
10311
+ gradient ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1.5 w-full rounded-t-[2rem] bg-gradient-to-r ${gradient} lg:rounded-tr-none` }) : null,
10312
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-x-5 top-0 h-px bg-gradient-to-r from-transparent via-white/70 to-transparent dark:via-white/12", style: gradient ? { top: "6px" } : void 0 }),
10313
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-5 p-5 pb-0 pr-12", children: [
10314
+ icon || label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3 flex items-center gap-3", children: [
10315
+ icon ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-10 w-10 items-center justify-center rounded-xl shadow-lg ${gradient ? `bg-gradient-to-br ${gradient}` : "bg-gradient-to-br from-slate-500 to-gray-600"}`, children: icon }) : null,
10316
+ label ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400", children: label }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400", children: "Settings" })
10317
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400", children: "Settings" }),
10318
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-semibold text-slate-950 dark:text-white", children: title }),
10319
+ subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1.5 text-sm text-slate-600 dark:text-slate-400", children: subtitle }) : null
10313
10320
  ] }),
10314
- identity ? /* @__PURE__ */ jsxRuntime.jsx(
10321
+ identity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5", children: /* @__PURE__ */ jsxRuntime.jsx(
10315
10322
  ProfileIdentityCard,
10316
10323
  {
10317
10324
  displayName: identity.displayName,
@@ -10321,8 +10328,8 @@ function SettingsDialog({
10321
10328
  role: identity.role,
10322
10329
  showEmail: identity.showEmail ?? true
10323
10330
  }
10324
- ) : null,
10325
- /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "mt-5 flex-1 space-y-6 overflow-y-auto pr-1", "aria-label": title, children: sectionGroups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
10331
+ ) }) : null,
10332
+ /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "mt-5 flex-1 space-y-6 overflow-y-auto px-5 pr-4", "aria-label": title, children: sectionGroups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
10326
10333
  group.label ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 px-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-500", children: group.label }) : null,
10327
10334
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1.5", children: group.sections.map((section) => {
10328
10335
  const Icon = section.icon;
@@ -10345,7 +10352,7 @@ function SettingsDialog({
10345
10352
  );
10346
10353
  }) })
10347
10354
  ] }, group.label ?? group.sections.map((section) => section.id).join("-"))) }),
10348
- sidebarFooter ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: sidebarFooter }) : null
10355
+ sidebarFooter ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 px-5", children: sidebarFooter }) : null
10349
10356
  ] }),
10350
10357
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "relative flex min-h-0 flex-1 flex-col", children: [
10351
10358
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-x-6 top-0 h-px bg-gradient-to-r from-transparent via-white/50 to-transparent dark:via-white/10" }),
@@ -20821,5 +20828,5 @@ exports.useGeoMapState = useGeoMapState;
20821
20828
  exports.useNotifications = useNotifications;
20822
20829
  exports.usePlatformShellStore = usePlatformShellStore;
20823
20830
  exports.usePullToRefresh = usePullToRefresh;
20824
- //# sourceMappingURL=chunk-BSPRG6ZF.js.map
20825
- //# sourceMappingURL=chunk-BSPRG6ZF.js.map
20831
+ //# sourceMappingURL=chunk-5WFBHIM5.js.map
20832
+ //# sourceMappingURL=chunk-5WFBHIM5.js.map