@andreagiugni/tailwind-dashboard-ui 0.5.0 → 0.5.1

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.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- export { BarChart } from './chunk-HZQZC5CK.js';
3
- export { LineChart } from './chunk-MEU4PMP5.js';
2
+ export { BarChart } from './chunk-YAKIMPXZ.js';
3
+ export { LineChart } from './chunk-NWIOJGF7.js';
4
4
  export { Calendar, Modal } from './chunk-7OWZKV75.js';
5
5
  export { CountryMap } from './chunk-R66LONPQ.js';
6
6
  export { Editor } from './chunk-4OETC46A.js';
7
- export { ColorPicker } from './chunk-AGRX5ZR6.js';
7
+ export { ColorPicker } from './chunk-P7LI2FSR.js';
8
8
  import { cn } from './chunk-ZLIYUUA4.js';
9
9
  export { cn } from './chunk-ZLIYUUA4.js';
10
10
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -2458,12 +2458,13 @@ var Switch = ({
2458
2458
  onChange(newCheckedState);
2459
2459
  }
2460
2460
  };
2461
+ const offTrack = "bg-gray-200 ring-1 ring-inset ring-gray-300 dark:bg-white/10 dark:ring-0";
2461
2462
  const switchColors = color === "blue" ? {
2462
- background: isChecked ? "bg-brand-500 " : "bg-gray-200 dark:bg-white/10",
2463
+ background: isChecked ? "bg-brand-500 " : offTrack,
2463
2464
  // Blue version
2464
2465
  knob: isChecked ? "translate-x-full bg-white" : "translate-x-0 bg-white"
2465
2466
  } : {
2466
- background: isChecked ? "bg-gray-800 dark:bg-white/10" : "bg-gray-200 dark:bg-white/10",
2467
+ background: isChecked ? "bg-gray-800 dark:bg-white/10" : offTrack,
2467
2468
  // Gray version
2468
2469
  knob: isChecked ? "translate-x-full bg-white" : "translate-x-0 bg-white"
2469
2470
  };