@nimbus-ds/patterns 1.29.0-rc.1 → 1.29.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/dist/index.d.ts CHANGED
@@ -147,11 +147,6 @@ export interface DataListRowProperties {
147
147
  * @default base
148
148
  */
149
149
  padding?: "small" | "base" | "none";
150
- /**
151
- * Optional padding bottom for the row.
152
- * @default base
153
- */
154
- paddingBottom?: "small" | "base" | "none";
155
150
  /**
156
151
  * Content of the row.
157
152
  * @TJS-type React.ReactNode
@@ -206,6 +201,60 @@ export type DataTableBulkActionsProps = DataTableBulkActionsProperties & {
206
201
  checkbox: Omit<CheckboxProps, "label" | "id">;
207
202
  } & Omit<HTMLAttributes<HTMLElement>, "color">;
208
203
  declare const DataTableBulkActions: React.FC<DataTableBulkActionsProps>;
204
+ export interface DataTableCellProperties {
205
+ /**
206
+ * Content of the List component.
207
+ * @TJS-type React.ReactNode
208
+ */
209
+ children: ReactNode;
210
+ }
211
+ export type DataTableCellProps = DataTableCellProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & TableCellProps;
212
+ declare const DataTableCell: React.FC<DataTableCellProps>;
213
+ export interface DataTableDropdownProperties {
214
+ /**
215
+ * Placeholder text displayed in the dropdown trigger button.
216
+ */
217
+ placeholder: string;
218
+ /**
219
+ * Content to be rendered inside the dropdown popover.
220
+ * Typically DataTable.DropdownAction and DataTable.DropdownDivider components.
221
+ * @TJS-type React.ReactNode
222
+ */
223
+ children: ReactNode;
224
+ }
225
+ export type DataTableDropdownProps = DataTableDropdownProperties & Omit<BoxProperties, "as" | "type" | "width" | "cursor" | "backgroundColor" | "boxShadow" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "display" | "alignItems" | "justifyContent" | "gap" | "py" | "px">;
226
+ declare const DataTableDropdown: React.FC<DataTableDropdownProps>;
227
+ export interface DataTableDropdownActionProperties {
228
+ /**
229
+ * Icon element to be displayed before the label.
230
+ * @TJS-type React.ReactNode
231
+ */
232
+ icon?: ReactNode;
233
+ /**
234
+ * Text label for the action item.
235
+ */
236
+ label: string;
237
+ /**
238
+ * Click handler for the action.
239
+ */
240
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
241
+ /**
242
+ * Whether the action is disabled.
243
+ */
244
+ disabled?: boolean;
245
+ }
246
+ export type DataTableDropdownActionProps = DataTableDropdownActionProperties & Omit<BoxProperties, "children" | "as" | "type" | "width" | "cursor" | "backgroundColor" | "boxShadow" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "display" | "alignItems" | "justifyContent" | "gap" | "py" | "px" | "onClick">;
247
+ declare const DataTableDropdownAction: React.FC<DataTableDropdownActionProps>;
248
+ declare const DataTableDropdownDivider: React.FC;
249
+ export interface DataTableDropdownSectionProperties {
250
+ /**
251
+ * Content of the section body.
252
+ * @TJS-type React.ReactNode
253
+ */
254
+ children: ReactNode;
255
+ }
256
+ export type DataTableDropdownSectionProps = DataTableDropdownSectionProperties & Omit<BoxProperties, "children" | "as" | "type" | "width" | "cursor" | "backgroundColor" | "boxShadow" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "display" | "alignItems" | "justifyContent" | "gap" | "py" | "px">;
257
+ declare const DataTableDropdownSection: React.FC<DataTableDropdownSectionProps>;
209
258
  export interface DataTableFooterProperties {
210
259
  /**
211
260
  * Left-hand side text intended for displaying an item count.
@@ -250,21 +299,16 @@ export type DataTableRowProps = DataTableRowProperties & {
250
299
  checkbox: CheckboxProps;
251
300
  } & TableRowProperties & HTMLAttributes<HTMLElement>;
252
301
  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
302
  export interface DataTableComponents {
263
303
  BulkActions: typeof DataTableBulkActions;
264
- Header: typeof DataTableHeader;
304
+ Cell: typeof DataTableCell;
305
+ Dropdown: typeof DataTableDropdown;
306
+ DropdownAction: typeof DataTableDropdownAction;
307
+ DropdownDivider: typeof DataTableDropdownDivider;
308
+ DropdownSection: typeof DataTableDropdownSection;
265
309
  Footer: typeof DataTableFooter;
310
+ Header: typeof DataTableHeader;
266
311
  Row: typeof DataTableRow;
267
- Cell: typeof DataTableCell;
268
312
  }
269
313
  export interface DataTableProperties {
270
314
  /**
@@ -409,7 +453,7 @@ declare const InteractiveListStructure: React.FC<InteractiveListStructureProps>;
409
453
  export type InteractiveListStructureSkeletonProperties = InteractiveListStructureProperties;
410
454
  export type InteractiveListStructureSkeletonProps = InteractiveListStructureSkeletonProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
411
455
  declare const InteractiveListStructureSkeleton: React.FC<InteractiveListStructureSkeletonProps>;
412
- export interface InteractiveListRowProperties extends Omit<BoxProperties, "padding" | "paddingBottom"> {
456
+ export interface InteractiveListRowProperties extends Omit<BoxProperties, "padding"> {
413
457
  /**
414
458
  * Content of the row.
415
459
  * @TJS-type React.ReactNode