@mediaradar/design-components 0.37.0 → 0.38.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/approved-components.json +1 -1
- package/dist/index.cjs +437 -444
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +389 -396
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1538,7 +1538,7 @@ interface SelectionPickerProps<T extends PickerRow> {
|
|
|
1538
1538
|
* filtered client-side (the default), or externally-computed `results` for a
|
|
1539
1539
|
* caller whose search is server-side/async, with `loading`/`error`/
|
|
1540
1540
|
* `hasMore`/`onLoadMore` covering that mode's states.
|
|
1541
|
-
* @tokens border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
|
|
1541
|
+
* @tokens text-micro, text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
|
|
1542
1542
|
* bg-canvas, bg-surface, shadow-raised, shadow-overlay, text-text-primary,
|
|
1543
1543
|
* text-text-secondary, text-text-tertiary, text-text-link,
|
|
1544
1544
|
* text-brand-primaryAction, border-brand-primaryAction, bg-brand-primaryAction,
|
|
@@ -2743,6 +2743,8 @@ type SegmentedControlSize = "sm" | "md";
|
|
|
2743
2743
|
interface SegmentedOption<T extends string = string> {
|
|
2744
2744
|
value: T;
|
|
2745
2745
|
label: ReactNode;
|
|
2746
|
+
/** Rendered as data-testid on this option's button. */
|
|
2747
|
+
testId?: string;
|
|
2746
2748
|
}
|
|
2747
2749
|
interface SegmentedControlProps<T extends string = string> {
|
|
2748
2750
|
options: SegmentedOption<T>[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1538,7 +1538,7 @@ interface SelectionPickerProps<T extends PickerRow> {
|
|
|
1538
1538
|
* filtered client-side (the default), or externally-computed `results` for a
|
|
1539
1539
|
* caller whose search is server-side/async, with `loading`/`error`/
|
|
1540
1540
|
* `hasMore`/`onLoadMore` covering that mode's states.
|
|
1541
|
-
* @tokens border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
|
|
1541
|
+
* @tokens text-micro, text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
|
|
1542
1542
|
* bg-canvas, bg-surface, shadow-raised, shadow-overlay, text-text-primary,
|
|
1543
1543
|
* text-text-secondary, text-text-tertiary, text-text-link,
|
|
1544
1544
|
* text-brand-primaryAction, border-brand-primaryAction, bg-brand-primaryAction,
|
|
@@ -2743,6 +2743,8 @@ type SegmentedControlSize = "sm" | "md";
|
|
|
2743
2743
|
interface SegmentedOption<T extends string = string> {
|
|
2744
2744
|
value: T;
|
|
2745
2745
|
label: ReactNode;
|
|
2746
|
+
/** Rendered as data-testid on this option's button. */
|
|
2747
|
+
testId?: string;
|
|
2746
2748
|
}
|
|
2747
2749
|
interface SegmentedControlProps<T extends string = string> {
|
|
2748
2750
|
options: SegmentedOption<T>[];
|