@datatechsolutions/ui 2.7.121 → 2.7.123

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.
@@ -7490,6 +7490,76 @@ var COLOR_MAP = {
7490
7490
  focusRing: "focus-visible:ring-red-500",
7491
7491
  iconInactiveBg: "bg-red-500/10 dark:bg-red-500/20",
7492
7492
  iconInactiveText: "text-red-600 dark:text-red-300"
7493
+ },
7494
+ indigo: {
7495
+ activeGradient: "bg-gradient-to-br from-indigo-500 to-indigo-600 ring-2 ring-indigo-500 shadow-lg",
7496
+ activeRing: "ring-indigo-500",
7497
+ focusRing: "focus-visible:ring-indigo-500",
7498
+ iconInactiveBg: "bg-indigo-500/10 dark:bg-indigo-500/20",
7499
+ iconInactiveText: "text-indigo-600 dark:text-indigo-300"
7500
+ },
7501
+ cyan: {
7502
+ activeGradient: "bg-gradient-to-br from-cyan-500 to-cyan-600 ring-2 ring-cyan-500 shadow-lg",
7503
+ activeRing: "ring-cyan-500",
7504
+ focusRing: "focus-visible:ring-cyan-500",
7505
+ iconInactiveBg: "bg-cyan-500/10 dark:bg-cyan-500/20",
7506
+ iconInactiveText: "text-cyan-600 dark:text-cyan-300"
7507
+ },
7508
+ teal: {
7509
+ activeGradient: "bg-gradient-to-br from-teal-500 to-teal-600 ring-2 ring-teal-500 shadow-lg",
7510
+ activeRing: "ring-teal-500",
7511
+ focusRing: "focus-visible:ring-teal-500",
7512
+ iconInactiveBg: "bg-teal-500/10 dark:bg-teal-500/20",
7513
+ iconInactiveText: "text-teal-600 dark:text-teal-300"
7514
+ },
7515
+ pink: {
7516
+ activeGradient: "bg-gradient-to-br from-pink-500 to-pink-600 ring-2 ring-pink-500 shadow-lg",
7517
+ activeRing: "ring-pink-500",
7518
+ focusRing: "focus-visible:ring-pink-500",
7519
+ iconInactiveBg: "bg-pink-500/10 dark:bg-pink-500/20",
7520
+ iconInactiveText: "text-pink-600 dark:text-pink-300"
7521
+ },
7522
+ rose: {
7523
+ activeGradient: "bg-gradient-to-br from-rose-500 to-rose-600 ring-2 ring-rose-500 shadow-lg",
7524
+ activeRing: "ring-rose-500",
7525
+ focusRing: "focus-visible:ring-rose-500",
7526
+ iconInactiveBg: "bg-rose-500/10 dark:bg-rose-500/20",
7527
+ iconInactiveText: "text-rose-600 dark:text-rose-300"
7528
+ },
7529
+ green: {
7530
+ activeGradient: "bg-gradient-to-br from-green-500 to-green-600 ring-2 ring-green-500 shadow-lg",
7531
+ activeRing: "ring-green-500",
7532
+ focusRing: "focus-visible:ring-green-500",
7533
+ iconInactiveBg: "bg-green-500/10 dark:bg-green-500/20",
7534
+ iconInactiveText: "text-green-600 dark:text-green-300"
7535
+ },
7536
+ yellow: {
7537
+ activeGradient: "bg-gradient-to-br from-yellow-500 to-yellow-600 ring-2 ring-yellow-500 shadow-lg",
7538
+ activeRing: "ring-yellow-500",
7539
+ focusRing: "focus-visible:ring-yellow-500",
7540
+ iconInactiveBg: "bg-yellow-500/10 dark:bg-yellow-500/20",
7541
+ iconInactiveText: "text-yellow-600 dark:text-yellow-300"
7542
+ },
7543
+ slate: {
7544
+ activeGradient: "bg-gradient-to-br from-slate-500 to-slate-600 ring-2 ring-slate-500 shadow-lg",
7545
+ activeRing: "ring-slate-500",
7546
+ focusRing: "focus-visible:ring-slate-500",
7547
+ iconInactiveBg: "bg-slate-500/10 dark:bg-slate-500/20",
7548
+ iconInactiveText: "text-slate-600 dark:text-slate-300"
7549
+ },
7550
+ sky: {
7551
+ activeGradient: "bg-gradient-to-br from-sky-500 to-sky-600 ring-2 ring-sky-500 shadow-lg",
7552
+ activeRing: "ring-sky-500",
7553
+ focusRing: "focus-visible:ring-sky-500",
7554
+ iconInactiveBg: "bg-sky-500/10 dark:bg-sky-500/20",
7555
+ iconInactiveText: "text-sky-600 dark:text-sky-300"
7556
+ },
7557
+ fuchsia: {
7558
+ activeGradient: "bg-gradient-to-br from-fuchsia-500 to-fuchsia-600 ring-2 ring-fuchsia-500 shadow-lg",
7559
+ activeRing: "ring-fuchsia-500",
7560
+ focusRing: "focus-visible:ring-fuchsia-500",
7561
+ iconInactiveBg: "bg-fuchsia-500/10 dark:bg-fuchsia-500/20",
7562
+ iconInactiveText: "text-fuchsia-600 dark:text-fuchsia-300"
7493
7563
  }
7494
7564
  };
7495
7565
  var INACTIVE_CLASSES = "border border-white/30 bg-white/20 shadow-sm shadow-black/[0.03] backdrop-blur-sm hover:bg-white/35 dark:border-white/10 dark:bg-white/5";
