@mediaradar/design-components 0.55.0 → 0.56.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.55.0",
2
+ "version": "0.56.0",
3
3
  "components": [
4
4
  "AISpark",
5
5
  "AdvertiserNoResults",
package/dist/index.cjs CHANGED
@@ -2113,10 +2113,12 @@ function SelectFilter({
2113
2113
  onRetry,
2114
2114
  size = "md",
2115
2115
  inlineCaption = false,
2116
+ hideCaption = false,
2116
2117
  disabled = false,
2117
2118
  renderIcon
2118
2119
  }) {
2119
2120
  const sm = size === "sm";
2121
+ const bare = !sm && hideCaption;
2120
2122
  const [open, setOpen] = (0, import_react8.useState)(false);
2121
2123
  const [pos, setPos] = (0, import_react8.useState)(null);
2122
2124
  const ref = (0, import_react8.useRef)(null);
@@ -2177,16 +2179,16 @@ function SelectFilter({
2177
2179
  onClick: () => setOpen((o) => !o),
2178
2180
  "aria-expanded": open,
2179
2181
  "aria-haspopup": "listbox",
2180
- "aria-label": sm && !inlineCaption ? caption : void 0,
2182
+ "aria-label": sm && !inlineCaption || bare ? caption : void 0,
2181
2183
  disabled,
2182
2184
  className: cn(
2183
- sm ? "flex h-8 items-center gap-1.5 rounded-control border border-border-strong bg-input pl-2.5 pr-2 text-dense font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus" : chipTriggerClass(),
2185
+ sm ? "flex h-8 items-center gap-1.5 rounded-control border border-border-strong bg-input pl-2.5 pr-2 text-dense font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus" : bare ? "flex h-10 items-center gap-2 rounded-control border border-border-strong bg-input pl-3 pr-2.5 text-sm font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus" : chipTriggerClass(),
2184
2186
  "disabled:pointer-events-none disabled:opacity-40",
2185
2187
  fullWidth && "w-full justify-between",
2186
2188
  className
2187
2189
  ),
2188
2190
  children: [
2189
- sm ? triggerValue : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChipContent, { caption, value: triggerValue }),
2191
+ sm || bare ? triggerValue : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChipContent, { caption, value: triggerValue }),
2190
2192
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2191
2193
  import_lucide_react11.ChevronDown,
2192
2194
  {
@@ -5404,7 +5406,7 @@ function DataTable({
5404
5406
  {
5405
5407
  scope: "col",
5406
5408
  "aria-sort": c.sortable ? ariaSortFor(sort, c.key) : void 0,
5407
- className: cn("border-b border-border-default font-semibold", head, align(c), width(c)),
5409
+ className: cn("whitespace-nowrap border-b border-border-default font-semibold", head, align(c), width(c)),
5408
5410
  children: c.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5409
5411
  SortButton,
5410
5412
  {