@toteat-eng/ds-react 2026.6.10-4 → 2026.6.10-5
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.
|
@@ -7,6 +7,8 @@ export interface GroupedButtonOption {
|
|
|
7
7
|
label: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
icon?: IconName;
|
|
10
|
+
/** Forwarded to this option's `<button>` for use as a test/Playwright locator. */
|
|
11
|
+
"data-testid"?: string;
|
|
10
12
|
}
|
|
11
13
|
export interface GroupedButtonsProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, "onChange"> {
|
|
12
14
|
label: string;
|
|
@@ -7,6 +7,8 @@ export interface TabItem {
|
|
|
7
7
|
label: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
icon?: IconName;
|
|
10
|
+
/** Forwarded to this tab's `<button>` for use as a test/Playwright locator. */
|
|
11
|
+
"data-testid"?: string;
|
|
10
12
|
}
|
|
11
13
|
export interface TabProps {
|
|
12
14
|
/** Tabs to render as a segmented control. */
|
package/dist/index.es.js
CHANGED
|
@@ -1862,6 +1862,7 @@ function zr({ label: e, options: t, selectedButton: n, size: r = "medium", fullW
|
|
|
1862
1862
|
"data-size": r,
|
|
1863
1863
|
"data-position": Rr(n, t.length),
|
|
1864
1864
|
"data-selected": h === e.value ? "" : void 0,
|
|
1865
|
+
"data-testid": e["data-testid"],
|
|
1865
1866
|
disabled: a || e.disabled,
|
|
1866
1867
|
onClick: () => g(e.value),
|
|
1867
1868
|
children: [e.icon && /* @__PURE__ */ d(F, {
|
|
@@ -2948,7 +2949,8 @@ function Ki({ tabs: e, label: t, selectedTab: n, size: r = "medium", fullWidth:
|
|
|
2948
2949
|
value: e.value,
|
|
2949
2950
|
label: e.label,
|
|
2950
2951
|
disabled: e.disabled,
|
|
2951
|
-
icon: e.icon
|
|
2952
|
+
icon: e.icon,
|
|
2953
|
+
"data-testid": e["data-testid"]
|
|
2952
2954
|
}));
|
|
2953
2955
|
return /* @__PURE__ */ d("div", {
|
|
2954
2956
|
className: [Gi.tab, u].filter(Boolean).join(" "),
|