@@ -7542,7 +7612,17 @@ var SECTION_HEADER_COLOR_MAP = {
7542
7612
  violet: "bg-violet-500/10 text-violet-600 dark:bg-violet-500/25 dark:text-violet-300",
7543
7613
  purple: "bg-purple-500/10 text-purple-600 dark:bg-purple-500/25 dark:text-purple-300",
7544
7614
  orange: "bg-orange-500/10 text-orange-600 dark:bg-orange-500/25 dark:text-orange-300",
7545
- red: "bg-red-500/10 text-red-600 dark:bg-red-500/25 dark:text-red-300"
7615
+ red: "bg-red-500/10 text-red-600 dark:bg-red-500/25 dark:text-red-300",
7616
+ indigo: "bg-indigo-500/10 text-indigo-600 dark:bg-indigo-500/25 dark:text-indigo-300",
7617
+ cyan: "bg-cyan-500/10 text-cyan-600 dark:bg-cyan-500/25 dark:text-cyan-300",
7618
+ teal: "bg-teal-500/10 text-teal-600 dark:bg-teal-500/25 dark:text-teal-300",
7619
+ pink: "bg-pink-500/10 text-pink-600 dark:bg-pink-500/25 dark:text-pink-300",
7620
+ rose: "bg-rose-500/10 text-rose-600 dark:bg-rose-500/25 dark:text-rose-300",
7621
+ green: "bg-green-500/10 text-green-600 dark:bg-green-500/25 dark:text-green-300",
7622
+ yellow: "bg-yellow-500/10 text-yellow-600 dark:bg-yellow-500/25 dark:text-yellow-300",
7623
+ slate: "bg-slate-500/10 text-slate-600 dark:bg-slate-500/25 dark:text-slate-300",
7624
+ sky: "bg-sky-500/10 text-sky-600 dark:bg-sky-500/25 dark:text-sky-300",
7625
+ fuchsia: "bg-fuchsia-500/10 text-fuchsia-600 dark:bg-fuchsia-500/25 dark:text-fuchsia-300"
7546
7626
  };
7547
7627
  function FilterSectionHeader({
7548
7628
  icon,
@@ -8000,7 +8080,16 @@ function CookieConsent({
8000
8080
  }
8001
8081
  ) });
8002
8082
  }
8003
- function getDockAccent(id) {
8083
+ function accentFromRgb(rgb) {
8084
+ return {
8085
+ icon: `text-[rgb(${rgb})]`,
8086
+ bg: `bg-[rgba(${rgb},0.12)] dark:bg-[rgba(${rgb},0.2)]`,
8087
+ dot: `bg-[rgb(${rgb})]`,
8088
+ rgb
8089
+ };
8090
+ }
8091
+ function getDockAccent(id, accentRgb) {
8092
+ if (accentRgb) return accentFromRgb(accentRgb);
8004
8093
  if (id === "stations") {
8005
8094
  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" };
8006
8095
  }
@@ -8148,7 +8237,7 @@ function Dock({
8148
8237
  children: [
8149
8238
  navigationActions.map((action, index) => {
8150
8239
  const hasMenu = !!action.menuItems?.length;
8151
- const accent = getDockAccent(action.id);
8240
+ const accent = getDockAccent(action.id, action.accentRgb);
8152
8241
  const FlyoutIcon = action.icon;
8153
8242
  const dockItem = /* @__PURE__ */ jsxRuntime.jsx(
8154
8243
  DockItem,
@@ -8220,7 +8309,7 @@ function Dock({
8220
8309
  contextualActions.map((action, actionIndex) => {
8221
8310
  const index = navigationActions.length + actionIndex;
8222
8311
  const hasMenu = !!action.menuItems?.length;
8223
- const accent = getDockAccent(action.id);
8312
+ const accent = getDockAccent(action.id, action.accentRgb);
8224
8313
  const FlyoutIcon = action.icon;
8225
8314
  const dockItem = /* @__PURE__ */ jsxRuntime.jsx(
8226
8315
  DockItem,
@@ -8306,7 +8395,7 @@ var DockItem = React11.memo(function DockItem2({
8306
8395
  compact = false
8307
8396
  }) {
8308
8397
  const Icon = action.icon;
8309
- const accent = getDockAccent(action.id);
8398
+ const accent = getDockAccent(action.id, action.accentRgb);
8310
8399
  const activeIndex = hoveredIndex ?? focusedIndex;
8311
8400
  const isSelected = !!action.active;
8312
8401
  const isInteractiveActive = activeIndex === index;
@@ -14091,7 +14180,8 @@ function buildDockActions(items, pathname, handlers, options = {}) {
14091
14180
  href: item.href,
14092
14181
  active: isActive(item.href),
14093
14182
  onClick: item.onClick ?? (() => handlers.navigate(item.href)),
14094
- menuItems
14183
+ menuItems,
14184
+ accentRgb: item.accentRgb
14095
14185
  });
14096
14186
  }
14097
14187
  const contextualActions = [...contextualItems];
@@ -15141,5 +15231,5 @@ exports.useGeoMapState = useGeoMapState;
15141
15231
  exports.useNotifications = useNotifications;
15142
15232
  exports.usePlatformShellStore = usePlatformShellStore;
15143
15233
  exports.usePullToRefresh = usePullToRefresh;
15144
- //# sourceMappingURL=chunk-DOOTVMMR.js.map
15145
- //# sourceMappingURL=chunk-DOOTVMMR.js.map
15234
+ //# sourceMappingURL=chunk-2ILTTH5W.js.map
15235
+ //# sourceMappingURL=chunk-2ILTTH5W.js.map