@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.
@@ -5383,9 +5383,10 @@ function GlassModal({
5383
5383
  onClose,
5384
5384
  children,
5385
5385
  panelClassName = "rounded-[2rem]",
5386
- contentClassName = "fixed inset-0 flex items-center justify-center overflow-y-auto p-3 sm:p-5 lg:p-6"
5386
+ contentClassName = "fixed inset-0 flex items-center justify-center overflow-y-auto p-3 sm:p-5 lg:p-6",
5387
+ zIndex = "z-50"
5387
5388
  }) {
5388
- return /* @__PURE__ */ jsxs(Dialog, { open, onClose, className: "relative z-50", children: [
5389
+ return /* @__PURE__ */ jsxs(Dialog, { open, onClose, className: `relative ${zIndex}`, children: [
5389
5390
  /* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 bg-slate-900/40 backdrop-blur-md dark:bg-black/50" }),
5390
5391
  /* @__PURE__ */ jsx("div", { className: contentClassName, children: /* @__PURE__ */ jsx(DialogPanel, { className: panelClassName, children }) })
5391
5392
  ] });
@@ -5848,92 +5849,136 @@ function FilterBadge({ count }) {
5848
5849
  function FeedItemCard({ children, className = "" }) {
5849
5850
  return /* @__PURE__ */ jsx("li", { className: `overflow-hidden rounded-2xl border shadow-sm transition-shadow hover:shadow-md ${className}`, children });
5850
5851
  }
5851
- var MAX_WIDTH_CLASSES = {
5852
- sm: "max-w-full sm:max-w-sm",
5853
- md: "max-w-full sm:max-w-md",
5854
- lg: "max-w-full sm:max-w-lg",
5855
- xl: "max-w-full sm:max-w-xl",
5856
- "2xl": "max-w-full sm:max-w-2xl",
5857
- "3xl": "max-w-full sm:max-w-3xl",
5858
- "4xl": "max-w-full sm:max-w-4xl",
5859
- "5xl": "max-w-full sm:max-w-5xl"
5852
+ var SIZE_CLASSES2 = {
5853
+ sm: "max-w-sm",
5854
+ md: "max-w-md",
5855
+ lg: "max-w-lg",
5856
+ xl: "max-w-xl",
5857
+ "2xl": "max-w-2xl",
5858
+ "3xl": "max-w-3xl",
5859
+ "4xl": "max-w-4xl",
5860
+ "5xl": "max-w-5xl",
5861
+ "6xl": "max-w-6xl",
5862
+ full: "max-w-[90vw]"
5860
5863
  };
5861
- function FormModal({
5864
+ function GlassModalShell({
5862
5865
  open,
5863
5866
  onClose,
5867
+ gradient,
5868
+ icon,
5869
+ label,
5864
5870
  title,
5865
5871
  subtitle,
5866
- icon,
5872
+ headerActions,
5867
5873
  children,
5868
- maxWidth = "4xl",
5869
- onSubmit,
5870
5874
  footer,
5871
- showFooter = true,
5872
- cancelLabel,
5873
- submitLabel,
5874
- isLoading = false,
5875
- submitDisabled = false
5875
+ onSubmit,
5876
+ maxWidth = "4xl",
5877
+ closeLabel = "Close",
5878
+ className = "",
5879
+ zIndex
5876
5880
  }) {
5877
- const handleSubmit = (e) => {
5878
- e.preventDefault();
5879
- onSubmit?.(e);
5881
+ const handleSubmit = (event) => {
5882
+ event.preventDefault();
5883
+ onSubmit?.(event);
5880
5884
  };
5881
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [
5882
- /* @__PURE__ */ jsx("div", { className: "liquid-surface shrink-0 border-b border-white/30 dark:border-white/10 rounded-t-2xl", children: /* @__PURE__ */ jsxs("div", { className: "px-4 sm:px-6 py-3 sm:py-4 flex items-center justify-between", children: [
5883
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
5884
- icon && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: icon }),
5885
- /* @__PURE__ */ jsxs("div", { children: [
5886
- /* @__PURE__ */ jsx(DialogTitle, { className: "text-base sm:text-lg font-semibold text-slate-900 dark:text-white", children: title }),
5887
- subtitle && /* @__PURE__ */ jsx("p", { className: "text-xs sm:text-sm text-slate-500 dark:text-slate-400 mt-0.5", children: subtitle })
5888
- ] })
5889
- ] }),
5890
- /* @__PURE__ */ jsx(
5891
- IconButton,
5892
- {
5893
- icon: /* @__PURE__ */ jsx(XMarkIcon$1, { className: "w-5 h-5" }),
5894
- label: "Close",
5895
- onClick: onClose,
5896
- variant: "ghost"
5897
- }
5898
- )
5899
- ] }) }),
5900
- /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "px-4 sm:px-6 py-4 sm:py-6", children }) }),
5901
- showFooter && /* @__PURE__ */ jsx("div", { className: "liquid-surface shrink-0 border-t border-white/30 dark:border-white/10 rounded-b-2xl", children: /* @__PURE__ */ 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__ */ jsxs(Fragment, { children: [
5885
+ const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
5886
+ gradient && /* @__PURE__ */ jsx("div", { className: `h-1.5 w-full bg-gradient-to-r ${gradient}` }),
5887
+ /* @__PURE__ */ jsxs("div", { className: "relative px-5 pb-4 pt-5 sm:px-8 sm:pt-6", children: [
5902
5888
  /* @__PURE__ */ jsx(
5903
- Button,
5889
+ "button",
5904
5890
  {
5905
5891
  type: "button",
5906
5892
  onClick: onClose,
5907
- disabled: isLoading,
5908
- outline: true,
5909
- className: "w-full sm:w-auto",
5910
- children: cancelLabel
5893
+ "aria-label": closeLabel,
5894
+ 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",
5895
+ children: /* @__PURE__ */ jsx(XMarkIcon$1, { className: "h-5 w-5" })
5911
5896
  }
5912
5897
  ),
5913
- /* @__PURE__ */ jsx(
5914
- Button,
5915
- {
5916
- type: "submit",
5917
- disabled: submitDisabled,
5918
- loading: isLoading,
5919
- loadingText: submitLabel,
5920
- color: "ios-glass-blue",
5921
- className: "w-full sm:w-auto",
5922
- children: submitLabel
5923
- }
5924
- )
5925
- ] }) }) })
5898
+ (icon || label) && /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-2 text-slate-600 dark:text-white/70", children: [
5899
+ icon,
5900
+ label && /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: label })
5901
+ ] }),
5902
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 pr-10", children: [
5903
+ /* @__PURE__ */ jsxs("div", { children: [
5904
+ /* @__PURE__ */ jsx("h2", { className: "text-xl font-bold text-slate-900 dark:text-white sm:text-2xl", children: title }),
5905
+ subtitle && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-slate-500 dark:text-slate-400", children: subtitle })
5906
+ ] }),
5907
+ headerActions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: headerActions })
5908
+ ] })
5909
+ ] }),
5910
+ /* @__PURE__ */ jsx("div", { className: "max-h-[72vh] overflow-y-auto px-5 pb-5 sm:px-8 sm:pb-8", children }),
5911
+ footer && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 px-5 py-4 dark:border-white/10 sm:px-8", children: footer })
5926
5912
  ] });
