@andreagiugni/tailwind-dashboard-ui 0.5.5 → 0.5.6

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,11 @@
1
1
  "use client";
2
2
  export { BarChart } from './chunk-YAKIMPXZ.js';
3
3
  export { LineChart } from './chunk-NWIOJGF7.js';
4
- export { Calendar, Modal } from './chunk-GIAGOO72.js';
4
+ export { Calendar, Modal } from './chunk-XXWKR4DP.js';
5
5
  export { CountryMap } from './chunk-R66LONPQ.js';
6
6
  export { Editor } from './chunk-DXUWFHPF.js';
7
- export { ColorPicker } from './chunk-LXA5UOBC.js';
7
+ export { ColorPicker } from './chunk-ASRYDS2W.js';
8
+ import { layers } from './chunk-VX7S6VYG.js';
8
9
  import { cn } from './chunk-ZLIYUUA4.js';
9
10
  export { cn } from './chunk-ZLIYUUA4.js';
10
11
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -433,7 +434,8 @@ var Dropdown = ({
433
434
  {
434
435
  ref: dropdownRef,
435
436
  className: cn(
436
- "absolute z-40 right-0 mt-2 rounded-xl border border-gray-200 bg-white shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark",
437
+ "absolute right-0 mt-2 rounded-xl border border-gray-200 bg-white shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark",
438
+ layers.menu,
437
439
  className
438
440
  ),
439
441
  ...rest,
@@ -1584,7 +1586,8 @@ var Tooltip = ({
1584
1586
  id: tooltipId,
1585
1587
  role: "tooltip",
1586
1588
  className: cn(
1587
- "pointer-events-none absolute z-50 whitespace-nowrap rounded-lg bg-gray-900 px-3 py-2 text-xs font-medium text-white shadow-theme-lg dark:bg-gray-700 dark:text-white/90",
1589
+ "pointer-events-none absolute whitespace-nowrap rounded-lg bg-gray-900 px-3 py-2 text-xs font-medium text-white shadow-theme-lg dark:bg-gray-700 dark:text-white/90",
1590
+ layers.floating,
1588
1591
  placementClasses[placement]
1589
1592
  ),
1590
1593
  style: {
@@ -1672,7 +1675,8 @@ var Popover = ({
1672
1675
  {
1673
1676
  role: "dialog",
1674
1677
  className: cn(
1675
- "absolute z-50 min-w-[12rem] rounded-xl border border-gray-200 bg-white p-4 shadow-theme-lg dark:border-gray-700 dark:bg-gray-900 dark:text-white/90",
1678
+ "absolute min-w-[12rem] rounded-xl border border-gray-200 bg-white p-4 shadow-theme-lg dark:border-gray-700 dark:bg-gray-900 dark:text-white/90",
1679
+ layers.floating,
1676
1680
  placementClasses2[placement],
1677
1681
  className
1678
1682
  ),
@@ -1742,7 +1746,7 @@ var Drawer = ({
1742
1746
  };
1743
1747
  }, [isOpen]);
1744
1748
  if (!isOpen) return null;
1745
- return /* @__PURE__ */ jsxs("div", { className: "fixed inset-0 z-99999 drawer", children: [
1749
+ return /* @__PURE__ */ jsxs("div", { className: cn("drawer fixed inset-0", layers.overlay), children: [
1746
1750
  /* @__PURE__ */ jsx(
1747
1751
  "div",
1748
1752
  {
@@ -1770,7 +1774,7 @@ var Drawer = ({
1770
1774
  {
1771
1775
  onClick: onClose,
1772
1776
  "aria-label": "Close drawer",
1773
- className: "absolute right-3 top-3 z-999 flex h-9.5 w-9.5 items-center justify-center rounded-full bg-gray-100 text-gray-400 transition-colors hover:bg-gray-200 hover:text-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",
1777
+ className: "absolute right-3 top-3 z-99 flex h-9.5 w-9.5 items-center justify-center rounded-full bg-gray-100 text-gray-400 transition-colors hover:bg-gray-200 hover:text-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",
1774
1778
  children: /* @__PURE__ */ jsx(
1775
1779
  "svg",
1776
1780
  {
@@ -2587,7 +2591,10 @@ var Select = ({
2587
2591
  "ul",
2588
2592
  {
2589
2593
  role: "listbox",
2590
- className: "absolute left-0 top-full z-40 mt-1.5 max-h-60 w-full overflow-y-auto rounded-lg border border-gray-200 bg-white py-1 shadow-theme-lg dark:border-gray-800 dark:bg-gray-900",
2594
+ className: cn(
2595
+ "absolute left-0 top-full mt-1.5 max-h-60 w-full overflow-y-auto rounded-lg border border-gray-200 bg-white py-1 shadow-theme-lg dark:border-gray-800 dark:bg-gray-900",
2596
+ layers.menu
2597
+ ),
2591
2598
  children: options.map((option) => {
2592
2599
  const isSelected = option.value === selectedValue;
2593
2600
  return /* @__PURE__ */ jsxs(
@@ -2660,7 +2667,7 @@ var MultiSelect = ({
2660
2667
  );
2661
2668
  return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
2662
2669
  /* @__PURE__ */ jsx("label", { className: "mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400", children: label }),
2663
- /* @__PURE__ */ jsx("div", { className: "relative z-20 inline-block w-full", children: /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-center", children: [
2670
+ /* @__PURE__ */ jsx("div", { className: "relative inline-block w-full", children: /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-center", children: [
2664
2671
  /* @__PURE__ */ jsx("div", { onClick: toggleDropdown, className: "w-full", children: /* @__PURE__ */ jsxs("div", { className: "mb-2 flex h-11 rounded-lg border border-gray-300 py-1.5 px-4 shadow-theme-xs outline-hidden transition focus:border-brand-300 focus:shadow-focus-ring dark:border-gray-700 dark:bg-gray-900 dark:focus:border-brand-300", children: [
2665
2672
  /* @__PURE__ */ jsx("div", { className: "flex flex-wrap flex-auto gap-2", children: selectedValuesText.length > 0 ? selectedValuesText.map((text, index) => /* @__PURE__ */ jsxs(
2666
2673
  "div",
@@ -2739,7 +2746,10 @@ var MultiSelect = ({
2739
2746
  isOpen && /* @__PURE__ */ jsx(
2740
2747
  "div",
2741
2748
  {
2742
- className: "absolute left-0 z-40 w-full overflow-y-auto bg-white rounded-lg shadow-sm top-full max-h-select dark:bg-gray-900",
2749
+ className: cn(
2750
+ "absolute left-0 top-full max-h-select w-full overflow-y-auto rounded-lg bg-white shadow-sm dark:bg-gray-900",
2751
+ layers.menu
2752
+ ),
2743
2753
  onClick: (e) => e.stopPropagation(),
2744
2754
  children: /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: options.map((option, index) => {
2745
2755
  const isSelected = selectedOptions.includes(option.value);