buildgrid-ui 1.19.4 → 1.20.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/README.md +1 -1
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/multi-select-list/index.d.ts +1 -0
- package/dist/blocks/multi-select-list/multi-select-list.d.ts +17 -0
- package/dist/buildgrid-ui.css +1 -1
- package/dist/buildgrid-ui.es.js +9437 -8447
- package/dist/buildgrid-ui.umd.js +144 -125
- package/dist/components/alert/alert.d.ts +4 -3
- package/dist/components/toaster/toast.d.ts +2 -47
- package/package.json +22 -18
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<h1>BuildGrid UI</h1>
|
|
3
3
|
<p><strong>A modern React component library built for real-world projects</strong></p>
|
|
4
4
|
|
|
5
|
-
<img src="
|
|
5
|
+
<img src="website/static/img/buildgrid-ui-logo.png" alt="BuildGrid UI - Modern React Component Library" style="width: 200px; border-radius: 12px; margin: 20px 0;"/>
|
|
6
6
|
|
|
7
7
|
<p>
|
|
8
8
|
<a href="https://www.npmjs.com/package/buildgrid-ui"><img src="https://img.shields.io/npm/v/buildgrid-ui.svg" alt="npm version"></a>
|
package/dist/blocks/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './help-carousel';
|
|
|
6
6
|
export * from './html-text-editor';
|
|
7
7
|
export * from './lazy-image-gallery';
|
|
8
8
|
export * from './month-navigator';
|
|
9
|
+
export * from './multi-select-list';
|
|
9
10
|
export * from './navigable-list';
|
|
10
11
|
export * from './number-stepper';
|
|
11
12
|
export * from './paginated-items';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './multi-select-list';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type MultiSelectListLabels = {
|
|
2
|
+
title?: string;
|
|
3
|
+
selectAll?: string;
|
|
4
|
+
deselectAll?: string;
|
|
5
|
+
selectedCount?: (selected: number, total: number) => string;
|
|
6
|
+
shiftClickHint?: string;
|
|
7
|
+
};
|
|
8
|
+
export type MultiSelectListProps<T> = {
|
|
9
|
+
items: T[];
|
|
10
|
+
selectedIds: string[];
|
|
11
|
+
onChange: (selectedIds: string[]) => void;
|
|
12
|
+
getItemId: (item: T) => string;
|
|
13
|
+
renderItem: (item: T) => React.ReactNode;
|
|
14
|
+
labels?: MultiSelectListLabels;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function MultiSelectList<T>({ items, selectedIds, onChange, getItemId, renderItem, labels, className, }: MultiSelectListProps<T>): import("react/jsx-runtime").JSX.Element;
|