@databricks/design-system 1.0.0 → 1.1.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/.pkgr-sources-hash +1 -1
- package/dist/cjs/index.js +5226 -11264
- package/dist/cjs/index.js.map +1 -1
- package/dist/design-system/Button/Button.d.ts +6 -6
- package/dist/design-system/Checkbox/Checkbox.d.ts +11 -9
- package/dist/design-system/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/design-system/Collapse/Collapse.d.ts +1 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +8 -8
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts +1 -0
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +24 -0
- package/dist/design-system/DropdownMenu/index.d.ts +1 -0
- package/dist/design-system/Form/Form.d.ts +4 -2
- package/dist/design-system/Icon/iconMap.d.ts +1 -1
- package/dist/design-system/Icon/index.d.ts +2 -1
- package/dist/design-system/Input/Input.d.ts +6 -6
- package/dist/design-system/Modal/Modal.d.ts +6 -1
- package/dist/design-system/Notification/Notification.d.ts +1 -1
- package/dist/design-system/Pagination/index.d.ts +0 -4
- package/dist/design-system/Radio/Radio.d.ts +2 -2
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/design-system/Select/Select.d.ts +10 -7
- package/dist/design-system/Spacer/Spacer.d.ts +3 -6
- package/dist/design-system/SplitButton/SplitButton.d.ts +1 -5
- package/dist/design-system/Table/Table.d.ts +1 -0
- package/dist/design-system/Typography/Paragraph.d.ts +4 -2
- package/dist/design-system/Typography/Text.d.ts +4 -2
- package/dist/design-system/Typography/Title.d.ts +4 -2
- package/dist/design-system/Typography/Typography.d.ts +1 -0
- package/dist/design-system/constants.d.ts +2 -0
- package/dist/design-system/index.d.ts +1 -0
- package/dist/design-system/types.d.ts +3 -0
- package/dist/design-system/utils/css-utils.d.ts +9 -0
- package/dist/index-dark.css +348 -11
- package/dist/index.css +255 -11
- package/dist/index.js +5117 -6599
- package/dist/index.js.map +1 -1
- package/dist/theme/colors.d.ts +1 -1
- package/dist/theme/generalVariables.d.ts +0 -10
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/spacing.d.ts +8 -37
- package/package.json +21 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SerializedStyles } from '@emotion/react';
|
|
2
3
|
import { ButtonProps as AntDButtonProps } from 'antd';
|
|
3
4
|
import { ComponentTheme } from '../../theme';
|
|
4
5
|
import { DangerouslySetAntdProps } from '../types';
|
|
5
|
-
import { ReactElement } from 'react';
|
|
6
6
|
export declare const getButtonEmotionStyles: ({ theme, classNamePrefix, loading, withIcon, onlyIcon, enableAnimation, size, }: {
|
|
7
7
|
theme: ComponentTheme;
|
|
8
8
|
classNamePrefix: string;
|
|
@@ -11,14 +11,14 @@ export declare const getButtonEmotionStyles: ({ theme, classNamePrefix, loading,
|
|
|
11
11
|
onlyIcon?: boolean | undefined;
|
|
12
12
|
danger?: boolean | undefined;
|
|
13
13
|
enableAnimation: boolean;
|
|
14
|
-
size: ButtonSize;
|
|
14
|
+
size: ButtonSize | 'ultrasmall';
|
|
15
15
|
}) => SerializedStyles;
|
|
16
16
|
export declare type ButtonSize = 'small' | 'middle';
|
|
17
17
|
export interface ButtonProps extends Omit<AntDButtonProps, 'type' | 'ghost' | 'shape' | 'size'>, DangerouslySetAntdProps<AntDButtonProps> {
|
|
18
18
|
type?: 'primary' | 'link';
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use isCompact={true} on `DesignSystemProvider` instead, see http://go/dubois/density
|
|
21
|
+
*/
|
|
19
22
|
size?: ButtonSize;
|
|
20
23
|
}
|
|
21
|
-
export declare
|
|
22
|
-
export declare namespace Button {
|
|
23
|
-
var __ANT_BUTTON: boolean;
|
|
24
|
-
}
|
|
24
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CheckboxGroupProps, CheckboxChangeEvent } from 'antd/lib/checkbox';
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
isChecked?: boolean | null;
|
|
5
|
+
onChange?: (isChecked: boolean, event: CheckboxChangeEvent) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>> & {
|
|
10
|
+
Group: import("react").ForwardRefExoticComponent<CheckboxGroupProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
11
|
};
|
|
12
|
+
export declare const __INTERNAL_DO_NOT_USE__Group: import("react").ForwardRefExoticComponent<CheckboxGroupProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CollapseProps as AntDCollapseProps, CollapsePanelProps as AntDCollapsePanelProps } from 'antd';
|
|
3
3
|
import { Interpolation, Theme as EmotionTheme } from '@emotion/react';
|
|
4
|
-
import { CollapsibleType } from 'antd/lib/collapse/CollapsePanel';
|
|
4
|
+
import type { CollapsibleType } from 'antd/lib/collapse/CollapsePanel';
|
|
5
5
|
export interface CollapseProps {
|
|
6
6
|
/** If true, Collapse renders as Accordion */
|
|
7
7
|
accordion?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { DatePickerProps as AntDDatePickerProps,
|
|
2
|
+
import type { DatePickerProps as AntDDatePickerProps, MonthPickerProps as AntDMonthPickerProps, RangePickerProps as AntDRangePickerProps } from 'antd/lib/date-picker';
|
|
3
3
|
export declare type DatePickerProps = AntDDatePickerProps;
|
|
4
4
|
export declare type RangePickerProps = AntDRangePickerProps;
|
|
5
5
|
export declare type TimePickerProps = AntDMonthPickerProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { ThemeName } from '../../theme';
|
|
4
|
-
interface DesignSystemProviderProps {
|
|
4
|
+
export interface DesignSystemProviderProps {
|
|
5
5
|
/**
|
|
6
6
|
* The UI theme to be applied to all components inside this provider. Can be "default" or "dark".
|
|
7
7
|
*/
|
|
@@ -13,8 +13,7 @@ interface DesignSystemProviderProps {
|
|
|
13
13
|
enableAnimation?: boolean;
|
|
14
14
|
/** Use this to configure the base zIndex for Du Bois. We use this to stack our internal elements
|
|
15
15
|
* correctly, and to ensure that our internal elements are always on top of any other elements. This
|
|
16
|
-
* should be a number
|
|
17
|
-
* have multiple DesignSystemProvider components).
|
|
16
|
+
* should be a number >= 1000.
|
|
18
17
|
*/
|
|
19
18
|
zIndexBase?: number;
|
|
20
19
|
/**
|
|
@@ -22,9 +21,10 @@ interface DesignSystemProviderProps {
|
|
|
22
21
|
*/
|
|
23
22
|
getPopupContainer?: (trigger?: HTMLElement) => HTMLElement;
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
24
|
+
* Should the Du Bois components be presented in a compact style? Compact should be used for applications
|
|
25
|
+
* such as tools, where space utilization is a concern.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
isCompact?: boolean;
|
|
28
28
|
}
|
|
29
29
|
export interface DuboisContextType {
|
|
30
30
|
enableAnimation: boolean;
|
|
@@ -32,7 +32,7 @@ export interface DuboisContextType {
|
|
|
32
32
|
getPrefixCls: (suffix?: string) => string;
|
|
33
33
|
getPopupContainer?: (trigger?: HTMLElement) => HTMLElement;
|
|
34
34
|
}
|
|
35
|
-
export declare const DesignSystemContext:
|
|
35
|
+
export declare const DesignSystemContext: React.Context<DuboisContextType>;
|
|
36
36
|
export declare function getAnimationCss(enableAnimation: boolean): CSSObject;
|
|
37
37
|
export declare const DesignSystemProvider: React.FC<DesignSystemProviderProps>;
|
|
38
|
-
export
|
|
38
|
+
export declare const ApplyCompactDesignSystemTheme: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
export declare const Root: import("react").FC<DropdownMenu.DropdownMenuProps>;
|
|
4
|
+
export declare const Content: import("react").ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuContentProps & import("react").RefAttributes<HTMLDivElement>, "key" | "id" | "color" | "translate" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "loop" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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" | "align" | "asChild" | "side" | "sideOffset" | "alignOffset" | "collisionTolerance" | "avoidCollisions" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus" | "allowPinchZoom" | "portalled" | "forceMount"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Trigger: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const Item: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Label: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const Separator: import("react").ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "key" | "id" | "color" | "translate" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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" | "asChild"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const TriggerItem: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuTriggerItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const CheckboxItem: import("react").ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "key" | "id" | "color" | "translate" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "checked" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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" | "asChild" | "textValue" | "onCheckedChange"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const ItemIndicator: import("react").ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuItemIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "key" | "id" | "color" | "translate" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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" | "asChild" | "forceMount"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const Arrow: import("react").ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuArrowProps & import("react").RefAttributes<SVGSVGElement>, "string" | "max" | "type" | "key" | "id" | "media" | "height" | "width" | "name" | "color" | "rotate" | "style" | "method" | "target" | "lang" | "className" | "children" | "tabIndex" | "crossOrigin" | "href" | "min" | "role" | "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" | "viewBox" | "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" | "clipPath" | "filter" | "mask" | "path" | "fill" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "asChild"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
13
|
+
export declare const RadioItem: import("react").ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "key" | "id" | "color" | "translate" | "value" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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" | "asChild" | "textValue"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const Group: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const RadioGroup: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const HintColumn: import("react").ForwardRefExoticComponent<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
17
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const HintRow: import("react").ForwardRefExoticComponent<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
20
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare const IconWrapper: import("react").ForwardRefExoticComponent<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
23
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
24
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as DropdownMenu from './DropdownMenu';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { Form as AntDForm, FormItemProps as AntDFormItemProps, FormProps as AntDFormProps } from 'antd';
|
|
2
|
+
import { Form as AntDForm, FormInstance, FormItemProps as AntDFormItemProps, FormProps as AntDFormProps } from 'antd';
|
|
3
3
|
import { DangerouslySetAntdProps } from '../types';
|
|
4
4
|
export interface FormItemProps extends Pick<AntDFormItemProps, 'children' | 'dependencies' | 'getValueFromEvent' | 'getValueProps' | 'help' | 'hidden' | 'htmlFor' | 'initialValue' | 'label' | 'messageVariables' | 'name' | 'normalize' | 'noStyle' | 'preserve' | 'required' | 'rules' | 'shouldUpdate' | 'tooltip' | 'trigger' | 'validateStatus' | 'validateTrigger' | 'valuePropName'>, DangerouslySetAntdProps<AntDFormItemProps> {
|
|
5
5
|
}
|
|
@@ -10,6 +10,8 @@ interface FormInterface extends FC<FormProps> {
|
|
|
10
10
|
List: typeof AntDForm.List;
|
|
11
11
|
useForm: typeof AntDForm.useForm;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const FormDubois: import("react").ForwardRefExoticComponent<FormProps & import("react").RefAttributes<FormInstance<any>>>;
|
|
14
14
|
declare const FormItem: FC<FormItemProps>;
|
|
15
|
+
export declare const Form: FormInterface;
|
|
16
|
+
export declare const __INTERNAL_DO_NOT_USE__FormItem: FC<FormItemProps>;
|
|
15
17
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Input as AntDInput, InputProps as AntDInputProps } from 'antd';
|
|
2
|
-
import { PasswordProps as AntDPasswordProps, TextAreaProps as AntDTextAreaProps } from 'antd/lib/input';
|
|
3
|
-
import { TextAreaRef } from 'antd/lib/input/TextArea';
|
|
2
|
+
import type { PasswordProps as AntDPasswordProps, TextAreaProps as AntDTextAreaProps } from 'antd/lib/input';
|
|
3
|
+
import type { TextAreaRef } from 'antd/lib/input/TextArea';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { DangerouslySetAntdProps } from '../types';
|
|
6
|
-
export interface InputProps extends Omit<AntDInputProps, 'prefixCls' | 'size' | 'addonAfter' | 'bordered'>, DangerouslySetAntdProps<AntDInputProps
|
|
5
|
+
import { DangerousGeneralProps, DangerouslySetAntdProps } from '../types';
|
|
6
|
+
export interface InputProps extends Omit<AntDInputProps, 'prefixCls' | 'size' | 'addonAfter' | 'bordered'>, DangerouslySetAntdProps<AntDInputProps>, DangerousGeneralProps {
|
|
7
7
|
}
|
|
8
|
-
export interface TextAreaProps extends Omit<AntDTextAreaProps, 'bordered' | 'showCount' | 'size'>, DangerouslySetAntdProps<AntDTextAreaProps
|
|
8
|
+
export interface TextAreaProps extends Omit<AntDTextAreaProps, 'bordered' | 'showCount' | 'size'>, DangerouslySetAntdProps<AntDTextAreaProps>, DangerousGeneralProps {
|
|
9
9
|
}
|
|
10
|
-
export interface PasswordProps extends Omit<AntDPasswordProps, 'inputPrefixCls' | 'action' | 'visibilityToggle' | 'iconRender'>, DangerouslySetAntdProps<AntDPasswordProps
|
|
10
|
+
export interface PasswordProps extends Omit<AntDPasswordProps, 'inputPrefixCls' | 'action' | 'visibilityToggle' | 'iconRender'>, DangerouslySetAntdProps<AntDPasswordProps>, DangerousGeneralProps {
|
|
11
11
|
}
|
|
12
12
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<AntDInput>> & {
|
|
13
13
|
TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<TextAreaRef>>;
|
|
@@ -15,8 +15,10 @@ export interface ModalProps extends DangerouslySetAntdProps<AntDModalProps> {
|
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
/** A custom JSX element to render in place of the default footer */
|
|
17
17
|
footer?: AntDModalProps['footer'];
|
|
18
|
-
/**
|
|
18
|
+
/** Sets the horizontal size according to the size presets */
|
|
19
19
|
size?: 'normal' | 'wide';
|
|
20
|
+
/** Defines the modal height either by both its content and maximum height (dynamic) or by its maximum height only (maxed_out) */
|
|
21
|
+
verticalSizing?: 'dynamic' | 'maxed_out';
|
|
20
22
|
/** When set to true, the confirm button will show a loading indicator */
|
|
21
23
|
confirmLoading?: AntDModalProps['confirmLoading'];
|
|
22
24
|
/** Function called after the modal has finished closing */
|
|
@@ -44,11 +46,14 @@ export interface ModalProps extends DangerouslySetAntdProps<AntDModalProps> {
|
|
|
44
46
|
okButtonProps?: ButtonProps;
|
|
45
47
|
/** The cancel button props */
|
|
46
48
|
cancelButtonProps?: ButtonProps;
|
|
49
|
+
/** Custom modal content render function. While custom rendering is discouraged in general, this prop can be used to wrap the modal contents in a React context. */
|
|
50
|
+
modalRender?: (node: React.ReactNode) => React.ReactNode;
|
|
47
51
|
}
|
|
48
52
|
export declare function Modal({ okButtonProps, cancelButtonProps, dangerouslySetAntdProps, ...props }: ModalProps): JSX.Element;
|
|
49
53
|
export declare namespace Modal {
|
|
50
54
|
var defaultProps: {
|
|
51
55
|
size: string;
|
|
56
|
+
verticalSizing: string;
|
|
52
57
|
};
|
|
53
58
|
}
|
|
54
59
|
export declare function DangerModal(props: Omit<ModalProps, 'footer'>): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ArgsProps as AntDNotificationArgs, IconType as AntDIconType, NotificationInstance } from 'antd/lib/notification';
|
|
2
|
+
import type { ArgsProps as AntDNotificationArgs, IconType as AntDIconType, NotificationInstance } from 'antd/lib/notification';
|
|
3
3
|
import { DangerouslySetAntdProps } from '../types';
|
|
4
4
|
export declare type NotificationType = AntDIconType;
|
|
5
5
|
export interface NotificationProps extends Omit<AntDNotificationArgs, 'bottom' | 'btn' | 'className' | 'closeIcon' | 'icon' | 'position' | 'style' | 'top'>, DangerouslySetAntdProps<AntDNotificationArgs> {
|
|
@@ -21,10 +21,6 @@ export interface PaginationProps extends DangerouslySetAntdProps<AntdPaginationP
|
|
|
21
21
|
* of the new page and the size of that page.
|
|
22
22
|
*/
|
|
23
23
|
onChange: (pageIndex: number, pageSize?: number) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Visual size of the pagination component.
|
|
26
|
-
*/
|
|
27
|
-
size?: 'default' | 'small';
|
|
28
24
|
}
|
|
29
25
|
export declare function getPaginationEmotionStyles(clsPrefix: string, theme: Theme): SerializedStyles;
|
|
30
26
|
export declare const Pagination: React.FC<PaginationProps>;
|
|
@@ -9,9 +9,9 @@ interface RadioInterface extends React.FC<RadioProps> {
|
|
|
9
9
|
Group: typeof VerticalGroup;
|
|
10
10
|
HorizontalGroup: typeof HorizontalGroup;
|
|
11
11
|
}
|
|
12
|
-
export declare const Radio: RadioInterface;
|
|
13
12
|
declare const VerticalGroup: React.FC<RadioGroupProps>;
|
|
14
13
|
declare const HorizontalGroup: React.FC<RadioGroupProps>;
|
|
15
|
-
export declare const
|
|
14
|
+
export declare const Radio: RadioInterface;
|
|
15
|
+
export declare const __INTERNAL_DO_NOT_USE__VerticalGroup: import("react").FC<RadioGroupProps>;
|
|
16
16
|
export declare const __INTERNAL_DO_NOT_USE__HorizontalGroup: import("react").FC<RadioGroupProps>;
|
|
17
17
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RadioGroupProps } from 'antd';
|
|
3
|
-
import { RadioButtonProps } from 'antd/lib/radio/radioButton';
|
|
3
|
+
import type { RadioButtonProps } from 'antd/lib/radio/radioButton';
|
|
4
4
|
export interface SegmentedControlButtonProps extends Omit<RadioButtonProps, 'optionType' | 'buttonStyle' | 'size' | 'prefixCls' | 'skipGroup'> {
|
|
5
5
|
size?: 'small' | 'middle';
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
7
|
+
export declare const SegmentedControlButton: import("react").ForwardRefExoticComponent<SegmentedControlButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
export interface SegmentedControlGroupProps extends Omit<RadioGroupProps, 'size'> {
|
|
9
9
|
size?: 'small' | 'middle';
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const SegmentedControlGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Select as AntDSelect, SelectProps as AntDSelectProps } from 'antd';
|
|
2
|
-
import { SelectValue as AntdSelectValue } from 'antd/lib/select';
|
|
2
|
+
import type { SelectValue as AntdSelectValue } from 'antd/lib/select';
|
|
3
3
|
import React, { FC } from 'react';
|
|
4
4
|
import { DangerouslySetAntdProps } from '../types';
|
|
5
|
+
import { RefSelectProps } from 'antd/es/select';
|
|
5
6
|
export declare type SelectValue = AntdSelectValue;
|
|
6
|
-
declare type OmittedProps = 'bordered' | 'autoClearSearchValue' | 'dropdownRender' | 'dropdownStyle' | 'size' | 'suffixIcon' | 'tagRender' | 'clearIcon' | 'removeIcon' | 'showArrow' | '
|
|
7
|
+
declare type OmittedProps = 'bordered' | 'autoClearSearchValue' | 'dropdownRender' | 'dropdownStyle' | 'size' | 'suffixIcon' | 'tagRender' | 'clearIcon' | 'removeIcon' | 'showArrow' | 'dropdownMatchSelectWidth' | 'menuItemSelectedIcon' | 'showSearch' | 'placeholder';
|
|
7
8
|
export interface SelectProps<T = string> extends Omit<AntDSelectProps<T>, OmittedProps>, DangerouslySetAntdProps<Pick<AntDSelectProps<T>, OmittedProps>> {
|
|
8
9
|
}
|
|
9
10
|
export interface SelectInterface<T> extends FC<SelectProps<T>> {
|
|
10
11
|
Option: typeof AntDSelect.Option;
|
|
11
12
|
}
|
|
12
|
-
export declare function DuboisSelect<T extends SelectValue>({ loading, mode, dangerouslySetAntdProps, ...restProps }: SelectProps<T>): JSX.Element;
|
|
13
13
|
export interface OptionProps {
|
|
14
14
|
value: string | number;
|
|
15
15
|
disabled?: boolean;
|
|
@@ -19,10 +19,13 @@ export interface OptionProps {
|
|
|
19
19
|
children: React.ReactNode;
|
|
20
20
|
'data-testid'?: string;
|
|
21
21
|
onClick?: () => void;
|
|
22
|
+
className?: string;
|
|
22
23
|
}
|
|
23
|
-
declare
|
|
24
|
-
export declare const Select:
|
|
25
|
-
|
|
24
|
+
export declare const Option: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<HTMLElement>>;
|
|
25
|
+
export declare const Select: (<T extends AntdSelectValue>(props: SelectProps<T> & {
|
|
26
|
+
ref?: RefSelectProps | undefined;
|
|
27
|
+
}) => JSX.Element) & {
|
|
28
|
+
Option: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<HTMLElement>>;
|
|
26
29
|
};
|
|
27
|
-
export declare const __INTERNAL_DO_NOT_USE__Option:
|
|
30
|
+
export declare const __INTERNAL_DO_NOT_USE__Option: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<HTMLElement>>;
|
|
28
31
|
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
small = 8,
|
|
4
|
-
medium = 16,
|
|
5
|
-
large = 24
|
|
6
|
-
}
|
|
2
|
+
declare type validSpacerOptions = 'small' | 'medium' | 'large';
|
|
7
3
|
export interface SpacerProps {
|
|
8
|
-
size?:
|
|
4
|
+
size?: validSpacerOptions;
|
|
9
5
|
}
|
|
10
6
|
export declare const Spacer: React.FC<SpacerProps>;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DropdownButtonProps as AntDDropdownButtonProps } from 'antd/lib/dropdown';
|
|
2
|
+
import type { DropdownButtonProps as AntDDropdownButtonProps } from 'antd/lib/dropdown';
|
|
3
3
|
import { DangerouslySetAntdProps } from '../types';
|
|
4
4
|
export interface SplitButtonMenuInfo {
|
|
5
5
|
key: React.Key;
|
|
@@ -12,9 +12,5 @@ export declare type SplitButtonProps = Omit<AntDDropdownButtonProps, 'overlay' |
|
|
|
12
12
|
* The visual style of the button, either default or primary
|
|
13
13
|
*/
|
|
14
14
|
type?: 'default' | 'primary';
|
|
15
|
-
/**
|
|
16
|
-
* The size of the button
|
|
17
|
-
*/
|
|
18
|
-
size?: 'middle' | 'small';
|
|
19
15
|
};
|
|
20
16
|
export declare const SplitButton: React.FC<SplitButtonProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TableColumnGroupType as AntDTableColumnGroupType, TableColumnProps as AntDTableColumnProps, TableColumnsType as AntDTableColumnsType, TableColumnType as AntDTableColumnType, TablePaginationConfig as AntDTablePaginationConfig, TableProps as AntDTableProps } from 'antd';
|
|
2
3
|
export interface TableProps<RecordType> extends AntDTableProps<RecordType> {
|
|
3
4
|
scrollableInFlexibleContainer?: boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Typography as AntDTypography } from 'antd';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
import { DangerouslySetAntdProps } from '../types';
|
|
3
|
+
import { DangerouslySetAntdProps, TypographyColor } from '../types';
|
|
4
4
|
declare type AntDTypographyProps = ComponentProps<typeof AntDTypography>;
|
|
5
5
|
declare type AntDParagraphProps = ComponentProps<typeof AntDTypography['Paragraph']>;
|
|
6
|
-
interface ParagraphProps extends AntDTypographyProps, Pick<AntDParagraphProps, 'ellipsis' | 'disabled'>, DangerouslySetAntdProps<AntDParagraphProps> {
|
|
6
|
+
export interface ParagraphProps extends AntDTypographyProps, Pick<AntDParagraphProps, 'ellipsis' | 'disabled' | 'id' | 'title' | 'aria-label'>, DangerouslySetAntdProps<AntDParagraphProps> {
|
|
7
|
+
withoutMargins?: boolean;
|
|
8
|
+
color?: TypographyColor;
|
|
7
9
|
}
|
|
8
10
|
export declare function Paragraph(userProps: ParagraphProps): JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { Typography as AntDTypography } from 'antd';
|
|
3
|
-
import { DangerouslySetAntdProps } from '../types';
|
|
3
|
+
import { DangerouslySetAntdProps, TypographyColor } from '../types';
|
|
4
4
|
declare type AntDTypographyProps = ComponentProps<typeof AntDTypography>;
|
|
5
5
|
declare type AntDTextProps = ComponentProps<typeof AntDTypography['Text']>;
|
|
6
|
-
interface TextProps extends AntDTypographyProps, Pick<AntDTextProps, 'ellipsis' | 'disabled' | 'code'>, DangerouslySetAntdProps<AntDTextProps> {
|
|
6
|
+
export interface TextProps extends AntDTypographyProps, Pick<AntDTextProps, 'ellipsis' | 'disabled' | 'code' | 'id' | 'title' | 'aria-label'>, DangerouslySetAntdProps<AntDTextProps> {
|
|
7
7
|
bold?: boolean;
|
|
8
8
|
hint?: boolean;
|
|
9
9
|
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
10
|
+
withoutMargins?: boolean;
|
|
11
|
+
color?: TypographyColor;
|
|
10
12
|
}
|
|
11
13
|
export declare function Text(userProps: TextProps): JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Typography as AntDTypography } from 'antd';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
import { DangerouslySetAntdProps } from '../types';
|
|
3
|
+
import { DangerouslySetAntdProps, TypographyColor } from '../types';
|
|
4
4
|
declare type AntDTypographyProps = ComponentProps<typeof AntDTypography>;
|
|
5
5
|
declare type AntDTitleProps = ComponentProps<typeof AntDTypography['Title']>;
|
|
6
|
-
export interface TitleProps extends AntDTypographyProps, Pick<AntDTitleProps, 'level' | 'ellipsis'>, DangerouslySetAntdProps<AntDTitleProps> {
|
|
6
|
+
export interface TitleProps extends AntDTypographyProps, Pick<AntDTitleProps, 'level' | 'ellipsis' | 'id' | 'title' | 'aria-label'>, DangerouslySetAntdProps<AntDTitleProps> {
|
|
7
|
+
withoutMargins?: boolean;
|
|
8
|
+
color?: TypographyColor;
|
|
7
9
|
}
|
|
8
10
|
export declare function Title(userProps: TitleProps): JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -2,6 +2,7 @@ import { TypographyProps as AntDTypographyProps } from 'antd';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
interface TypographyProps extends Omit<AntDTypographyProps, 'Text' | 'Title' | 'Paragraph' | 'Link'> {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
+
withoutMargins?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare function Typography(props: TypographyProps): JSX.Element;
|
|
7
8
|
export declare namespace Typography {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { ColorVars } from './constants';
|
|
2
3
|
export interface DangerouslySetAntdProps<P> {
|
|
3
4
|
/** For components that wrap `antd` components, emergency access for properties we do not support. Ask in #dubois before using. */
|
|
4
5
|
dangerouslySetAntdProps?: P;
|
|
@@ -7,3 +8,5 @@ export interface DangerousGeneralProps {
|
|
|
7
8
|
/** Applies emotion styles to the top-level element in the component. Ask in #dubois before using. */
|
|
8
9
|
dangerouslyAppendEmotionCSS?: CSSObject;
|
|
9
10
|
}
|
|
11
|
+
/** Mapping for color variables can be found under constants.tsx */
|
|
12
|
+
export declare type TypographyColor = keyof typeof ColorVars;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { Theme } from '../../theme';
|
|
3
|
+
import { TypographyColor } from '../types';
|
|
2
4
|
/**
|
|
3
5
|
* Recursively appends `!important` to all CSS properties in an Emotion `CSSObject`.
|
|
4
6
|
* Used to ensure that we always override Ant styles, without worrying about selector precedence.
|
|
5
7
|
*/
|
|
6
8
|
export declare function importantify(obj: CSSObject): CSSObject;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a text color, in case of invalid/missing key and missing fallback color it will return textPrimary
|
|
11
|
+
* @param theme
|
|
12
|
+
* @param key - key of TypographyColor
|
|
13
|
+
* @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
|
|
14
|
+
*/
|
|
15
|
+
export declare function getTypographyColor(theme: Theme, key?: TypographyColor, fallbackColor?: string): string;
|