@ngrr/ds 0.1.7 → 0.1.9

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.
@@ -20,13 +20,14 @@ export interface DataTableHeaderCellProps {
20
20
  onReorderCommand?: (direction: DataTableHeaderReorderDirection) => void;
21
21
  onResizeCommand?: (direction: DataTableHeaderResizeDirection) => void;
22
22
  onResizePointerDown?: React.PointerEventHandler<HTMLButtonElement>;
23
- onReorderDragStart?: React.DragEventHandler<HTMLButtonElement>;
24
- onReorderDragEnd?: React.DragEventHandler<HTMLButtonElement>;
23
+ onMoreClick?: React.MouseEventHandler<HTMLButtonElement>;
24
+ onReorderDragStart?: React.DragEventHandler<HTMLElement>;
25
+ onReorderDragEnd?: React.DragEventHandler<HTMLElement>;
25
26
  filterValue?: string;
26
27
  onFilterChange?: (value: string) => void;
27
28
  leadingAccessory?: React.ReactNode;
28
29
  className?: string;
29
30
  'aria-label'?: string;
30
31
  }
31
- export declare function DataTableHeaderCell({ variant, state, label, width, sortable, sortDirection, reorderable, resizable, checkboxChecked, checkboxIndeterminate, onCheckboxChange, onSortChange, onReorderCommand, onResizeCommand, onResizePointerDown, onReorderDragStart, onReorderDragEnd, filterValue: _filterValue, onFilterChange: _onFilterChange, leadingAccessory, className, 'aria-label': ariaLabel, }: DataTableHeaderCellProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function DataTableHeaderCell({ variant, state, label, width, sortable, sortDirection, reorderable, resizable, checkboxChecked, checkboxIndeterminate, onCheckboxChange, onSortChange, onReorderCommand, onResizeCommand, onResizePointerDown, onMoreClick, onReorderDragStart, onReorderDragEnd, filterValue: _filterValue, onFilterChange: _onFilterChange, leadingAccessory, className, 'aria-label': ariaLabel, }: DataTableHeaderCellProps): import("react/jsx-runtime").JSX.Element;
32
33
  export default DataTableHeaderCell;
@@ -1,6 +1,5 @@
1
1
  import { LucideIcon } from 'lucide-react';
2
2
  export type TagVariant = 'highlight' | 'warning' | 'error' | 'success' | 'neutral';
3
- export type TagSize = 'md' | 'sm';
4
3
  export interface TagProps {
5
4
  /**
6
5
  * The text label displayed inside the tag.
@@ -18,24 +17,15 @@ export interface TagProps {
18
17
  */
19
18
  variant?: TagVariant;
20
19
  /**
21
- * Visual size.
22
- * - `md` default; use in most contexts
23
- * - `sm` — dense layouts, tight rows, or when multiple tags appear per item
24
- * @default 'md'
20
+ * Optional Lucide icon shown to the left of the label.
21
+ * Pass the component reference: `iconLeft={Star}` ✓ `iconLeft={<Star />}`
25
22
  */
26
- size?: TagSize;
23
+ iconLeft?: LucideIcon;
27
24
  /**
28
- * Replaces the default diamond indicator with any Lucide icon.
29
- * Pass the component reference, not a rendered element:
30
- * `icon={Star}` ✓ `icon={<Star />}` ✗
31
- * When omitted the built-in CSS diamond shape is rendered.
25
+ * Optional Lucide icon shown to the right of the label.
26
+ * Pass the component reference: `iconRight={X}` ✓ `iconRight={<X />}`
32
27
  */
33
- icon?: LucideIcon;
34
- /**
35
- * When `false`, the icon (default diamond or custom) is hidden and only the
36
- * label text is shown. Defaults to `true`.
37
- */
38
- showIcon?: boolean;
28
+ iconRight?: LucideIcon;
39
29
  /** Additional CSS class names merged onto the root element. */
40
30
  className?: string;
41
31
  /**
@@ -47,4 +37,4 @@ export interface TagProps {
47
37
  */
48
38
  'aria-label'?: string;
49
39
  }
50
- export declare function Tag({ label, variant, size, icon, showIcon, className, 'aria-label': ariaLabel, }: TagProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function Tag({ label, variant, iconLeft, iconRight, className, 'aria-label': ariaLabel, }: TagProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { Tag } from './Tag';
2
- export type { TagProps, TagVariant, TagSize } from './Tag';
2
+ export type { TagProps, TagVariant } from './Tag';