@nimbus-ds/patterns 1.29.0-rc.1 → 1.30.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/CHANGELOG.md +10 -1
- package/dist/CHANGELOG.md +10 -1
- package/dist/DataTable/index.d.ts +76 -13
- package/dist/DataTable/index.js +1 -1
- package/dist/Editor/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +60 -11
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -206,6 +206,60 @@ export type DataTableBulkActionsProps = DataTableBulkActionsProperties & {
|
|
|
206
206
|
checkbox: Omit<CheckboxProps, "label" | "id">;
|
|
207
207
|
} & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
208
208
|
declare const DataTableBulkActions: React.FC<DataTableBulkActionsProps>;
|
|
209
|
+
export interface DataTableCellProperties {
|
|
210
|
+
/**
|
|
211
|
+
* Content of the List component.
|
|
212
|
+
* @TJS-type React.ReactNode
|
|
213
|
+
*/
|
|
214
|
+
children: ReactNode;
|
|
215
|
+
}
|
|
216
|
+
export type DataTableCellProps = DataTableCellProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & TableCellProps;
|
|
217
|
+
declare const DataTableCell: React.FC<DataTableCellProps>;
|
|
218
|
+
export interface DataTableDropdownProperties {
|
|
219
|
+
/**
|
|
220
|
+
* Placeholder text displayed in the dropdown trigger button.
|
|
221
|
+
*/
|
|
222
|
+
placeholder: string;
|
|
223
|
+
/**
|
|
224
|
+
* Content to be rendered inside the dropdown popover.
|
|
225
|
+
* Typically DataTable.DropdownAction and DataTable.DropdownDivider components.
|
|
226
|
+
* @TJS-type React.ReactNode
|
|
227
|
+
*/
|
|
228
|
+
children: ReactNode;
|
|
229
|
+
}
|
|
230
|
+
export type DataTableDropdownProps = DataTableDropdownProperties & Omit<BoxProperties, "as" | "type" | "width" | "cursor" | "backgroundColor" | "boxShadow" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "display" | "alignItems" | "justifyContent" | "gap" | "py" | "px">;
|
|
231
|
+
declare const DataTableDropdown: React.FC<DataTableDropdownProps>;
|
|
232
|
+
export interface DataTableDropdownActionProperties {
|
|
233
|
+
/**
|
|
234
|
+
* Icon element to be displayed before the label.
|
|
235
|
+
* @TJS-type React.ReactNode
|
|
236
|
+
*/
|
|
237
|
+
icon?: ReactNode;
|
|
238
|
+
/**
|
|
239
|
+
* Text label for the action item.
|
|
240
|
+
*/
|
|
241
|
+
label: string;
|
|
242
|
+
/**
|
|
243
|
+
* Click handler for the action.
|
|
244
|
+
*/
|
|
245
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
246
|
+
/**
|
|
247
|
+
* Whether the action is disabled.
|
|
248
|
+
*/
|
|
249
|
+
disabled?: boolean;
|
|
250
|
+
}
|
|
251
|
+
export type DataTableDropdownActionProps = DataTableDropdownActionProperties & Omit<BoxProperties, "children" | "as" | "type" | "width" | "cursor" | "backgroundColor" | "boxShadow" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "display" | "alignItems" | "justifyContent" | "gap" | "py" | "px" | "onClick">;
|
|
252
|
+
declare const DataTableDropdownAction: React.FC<DataTableDropdownActionProps>;
|
|
253
|
+
declare const DataTableDropdownDivider: React.FC;
|
|
254
|
+
export interface DataTableDropdownSectionProperties {
|
|
255
|
+
/**
|
|
256
|
+
* Content of the section body.
|
|
257
|
+
* @TJS-type React.ReactNode
|
|
258
|
+
*/
|
|
259
|
+
children: ReactNode;
|
|
260
|
+
}
|
|
261
|
+
export type DataTableDropdownSectionProps = DataTableDropdownSectionProperties & Omit<BoxProperties, "children" | "as" | "type" | "width" | "cursor" | "backgroundColor" | "boxShadow" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "display" | "alignItems" | "justifyContent" | "gap" | "py" | "px">;
|
|
262
|
+
declare const DataTableDropdownSection: React.FC<DataTableDropdownSectionProps>;
|
|
209
263
|
export interface DataTableFooterProperties {
|
|
210
264
|
/**
|
|
211
265
|
* Left-hand side text intended for displaying an item count.
|
|
@@ -250,21 +304,16 @@ export type DataTableRowProps = DataTableRowProperties & {
|
|
|
250
304
|
checkbox: CheckboxProps;
|
|
251
305
|
} & TableRowProperties & HTMLAttributes<HTMLElement>;
|
|
252
306
|
declare const DataTableRow: React.FC<DataTableRowProps>;
|
|
253
|
-
export interface DataTableCellProperties {
|
|
254
|
-
/**
|
|
255
|
-
* Content of the List component.
|
|
256
|
-
* @TJS-type React.ReactNode
|
|
257
|
-
*/
|
|
258
|
-
children: ReactNode;
|
|
259
|
-
}
|
|
260
|
-
export type DataTableCellProps = DataTableCellProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & TableCellProps;
|
|
261
|
-
declare const DataTableCell: React.FC<DataTableCellProps>;
|
|
262
307
|
export interface DataTableComponents {
|
|
263
308
|
BulkActions: typeof DataTableBulkActions;
|
|
264
|
-
|
|
309
|
+
Cell: typeof DataTableCell;
|
|
310
|
+
Dropdown: typeof DataTableDropdown;
|
|
311
|
+
DropdownAction: typeof DataTableDropdownAction;
|
|
312
|
+
DropdownDivider: typeof DataTableDropdownDivider;
|
|
313
|
+
DropdownSection: typeof DataTableDropdownSection;
|
|
265
314
|
Footer: typeof DataTableFooter;
|
|
315
|
+
Header: typeof DataTableHeader;
|
|
266
316
|
Row: typeof DataTableRow;
|
|
267
|
-
Cell: typeof DataTableCell;
|
|
268
317
|
}
|
|
269
318
|
export interface DataTableProperties {
|
|
270
319
|
/**
|