@salilvnair/dui 1.0.7 → 1.0.8
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/assets/DuiShowcase-C18KoqHP.css +1 -0
- package/dist/assets/{DuiShowcase-CSkP-vdJ.js → DuiShowcase-DwihGCxO.js} +1377 -1359
- package/dist/assets/{index-DQdlwLhi.js → index-D9rPjVPP.js} +2 -2
- package/dist/chunks/{daakia-icons-BpwUOdSO.js → daakia-icons-DYLRx0Yi.js} +1096 -1053
- package/dist/chunks/daakia-icons-DYLRx0Yi.js.map +1 -0
- package/dist/chunks/doc-path-D2_JUEIe.js +695 -0
- package/dist/chunks/doc-path-D2_JUEIe.js.map +1 -0
- package/dist/icons/daakia-icons.d.ts +24 -0
- package/dist/index.html +1 -1
- package/dist/index.js +20939 -17293
- package/dist/index.js.map +1 -1
- package/dist/lib/components/button/AIButtonView.d.ts +10 -1
- package/dist/lib/components/button/ActionButtonView.d.ts +42 -0
- package/dist/lib/components/button/BookmarkButtonView.d.ts +10 -1
- package/dist/lib/components/button/FabView.d.ts +10 -1
- package/dist/lib/components/button/FollowButtonView.d.ts +10 -1
- package/dist/lib/components/button/HoldToConfirmView.d.ts +10 -1
- package/dist/lib/components/button/LikeButtonView.d.ts +10 -1
- package/dist/lib/components/button/MorphingIconButtonView.d.ts +10 -1
- package/dist/lib/components/button/SegmentedView.d.ts +10 -1
- package/dist/lib/components/button/ThemeToggleView.d.ts +10 -1
- package/dist/lib/components/button/VoteWidgetView.d.ts +10 -1
- package/dist/lib/components/chips/ChipView.d.ts +32 -1
- package/dist/lib/components/chips/CommandChipView.d.ts +10 -1
- package/dist/lib/components/display/BadgeChipView.d.ts +25 -0
- package/dist/lib/components/display/DonutView.d.ts +35 -0
- package/dist/lib/components/display/EmptyStateView.d.ts +33 -1
- package/dist/lib/components/display/FileBrowserView.d.ts +143 -0
- package/dist/lib/components/display/FileBrowserView.test.d.ts +1 -0
- package/dist/lib/components/display/FindingCardView.d.ts +36 -0
- package/dist/lib/components/display/FlameGraphView.d.ts +32 -0
- package/dist/lib/components/display/GroupHeaderView.d.ts +28 -0
- package/dist/lib/components/display/IssueCardSkeletonView.d.ts +28 -0
- package/dist/lib/components/display/IssueCardView.d.ts +40 -0
- package/dist/lib/components/display/LaneChartView.d.ts +46 -0
- package/dist/lib/components/display/LineDiffView.d.ts +25 -0
- package/dist/lib/components/display/PriorityMarkView.d.ts +20 -0
- package/dist/lib/components/display/SetupOptionView.d.ts +56 -0
- package/dist/lib/components/display/SunburstView.d.ts +32 -0
- package/dist/lib/components/display/SwimlaneChartView.d.ts +48 -0
- package/dist/lib/components/display/TableSkeletonView.d.ts +34 -0
- package/dist/lib/components/display/hierarchy-layout.d.ts +114 -0
- package/dist/lib/components/display/hierarchy-layout.test.d.ts +1 -0
- package/dist/lib/components/display/lane-scale.d.ts +67 -0
- package/dist/lib/components/display/lane-scale.test.d.ts +1 -0
- package/dist/lib/components/display/line-diff.d.ts +42 -0
- package/dist/lib/components/input/AvatarUploadView.d.ts +10 -1
- package/dist/lib/components/input/CalendarView.d.ts +10 -1
- package/dist/lib/components/input/CascaderView.d.ts +10 -1
- package/dist/lib/components/input/ChatInputView.d.ts +10 -1
- package/dist/lib/components/input/CheckboxView.d.ts +10 -1
- package/dist/lib/components/input/ChecklistView.d.ts +10 -1
- package/dist/lib/components/input/ColorPickerView.d.ts +10 -1
- package/dist/lib/components/input/ComboBoxView.d.ts +10 -1
- package/dist/lib/components/input/DateInputView.d.ts +10 -1
- package/dist/lib/components/input/DateRangePickerView.d.ts +10 -1
- package/dist/lib/components/input/DateTimeInputView.d.ts +10 -1
- package/dist/lib/components/input/DialKnobInputView.d.ts +10 -1
- package/dist/lib/components/input/DurationInputView.d.ts +10 -1
- package/dist/lib/components/input/EditorView.d.ts +8 -0
- package/dist/lib/components/input/EditorView.shell.d.ts +9 -1
- package/dist/lib/components/input/EmojiPickerView.d.ts +10 -1
- package/dist/lib/components/input/FeedbackWidgetView.d.ts +10 -1
- package/dist/lib/components/input/FileDropzoneView.d.ts +10 -1
- package/dist/lib/components/input/FilterInputView.d.ts +25 -0
- package/dist/lib/components/input/FloatingLabelInputView.d.ts +10 -1
- package/dist/lib/components/input/FormDataTableView.d.ts +10 -1
- package/dist/lib/components/input/GhostTypingPlaceholderView.d.ts +10 -1
- package/dist/lib/components/input/HiddenKeyValueItemView.d.ts +10 -1
- package/dist/lib/components/input/HighlightedInputView.d.ts +12 -1
- package/dist/lib/components/input/IconPickerView.d.ts +10 -1
- package/dist/lib/components/input/InlineEditTextView.d.ts +10 -1
- package/dist/lib/components/input/InviteInputView.d.ts +10 -1
- package/dist/lib/components/input/KeyValueTableRowView.d.ts +10 -1
- package/dist/lib/components/input/KeyValueTableView.d.ts +10 -1
- package/dist/lib/components/input/MarkdownEditorView.d.ts +30 -0
- package/dist/lib/components/input/MaskedInputView.d.ts +10 -1
- package/dist/lib/components/input/MentionInputView.d.ts +10 -1
- package/dist/lib/components/input/MergedInputView.d.ts +10 -1
- package/dist/lib/components/input/NpsSurveyView.d.ts +10 -1
- package/dist/lib/components/input/OtpInputView.d.ts +10 -1
- package/dist/lib/components/input/PhoneInputView.d.ts +10 -1
- package/dist/lib/components/input/PickerView.d.ts +10 -1
- package/dist/lib/components/input/PriorityPickerView.d.ts +10 -1
- package/dist/lib/components/input/RadioCardView.d.ts +10 -1
- package/dist/lib/components/input/RadioGroupView.d.ts +10 -1
- package/dist/lib/components/input/RangeSliderView.d.ts +10 -1
- package/dist/lib/components/input/RatingView.d.ts +10 -1
- package/dist/lib/components/input/RichTextToolbarView.d.ts +10 -1
- package/dist/lib/components/input/RoleSelectView.d.ts +10 -1
- package/dist/lib/components/input/SearchFieldView.d.ts +33 -0
- package/dist/lib/components/input/SegmentedControlView.d.ts +20 -1
- package/dist/lib/components/input/SelectInputView.d.ts +32 -1
- package/dist/lib/components/input/SelectTextInputView.d.ts +12 -1
- package/dist/lib/components/input/ShortcutRecorderView.d.ts +10 -1
- package/dist/lib/components/input/SliderView.d.ts +10 -1
- package/dist/lib/components/input/SpectrumSliderView.d.ts +10 -1
- package/dist/lib/components/input/StepperInputView.d.ts +10 -1
- package/dist/lib/components/input/SwatchPickerView.d.ts +38 -0
- package/dist/lib/components/input/SwitchGroupView.d.ts +10 -1
- package/dist/lib/components/input/TabView.d.ts +10 -1
- package/dist/lib/components/input/TagInputView.d.ts +10 -1
- package/dist/lib/components/input/TextInputView.d.ts +9 -0
- package/dist/lib/components/input/ThemeCardSelectorView.d.ts +10 -1
- package/dist/lib/components/input/TimeWheelView.d.ts +10 -1
- package/dist/lib/components/input/TimeZoneSelectView.d.ts +40 -0
- package/dist/lib/components/input/TimeZoneSelectView.test.d.ts +1 -0
- package/dist/lib/components/input/TogglePillView.d.ts +51 -0
- package/dist/lib/components/input/ToggleSwitchView.d.ts +10 -1
- package/dist/lib/components/input/TransferListView.d.ts +10 -1
- package/dist/lib/components/input/TreeSelectView.d.ts +10 -1
- package/dist/lib/components/input/WizardStepperView.d.ts +10 -1
- package/dist/lib/components/input/doc-path.d.ts +52 -0
- package/dist/lib/components/input/doc-path.test.d.ts +1 -0
- package/dist/lib/components/input/markdown-serialise.d.ts +23 -0
- package/dist/lib/components/input/select-position.test.d.ts +1 -0
- package/dist/lib/components/layout/PathBreadcrumbView.d.ts +67 -0
- package/dist/lib/components/layout/PathBreadcrumbView.test.d.ts +1 -0
- package/dist/lib/components/layout/SplitPanelView.d.ts +26 -1
- package/dist/lib/components/modal/ActionSheetView.d.ts +10 -1
- package/dist/lib/components/modal/AlertDialogView.d.ts +10 -1
- package/dist/lib/components/modal/BottomSheetView.d.ts +10 -1
- package/dist/lib/components/modal/CommandPaletteView.d.ts +10 -1
- package/dist/lib/components/modal/ContextMenuView.d.ts +19 -1
- package/dist/lib/components/modal/DrawerView.d.ts +10 -1
- package/dist/lib/components/modal/InfoPopupView.d.ts +13 -1
- package/dist/lib/components/modal/ModalView.d.ts +19 -3
- package/dist/lib/components/modal/NotificationCenterView.d.ts +10 -1
- package/dist/lib/components/modal/PopoverView.d.ts +10 -1
- package/dist/lib/components/modal/SheetView.d.ts +31 -0
- package/dist/lib/components/modal/SpotlightTourView.d.ts +10 -1
- package/dist/lib/components/modal/StackedToastDeckView.d.ts +10 -1
- package/dist/lib/components/modal/sheet-drag.d.ts +60 -0
- package/dist/lib/components/modal/sheet-drag.test.d.ts +1 -0
- package/dist/lib/components/tabs/PilledTabView.d.ts +10 -1
- package/dist/lib/components/tabs/TabBarView.d.ts +10 -1
- package/dist/lib/components/tabs/UnderlineTabsView.d.ts +41 -0
- package/dist/lib/components/testid.test.d.ts +1 -0
- package/dist/lib/core/IconSize.d.ts +37 -0
- package/dist/lib/core/TerminalPalette.d.ts +81 -0
- package/dist/lib/core/TerminalPaletteFile.d.ts +61 -0
- package/dist/lib/core/TerminalPaletteFile.test.d.ts +1 -0
- package/dist/lib/index.d.ts +65 -0
- package/dist/monaco-setup.js +589 -493
- package/dist/monaco-setup.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/editor.js +1 -1
- package/package.json +5 -3
- package/dist/assets/DuiShowcase-CRLG9S4N.css +0 -1
- package/dist/chunks/EditorView.shell-DWGMOgiy.js +0 -510
- package/dist/chunks/EditorView.shell-DWGMOgiy.js.map +0 -1
- package/dist/chunks/daakia-icons-BpwUOdSO.js.map +0 -1
|
@@ -5,6 +5,15 @@ export interface MentionUser {
|
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
7
|
export interface MentionInputViewProps {
|
|
8
|
+
/**
|
|
9
|
+
* A stable hook for tests and automation.
|
|
10
|
+
*
|
|
11
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
12
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
13
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
14
|
+
* `getByRole` reliably finds.
|
|
15
|
+
*/
|
|
16
|
+
testId?: string;
|
|
8
17
|
value: string;
|
|
9
18
|
onChange: (value: string) => void;
|
|
10
19
|
users: MentionUser[];
|
|
@@ -18,4 +27,4 @@ export interface MentionInputViewProps {
|
|
|
18
27
|
style?: CSSProperties;
|
|
19
28
|
}
|
|
20
29
|
/** @mention autocomplete textarea. */
|
|
21
|
-
export declare function MentionInputView({ value, onChange, users, placeholder, rows, disabled, size, borderRadius, color, className, style, }: MentionInputViewProps): import("react").JSX.Element;
|
|
30
|
+
export declare function MentionInputView({ testId, value, onChange, users, placeholder, rows, disabled, size, borderRadius, color, className, style, }: MentionInputViewProps): import("react").JSX.Element;
|
|
@@ -33,6 +33,15 @@ export type MergedInputSegment = {
|
|
|
33
33
|
width?: number;
|
|
34
34
|
};
|
|
35
35
|
export interface MergedInputViewProps {
|
|
36
|
+
/**
|
|
37
|
+
* A stable hook for tests and automation.
|
|
38
|
+
*
|
|
39
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
40
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
41
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
42
|
+
* `getByRole` reliably finds.
|
|
43
|
+
*/
|
|
44
|
+
testId?: string;
|
|
36
45
|
segments: MergedInputSegment[];
|
|
37
46
|
/** Falls back to DuiProvider size when omitted. */
|
|
38
47
|
size?: DuiSize;
|
|
@@ -41,4 +50,4 @@ export interface MergedInputViewProps {
|
|
|
41
50
|
className?: string;
|
|
42
51
|
}
|
|
43
52
|
export declare function MergeDivider(): import("react").JSX.Element;
|
|
44
|
-
export declare function MergedInputView({ segments, size, accentColor, disabled, className, }: MergedInputViewProps): import("react").JSX.Element;
|
|
53
|
+
export declare function MergedInputView({ testId, segments, size, accentColor, disabled, className, }: MergedInputViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize } from '../../core/DuiTypes';
|
|
3
3
|
export interface NpsSurveyViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
question?: string;
|
|
5
14
|
score: number | null;
|
|
6
15
|
onScoreChange: (score: number) => void;
|
|
@@ -13,4 +22,4 @@ export interface NpsSurveyViewProps {
|
|
|
13
22
|
style?: CSSProperties;
|
|
14
23
|
}
|
|
15
24
|
/** 0-10 Net Promoter Score picker with an optional follow-up text field. */
|
|
16
|
-
export declare function NpsSurveyView({ question, score, onScoreChange, followUp, onFollowUpChange, onSubmit, size, color, className, style, }: NpsSurveyViewProps): import("react").JSX.Element;
|
|
25
|
+
export declare function NpsSurveyView({ testId, question, score, onScoreChange, followUp, onFollowUpChange, onSubmit, size, color, className, style, }: NpsSurveyViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize, DuiRadius } from '../../core/DuiTypes';
|
|
3
3
|
export interface OtpInputViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
value: string;
|
|
5
14
|
onChange: (value: string) => void;
|
|
6
15
|
onComplete?: (value: string) => void;
|
|
@@ -14,4 +23,4 @@ export interface OtpInputViewProps {
|
|
|
14
23
|
className?: string;
|
|
15
24
|
style?: CSSProperties;
|
|
16
25
|
}
|
|
17
|
-
export declare function OtpInputView({ value, onChange, onComplete, length, numeric, disabled, size, borderRadius, color, className, style, }: OtpInputViewProps): import("react").JSX.Element;
|
|
26
|
+
export declare function OtpInputView({ testId, value, onChange, onComplete, length, numeric, disabled, size, borderRadius, color, className, style, }: OtpInputViewProps): import("react").JSX.Element;
|
|
@@ -8,6 +8,15 @@ export interface PhoneCountry {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const DEFAULT_PHONE_COUNTRIES: PhoneCountry[];
|
|
10
10
|
export interface PhoneInputViewProps {
|
|
11
|
+
/**
|
|
12
|
+
* A stable hook for tests and automation.
|
|
13
|
+
*
|
|
14
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
15
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
16
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
17
|
+
* `getByRole` reliably finds.
|
|
18
|
+
*/
|
|
19
|
+
testId?: string;
|
|
11
20
|
countryCode: string;
|
|
12
21
|
onCountryChange: (code: string) => void;
|
|
13
22
|
number: string;
|
|
@@ -22,4 +31,4 @@ export interface PhoneInputViewProps {
|
|
|
22
31
|
className?: string;
|
|
23
32
|
style?: CSSProperties;
|
|
24
33
|
}
|
|
25
|
-
export declare function PhoneInputView({ countryCode, onCountryChange, number, onNumberChange, countries, placeholder, disabled, size, width, borderRadius, color, className, style, }: PhoneInputViewProps): import("react").JSX.Element;
|
|
34
|
+
export declare function PhoneInputView({ testId, countryCode, onCountryChange, number, onNumberChange, countries, placeholder, disabled, size, width, borderRadius, color, className, style, }: PhoneInputViewProps): import("react").JSX.Element;
|
|
@@ -14,6 +14,15 @@ export interface PickerColumn {
|
|
|
14
14
|
flex?: number;
|
|
15
15
|
}
|
|
16
16
|
export interface PickerViewProps {
|
|
17
|
+
/**
|
|
18
|
+
* A stable hook for tests and automation.
|
|
19
|
+
*
|
|
20
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
21
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
22
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
23
|
+
* `getByRole` reliably finds.
|
|
24
|
+
*/
|
|
25
|
+
testId?: string;
|
|
17
26
|
/** Single-column mode — mutually exclusive with `columns`. */
|
|
18
27
|
options?: PickerOption[];
|
|
19
28
|
value?: string;
|
|
@@ -35,4 +44,4 @@ export interface PickerViewProps {
|
|
|
35
44
|
* Scrollable wheel picker. Single column via `options`/`value`/`onChange`,
|
|
36
45
|
* or multiple synchronized wheels (hour/min/meridiem-style) via `columns`.
|
|
37
46
|
*/
|
|
38
|
-
export declare function PickerView({ options, value, onChange, columns, size, visibleRows, width, borderRadius, color, disabled, className, style, }: PickerViewProps): import("react").JSX.Element;
|
|
47
|
+
export declare function PickerView({ testId, options, value, onChange, columns, size, visibleRows, width, borderRadius, color, disabled, className, style, }: PickerViewProps): import("react").JSX.Element;
|
|
@@ -2,6 +2,15 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { DuiSize } from '../../core/DuiTypes';
|
|
3
3
|
export type PriorityLevel = 'low' | 'medium' | 'high' | 'urgent';
|
|
4
4
|
export interface PriorityPickerViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* A stable hook for tests and automation.
|
|
7
|
+
*
|
|
8
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
9
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
10
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
11
|
+
* `getByRole` reliably finds.
|
|
12
|
+
*/
|
|
13
|
+
testId?: string;
|
|
5
14
|
value: PriorityLevel;
|
|
6
15
|
onChange: (value: PriorityLevel) => void;
|
|
7
16
|
size?: DuiSize;
|
|
@@ -10,4 +19,4 @@ export interface PriorityPickerViewProps {
|
|
|
10
19
|
style?: CSSProperties;
|
|
11
20
|
}
|
|
12
21
|
/** Low/medium/high/urgent selector with color-coded dots — a color-coded priority picker. */
|
|
13
|
-
export declare function PriorityPickerView({ value, onChange, size, disabled, className, style, }: PriorityPickerViewProps): import("react").JSX.Element;
|
|
22
|
+
export declare function PriorityPickerView({ testId, value, onChange, size, disabled, className, style, }: PriorityPickerViewProps): import("react").JSX.Element;
|
|
@@ -8,6 +8,15 @@ export interface RadioCardOption {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface RadioCardViewProps {
|
|
11
|
+
/**
|
|
12
|
+
* A stable hook for tests and automation.
|
|
13
|
+
*
|
|
14
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
15
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
16
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
17
|
+
* `getByRole` reliably finds.
|
|
18
|
+
*/
|
|
19
|
+
testId?: string;
|
|
11
20
|
options: RadioCardOption[];
|
|
12
21
|
value: string;
|
|
13
22
|
onChange: (value: string) => void;
|
|
@@ -19,4 +28,4 @@ export interface RadioCardViewProps {
|
|
|
19
28
|
className?: string;
|
|
20
29
|
style?: CSSProperties;
|
|
21
30
|
}
|
|
22
|
-
export declare function RadioCardView({ options, value, onChange, size, borderRadius, accentColor, columns, className, style, }: RadioCardViewProps): import("react").JSX.Element;
|
|
31
|
+
export declare function RadioCardView({ testId, options, value, onChange, size, borderRadius, accentColor, columns, className, style, }: RadioCardViewProps): import("react").JSX.Element;
|
|
@@ -7,6 +7,15 @@ export interface RadioOption {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface RadioGroupViewProps {
|
|
10
|
+
/**
|
|
11
|
+
* A stable hook for tests and automation.
|
|
12
|
+
*
|
|
13
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
14
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
15
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
16
|
+
* `getByRole` reliably finds.
|
|
17
|
+
*/
|
|
18
|
+
testId?: string;
|
|
10
19
|
options: RadioOption[];
|
|
11
20
|
value: string;
|
|
12
21
|
onChange: (value: string) => void;
|
|
@@ -18,4 +27,4 @@ export interface RadioGroupViewProps {
|
|
|
18
27
|
className?: string;
|
|
19
28
|
style?: CSSProperties;
|
|
20
29
|
}
|
|
21
|
-
export declare function RadioGroupView({ options, value, onChange, size, accentColor, disabled, direction, className, style, }: RadioGroupViewProps): import("react").JSX.Element;
|
|
30
|
+
export declare function RadioGroupView({ testId, options, value, onChange, size, accentColor, disabled, direction, className, style, }: RadioGroupViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize } from '../../core/DuiTypes';
|
|
3
3
|
export interface RangeSliderViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
value: [number, number];
|
|
5
14
|
onChange: (value: [number, number]) => void;
|
|
6
15
|
min?: number;
|
|
@@ -15,4 +24,4 @@ export interface RangeSliderViewProps {
|
|
|
15
24
|
style?: CSSProperties;
|
|
16
25
|
}
|
|
17
26
|
/** Dual-handle min/max range slider — distinct from the single-handle `SliderView`. */
|
|
18
|
-
export declare function RangeSliderView({ value, onChange, min, max, step, disabled, size, accentColor, width, showValue, className, style, }: RangeSliderViewProps): import("react").JSX.Element;
|
|
27
|
+
export declare function RangeSliderView({ testId, value, onChange, min, max, step, disabled, size, accentColor, width, showValue, className, style, }: RangeSliderViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize } from '../../core/DuiTypes';
|
|
3
3
|
export interface RatingViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
value: number;
|
|
5
14
|
onChange?: (value: number) => void;
|
|
6
15
|
max?: number;
|
|
@@ -13,4 +22,4 @@ export interface RatingViewProps {
|
|
|
13
22
|
className?: string;
|
|
14
23
|
style?: CSSProperties;
|
|
15
24
|
}
|
|
16
|
-
export declare function RatingView({ value, onChange, max, allowHalf, readOnly, size, color, icon, className, style, }: RatingViewProps): import("react").JSX.Element;
|
|
25
|
+
export declare function RatingView({ testId, value, onChange, max, allowHalf, readOnly, size, color, icon, className, style, }: RatingViewProps): import("react").JSX.Element;
|
|
@@ -2,6 +2,15 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { DuiSize } from '../../core/DuiTypes';
|
|
3
3
|
export type RichTextAction = 'bold' | 'italic' | 'underline' | 'link' | 'list' | 'code';
|
|
4
4
|
export interface RichTextToolbarViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* A stable hook for tests and automation.
|
|
7
|
+
*
|
|
8
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
9
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
10
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
11
|
+
* `getByRole` reliably finds.
|
|
12
|
+
*/
|
|
13
|
+
testId?: string;
|
|
5
14
|
active?: RichTextAction[];
|
|
6
15
|
onAction: (action: RichTextAction) => void;
|
|
7
16
|
size?: DuiSize;
|
|
@@ -10,4 +19,4 @@ export interface RichTextToolbarViewProps {
|
|
|
10
19
|
style?: CSSProperties;
|
|
11
20
|
}
|
|
12
21
|
/** Formatting toolbar primitive — bold/italic/underline/link/list/code. */
|
|
13
|
-
export declare function RichTextToolbarView({ active, onAction, size, color, className, style, }: RichTextToolbarViewProps): import("react").JSX.Element;
|
|
22
|
+
export declare function RichTextToolbarView({ testId, active, onAction, size, color, className, style, }: RichTextToolbarViewProps): import("react").JSX.Element;
|
|
@@ -6,6 +6,15 @@ export interface RoleOption {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
}
|
|
8
8
|
export interface RoleSelectViewProps {
|
|
9
|
+
/**
|
|
10
|
+
* A stable hook for tests and automation.
|
|
11
|
+
*
|
|
12
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
13
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
14
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
15
|
+
* `getByRole` reliably finds.
|
|
16
|
+
*/
|
|
17
|
+
testId?: string;
|
|
9
18
|
options: RoleOption[];
|
|
10
19
|
value: string;
|
|
11
20
|
onChange: (value: string) => void;
|
|
@@ -18,4 +27,4 @@ export interface RoleSelectViewProps {
|
|
|
18
27
|
style?: CSSProperties;
|
|
19
28
|
}
|
|
20
29
|
/** Role dropdown with a per-option description shown beneath the label. */
|
|
21
|
-
export declare function RoleSelectView({ options, value, onChange, disabled, size, width, borderRadius, color, className, style, }: RoleSelectViewProps): import("react").JSX.Element;
|
|
30
|
+
export declare function RoleSelectView({ testId, options, value, onChange, disabled, size, width, borderRadius, color, className, style, }: RoleSelectViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DuiSize } from '../../core/DuiTypes';
|
|
3
|
+
export interface SearchFieldViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
13
|
+
value: string;
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
/** Enter, and the icon's tooltip. Omit for a box that only holds a term. */
|
|
16
|
+
onSearch?: (value: string) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Clearing, when it means more than emptying the box.
|
|
19
|
+
*
|
|
20
|
+
* Defaults to `onChange('')`. Pass this where the results have to go too —
|
|
21
|
+
* a cleared query beside a full result list is a screen describing a search
|
|
22
|
+
* nobody can see the terms of.
|
|
23
|
+
*/
|
|
24
|
+
onClear?: () => void;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
size?: DuiSize;
|
|
27
|
+
width?: string | number;
|
|
28
|
+
accentColor?: string;
|
|
29
|
+
/** Sits between the text and the clear button — a count, a spinner. */
|
|
30
|
+
trailing?: ReactNode;
|
|
31
|
+
autoFocus?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare function SearchFieldView({ testId, value, onChange, onSearch, onClear, placeholder, size, width, accentColor, trailing, autoFocus, }: SearchFieldViewProps): import("react").JSX.Element;
|
|
@@ -8,6 +8,15 @@ export interface SegmentedControlOption {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface SegmentedControlViewProps {
|
|
11
|
+
/**
|
|
12
|
+
* A stable hook for tests and automation.
|
|
13
|
+
*
|
|
14
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
15
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
16
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
17
|
+
* `getByRole` reliably finds.
|
|
18
|
+
*/
|
|
19
|
+
testId?: string;
|
|
11
20
|
options: SegmentedControlOption[];
|
|
12
21
|
value: string;
|
|
13
22
|
onChange: (value: string) => void;
|
|
@@ -23,8 +32,18 @@ export interface SegmentedControlViewProps {
|
|
|
23
32
|
borderRadius?: DuiRadius | number;
|
|
24
33
|
/** Inactive label text color override. */
|
|
25
34
|
color?: string;
|
|
35
|
+
/**
|
|
36
|
+
* How much room the control takes.
|
|
37
|
+
*
|
|
38
|
+
* `compact` is for a strip that sits in a dense toolbar beside a filename and
|
|
39
|
+
* a set of stats — a view switcher rather than a primary choice. It tightens
|
|
40
|
+
* every metric and, more importantly, recesses the track: a control that is
|
|
41
|
+
* carved INTO the toolbar reads as navigation, while one raised out of it
|
|
42
|
+
* competes with the buttons either side.
|
|
43
|
+
*/
|
|
44
|
+
density?: 'comfortable' | 'compact';
|
|
26
45
|
disabled?: boolean;
|
|
27
46
|
className?: string;
|
|
28
47
|
style?: React.CSSProperties;
|
|
29
48
|
}
|
|
30
|
-
export declare function SegmentedControlView({ options, value, onChange, size, variant, accentColor, fullWidth, width, borderRadius, color, disabled, className, style, }: SegmentedControlViewProps): import("react").JSX.Element;
|
|
49
|
+
export declare function SegmentedControlView({ testId, options, value, onChange, size, variant, accentColor, fullWidth, width, borderRadius, color, density, disabled, className, style, }: SegmentedControlViewProps): import("react").JSX.Element;
|
|
@@ -14,10 +14,41 @@ export interface SelectOption {
|
|
|
14
14
|
/** Backward-compatible size alias — accepts all DuiSize values plus legacy "default" (maps to "md"). */
|
|
15
15
|
export type SelectInputSize = DuiSize | 'default';
|
|
16
16
|
export interface SelectInputViewProps {
|
|
17
|
+
/**
|
|
18
|
+
* A stable hook for tests and automation.
|
|
19
|
+
*
|
|
20
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
21
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
22
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
23
|
+
* `getByRole` reliably finds.
|
|
24
|
+
*/
|
|
25
|
+
testId?: string;
|
|
17
26
|
options: SelectOption[];
|
|
18
27
|
value: string;
|
|
19
28
|
onChange: (value: string) => void;
|
|
20
29
|
size?: SelectInputSize;
|
|
30
|
+
/**
|
|
31
|
+
* A floor for the open menu's width, in px.
|
|
32
|
+
*
|
|
33
|
+
* The menu is otherwise as wide as the trigger and as wide as its widest
|
|
34
|
+
* option — right until the labels are short (`JSON`, `XML`) and the menu
|
|
35
|
+
* comes out narrower than the list it presents deserves.
|
|
36
|
+
*/
|
|
37
|
+
menuMinWidth?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Label size inside the open menu, in px.
|
|
40
|
+
*
|
|
41
|
+
* Defaults to the control's own. A menu of short words reads better a
|
|
42
|
+
* point larger than the trigger that summarises it.
|
|
43
|
+
*/
|
|
44
|
+
menuFontSize?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Horizontal padding inside the menu's rows, in px.
|
|
47
|
+
*
|
|
48
|
+
* Defaults to the control's own — this is for a menu that wants more room
|
|
49
|
+
* around its labels than its trigger does.
|
|
50
|
+
*/
|
|
51
|
+
menuPaddingX?: number;
|
|
21
52
|
/** true = size-derived radius (default), false = 0px */
|
|
22
53
|
rounded?: boolean;
|
|
23
54
|
placeholder?: string;
|
|
@@ -28,4 +59,4 @@ export interface SelectInputViewProps {
|
|
|
28
59
|
width?: string | number;
|
|
29
60
|
borderRadius?: DuiRadius | number;
|
|
30
61
|
}
|
|
31
|
-
export declare function SelectInputView({ options, value, onChange, size, rounded, placeholder, accentColor, disabled, className, style, width, borderRadius, }: SelectInputViewProps): import("react").JSX.Element;
|
|
62
|
+
export declare function SelectInputView({ testId, options, value, onChange, size, menuMinWidth, menuPaddingX, menuFontSize, rounded, placeholder, accentColor, disabled, className, style, width, borderRadius, }: SelectInputViewProps): import("react").JSX.Element;
|
|
@@ -11,6 +11,17 @@ export interface MockServerSuggestion {
|
|
|
11
11
|
name: string;
|
|
12
12
|
}
|
|
13
13
|
export interface SelectTextInputViewProps {
|
|
14
|
+
/**
|
|
15
|
+
* A stable hook for tests and the demo recorder.
|
|
16
|
+
*
|
|
17
|
+
* Lands on the element somebody actually types into — which, for this
|
|
18
|
+
* component, is a `contenteditable` div whose placeholder is a decorative
|
|
19
|
+
* `<span>`. Playwright's `getByPlaceholder` therefore never finds it, and a
|
|
20
|
+
* recorder that assumed it would spent a whole take typing into nothing.
|
|
21
|
+
* Give it a `testId` and it can be addressed by contract instead of by
|
|
22
|
+
* guessing at dui's internals.
|
|
23
|
+
*/
|
|
24
|
+
testId?: string;
|
|
14
25
|
selectValue: string;
|
|
15
26
|
selectOptions: SelectTextOption[];
|
|
16
27
|
onSelectChange: (value: string) => void;
|
|
@@ -41,4 +52,4 @@ export interface SelectTextInputViewProps {
|
|
|
41
52
|
fontStyle?: DuiFontStyle;
|
|
42
53
|
className?: string;
|
|
43
54
|
}
|
|
44
|
-
export declare function SelectTextInputView({ selectValue, selectOptions, onSelectChange, inputValue, onInputChange, placeholder, size, disabled, accentColor, selectWidth, suggestions, mockServers, onMockServerSelect, onKeyDown, suggestionMinWidth, suggestionZIndex, width, borderRadius, color, fontStyle, className, }: SelectTextInputViewProps): import("react").JSX.Element;
|
|
55
|
+
export declare function SelectTextInputView({ testId, selectValue, selectOptions, onSelectChange, inputValue, onInputChange, placeholder, size, disabled, accentColor, selectWidth, suggestions, mockServers, onMockServerSelect, onKeyDown, suggestionMinWidth, suggestionZIndex, width, borderRadius, color, fontStyle, className, }: SelectTextInputViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize, DuiRadius } from '../../core/DuiTypes';
|
|
3
3
|
export interface ShortcutRecorderViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
value: string[];
|
|
5
14
|
onChange: (keys: string[]) => void;
|
|
6
15
|
placeholder?: string;
|
|
@@ -12,4 +21,4 @@ export interface ShortcutRecorderViewProps {
|
|
|
12
21
|
style?: CSSProperties;
|
|
13
22
|
}
|
|
14
23
|
/** Captures a keybinding — click to start recording, press keys, click away or Enter to commit. */
|
|
15
|
-
export declare function ShortcutRecorderView({ value, onChange, placeholder, disabled, size, borderRadius, color, className, style, }: ShortcutRecorderViewProps): import("react").JSX.Element;
|
|
24
|
+
export declare function ShortcutRecorderView({ testId, value, onChange, placeholder, disabled, size, borderRadius, color, className, style, }: ShortcutRecorderViewProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { DuiSize } from '../../core/DuiTypes';
|
|
2
2
|
export interface SliderViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* A stable hook for tests and automation.
|
|
5
|
+
*
|
|
6
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
7
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
8
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
9
|
+
* `getByRole` reliably finds.
|
|
10
|
+
*/
|
|
11
|
+
testId?: string;
|
|
3
12
|
value: number;
|
|
4
13
|
onChange: (value: number) => void;
|
|
5
14
|
min?: number;
|
|
@@ -12,4 +21,4 @@ export interface SliderViewProps {
|
|
|
12
21
|
width?: number | string;
|
|
13
22
|
className?: string;
|
|
14
23
|
}
|
|
15
|
-
export declare function SliderView({ value, onChange, min, max, step, disabled, accentColor, showValue, width, className, }: SliderViewProps): import("react").JSX.Element;
|
|
24
|
+
export declare function SliderView({ testId, value, onChange, min, max, step, disabled, accentColor, showValue, width, className, }: SliderViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize } from '../../core/DuiTypes';
|
|
3
3
|
export interface SpectrumSliderViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
value: number;
|
|
5
14
|
min?: number;
|
|
6
15
|
max?: number;
|
|
@@ -13,4 +22,4 @@ export interface SpectrumSliderViewProps {
|
|
|
13
22
|
style?: CSSProperties;
|
|
14
23
|
}
|
|
15
24
|
/** The slider track is a live rendered gradient spectrum; the handle shows a magnified live-color preview bubble while dragging. */
|
|
16
|
-
export declare function SpectrumSliderView({ value, min, max, onChange, gradient, width, size, className, style, }: SpectrumSliderViewProps): import("react").JSX.Element;
|
|
25
|
+
export declare function SpectrumSliderView({ testId, value, min, max, onChange, gradient, width, size, className, style, }: SpectrumSliderViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DuiSize, DuiRadius } from '../../core/DuiTypes';
|
|
3
3
|
export interface StepperInputViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* A stable hook for tests and automation.
|
|
6
|
+
*
|
|
7
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
8
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
9
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
10
|
+
* `getByRole` reliably finds.
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
4
13
|
value: number;
|
|
5
14
|
onChange: (value: number) => void;
|
|
6
15
|
min?: number;
|
|
@@ -13,4 +22,4 @@ export interface StepperInputViewProps {
|
|
|
13
22
|
className?: string;
|
|
14
23
|
style?: CSSProperties;
|
|
15
24
|
}
|
|
16
|
-
export declare function StepperInputView({ value, onChange, min, max, step, disabled, size, borderRadius, color, className, style, }: StepperInputViewProps): import("react").JSX.Element;
|
|
25
|
+
export declare function StepperInputView({ testId, value, onChange, min, max, step, disabled, size, borderRadius, color, className, style, }: StepperInputViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface SwatchOption {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Shown as the tooltip and the accessible name — never as visible text. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** The one colour that stands for this option. */
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SwatchPickerViewProps {
|
|
10
|
+
/**
|
|
11
|
+
* A stable hook for tests and automation.
|
|
12
|
+
*
|
|
13
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
14
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
15
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
16
|
+
* `getByRole` reliably finds.
|
|
17
|
+
*/
|
|
18
|
+
testId?: string;
|
|
19
|
+
options: SwatchOption[];
|
|
20
|
+
value: string;
|
|
21
|
+
onChange: (id: string) => void;
|
|
22
|
+
size?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Draw each option's first letter inside its swatch.
|
|
25
|
+
*
|
|
26
|
+
* Colour alone is enough to CHOOSE by and not enough to NAME by: pointing
|
|
27
|
+
* someone at "the blue one" fails the moment two palettes are both blue, and
|
|
28
|
+
* a tooltip only helps a reader who already went looking. The initial makes
|
|
29
|
+
* the row sayable out loud without turning it back into a list of words.
|
|
30
|
+
*
|
|
31
|
+
* Needs room — below about 14px the letter is a smudge — so the swatch is
|
|
32
|
+
* given a floor when this is on.
|
|
33
|
+
*/
|
|
34
|
+
initials?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
style?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
export declare function SwatchPickerView({ testId, options, value, onChange, size, initials, className, style, }: SwatchPickerViewProps): import("react").JSX.Element;
|
|
@@ -8,6 +8,15 @@ export interface SwitchGroupItem {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface SwitchGroupViewProps {
|
|
11
|
+
/**
|
|
12
|
+
* A stable hook for tests and automation.
|
|
13
|
+
*
|
|
14
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
15
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
16
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
17
|
+
* `getByRole` reliably finds.
|
|
18
|
+
*/
|
|
19
|
+
testId?: string;
|
|
11
20
|
title?: string;
|
|
12
21
|
items: SwitchGroupItem[];
|
|
13
22
|
/** Set of currently-enabled item values. */
|
|
@@ -18,4 +27,4 @@ export interface SwitchGroupViewProps {
|
|
|
18
27
|
className?: string;
|
|
19
28
|
style?: CSSProperties;
|
|
20
29
|
}
|
|
21
|
-
export declare function SwitchGroupView({ title, items, checked, onChange, size, color, className, style, }: SwitchGroupViewProps): import("react").JSX.Element;
|
|
30
|
+
export declare function SwitchGroupView({ testId, title, items, checked, onChange, size, color, className, style, }: SwitchGroupViewProps): import("react").JSX.Element;
|
|
@@ -19,6 +19,15 @@ export interface TabItem {
|
|
|
19
19
|
}
|
|
20
20
|
export type TabVariant = 'pill' | 'underline' | 'chip' | 'picker';
|
|
21
21
|
export interface TabViewProps {
|
|
22
|
+
/**
|
|
23
|
+
* A stable hook for tests and automation.
|
|
24
|
+
*
|
|
25
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
26
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
27
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
28
|
+
* `getByRole` reliably finds.
|
|
29
|
+
*/
|
|
30
|
+
testId?: string;
|
|
22
31
|
tabs: TabItem[];
|
|
23
32
|
activeTab: string;
|
|
24
33
|
onChange: (id: string) => void;
|
|
@@ -35,4 +44,4 @@ export interface TabViewProps {
|
|
|
35
44
|
activeColor?: string;
|
|
36
45
|
fontStyle?: DuiFontStyle;
|
|
37
46
|
}
|
|
38
|
-
export declare function TabView({ tabs, activeTab, onChange, size, variant, accentColor, className, width, borderRadius, color, activeColor, fontStyle, }: TabViewProps): import("react").JSX.Element;
|
|
47
|
+
export declare function TabView({ testId, tabs, activeTab, onChange, size, variant, accentColor, className, width, borderRadius, color, activeColor, fontStyle, }: TabViewProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export interface TagInputViewProps {
|
|
2
|
+
/**
|
|
3
|
+
* A stable hook for tests and automation.
|
|
4
|
+
*
|
|
5
|
+
* Lands on this component's root element as `data-testid`. Worth setting on
|
|
6
|
+
* anything a test drives: several dui inputs render a `contenteditable` div
|
|
7
|
+
* with a decorative placeholder span, which neither `getByPlaceholder` nor
|
|
8
|
+
* `getByRole` reliably finds.
|
|
9
|
+
*/
|
|
10
|
+
testId?: string;
|
|
2
11
|
tags: string[];
|
|
3
12
|
onChange: (tags: string[]) => void;
|
|
4
13
|
placeholder?: string;
|
|
@@ -7,4 +16,4 @@ export interface TagInputViewProps {
|
|
|
7
16
|
disabled?: boolean;
|
|
8
17
|
className?: string;
|
|
9
18
|
}
|
|
10
|
-
export declare function TagInputView({ tags, onChange, placeholder, accentColor, maxTags, disabled, className, }: TagInputViewProps): import("react").JSX.Element;
|
|
19
|
+
export declare function TagInputView({ testId, tags, onChange, placeholder, accentColor, maxTags, disabled, className, }: TagInputViewProps): import("react").JSX.Element;
|
|
@@ -28,6 +28,15 @@ export interface TextInputViewProps extends Omit<InputHTMLAttributes<HTMLInputEl
|
|
|
28
28
|
/** When true: no border, transparent bg, no focus ring — for embedding inside containers that supply their own chrome */
|
|
29
29
|
naked?: boolean;
|
|
30
30
|
width?: DuiWidth;
|
|
31
|
+
/**
|
|
32
|
+
* Styles for the inner `<input>`, where `style` reaches only the box.
|
|
33
|
+
*
|
|
34
|
+
* `style` is the container's — its border, height and width — so a caller
|
|
35
|
+
* setting `fontSize` there was styling the wrapper and watching the text
|
|
36
|
+
* ignore it. A title being renamed in place wants its own type size while
|
|
37
|
+
* keeping everything else this control brings.
|
|
38
|
+
*/
|
|
39
|
+
inputStyle?: React.CSSProperties;
|
|
31
40
|
borderRadius?: DuiRadius | number;
|
|
32
41
|
/** Text color override */
|
|
33
42
|
color?: string;
|