@eqtylab/equality 5.4.5 → 5.5.1

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,37 @@
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.1 - 2026-11-18
6
+
7
+ ### Added
8
+
9
+ - `SelectTrigger` takes `variant="inline"`, for a select set into a heading or a line of text,
10
+ such as a title that switches between items or a version picker beside its label. It flows
11
+ with the text around it, has no border, background, padding or fixed height, takes the
12
+ surrounding font size and line height, and shows its chevron at full opacity, sized to the
13
+ font. Name it with its current value, such as `` `${policy}, switch policy` ``. `variant`
14
+ defaults to `default`, the boxed trigger.
15
+ - `SelectContent` takes `matchTriggerWidth`, which makes the list exactly as wide as its trigger,
16
+ wrapping longer options, rather than at least as wide. It applies to the default `popper`
17
+ position and defaults to `false`.
18
+
19
+ ## 5.5.0 - 2026-11-17
20
+
21
+ ### Added
22
+
23
+ - `Timeline`, a record of what happened to one thing, in order: entries down a rail, in sections
24
+ marked by the state they happened under. It is three parts: `Timeline`, `TimelineSection` and
25
+ `TimelineItem`. A section draws a marker for its state, joined to the next by a connector, and
26
+ the marker stays pinned beside its entries as they scroll. A section takes an `icon`, a Lucide
27
+ element such as `<Clock />`, an optional `label` that says its state to a screen reader, and one
28
+ of the five status variants, defaulting to `neutral`. `success`, `warning` and `danger` sections
29
+ default to `Badge`'s icons for those variants; `neutral` and `primary` sections need an `icon`. `size` is `sm` (a 20px marker, an
30
+ icon-only `Badge`) or `md` (40px, an `md` `Button`'s height, the default).
31
+ - `--eq-timeline-offset`, a length, pins a `Timeline`'s markers that far below the top of the
32
+ scrolling area, such as under a sticky header. It defaults to `0px`.
33
+ - `--eq-timeline-marker-background` and `--eq-timeline-marker-color` colour a `TimelineSection`'s
34
+ marker and connector for a state no variant covers, such as a control status.
35
+
5
36
  ## 5.4.5 - 2026-11-17
6
37
 
7
38
  ### Changed
package/dist/index.cjs CHANGED
@@ -86,11 +86,12 @@ var TabsPrimitive = require('@radix-ui/react-tabs');
86
86
  var styles60 = require('./tabs-components.module.module.css.module.css');
87
87
  var styles61 = require('./tabs.module.module.css.module.css');
88
88
  var styles62 = require('./textarea.module.module.css.module.css');
89
+ var styles63 = require('./timeline.module.module.css.module.css');
89
90
  var ToastPrimitives = require('@radix-ui/react-toast');
90
- var styles63 = require('./toast-components.module.module.css.module.css');
91
- var styles64 = require('./toast.module.module.css.module.css');
92
- var styles65 = require('./truncated-description.module.module.css.module.css');
93
- var styles66 = require('./theme.module.module.css.module.css');
91
+ var styles64 = require('./toast-components.module.module.css.module.css');
92
+ var styles65 = require('./toast.module.module.css.module.css');
93
+ var styles66 = require('./truncated-description.module.module.css.module.css');
94
+ var styles67 = require('./theme.module.module.css.module.css');
94
95
 
95
96
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
96
97
 
@@ -189,11 +190,12 @@ var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
189
190
  var styles60__default = /*#__PURE__*/_interopDefault(styles60);
190
191
  var styles61__default = /*#__PURE__*/_interopDefault(styles61);
191
192
  var styles62__default = /*#__PURE__*/_interopDefault(styles62);
192
- var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
193
193
  var styles63__default = /*#__PURE__*/_interopDefault(styles63);
194
+ var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
194
195
  var styles64__default = /*#__PURE__*/_interopDefault(styles64);
195
196
  var styles65__default = /*#__PURE__*/_interopDefault(styles65);
196
197
  var styles66__default = /*#__PURE__*/_interopDefault(styles66);
198
+ var styles67__default = /*#__PURE__*/_interopDefault(styles67);
197
199
 
198
200
  // src/components/alert-dialog/alert-dialog.tsx
199
201
  var PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
@@ -353,12 +355,12 @@ var ELEVATION = {
353
355
  RAISED: "raised",
354
356
  OVERLAY: "overlay"
355
357
  };
356
- var generateElevationVariants = (styles67, baseClassName, defaultElevation) => {
358
+ var generateElevationVariants = (styles68, baseClassName, defaultElevation) => {
357
359
  const classNames = {};
358
360
  Object.values(ELEVATION).forEach((elevation) => {
359
- classNames[elevation] = styles67[`${baseClassName}--${elevation}`];
361
+ classNames[elevation] = styles68[`${baseClassName}--${elevation}`];
360
362
  });
361
- const variants = classVarianceAuthority.cva(styles67[baseClassName], {
363
+ const variants = classVarianceAuthority.cva(styles68[baseClassName], {
362
364
  variants: {
363
365
  elevation: classNames
364
366
  },
@@ -3499,10 +3501,30 @@ var SelectGroup = React16__namespace.forwardRef(({ hidden, ...props }, ref) => {
3499
3501
  });
3500
3502
  SelectGroup.displayName = SelectPrimitive__namespace.Group.displayName;
3501
3503
  var SelectValue = SelectPrimitive__namespace.Value;
3502
- 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: [
3503
- children,
3504
- /* @__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"]) }) })
3505
- ] }));
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
+ ));
3506
3528
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
3507
3529
  var SelectPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: usePortalContainer(), children });
3508
3530
  var selectContentElevationVariants = generateElevationVariants(
@@ -3516,6 +3538,7 @@ var SelectContent = React16__namespace.forwardRef(
3516
3538
  children,
3517
3539
  position = "popper",
3518
3540
  elevation = ELEVATION.OVERLAY,
3541
+ matchTriggerWidth = false,
3519
3542
  onKeyDown,
3520
3543
  onKeyDownCapture,
3521
3544
  onPointerMoveCapture,
@@ -3561,6 +3584,7 @@ var SelectContent = React16__namespace.forwardRef(
3561
3584
  className: cn(
3562
3585
  styles39__default.default["select-content"],
3563
3586
  position === "popper" && styles39__default.default["select-content--popper"],
3587
+ position === "popper" && matchTriggerWidth && styles39__default.default["select-content--trigger-width"],
3564
3588
  selectContentElevationVariants({ elevation }),
3565
3589
  className
3566
3590
  ),
@@ -5169,24 +5193,74 @@ var Textarea = React16__namespace.forwardRef(
5169
5193
  }
5170
5194
  );
5171
5195
  Textarea.displayName = "Textarea";
5196
+ var timelineVariants = classVarianceAuthority.cva(styles63__default.default["timeline"], {
5197
+ variants: {
5198
+ /** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
5199
+ size: {
5200
+ sm: styles63__default.default["timeline--sm"],
5201
+ md: styles63__default.default["timeline--md"]
5202
+ }
5203
+ },
5204
+ defaultVariants: {
5205
+ size: "md"
5206
+ }
5207
+ });
5208
+ var timelineSectionVariants = classVarianceAuthority.cva(styles63__default.default["timeline-section"], {
5209
+ variants: {
5210
+ /** The status the section's marker and connector report */
5211
+ variant: {
5212
+ neutral: "",
5213
+ primary: styles63__default.default["timeline-section--primary"],
5214
+ success: styles63__default.default["timeline-section--success"],
5215
+ warning: styles63__default.default["timeline-section--warning"],
5216
+ danger: styles63__default.default["timeline-section--danger"]
5217
+ }
5218
+ },
5219
+ defaultVariants: {
5220
+ variant: "neutral"
5221
+ }
5222
+ });
5223
+ var Timeline = React16__namespace.forwardRef(
5224
+ ({ className, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("ol", { ref, className: cn(timelineVariants({ size }), className), ...props, children })
5225
+ );
5226
+ Timeline.displayName = "Timeline";
5227
+ var defaultVariantIcons3 = {
5228
+ success: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Check, {}),
5229
+ warning: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.OctagonAlert, {}),
5230
+ danger: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.TriangleAlert, {})
5231
+ };
5232
+ var TimelineSection = React16__namespace.forwardRef(
5233
+ ({ className, variant, label, icon, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("li", { ref, className: cn(timelineSectionVariants({ variant }), className), ...props, children: [
5234
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles63__default.default["timeline-rail"], "aria-hidden": "true", children: [
5235
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles63__default.default["timeline-connector"] }),
5236
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles63__default.default["timeline-marker"], children: icon ?? (variant ? defaultVariantIcons3[variant] : void 0) })
5237
+ ] }),
5238
+ /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles63__default.default["timeline-items"], "aria-label": label, children })
5239
+ ] })
5240
+ );
5241
+ TimelineSection.displayName = "TimelineSection";
5242
+ var TimelineItem = React16__namespace.forwardRef(
5243
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn(styles63__default.default["timeline-item"], className), ...props })
5244
+ );
5245
+ TimelineItem.displayName = "TimelineItem";
5172
5246
  var XIcon2 = LucideIcons.X;
