@box/blueprint-web 8.5.1 → 8.5.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.
@@ -1,7 +1,8 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type CellProps } from './cell';
3
- export interface ActionCellProps extends Omit<CellProps, 'variant'> {
3
+ export interface ActionCellProps extends Omit<CellProps, 'variant' | 'children'> {
4
4
  loading?: boolean;
5
+ children: (onOpenChange: (isOpen: boolean) => void) => ReactNode;
5
6
  }
6
7
  /**
7
8
  * `ActionCell` should be used in place of `Cell` component when you intend to use Dropdown component inside.
@@ -9,6 +10,4 @@ export interface ActionCellProps extends Omit<CellProps, 'variant'> {
9
10
  * It provides additional `onOpenChange` via children render prop, that you should use to sync Dropdown's open state with ActionCell.
10
11
  * This ensures that showing/hiding of actions works properly.
11
12
  */
12
- export declare const ActionCell: import("react").ForwardRefExoticComponent<ActionCellProps & {
13
- children: (onOpenChange: (isOpen: boolean) => void) => ReactNode;
14
- } & import("react").RefAttributes<HTMLTableCellElement>>;
13
+ export declare const ActionCell: import("react").ForwardRefExoticComponent<ActionCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
@@ -20,8 +20,6 @@ export declare const TableHeader: <T extends object>(props: TableHeaderProps<T>
20
20
  export declare const Row: <T extends object>(props: RowProps<T> & {
21
21
  ref?: import("react").ForwardedRef<HTMLTableRowElement> | undefined;
22
22
  }) => import("react/jsx-runtime").JSX.Element;
23
- export declare const ActionCell: import("react").ForwardRefExoticComponent<import("./cell/action-cell").ActionCellProps & {
24
- children: (onOpenChange: (isOpen: boolean) => void) => import("react").ReactNode;
25
- } & import("react").RefAttributes<HTMLTableCellElement>>;
23
+ export declare const ActionCell: import("react").ForwardRefExoticComponent<import("./cell/action-cell").ActionCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
26
24
  export declare const DropIndicator: import("react").ForwardRefExoticComponent<import("react-aria-components").DropIndicatorProps & import("react").RefAttributes<HTMLElement>>;
27
25
  export type { RowProps, ColumnProps, TableProps, TableBodyProps, TableHeaderProps };
@@ -20,8 +20,6 @@ export declare const TableHeader: <T extends object>(props: TableHeaderProps<T>
20
20
  export declare const Row: <T extends object>(props: RowProps<T> & {
21
21
  ref?: import("react").ForwardedRef<HTMLTableRowElement> | undefined;
22
22
  }) => import("react/jsx-runtime").JSX.Element;
23
- export declare const ActionCell: import("react").ForwardRefExoticComponent<import("./cell/action-cell").ActionCellProps & {
24
- children: (onOpenChange: (isOpen: boolean) => void) => import("react").ReactNode;
25
- } & import("react").RefAttributes<HTMLTableCellElement>>;
23
+ export declare const ActionCell: import("react").ForwardRefExoticComponent<import("./cell/action-cell").ActionCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
26
24
  export declare const DropIndicator: import("react").ForwardRefExoticComponent<import("react-aria-components").DropIndicatorProps & import("react").RefAttributes<HTMLElement>>;
27
25
  export type { RowProps, ColumnProps, TableProps, TableBodyProps, TableHeaderProps };
@@ -14,6 +14,7 @@ export interface BaseButtonInterface extends AriakitButtonProps {
14
14
  size?: 'small' | 'large';
15
15
  }
16
16
  export type BaseButtonProps = BaseButtonInterface & RequireAllOrNone<Loading, keyof Loading>;
17
+ export type BaseButtonPropsAll = BaseButtonInterface & Required<Loading>;
17
18
  export type BaseButtonLabelProps = ComponentPropsWithRef<'span'> & {
18
19
  children: string | string[];
19
20
  };
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  /** Provides a container for Chips, this component handles keyboard navigation and chips selection state */
3
- export declare const ChipsGroup: import("react").ForwardRefExoticComponent<(Omit<import("./types").ChipsGroupSingleProps & import("react").RefAttributes<HTMLDivElement> & {
4
- name: string;
5
- }, "ref"> | Omit<import("./types").ChipsGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
6
- name: string;
7
- }, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const ChipsGroup: import("react").ForwardRefExoticComponent<(Omit<import("./types").SingleProps, "ref"> | Omit<import("./types").MultiProps, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
@@ -11,8 +11,4 @@ export type FilterChipGroupProps = ChipsGroupProps;
11
11
  * Container for FilterChips, this component handles keyboard navigation and chips selection state.
12
12
  * Based on [Radix ToggleGroup](https://www.radix-ui.com/docs/primitives/components/toggle-group)
13
13
  */
14
- export declare const FilterChipGroup: import("react").ForwardRefExoticComponent<(Omit<import("../types").ChipsGroupSingleProps & import("react").RefAttributes<HTMLDivElement> & {
15
- name: string;
16
- }, "ref"> | Omit<import("../types").ChipsGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
17
- name: string;
18
- }, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
14
+ export declare const FilterChipGroup: import("react").ForwardRefExoticComponent<(Omit<import("../types").SingleProps, "ref"> | Omit<import("../types").MultiProps, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
@@ -2,11 +2,7 @@
2
2
  export declare const FilterChip: {
3
3
  Chip: import("react").ForwardRefExoticComponent<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  ChipButton: import("react").ForwardRefExoticComponent<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- Group: import("react").ForwardRefExoticComponent<(Omit<import("../types").ChipsGroupSingleProps & import("react").RefAttributes<HTMLDivElement> & {
6
- name: string;
7
- }, "ref"> | Omit<import("../types").ChipsGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
8
- name: string;
9
- }, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
5
+ Group: import("react").ForwardRefExoticComponent<(Omit<import("../types").SingleProps, "ref"> | Omit<import("../types").MultiProps, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
10
6
  Label: import("react").ForwardRefExoticComponent<Omit<import("../types").ChipLabelProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
11
7
  Icon: import("react").ForwardRefExoticComponent<import("../types").ChipIconProps & import("react").RefAttributes<SVGSVGElement>>;
12
8
  Status: import("react").ForwardRefExoticComponent<Omit<import("../types").ChipStatusProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -10,7 +10,9 @@ type SharedChipsGroupProps = React.RefAttributes<HTMLDivElement> & {
10
10
  /** The name of the group. Submitted with its owning form as part of a name/value pair. */
11
11
  name: string;
12
12
  };
13
- export type ChipsGroupProps = (ChipsGroupSingleProps & SharedChipsGroupProps) | (ChipsGroupMultipleProps & SharedChipsGroupProps);
13
+ export type SingleProps = ChipsGroupSingleProps & SharedChipsGroupProps;
14
+ export type MultiProps = ChipsGroupMultipleProps & SharedChipsGroupProps;
15
+ export type ChipsGroupProps = SingleProps | MultiProps;
14
16
  export type ChipProps = ToggleGroup.ToggleGroupItemProps;
15
17
  export interface ChipIconProps {
16
18
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "8.5.1",
3
+ "version": "8.5.2",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -63,7 +63,7 @@
63
63
  "react-stately": "^3.31.1",
64
64
  "tsx": "^4.16.5"
65
65
  },
66
- "gitHead": "9a31f96840eac8c8375a838e1e263e80717cd16f",
66
+ "gitHead": "6aca748ad995a1a02df2af9feacf9806e53544de",
67
67
  "module": "lib-esm/index.js",
68
68
  "main": "lib-esm/index.js",
69
69
  "exports": {