@nimbus-ds/patterns 1.38.2-rc.1 → 1.39.0-rc.1
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/DataTable/index.d.ts +15 -2
- package/dist/DataTable/index.js +1 -1
- package/dist/EmptyApp/index.js +1 -1
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -425,9 +425,22 @@ export type DataTableCellProps = DataTableCellProperties & Omit<HTMLAttributes<H
|
|
|
425
425
|
declare const DataTableCell: React.FC<DataTableCellProps>;
|
|
426
426
|
export interface DataTableDropdownProperties {
|
|
427
427
|
/**
|
|
428
|
-
* Placeholder text displayed in the dropdown trigger button.
|
|
428
|
+
* Placeholder text displayed in the default dropdown trigger button.
|
|
429
|
+
* Required unless `trigger` is provided. Ignored when `trigger` is set.
|
|
429
430
|
*/
|
|
430
|
-
placeholder
|
|
431
|
+
placeholder?: string;
|
|
432
|
+
/**
|
|
433
|
+
* Custom node to render as the dropdown trigger. When provided, replaces
|
|
434
|
+
* the default trigger built from `placeholder`. Required unless
|
|
435
|
+
* `placeholder` is provided.
|
|
436
|
+
*
|
|
437
|
+
* Must be a keyboard-accessible interactive element (e.g. `<button>`,
|
|
438
|
+
* `<Link as="button">`, or `<a>`). Non-interactive nodes like `<span>`
|
|
439
|
+
* or `<div>` will not receive keyboard focus and cannot open the
|
|
440
|
+
* dropdown via keyboard.
|
|
441
|
+
* @TJS-type React.ReactNode
|
|
442
|
+
*/
|
|
443
|
+
trigger?: ReactNode;
|
|
431
444
|
/**
|
|
432
445
|
* Content to be rendered inside the dropdown popover.
|
|
433
446
|
* Typically DataTable.DropdownAction and DataTable.DropdownDivider components.
|