@epilot/volt-ui 1.1.22 → 1.1.24

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,9 @@
1
1
  import type { ComponentProps, ReactNode } from "react";
2
2
  import { DropdownMenu } from "../../components/dropdown-menu/dropdown-menu";
3
3
  export type DataTableColumnVisibilityProps = {
4
- /** Custom trigger element. Defaults to a sliders icon button. */
4
+ /** Custom icon for the default trigger button. Falls back to settings gear icon. */
5
+ icon?: ReactNode;
6
+ /** Custom trigger element. Defaults to a settings icon button. */
5
7
  trigger?: ReactNode;
6
8
  /** Label shown at top of dropdown and as screen reader text for default trigger. Required for i18n. */
7
9
  label: string;
@@ -15,7 +17,7 @@ export type DataTableColumnVisibilityProps = {
15
17
  * Shows checkboxes for each column that can be hidden.
16
18
  * Place in DataTableToolbar for consistent layout.
17
19
  */
18
- declare function DataTableColumnVisibility({ trigger, label, contentClassName, align, ...props }: DataTableColumnVisibilityProps): import("react/jsx-runtime").JSX.Element | null;
20
+ declare function DataTableColumnVisibility({ icon, trigger, label, contentClassName, align, ...props }: DataTableColumnVisibilityProps): import("react/jsx-runtime").JSX.Element | null;
19
21
  declare namespace DataTableColumnVisibility {
20
22
  var displayName: string;
21
23
  }