@datatechsolutions/ui 2.11.22 → 2.11.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10271,7 +10271,7 @@ function ProfileIdentityCard({
10271
10271
  ] })
10272
10272
  ] }) });
10273
10273
  }
10274
- function SettingsDialog({
10274
+ function GlassSidebarModal({
10275
10275
  open,
10276
10276
  onClose,
10277
10277
  title,
@@ -10283,9 +10283,10 @@ function SettingsDialog({
10283
10283
  activeSectionId,
10284
10284
  onSectionChange,
10285
10285
  children,
10286
- closeLabel = "Close settings",
10286
+ closeLabel = "Close",
10287
10287
  identity,
10288
- sidebarFooter
10288
+ sidebarFooter,
10289
+ footer
10289
10290
  }) {
10290
10291
  const sectionGroups = sections.reduce((groups, section) => {
10291
10292
  const currentGroup = groups.at(-1);
@@ -10305,17 +10306,18 @@ function SettingsDialog({
10305
10306
  open,
10306
10307
  onClose,
10307
10308
  contentClassName: "fixed inset-0 flex items-center justify-center overflow-y-auto p-2 sm:p-4 lg:p-6",
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)]",
10309
+ panelClassName: "w-full max-w-[90vw] xl:max-w-[1400px] overflow-hidden rounded-2xl liquid-surface-strong shadow-[0_40px_100px_-30px_rgba(0,0,0,0.55)]",
10310
+ ariaLabelledBy: "settings-dialog-title",
10309
10311
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex h-[min(94vh,920px)] flex-col lg:flex-row", children: [
10310
10312
  /* @__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,
10313
+ gradient ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1.5 w-full rounded-tl-2xl bg-gradient-to-r ${gradient} lg:rounded-tr-none` }) : null,
10312
10314
  /* @__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
10315
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-5 p-5 pb-0 pr-12", children: [
10314
10316
  icon || label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3 flex items-center gap-3", children: [
10315
10317
  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
10318
  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
10319
  ] }) : /* @__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 }),
10320
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { id: "settings-dialog-title", className: "text-2xl font-semibold text-slate-950 dark:text-white", children: title }),
10319
10321
  subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1.5 text-sm text-slate-600 dark:text-slate-400", children: subtitle }) : null
10320
10322
  ] }),
10321
10323
  identity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -10345,7 +10347,8 @@ function SettingsDialog({
10345
10347
  ].join(" "),
10346
10348
  children: [
10347
10349
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex h-10 w-10 items-center justify-center rounded-2xl bg-white/50 text-slate-600 shadow-sm backdrop-blur-sm dark:bg-white/[0.08] dark:text-slate-300", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-5 w-5" }) }),
10348
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: section.label })
10350
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1", children: section.label }),
10351
+ section.badge != null && section.badge > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-indigo-100 px-1.5 text-[10px] font-bold text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300", children: section.badge })
10349
10352
  ]
10350
10353
  },
10351
10354
  section.id
@@ -10355,8 +10358,9 @@ function SettingsDialog({
10355
10358
  sidebarFooter ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 px-5", children: sidebarFooter }) : null
10356
10359
  ] }),
10357
10360
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "relative flex min-h-0 flex-1 flex-col", children: [
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" }),
10359
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col overflow-y-auto px-6 pb-8 pt-16 sm:px-8 lg:px-10 lg:pb-10", children })
10361
+ gradient ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `hidden lg:block h-1.5 w-full bg-gradient-to-r ${gradient}` }) : /* @__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" }),
10362
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex min-h-0 flex-1 flex-col overflow-y-auto px-6 sm:px-8 lg:px-10 ${gradient ? "pt-8" : "pt-16"} ${footer ? "pb-4" : "pb-8 lg:pb-10"}`, children }),
10363
+ footer ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-white/20 px-6 py-4 dark:border-white/10 sm:px-8 lg:px-10", children: footer }) : null
10360
10364
  ] }),
10361
10365
  /* @__PURE__ */ jsxRuntime.jsx(
10362
10366
  "button",
@@ -10364,7 +10368,7 @@ function SettingsDialog({
10364
10368
  type: "button",
10365
10369
  onClick: onClose,
10366
10370
  "aria-label": closeLabel,
10367
- className: "absolute right-4 top-4 inline-flex h-11 w-11 items-center justify-center rounded-2xl liquid-surface text-slate-600 shadow-sm transition hover:text-slate-950 dark:text-slate-300 dark:hover:text-white",
10371
+ className: "absolute right-4 top-4 z-10 inline-flex h-9 w-9 items-center justify-center rounded-xl text-slate-400 transition hover:bg-white/40 hover:text-slate-700 dark:hover:bg-white/[0.08] dark:hover:text-white focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
10368
10372
  children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-5 w-5" })
10369
10373
  }
10370
10374
  )
@@ -10372,6 +10376,7 @@ function SettingsDialog({
10372
10376
  }
10373
10377
  );
10374
10378
  }
10379
+ var SettingsDialog = GlassSidebarModal;
10375
10380
  function GlassDetailModal({
10376
10381
  open,
10377
10382
  onClose,
@@ -20295,6 +20300,7 @@ exports.GlassDetailModal = GlassDetailModal;
20295
20300
  exports.GlassFormModal = GlassFormModal;
20296
20301
  exports.GlassModal = GlassModal;
20297
20302
  exports.GlassModalShell = GlassModalShell;
20303
+ exports.GlassSidebarModal = GlassSidebarModal;
20298
20304
  exports.Gradient = Gradient;
20299
20305
  exports.GradientBackground = GradientBackground;
20300
20306
  exports.GrowthIndicator = GrowthIndicator;
@@ -20828,5 +20834,5 @@ exports.useGeoMapState = useGeoMapState;
20828
20834
  exports.useNotifications = useNotifications;
20829
20835
  exports.usePlatformShellStore = usePlatformShellStore;
20830
20836
  exports.usePullToRefresh = usePullToRefresh;
20831
- //# sourceMappingURL=chunk-5WFBHIM5.js.map
20832
- //# sourceMappingURL=chunk-5WFBHIM5.js.map
20837
+ //# sourceMappingURL=chunk-DXY4VHMX.js.map
20838
+ //# sourceMappingURL=chunk-DXY4VHMX.js.map