@andreagiugni/tailwind-dashboard-ui 0.5.4 → 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,
@@ -1351,9 +1353,10 @@ var AccordionItem = ({
1351
1353
  id: panelId,
1352
1354
  role: "region",
1353
1355
  "aria-labelledby": buttonId,
1354
- hidden: !open,
1356
+ "aria-hidden": !open,
1357
+ inert: !open,
1355
1358
  className: cn(
1356
- "grid transition-all duration-200 ease-in-out",
1359
+ "grid transition-[grid-template-rows,opacity] duration-300 ease-in-out motion-reduce:transition-none",
1357
1360
  open ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"
1358
1361
  ),
1359
1362
  children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "px-4 pb-4 text-sm text-gray-500 dark:text-gray-400", children }) })
@@ -1583,7 +1586,8 @@ var Tooltip = ({
1583
1586
  id: tooltipId,
1584
1587
  role: "tooltip",
1585
1588
  className: cn(
1586
- "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,
1587
1591
  placementClasses[placement]
1588
1592
  ),
1589
1593
  style: {
@@ -1671,7 +1675,8 @@ var Popover = ({
1671
1675
  {
1672
1676
  role: "dialog",
1673
1677
  className: cn(
1674
- "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,
1675
1680
  placementClasses2[placement],
1676
1681
  className
1677
1682
  ),
@@ -1741,7 +1746,7 @@ var Drawer = ({
1741
1746
  };
1742
1747
  }, [isOpen]);
1743
1748
  if (!isOpen) return null;
1744
- 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: [
1745
1750
  /* @__PURE__ */ jsx(
1746
1751
  "div",
1747
1752
  {
@@ -1769,7 +1774,7 @@ var Drawer = ({
1769
1774
  {
1770
1775
  onClick: onClose,
1771
1776
  "aria-label": "Close drawer",
1772
- 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",
1773
1778
  children: /* @__PURE__ */ jsx(
1774
1779
  "svg",
1775
1780
  {
@@ -2586,7 +2591,10 @@ var Select = ({
2586
2591
  "ul",
2587
2592
  {
2588
2593
  role: "listbox",
2589
- 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
+ ),
2590
2598
  children: options.map((option) => {
2591
2599
  const isSelected = option.value === selectedValue;
2592
2600
  return /* @__PURE__ */ jsxs(
@@ -2659,7 +2667,7 @@ var MultiSelect = ({
2659
2667
  );
2660
2668
  return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
2661
2669
  /* @__PURE__ */ jsx("label", { className: "mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400", children: label }),
2662
- /* @__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: [
2663
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: [
2664
2672
  /* @__PURE__ */ jsx("div", { className: "flex flex-wrap flex-auto gap-2", children: selectedValuesText.length > 0 ? selectedValuesText.map((text, index) => /* @__PURE__ */ jsxs(
2665
2673
  "div",
@@ -2738,7 +2746,10 @@ var MultiSelect = ({
2738
2746
  isOpen && /* @__PURE__ */ jsx(
2739
2747
  "div",
2740
2748
  {
2741
- 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
+ ),
2742
2753
  onClick: (e) => e.stopPropagation(),
2743
2754
  children: /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: options.map((option, index) => {
2744
2755
  const isSelected = selectedOptions.includes(option.value);