5173
5247
  var ToastProvider = ToastPrimitives__namespace.Provider;
5174
5248
  var ToastViewport = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5175
5249
  ToastPrimitives__namespace.Viewport,
5176
5250
  {
5177
5251
  ref,
5178
- className: cn(styles63__default.default["toast-viewport"], className),
5252
+ className: cn(styles64__default.default["toast-viewport"], className),
5179
5253
  ...props
5180
5254
  }
5181
5255
  ));
5182
5256
  ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
5183
- var toastVariants = classVarianceAuthority.cva(styles63__default.default["toast"], {
5257
+ var toastVariants = classVarianceAuthority.cva(styles64__default.default["toast"], {
5184
5258
  variants: {
5185
5259
  variant: {
5186
- default: styles63__default.default["toast--default"],
5187
- danger: styles63__default.default["toast--danger"],
5188
- warning: styles63__default.default["toast--warning"],
5189
- success: styles63__default.default["toast--success"]
5260
+ default: styles64__default.default["toast--default"],
5261
+ danger: styles64__default.default["toast--danger"],
5262
+ warning: styles64__default.default["toast--warning"],
5263
+ success: styles64__default.default["toast--success"]
5190
5264
  }
5191
5265
  },
5192
5266
  defaultVariants: {
@@ -5211,7 +5285,7 @@ var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) =
5211
5285
  ref,
5212
5286
  className: cn(
5213
5287
  buttonVariants({ variant: "secondary", size: "sm" }),
5214
- styles63__default.default["toast-action"],
5288
+ styles64__default.default["toast-action"],
5215
5289
  className
5216
5290
  ),
5217
5291
  ...props
@@ -5223,19 +5297,19 @@ var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) =>
5223
5297
  {
5224
5298
  ref,
5225
5299
  "aria-label": "Close",
5226
- className: cn(styles63__default.default["toast-close"], className),
5300
+ className: cn(styles64__default.default["toast-close"], className),
5227
5301
  ...props,
5228
- children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles63__default.default["toast-close-icon"] })
5302
+ children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles64__default.default["toast-close-icon"] })
5229
5303
  }
