@datatechsolutions/ui 2.7.133 → 2.7.134

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.
@@ -9854,6 +9854,77 @@ function SettingsDialog({
9854
9854
  }
9855
9855
  );
9856
9856
  }
9857
+ var SIZE_CLASSES2 = {
9858
+ sm: "max-w-sm",
9859
+ md: "max-w-md",
9860
+ lg: "max-w-lg",
9861
+ xl: "max-w-xl",
9862
+ "2xl": "max-w-2xl",
9863
+ "3xl": "max-w-3xl",
9864
+ "4xl": "max-w-4xl",
9865
+ "5xl": "max-w-5xl",
9866
+ "6xl": "max-w-6xl",
9867
+ full: "max-w-[90vw]"
9868
+ };
9869
+ function GlassModalShell({
9870
+ open,
9871
+ onClose,
9872
+ gradient,
9873
+ icon,
9874
+ label,
9875
+ title,
9876
+ subtitle,
9877
+ headerActions,
9878
+ children,
9879
+ footer,
9880
+ onSubmit,
9881
+ maxWidth = "4xl",
9882
+ closeLabel = "Close",
9883
+ className = ""
9884
+ }) {
9885
+ const handleSubmit = (event) => {
9886
+ event.preventDefault();
9887
+ onSubmit?.(event);
9888
+ };
9889
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9890
+ gradient && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1.5 w-full bg-gradient-to-r ${gradient}` }),
9891
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative px-5 pb-4 pt-5 sm:px-8 sm:pt-6", children: [
9892
+ /* @__PURE__ */ jsxRuntime.jsx(
9893
+ "button",
9894
+ {
9895
+ type: "button",
9896
+ onClick: onClose,
9897
+ "aria-label": closeLabel,
9898
+ className: "absolute right-4 top-4 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",
9899
+ children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-5 w-5" })
9900
+ }
9901
+ ),
9902
+ (icon || label) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center gap-2 text-slate-600 dark:text-white/70", children: [
9903
+ icon,
9904
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: label })
9905
+ ] }),
9906
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 pr-10", children: [
9907
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
9908
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-bold text-slate-900 dark:text-white sm:text-2xl", children: title }),
9909
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-slate-500 dark:text-slate-400", children: subtitle })
9910
+ ] }),
9911
+ headerActions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: headerActions })
9912
+ ] })
9913
+ ] }),
9914
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-h-[72vh] overflow-y-auto px-5 pb-5 sm:px-8 sm:pb-8", children }),
9915
+ footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-white/20 px-5 py-4 dark:border-white/10 sm:px-8", children: footer })
9916
+ ] });
9917
+ return /* @__PURE__ */ jsxRuntime.jsxs(Headless6.Dialog, { open, onClose, className: "relative z-50", children: [
9918
+ /* @__PURE__ */ jsxRuntime.jsx(Headless6.DialogBackdrop, { className: "fixed inset-0 bg-slate-900/40 backdrop-blur-md" }),
9919
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-0 overflow-y-auto p-3 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex min-h-full items-start justify-center pt-[4vh] sm:pt-[8vh]", children: /* @__PURE__ */ jsxRuntime.jsx(
9920
+ Headless6.DialogPanel,
9921
+ {
9922
+ className: `liquid-surface-strong w-full overflow-hidden rounded-2xl ${SIZE_CLASSES2[maxWidth]} ${className}`,
9923
+ children: onSubmit ? /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleSubmit, children: inner }) : inner
9924
+ }
9925
+ ) }) })
9926
+ ] });
9927
+ }
9857
9928
  function Fieldset2({
9858
9929
  className,
9859
9930
  ...props
@@ -13962,6 +14033,7 @@ exports.FormToggle = FormToggle;
13962
14033
  exports.GeoMapCanvas = GeoMapCanvas;
13963
14034
  exports.GeoMapLegend = GeoMapLegend;
13964
14035
  exports.GlassModal = GlassModal;
14036
+ exports.GlassModalShell = GlassModalShell;
13965
14037
  exports.Gradient = Gradient;
13966
14038
  exports.GradientBackground = GradientBackground;
13967
14039
  exports.GrowthIndicator = GrowthIndicator;
@@ -14170,5 +14242,5 @@ exports.useGeoMapState = useGeoMapState;
14170
14242
  exports.useNotifications = useNotifications;
14171
14243
  exports.usePlatformShellStore = usePlatformShellStore;
14172
14244
  exports.usePullToRefresh = usePullToRefresh;
14173
- //# sourceMappingURL=chunk-W224TQQY.js.map
14174
- //# sourceMappingURL=chunk-W224TQQY.js.map
14245
+ //# sourceMappingURL=chunk-Q2FWSR7N.js.map
14246
+ //# sourceMappingURL=chunk-Q2FWSR7N.js.map