@webx-ui/core 0.39.0 → 0.40.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/components/Repeater/types.d.ts +9 -0
- package/dist/index.js +1058 -1035
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,15 @@ export interface RepeaterProps<T extends object = Record<string, unknown>> {
|
|
|
21
21
|
newItem?: () => T;
|
|
22
22
|
addLabel?: string;
|
|
23
23
|
removeLabel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Removing a row asks first, in a popover by the button: a row is often a whole record's
|
|
26
|
+
* worth of typing, and the button sits where a hand reaching for the row's header lands.
|
|
27
|
+
*/
|
|
28
|
+
confirmRemove?: boolean;
|
|
29
|
+
/** The question `confirmRemove` asks. */
|
|
30
|
+
removeQuestion?: string;
|
|
31
|
+
/** The button of that question that keeps the row. */
|
|
32
|
+
cancelLabel?: string;
|
|
24
33
|
/** What the grip is called to a screen reader. */
|
|
25
34
|
dragLabel?: string;
|
|
26
35
|
/** Rows fold to their header, so a long form stays readable. */
|