@aircall/ds 0.24.0 → 0.24.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/dist/index.d.ts CHANGED
@@ -306,12 +306,7 @@ type AudioPlayerButtonProps = useRender.ComponentProps<'button'> & {
306
306
  */
307
307
  variant?: 'default' | 'ghost';
308
308
  };
309
- declare function AudioPlayerButton({
310
- variant,
311
- render,
312
- onClick,
313
- ...props
314
- }: AudioPlayerButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
309
+ declare const AudioPlayerButton: React.ForwardRefExoticComponent<Omit<AudioPlayerButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
315
310
  /**
316
311
  * Seek bar built on Base UI `<Slider.Root>`. Clicking or dragging seeks the audio;
317
312
  * drag pauses playback and resumes on release. The thumb is hidden by default and
@@ -411,14 +406,7 @@ type AudioPlayerSpeedProps = useRender.ComponentProps<'button'> & {
411
406
  */
412
407
  variant?: 'default' | 'ghost';
413
408
  };
414
- declare function AudioPlayerSpeed({
415
- speeds,
416
- variant,
417
- render,
418
- onClick,
419
- className,
420
- ...props
421
- }: AudioPlayerSpeedProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
409
+ declare const AudioPlayerSpeed: React.ForwardRefExoticComponent<Omit<AudioPlayerSpeedProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
422
410
  /**
423
411
  * Skip button that seeks by a fixed number of seconds. The icon is selected
424
412
  * automatically from `offset`: `−10` → `Backward10`, `+10` → `Forward10`,
@@ -435,12 +423,7 @@ declare function AudioPlayerSpeed({
435
423
  type AudioPlayerSkipProps = useRender.ComponentProps<'button'> & {
436
424
  /** Seconds to seek (positive = forward, negative = back). Required. */offset: number;
437
425
  };
