@datatechsolutions/ui 2.11.23 → 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.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
+ var chunkS7KHTUHA_js = require('./chunk-S7KHTUHA.js');
4
5
  var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
5
6
  var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
6
- var chunkS7KHTUHA_js = require('./chunk-S7KHTUHA.js');
7
7
  var Headless6 = require('@headlessui/react');
8
8
  var clsx = require('clsx');
9
9
  var React12 = require('react');
@@ -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);
@@ -10346,7 +10347,8 @@ function SettingsDialog({
10346
10347
  ].join(" "),
10347
10348
  children: [
10348
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" }) }),
10349
- /* @__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 })
10350
10352
  ]
10351
10353
  },
10352
10354
  section.id
@@ -10357,7 +10359,8 @@ function SettingsDialog({
10357
10359
  ] }),
10358
10360
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "relative flex min-h-0 flex-1 flex-col", children: [
10359
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" }),
10360
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex min-h-0 flex-1 flex-col overflow-y-auto px-6 pb-8 sm:px-8 lg:px-10 lg:pb-10 ${gradient ? "pt-8" : "pt-16"}`, children })
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
10361
10364
  ] }),
10362
10365
  /* @__PURE__ */ jsxRuntime.jsx(
10363
10366
  "button",
@@ -10373,6 +10376,7 @@ function SettingsDialog({
10373
10376
  }
10374
10377
  );
10375
10378
  }
10379
+ var SettingsDialog = GlassSidebarModal;
10376
10380
  function GlassDetailModal({
10377
10381
  open,
10378
10382
  onClose,
@@ -20296,6 +20300,7 @@ exports.GlassDetailModal = GlassDetailModal;
20296
20300
  exports.GlassFormModal = GlassFormModal;
20297
20301
  exports.GlassModal = GlassModal;
20298
20302
  exports.GlassModalShell = GlassModalShell;
20303
+ exports.GlassSidebarModal = GlassSidebarModal;
20299
20304
  exports.Gradient = Gradient;
20300
20305
  exports.GradientBackground = GradientBackground;
20301
20306
  exports.GrowthIndicator = GrowthIndicator;
@@ -20829,5 +20834,5 @@ exports.useGeoMapState = useGeoMapState;
20829
20834
  exports.useNotifications = useNotifications;
20830
20835
  exports.usePlatformShellStore = usePlatformShellStore;
20831
20836
  exports.usePullToRefresh = usePullToRefresh;
20832
- //# sourceMappingURL=chunk-6UEVHQTJ.js.map
20833
- //# sourceMappingURL=chunk-6UEVHQTJ.js.map
20837
+ //# sourceMappingURL=chunk-DXY4VHMX.js.map
20838
+ //# sourceMappingURL=chunk-DXY4VHMX.js.map