@datatechsolutions/ui 2.7.121 → 2.7.122

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.
@@ -7971,7 +7971,16 @@ function CookieConsent({
7971
7971
  }
7972
7972
  ) });
7973
7973
  }
7974
- function getDockAccent(id) {
7974
+ function accentFromRgb(rgb) {
7975
+ return {
7976
+ icon: `text-[rgb(${rgb})]`,
7977
+ bg: `bg-[rgba(${rgb},0.12)] dark:bg-[rgba(${rgb},0.2)]`,
7978
+ dot: `bg-[rgb(${rgb})]`,
7979
+ rgb
7980
+ };
7981
+ }
7982
+ function getDockAccent(id, accentRgb) {
7983
+ if (accentRgb) return accentFromRgb(accentRgb);
7975
7984
  if (id === "stations") {
7976
7985
  return { icon: "text-blue-600 dark:text-blue-400", bg: "bg-blue-100 dark:bg-blue-900/35", dot: "bg-blue-500 dark:bg-blue-400", rgb: "59, 130, 246" };
7977
7986
  }
@@ -8119,7 +8128,7 @@ function Dock({
8119
8128
  children: [
8120
8129
  navigationActions.map((action, index) => {
8121
8130
  const hasMenu = !!action.menuItems?.length;
8122
- const accent = getDockAccent(action.id);
8131
+ const accent = getDockAccent(action.id, action.accentRgb);
8123
8132
  const FlyoutIcon = action.icon;
8124
8133
  const dockItem = /* @__PURE__ */ jsx(
8125
8134
  DockItem,
@@ -8191,7 +8200,7 @@ function Dock({
8191
8200
  contextualActions.map((action, actionIndex) => {
8192
8201
  const index = navigationActions.length + actionIndex;
8193
8202
  const hasMenu = !!action.menuItems?.length;
8194
- const accent = getDockAccent(action.id);
8203
+ const accent = getDockAccent(action.id, action.accentRgb);
8195
8204
  const FlyoutIcon = action.icon;
8196
8205
  const dockItem = /* @__PURE__ */ jsx(
8197
8206
  DockItem,
@@ -8277,7 +8286,7 @@ var DockItem = memo(function DockItem2({
8277
8286
  compact = false
8278
8287
  }) {
8279
8288
  const Icon = action.icon;
8280
- const accent = getDockAccent(action.id);
8289
+ const accent = getDockAccent(action.id, action.accentRgb);
8281
8290
  const activeIndex = hoveredIndex ?? focusedIndex;
8282
8291
  const isSelected = !!action.active;
8283
8292
  const isInteractiveActive = activeIndex === index;
@@ -14062,7 +14071,8 @@ function buildDockActions(items, pathname, handlers, options = {}) {
14062
14071
  href: item.href,
14063
14072
  active: isActive(item.href),
14064
14073
  onClick: item.onClick ?? (() => handlers.navigate(item.href)),
14065
- menuItems
14074
+ menuItems,
14075
+ accentRgb: item.accentRgb
14066
14076
  });
14067
14077
  }
14068
14078
  const contextualActions = [...contextualItems];
@@ -14754,5 +14764,5 @@ function PlatformShell({
14754
14764
  }
14755
14765
 
14756
14766
  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, Card2, CardActionMenu, CardContent, CardContent2, CardDescription, CardDescription2, CardDivider, CardFooter, CardFooter2, CardGridSkeleton, CardHeader, CardHeader2, CardSectionHeader, CardTitle, CardTitle2, 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, DropdownDescription, DropdownDivider, DropdownHeader, DropdownHeading, DropdownItem, DropdownLabel, DropdownMenu, DropdownSection, DropdownSelect, DropdownShortcut, 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, InputGroup, InteractiveGeoMap, ItemSummary, KORI_ERP_LOADER, LOCALE_FLAGS, Label2 as Label, Label3 as Label2, LabeledToggle, LanguageSwitcher, LaunchpadGrid, Lead, Legend2 as Legend, Link4 as Link, LiquidFilterInput, ListCard, ListCardItem, ListItem, LoadingOverlay, ManagementPageLayout, ManagementSurface, MapZoomControls, MetricCard, MetricCard2, MetricTooltip, MonthPicker, MultiColumnPicker, NavigationProgress, NoDataState, NoResultsState, NotFoundPage, NotificationBadge, NotificationBellButton, NotificationProvider, OfficeCard, OfflineState, OptionGrid, OtpInput, PageEmptyState, PageHeader, PageHeading, PageIndicator, PageLoadingState, PageSectionHeader, Pagination, PasswordInput, PasswordInput2, 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, SelectContent, SelectItem, SelectTrigger, SelectValue, SelectableChipPicker, SelectableListPicker, SelectableOptionsGrid, SelectableTableRow, SelectionCard, ServerErrorPage, SettingsDialog, SettingsModal, Sheet, SliderInput, SocialLoginButtons, SortableTableHeader, Spinner, Stat, StatCard, StatCard2, StatCardSkeleton, StatusBadge, StatusToggle, StepFormPage, StepNavigationButtons, StepTimeline, Strong, Subheading, SwipeableRow, Switch2 as Switch, SwitchField, SwitchGroup, 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 };
14757
- //# sourceMappingURL=chunk-T3E6GSQ2.mjs.map
14758
- //# sourceMappingURL=chunk-T3E6GSQ2.mjs.map
14767
+ //# sourceMappingURL=chunk-JHE2FYO7.mjs.map
14768
+ //# sourceMappingURL=chunk-JHE2FYO7.mjs.map