438
- declare function AudioPlayerSkip({
439
- offset,
440
- render,
441
- onClick,
442
- ...props
443
- }: AudioPlayerSkipProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
426
+ declare const AudioPlayerSkip: React.ForwardRefExoticComponent<Omit<AudioPlayerSkipProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
444
427
  type AudioPlayerManagerProps = {
445
428
  children: React.ReactNode;
446
429
  };
@@ -1288,6 +1271,24 @@ interface DataComboboxProps<T> {
1288
1271
  getItemLabel: (item: T) => string;
1289
1272
  /** Optional rich row content (icon, description, …). Defaults to `getItemLabel`. */
1290
1273
  renderItem?: (item: T) => React.ReactNode;
1274
+ /**
1275
+ * Optional custom render for a selected chip (multiple mode). Return the WHOLE
1276
+ * chip — a `ComboboxChip` element — so its appearance (`color`/`tone`, content)
1277
+ * is fully yours, e.g.
1278
+ * `item => <ComboboxChip color="blue" tone="light">{item.label}</ComboboxChip>`.
1279
+ * Defaults to a plain `ComboboxChip` with `getItemLabel`. (Unlike `renderItem`,
1280
+ * which returns only the row's inner content — the DS owns that `ComboboxItem`
1281
+ * for selection/keyboard — the chip is entirely consumer-owned here.)
1282
+ */
1283
+ renderChip?: (item: T) => React.ReactNode;
1284
+ /**
1285
+ * Groups items under headers. Return the group key an item belongs to; items
1286
+ * are grouped in first-seen order. When provided, the list renders grouped
1287
+ * sections. Pair with `getGroupLabel` for a custom header.
1288
+ */
1289
+ getGroupKey?: (item: T) => string;
1290
+ /** Maps a group key to its header label. Defaults to the group key. */
1291
+ getGroupLabel?: (groupKey: string) => React.ReactNode;
1291
1292
  /**
1292
1293
  * `'single'` (default) selects one item; `'multiple'` selects many and renders
1293
1294
  * them as removable chips above the input.
@@ -1299,6 +1300,13 @@ interface DataComboboxProps<T> {
1299
1300
  defaultSelectedKeys?: Set<string>;
1300
1301
  /** Called with the new set of selected keys whenever selection changes. */
1301
1302
  onSelectionChange?: (keys: Set<string>) => void;
1303
+ /**
1304
+ * Called when the dropdown opens (`true`) or closes (`false`). Use the
1305
+ * `false` edge to commit a deferred action — e.g. a table filter that should
1306
+ * only run once the user is done picking, not on every checkbox toggle:
1307
+ * keep the live selection in `onSelectionChange` and apply it here on close.
1308
+ */
1309
+ onOpenChange?: (open: boolean) => void;
1302
1310
  /**
1303
1311
  * Known selected items used to seed the label cache, so a selected key whose
1304
1312
  * item is NOT in the current `items` (e.g. a saved form value not yet fetched,
@@ -1312,9 +1320,20 @@ interface DataComboboxProps<T> {
1312
1320
  /** Number of skeleton rows shown while `loadingState` is `'loading'`. */
1313
1321
  skeletonCount?: number;
1314
1322
  /**
1315
- * Called (debounce it yourself) when the user types — the query to filter/fetch
1316
- * against. When provided, the combobox does NOT filter internally: feed it the
1317
- * matching `items` and set `loadingState='filtering'` while the query runs.
1323
+ * Enables SERVER-side search. When omitted, the combobox filters the provided
1324
+ * `items` client-side as you type (Base UI's built-in filter) — ideal for a
1325
+ * fixed list. When provided, internal filtering is turned off and this is
1326
+ * called (debounce it yourself) with the query: feed the matching `items` and
1327
+ * set `loadingState='filtering'` while the fetch runs.
1328
+ *
1329
+ * Prefer this for any PAGINATED list: while `onFetchMore`+`hasMore` are active
1330
+ * client-side filtering is disabled (it only sees loaded pages and would break
1331
+ * infinite scroll), so a searchable paginated list must search server-side.
1332
+ *
1333
+ * Called with `''` when the query is cleared — including the automatic clear
1334
+ * after a selection (multi keeps the popup open) and the input's clear button.
1335
+ * Treat `''` as "no query": return the initial, unfiltered list. Otherwise the
1336
+ * results stay stuck on the last search with no way back to the full list.
1318
1337
  */
1319
1338
  onSearch?: (query: string) => void;
1320
1339
  /** Called when the user scrolls near the bottom of the list; fetch the next page. */
@@ -1331,12 +1350,26 @@ interface DataComboboxProps<T> {
1331
1350
  * already hold `selectedKeys`), e.g. a count on a "Created by" filter button.
1332
1351
  */
1333
1352
  trigger?: React.ReactElement;
1353
+ /**
1354
+ * Whether the dropdown shows a search input. Default `true`. Set `false` for a
1355
+ * short pick-list that doesn't need typeahead (e.g. a "Status" filter): with a
1356
+ * `trigger`, the overlay renders just the list (no search box); keyboard nav
1357
+ * and selection still work. Ignored without a `trigger` (the inline field IS
1358
+ * the input / chips).
1359
+ */
1360
+ searchable?: boolean;
1334
1361
  /** Placeholder for the input (single / overlay search) or chips input (multiple). */
1335
1362
  placeholder?: string;
1336
1363
  /** Disables the whole combobox. */
1337
1364
  disabled?: boolean;
1338
1365
  /** Class applied to the visible field (the input, or the chips container). */
1339
1366
  className?: string;
1367
+ /**
1368
+ * Class applied to the dropdown popup (`ComboboxContent`). Overrides the default
1369
+ * `min-w-50` (200px) — e.g. `min-w-0` to hug the anchor, or `min-w-80` (320px)
1370
+ * for a wider menu.
1371
+ */
1372
+ contentClassName?: string;
1340
1373
  'aria-label'?: string;
1341
1374
  }
1342
1375
  declare function DataCombobox<T>(componentProps: DataCombobox.Props<T>): react_jsx_runtime0.JSX.Element;
package/dist/index.js CHANGED
@@ -765,7 +765,7 @@ function AudioPlayerRow({ variant = "default", className, children, ...props })
765
765
  })
766
766
  });
767
767
  }