5927
- return /* @__PURE__ */ jsxs(Dialog, { open, onClose, className: "relative z-50", children: [
5928
- /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black/50 backdrop-blur-sm" }),
5929
- /* @__PURE__ */ jsx("div", { className: "fixed inset-4 sm:inset-6 lg:inset-10 flex items-center justify-center", children: /* @__PURE__ */ jsx(
5930
- DialogPanel,
5913
+ return /* @__PURE__ */ jsx(
5914
+ GlassModal,
5915
+ {
5916
+ open,
5917
+ onClose,
5918
+ contentClassName: "fixed inset-0 overflow-y-auto p-3 sm:p-6",
5919
+ panelClassName: `liquid-surface-strong w-full overflow-hidden rounded-2xl mx-auto mt-[4vh] sm:mt-[8vh] ${SIZE_CLASSES2[maxWidth]} ${className}`,
5920
+ zIndex,
5921
+ children: onSubmit ? /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit, children: inner }) : inner
5922
+ }
5923
+ );
5924
+ }
5925
+ function FormModal({
5926
+ open,
5927
+ onClose,
5928
+ title,
5929
+ subtitle,
5930
+ icon,
5931
+ children,
5932
+ maxWidth = "4xl",
5933
+ onSubmit,
5934
+ footer,
5935
+ showFooter = true,
5936
+ cancelLabel,
5937
+ submitLabel,
5938
+ isLoading = false,
5939
+ submitDisabled = false,
5940
+ gradient
5941
+ }) {
5942
+ const defaultFooter = showFooter ? /* @__PURE__ */ jsx("div", { className: "flex flex-col sm:flex-row justify-end gap-2 sm:gap-3", children: footer || /* @__PURE__ */ jsxs(Fragment, { children: [
5943
+ /* @__PURE__ */ jsx(
5944
+ Button,
5931
5945
  {
5932
- className: `liquid-surface-strong w-full h-full ${MAX_WIDTH_CLASSES[maxWidth]} flex flex-col rounded-2xl overflow-hidden`,
5933
- children: onSubmit ? /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit, className: "flex-1 flex flex-col overflow-hidden", children: content }) : /* @__PURE__ */ jsx("div", { className: "flex-1 flex flex-col overflow-hidden", children: content })
5946
+ type: "button",
5947
+ onClick: onClose,
5948
+ disabled: isLoading,
5949
+ outline: true,
5950
+ className: "w-full sm:w-auto",
5951
+ children: cancelLabel
5934
5952
  }
5935
- ) })
5936
- ] });
5953
+ ),
5954
+ /* @__PURE__ */ jsx(
5955
+ Button,
5956
+ {
5957
+ type: "submit",
5958
+ disabled: submitDisabled,
5959
+ loading: isLoading,
5960
+ loadingText: submitLabel,
5961
+ color: "ios-glass-blue",
5962
+ className: "w-full sm:w-auto",
5963
+ children: submitLabel
5964
+ }
5965
+ )
5966
+ ] }) }) : void 0;
5967
+ return /* @__PURE__ */ jsx(
5968
+ GlassModalShell,
5969
+ {
5970
+ open,
5971
+ onClose,
5972
+ title,
5973
+ subtitle,
5974
+ icon,
5975
+ gradient,
5976
+ maxWidth,
5977
+ onSubmit,
5978
+ footer: defaultFooter,
5979
+ children
5980
+ }
5981
+ );
5937
5982
  }
