@andreagiugni/tailwind-dashboard-ui 0.5.12 → 0.5.13

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
@@ -771,19 +771,41 @@ function DataDrivenTable({
771
771
  showControls && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 p-4", children: [
772
772
  showSelector ? /* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400", children: [
773
773
  "Show",
774
- /* @__PURE__ */ jsx(
775
- "select",
776
- {
777
- "aria-label": "Rows per page",
778
- value: pageSize,
779
- onChange: (e) => {
780
- setPageSize(Number(e.target.value));
781
- setPage(1);
782
- },
783
- className: "rounded-lg border border-gray-200 bg-transparent px-2 py-1.5 text-sm text-gray-700 dark:border-white/[0.08] dark:text-white/90",
784
- children: sizeOptions.map((n) => /* @__PURE__ */ jsx("option", { value: n, children: n }, n))
785
- }
786
- ),
774
+ /* @__PURE__ */ jsxs("span", { className: "relative inline-flex", children: [
775
+ /* @__PURE__ */ jsx(
776
+ "select",
777
+ {
778
+ "aria-label": "Rows per page",
779
+ value: pageSize,
780
+ onChange: (e) => {
781
+ setPageSize(Number(e.target.value));
782
+ setPage(1);
783
+ },
784
+ className: "appearance-none rounded-lg border border-gray-200 bg-transparent py-1.5 pl-3 pr-9 text-sm text-gray-700 dark:border-white/[0.08] dark:text-white/90",
785
+ children: sizeOptions.map((n) => /* @__PURE__ */ jsx("option", { value: n, children: n }, n))
786
+ }
787
+ ),
788
+ /* @__PURE__ */ jsx(
789
+ "svg",
790
+ {
791
+ "aria-hidden": "true",
792
+ className: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-500 dark:text-gray-400",
793
+ viewBox: "0 0 16 16",
794
+ fill: "none",
795
+ xmlns: "http://www.w3.org/2000/svg",
796
+ children: /* @__PURE__ */ jsx(
797
+ "path",
798
+ {
799
+ d: "M4 6L8 10L12 6",
800
+ stroke: "currentColor",
801
+ strokeWidth: "1.5",
802
+ strokeLinecap: "round",
803
+ strokeLinejoin: "round"
804
+ }
805
+ )
806
+ }
807
+ )
808
+ ] }),
787
809
  "entries"
788
810
  ] }) : /* @__PURE__ */ jsx("span", {}),
789
811
  showSearch && /* @__PURE__ */ jsx(