768
- function AudioPlayerButton({ variant, render, onClick, ...props }) {
768
+ const AudioPlayerButton = React.forwardRef(function AudioPlayerButton({ variant, render, onClick, ...props }, forwardRef) {
769
769
  const rowCtx = React.useContext(AudioPlayerRowContext);
770
770
  const resolvedVariant = variant ?? rowCtx.variant;
771
771
  const { isPlaying, isEnded, isBuffering, activeItem, seek, play, toggle } = useAudioPlayer();
@@ -794,14 +794,15 @@ function AudioPlayerButton({ variant, render, onClick, ...props }) {
794
794
  "data-state": showPause ? "playing" : showReplay ? "ended" : "idle",
795
795
  "aria-label": accessibleLabel,
796
796
  onClick: handleClick
797
- }, props),
797
+ }, { ref: forwardRef }, props),
798
798
  render: render ?? /* @__PURE__ */ jsx(Button, {
799
799
  variant: resolvedVariant,
800
800
  size: buttonSize,
801
801
  children: /* @__PURE__ */ jsx(Icon, {})
802
802
  })
803
803
  });
804
- }
804
+ });
805
+ AudioPlayerButton.displayName = "AudioPlayerButton";
805
806
  function AudioPlayerBar({ className, step = .25, playheadHeight, ...props }) {
806
807
  const { duration, seek, isPlaying, pause, play } = useAudioPlayer();
807
808
  const currentTime = useAudioPlayerTime();
@@ -967,7 +968,7 @@ const DEFAULT_SPEEDS = [
967
968
  2,
968
969
  .5
969
970
  ];
970
- function AudioPlayerSpeed({ speeds = DEFAULT_SPEEDS, variant, render, onClick, className, ...props }) {
971
+ const AudioPlayerSpeed = React.forwardRef(function AudioPlayerSpeed({ speeds = DEFAULT_SPEEDS, variant, render, onClick, className, ...props }, forwardRef) {
971
972
  const rowCtx = React.useContext(AudioPlayerRowContext);
972
973
  const resolvedVariant = variant ?? rowCtx.variant;
973
974
  const { playbackRate, setPlaybackRate } = useAudioPlayer();
@@ -986,20 +987,21 @@ function AudioPlayerSpeed({ speeds = DEFAULT_SPEEDS, variant, render, onClick, c
986
987
  "aria-label": `Playback speed: ${label}`,
987
988
  onClick: handleClick,
988
989
  className: cn("min-w-10 tabular-nums", className)
989
- }, props),
990
+ }, { ref: forwardRef }, props),
990
991
  render: render ?? /* @__PURE__ */ jsx(Button, {
991
992
  variant: "ghost",
992
993
  size: buttonSize,
993
994
  children: label
994
995
  })
995
996
  });
996
- }
997
+ });
998
+ AudioPlayerSpeed.displayName = "AudioPlayerSpeed";
997
999
  function pickSkipIcon(offset) {
998
1000
  if (offset === -10) return Backward10;
999
1001
  if (offset === 10) return Forward10;
1000
1002
  return offset < 0 ? Rewind : FastForward;
1001
1003
  }
1002
- function AudioPlayerSkip({ offset, render, onClick, ...props }) {
1004
+ const AudioPlayerSkip = React.forwardRef(function AudioPlayerSkip({ offset, render, onClick, ...props }, forwardRef) {
1003
1005
  const { seek, audioRef } = useAudioPlayer();
1004
1006
  const Icon = pickSkipIcon(offset);
1005
1007
  const label = `Skip ${offset < 0 ? "back" : "forward"} ${Math.abs(offset)} seconds`;
@@ -1015,14 +1017,15 @@ function AudioPlayerSkip({ offset, render, onClick, ...props }) {
1015
1017
  "data-slot": "audio-player-skip",
1016
1018
  "aria-label": label,
1017
1019
  onClick: handleClick
1018
- }, props),
1020
+ }, { ref: forwardRef }, props),
1019
1021
  render: render ?? /* @__PURE__ */ jsx(Button, {
1020
1022
  variant: "ghost",
1021
1023
  size: "icon",
1022
1024
  children: /* @__PURE__ */ jsx(Icon, {})
1023
1025
  })
1024
1026
  });
