@eqtylab/equality 1.2.2 → 1.2.4

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
@@ -2624,26 +2624,33 @@ function SortSelector({
2624
2624
  /* @__PURE__ */ jsx("span", { children: currentLabel }),
2625
2625
  /* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles47["chevron-down-icon"] })
2626
2626
  ] }) }),
2627
- /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: styles47["dropdown-menu-content"], children: [
2628
- /* @__PURE__ */ jsxs(DropdownMenuLabel, { children: [
2629
- "Sort",
2630
- !isDefaultSort && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
2631
- ] }),
2632
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
2633
- filteredOptions.map((option) => {
2634
- const isSelected = currentValue === option.value;
2635
- return /* @__PURE__ */ jsx(
2636
- DropdownMenuCheckboxItem,
2637
- {
2638
- checked: isSelected,
2639
- onCheckedChange: () => handleChange(option.value),
2640
- onSelect: (e) => e.preventDefault(),
2641
- children: option.label
2642
- },
2643
- option.value
2644
- );
2645
- })
2646
- ] })
2627
+ /* @__PURE__ */ jsxs(
2628
+ DropdownMenuContent,
2629
+ {
2630
+ align: "end",
2631
+ style: { minWidth: "var(--radix-dropdown-menu-trigger-width)" },
2632
+ children: [
2633
+ /* @__PURE__ */ jsxs(DropdownMenuLabel, { children: [
2634
+ "Sort",
2635
+ !isDefaultSort && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
2636
+ ] }),
2637
+ /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
2638
+ filteredOptions.map((option) => {
2639
+ const isSelected = currentValue === option.value;
2640
+ return /* @__PURE__ */ jsx(
2641
+ DropdownMenuCheckboxItem,
2642
+ {
2643
+ checked: isSelected,
2644
+ onCheckedChange: () => handleChange(option.value),
2645
+ onSelect: (e) => e.preventDefault(),
2646
+ children: option.label
2647
+ },
2648
+ option.value
2649
+ );
2650
+ })
2651
+ ]
2652
+ }
2653
+ )
2647
2654
  ] });
2648
2655
  }
2649
2656
  var Switch = React15.forwardRef(