5230
5304
  ));
5231
5305
  ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
5232
- var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles63__default.default["toast-title"], className), ...props }));
5306
+ var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles64__default.default["toast-title"], className), ...props }));
5233
5307
  ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
5234
5308
  var ToastDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5235
5309
  ToastPrimitives__namespace.Description,
5236
5310
  {
5237
5311
  ref,
5238
- className: cn(styles63__default.default["toast-description"], className),
5312
+ className: cn(styles64__default.default["toast-description"], className),
5239
5313
  ...props
5240
5314
  }
5241
5315
  ));
@@ -5370,14 +5444,14 @@ var Toast = ({ toast: toast2 }) => {
5370
5444
  };
5371
5445
  const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
5372
5446
  return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
5373
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles64__default.default["toast-copy"], children: [
5374
- title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles64__default.default["toast-title-container"], children: [
5447
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles65__default.default["toast-copy"], children: [
5448
+ title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles65__default.default["toast-title-container"], children: [
5375
5449
  displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
5376
5450
  /* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
5377
5451
  ] }),
5378
5452
  description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
5379
5453
  ] }),
5380
- action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles64__default.default["toast-action"], children: action }),
5454
+ action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles65__default.default["toast-action"], children: action }),
5381
5455
  /* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
5382
5456
  ] });
5383
5457
  };
@@ -5412,7 +5486,7 @@ var TruncatedDescription = ({
5412
5486
  e.stopPropagation();
5413
5487
  setExpanded(!expanded);
5414
5488
  };
5415
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles65__default.default["truncated-description"], className), children: [
5489
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles66__default.default["truncated-description"], className), children: [
5416
5490
  /* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
5417
5491
  isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
5418
5492
  ] });
@@ -5433,7 +5507,7 @@ var ThemeProvider = ({ customVars, portalContainer, children }) => {
5433
5507
  {
5434
5508
  id: "equality-theme-provider-root",
5435
5509
  "data-equality-root": true,
5436
- className: styles66__default.default.root,
5510
+ className: styles67__default.default.root,
5437
5511
  style: customVars,
5438
5512
  children: [
5439
5513
  children,
@@ -5727,6 +5801,9 @@ exports.TabsList = TabsList;
5727
5801
  exports.TabsTrigger = TabsTrigger;
5728
5802
  exports.Textarea = Textarea;
5729
5803
  exports.ThemeProvider = ThemeProvider;
5804
+ exports.Timeline = Timeline;
5805
+ exports.TimelineItem = TimelineItem;
5806
+ exports.TimelineSection = TimelineSection;
5730
5807
  exports.Toast = Toast;
5731
5808
  exports.ToastAction = ToastAction;
5732
5809
  exports.ToastClose = ToastClose;