1025
- }
1027
+ });
1028
+ AudioPlayerSkip.displayName = "AudioPlayerSkip";
1026
1029
  /**
1027
1030
  * Optional coordination wrapper. Place it above multiple `<Audio>` instances to
1028
1031
  * ensure only one plays at a time — starting playback on any child automatically
@@ -2680,7 +2683,7 @@ const Textarea = React.forwardRef((componentProps, forwardRef) => {
2680
2683
  return /* @__PURE__ */ jsx("textarea", {
2681
2684
  ref: forwardRef,
2682
2685
  "data-slot": "textarea",
2683
- className: cn("border-input text-foreground placeholder:text-muted-foreground hover:border-ring hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-background px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm", className),
2686
+ className: cn("border-input text-foreground placeholder:text-muted-foreground hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-background px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm", className),
2684
2687
  ...props
2685
2688
  });
2686
2689
  });
@@ -3277,7 +3280,7 @@ function useFetchMoreSentinel(onFetchMore, getRoot, resetKey) {
3277
3280
  const DEFAULT_SKELETON_COUNT$1 = 5;
3278
3281
  const EMPTY_KEYS$1 = /* @__PURE__ */ new Set();
3279
3282
  function DataCombobox(componentProps) {
3280
- const { items, getItemValue, getItemLabel, renderItem, selectionMode = "single", selectedKeys, defaultSelectedKeys, onSelectionChange, selectedItems, disabledKeys, loadingState = "idle", skeletonCount = DEFAULT_SKELETON_COUNT$1, onSearch, onFetchMore, hasMore = false, emptyState, trigger, placeholder, disabled = false, className, "aria-label": ariaLabel } = componentProps;
3283
+ const { items, getItemValue, getItemLabel, renderItem, renderChip, getGroupKey, getGroupLabel, selectionMode = "single", selectedKeys, defaultSelectedKeys, onSelectionChange, onOpenChange, selectedItems, disabledKeys, loadingState = "idle", skeletonCount = DEFAULT_SKELETON_COUNT$1, onSearch, onFetchMore, hasMore = false, emptyState, trigger, searchable = true, placeholder, disabled = false, className, contentClassName, "aria-label": ariaLabel } = componentProps;
3281
3284
  const t = useDsTranslation("ds");
3282
3285
  const multiple = selectionMode === "multiple";
3283
3286
  const disabledKeySet = disabledKeys ?? EMPTY_KEYS$1;
@@ -3298,33 +3301,60 @@ function DataCombobox(componentProps) {
3298
3301
  }
3299
3302
  const commit = React.useCallback((objs) => setSelectionSet(new Set(objs.map(getItemValue))), [setSelectionSet, getItemValue]);
3300
3303
  const handleInputValueChange = onSearch ? (value, details) => {
3301
- if (details.reason === "input-change") onSearch(value);
3304
+ if (details.reason === "input-change" || details.reason === "input-clear" || details.reason === "clear-press") onSearch(value);
3302
3305
  } : void 0;
3303
3306
  const isInitialLoading = loadingState === "loading";
3304
3307
  const isFiltering = loadingState === "filtering";
3305
3308
  const isLoadingMore = loadingState === "loadingMore";
3309
+ const groups = React.useMemo(() => {
3310
+ if (!getGroupKey) return null;
3311
+ const byKey = /* @__PURE__ */ new Map();
3312
+ for (const item of items) {
3313
+ const gk = getGroupKey(item);
3314
+ const bucket = byKey.get(gk);
3315
+ if (bucket) bucket.push(item);
3316
+ else byKey.set(gk, [item]);
3317
+ }
3318
+ return Array.from(byKey, ([groupKey, groupItems]) => ({
3319
+ groupKey,
3320
+ label: getGroupLabel ? getGroupLabel(groupKey) : groupKey,
3321
+ items: groupItems
3322
+ }));
3323
+ }, [
3324
+ items,
3325
+ getGroupKey,
3326
+ getGroupLabel
3327
+ ]);
3328
+ const isGrouped = groups !== null;
3306
3329
  const sentinelRef = useFetchMoreSentinel(onFetchMore, (node) => node.closest("[data-slot=\"combobox-list\"]"), items.length);
3307
- const renderRow = (item, index) => {
3330
+ const lastRenderedItem = (groups?.at(-1)?.items ?? items).at(-1);
3331
+ const lastItemKey = lastRenderedItem ? getItemValue(lastRenderedItem) : void 0;
3332
+ const renderRow = (item) => {
3308
3333
  const key = getItemValue(item);
3309
- const attachSentinel = !!onFetchMore && hasMore && index === items.length - 1;
3334
+ const attachSentinel = !!onFetchMore && hasMore && key === lastItemKey;
3310
3335
  return /* @__PURE__ */ jsx(ComboboxItem, {
3311
3336
  value: item,
3312
3337
  disabled: disabledKeySet.has(key),
3313
3338
  ref: attachSentinel ? sentinelRef : void 0,
3339
+ "data-test": attachSentinel ? "fetch-sentinel" : void 0,
3314
3340
  children: renderItem ? renderItem(item) : getItemLabel(item)
3315
3341
  }, key);
3316
3342
  };
3343
+ const hasRows = items.length > 0;
3317
3344
  const popupBody = /* @__PURE__ */ jsxs("div", {
3318
- className: "relative",
3345
+ className: cn("relative", isFiltering && !hasRows && "min-h-24"),
3319
3346
  children: [isInitialLoading ? /* @__PURE__ */ jsx("div", {
3320
3347
  className: "p-1",
3321
3348
  children: /* @__PURE__ */ jsx(ComboboxSkeleton, { count: skeletonCount })
3322
3349
  }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3323
3350
  /* @__PURE__ */ jsx(ComboboxList, {
3324
3351
  "aria-label": ariaLabel,
3325
- children: renderRow
3352
+ children: isGrouped ? (group) => /* @__PURE__ */ jsxs(ComboboxGroup, {
3353
+ items: group.items,
3354
+ children: [/* @__PURE__ */ jsx(ComboboxLabel, { children: group.label }), /* @__PURE__ */ jsx(ComboboxCollection, { children: renderRow })]
3355
+ }, group.groupKey) : renderRow
3326
3356
  }),
3327
- /* @__PURE__ */ jsx(ComboboxEmpty, { children: emptyState ?? t("dataCombobox.noResults") }),
3357
+ isFiltering ? null : /* @__PURE__ */ jsx(ComboboxEmpty, { children: emptyState ?? t("dataCombobox.noResults") }),
3328
3358
  isLoadingMore ? /* @__PURE__ */ jsx(SpinnerRow, {}) : null
3329
3359
  ] }), isFiltering ? /* @__PURE__ */ jsx("div", {
3330
3360
  "data-slot": "combobox-loading-overlay",
@@ -3334,53 +3364,54 @@ function DataCombobox(componentProps) {
3334
3364
  });
3335
3365
  const chipsAnchor = useComboboxAnchor();
3336
3366
  const overlayLayout = trigger ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Combobox$1.Trigger, { render: trigger }), /* @__PURE__ */ jsxs(ComboboxContent, {
3337
- className: "min-w-[200px]",
3338
- children: [/* @__PURE__ */ jsx(ComboboxInput, {
3367
+ className: cn("min-w-50", contentClassName),
3368
+ children: [searchable ? /* @__PURE__ */ jsx(ComboboxInput, {
3339
3369
  showTrigger: false,
3340
- placeholder,
3341
- className: "h-8 [&_input]:h-8 [&_input]:py-1"
3342
- }), popupBody]
3370
+ placeholder
3371
+ }) : null, popupBody]
3343
3372
  })] }) : null;
3344
3373
  if (multiple) return /* @__PURE__ */ jsx(Combobox, {
3345
3374
  multiple: true,
3346
3375
  autoHighlight: true,
3347
- items,
3376
+ items: groups ?? items,
3348
3377
  disabled,
3349
- filter: null,
3378
+ filter: onSearch || onFetchMore && hasMore ? null : void 0,
3350
3379
  value: selectedObjects,
3351
3380
  onValueChange: commit,
3352
3381
  itemToStringValue: getItemValue,
3353
3382
  itemToStringLabel: getItemLabel,
3354
3383
  isItemEqualToValue: (a, b) => getItemValue(a) === getItemValue(b),
3355
3384
  onInputValueChange: handleInputValueChange,
3385
+ onOpenChange,
3356
3386
  children: trigger ? overlayLayout : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ComboboxChips, {
3357
3387
  ref: chipsAnchor,
3358
3388
  className,
3359
- children: /* @__PURE__ */ jsx(ComboboxValue, { children: (values) => /* @__PURE__ */ jsxs(Fragment, { children: [values.map((item) => /* @__PURE__ */ jsx(ComboboxChip, { children: getItemLabel(item) }, getItemValue(item))), /* @__PURE__ */ jsx(ComboboxChipsInput, { placeholder: keys.size === 0 ? placeholder : "" })] }) })
3389
+ children: /* @__PURE__ */ jsx(ComboboxValue, { children: (values) => /* @__PURE__ */ jsxs(Fragment, { children: [values.map((item) => renderChip ? /* @__PURE__ */ jsx(React.Fragment, { children: renderChip(item) }, getItemValue(item)) : /* @__PURE__ */ jsx(ComboboxChip, { children: getItemLabel(item) }, getItemValue(item))), /* @__PURE__ */ jsx(ComboboxChipsInput, { placeholder: keys.size === 0 ? placeholder : "" })] }) })
3360
3390
  }), /* @__PURE__ */ jsx(ComboboxContent, {
3361
3391
  anchor: chipsAnchor,
3362
- className: "min-w-[200px]",
3392
+ className: cn("min-w-50", contentClassName),
3363
3393
  children: popupBody
3364
3394
  })] })
