@aircall/ds 0.35.1 → 0.35.4

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.
@@ -156,7 +156,8 @@ const de = {
156
156
  "pagination.previous": "Zurück",
157
157
  "pagination.next": "Weiter",
158
158
  "actionBar.clearSelection": "Auswahl aufheben",
159
- "actionBar.itemsSelected": "{{count}} Elemente ausgewählt.",
159
+ "actionBar.itemsSelected": "{{count}} Element ausgewählt.",
160
+ "actionBar.itemsSelected_plural": "{{count}} Elemente ausgewählt.",
160
161
  "fieldLabel.required": "(erforderlich)",
161
162
  "fieldLabel.optional": "(optional)",
162
163
  "fieldLabel.moreInfo": "Weitere Informationen",
@@ -204,7 +205,8 @@ const en = {
204
205
  "pagination.previous": "Previous",
205
206
  "pagination.next": "Next",
206
207
  "actionBar.clearSelection": "Clear selection",
207
- "actionBar.itemsSelected": "{{count}} items selected.",
208
+ "actionBar.itemsSelected": "{{count}} item selected.",
209
+ "actionBar.itemsSelected_plural": "{{count}} items selected.",
208
210
  "fieldLabel.required": "(required)",
209
211
  "fieldLabel.optional": "(optional)",
210
212
  "fieldLabel.moreInfo": "More information",
@@ -252,7 +254,8 @@ const es = {
252
254
  "pagination.previous": "Anterior",
253
255
  "pagination.next": "Siguiente",
254
256
  "actionBar.clearSelection": "Borrar selección",
255
- "actionBar.itemsSelected": "{{count}} elementos seleccionados.",
257
+ "actionBar.itemsSelected": "{{count}} elemento seleccionado.",
258
+ "actionBar.itemsSelected_plural": "{{count}} elementos seleccionados.",
256
259
  "fieldLabel.required": "(obligatorio)",
257
260
  "fieldLabel.optional": "(opcional)",
258
261
  "fieldLabel.moreInfo": "Más información",
@@ -300,7 +303,8 @@ const fr = {
300
303
  "pagination.previous": "Précédent",
301
304
  "pagination.next": "Suivant",
302
305
  "actionBar.clearSelection": "Effacer la sélection",
303
- "actionBar.itemsSelected": "{{count}} éléments sélectionnés.",
306
+ "actionBar.itemsSelected": "{{count}} élément sélectionné.",
307
+ "actionBar.itemsSelected_plural": "{{count}} éléments sélectionnés.",
304
308
  "fieldLabel.required": "(obligatoire)",
305
309
  "fieldLabel.optional": "(facultatif)",
306
310
  "fieldLabel.moreInfo": "Plus d'informations",
@@ -348,7 +352,8 @@ const it = {
348
352
  "pagination.previous": "Precedente",
349
353
  "pagination.next": "Successivo",
350
354
  "actionBar.clearSelection": "Cancella selezione",
351
- "actionBar.itemsSelected": "{{count}} elementi selezionati.",
355
+ "actionBar.itemsSelected": "{{count}} elemento selezionato.",
356
+ "actionBar.itemsSelected_plural": "{{count}} elementi selezionati.",
352
357
  "fieldLabel.required": "(obbligatorio)",
353
358
  "fieldLabel.optional": "(facoltativo)",
354
359
  "fieldLabel.moreInfo": "Maggiori informazioni",
@@ -404,6 +409,7 @@ dsI18n.init({
404
409
  de: { ds: de },
405
410
  it: { ds: it }
406
411
  },
412
+ compatibilityJSON: "v3",
407
413
  interpolation: { escapeValue: false },
408
414
  keySeparator: false,
409
415
  returnNull: false,
@@ -428,6 +434,7 @@ function getLanguageSnapshot() {
428
434
  * Used by @aircall/ds and @aircall/blocks components only — not part of the consumer contract.
429
435
  */
430
436
  function useDsTranslation(ns) {
437
+ "use no memo";
431
438
  const language = useSyncExternalStore(subscribe, getLanguageSnapshot, getLanguageSnapshot);
432
439
  return useCallback((key, opts) => dsI18n.t(key, {
433
440
  ns,
@@ -1,2 +1,2 @@
1
- import { t as DataTable } from "./data-table-DZGquwTZ.js";
1
+ import { t as DataTable } from "./data-table-C_8IrmFW.js";
2
2
  export { DataTable };
package/dist/index.d.ts CHANGED
@@ -720,7 +720,7 @@ declare namespace AlertAction {
720
720
  */
721
721
  type AttachmentState = 'idle' | 'uploading' | 'processing' | 'error' | 'done';
722
722
  declare const attachmentVariants: (props?: ({
723
- size?: "default" | "xs" | "sm" | null | undefined;
723
+ size?: "default" | "sm" | "xs" | null | undefined;
724
724
  orientation?: "horizontal" | "vertical" | null | undefined;
725
725
  block?: boolean | null | undefined;
726
726
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -4767,7 +4767,7 @@ declare namespace ItemSeparator {
4767
4767
  }
4768
4768
  declare const itemVariants: (props?: ({
4769
4769
  variant?: "default" | "outline" | "muted" | null | undefined;
4770
- size?: "default" | "xs" | "sm" | null | undefined;
4770
+ size?: "default" | "sm" | "xs" | null | undefined;
4771
4771
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4772
4772
  /**
4773
4773
  * Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
@@ -6646,7 +6646,7 @@ declare function useDsLocale(): string;
6646
6646
  //#endregion
6647
6647
  //#region src/i18n/keys.d.ts
6648
6648
  /** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
6649
- type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'dataCombobox.noResults' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'multiselect.addItem' | 'multiselect.search' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder' | 'richTextarea.noResults' | 'richTextarea.slashNoCommands' | 'richTextarea.bold' | 'richTextarea.italic' | 'richTextarea.underline' | 'richTextarea.strikethrough' | 'richTextarea.inlineCode' | 'richTextarea.bulletedList' | 'richTextarea.numberedList' | 'richTextarea.link' | 'richTextarea.linkPlaceholder' | 'richTextarea.linkText' | 'richTextarea.linkEdit' | 'richTextarea.linkOpen' | 'richTextarea.linkRemove';
6649
+ type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'dataCombobox.noResults' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'multiselect.addItem' | 'multiselect.search' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'actionBar.itemsSelected_plural' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder' | 'richTextarea.noResults' | 'richTextarea.slashNoCommands' | 'richTextarea.bold' | 'richTextarea.italic' | 'richTextarea.underline' | 'richTextarea.strikethrough' | 'richTextarea.inlineCode' | 'richTextarea.bulletedList' | 'richTextarea.numberedList' | 'richTextarea.link' | 'richTextarea.linkPlaceholder' | 'richTextarea.linkText' | 'richTextarea.linkEdit' | 'richTextarea.linkOpen' | 'richTextarea.linkRemove';
6650
6650
  /** A complete set of translations for one language. Missing a key is a compile error. */
6651
6651
  type DsLocale = Record<DsI18nKey, string>;
6652
6652
  //#endregion
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Button, E as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-DZGquwTZ.js";
1
+ import { C as Button, E as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-C_8IrmFW.js";
2
2
  import * as React from "react";
3
3
  import { createContext, useContext, useSyncExternalStore } from "react";
4
4
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
@@ -3451,6 +3451,7 @@ function ComboboxLoadedRows(componentProps) {
3451
3451
  * meaningless when only a window is mounted.
3452
3452
  */
3453
3453
  function ComboboxVirtualRows(componentProps) {
3454
+ "use no memo";
3454
3455
  const { getItemValue, getItemLabel, renderItem, disabledKeys, estimateRowHeight, sentinelRef, showFetchSentinel, scrollRowIntoViewRef } = componentProps;
3455
3456
  const filteredItems = Combobox$1.useFilteredItems();
3456
3457
  const [spacerElement, setSpacerElement] = React.useState(null);
@@ -5731,6 +5732,7 @@ const ARIA_MAX_STATIC = {
5731
5732
  * (in locale order) plus separators, validity state, and imperative helpers.
5732
5733
  */
5733
5734
  function useSegmentedDate(options) {
5735
+ "use no memo";
5734
5736
  const { mask, value: externalValue, onCommit, onEscape, onOpenRequest, onAnnounce, locale = "en-US", minDate, maxDate, disabled = false, invalid: consumerInvalid = false, isDateBlocked, onReject, getCrossClampDay, isCrossoverRejected, onCrossoverReject } = options;
5735
5737
  const { segmentOrder, separators } = mask;
5736
5738
  const yearMin = minDate ? minDate.getFullYear() : ARIA_MIN.year;
@@ -6448,6 +6450,7 @@ function formatDateForInput(date) {
6448
6450
  * ```
6449
6451
  */
6450
6452
  const DatePicker = React.forwardRef((componentProps, forwardRef) => {
6453
+ "use no memo";
6451
6454
  const { className, mode = "single", locale, disabled = false, invalid = false, disabledDates, minDate: minDateProp, maxDate: maxDateProp, captionLayout, open: openProp, onOpenChange, footer, triggerClassName, id, name, "data-testid": dataTestId = "date-picker-input", onValueChange, onRangeChange, ...rest } = componentProps;
6452
6455
  const { value: _v, defaultValue: _dv, predefinedRanges: _pr, "data-testid-to": dataTestIdTo = "date-picker-input-to", ...props } = rest;
6453
6456
  const dsLocale = useDsLocale();
@@ -11737,8 +11740,10 @@ const SidebarProvider = React.forwardRef((componentProps, forwardRef) => {
11737
11740
  const openState = typeof value === "function" ? value(open) : value;
11738
11741
  if (setOpenProp) setOpenProp(openState);
11739
11742
  else _setOpen(openState);
11740
- document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
11741
11743
  }, [setOpenProp, open]);
11744
+ React.useEffect(() => {
11745
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
11746
+ }, [open]);
11742
11747
  const toggleSidebar = React.useCallback(() => {
11743
11748
  return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
11744
11749
  }, [
@@ -12541,7 +12546,7 @@ const Tabs = React.forwardRef((componentProps, forwardRef) => {
12541
12546
  return /* @__PURE__ */ jsx(Tabs$1.Root, {
12542
12547
  ref: forwardRef,
12543
12548
  "data-slot": "tabs",
12544
- "data-orientation": orientation,
12549
+ orientation,
12545
12550
  className: cn("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col", className),
12546
12551
  ...props
12547
12552
  });
@@ -12643,7 +12648,7 @@ ToggleGroup.displayName = "ToggleGroup";
12643
12648
  * Renders a `<button aria-pressed>` that inherits `variant` and `size` from the group context.
12644
12649
  */
12645
12650
  const ToggleGroupItem = React.forwardRef((componentProps, forwardRef) => {
12646
- const { className, children, variant = "default", size = "default", ...props } = componentProps;
12651
+ const { className, children, variant = "default", size = "default", pressedColor, ...props } = componentProps;
12647
12652
  const context = React.useContext(ToggleGroupContext);
12648
12653
  return /* @__PURE__ */ jsx(Toggle$1, {
12649
12654
  ref: forwardRef,
@@ -12653,7 +12658,8 @@ const ToggleGroupItem = React.forwardRef((componentProps, forwardRef) => {
12653
12658
  "data-spacing": context.spacing,
12654
12659
  className: cn("shrink-0 text-foreground group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none group-data-[spacing=0]/toggle-group:border group-data-[spacing=0]/toggle-group:border-input focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:border-t group-data-[block=true]/toggle-group:flex-1", toggleVariants({
12655
12660
  variant: context.variant || variant,
12656
- size: context.size || size
12661
+ size: context.size || size,
12662
+ pressedColor
12657
12663
  }), className),
12658
12664
  ...props,
12659
12665
  children
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.35.1",
3
+ "version": "0.35.4",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [