@datatechsolutions/ui 2.7.133 → 2.7.135

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.
@@ -5848,92 +5848,134 @@ function FilterBadge({ count }) {
5848
5848
  function FeedItemCard({ children, className = "" }) {
5849
5849
  return /* @__PURE__ */ jsx("li", { className: `overflow-hidden rounded-2xl border shadow-sm transition-shadow hover:shadow-md ${className}`, children });
5850
5850
  }
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"
5851
+ var SIZE_CLASSES2 = {
5852
+ sm: "max-w-sm",
5853
+ md: "max-w-md",
5854
+ lg: "max-w-lg",
5855
+ xl: "max-w-xl",
5856
+ "2xl": "max-w-2xl",
5857
+ "3xl": "max-w-3xl",
5858
+ "4xl": "max-w-4xl",
5859
+ "5xl": "max-w-5xl",
5860
+ "6xl": "max-w-6xl",
5861
+ full: "max-w-[90vw]"
5860
5862
  };
5861
- function FormModal({
5863
+ function GlassModalShell({
5862
5864
  open,
5863
5865
  onClose,
5866
+ gradient,
5867
+ icon,
5868
+ label,
5864
5869
  title,
5865
5870
  subtitle,
5866
- icon,
5871
+ headerActions,
5867
5872
  children,
5868
- maxWidth = "4xl",
5869
- onSubmit,
5870
5873
  footer,
5871
- showFooter = true,
5872
- cancelLabel,
5873
- submitLabel,
5874
- isLoading = false,
5875
- submitDisabled = false
5874
+ onSubmit,
5875
+ maxWidth = "4xl",
5876
+ closeLabel = "Close",
5877
+ className = ""
5876
5878
  }) {
5877
- const handleSubmit = (e) => {
5878
- e.preventDefault();
5879
- onSubmit?.(e);
5879
+ const handleSubmit = (event) => {
5880
+ event.preventDefault();
5881
+ onSubmit?.(event);
5880
5882
  };
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: [
5883
+ const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
5884
+ gradient && /* @__PURE__ */ jsx("div", { className: `h-1.5 w-full bg-gradient-to-r ${gradient}` }),
5885
+ /* @__PURE__ */ jsxs("div", { className: "relative px-5 pb-4 pt-5 sm:px-8 sm:pt-6", children: [
5902
5886
  /* @__PURE__ */ jsx(
5903
- Button,
5887
+ "button",
5904
5888
  {
5905
5889
  type: "button",
5906
5890
  onClick: onClose,
5907
- disabled: isLoading,
5908
- outline: true,
5909
- className: "w-full sm:w-auto",
5910
- children: cancelLabel
5891
+ "aria-label": closeLabel,
5892
+ 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",
5893
+ children: /* @__PURE__ */ jsx(XMarkIcon$1, { className: "h-5 w-5" })
5911
5894
  }
5912
5895
  ),
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
- ] }) }) })
5896
+ (icon || label) && /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-2 text-slate-600 dark:text-white/70", children: [
5897
+ icon,
5898
+ label && /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: label })
5899
+ ] }),
5900
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 pr-10", children: [
5901
+ /* @__PURE__ */ jsxs("div", { children: [
5902
+ /* @__PURE__ */ jsx("h2", { className: "text-xl font-bold text-slate-900 dark:text-white sm:text-2xl", children: title }),
5903
+ subtitle && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-slate-500 dark:text-slate-400", children: subtitle })
5904
+ ] }),
5905
+ headerActions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: headerActions })
5906
+ ] })
5907
+ ] }),
5908
+ /* @__PURE__ */ jsx("div", { className: "max-h-[72vh] overflow-y-auto px-5 pb-5 sm:px-8 sm:pb-8", children }),
5909
+ footer && /* @__PURE__ */ jsx("div", { className: "border-t border-white/20 px-5 py-4 dark:border-white/10 sm:px-8", children: footer })
5926
5910
  ] });
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,
5911
+ return /* @__PURE__ */ jsx(
5912
+ GlassModal,
5913
+ {
5914
+ open,
5915
+ onClose,
5916
+ contentClassName: "fixed inset-0 overflow-y-auto p-3 sm:p-6",
5917
+ panelClassName: `liquid-surface-strong w-full overflow-hidden rounded-2xl mx-auto mt-[4vh] sm:mt-[8vh] ${SIZE_CLASSES2[maxWidth]} ${className}`,
5918
+ children: onSubmit ? /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit, children: inner }) : inner
5919
+ }
5920
+ );
5921
+ }
5922
+ function FormModal({
5923
+ open,
5924
+ onClose,
5925
+ title,
5926
+ subtitle,
5927
+ icon,
5928
+ children,
5929
+ maxWidth = "4xl",
5930
+ onSubmit,
5931
+ footer,
5932
+ showFooter = true,
5933
+ cancelLabel,
5934
+ submitLabel,
5935
+ isLoading = false,
5936
+ submitDisabled = false,
5937
+ gradient
5938
+ }) {
5939
+ 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: [
5940
+ /* @__PURE__ */ jsx(
5941
+ Button,
5942
+ {
5943
+ type: "button",
5944
+ onClick: onClose,
5945
+ disabled: isLoading,
5946
+ outline: true,
5947
+ className: "w-full sm:w-auto",
5948
+ children: cancelLabel
5949
+ }
5950
+ ),
5951
+ /* @__PURE__ */ jsx(
5952
+ Button,
5931
5953
  {
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 })
5954
+ type: "submit",
5955
+ disabled: submitDisabled,
5956
+ loading: isLoading,
5957
+ loadingText: submitLabel,
5958
+ color: "ios-glass-blue",
5959
+ className: "w-full sm:w-auto",
5960
+ children: submitLabel
5934
5961
  }
5935
- ) })
5936
- ] });
5962
+ )
5963
+ ] }) }) : void 0;
5964
+ return /* @__PURE__ */ jsx(
5965
+ GlassModalShell,
5966
+ {
5967
+ open,
5968
+ onClose,
5969
+ title,
5970
+ subtitle,
5971
+ icon,
5972
+ gradient,
5973
+ maxWidth,
5974
+ onSubmit,
5975
+ footer: defaultFooter,
5976
+ children
5977
+ }
5978
+ );
5937
5979
  }
5938
5980
  function ContextMenu({
5939
5981
  position,
@@ -13804,6 +13846,6 @@ function PlatformShell({
13804
13846
  ] });
13805
13847
  }
13806
13848
 
13807
- 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, 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 };
13808
- //# sourceMappingURL=chunk-2GNFQ5OX.mjs.map
13809
- //# sourceMappingURL=chunk-2GNFQ5OX.mjs.map
13849
+ 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 };
13850
+ //# sourceMappingURL=chunk-TYZCYFWQ.mjs.map
13851
+ //# sourceMappingURL=chunk-TYZCYFWQ.mjs.map