3365
3395
  }, selectionMode);
3366
3396
  return /* @__PURE__ */ jsx(Combobox, {
3367
3397
  autoHighlight: true,
3368
- items,
3398
+ items: groups ?? items,
3369
3399
  disabled,
3370
- filter: null,
3400
+ filter: onSearch || onFetchMore && hasMore ? null : void 0,
3371
3401
  value: selectedObjects[0] ?? null,
3372
3402
  onValueChange: (next) => commit(next == null ? [] : [next]),
3373
3403
  itemToStringValue: getItemValue,
3374
3404
  itemToStringLabel: getItemLabel,
3375
3405
  isItemEqualToValue: (a, b) => getItemValue(a) === getItemValue(b),
3376
3406
  onInputValueChange: handleInputValueChange,
3407
+ onOpenChange,
3377
3408
  children: trigger ? overlayLayout : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ComboboxInput, {
3378
3409
  className,
3379
3410
  placeholder,
3380
3411
  disabled,
3381
3412
  showClear: true
3382
3413
  }), /* @__PURE__ */ jsx(ComboboxContent, {
3383
- className: "min-w-[200px]",
3414
+ className: cn("min-w-50", contentClassName),
3384
3415
  children: popupBody
3385
3416
  })] })
3386
3417
  }, selectionMode);
@@ -6130,7 +6161,7 @@ RadioGroupItem.displayName = "RadioGroupItem";
6130
6161
 
6131
6162
  //#endregion
6132
6163
  //#region src/components/select.tsx
6133
- const selectTriggerVariants = cva("flex w-fit items-center justify-between rounded-md border border-input bg-transparent py-2 text-sm whitespace-nowrap transition-colors outline-none select-none hover:border-ring focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
6164
+ const selectTriggerVariants = cva("flex w-fit items-center justify-between rounded-md border border-input bg-transparent py-2 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
6134
6165
  variants: { size: {
6135
6166
  default: "h-10 gap-2 px-3",
6136
6167
  sm: "h-8 gap-1.5 px-2"
@@ -6346,7 +6377,7 @@ const SheetTitle = React.forwardRef((componentProps, forwardRef) => {
6346
6377
  return /* @__PURE__ */ jsx(Dialog$1.Title, {
6347
6378
  ref: forwardRef,
6348
6379
  "data-slot": "sheet-title",
6349
- className: cn("font-medium text-foreground", className),
6380
+ className: cn("text-base font-medium text-foreground", className),
6350
6381
  ...props
6351
6382
  });
6352
6383
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [