@devsisters/dwds-react
Advanced tools
Comparing version 1.1.0-rc.2 to 1.1.0-rc.3
@@ -29,3 +29,3 @@ import * as React from 'react'; | ||
type IconType = React.ComponentProps<typeof Icon>['type']; | ||
interface ButtonProps extends React.ComponentProps<'button'> { | ||
interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> { | ||
size?: Size$2; | ||
@@ -37,7 +37,8 @@ color?: Color$2; | ||
iconType?: IconType; | ||
disabled?: boolean; | ||
type?: 'button' | 'submit' | 'reset'; | ||
} | ||
declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "form" | "slot" | "style" | "title" | "iconType" | "size" | "buttonType" | "disabled" | "draggable" | "className" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "hidden" | "id" | "lang" | "nonce" | "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" | "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" | "children" | "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" | "onResize" | "onResizeCapture" | "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" | "width" | "iconPosition"> & React.RefAttributes<HTMLButtonElement>>; | ||
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; | ||
type BaseProps$5 = React.ComponentProps<'input'>; | ||
type _SwitchProps = { | ||
interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> { | ||
id: string; | ||
@@ -47,9 +48,8 @@ size?: 'small' | 'medium'; | ||
label?: string; | ||
}; | ||
type SwitchProps = _SwitchProps & Omit<BaseProps$5, keyof _SwitchProps>; | ||
declare const Switch: React.ForwardRefExoticComponent<Pick<SwitchProps, "form" | "slot" | "style" | "title" | "pattern" | "disabled" | "list" | "draggable" | "required" | "className" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "hidden" | "lang" | "nonce" | "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" | "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" | "children" | "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" | "onResize" | "onResizeCapture" | "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" | "maxLength" | "accept" | "step" | "width" | keyof _SwitchProps | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "height" | "max" | "min" | "minLength" | "multiple" | "readOnly" | "src"> & React.RefAttributes<HTMLInputElement>>; | ||
} | ||
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>; | ||
type Size$1 = 'tiny' | 'small' | 'medium' | 'large'; | ||
type Type$1 = 'normal' | 'line' | 'square'; | ||
interface IconButtonProps extends React.ComponentProps<'button'> { | ||
interface IconButtonProps extends React.HTMLAttributes<HTMLButtonElement> { | ||
iconType: SvgMapKey; | ||
@@ -89,4 +89,3 @@ size?: Size$1; | ||
type BaseProps$4 = React.ComponentProps<'input'>; | ||
type _ThemeButtonProps = { | ||
interface ThemeButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value'> { | ||
value?: boolean; | ||
@@ -98,4 +97,3 @@ ariaLabel?: { | ||
onClick: () => void; | ||
}; | ||
type ThemeButtonProps = _ThemeButtonProps & Omit<BaseProps$4, keyof _ThemeButtonProps>; | ||
} | ||
declare function ThemeButton(props: ThemeButtonProps): JSX.Element; | ||
@@ -108,3 +106,3 @@ declare namespace ThemeButton { | ||
type Type = 'line' | 'fill'; | ||
interface LabelProps extends React.ComponentProps<'span'> { | ||
interface LabelProps extends React.HTMLAttributes<HTMLSpanElement> { | ||
type?: 'alert' | `${Color$1}-${Type}`; | ||
@@ -117,7 +115,7 @@ } | ||
interface BaseProps$3 extends React.PropsWithChildren { | ||
interface BaseProps extends React.PropsWithChildren { | ||
color?: 'primary' | 'secondary' | 'status-success' | 'status-error' | 'status-warning'; | ||
className?: string; | ||
} | ||
interface TextBadge extends BaseProps$3 { | ||
interface TextBadge extends BaseProps { | ||
type: 'text'; | ||
@@ -128,7 +126,7 @@ position?: 'absolute' | 'static'; | ||
} | ||
interface NumberBadge extends BaseProps$3 { | ||
interface NumberBadge extends BaseProps { | ||
type: 'number'; | ||
text: number; | ||
} | ||
interface DotBadge extends BaseProps$3 { | ||
interface DotBadge extends BaseProps { | ||
type: 'dot'; | ||
@@ -142,3 +140,3 @@ } | ||
interface TooltipProps extends React.ComponentProps<'div'> { | ||
interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> { | ||
description: React.ReactNode; | ||
@@ -160,3 +158,3 @@ title?: string; | ||
type ToastType = `info-${Color}` | 'success' | 'warning' | 'alert'; | ||
interface ToastProps extends React.ComponentProps<'div'> { | ||
interface ToastProps extends React.HTMLAttributes<HTMLDivElement> { | ||
text: string; | ||
@@ -176,3 +174,3 @@ type: ToastType; | ||
interface ModalProps extends React.ComponentProps<'div'> { | ||
interface ModalProps extends React.HTMLAttributes<HTMLDivElement> { | ||
open: boolean; | ||
@@ -197,3 +195,3 @@ title: string; | ||
interface ChipProps extends React.ComponentProps<'span'> { | ||
interface ChipProps extends React.HTMLAttributes<HTMLSpanElement> { | ||
color?: 'primary' | 'gray'; | ||
@@ -216,3 +214,3 @@ rounded?: boolean; | ||
} | ||
interface AccordianProps extends React.ComponentProps<'div'> { | ||
interface AccordianProps extends React.HTMLAttributes<HTMLDivElement> { | ||
type?: 'line' | 'box'; | ||
@@ -244,3 +242,3 @@ size?: 'medium' | 'large'; | ||
maxLength?: number; | ||
description?: string; | ||
description?: React__default.ReactNode; | ||
onReset?: VoidFunction; | ||
@@ -258,3 +256,3 @@ onChange?: ChangeEventHandler<HTMLInputElement>; | ||
value?: string; | ||
description?: string; | ||
description?: React__default.ReactNode; | ||
onChange?: ChangeEventHandler<HTMLTextAreaElement>; | ||
@@ -272,3 +270,3 @@ } | ||
value?: File; | ||
description?: string; | ||
description?: React__default.ReactNode; | ||
onReset?: VoidFunction; | ||
@@ -303,4 +301,3 @@ onChange?: ChangeEventHandler<HTMLInputElement>; | ||
}; | ||
type BaseProps$2 = React.ComponentProps<'div'>; | ||
type _SelectProps = { | ||
interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> { | ||
size?: Size; | ||
@@ -320,5 +317,4 @@ options: Option[]; | ||
description?: string; | ||
}; | ||
type SelectProps = _SelectProps & Omit<BaseProps$2, keyof _SelectProps>; | ||
declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps, "slot" | "style" | "title" | "draggable" | "className" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "hidden" | "id" | "lang" | "nonce" | "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" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResize" | "onResizeCapture" | "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" | keyof _SelectProps> & React.RefAttributes<HTMLSelectElement>>; | ||
} | ||
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>; | ||
@@ -330,4 +326,3 @@ type TabItem = { | ||
}; | ||
type BaseProps$1 = React.ComponentProps<'span'>; | ||
type _TabProps = { | ||
interface TabProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'onChange'> { | ||
type?: 'card' | 'round' | 'line' | 'box' | 'text' | 'panel'; | ||
@@ -339,4 +334,3 @@ onChange?: (index: number) => void; | ||
color?: string; | ||
}; | ||
type TabProps = _TabProps & Omit<BaseProps$1, keyof _TabProps>; | ||
} | ||
declare function Tab(props: TabProps): JSX.Element; | ||
@@ -347,3 +341,3 @@ declare namespace Tab { | ||
interface ProgressProps extends React.ComponentProps<'div'> { | ||
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> { | ||
type?: 'spinner'; | ||
@@ -357,3 +351,3 @@ isBox?: boolean; | ||
type ScrollAreaProps = React__default.ComponentProps<'div'>; | ||
type ScrollAreaProps = React__default.HTMLAttributes<HTMLDivElement>; | ||
declare function ScrollArea(props: ScrollAreaProps): JSX.Element; | ||
@@ -366,3 +360,3 @@ declare namespace ScrollArea { | ||
id: string; | ||
label: string; | ||
label?: string; | ||
labelDirection?: 'left' | 'right'; | ||
@@ -373,4 +367,3 @@ value: string; | ||
type BaseProps = React.ComponentProps<'fieldset'>; | ||
type _RadioGroupProps = { | ||
interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLFieldSetElement>, 'onChange'> { | ||
name: string; | ||
@@ -389,4 +382,3 @@ title?: string; | ||
}[]; | ||
}; | ||
type RadioGroupProps = _RadioGroupProps & Omit<BaseProps, keyof _RadioGroupProps>; | ||
} | ||
declare function RadioGroup(props: RadioGroupProps): JSX.Element; | ||
@@ -397,3 +389,3 @@ declare namespace RadioGroup { | ||
interface DividerProps extends React.ComponentProps<'hr'> { | ||
interface DividerProps extends React.HTMLAttributes<HTMLHRElement> { | ||
type?: 'solid' | 'dotted' | 'dashed' | 'double'; | ||
@@ -447,2 +439,3 @@ vertical?: boolean; | ||
onChangeSelectedRows?: (value: number[]) => void; | ||
additionalComponent?: React.ReactNode; | ||
} | ||
@@ -454,3 +447,3 @@ declare function DataTable(props: DataTableProps): JSX.Element; | ||
type TableBodyProps = React.ComponentProps<'tbody'>; | ||
type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>; | ||
declare function TableBody(props: TableBodyProps): JSX.Element; | ||
@@ -467,3 +460,3 @@ declare namespace TableBody { | ||
interface TableProps extends React.ComponentProps<'table'> { | ||
interface TableProps extends React.HTMLAttributes<HTMLTableElement> { | ||
size?: 'small' | 'medium'; | ||
@@ -480,3 +473,3 @@ type?: 'line' | 'fill'; | ||
type TableHeadProps = React.ComponentProps<'thead'>; | ||
type TableHeadProps = React.HTMLAttributes<HTMLTableSectionElement>; | ||
declare function TableHead(props: TableHeadProps): JSX.Element; | ||
@@ -487,3 +480,3 @@ declare namespace TableHead { | ||
type TableRowProps = React.ComponentProps<'tr'>; | ||
type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>; | ||
declare function TableRow(props: TableRowProps): JSX.Element; | ||
@@ -494,3 +487,3 @@ declare namespace TableRow { | ||
interface NoDataRowProps extends React.ComponentProps<'tr'> { | ||
interface NoDataRowProps extends React.HTMLAttributes<HTMLDivElement> { | ||
description?: string; | ||
@@ -497,0 +490,0 @@ colspan?: number; |
{ | ||
"name": "@devsisters/dwds-react", | ||
"version": "1.1.0-rc.2", | ||
"version": "1.1.0-rc.3", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1241239
31617