@aircall/ds 0.50.2 → 0.51.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.
package/dist/index.d.ts CHANGED
@@ -98,7 +98,7 @@ declare namespace AccordionContent {
98
98
  /** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
99
99
  declare const buttonVariants: (props?: ({
100
100
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
101
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
101
+ size?: "default" | "sm" | "icon" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
102
102
  block?: boolean | null | undefined;
103
103
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
104
104
  /**
@@ -995,8 +995,8 @@ declare namespace CounterBadge {
995
995
  /** `cva` recipe for the Badge/Chip container — drives the `size`, `color`, and `tone` classes. */
996
996
  declare const badgeVariants: (props?: ({
997
997
  size?: "default" | "lg" | null | undefined;
998
- color?: "charcoal" | "red" | "green" | "blue" | "purple" | "yellow" | "pink" | null | undefined;
999
- tone?: "dark" | "medium-dark" | "medium-light" | "light" | null | undefined;
998
+ color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
999
+ tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
1000
1000
  overflowMode?: "none" | "truncate" | null | undefined;
1001
1001
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1002
1002
  type BadgeVariants = VariantProps<typeof badgeVariants>;
@@ -6095,6 +6095,11 @@ interface SheetContentProps extends Dialog$1.Popup.Props, Pick<Dialog$1.Portal.P
6095
6095
  * @default true
6096
6096
  */
6097
6097
  showCloseButton?: boolean;
6098
+ /**
6099
+ * Dim and blur the backdrop behind the sheet. Set to `false` for a clear background.
6100
+ * @default true
6101
+ */
6102
+ showOverlay?: boolean;
6098
6103
  }
6099
6104
  declare namespace SheetContent {
6100
6105
  type Props = SheetContentProps;
package/dist/index.js CHANGED
@@ -13007,6 +13007,7 @@ const _excluded2$3 = [
13007
13007
  "children",
13008
13008
  "side",
13009
13009
  "showCloseButton",
13010
+ "showOverlay",
13010
13011
  "container"
13011
13012
  ];
13012
13013
  const _excluded3$3 = ["className"];
@@ -13074,10 +13075,10 @@ SheetOverlay.displayName = "SheetOverlay";
13074
13075
  * `<div>` popup fixed to the chosen screen edge, optionally with a close button.
13075
13076
  */
13076
13077
  const SheetContent = React.forwardRef((componentProps, forwardRef) => {
13077
- const { className, children, side = "right", showCloseButton = true, container } = componentProps, props = _objectWithoutProperties(componentProps, _excluded2$3);
13078
+ const { className, children, side = "right", showCloseButton = true, showOverlay = true, container } = componentProps, props = _objectWithoutProperties(componentProps, _excluded2$3);
13078
13079
  return /* @__PURE__ */ jsxs(SheetPortal, {
13079
13080
  container,
13080
- children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(Dialog$1.Popup, _objectSpread2(_objectSpread2({
13081
+ children: [/* @__PURE__ */ jsx(SheetOverlay, { className: showOverlay ? void 0 : "bg-transparent supports-backdrop-filter:backdrop-blur-none" }), /* @__PURE__ */ jsxs(Dialog$1.Popup, _objectSpread2(_objectSpread2({
13081
13082
  ref: forwardRef,
13082
13083
  "data-slot": "sheet-content",
13083
13084
  "data-side": side,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.50.2",
3
+ "version": "0.51.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [