hubbi-ui 1.2.3 → 1.2.5

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.
@@ -13,6 +13,7 @@ export * from './navigation';
13
13
  export * from './popover';
14
14
  export * from './radio';
15
15
  export * from './selector';
16
+ export * from './selectorMultiple';
16
17
  export * from './sheets';
17
18
  export * from './sidebar';
18
19
  export * from './spinner';
@@ -0,0 +1 @@
1
+ export { SelectorMultiple } from './selectorMultiple';
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { SelectorMultiple } from './selectorMultiple';
3
+ declare const meta: Meta<typeof SelectorMultiple>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SelectorMultiple>;
6
+ export declare const Default: Story;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface Option {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ interface SelectorMultipleProps {
7
+ value: string[];
8
+ onChange: (value: string[]) => void;
9
+ options: Option[];
10
+ label?: string;
11
+ fullWidth?: boolean;
12
+ placeholder?: string;
13
+ }
14
+ export declare const SelectorMultiple: React.FC<SelectorMultipleProps>;
15
+ export {};
@@ -1 +1,2 @@
1
1
  export { Sheets } from './sheets';
2
+ export type { SortDirection, ColumnConfig } from './sheetsheader';
@@ -4,3 +4,5 @@ export default meta;
4
4
  type Story = StoryObj;
5
5
  export declare const Default: Story;
6
6
  export declare const WithCheckboxes: Story;
7
+ export declare const WithSorting: Story;
8
+ export declare const WithSortingAndCheckboxes: Story;
@@ -1,8 +1,17 @@
1
+ export type SortDirection = "asc" | "desc" | null;
2
+ export interface ColumnConfig {
3
+ label: string;
4
+ sortable?: boolean;
5
+ sortKey?: string;
6
+ }
1
7
  interface SheetsHeaderProps {
2
- columns: string[];
8
+ columns: (string | ColumnConfig)[];
3
9
  showCheckbox?: boolean;
4
10
  allSelected?: boolean;
5
11
  onSelectAll?: (selected: boolean) => void;
12
+ onSort?: (sortKey: string, direction: SortDirection) => void;
13
+ currentSortKey?: string;
14
+ currentSortDirection?: SortDirection;
6
15
  }
7
- export declare const SheetsHeader: ({ columns, showCheckbox, allSelected, onSelectAll, }: SheetsHeaderProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const SheetsHeader: ({ columns, showCheckbox, allSelected, onSelectAll, onSort, currentSortKey, currentSortDirection, }: SheetsHeaderProps) => import("react/jsx-runtime").JSX.Element;
8
17
  export {};