@datatechsolutions/ui 2.11.30 → 2.11.32

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.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkKMDY6OLI_js = require('../chunk-KMDY6OLI.js');
5
- require('../chunk-KPHTHSHJ.js');
4
+ var chunk7O3FQ2PW_js = require('../chunk-7O3FQ2PW.js');
5
+ require('../chunk-3N76EFJM.js');
6
6
  require('../chunk-YXN2K77G.js');
7
7
  require('../chunk-S7KHTUHA.js');
8
8
  require('../chunk-UZ3CMNUJ.js');
@@ -13,7 +13,7 @@ require('../chunk-PWBWP5FJ.js');
13
13
 
14
14
  Object.defineProperty(exports, "Workspace", {
15
15
  enumerable: true,
16
- get: function () { return chunkKMDY6OLI_js.Workspace; }
16
+ get: function () { return chunk7O3FQ2PW_js.Workspace; }
17
17
  });
18
18
  //# sourceMappingURL=workflow-canvas.js.map
19
19
  //# sourceMappingURL=workflow-canvas.js.map
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- export { Workspace } from '../chunk-N4G3UXRU.mjs';
3
- import '../chunk-5ZWN5Q7H.mjs';
2
+ export { Workspace } from '../chunk-YNZAYMGD.mjs';
3
+ import '../chunk-QNR3NADH.mjs';
4
4
  import '../chunk-7VJ7CMMT.mjs';
5
5
  import '../chunk-QWG2FMUN.mjs';
6
6
  import '../chunk-D2JF6C3E.mjs';
@@ -567,11 +567,11 @@ var Button = React12.forwardRef(function Button2({
567
567
  }, ref) {
568
568
  const finalColor = destructive ? "ios-red" : color;
569
569
  const isIosColor = finalColor && finalColor in iosColors2;
570
- const colorStyles = isIosColor ? iosColors2[finalColor] : styles.colors[finalColor] ?? styles.colors["dark/zinc"];
570
+ const colorStyles2 = isIosColor ? iosColors2[finalColor] : styles.colors[finalColor] ?? styles.colors["dark/zinc"];
571
571
  let classes = clsx__default.default(
572
572
  className,
573
573
  styles.base,
574
- gradient ? styles.gradient : outline ? styles.outline : plain ? styles.plain : clsx__default.default(styles.solid, colorStyles),
574
+ gradient ? styles.gradient : outline ? styles.outline : plain ? styles.plain : clsx__default.default(styles.solid, colorStyles2),
575
575
  pill && pillStyles,
576
576
  size !== "md" && sizeStyles[size],
577
577
  fullWidth && "w-full",
@@ -1784,6 +1784,15 @@ function DropdownSelect({
1784
1784
  error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-ios-red", role: "alert", "aria-live": "polite", children: error })
1785
1785
  ] });
1786
1786
  }
1787
+ var colorStyles = {
1788
+ green: { solid: "bg-[#34C759]", glass: "bg-emerald-500/80 backdrop-blur-sm" },
1789
+ blue: { solid: "bg-[#007AFF]", glass: "bg-blue-500/80 backdrop-blur-sm" },
1790
+ indigo: { solid: "bg-indigo-500", glass: "bg-indigo-500/80 backdrop-blur-sm" },
1791
+ violet: { solid: "bg-violet-500", glass: "bg-violet-500/80 backdrop-blur-sm" },
1792
+ teal: { solid: "bg-teal-500", glass: "bg-teal-500/80 backdrop-blur-sm" },
1793
+ orange: { solid: "bg-orange-500", glass: "bg-orange-500/80 backdrop-blur-sm" },
1794
+ red: { solid: "bg-[#FF3B30]", glass: "bg-red-500/80 backdrop-blur-sm" }
1795
+ };
1787
1796
  var sizes = {
1788
1797
  sm: { track: "w-10 h-6", thumb: "h-5 w-5", translateX: 16 },
1789
1798
  md: { track: "w-[51px] h-[31px]", thumb: "h-[27px] w-[27px]", translateX: 20 },
@@ -1794,9 +1803,11 @@ function ToggleSwitch({
1794
1803
  onChange,
1795
1804
  disabled = false,
1796
1805
  size = "md",
1806
+ color = "green",
1797
1807
  label
1798
1808
  }) {
1799
1809
  const sizeConfig3 = sizes[size];
1810
+ const checkedBg = colorStyles[color].glass;
1800
1811
  const handleToggle = () => {
1801
1812
  if (disabled) return;
1802
1813
  chunkUZ3CMNUJ_js.triggerHaptic("light");
@@ -1823,7 +1834,7 @@ function ToggleSwitch({
1823
1834
  transition-colors duration-200 ease-in-out
1824
1835
  focus:outline-none focus-visible:ring-2 focus-visible:ring-[#007AFF] focus-visible:ring-offset-2
1825
1836
  ${sizeConfig3.track}
1826
- ${checked ? "bg-[#34C759]" : "bg-gray-200 dark:bg-gray-600"}
1837
+ ${checked ? checkedBg : "bg-gray-200 dark:bg-white/[0.08]"}
1827
1838
  ${disabled ? "opacity-50 cursor-not-allowed" : ""}
1828
1839
  `,
1829
1840
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1855,7 +1866,8 @@ function LabeledToggle({
1855
1866
  checked,
1856
1867
  onChange,
1857
1868
  disabled,
1858
- size = "md"
1869
+ size = "md",
1870
+ color
1859
1871
  }) {
1860
1872
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
1861
1873
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
@@ -1869,6 +1881,7 @@ function LabeledToggle({
1869
1881
  onChange,
1870
1882
  disabled,
1871
1883
  size,
1884
+ color,
1872
1885
  label: title
1873
1886
  }
1874
1887
  )
@@ -20877,5 +20890,5 @@ exports.useGeoMapState = useGeoMapState;
20877
20890
  exports.useNotifications = useNotifications;
20878
20891
  exports.usePlatformShellStore = usePlatformShellStore;
20879
20892
  exports.usePullToRefresh = usePullToRefresh;
20880
- //# sourceMappingURL=chunk-KPHTHSHJ.js.map
20881
- //# sourceMappingURL=chunk-KPHTHSHJ.js.map
20893
+ //# sourceMappingURL=chunk-3N76EFJM.js.map
20894
+ //# sourceMappingURL=chunk-3N76EFJM.js.map