@eqtylab/equality 5.5.0 → 5.5.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 5.5.2 - 2026-11-18
6
+
7
+ ### Fixed
8
+
9
+ - An inline `SelectTrigger`'s chevron no longer shrinks below the default trigger's 16px beside
10
+ small text. It still grows with larger text, at 0.75em.
11
+
12
+ ## 5.5.1 - 2026-11-18
13
+
14
+ ### Added
15
+
16
+ - `SelectTrigger` takes `variant="inline"`, for a select set into a heading or a line of text,
17
+ such as a title that switches between items or a version picker beside its label. It flows
18
+ with the text around it, has no border, background, padding or fixed height, takes the
19
+ surrounding font size and line height, and shows its chevron at full opacity, sized to the
20
+ font. Name it with its current value, such as `` `${policy}, switch policy` ``. `variant`
21
+ defaults to `default`, the boxed trigger.
22
+ - `SelectContent` takes `matchTriggerWidth`, which makes the list exactly as wide as its trigger,
23
+ wrapping longer options, rather than at least as wide. It applies to the default `popper`
24
+ position and defaults to `false`.
25
+
5
26
  ## 5.5.0 - 2026-11-17
6
27
 
7
28
  ### Added
package/dist/index.cjs CHANGED
@@ -3501,10 +3501,30 @@ var SelectGroup = React16__namespace.forwardRef(({ hidden, ...props }, ref) => {
3501
3501
  });
3502
3502
  SelectGroup.displayName = SelectPrimitive__namespace.Group.displayName;
3503
3503
  var SelectValue = SelectPrimitive__namespace.Value;
3504
- var SelectTrigger = React16__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(styles39__default.default["select-trigger"], className), ...props, children: [
3505
- children,
3506
- /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: cn(styles39__default.default["select-icon"], styles39__default.default["select-icon--low-opacity"]) }) })
3507
- ] }));
3504
+ var SelectTrigger = React16__namespace.forwardRef(({ className, children, variant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
3505
+ SelectPrimitive__namespace.Trigger,
3506
+ {
3507
+ ref,
3508
+ className: cn(
3509
+ styles39__default.default["select-trigger"],
3510
+ variant === "inline" && styles39__default.default["select-trigger--inline"],
3511
+ className
3512
+ ),
3513
+ ...props,
3514
+ children: [
3515
+ children,
3516
+ /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
3517
+ ChevronDownIcon2,
3518
+ {
3519
+ className: cn(
3520
+ styles39__default.default["select-icon"],
3521
+ variant !== "inline" && styles39__default.default["select-icon--low-opacity"]
3522
+ )
3523
+ }
3524
+ ) })
3525
+ ]
3526
+ }
3527
+ ));
3508
3528
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
3509
3529
  var SelectPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: usePortalContainer(), children });
3510
3530
  var selectContentElevationVariants = generateElevationVariants(
@@ -3518,6 +3538,7 @@ var SelectContent = React16__namespace.forwardRef(
3518
3538
  children,
3519
3539
  position = "popper",
3520
3540
  elevation = ELEVATION.OVERLAY,
3541
+ matchTriggerWidth = false,
3521
3542
  onKeyDown,
3522
3543
  onKeyDownCapture,
3523
3544
  onPointerMoveCapture,
@@ -3563,6 +3584,7 @@ var SelectContent = React16__namespace.forwardRef(
3563
3584
  className: cn(
3564
3585
  styles39__default.default["select-content"],
3565
3586
  position === "popper" && styles39__default.default["select-content--popper"],
3587
+ position === "popper" && matchTriggerWidth && styles39__default.default["select-content--trigger-width"],
3566
3588
  selectContentElevationVariants({ elevation }),
3567
3589
  className
3568
3590
  ),