5938
5983
  function ContextMenu({
5939
5984
  position,
@@ -9825,77 +9870,6 @@ function SettingsDialog({
9825
9870
  }
9826
9871
  );
9827
9872
  }
9828
- var SIZE_CLASSES2 = {
9829
- sm: "max-w-sm",
9830
- md: "max-w-md",
9831
- lg: "max-w-lg",
9832
- xl: "max-w-xl",
9833
- "2xl": "max-w-2xl",
9834
- "3xl": "max-w-3xl",
9835
- "4xl": "max-w-4xl",
9836
- "5xl": "max-w-5xl",
9837
- "6xl": "max-w-6xl",
9838
- full: "max-w-[90vw]"
9839
- };
9840
- function GlassModalShell({
9841
- open,
9842
- onClose,
9843
- gradient,
9844
- icon,
9845
- label,
9846
- title,
9847
- subtitle,
9848
- headerActions,
9849
- children,
9850
- footer,
9851
- onSubmit,
9852
- maxWidth = "4xl",
9853
- closeLabel = "Close",
9854
- className = ""
9855
- }) {
9856
- const handleSubmit = (event) => {
9857
- event.preventDefault();
9858
- onSubmit?.(event);
9859
- };
9860
- const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
9861
- gradient && /* @__PURE__ */ jsx("div", { className: `h-1.5 w-full bg-gradient-to-r ${gradient}` }),
9862
- /* @__PURE__ */ jsxs("div", { className: "relative px-5 pb-4 pt-5 sm:px-8 sm:pt-6", children: [
9863
- /* @__PURE__ */ jsx(
9864
- "button",
9865
- {
9866
- type: "button",
9867
- onClick: onClose,
9868
- "aria-label": closeLabel,
9869
- 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",
9870
- children: /* @__PURE__ */ jsx(XMarkIcon$1, { className: "h-5 w-5" })
9871
- }
9872
- ),
9873
- (icon || label) && /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-2 text-slate-600 dark:text-white/70", children: [
9874
- icon,
9875
- label && /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: label })
9876
- ] }),
9877
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 pr-10", children: [
9878
- /* @__PURE__ */ jsxs("div", { children: [
9879
- /* @__PURE__ */ jsx("h2", { className: "text-xl font-bold text-slate-900 dark:text-white sm:text-2xl", children: title }),
9880
- subtitle && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-slate-500 dark:text-slate-400", children: subtitle })
9881
- ] }),
9882
- headerActions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: headerActions })
9883
- ] })
9884
- ] }),
9885
- /* @__PURE__ */ jsx("div", { className: "max-h-[72vh] overflow-y-auto px-5 pb-5 sm:px-8 sm:pb-8", children }),
9886
- footer && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 px-5 py-4 dark:border-white/10 sm:px-8", children: footer })
9887
- ] });
9888
- return /* @__PURE__ */ jsxs(Dialog, { open, onClose, className: "relative z-50", children: [
9889
- /* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 bg-slate-900/40 backdrop-blur-md" }),
9890
- /* @__PURE__ */ jsx("div", { className: "fixed inset-0 overflow-y-auto p-3 sm:p-6", children: /* @__PURE__ */ jsx("div", { className: "mx-auto flex min-h-full items-start justify-center pt-[4vh] sm:pt-[8vh]", children: /* @__PURE__ */ jsx(
9891
- DialogPanel,
9892
- {
9893
- className: `liquid-surface-strong w-full overflow-hidden rounded-2xl ${SIZE_CLASSES2[maxWidth]} ${className}`,
9894
- children: onSubmit ? /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit, children: inner }) : inner
9895
- }
9896
- ) }) })
9897
- ] });
9898
- }
9899
9873
  function Fieldset2({
9900
9874
  className,
9901
9875
  ...props
@@ -13876,5 +13850,5 @@ function PlatformShell({
13876
13850
  }
13877
13851
 
13878
13852
  export { ActionMenu, ActionSheet, ActiveFilterChips, AnalysisSkeleton, AnimatedNumber, AnimatedTableRow, AppLogo, AppNavigation, AppShell, ArchiveSwipeAction, AuthLayout, Avatar, AvatarButton, BRAZIL_ACCENT_MAP, BRAZIL_MACRO_REGIONS, BRAZIL_MAP_CENTER, BRAZIL_STATE_COORDINATES, BRAZIL_STATE_PALETTES, BR_THEME_CONFIG, BackupCodeGrid, BadRequestPage, Badge, BaseForm, BentoCard, BooleanFlagsPicker, BottomSafeArea, BrandFilterSkeleton, BrandedLoader, Breadcrumb, Button, Card, CardActionMenu, CardContent, CardDescription, CardDivider, CardFooter, CardGridSkeleton, CardHeader, CardSectionHeader, CardTitle, CategoryBadge, CategoryTab, CategoryTabs, ChipPicker, CircularRefreshIndicator, Code, CollapsibleGroupedList, CompactSegmentedControl, ContactCard, ContactSection, Container, ContextMenu, CookieConsent, CopyableId, CountPill, CreateActionButton, DashboardProgressShell, DataPagination, DatePicker, DeleteSwipeAction, Description4 as Description, DetailsPopover, DevModeBanner, Dialog4 as Dialog, DialogActions, DialogBody, DialogDescription, DialogTitle3 as DialogTitle, Divider, Dock, DockContainer, DockSkeleton, DotRefreshIndicator, Dropdown, DropdownButton, DropdownDivider, DropdownItem, DropdownLabel, DropdownMenu, DropdownSelect, DynamicIsland, DynamicIslandConfirm, DynamicIslandNotification, EdgeSwipeIndicator, EdgeSwipeProvider, EditSwipeAction, EmptyState, EntityCard, EntityDrawer, ErrorMessage, ErrorState, ExpandableHistoryList, ExpandingPageIndicator, FUEL_PRICE_LOADER, FavoriteSwipeAction, FeatureCard, FeedItemCard, Field2 as Field, FieldGroup, Fieldset2 as Fieldset, FilterBadge, FilterPill, FilterSectionHeader, FilterTileButton, FloatingActionButton, FlyoutMenu, FlyoutNavGrid, FlyoutQuickActions, ForceTouchMenu, Form, FormActions, FormActionsRow, FormCheckbox, FormField, FormGrid, FormInput, FormModal, FormPriceInput, FormSection, FormSelect, FormTextarea, FormToggle, GeoMapCanvas, GeoMapLegend, GlassModal, GlassModalShell, Gradient, GradientBackground, GrowthIndicator, Heading, HeroPanel, HeroSection, IconButton, InfoPopover, InlineForm, InlineSpinner, Input, InteractiveGeoMap, ItemSummary, KORI_ERP_LOADER, Label2 as Label, LabeledToggle, LanguageSwitcher, LaunchpadGrid, Lead, Legend2 as Legend, LiquidFilterInput, ListCard, ListCardItem, ListItem, LoadingOverlay, ManagementPageLayout, ManagementSurface, MapZoomControls, MetricCard, MonthPicker, MultiColumnPicker, NavigationProgress, NoDataState, NoResultsState, NotFoundPage, NotificationBadge, NotificationBellButton, NotificationProvider, OfficeCard, OfflineState, OptionGrid, OtpInput, PageEmptyState, PageHeader, PageHeading, PageIndicator, PageLoadingState, PageSectionHeader, Pagination, PasswordInput, PasswordStrengthMeter, Pill, PlatformShell, PlusGrid, PlusGridItem, PlusGridRow, PreferenceSection, PriceChangeBadge, ProfileIdentityCard, Progress, ProgressIndicator, PullToRefreshContainer, PullToRefreshIndicator, RadiantHeading, RadiantStatCard, RadiantSubheading, RegionFilterSkeleton, RoleBadge, SafeArea, SafeAreaSpacer, SafeAreaView, SearchBar, SearchFilterToolbar, SearchInput, SectionCard, SectionHeader, SectionHeaderSkeleton, SegmentedControl, Select, SelectableChipPicker, SelectableListPicker, SelectableOptionsGrid, SelectableTableRow, SelectionCard, ServerErrorPage, SettingsDialog, SettingsModal, Sheet, SocialLoginButtons, SortableTableHeader, Spinner, Stat, StatCard, StatCardSkeleton, StatusBadge, StatusToggle, StepFormPage, StepNavigationButtons, StepTimeline, Strong, Subheading, SwipeableRow, Switch2 as Switch, Table, TableBody, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, TableSkeleton, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TagBadge, Text, TextLink, Textarea, ThemeSwitch, ThemeToggle, ThemeToggleCompact, TimePicker, ToggleSwitch, TouchTarget, US_ACCENT_MAP, US_MACRO_REGIONS, US_MAP_CENTER, US_STATE_COORDINATES, US_STATE_PALETTES, US_THEME_CONFIG, UserAvatar, UserMobileInfo, WINDSOCK_LOADER, WIRE_LOADER, WheelPicker, WindsockIcon, buildDockActions, buildFlyoutNavItems, buildLaunchpadItems, buttonPress, buttonPressReduced, buttonTap, cardHover, cardHoverReduced, cardPress, createMotionProps, durations, durationsReduced, easings, fadeOnly, fadeScale, filterByPermission, formatCurrency, formatDate, formatPercentage, getBrazilAccent, getBrazilColors, getBrazilFlagUrl, getBrazilGradient, getBrazilHexColor, getBrazilPalette, getStatusColor, getSubdivisionAccent, getSubdivisionColors, getSubdivisionFlagUrl, getSubdivisionGradient, getSubdivisionHexColor, getSubdivisionPalette, getTransition, getUsAccent, getUsColors, getUsFlagUrl, getUsGradient, getUsHexColor, getUsPalette, getVariants, iosColors, isValidBrazilState, isValidSubdivision, isValidUsState, listItem, listItemReduced, notificationBanner, notificationBannerReduced, pageControlDot, prefersReducedMotion, registerSubdivisionTheme, resolveGlassAccentRgb, selectIsAuthenticated, selectShowShellChrome, selectUserInitial, selectUserName, shimmerClass, shimmerWhiteClass, slideDown, slideRight, slideUp, springPresets, springPresetsReduced, staggerContainer, swipeActionThreshold, swipeConstraints, useGeoMapState, useNotifications, usePlatformShellStore, usePullToRefresh };
13879
- //# sourceMappingURL=chunk-LHQT6AIP.mjs.map
13880
- //# sourceMappingURL=chunk-LHQT6AIP.mjs.map
13853
+ //# sourceMappingURL=chunk-ZTFOZJ55.mjs.map
13854
+ //# sourceMappingURL=chunk-ZTFOZJ55.mjs.map