@eqtylab/equality 1.2.3 → 1.3.0

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.d.cts CHANGED
@@ -423,7 +423,6 @@ declare const ELEVATION: {
423
423
  BASE: string;
424
424
  RAISED: string;
425
425
  OVERLAY: string;
426
- FLOATING: string;
427
426
  };
428
427
  type Elevation = (typeof ELEVATION)[keyof typeof ELEVATION];
429
428
 
package/dist/index.d.ts CHANGED
@@ -423,7 +423,6 @@ declare const ELEVATION: {
423
423
  BASE: string;
424
424
  RAISED: string;
425
425
  OVERLAY: string;
426
- FLOATING: string;
427
426
  };
428
427
  type Elevation = (typeof ELEVATION)[keyof typeof ELEVATION];
429
428
 
package/dist/index.js CHANGED
@@ -281,8 +281,7 @@ var ELEVATION = {
281
281
  SUNKEN: "sunken",
282
282
  BASE: "base",
283
283
  RAISED: "raised",
284
- OVERLAY: "overlay",
285
- FLOATING: "floating"
284
+ OVERLAY: "overlay"
286
285
  };
287
286
  var generateElevationVariants = (styles61, baseClassName, defaultElevation) => {
288
287
  const classNames = {};
@@ -2624,26 +2623,33 @@ function SortSelector({
2624
2623
  /* @__PURE__ */ jsx("span", { children: currentLabel }),
2625
2624
  /* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles47["chevron-down-icon"] })
2626
2625
  ] }) }),
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
- ] })
2626
+ /* @__PURE__ */ jsxs(
2627
+ DropdownMenuContent,
2628
+ {
2629
+ align: "end",
2630
+ style: { minWidth: "var(--radix-dropdown-menu-trigger-width)" },
2631
+ children: [
2632
+ /* @__PURE__ */ jsxs(DropdownMenuLabel, { children: [
2633
+ "Sort",
2634
+ !isDefaultSort && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
2635
+ ] }),
2636
+ /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
2637
+ filteredOptions.map((option) => {
2638
+ const isSelected = currentValue === option.value;
2639
+ return /* @__PURE__ */ jsx(
2640
+ DropdownMenuCheckboxItem,
2641
+ {
2642
+ checked: isSelected,
2643
+ onCheckedChange: () => handleChange(option.value),
2644
+ onSelect: (e) => e.preventDefault(),
2645
+ children: option.label
2646
+ },
2647
+ option.value
2648
+ );
2649
+ })
2650
+ ]
2651
+ }
2652
+ )
2647
2653
  ] });
2648
2654
  }
2649
2655
  var Switch = React15.forwardRef(