@datatechsolutions/ui 2.7.134 → 2.7.136

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.
@@ -5412,9 +5412,10 @@ function GlassModal({
5412
5412
  onClose,
5413
5413
  children,
5414
5414
  panelClassName = "rounded-[2rem]",
5415
- contentClassName = "fixed inset-0 flex items-center justify-center overflow-y-auto p-3 sm:p-5 lg:p-6"
5415
+ contentClassName = "fixed inset-0 flex items-center justify-center overflow-y-auto p-3 sm:p-5 lg:p-6",
5416
+ zIndex = "z-50"
5416
5417
  }) {
5417
- return /* @__PURE__ */ jsxRuntime.jsxs(Headless6.Dialog, { open, onClose, className: "relative z-50", children: [
5418
+ return /* @__PURE__ */ jsxRuntime.jsxs(Headless6.Dialog, { open, onClose, className: `relative ${zIndex}`, children: [
5418
5419
  /* @__PURE__ */ jsxRuntime.jsx(Headless6.DialogBackdrop, { className: "fixed inset-0 bg-slate-900/40 backdrop-blur-md dark:bg-black/50" }),
5419
5420
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: contentClassName, children: /* @__PURE__ */ jsxRuntime.jsx(Headless6.DialogPanel, { className: panelClassName, children }) })
5420
5421
  ] });
@@ -5877,92 +5878,136 @@ function FilterBadge({ count }) {
5877
5878
  function FeedItemCard({ children, className = "" }) {
5878
5879
  return /* @__PURE__ */ jsxRuntime.jsx("li", { className: `overflow-hidden rounded-2xl border shadow-sm transition-shadow hover:shadow-md ${className}`, children });
5879
5880
  }
5880
- var MAX_WIDTH_CLASSES = {
5881
- sm: "max-w-full sm:max-w-sm",
5882
- md: "max-w-full sm:max-w-md",
5883
- lg: "max-w-full sm:max-w-lg",
5884
- xl: "max-w-full sm:max-w-xl",
5885
- "2xl": "max-w-full sm:max-w-2xl",
5886
- "3xl": "max-w-full sm:max-w-3xl",
5887
- "4xl": "max-w-full sm:max-w-4xl",
5888
- "5xl": "max-w-full sm:max-w-5xl"
5881
+ var SIZE_CLASSES2 = {
5882
+ sm: "max-w-sm",
5883
+ md: "max-w-md",
5884
+ lg: "max-w-lg",
5885
+ xl: "max-w-xl",
5886
+ "2xl": "max-w-2xl",
5887
+ "3xl": "max-w-3xl",
5888
+ "4xl": "max-w-4xl",
5889
+ "5xl": "max-w-5xl",
5890
+ "6xl": "max-w-6xl",
5891
+ full: "max-w-[90vw]"
5889
5892
  };
5890
- function FormModal({
5893
+ function GlassModalShell({
5891
5894
  open,
5892
5895
  onClose,
5896
+ gradient,
5897
+ icon,
5898
+ label,
5893
5899
  title,
5894
5900
  subtitle,
5895
- icon,
5901
+ headerActions,
5896
5902
  children,
5897
- maxWidth = "4xl",
5898
- onSubmit,
5899
5903
  footer,
5900
- showFooter = true,
5901
- cancelLabel,
5902
- submitLabel,
5903
- isLoading = false,
5904
- submitDisabled = false
5904
+ onSubmit,
5905
+ maxWidth = "4xl",
5906
+ closeLabel = "Close",
5907
+ className = "",
5908
+ zIndex
5905
5909
  }) {
5906
- const handleSubmit = (e) => {
5907
- e.preventDefault();
5908
- onSubmit?.(e);
5910
+ const handleSubmit = (event) => {
5911
+ event.preventDefault();
5912
+ onSubmit?.(event);
5909
5913
  };
5910
- const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5911
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liquid-surface shrink-0 border-b border-white/30 dark:border-white/10 rounded-t-2xl", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-4 sm:px-6 py-3 sm:py-4 flex items-center justify-between", children: [
5912
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
5913
- icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0", children: icon }),
5914
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
5915
- /* @__PURE__ */ jsxRuntime.jsx(Headless6.DialogTitle, { className: "text-base sm:text-lg font-semibold text-slate-900 dark:text-white", children: title }),
5916
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs sm:text-sm text-slate-500 dark:text-slate-400 mt-0.5", children: subtitle })
5917
- ] })
5918
- ] }),
5919
- /* @__PURE__ */ jsxRuntime.jsx(
5920
- IconButton,
5921
- {
5922
- icon: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "w-5 h-5" }),
5923
- label: "Close",
5924
- onClick: onClose,
5925
- variant: "ghost"
5926
- }
5927
- )
5928
- ] }) }),
5929
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 sm:px-6 py-4 sm:py-6", children }) }),
5930
- showFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liquid-surface shrink-0 border-t border-white/30 dark:border-white/10 rounded-b-2xl", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 sm:px-6 py-3 sm:py-4 flex flex-col sm:flex-row justify-end gap-2 sm:gap-3", children: footer || /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5914
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5915
+ gradient && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1.5 w-full bg-gradient-to-r ${gradient}` }),
5916
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative px-5 pb-4 pt-5 sm:px-8 sm:pt-6", children: [
5931
5917
  /* @__PURE__ */ jsxRuntime.jsx(
5932
- Button,
5918
+ "button",
5933
5919
  {
5934
5920
  type: "button",
5935
5921
  onClick: onClose,
5936
- disabled: isLoading,
5937
- outline: true,
5938
- className: "w-full sm:w-auto",
5939
- children: cancelLabel
5922
+ "aria-label": closeLabel,
5923
+ 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",
5924
+ children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-5 w-5" })
5940
5925
  }
5941
5926
  ),
5942
- /* @__PURE__ */ jsxRuntime.jsx(
5943
- Button,
5944
- {
5945
- type: "submit",
5946
- disabled: submitDisabled,
5947
- loading: isLoading,
5948
- loadingText: submitLabel,
5949
- color: "ios-glass-blue",
5950
- className: "w-full sm:w-auto",
5951
- children: submitLabel
5952
- }
5953
- )
5954
- ] }) }) })
5927
+ (icon || label) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center gap-2 text-slate-600 dark:text-white/70", children: [
5928
+ icon,
5929
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: label })
5930
+ ] }),
5931
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 pr-10", children: [
5932
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
5933
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-bold text-slate-900 dark:text-white sm:text-2xl", children: title }),
5934
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-slate-500 dark:text-slate-400", children: subtitle })
5935
+ ] }),
5936
+ headerActions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: headerActions })
5937
+ ] })
5938
+ ] }),
5939
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-h-[72vh] overflow-y-auto px-5 pb-5 sm:px-8 sm:pb-8", children }),
5940
+ footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-white/20 px-5 py-4 dark:border-white/10 sm:px-8", children: footer })
5955
5941
  ] });
5956
- return /* @__PURE__ */ jsxRuntime.jsxs(Headless6.Dialog, { open, onClose, className: "relative z-50", children: [
5957
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-0 bg-black/50 backdrop-blur-sm" }),
5958
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-4 sm:inset-6 lg:inset-10 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
5959
- Headless6.DialogPanel,
5942
+ return /* @__PURE__ */ jsxRuntime.jsx(
5943
+ GlassModal,
5944
+ {
5945
+ open,
5946
+ onClose,
5947
+ contentClassName: "fixed inset-0 overflow-y-auto p-3 sm:p-6",
5948
+ panelClassName: `liquid-surface-strong w-full overflow-hidden rounded-2xl mx-auto mt-[4vh] sm:mt-[8vh] ${SIZE_CLASSES2[maxWidth]} ${className}`,
5949
+ zIndex,
5950
+ children: onSubmit ? /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleSubmit, children: inner }) : inner
5951
+ }
5952
+ );
5953
+ }
5954
+ function FormModal({
5955
+ open,
5956
+ onClose,
5957
+ title,
5958
+ subtitle,
5959
+ icon,
5960
+ children,
5961
+ maxWidth = "4xl",
5962
+ onSubmit,
5963
+ footer,
5964
+ showFooter = true,
5965
+ cancelLabel,
5966
+ submitLabel,
5967
+ isLoading = false,
5968
+ submitDisabled = false,
5969
+ gradient
5970
+ }) {
5971
+ const defaultFooter = showFooter ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col sm:flex-row justify-end gap-2 sm:gap-3", children: footer || /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5972
+ /* @__PURE__ */ jsxRuntime.jsx(
5973
+ Button,
5960
5974
  {
5961
- className: `liquid-surface-strong w-full h-full ${MAX_WIDTH_CLASSES[maxWidth]} flex flex-col rounded-2xl overflow-hidden`,
5962
- children: onSubmit ? /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleSubmit, className: "flex-1 flex flex-col overflow-hidden", children: content }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 flex flex-col overflow-hidden", children: content })
5975
+ type: "button",
5976
+ onClick: onClose,
5977
+ disabled: isLoading,
5978
+ outline: true,
5979
+ className: "w-full sm:w-auto",
5980
+ children: cancelLabel
5963
5981
  }
5964
- ) })
5965
- ] });
5982
+ ),
5983
+ /* @__PURE__ */ jsxRuntime.jsx(
5984
+ Button,
5985
+ {
5986
+ type: "submit",
5987
+ disabled: submitDisabled,
5988
+ loading: isLoading,
5989
+ loadingText: submitLabel,
5990
+ color: "ios-glass-blue",
5991
+ className: "w-full sm:w-auto",
5992
+ children: submitLabel
5993
+ }
5994
+ )
5995
+ ] }) }) : void 0;
5996
+ return /* @__PURE__ */ jsxRuntime.jsx(
5997
+ GlassModalShell,
5998
+ {
5999
+ open,
6000
+ onClose,
6001
+ title,
6002
+ subtitle,
6003
+ icon,
6004
+ gradient,
6005
+ maxWidth,
6006
+ onSubmit,
6007
+ footer: defaultFooter,
6008
+ children
6009
+ }
6010
+ );
5966
6011
  }
5967
6012
  function ContextMenu({
5968
6013
  position,
@@ -9854,77 +9899,6 @@ function SettingsDialog({
9854
9899
  }
9855
9900
  );
9856
9901
  }
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
- }
9928
9902
  function Fieldset2({
9929
9903
  className,
9930
9904
  ...props
@@ -14242,5 +14216,5 @@ exports.useGeoMapState = useGeoMapState;
14242
14216
  exports.useNotifications = useNotifications;
14243
14217
  exports.usePlatformShellStore = usePlatformShellStore;
14244
14218
  exports.usePullToRefresh = usePullToRefresh;
14245
- //# sourceMappingURL=chunk-Q2FWSR7N.js.map
14246
- //# sourceMappingURL=chunk-Q2FWSR7N.js.map
14219
+ //# sourceMappingURL=chunk-G2LDM3JX.js.map
14220
+ //# sourceMappingURL=chunk-G2LDM3JX.js.map