@up42/up-components 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/EmptyState/EmptyState.d.ts +5 -4
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +3 -3
- package/dist/cjs/types/components/FormInput/FormInput.d.ts +3 -3
- package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +3 -3
- package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +10 -11
- package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +4 -4
- package/dist/cjs/types/components/Select/Select.d.ts +3 -3
- package/dist/cjs/types/components/TabGroup/TabGroup.d.ts +1 -1
- package/dist/cjs/types/global/utils/types.d.ts +1 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/EmptyState/EmptyState.d.ts +5 -4
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +3 -3
- package/dist/esm/types/components/FormInput/FormInput.d.ts +3 -3
- package/dist/esm/types/components/FormRadio/FormRadio.d.ts +3 -3
- package/dist/esm/types/components/FormSelect/FormSelect.d.ts +10 -11
- package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +4 -4
- package/dist/esm/types/components/Select/Select.d.ts +3 -3
- package/dist/esm/types/components/TabGroup/TabGroup.d.ts +1 -1
- package/dist/esm/types/global/utils/types.d.ts +1 -3
- package/dist/index.d.ts +27 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -78,12 +78,8 @@ type MUIGlobalOmit<MuiProps, ComponentProps = unknown> = ComponentProps &
|
|
|
78
78
|
| 'touchRippleRef'
|
|
79
79
|
>
|
|
80
80
|
|
|
81
|
-
type
|
|
82
|
-
|
|
83
|
-
type FormBaseProps<C extends React__default.ElementType> = BaseProps<
|
|
84
|
-
C,
|
|
81
|
+
type FormBaseProps = BoxProps$1 &
|
|
85
82
|
Pick<TextFieldProps, 'id' | 'label' | 'required' | 'error' | 'disabled' | 'focused' | 'helperText'>
|
|
86
|
-
>
|
|
87
83
|
|
|
88
84
|
declare type ButtonProps = MUIGlobalOmit<ButtonProps$1, {
|
|
89
85
|
loading?: boolean;
|
|
@@ -177,7 +173,7 @@ declare type CheckboxProps = MUIGlobalOmit<CheckboxProps$1>;
|
|
|
177
173
|
*/
|
|
178
174
|
declare const Checkbox: ({ ...props }: CheckboxProps) => JSX.Element;
|
|
179
175
|
|
|
180
|
-
declare type FormCheckboxProps
|
|
176
|
+
declare type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
181
177
|
data: {
|
|
182
178
|
value: string | number;
|
|
183
179
|
label?: React__default.ReactNode;
|
|
@@ -186,14 +182,14 @@ declare type FormCheckboxProps<C extends React__default.ElementType = 'div'> = C
|
|
|
186
182
|
/**
|
|
187
183
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
188
184
|
*/
|
|
189
|
-
declare const FormCheckbox: React__default.ForwardRefExoticComponent<Pick<
|
|
185
|
+
declare const FormCheckbox: React__default.ForwardRefExoticComponent<Pick<_mui_system.SystemProps<_mui_material.Theme> & {
|
|
190
186
|
children?: React__default.ReactNode;
|
|
191
187
|
component?: React__default.ElementType<any> | undefined;
|
|
192
188
|
ref?: React__default.Ref<unknown> | undefined;
|
|
193
189
|
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
194
190
|
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
195
191
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
196
|
-
},
|
|
192
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "ref" | "component" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & Pick<_mui_material.TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & Omit<_mui_material.CheckboxProps, "action" | "classes" | "tabIndex" | "disableFocusRipple" | "disableRipple" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation"> & {
|
|
197
193
|
data: {
|
|
198
194
|
value: string | number;
|
|
199
195
|
label?: React__default.ReactNode;
|
|
@@ -240,7 +236,7 @@ declare type RadioProps = MUIGlobalOmit<RadioProps$1>;
|
|
|
240
236
|
*/
|
|
241
237
|
declare const Radio: (props: RadioProps) => JSX.Element;
|
|
242
238
|
|
|
243
|
-
declare type FormRadioProps
|
|
239
|
+
declare type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
244
240
|
inputRef?: RadioProps['inputRef'];
|
|
245
241
|
data: {
|
|
246
242
|
value: string | number;
|
|
@@ -251,14 +247,14 @@ declare type FormRadioProps<C extends React__default.ElementType = 'div'> = Radi
|
|
|
251
247
|
/**
|
|
252
248
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
253
249
|
*/
|
|
254
|
-
declare const FormRadio: React__default.ForwardRefExoticComponent<Pick<
|
|
250
|
+
declare const FormRadio: React__default.ForwardRefExoticComponent<Pick<_mui_system.SystemProps<_mui_material.Theme> & {
|
|
255
251
|
children?: React__default.ReactNode;
|
|
256
252
|
component?: React__default.ElementType<any> | undefined;
|
|
257
253
|
ref?: React__default.Ref<unknown> | undefined;
|
|
258
254
|
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
259
255
|
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
260
256
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
261
|
-
},
|
|
257
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "ref" | "component" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & Pick<_mui_material.TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & RadioGroupProps & {
|
|
262
258
|
inputRef?: RadioProps['inputRef'];
|
|
263
259
|
data: {
|
|
264
260
|
value: string | number;
|
|
@@ -273,50 +269,48 @@ declare type SwitchProps = MUIGlobalOmit<SwitchProps$1>;
|
|
|
273
269
|
*/
|
|
274
270
|
declare const Switch: (props: SwitchProps) => JSX.Element;
|
|
275
271
|
|
|
276
|
-
declare type FormSwitchProps
|
|
272
|
+
declare type FormSwitchProps = FormBaseProps & SwitchProps & {
|
|
277
273
|
formControlLabel?: string;
|
|
278
274
|
};
|
|
279
275
|
/**
|
|
280
276
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
281
277
|
*/
|
|
282
|
-
declare const FormSwitch: React__default.ForwardRefExoticComponent<Pick<
|
|
278
|
+
declare const FormSwitch: React__default.ForwardRefExoticComponent<Pick<_mui_system.SystemProps<_mui_material.Theme> & {
|
|
283
279
|
children?: React__default.ReactNode;
|
|
284
280
|
component?: React__default.ElementType<any> | undefined;
|
|
285
281
|
ref?: React__default.Ref<unknown> | undefined;
|
|
286
282
|
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
287
283
|
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
288
284
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
289
|
-
},
|
|
285
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "ref" | "component" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & Pick<_mui_material.TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & Omit<_mui_material.SwitchProps, "action" | "classes" | "tabIndex" | "disableFocusRipple" | "disableRipple" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation"> & {
|
|
290
286
|
formControlLabel?: string | undefined;
|
|
291
287
|
}, "error" | keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "form" | "label" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "icon" | "type" | "name" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "checked" | "readOnly" | "required" | "size" | "component" | "onFocusVisible" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "focused" | "helperText" | "inputProps" | "inputRef" | "checkedIcon" | "edge" | "formControlLabel"> & React__default.RefAttributes<unknown>>;
|
|
292
288
|
|
|
293
|
-
declare type SelectProps =
|
|
289
|
+
declare type SelectProps<T extends unknown> = FormBaseProps & Omit<SelectProps$1<T>, 'variant'>;
|
|
294
290
|
/**
|
|
295
291
|
* Documentation: https://up-components.up42.dev/?path=/docs/data-entry-select
|
|
296
292
|
*/
|
|
297
|
-
declare const Select: (props: SelectProps) => JSX.Element;
|
|
293
|
+
declare const Select: <T extends unknown>(props: SelectProps<T>) => JSX.Element;
|
|
298
294
|
|
|
299
|
-
declare type
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
295
|
+
declare type Option = {
|
|
296
|
+
value: string | number;
|
|
297
|
+
label: string | ReactNode;
|
|
298
|
+
};
|
|
299
|
+
declare type FormSelectProps = FormBaseProps & SelectProps<string | number> & {
|
|
300
|
+
options: Option[];
|
|
304
301
|
};
|
|
305
302
|
/**
|
|
306
303
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
307
304
|
*/
|
|
308
|
-
declare const FormSelect: React__default.ForwardRefExoticComponent<Pick<
|
|
305
|
+
declare const FormSelect: React__default.ForwardRefExoticComponent<Pick<_mui_system.SystemProps<_mui_material.Theme> & {
|
|
309
306
|
children?: React__default.ReactNode;
|
|
310
307
|
component?: React__default.ElementType<any> | undefined;
|
|
311
308
|
ref?: React__default.Ref<unknown> | undefined;
|
|
312
309
|
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
313
310
|
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
314
311
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
315
|
-
},
|
|
316
|
-
options:
|
|
317
|
-
value: string | number;
|
|
318
|
-
label: string | ReactNode;
|
|
319
|
-
}[];
|
|
312
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "ref" | "component" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & Pick<_mui_material.TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & Omit<_mui_material.SelectProps<string | number>, "variant"> & {
|
|
313
|
+
options: Option[];
|
|
320
314
|
}, "error" | keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "input" | "label" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "onClose" | "type" | "name" | "autoFocus" | "disabled" | "value" | "open" | "autoComplete" | "multiple" | "readOnly" | "required" | "size" | "rows" | "component" | "components" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "focused" | "helperText" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "maxRows" | "minRows" | "componentsProps" | "onOpen" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "notched" | "options" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & React__default.RefAttributes<unknown>>;
|
|
321
315
|
|
|
322
316
|
declare type InputProps = Omit<TextFieldProps, 'maxRows' | 'minRows' | 'multiline' | 'rows' | 'size' | 'variant'>;
|
|
@@ -325,18 +319,18 @@ declare type InputProps = Omit<TextFieldProps, 'maxRows' | 'minRows' | 'multilin
|
|
|
325
319
|
*/
|
|
326
320
|
declare const Input: ({ type, ...props }: InputProps) => JSX.Element;
|
|
327
321
|
|
|
328
|
-
declare type FormInputProps
|
|
322
|
+
declare type FormInputProps = FormBaseProps & InputProps;
|
|
329
323
|
/**
|
|
330
324
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
331
325
|
*/
|
|
332
|
-
declare const FormInput: React__default.ForwardRefExoticComponent<Pick<
|
|
326
|
+
declare const FormInput: React__default.ForwardRefExoticComponent<Pick<_mui_system.SystemProps<_mui_material.Theme> & {
|
|
333
327
|
children?: React__default.ReactNode;
|
|
334
328
|
component?: React__default.ElementType<any> | undefined;
|
|
335
329
|
ref?: React__default.Ref<unknown> | undefined;
|
|
336
330
|
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
337
331
|
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
338
332
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
339
|
-
},
|
|
333
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "ref" | "component" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & Pick<_mui_material.TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & InputProps, "error" | keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "label" | "slot" | "select" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "type" | "name" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "component" | ("color" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "focused" | "helperText" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "InputLabelProps" | "inputProps" | "inputRef" | "SelectProps"> & React__default.RefAttributes<unknown>>;
|
|
340
334
|
|
|
341
335
|
declare type SliderProps = MUIGlobalOmit<Omit<SliderProps$1, 'variant' | 'label'>>;
|
|
342
336
|
/**
|
|
@@ -394,14 +388,14 @@ declare type TabGroupProps = {
|
|
|
394
388
|
/**
|
|
395
389
|
* An optional event to be called when additional action is needed when changing tab
|
|
396
390
|
*/
|
|
397
|
-
onChange?:
|
|
391
|
+
onChange?: TabsProps['onChange'];
|
|
398
392
|
};
|
|
399
393
|
/**
|
|
400
394
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
|
|
401
395
|
*/
|
|
402
396
|
declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => JSX.Element;
|
|
403
397
|
|
|
404
|
-
declare type EmptyStateProps
|
|
398
|
+
declare type EmptyStateProps = MUIGlobalOmit<Omit<BoxProps$1, 'component'>, {
|
|
405
399
|
/**
|
|
406
400
|
* Helpful message that conveys the purpose of the screen and the next action to populate the space
|
|
407
401
|
*/
|
|
@@ -422,7 +416,7 @@ declare type EmptyStateProps<C extends React__default.ElementType = 'div'> = Bas
|
|
|
422
416
|
/**
|
|
423
417
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-emptystate
|
|
424
418
|
*/
|
|
425
|
-
declare const EmptyState:
|
|
419
|
+
declare const EmptyState: ({ icon: Icon, title, subTitle, action, sx, ...props }: EmptyStateProps) => JSX.Element;
|
|
426
420
|
|
|
427
421
|
declare type ModalProps = MUIGlobalOmit<ModalProps$1>;
|
|
428
422
|
/**
|