@scm-manager/ui-forms 2.47.0 → 2.48.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/.turbo/turbo-build.log +7 -7
- package/build/index.d.ts +168 -67
- package/build/index.js +215 -24
- package/build/index.mjs +212 -23
- package/package.json +9 -8
- package/src/Form.stories.tsx +21 -1
- package/src/base/Control.tsx +4 -4
- package/src/base/Field.tsx +7 -5
- package/src/base/label/Label.tsx +7 -5
- package/src/chip-input/ControlledChipInputField.tsx +22 -17
- package/src/index.ts +12 -0
- package/src/radio-button/ControlledRadioGroupField.tsx +94 -0
- package/src/radio-button/RadioButton.stories.tsx +226 -0
- package/src/radio-button/RadioButton.tsx +116 -0
- package/src/radio-button/RadioButtonContext.tsx +42 -0
- package/src/radio-button/RadioGroup.tsx +49 -0
- package/src/radio-button/RadioGroupField.tsx +58 -0
package/build/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import * as react_hook_form from 'react-hook-form';
|
|
2
|
+
import { SubmitHandler, UseFormReturn, ControllerRenderProps, Controller, Path, RegisterOptions, PathValue, UseFieldArrayReturn } from 'react-hook-form';
|
|
1
3
|
import * as _scm_manager_ui_types from '@scm-manager/ui-types';
|
|
2
4
|
import { Option, HalRepresentation } from '@scm-manager/ui-types';
|
|
3
5
|
import * as React from 'react';
|
|
4
|
-
import React__default, { ComponentProps, ReactElement, KeyboardEventHandler, Ref,
|
|
5
|
-
import
|
|
6
|
+
import React__default, { ComponentProps, ReactElement, ForwardedRef, KeyboardEventHandler, Ref, FC, HTMLProps } from 'react';
|
|
7
|
+
import * as _radix_ui_react_radio_group from '@radix-ui/react-radio-group';
|
|
6
8
|
import * as styled_components from 'styled-components';
|
|
7
9
|
|
|
8
10
|
declare type RenderProps$3<T extends Record<string, unknown>> = Omit<UseFormReturn<T>, "register" | "unregister" | "handleSubmit" | "control">;
|
|
9
|
-
declare type Props$
|
|
11
|
+
declare type Props$d<FormType extends Record<string, unknown>, DefaultValues extends FormType> = {
|
|
10
12
|
children: ((renderProps: RenderProps$3<FormType>) => React__default.ReactNode | React__default.ReactNode[]) | React__default.ReactNode;
|
|
11
13
|
translationPath: [namespace: string, prefix: string];
|
|
12
14
|
onSubmit: SubmitHandler<FormType>;
|
|
@@ -47,14 +49,14 @@ declare type Props$b<FormType extends Record<string, unknown>, DefaultValues ext
|
|
|
47
49
|
* @beta
|
|
48
50
|
* @since 2.41.0
|
|
49
51
|
*/
|
|
50
|
-
declare function Form$1<FormType extends Record<string, unknown>, DefaultValues extends FormType = FormType>({ children, onSubmit, defaultValues, translationPath, readOnly, withResetTo, withDiscardChanges, successMessageFallback, submitButtonTestId, }: Props$
|
|
52
|
+
declare function Form$1<FormType extends Record<string, unknown>, DefaultValues extends FormType = FormType>({ children, onSubmit, defaultValues, translationPath, readOnly, withResetTo, withDiscardChanges, successMessageFallback, submitButtonTestId, }: Props$d<FormType, DefaultValues>): JSX.Element;
|
|
51
53
|
|
|
52
54
|
declare const Input: React__default.ForwardRefExoticComponent<{
|
|
53
55
|
variant?: "danger" | undefined;
|
|
54
56
|
testId?: string | undefined;
|
|
55
57
|
} & React__default.InputHTMLAttributes<HTMLInputElement> & React__default.RefAttributes<HTMLInputElement>>;
|
|
56
58
|
|
|
57
|
-
declare type InputFieldProps
|
|
59
|
+
declare type InputFieldProps = {
|
|
58
60
|
label: string;
|
|
59
61
|
helpText?: string;
|
|
60
62
|
error?: string;
|
|
@@ -62,30 +64,30 @@ declare type InputFieldProps$1 = {
|
|
|
62
64
|
/**
|
|
63
65
|
* @see https://bulma.io/documentation/form/input/
|
|
64
66
|
*/
|
|
65
|
-
declare const InputField: React__default.ForwardRefExoticComponent<Pick<InputFieldProps
|
|
67
|
+
declare const InputField: React__default.ForwardRefExoticComponent<Pick<InputFieldProps, "label" | "key" | "testId" | "helpText" | "error" | "variant" | keyof React__default.InputHTMLAttributes<HTMLInputElement>> & React__default.RefAttributes<HTMLInputElement>>;
|
|
66
68
|
|
|
67
|
-
declare type Props$
|
|
69
|
+
declare type Props$c<T extends Record<string, unknown>> = Omit<ComponentProps<typeof InputField>, "error" | "label" | "defaultChecked" | "required" | keyof ControllerRenderProps> & {
|
|
68
70
|
rules?: ComponentProps<typeof Controller>["rules"];
|
|
69
71
|
name: Path<T>;
|
|
70
72
|
label?: string;
|
|
71
73
|
};
|
|
72
|
-
declare function ControlledInputField$1<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, className, ...props }: Props$
|
|
74
|
+
declare function ControlledInputField$1<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, className, ...props }: Props$c<T>): JSX.Element;
|
|
73
75
|
|
|
74
76
|
declare const CheckboxField: React__default.ForwardRefExoticComponent<Pick<{
|
|
75
77
|
label: string;
|
|
76
78
|
helpText?: string | undefined;
|
|
77
79
|
testId?: string | undefined;
|
|
78
80
|
labelClassName?: string | undefined;
|
|
79
|
-
} & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type"> & React__default.RefAttributes<HTMLInputElement>, "label" | "
|
|
81
|
+
} & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type"> & React__default.RefAttributes<HTMLInputElement>, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "checked" | "required" | "testId" | "labelClassName" | "helpText" | "readOnly" | "accept" | "alt" | "autoComplete" | "capture" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "size" | "src" | "step" | "width" | "enterKeyHint"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
80
82
|
|
|
81
|
-
declare type Props$
|
|
83
|
+
declare type Props$b<T extends Record<string, unknown>> = Omit<ComponentProps<typeof CheckboxField>, "label" | "defaultValue" | "required" | keyof ControllerRenderProps> & {
|
|
82
84
|
name: Path<T>;
|
|
83
85
|
label?: string;
|
|
84
86
|
rules?: Pick<RegisterOptions, "deps">;
|
|
85
87
|
};
|
|
86
|
-
declare function ControlledInputField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultChecked, readOnly, className, ...props }: Props$
|
|
88
|
+
declare function ControlledInputField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultChecked, readOnly, className, ...props }: Props$b<T>): JSX.Element;
|
|
87
89
|
|
|
88
|
-
declare type Props$
|
|
90
|
+
declare type Props$a<T extends Record<string, unknown>> = Omit<ComponentProps<typeof InputField>, "error" | "label" | "defaultChecked" | "required" | keyof ControllerRenderProps> & {
|
|
89
91
|
rules?: ComponentProps<typeof Controller>["rules"];
|
|
90
92
|
name: Path<T>;
|
|
91
93
|
label?: string;
|
|
@@ -94,7 +96,7 @@ declare type Props$8<T extends Record<string, unknown>> = Omit<ComponentProps<ty
|
|
|
94
96
|
confirmationErrorMessage?: string;
|
|
95
97
|
confirmationTestId?: string;
|
|
96
98
|
};
|
|
97
|
-
declare function ControlledSecretConfirmationField<T extends Record<string, unknown>>({ name, label, confirmationLabel, helpText, confirmationHelpText, rules, confirmationErrorMessage, className, testId, confirmationTestId, defaultValue, readOnly, ...props }: Props$
|
|
99
|
+
declare function ControlledSecretConfirmationField<T extends Record<string, unknown>>({ name, label, confirmationLabel, helpText, confirmationHelpText, rules, confirmationErrorMessage, className, testId, confirmationTestId, defaultValue, readOnly, ...props }: Props$a<T>): JSX.Element;
|
|
98
100
|
|
|
99
101
|
/**
|
|
100
102
|
* @beta
|
|
@@ -108,7 +110,7 @@ declare const Select: React__default.ForwardRefExoticComponent<{
|
|
|
108
110
|
testId?: string | undefined;
|
|
109
111
|
} & React__default.InputHTMLAttributes<HTMLSelectElement> & React__default.RefAttributes<HTMLSelectElement>>;
|
|
110
112
|
|
|
111
|
-
declare type Props$
|
|
113
|
+
declare type Props$9 = {
|
|
112
114
|
label: string;
|
|
113
115
|
helpText?: string;
|
|
114
116
|
error?: string;
|
|
@@ -118,49 +120,14 @@ declare type Props$7 = {
|
|
|
118
120
|
* @beta
|
|
119
121
|
* @since 2.44.0
|
|
120
122
|
*/
|
|
121
|
-
declare const SelectField: React__default.ForwardRefExoticComponent<Pick<Props$
|
|
122
|
-
|
|
123
|
-
declare type Props$6<T extends Record<string, unknown>> = Omit<ComponentProps<typeof SelectField>, "error" | "label" | "required" | keyof ControllerRenderProps> & {
|
|
124
|
-
rules?: ComponentProps<typeof Controller>["rules"];
|
|
125
|
-
name: Path<T>;
|
|
126
|
-
label?: string;
|
|
127
|
-
};
|
|
128
|
-
declare function ControlledSelectField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, className, ...props }: Props$6<T>): JSX.Element;
|
|
129
|
-
|
|
130
|
-
declare type InputFieldProps<T> = {
|
|
131
|
-
label: string;
|
|
132
|
-
createDeleteText?: (value: string) => string;
|
|
133
|
-
helpText?: string;
|
|
134
|
-
error?: string;
|
|
135
|
-
testId?: string;
|
|
136
|
-
id?: string;
|
|
137
|
-
children?: ReactElement;
|
|
138
|
-
placeholder?: string;
|
|
139
|
-
onChange?: (newValue: Option<T>[]) => void;
|
|
140
|
-
value?: Option<T>[] | null;
|
|
141
|
-
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
142
|
-
readOnly?: boolean;
|
|
143
|
-
disabled?: boolean;
|
|
144
|
-
className?: string;
|
|
145
|
-
isLoading?: boolean;
|
|
146
|
-
isNewItemDuplicate?: (existingItem: Option<T>, newItem: Option<T>) => boolean;
|
|
147
|
-
ref?: Ref<HTMLInputElement>;
|
|
148
|
-
};
|
|
149
|
-
declare const _default$1: <T>({ label, helpText, readOnly, disabled, error, createDeleteText, onChange, placeholder, value, className, testId, id, children, isLoading, isNewItemDuplicate, ...props }: InputFieldProps<T>, ref: React__default.ForwardedRef<HTMLInputElement>) => JSX.Element;
|
|
123
|
+
declare const SelectField: React__default.ForwardRefExoticComponent<Pick<Props$9, "label" | "key" | "testId" | "helpText" | "options" | "error" | "variant" | keyof React__default.InputHTMLAttributes<HTMLSelectElement>> & React__default.RefAttributes<HTMLSelectElement>>;
|
|
150
124
|
|
|
151
|
-
declare type Props$
|
|
125
|
+
declare type Props$8<T extends Record<string, unknown>> = Omit<ComponentProps<typeof SelectField>, "error" | "label" | "required" | keyof ControllerRenderProps> & {
|
|
152
126
|
rules?: ComponentProps<typeof Controller>["rules"];
|
|
153
127
|
name: Path<T>;
|
|
154
128
|
label?: string;
|
|
155
|
-
defaultValue?: string[];
|
|
156
|
-
createDeleteText?: (value: string) => string;
|
|
157
|
-
optionFactory?: (val: any) => Option<unknown>;
|
|
158
129
|
};
|
|
159
|
-
|
|
160
|
-
* @beta
|
|
161
|
-
* @since 2.44.0
|
|
162
|
-
*/
|
|
163
|
-
declare function ControlledChipInputField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, placeholder, className, createDeleteText, children, optionFactory, ...props }: Props$5<T>): JSX.Element;
|
|
130
|
+
declare function ControlledSelectField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, className, ...props }: Props$8<T>): JSX.Element;
|
|
164
131
|
|
|
165
132
|
declare type ArrayItemType<T> = T extends Array<infer U> ? U : unknown;
|
|
166
133
|
declare type RenderProps$2<T extends Record<string, unknown>, PATH extends Path<T>> = {
|
|
@@ -168,7 +135,7 @@ declare type RenderProps$2<T extends Record<string, unknown>, PATH extends Path<
|
|
|
168
135
|
index: number;
|
|
169
136
|
remove: () => void;
|
|
170
137
|
};
|
|
171
|
-
declare type Props$
|
|
138
|
+
declare type Props$7<T extends Record<string, unknown>, PATH extends Path<T>> = {
|
|
172
139
|
withDelete?: boolean;
|
|
173
140
|
children: ((renderProps: RenderProps$2<T, PATH>) => React__default.ReactNode | React__default.ReactNode[]) | React__default.ReactNode;
|
|
174
141
|
};
|
|
@@ -176,14 +143,14 @@ declare type Props$4<T extends Record<string, unknown>, PATH extends Path<T>> =
|
|
|
176
143
|
* @beta
|
|
177
144
|
* @since 2.43.0
|
|
178
145
|
*/
|
|
179
|
-
declare function ControlledList<T extends Record<string, unknown>, PATH extends Path<T>>({ withDelete, children, }: Props$
|
|
146
|
+
declare function ControlledList<T extends Record<string, unknown>, PATH extends Path<T>>({ withDelete, children, }: Props$7<T, PATH>): JSX.Element;
|
|
180
147
|
|
|
181
148
|
declare type RenderProps$1<T extends Record<string, unknown>, PATH extends Path<T>> = {
|
|
182
149
|
value: PathValue<T, PATH>;
|
|
183
150
|
index: number;
|
|
184
151
|
remove: () => void;
|
|
185
152
|
};
|
|
186
|
-
declare type Props$
|
|
153
|
+
declare type Props$6<T extends Record<string, unknown>, PATH extends Path<T>> = {
|
|
187
154
|
withDelete?: boolean;
|
|
188
155
|
children: ((renderProps: RenderProps$1<T, PATH>) => React__default.ReactNode | React__default.ReactNode[]) | React__default.ReactNode;
|
|
189
156
|
className?: string;
|
|
@@ -192,10 +159,10 @@ declare type Props$3<T extends Record<string, unknown>, PATH extends Path<T>> =
|
|
|
192
159
|
* @beta
|
|
193
160
|
* @since 2.43.0
|
|
194
161
|
*/
|
|
195
|
-
declare function ControlledTable<T extends Record<string, unknown>, PATH extends Path<T>>({ withDelete, children, className, }: Props$
|
|
162
|
+
declare function ControlledTable<T extends Record<string, unknown>, PATH extends Path<T>>({ withDelete, children, className, }: Props$6<T, PATH>): JSX.Element;
|
|
196
163
|
|
|
197
164
|
declare type RenderProps<T extends Record<string, unknown>> = Omit<UseFormReturn<T>, "register" | "unregister" | "handleSubmit" | "control">;
|
|
198
|
-
declare type Props$
|
|
165
|
+
declare type Props$5<FormType extends Record<string, unknown>, DefaultValues extends FormType> = {
|
|
199
166
|
children: ((renderProps: RenderProps<FormType>) => React__default.ReactNode | React__default.ReactNode[]) | React__default.ReactNode;
|
|
200
167
|
defaultValues: DefaultValues;
|
|
201
168
|
submit?: (data: FormType, append: UseFieldArrayReturn["append"]) => unknown;
|
|
@@ -208,7 +175,7 @@ declare type Props$2<FormType extends Record<string, unknown>, DefaultValues ext
|
|
|
208
175
|
* @beta
|
|
209
176
|
* @since 2.43.0
|
|
210
177
|
*/
|
|
211
|
-
declare function AddListEntryForm<FormType extends Record<string, unknown>, DefaultValues extends FormType>({ children, defaultValues, submit, disableSubmitWhenDirty, }: Props$
|
|
178
|
+
declare function AddListEntryForm<FormType extends Record<string, unknown>, DefaultValues extends FormType>({ children, defaultValues, submit, disableSubmitWhenDirty, }: Props$5<FormType, DefaultValues>): JSX.Element | null;
|
|
212
179
|
|
|
213
180
|
declare type BaseProps<T> = {
|
|
214
181
|
className?: string;
|
|
@@ -258,7 +225,7 @@ declare const _default: <T>({ label, helpText, error, className, isLoading, ...p
|
|
|
258
225
|
isLoading?: boolean | undefined;
|
|
259
226
|
}, ref: React__default.ForwardedRef<HTMLInputElement>) => JSX.Element;
|
|
260
227
|
|
|
261
|
-
declare type Props$
|
|
228
|
+
declare type Props$4<T extends Record<string, unknown>> = Omit<Parameters<typeof _default>[0], "error" | "label" | keyof ControllerRenderProps> & {
|
|
262
229
|
rules?: ComponentProps<typeof Controller>["rules"];
|
|
263
230
|
name: Path<T>;
|
|
264
231
|
label?: string;
|
|
@@ -268,9 +235,48 @@ declare type Props$1<T extends Record<string, unknown>> = Omit<Parameters<typeof
|
|
|
268
235
|
* @beta
|
|
269
236
|
* @since 2.45.0
|
|
270
237
|
*/
|
|
271
|
-
declare function ControlledComboboxField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, className, optionFactory, ...props }: Props$
|
|
238
|
+
declare function ControlledComboboxField<T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, className, optionFactory, ...props }: Props$4<T>): JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare type Props$3 = {
|
|
241
|
+
options?: {
|
|
242
|
+
value: string;
|
|
243
|
+
label?: string;
|
|
244
|
+
helpText?: string;
|
|
245
|
+
}[];
|
|
246
|
+
} & ComponentProps<typeof _radix_ui_react_radio_group.Root>;
|
|
247
|
+
/**
|
|
248
|
+
* @beta
|
|
249
|
+
* @since 2.48.0
|
|
250
|
+
*/
|
|
251
|
+
declare const RadioGroup$1: React__default.ForwardRefExoticComponent<Pick<Props$3, "slot" | "style" | "title" | "key" | "disabled" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "required" | "options" | "orientation" | "loop" | "onValueChange"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
252
|
+
|
|
253
|
+
declare type Props$2 = {
|
|
254
|
+
fieldClassName?: string;
|
|
255
|
+
labelClassName?: string;
|
|
256
|
+
label: string;
|
|
257
|
+
helpText?: string;
|
|
258
|
+
} & ComponentProps<typeof RadioGroup$1>;
|
|
259
|
+
/**
|
|
260
|
+
* @beta
|
|
261
|
+
* @since 2.48.0
|
|
262
|
+
*/
|
|
263
|
+
declare const RadioGroupField$1: React__default.ForwardRefExoticComponent<Pick<Props$2, "label" | "slot" | "style" | "title" | "key" | "disabled" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "required" | "labelClassName" | "helpText" | "options" | "orientation" | "loop" | "onValueChange" | "fieldClassName"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
264
|
+
|
|
265
|
+
declare type Props$1<T extends Record<string, unknown>> = Omit<ComponentProps<typeof RadioGroupField$1>, "label" | keyof ControllerRenderProps> & {
|
|
266
|
+
name: Path<T>;
|
|
267
|
+
rules?: ComponentProps<typeof Controller>["rules"];
|
|
268
|
+
label?: string;
|
|
269
|
+
readOnly?: boolean;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* @beta
|
|
273
|
+
* @since 2.48.0
|
|
274
|
+
*/
|
|
275
|
+
declare function ControlledRadioGroupField<T extends Record<string, unknown>>({ name, label, helpText, rules, defaultValue, children, fieldClassName, readOnly, ...props }: Props$1<T>): JSX.Element;
|
|
272
276
|
|
|
273
|
-
declare const Field: FC<HTMLProps<HTMLDivElement
|
|
277
|
+
declare const Field: FC<HTMLProps<HTMLDivElement> | ({
|
|
278
|
+
as: keyof JSX.IntrinsicElements;
|
|
279
|
+
} & HTMLProps<HTMLElement>)>;
|
|
274
280
|
|
|
275
281
|
/**
|
|
276
282
|
* @see https://bulma.io/documentation/form/checkbox/
|
|
@@ -330,8 +336,49 @@ declare type DeleteResourceOptions = {
|
|
|
330
336
|
*/
|
|
331
337
|
declare const useDeleteResource: <T extends HalRepresentation>(idFactory: (createdResource: T) => string, { collectionName: [entityQueryKey, collectionName] }?: DeleteResourceOptions) => MutationResult<T, unknown>;
|
|
332
338
|
|
|
333
|
-
declare const Label: FC<HTMLProps<HTMLLabelElement
|
|
339
|
+
declare const Label: FC<HTMLProps<HTMLLabelElement> | ({
|
|
340
|
+
as: keyof JSX.IntrinsicElements;
|
|
341
|
+
} & HTMLProps<HTMLElement>)>;
|
|
334
342
|
|
|
343
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Pick<{
|
|
344
|
+
options?: {
|
|
345
|
+
value: string;
|
|
346
|
+
label?: string | undefined;
|
|
347
|
+
helpText?: string | undefined;
|
|
348
|
+
}[] | undefined;
|
|
349
|
+
} & _radix_ui_react_radio_group.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "slot" | "style" | "title" | "key" | "disabled" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "required" | "options" | "orientation" | "loop" | "onValueChange"> & React.RefAttributes<HTMLDivElement>> & {
|
|
350
|
+
Option: React.ForwardRefExoticComponent<Pick<{
|
|
351
|
+
value: string;
|
|
352
|
+
id?: string | undefined;
|
|
353
|
+
testId?: string | undefined;
|
|
354
|
+
indicatorClassName?: string | undefined;
|
|
355
|
+
label?: string | undefined;
|
|
356
|
+
labelClassName?: string | undefined;
|
|
357
|
+
helpText?: string | undefined;
|
|
358
|
+
} & _radix_ui_react_radio_group.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "form" | "label" | "slot" | "style" | "title" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "checked" | "required" | "testId" | "indicatorClassName" | "labelClassName" | "helpText"> & React.RefAttributes<HTMLButtonElement>>;
|
|
359
|
+
};
|
|
360
|
+
declare const RadioGroupField: React.ForwardRefExoticComponent<Pick<{
|
|
361
|
+
fieldClassName?: string | undefined;
|
|
362
|
+
labelClassName?: string | undefined;
|
|
363
|
+
label: string;
|
|
364
|
+
helpText?: string | undefined;
|
|
365
|
+
} & Pick<{
|
|
366
|
+
options?: {
|
|
367
|
+
value: string;
|
|
368
|
+
label?: string | undefined;
|
|
369
|
+
helpText?: string | undefined;
|
|
370
|
+
}[] | undefined;
|
|
371
|
+
} & _radix_ui_react_radio_group.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "slot" | "style" | "title" | "key" | "disabled" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "required" | "options" | "orientation" | "loop" | "onValueChange"> & React.RefAttributes<HTMLDivElement>, "label" | "slot" | "style" | "title" | "key" | "disabled" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "required" | "labelClassName" | "helpText" | "options" | "orientation" | "loop" | "onValueChange" | "fieldClassName"> & React.RefAttributes<HTMLDivElement>> & {
|
|
372
|
+
Option: React.ForwardRefExoticComponent<Pick<{
|
|
373
|
+
value: string;
|
|
374
|
+
id?: string | undefined;
|
|
375
|
+
testId?: string | undefined;
|
|
376
|
+
indicatorClassName?: string | undefined;
|
|
377
|
+
label?: string | undefined;
|
|
378
|
+
labelClassName?: string | undefined;
|
|
379
|
+
helpText?: string | undefined;
|
|
380
|
+
} & _radix_ui_react_radio_group.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "form" | "label" | "slot" | "style" | "title" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "checked" | "required" | "testId" | "indicatorClassName" | "labelClassName" | "helpText"> & React.RefAttributes<HTMLButtonElement>>;
|
|
381
|
+
};
|
|
335
382
|
declare const ChipInputField: (<T>({ label, helpText, readOnly, disabled, error, createDeleteText, onChange, placeholder, value, className, testId, id, children, isLoading, isNewItemDuplicate, ...props }: {
|
|
336
383
|
label: string;
|
|
337
384
|
createDeleteText?: ((value: string) => string) | undefined;
|
|
@@ -357,14 +404,14 @@ declare const ChipInputField: (<T>({ label, helpText, readOnly, disabled, error,
|
|
|
357
404
|
testId?: string | undefined;
|
|
358
405
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>, "onClick"> & {
|
|
359
406
|
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
360
|
-
}, "
|
|
407
|
+
}, "form" | "slot" | "style" | "title" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof {
|
|
361
408
|
variant?: ("secondary" | "primary" | "tertiary" | "signal") | undefined;
|
|
362
409
|
isLoading?: boolean | undefined;
|
|
363
410
|
testId?: string | undefined;
|
|
364
|
-
} | "
|
|
411
|
+
} | "inputRef"> & React.RefAttributes<HTMLButtonElement>>;
|
|
365
412
|
};
|
|
366
413
|
declare const Form: typeof Form$1 & {
|
|
367
|
-
Row: React.ForwardRefExoticComponent<Pick<React.HTMLProps<HTMLDivElement>, "label" | "
|
|
414
|
+
Row: React.ForwardRefExoticComponent<Pick<React.HTMLProps<HTMLDivElement>, "form" | "label" | "span" | "cite" | "data" | "slot" | "style" | "summary" | "title" | "pattern" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "checked" | "required" | "loop" | "readOnly" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLDivElement>>;
|
|
368
415
|
Input: typeof ControlledInputField$1;
|
|
369
416
|
Checkbox: typeof ControlledInputField;
|
|
370
417
|
SecretConfirmation: typeof ControlledSecretConfirmationField;
|
|
@@ -383,8 +430,62 @@ declare const Form: typeof Form$1 & {
|
|
|
383
430
|
children?: ((value: unknown) => React.ReactNode | React.ReactNode[]) | undefined;
|
|
384
431
|
} & React.HTMLAttributes<HTMLTableCellElement>>;
|
|
385
432
|
};
|
|
386
|
-
ChipInput:
|
|
433
|
+
ChipInput: <T extends Record<string, unknown>>({ name, label, helpText, rules, testId, defaultValue, readOnly, placeholder, className, createDeleteText, children, optionFactory, ...props }: Omit<{
|
|
434
|
+
label: string;
|
|
435
|
+
createDeleteText?: ((value: string) => string) | undefined;
|
|
436
|
+
helpText?: string | undefined;
|
|
437
|
+
error?: string | undefined;
|
|
438
|
+
testId?: string | undefined;
|
|
439
|
+
id?: string | undefined;
|
|
440
|
+
children?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
441
|
+
placeholder?: string | undefined;
|
|
442
|
+
onChange?: ((newValue: _scm_manager_ui_types.Option<unknown>[]) => void) | undefined;
|
|
443
|
+
value?: _scm_manager_ui_types.Option<unknown>[] | null | undefined;
|
|
444
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
445
|
+
readOnly?: boolean | undefined;
|
|
446
|
+
disabled?: boolean | undefined;
|
|
447
|
+
className?: string | undefined;
|
|
448
|
+
isLoading?: boolean | undefined;
|
|
449
|
+
isNewItemDuplicate?: ((existingItem: _scm_manager_ui_types.Option<unknown>, newItem: _scm_manager_ui_types.Option<unknown>) => boolean) | undefined;
|
|
450
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
451
|
+
}, "label" | "defaultChecked" | "required" | "createDeleteText" | "error" | keyof react_hook_form.ControllerRenderProps<react_hook_form.FieldValues, string>> & {
|
|
452
|
+
rules?: Omit<Partial<{
|
|
453
|
+
required: string | react_hook_form.ValidationRule<boolean>;
|
|
454
|
+
min: react_hook_form.ValidationRule<string | number>;
|
|
455
|
+
max: react_hook_form.ValidationRule<string | number>;
|
|
456
|
+
maxLength: react_hook_form.ValidationRule<number>;
|
|
457
|
+
minLength: react_hook_form.ValidationRule<number>;
|
|
458
|
+
pattern: react_hook_form.ValidationRule<RegExp>;
|
|
459
|
+
validate: react_hook_form.Validate<any> | Record<string, react_hook_form.Validate<any>>;
|
|
460
|
+
valueAsNumber: boolean;
|
|
461
|
+
valueAsDate: boolean;
|
|
462
|
+
value: any;
|
|
463
|
+
setValueAs: (value: any) => any;
|
|
464
|
+
shouldUnregister?: boolean | undefined;
|
|
465
|
+
onChange?: ((event: any) => void) | undefined;
|
|
466
|
+
onBlur?: ((event: any) => void) | undefined;
|
|
467
|
+
disabled: boolean;
|
|
468
|
+
deps: string | string[];
|
|
469
|
+
}>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
|
470
|
+
name: react_hook_form.Path<T>;
|
|
471
|
+
label?: string | undefined;
|
|
472
|
+
defaultValue?: string[] | undefined;
|
|
473
|
+
createDeleteText?: ((value: string) => string) | undefined;
|
|
474
|
+
optionFactory?: ((val: any) => _scm_manager_ui_types.Option<unknown>) | undefined;
|
|
475
|
+
ref?: React.ForwardedRef<HTMLInputElement> | undefined;
|
|
476
|
+
}, ref: React.ForwardedRef<HTMLInputElement>) => JSX.Element;
|
|
387
477
|
Combobox: typeof ControlledComboboxField;
|
|
478
|
+
RadioGroup: typeof ControlledRadioGroupField & {
|
|
479
|
+
Option: React.ForwardRefExoticComponent<Pick<{
|
|
480
|
+
value: string;
|
|
481
|
+
id?: string | undefined;
|
|
482
|
+
testId?: string | undefined;
|
|
483
|
+
indicatorClassName?: string | undefined;
|
|
484
|
+
label?: string | undefined;
|
|
485
|
+
labelClassName?: string | undefined;
|
|
486
|
+
helpText?: string | undefined;
|
|
487
|
+
} & _radix_ui_react_radio_group.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "form" | "label" | "slot" | "style" | "title" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "checked" | "required" | "testId" | "indicatorClassName" | "labelClassName" | "helpText"> & React.RefAttributes<HTMLButtonElement>>;
|
|
488
|
+
};
|
|
388
489
|
};
|
|
389
490
|
|
|
390
|
-
export { Checkbox, ChipInputField, Combobox, _default as ComboboxField, ConfigurationForm, Field, Form, Input, Label, Select, SelectField, Textarea, useCreateResource, useDeleteResource, useUpdateResource };
|
|
491
|
+
export { Checkbox, ChipInputField, Combobox, _default as ComboboxField, ConfigurationForm, Field, Form, Input, Label, RadioGroup, RadioGroupField, Select, SelectField, Textarea, useCreateResource, useDeleteResource, useUpdateResource };
|