organify-ui 0.3.18 → 0.3.19

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.ts CHANGED
@@ -1094,9 +1094,11 @@ interface SprintFilterProps {
1094
1094
  activeSprint?: Sprint | null;
1095
1095
  selectedSprintId?: string | null;
1096
1096
  onSprintChange: (sprintId: string | null) => void;
1097
+ /** When true, shows only the icon (no label text). Ideal for compact / mobile toolbars. */
1098
+ compact?: boolean;
1097
1099
  className?: string;
1098
1100
  }
1099
- declare function SprintFilter({ sprints, activeSprint, selectedSprintId, onSprintChange, className, }: SprintFilterProps): react_jsx_runtime.JSX.Element;
1101
+ declare function SprintFilter({ sprints, activeSprint, selectedSprintId, onSprintChange, compact, className, }: SprintFilterProps): react_jsx_runtime.JSX.Element;
1100
1102
  declare namespace SprintFilter {
1101
1103
  var displayName: string;
1102
1104
  }
package/dist/index.js CHANGED
@@ -7658,6 +7658,7 @@ function SprintFilter({
7658
7658
  activeSprint,
7659
7659
  selectedSprintId,
7660
7660
  onSprintChange,
7661
+ compact = false,
7661
7662
  className
7662
7663
  }) {
7663
7664
  const [isOpen, setIsOpen] = React5.useState(false);
@@ -7685,14 +7686,16 @@ function SprintFilter({
7685
7686
  size: "sm",
7686
7687
  onClick: () => setIsOpen(!isOpen),
7687
7688
  className: cn(
7688
- "h-8 gap-2 text-xs font-medium px-3",
7689
+ "h-8 gap-1.5 text-xs font-medium",
7690
+ compact ? "px-2" : "px-3 gap-2",
7689
7691
  "bg-theme-glass border border-theme-subtle",
7690
7692
  "text-theme hover:bg-theme-highlight"
7691
7693
  ),
7694
+ title: compact ? displayLabel : void 0,
7692
7695
  children: [
7693
7696
  /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", className: "shrink-0", children: /* @__PURE__ */ jsx("path", { d: "M3 8h10M5 4h6M7 12h2", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }),
7694
- /* @__PURE__ */ jsx("span", { className: "truncate max-w-[120px] sm:max-w-[200px]", children: displayLabel }),
7695
- /* @__PURE__ */ jsx("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", className: cn("transition-transform", isOpen && "rotate-180"), children: /* @__PURE__ */ jsx("path", { d: "M2.5 3.75L5 6.25L7.5 3.75", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round" }) })
7697
+ !compact && /* @__PURE__ */ jsx("span", { className: "truncate max-w-[120px] sm:max-w-[200px]", children: displayLabel }),
7698
+ /* @__PURE__ */ jsx("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", className: cn("transition-transform shrink-0", isOpen && "rotate-180"), children: /* @__PURE__ */ jsx("path", { d: "M2.5 3.75L5 6.25L7.5 3.75", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round" }) })
7696
7699
  ]
7697
7700
  }
7698
7701
  ),