@uniformdev/design-system 17.5.1-alpha.6 → 17.6.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/esm/index.js +1098 -1071
- package/dist/index.d.ts +766 -751
- package/dist/index.js +1092 -1065
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import * as _emotion_react from '@emotion/react';
|
|
|
4
4
|
import { SerializedStyles } from '@emotion/react';
|
|
5
5
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
6
6
|
import { ButtonProps as ButtonProps$1 } from 'reakit/Button';
|
|
7
|
+
import { MenuProps as MenuProps$1, MenuItemHTMLProps } from 'reakit';
|
|
7
8
|
import { IconType as IconType$1, IconBaseProps } from 'react-icons';
|
|
8
9
|
import { GroupBase } from 'react-select';
|
|
9
|
-
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
10
10
|
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
12
|
+
import { MenuHTMLProps, MenuProps as MenuProps$2, MenuStateReturn } from 'reakit/Menu';
|
|
13
13
|
import { TabState, TabListProps, TabProps, TabPanelProps } from 'reakit/Tab';
|
|
14
14
|
|
|
15
15
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
@@ -52,11 +52,6 @@ declare const mq: (size: BreakpointSize) => string;
|
|
|
52
52
|
*/
|
|
53
53
|
declare const supports: (cssProp: string) => string;
|
|
54
54
|
|
|
55
|
-
declare const labelText: _emotion_react.SerializedStyles;
|
|
56
|
-
declare const input: (whiteSpaceWrap: 'wrap' | 'nowrap') => _emotion_react.SerializedStyles;
|
|
57
|
-
declare const inputError: _emotion_react.SerializedStyles;
|
|
58
|
-
declare const inputSelect: _emotion_react.SerializedStyles;
|
|
59
|
-
|
|
60
55
|
declare const button: _emotion_react.SerializedStyles;
|
|
61
56
|
declare const buttonRippleEffect: (props: {
|
|
62
57
|
hoverColor: string;
|
|
@@ -69,8 +64,10 @@ declare const buttonUnimportant: _emotion_react.SerializedStyles;
|
|
|
69
64
|
declare const buttonGhost: _emotion_react.SerializedStyles;
|
|
70
65
|
declare const buttonTertiary: _emotion_react.SerializedStyles;
|
|
71
66
|
|
|
72
|
-
|
|
73
|
-
declare const
|
|
67
|
+
declare const labelText: _emotion_react.SerializedStyles;
|
|
68
|
+
declare const input: (whiteSpaceWrap: 'wrap' | 'nowrap') => _emotion_react.SerializedStyles;
|
|
69
|
+
declare const inputError: _emotion_react.SerializedStyles;
|
|
70
|
+
declare const inputSelect: _emotion_react.SerializedStyles;
|
|
74
71
|
|
|
75
72
|
/**
|
|
76
73
|
* growSubtle animation
|
|
@@ -97,6 +94,94 @@ declare const skeletonLoading: _emotion_react.Keyframes;
|
|
|
97
94
|
declare const fadeInLtr: _emotion_react.Keyframes;
|
|
98
95
|
declare const fadeInRtl: _emotion_react.Keyframes;
|
|
99
96
|
|
|
97
|
+
/** Custom scrollbar styles */
|
|
98
|
+
declare const scrollbarStyles: _emotion_react.SerializedStyles;
|
|
99
|
+
|
|
100
|
+
declare type AddButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
101
|
+
/** sets the aria-label for accessibility
|
|
102
|
+
* @default "Add"
|
|
103
|
+
*/
|
|
104
|
+
buttonText?: string;
|
|
105
|
+
onClick: () => void;
|
|
106
|
+
className?: string;
|
|
107
|
+
/** sets keyboard shortcut command for Windows
|
|
108
|
+
* @default "ctrl+alt+n"
|
|
109
|
+
*/
|
|
110
|
+
shortcut?: string | null;
|
|
111
|
+
/** sets keyboard shortcut command for Mac
|
|
112
|
+
* @default "option+n"
|
|
113
|
+
*/
|
|
114
|
+
macShortcut?: string | null;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Add button component
|
|
118
|
+
* @param {Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange'>} props - object of button props
|
|
119
|
+
* @example <AddButton buttonText="Button Text" />
|
|
120
|
+
*/
|
|
121
|
+
declare const AddButton: ({ buttonText, onClick, shortcut, macShortcut, ...props }: AddButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
122
|
+
|
|
123
|
+
declare type AddListButtonThemeProps = 'var(--brand-secondary-5)' | 'var(--brand-secondary-3)';
|
|
124
|
+
declare type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
125
|
+
/** (optional) - sets the button text and title value
|
|
126
|
+
* @default 'Add Item'
|
|
127
|
+
*/
|
|
128
|
+
buttonText?: string;
|
|
129
|
+
/** sets the function action of the button */
|
|
130
|
+
onButtonClick: () => void;
|
|
131
|
+
/** (optional) - sets the icon within the button, requires the icon provider to work
|
|
132
|
+
* @default 'regular'
|
|
133
|
+
*/
|
|
134
|
+
variant?: 'regular' | 'small';
|
|
135
|
+
/** (optional) - sets whether the button is disabled or not
|
|
136
|
+
* @default undefined
|
|
137
|
+
*/
|
|
138
|
+
disabled?: boolean;
|
|
139
|
+
/** (optional) - sets the icon within the button, requires the icon provider to work
|
|
140
|
+
* @default 'add'
|
|
141
|
+
*/
|
|
142
|
+
icon?: 'math-plus' | 'add' | 'add-r';
|
|
143
|
+
/** (optional) sets button theme */
|
|
144
|
+
theme?: AddListButtonThemeProps;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Uniform Add List Button Component
|
|
148
|
+
* @example <AddListButton buttonText="my text" onButtonClick={() => console.log('button clicked')} icon="add" />
|
|
149
|
+
*/
|
|
150
|
+
declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, variant, theme, ...buttonProps }: AddListButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
151
|
+
|
|
152
|
+
declare type ArrowPositionProps = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
153
|
+
declare type InlineAlertProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
154
|
+
/** sets the id of the popup and the aria-controls attibute on the close button
|
|
155
|
+
* @example 'my-alert-box'
|
|
156
|
+
*/
|
|
157
|
+
id: string;
|
|
158
|
+
/** sets the title of the inline alert message */
|
|
159
|
+
title: string;
|
|
160
|
+
/** sets the text of the inline alert message */
|
|
161
|
+
text: string;
|
|
162
|
+
/** (optional) sets the position of the arrow
|
|
163
|
+
* @default 'left-top'
|
|
164
|
+
*/
|
|
165
|
+
arrowPosition?: ArrowPositionProps;
|
|
166
|
+
/** (optional) allows to position alert using direct css */
|
|
167
|
+
positionCss?: SerializedStyles;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Uniform Inline Alert Component
|
|
171
|
+
* @example <InlineAlert id="my-alert-box" title="my alert box" text="some description text" />
|
|
172
|
+
*/
|
|
173
|
+
declare const InlineAlert: ({ id, title, text, arrowPosition, positionCss, ...btnProps }: InlineAlertProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
174
|
+
|
|
175
|
+
declare type BadgeProps = {
|
|
176
|
+
/** sets the text of the badge */
|
|
177
|
+
text: string;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Uniform Badge Component
|
|
181
|
+
* @example <Badge text="My badge" />
|
|
182
|
+
*/
|
|
183
|
+
declare const Badge: ({ text }: BadgeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
184
|
+
|
|
100
185
|
declare type UniformLogoProps = {
|
|
101
186
|
/** sets a light or dark theme for the uniform badge or logo component
|
|
102
187
|
* @default "light"
|
|
@@ -140,56 +225,288 @@ declare type ButtonProps = ButtonProps$1 & {
|
|
|
140
225
|
* @param {BaseButtonProps} props - object of button props from reakit
|
|
141
226
|
* @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world')}>Click me</Button>
|
|
142
227
|
*/
|
|
143
|
-
declare const Button: React$1.ForwardRefExoticComponent<Pick<ButtonProps, "form" | "slot" | "style" | "title" | "className" | "key" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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" | "
|
|
228
|
+
declare const Button: React$1.ForwardRefExoticComponent<Pick<ButtonProps, "form" | "slot" | "style" | "title" | "className" | "key" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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" | "value" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "focusable" | "size" | "buttonType" | "unstable_system" | "unstable_clickOnEnter" | "unstable_clickOnSpace" | "wrapElement" | "rounded"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
144
229
|
|
|
145
|
-
declare
|
|
146
|
-
|
|
147
|
-
|
|
230
|
+
declare type ButtonThemeProps = 'primary' | 'secondary' | 'unimportant' | 'ghost';
|
|
231
|
+
interface ActionButtonsProps {
|
|
232
|
+
/** Takes a function for the visible button */
|
|
233
|
+
onButtonClick: () => void;
|
|
234
|
+
/** (optional) reakit placements options for the expandable menu */
|
|
235
|
+
placement?: MenuProps$1['placement'];
|
|
236
|
+
/** sets the theme of the button
|
|
237
|
+
* @default "secondary"
|
|
238
|
+
*/
|
|
239
|
+
buttonType?: ButtonThemeProps;
|
|
240
|
+
/** sets the button text value */
|
|
241
|
+
buttonText: string;
|
|
242
|
+
/** adds child components to the ButtonWithMenu component */
|
|
243
|
+
children: React$1.ReactNode;
|
|
244
|
+
}
|
|
245
|
+
/** ButtonWithMenuProps combines the ActionButtonsProps with React HTMLButtonElement attributes */
|
|
246
|
+
declare type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
247
|
+
/**
|
|
248
|
+
* Uniform ButtonWithMenu Component
|
|
249
|
+
* @example
|
|
250
|
+
<ButtonWithMenu
|
|
251
|
+
disabled={isDisabled}
|
|
252
|
+
buttonText="Save and close"
|
|
253
|
+
onButtonClick={() => someFunction()}
|
|
254
|
+
placement="bottom-end"
|
|
255
|
+
>
|
|
256
|
+
<MenuItem
|
|
257
|
+
disabled={isDisabled}
|
|
258
|
+
onClick={() => someFunction()}
|
|
259
|
+
key="save"
|
|
260
|
+
className="flex gap-2 items-center"
|
|
261
|
+
data-testid="save-menu-item-button"
|
|
262
|
+
>
|
|
263
|
+
<span className="whitespace-nowrap" data-test-id="save-menu-item">
|
|
264
|
+
Save
|
|
265
|
+
</span>
|
|
266
|
+
</MenuItem>
|
|
267
|
+
</ButtonWithMenu>
|
|
268
|
+
*/
|
|
269
|
+
declare const ButtonWithMenu: ({ onButtonClick, buttonType, buttonText, disabled, children, placement, ...buttonProps }: ButtonWithMenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
148
270
|
|
|
149
|
-
/**
|
|
150
|
-
declare type
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
271
|
+
/** Callout button types available to use with our brand */
|
|
272
|
+
declare type CalloutType = 'caution' | 'danger' | 'info' | 'note' | 'success' | 'tip' | 'error';
|
|
273
|
+
interface CalloutProps {
|
|
274
|
+
/** sets the type of callout to use and it's styles
|
|
275
|
+
* @default "info"
|
|
276
|
+
*/
|
|
277
|
+
type: CalloutType;
|
|
278
|
+
/** make the display of the callout compact. Suitable for small spaces
|
|
279
|
+
* @default false
|
|
280
|
+
*/
|
|
281
|
+
compact?: boolean;
|
|
282
|
+
/** (optional) sets the title of the callout */
|
|
283
|
+
title?: React$1.ReactNode;
|
|
284
|
+
/** add child elements to the callout */
|
|
285
|
+
children?: React$1.ReactNode;
|
|
286
|
+
/** sets additional css classes or emotion styles on the callout */
|
|
287
|
+
className?: SerializedStyles | string;
|
|
160
288
|
}
|
|
161
289
|
/**
|
|
162
|
-
*
|
|
163
|
-
* @example <
|
|
290
|
+
* Uniform Callout Component
|
|
291
|
+
* @example <Callout title="my title" type="caution"><p>callout body copy</p></Callout>
|
|
164
292
|
*/
|
|
165
|
-
declare const
|
|
293
|
+
declare const Callout: ({ type, compact, title, children, className }: CalloutProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
166
294
|
|
|
167
|
-
declare type
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
295
|
+
declare type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
296
|
+
/** (optional) sets the title value of the card */
|
|
297
|
+
title?: string;
|
|
298
|
+
/** (optional) sets react child components */
|
|
299
|
+
children?: React$1.ReactNode;
|
|
300
|
+
/** (optional) sets options for a dropdown menu */
|
|
301
|
+
menuItems?: JSX.Element;
|
|
302
|
+
/** (optional) sets the data-test-id attribute on the button element
|
|
303
|
+
* @default 'list-card-menu'
|
|
304
|
+
*/
|
|
305
|
+
menuButtonTestId?: string;
|
|
306
|
+
/** (optional) sets the menu button disabled state */
|
|
307
|
+
disabled?: boolean;
|
|
171
308
|
};
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
309
|
+
declare const Card: ({ title, menuItems, children, disabled, menuButtonTestId, ...props }: CardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
310
|
+
|
|
311
|
+
declare type CardContainerBgColorProps = 'gray' | 'white';
|
|
312
|
+
declare type CardContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
313
|
+
/** (optional): sets the background colour of the wrapping element
|
|
314
|
+
* @default 'white'
|
|
315
|
+
*/
|
|
316
|
+
bgColor?: CardContainerBgColorProps;
|
|
317
|
+
/** (optional): sets react child components */
|
|
318
|
+
children?: React$1.ReactNode;
|
|
319
|
+
/** (optional): sets the padding values of the inner container
|
|
320
|
+
* @example 'when set to true padding: var(--spacing-2xl) var(--spacing-lg)'
|
|
321
|
+
* @default true
|
|
322
|
+
*/
|
|
323
|
+
padding?: boolean;
|
|
324
|
+
/** (optional): sets the padding values of the inner container
|
|
325
|
+
* @example `when set to true`
|
|
326
|
+
* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) [last-col] minmax(300px, 1fr);
|
|
327
|
+
* grid-template-rows: auto [last-line];
|
|
328
|
+
* @default false
|
|
329
|
+
*/
|
|
330
|
+
withLastColumn?: boolean;
|
|
331
|
+
};
|
|
332
|
+
/** Uniform Card Container
|
|
333
|
+
* @example <CardContainer><Card title="card title" /></CardContainer>
|
|
175
334
|
*/
|
|
176
|
-
declare
|
|
177
|
-
children: ReactNode;
|
|
178
|
-
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
335
|
+
declare const CardContainer: ({ bgColor, padding, withLastColumn, children, ...props }: CardContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
179
336
|
|
|
180
|
-
declare type
|
|
181
|
-
/**
|
|
337
|
+
declare type CounterProps = {
|
|
338
|
+
/** sets the count value, a 0 will show a dot instead of a number */
|
|
339
|
+
count: number;
|
|
340
|
+
};
|
|
341
|
+
/** @example <Counter count={1} /> */
|
|
342
|
+
declare const Counter: ({ count }: CounterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
343
|
+
|
|
344
|
+
declare type TextAlignProps = 'left' | 'right' | 'center';
|
|
345
|
+
declare type BoxHeightProps = 'auto' | 'sm' | 'md' | 'lg';
|
|
346
|
+
declare type DashedBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
347
|
+
/** React child elements */
|
|
182
348
|
children: React$1.ReactNode;
|
|
183
|
-
/**
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
|
|
349
|
+
/** (optional) - sets the text alignment */
|
|
350
|
+
textAlign?: TextAlignProps;
|
|
351
|
+
/** (optional) - sets the background color */
|
|
352
|
+
bgColor?: 'transparent' | 'white' | 'var(--gray-50)';
|
|
353
|
+
/** (optional) - sets the minimum box height */
|
|
354
|
+
boxHeight?: BoxHeightProps;
|
|
187
355
|
};
|
|
188
356
|
/**
|
|
189
|
-
*
|
|
190
|
-
* @example <
|
|
357
|
+
* Uniform Dashed Box Component
|
|
358
|
+
* @example <DashedBox bgColor="white" boxHeight="md" textAlign="center"><h1>hello world</h1></DashedBox>
|
|
191
359
|
*/
|
|
192
|
-
declare const
|
|
360
|
+
declare const DashedBox: ({ bgColor, textAlign, boxHeight, children, ...props }: DashedBoxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
361
|
+
|
|
362
|
+
declare type DetailsProps = React$1.HTMLAttributes<HTMLDetailsElement> & {
|
|
363
|
+
/** sets the summary inner components */
|
|
364
|
+
summary: React$1.ReactNode;
|
|
365
|
+
children: React$1.ReactNode;
|
|
366
|
+
/** sets whether the details should be open by default
|
|
367
|
+
* @default false
|
|
368
|
+
*/
|
|
369
|
+
isOpenByDefault?: boolean;
|
|
370
|
+
};
|
|
371
|
+
/** @example <Details summary="summary text">child content here</Details>*/
|
|
372
|
+
declare const Details: ({ summary, children, isOpenByDefault, ...props }: DetailsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
373
|
+
|
|
374
|
+
interface DrawerItem {
|
|
375
|
+
/** An ID for the drawer. It should be unique in the stack where it's rendered */
|
|
376
|
+
id: string;
|
|
377
|
+
/** The ReactNode to render inside the drawer */
|
|
378
|
+
component: React__default.ReactNode;
|
|
379
|
+
/** The ID of the stack where the drawer should be renderer. It should match the stack ID of an existing DrawerRenderer */
|
|
380
|
+
stackId: string;
|
|
381
|
+
/** Just like React.Key, changing this value indicates that the drawer has changed and we need to close the current instance and open a new one */
|
|
382
|
+
instanceKey?: string;
|
|
383
|
+
/** Called when the close button is clicked, the Escape button is pressed, or when the drawer's overlay is clicked */
|
|
384
|
+
onRequestClose?: () => void;
|
|
385
|
+
}
|
|
386
|
+
interface RegisterDrawerProps {
|
|
387
|
+
drawer: DrawerItem;
|
|
388
|
+
/** Called when drawer is rendered for the first time. Useful to set the focus on the drawer */
|
|
389
|
+
onFirstRender?: () => void;
|
|
390
|
+
}
|
|
391
|
+
declare type DrawerContextValue = {
|
|
392
|
+
drawersRegistry: DrawerItem[];
|
|
393
|
+
registerDrawer: (props: RegisterDrawerProps) => void;
|
|
394
|
+
unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Provides the context to the Drawer and DrawerRenderer components.
|
|
398
|
+
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
399
|
+
*/
|
|
400
|
+
declare const DrawerProvider: ({ children }: React__default.PropsWithChildren) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
401
|
+
declare const useDrawer: () => DrawerContextValue;
|
|
402
|
+
|
|
403
|
+
interface DrawerProps extends Omit<DrawerItem, 'component'> {
|
|
404
|
+
header?: React__default.ReactNode;
|
|
405
|
+
children?: React__default.ReactNode;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* A drawer component that opens from the right side of is parent. The component is used in combination with DrawerProvider and DrawerRenderer
|
|
409
|
+
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
410
|
+
*/
|
|
411
|
+
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
412
|
+
|
|
413
|
+
interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
414
|
+
/** The ID of the stack to render. Some drawers need to use the same stack ID to be rendered here */
|
|
415
|
+
stackId: string;
|
|
416
|
+
/** The width of the drawers. In any CSS length unit (px, rem, %, et al). Can't use CSS functions (e.g. calc())
|
|
417
|
+
* @default '45%'
|
|
418
|
+
*/
|
|
419
|
+
width?: string;
|
|
420
|
+
/** The minimum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
421
|
+
* @default '0'
|
|
422
|
+
|
|
423
|
+
*/
|
|
424
|
+
minWidth?: string;
|
|
425
|
+
/** The maximum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
426
|
+
* @default '100%'
|
|
427
|
+
*/
|
|
428
|
+
maxWidth?: string;
|
|
429
|
+
}
|
|
430
|
+
declare const DrawerRenderer: ({ stackId, width, minWidth, maxWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
431
|
+
interface DrawerRendererItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
432
|
+
index: number;
|
|
433
|
+
totalDrawers: number;
|
|
434
|
+
width: DrawerRendererProps['width'];
|
|
435
|
+
minWidth: Required<DrawerRendererProps['minWidth']>;
|
|
436
|
+
maxWidth: Required<DrawerRendererProps['maxWidth']>;
|
|
437
|
+
onOverlayClick?: () => void;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
declare const iconNames: readonly ["add-r", "add", "airplane", "alarm", "album", "align-bottom", "align-center", "align-left", "align-middle", "align-right", "align-top", "anchor", "apple-watch", "arrange-back", "arrange-front", "arrow-align-h", "arrow-align-v", "arrow-bottom-left-o", "arrow-bottom-left-r", "arrow-bottom-left", "arrow-bottom-right-o", "arrow-bottom-right-r", "arrow-bottom-right", "arrow-down-o", "arrow-down-r", "arrow-down", "arrow-left-o", "arrow-left-r", "arrow-left", "arrow-long-down-c", "arrow-long-down-e", "arrow-long-down-l", "arrow-long-down-r", "arrow-long-down", "arrow-long-left-c", "arrow-long-left-e", "arrow-long-left-l", "arrow-long-left-r", "arrow-long-left", "arrow-long-right-c", "arrow-long-right-e", "arrow-long-right-l", "arrow-long-right-r", "arrow-long-right", "arrow-long-up-c", "arrow-long-up-e", "arrow-long-up-l", "arrow-long-up-r", "arrow-long-up", "arrow-right-o", "arrow-right-r", "arrow-right", "arrow-top-left-o", "arrow-top-left-r", "arrow-top-left", "arrow-top-right-o", "arrow-top-right-r", "arrow-top-right", "arrow-up-o", "arrow-up-r", "arrow-up", "arrows-breake-h", "arrows-breake-v", "arrows-exchange-alt-v", "arrows-exchange-alt", "arrows-exchange-v", "arrows-exchange", "arrows-expand-down-left", "arrows-expand-down-right", "arrows-expand-left-alt", "arrows-expand-left", "arrows-expand-right-alt", "arrows-expand-right", "arrows-expand-up-left", "arrows-expand-up-right", "arrows-h-alt", "arrows-h", "arrows-merge-alt-h", "arrows-merge-alt-v", "arrows-scroll-h", "arrows-scroll-v", "arrows-shrink-h", "arrows-shrink-v", "arrows-v-alt", "arrows-v", "assign", "asterisk", "attachment", "attribution", "awards", "backspace", "band-aid", "battery-empty", "battery-full", "battery", "bee", "bell", "bitbucket", "block", "board", "bolt", "bookmark", "border-all", "border-bottom", "border-left", "border-right", "border-style-dashed", "border-style-dotted", "border-style-solid", "border-top", "bot", "bowl", "box", "boy", "briefcase", "browse", "browser", "brush", "bulb", "c-plus-plus", "calculator", "calendar-dates", "calendar-due", "calendar-next", "calendar-today", "calendar-two", "calendar", "calibrate", "camera", "cap", "captions", "card-clubs", "card-diamonds", "card-hearts", "card-spades", "carousel", "cast", "chart", "check-o", "check-r", "check", "chevron-double-down-o", "chevron-double-down-r", "chevron-double-down", "chevron-double-left-o", "chevron-double-left-r", "chevron-double-left", "chevron-double-right-o", "chevron-double-right-r", "chevron-double-right", "chevron-double-up-o", "chevron-double-up-r", "chevron-double-up", "chevron-down-o", "chevron-down-r", "chevron-down", "chevron-left-o", "chevron-left-r", "chevron-left", "chevron-right-o", "chevron-right-r", "chevron-right", "chevron-up-o", "chevron-up-r", "chevron-up", "clapper-board", "clipboard", "close-o", "close-r", "close", "cloud", "code-slash", "code", "coffee", "collage", "color-bucket", "color-picker", "comment", "community", "components", "compress-left", "compress-right", "compress-v", "compress", "controller", "copy", "copyright", "corner-double-down-left", "corner-double-down-right", "corner-double-left-down", "corner-double-left-up", "corner-double-right-down", "corner-double-right-up", "corner-double-up-left", "corner-double-up-right", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left", "corner-up-right", "credit-card", "crop", "cross", "crown", "danger", "dark-mode", "data", "database", "debug", "desktop", "details-less", "details-more", "dialpad", "dice-1", "dice-2", "dice-3", "dice-4", "dice-5", "dice-6", "disc", "display-flex", "display-fullwidth", "display-grid", "display-spacing", "distribute-horizontal", "distribute-vertical", "dock-bottom", "dock-left", "dock-right", "dock-window", "dollar", "drive", "drop-invert", "drop-opacity", "drop", "duplicate", "edit-black-point", "edit-contrast", "edit-exposure", "edit-fade", "edit-flip-h", "edit-flip-v", "edit-highlight", "edit-markup", "edit-mask", "edit-noise", "edit-shadows", "edit-straight", "edit-unmask", "eject", "enter", "erase", "ereader", "ericsson", "ethernet", "euro", "expand", "export", "extension-add", "extension-alt", "extension-remove", "extension", "external", "eye-alt", "eye", "feed", "file-add", "file-document", "file-remove", "file", "film", "filters", "flag-alt", "flag", "folder-add", "folder-remove", "folder", "font-height", "font-spacing", "format-bold", "format-center", "format-color", "format-heading", "format-indent-decrease", "format-indent-increase", "format-italic", "format-justify", "format-left", "format-line-height", "format-right", "format-separator", "format-slash", "format-strike", "format-text", "format-underline", "format-uppercase", "games", "gender-female", "gender-male", "ghost-character", "gift", "girl", "git-branch", "git-commit", "git-fork", "git-pull", "glass-alt", "glass", "globe-alt", "globe", "gym", "hashtag", "headset", "heart", "home-alt", "home-screen", "home", "icecream", "image", "import", "inbox", "infinity", "info", "inpicture", "insert-after-o", "insert-after-r", "insert-after", "insert-before-o", "insert-before-r", "insert-before", "insights", "internal", "key", "keyboard", "keyhole", "laptop", "layout-grid-small", "layout-grid", "layout-list", "layout-pin", "link", "list-tree", "list", "live-photo", "loadbar-alt", "loadbar-doc", "loadbar-sound", "loadbar", "lock-unlock", "lock", "log-in", "log-off", "log-out", "loupe", "magnet", "mail-forward", "mail-open", "mail-reply", "mail", "math-divide", "math-equal", "math-minus", "math-percent", "math-plus", "maximize-alt", "maximize", "media-live", "media-podcast", "menu-boxed", "menu-cake", "menu-cheese", "menu-grid-o", "menu-grid-r", "menu-hotdog", "menu-left-alt", "menu-left", "menu-motion", "menu-oreos", "menu-right-alt", "menu-right", "menu-round", "menu", "merge-horizontal", "merge-vertical", "mic", "mini-player", "minimize-alt", "minimize", "modem", "moon", "more-alt", "more-o", "more-r", "more-vertical-alt", "more-vertical-o", "more-vertical-r", "more-vertical", "more", "mouse", "move-down", "move-left", "move-right", "move-task", "move-up", "music-note", "music-speaker", "music", "nametag", "notes", "notifications", "options", "organisation", "password", "path-back", "path-crop", "path-divide", "path-exclude", "path-front", "path-intersect", "path-outline", "path-trim", "path-unite", "pen", "pentagon-bottom-left", "pentagon-bottom-right", "pentagon-down", "pentagon-left", "pentagon-right", "pentagon-top-left", "pentagon-top-right", "pentagon-up", "performance", "phone", "photoscan", "piano", "pill", "pin-alt", "pin-bottom", "pin-top", "pin", "play-backwards", "play-button-o", "play-button-r", "play-button", "play-forwards", "play-list-add", "play-list-check", "play-list-remove", "play-list-search", "play-list", "play-pause-o", "play-pause-r", "play-pause", "play-stop-o", "play-stop-r", "play-stop", "play-track-next-o", "play-track-next-r", "play-track-next", "play-track-prev-o", "play-track-prev-r", "play-track-prev", "plug", "polaroid", "poll", "presentation", "printer", "profile", "pull-clear", "push-chevron-down-o", "push-chevron-down-r", "push-chevron-down", "push-chevron-left-o", "push-chevron-left-r", "push-chevron-left", "push-chevron-right-o", "push-chevron-right-r", "push-chevron-right", "push-chevron-up-o", "push-chevron-up-r", "push-chevron-up", "push-down", "push-left", "push-right", "push-up", "qr", "quote-o", "quote", "radio-check", "radio-checked", "ratio", "read", "readme", "record", "redo", "remote", "remove-r", "remove", "rename", "reorder", "repeat", "ring", "row-first", "row-last", "ruler", "sand-clock", "scan", "screen-mirror", "screen-shot", "screen-wide", "screen", "scroll-h", "scroll-v", "search-found", "search-loading", "search", "select-o", "select-r", "select", "server", "shape-circle", "shape-half-circle", "shape-hexagon", "shape-rhombus", "shape-square", "shape-triangle", "shape-zigzag", "share", "shield", "shopping-bag", "shopping-cart", "shortcut", "sidebar-open", "sidebar-right", "sidebar", "signal", "size", "sleep", "smart-home-boiler", "smart-home-cooker", "smart-home-heat", "smart-home-light", "smart-home-refrigerator", "smart-home-wash-machine", "smartphone-chip", "smartphone-ram", "smartphone-shake", "smartphone", "smile-mouth-open", "smile-neutral", "smile-no-mouth", "smile-none", "smile-sad", "smile-upside", "smile", "software-download", "software-upload", "sort-az", "sort-za", "space-between-v", "space-between", "spinner-alt", "spinner-two-alt", "spinner-two", "spinner", "stack", "stopwatch", "stories", "style", "sun", "support", "swap-vertical", "swap", "sweden", "swiss", "sync", "tab", "tag", "tap-double", "tap-single", "template", "tennis", "terminal", "terrain", "thermometer", "thermostat", "tikcode", "time", "timelapse", "timer", "today", "toggle-off", "toggle-on", "toggle-square-off", "toggle-square", "toolbar-bottom", "toolbar-left", "toolbar-right", "toolbar-top", "toolbox", "touchpad", "track", "transcript", "trash-empty", "trash", "tree", "trees", "trending-down", "trending", "trophy", "tv", "ui-kit", "umbrella", "unavailable", "unblock", "undo", "unsplash", "usb-c", "usb", "user-add", "user-list", "user-remove", "user", "view-cols", "view-comfortable", "view-day", "view-grid", "view-list", "view-month", "view-split", "vinyl", "voicemail-o", "voicemail-r", "voicemail", "volume", "webcam", "website", "work-alt", "yinyang", "zoom-in", "zoom-out", "rectangle-rounded", "card", "image-text", "border-top", "full-width-screen", "text-input", "number-input", "canvas-alert", "warning", "info-filled"];
|
|
441
|
+
/** A list of available icon names that can be used with the Uniform brand */
|
|
442
|
+
declare type IconName = typeof iconNames[number];
|
|
443
|
+
|
|
444
|
+
/** sets fill color of the svg icon */
|
|
445
|
+
declare type IconColor = 'green' | 'red' | 'gray' | 'currentColor';
|
|
446
|
+
/** sets the type of icon to use from the available list */
|
|
447
|
+
declare type IconType = IconName | IconType$1;
|
|
448
|
+
interface IconProps extends IconBaseProps {
|
|
449
|
+
/** sets the icon to be used */
|
|
450
|
+
icon: IconType;
|
|
451
|
+
/** sets the icon color to be used */
|
|
452
|
+
iconColor?: IconColor;
|
|
453
|
+
/** sets additional icon props provided by "react-icons" */
|
|
454
|
+
otherProps?: IconBaseProps;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Component that renders icons
|
|
458
|
+
* @example <Icon icon="add-r" iconColor="currentColor" />
|
|
459
|
+
*/
|
|
460
|
+
declare const Icon: React__default.MemoExoticComponent<({ icon, iconColor, size, ...otherProps }: IconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null>;
|
|
461
|
+
|
|
462
|
+
declare type IconsMap = Record<string, IconType$1>;
|
|
463
|
+
declare function useIconContext(): {
|
|
464
|
+
iconsMap: IconsMap;
|
|
465
|
+
isLoading: boolean;
|
|
466
|
+
};
|
|
467
|
+
/**
|
|
468
|
+
* Provider to the Icon component
|
|
469
|
+
* @example <IconsProvider><Icon icon="add-r" /></IconsProvider>
|
|
470
|
+
*/
|
|
471
|
+
declare function IconsProvider({ children }: {
|
|
472
|
+
children: ReactNode;
|
|
473
|
+
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
474
|
+
|
|
475
|
+
declare type CaptionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
476
|
+
/** allows users to add child elements */
|
|
477
|
+
children: React$1.ReactNode;
|
|
478
|
+
/** Makes the font size relative to the inherited font size */
|
|
479
|
+
dynamicSize?: boolean;
|
|
480
|
+
/** sets data-test-id attribute for test automation */
|
|
481
|
+
testId?: string;
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Component that provides caption text to input fields
|
|
485
|
+
* @example <Caption>some help text here</Caption>
|
|
486
|
+
*/
|
|
487
|
+
declare const Caption: ({ children, testId, dynamicSize, ...props }: CaptionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
488
|
+
|
|
489
|
+
declare type CheckboxWithInforProps = React.HTMLAttributes<HTMLInputElement> & {
|
|
490
|
+
/** sets the label value */
|
|
491
|
+
label: string;
|
|
492
|
+
/** sets the name value of the radio/checkbox input */
|
|
493
|
+
name: string;
|
|
494
|
+
/** sets info message */
|
|
495
|
+
info?: string;
|
|
496
|
+
/** (optional) sets the checked state of the input */
|
|
497
|
+
checked?: boolean;
|
|
498
|
+
};
|
|
499
|
+
/** @example <CheckboxWithInfo label="checkbox" name="name" info="some message" /> */
|
|
500
|
+
declare const CheckboxWithInfo: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLInputElement> & {
|
|
501
|
+
/** sets the label value */
|
|
502
|
+
label: string;
|
|
503
|
+
/** sets the name value of the radio/checkbox input */
|
|
504
|
+
name: string;
|
|
505
|
+
/** sets info message */
|
|
506
|
+
info?: string | undefined;
|
|
507
|
+
/** (optional) sets the checked state of the input */
|
|
508
|
+
checked?: boolean | undefined;
|
|
509
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
193
510
|
|
|
194
511
|
declare type ErrorMessageProps = {
|
|
195
512
|
/** sets the error message value */
|
|
@@ -204,6 +521,28 @@ declare type ErrorMessageProps = {
|
|
|
204
521
|
*/
|
|
205
522
|
declare const ErrorMessage: ({ message, testId, ...otherProps }: ErrorMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
206
523
|
|
|
524
|
+
declare type FieldsetProps = React$1.HTMLAttributes<HTMLFieldSetElement> & {
|
|
525
|
+
/** sets the legend value */
|
|
526
|
+
legend: React$1.ReactElement;
|
|
527
|
+
/** sets the disabled value and sets child inputs disabled */
|
|
528
|
+
disabled?: boolean;
|
|
529
|
+
actionButton?: React$1.ReactElement;
|
|
530
|
+
children: React$1.ReactNode;
|
|
531
|
+
/** Inverts the background to white for use on forms that already have a gray background */
|
|
532
|
+
invert?: boolean;
|
|
533
|
+
};
|
|
534
|
+
/** @example <Fieldset legend={<Legend>what a legend</Legend>}>some child component</Fieldset> */
|
|
535
|
+
declare const Fieldset: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLFieldSetElement> & {
|
|
536
|
+
/** sets the legend value */
|
|
537
|
+
legend: React$1.ReactElement;
|
|
538
|
+
/** sets the disabled value and sets child inputs disabled */
|
|
539
|
+
disabled?: boolean | undefined;
|
|
540
|
+
actionButton?: React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | undefined;
|
|
541
|
+
children: React$1.ReactNode;
|
|
542
|
+
/** Inverts the background to white for use on forms that already have a gray background */
|
|
543
|
+
invert?: boolean | undefined;
|
|
544
|
+
} & React$1.RefAttributes<HTMLFieldSetElement>>;
|
|
545
|
+
|
|
207
546
|
declare type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
208
547
|
/** (optional) sets the label value */
|
|
209
548
|
label?: string;
|
|
@@ -417,6 +756,21 @@ declare type InputToggleProps = React$1.HTMLAttributes<HTMLInputElement> & {
|
|
|
417
756
|
*/
|
|
418
757
|
declare const InputToggle: ({ label, type, disabled, checked, name, caption, errorMessage, warningMessage, testId, fontWeight, ...props }: InputToggleProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
419
758
|
|
|
759
|
+
declare type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
760
|
+
/** sets child elements within the label tag, normally the default label text */
|
|
761
|
+
children: React$1.ReactNode;
|
|
762
|
+
/** (optional) sets additional css properties */
|
|
763
|
+
className?: SerializedStyles | string;
|
|
764
|
+
/** (optional) test id for test automation*/
|
|
765
|
+
testId?: string;
|
|
766
|
+
};
|
|
767
|
+
declare const Label: ({ children, className, testId, ...props }: LabelProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
768
|
+
|
|
769
|
+
declare type LegendProps = {
|
|
770
|
+
children: ReactNode;
|
|
771
|
+
};
|
|
772
|
+
declare const Legend: ({ children }: LegendProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
773
|
+
|
|
420
774
|
declare type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
421
775
|
/** (optional) sets the label value */
|
|
422
776
|
label?: string;
|
|
@@ -438,38 +792,6 @@ declare type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
438
792
|
*/
|
|
439
793
|
declare const Textarea: ({ label, icon, id, caption, showLabel, errorMessage, warningMessage, ...props }: TextareaProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
440
794
|
|
|
441
|
-
declare type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
442
|
-
/** sets child elements within the label tag, normally the default label text */
|
|
443
|
-
children: React$1.ReactNode;
|
|
444
|
-
/** (optional) sets additional css properties */
|
|
445
|
-
className?: SerializedStyles | string;
|
|
446
|
-
/** (optional) test id for test automation*/
|
|
447
|
-
testId?: string;
|
|
448
|
-
};
|
|
449
|
-
declare const Label: ({ children, className, testId, ...props }: LabelProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
450
|
-
|
|
451
|
-
declare type CheckboxWithInforProps = React.HTMLAttributes<HTMLInputElement> & {
|
|
452
|
-
/** sets the label value */
|
|
453
|
-
label: string;
|
|
454
|
-
/** sets the name value of the radio/checkbox input */
|
|
455
|
-
name: string;
|
|
456
|
-
/** sets info message */
|
|
457
|
-
info?: string;
|
|
458
|
-
/** (optional) sets the checked state of the input */
|
|
459
|
-
checked?: boolean;
|
|
460
|
-
};
|
|
461
|
-
/** @example <CheckboxWithInfo label="checkbox" name="name" info="some message" /> */
|
|
462
|
-
declare const CheckboxWithInfo: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLInputElement> & {
|
|
463
|
-
/** sets the label value */
|
|
464
|
-
label: string;
|
|
465
|
-
/** sets the name value of the radio/checkbox input */
|
|
466
|
-
name: string;
|
|
467
|
-
/** sets info message */
|
|
468
|
-
info?: string | undefined;
|
|
469
|
-
/** (optional) sets the checked state of the input */
|
|
470
|
-
checked?: boolean | undefined;
|
|
471
|
-
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
472
|
-
|
|
473
795
|
declare type WarningMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
474
796
|
/** sets the error message value */
|
|
475
797
|
message?: string;
|
|
@@ -482,40 +804,108 @@ declare type WarningMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
|
482
804
|
*/
|
|
483
805
|
declare const WarningMessage: ({ message, testId, ...props }: WarningMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
484
806
|
|
|
485
|
-
declare type
|
|
486
|
-
/**
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
/** Inverts the background to white for use on forms that already have a gray background */
|
|
493
|
-
invert?: boolean;
|
|
494
|
-
};
|
|
495
|
-
/** @example <Fieldset legend={<Legend>what a legend</Legend>}>some child component</Fieldset> */
|
|
496
|
-
declare const Fieldset: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLFieldSetElement> & {
|
|
497
|
-
/** sets the legend value */
|
|
498
|
-
legend: React$1.ReactElement;
|
|
499
|
-
/** sets the disabled value and sets child inputs disabled */
|
|
500
|
-
disabled?: boolean | undefined;
|
|
501
|
-
actionButton?: React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | undefined;
|
|
502
|
-
children: React$1.ReactNode;
|
|
503
|
-
/** Inverts the background to white for use on forms that already have a gray background */
|
|
504
|
-
invert?: boolean | undefined;
|
|
505
|
-
} & React$1.RefAttributes<HTMLFieldSetElement>>;
|
|
506
|
-
|
|
507
|
-
declare type LegendProps = {
|
|
508
|
-
children: ReactNode;
|
|
807
|
+
declare type LimitsBarProps = {
|
|
808
|
+
/** The current value of used limits */
|
|
809
|
+
current: number;
|
|
810
|
+
/** The maximum number of limits */
|
|
811
|
+
max: number;
|
|
812
|
+
/** Text value used for the label text */
|
|
813
|
+
label: string;
|
|
509
814
|
};
|
|
510
|
-
|
|
815
|
+
/**
|
|
816
|
+
* Uniform Limits Bar Component
|
|
817
|
+
* @example <LimitsBar current="3" max="5" label="signals" />
|
|
818
|
+
*/
|
|
819
|
+
declare const LimitsBar: ({ current, max, label }: LimitsBarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
511
820
|
|
|
512
|
-
|
|
821
|
+
declare type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
822
|
+
/** sets the title field */
|
|
823
|
+
title: string;
|
|
824
|
+
/** (optional) sets react child component */
|
|
825
|
+
children?: React$1.ReactNode;
|
|
826
|
+
};
|
|
827
|
+
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
828
|
+
|
|
829
|
+
declare type ScrollableListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
830
|
+
/** (optional) sets the label value */
|
|
831
|
+
label?: string;
|
|
832
|
+
/** (optional) allows users to add child components within the container */
|
|
833
|
+
children?: React$1.ReactNode;
|
|
834
|
+
};
|
|
835
|
+
/**
|
|
836
|
+
* Component that sets the base structure for scrollable content in a max height container
|
|
837
|
+
* @example <ScrollableList label="allowed content types"><button>say hello</button></ScrollableList>
|
|
838
|
+
*/
|
|
839
|
+
declare const ScrollableList: ({ label, children, ...props }: ScrollableListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
840
|
+
|
|
841
|
+
declare type ScrollableItemProps = React.HTMLAttributes<HTMLInputElement> & {
|
|
842
|
+
/** sets an element within the label > span element */
|
|
843
|
+
icon?: React.ReactElement;
|
|
844
|
+
/**sets the label value */
|
|
845
|
+
label: string;
|
|
846
|
+
/** sets a data-test-id on the label */
|
|
847
|
+
labelTestId?: string;
|
|
848
|
+
/** sets the active style of the element */
|
|
849
|
+
active: boolean;
|
|
850
|
+
/** recommended to use a form input element of type radio or checkbox */
|
|
851
|
+
children: React.ReactNode;
|
|
852
|
+
};
|
|
853
|
+
/** @example <ScrollableListInputItem label="my label" active={true}><input type="radio" name="age" /></ScrollableListInputItem>*/
|
|
854
|
+
declare const ScrollableListInputItem: ({ label, icon, active, children, labelTestId, }: ScrollableItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
855
|
+
|
|
856
|
+
declare type ScrollableListItemProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
857
|
+
/** sets the button text value */
|
|
858
|
+
buttonText: string;
|
|
859
|
+
/** sets the active style of the button */
|
|
860
|
+
active: boolean;
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* Component used within <ScrollableList /> for adding interactive button components with predefined styles
|
|
864
|
+
* @example <ScrollableListItem buttontext="my button" active={false} />
|
|
865
|
+
*/
|
|
866
|
+
declare const ScrollableListItem: ({ buttonText, active, ...props }: ScrollableListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Loading Indicator
|
|
870
|
+
* @example <LoadingIndicator />
|
|
871
|
+
*/
|
|
872
|
+
declare const LoadingIndicator: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
873
|
+
|
|
874
|
+
interface LoadingOverlayProps {
|
|
875
|
+
/** sets whether to display the loading overlay components */
|
|
876
|
+
isActive: boolean;
|
|
877
|
+
/** (optional) type that sets a text value or React component under the loading icon */
|
|
878
|
+
statusMessage?: string | JSX.Element;
|
|
879
|
+
/** (optional) the z-index value of the overlay
|
|
880
|
+
* @default 9999
|
|
881
|
+
*/
|
|
882
|
+
zIndex?: number;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Loading Overlay.
|
|
886
|
+
* NOTE: the container/parent element must have a non-static `position` value for the overlay to work properly.
|
|
887
|
+
* @example <LoadingOverlay isActive={true} statusMessage="Loading..." />
|
|
888
|
+
*/
|
|
889
|
+
declare const LoadingOverlay: ({ isActive, statusMessage, zIndex }: LoadingOverlayProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
890
|
+
interface LoadingIconProps extends HTMLAttributes<SVGSVGElement> {
|
|
891
|
+
/** (optional) prop that sets a number value for the height of the icon */
|
|
892
|
+
width?: number;
|
|
893
|
+
/** (optional) prop that sets a number value for the width of the icon */
|
|
894
|
+
height?: number;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Loading Icon
|
|
898
|
+
* @example <LoadingIcon height={128} width={128} />
|
|
899
|
+
*/
|
|
900
|
+
declare const LoadingIcon: ({ height, width, ...props }: LoadingIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
901
|
+
|
|
902
|
+
interface MenuProps extends MenuHTMLProps {
|
|
513
903
|
/** sets aria-label attribute */
|
|
514
904
|
menuLabel: string;
|
|
515
905
|
/** the component that triggers the menu functionality */
|
|
516
906
|
menuTrigger: React$1.ReactElement & React$1.RefAttributes<any>;
|
|
517
907
|
/** (optional) reakit placements options for the expandable menu */
|
|
518
|
-
placement?: MenuProps$
|
|
908
|
+
placement?: MenuProps$2['placement'];
|
|
519
909
|
/** (optional) allows users to set additional class names */
|
|
520
910
|
menuItemsContainerCssClasses?: SerializedStyles | string;
|
|
521
911
|
/** (optional) allows users to add child elements */
|
|
@@ -558,97 +948,276 @@ declare const MenuItem: React$1.FC<MenuItemProps>;
|
|
|
558
948
|
|
|
559
949
|
declare const MenuItemSeparator: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
560
950
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* @default false
|
|
570
|
-
*/
|
|
571
|
-
compact?: boolean;
|
|
572
|
-
/** (optional) sets the title of the callout */
|
|
573
|
-
title?: React$1.ReactNode;
|
|
574
|
-
/** add child elements to the callout */
|
|
951
|
+
declare type IntegrationModalHeaderProps = {
|
|
952
|
+
/** sets the icon as inline svg or img tag */
|
|
953
|
+
icon: string | React$1.ComponentType<{
|
|
954
|
+
className?: string;
|
|
955
|
+
}> | undefined | null;
|
|
956
|
+
/** sets the alt text of the image */
|
|
957
|
+
name: string | undefined;
|
|
958
|
+
/** (optional) sets react child elements */
|
|
575
959
|
children?: React$1.ReactNode;
|
|
576
|
-
/** sets
|
|
960
|
+
/** (optional) sets child elements in */
|
|
961
|
+
menu?: React$1.ReactNode;
|
|
962
|
+
};
|
|
963
|
+
declare type HexModalBackgroundProps = React$1.SVGAttributes<SVGElement>;
|
|
964
|
+
declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
965
|
+
/** Uniform Integration Modal Header
|
|
966
|
+
* @example <IntegrationModalHeader icon="/icon.svg" name="name" />
|
|
967
|
+
*/
|
|
968
|
+
declare const IntegrationModalHeader: ({ icon, name, menu, children }: IntegrationModalHeaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
969
|
+
|
|
970
|
+
declare function ShortcutContext({ children }: {
|
|
971
|
+
children: React__default.ReactNode;
|
|
972
|
+
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
973
|
+
declare function ShortcutRevealer({ shortcut, macShortcut, className, }: {
|
|
974
|
+
shortcut: string;
|
|
975
|
+
macShortcut?: string;
|
|
577
976
|
className?: SerializedStyles | string;
|
|
578
|
-
}
|
|
977
|
+
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
978
|
+
|
|
979
|
+
declare type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
980
|
+
/** sets the label value */
|
|
981
|
+
label: string;
|
|
982
|
+
/** (optional) sets information text */
|
|
983
|
+
infoText?: string;
|
|
984
|
+
/** sets the toggle text value */
|
|
985
|
+
toggleText?: string;
|
|
986
|
+
/** sets child elements */
|
|
987
|
+
children?: React$1.ReactNode;
|
|
988
|
+
};
|
|
579
989
|
/**
|
|
580
|
-
* Uniform
|
|
581
|
-
* @
|
|
990
|
+
* Uniform Switch Input Component
|
|
991
|
+
* @param {Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>} inputProps - props for an input element that can be passed down, "type" is omitted from the prop list
|
|
992
|
+
* @example <Switch label="my switch" name="switch-name" onChange={() => setChecked((prev) => !prev)} checked={checked} infoText="my info text" toggleText="my toggle text" />
|
|
582
993
|
*/
|
|
583
|
-
declare const
|
|
994
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
995
|
+
/** sets the label value */
|
|
996
|
+
label: string;
|
|
997
|
+
/** (optional) sets information text */
|
|
998
|
+
infoText?: string | undefined;
|
|
999
|
+
/** sets the toggle text value */
|
|
1000
|
+
toggleText?: string | undefined;
|
|
1001
|
+
/** sets child elements */
|
|
1002
|
+
children?: React$1.ReactNode;
|
|
1003
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
584
1004
|
|
|
1005
|
+
declare type TableProps = React$1.ComponentPropsWithoutRef<'table'>;
|
|
1006
|
+
declare type TableHeadProps = React$1.ComponentPropsWithoutRef<'thead'>;
|
|
1007
|
+
declare type TableBodyProps = React$1.ComponentPropsWithoutRef<'tbody'>;
|
|
1008
|
+
declare type TableFootProps = React$1.ComponentPropsWithoutRef<'tfoot'>;
|
|
1009
|
+
declare type TableRowProps = React$1.ComponentPropsWithoutRef<'tr'>;
|
|
1010
|
+
declare type TableCellHeadProps = React$1.ComponentPropsWithoutRef<'th'>;
|
|
1011
|
+
declare type TableCellDataProps = React$1.ComponentPropsWithoutRef<'td'>;
|
|
585
1012
|
/**
|
|
586
|
-
*
|
|
587
|
-
* @example
|
|
1013
|
+
* Uniform's Table component
|
|
1014
|
+
* @example
|
|
1015
|
+
* <Table>
|
|
1016
|
+
<TableHead>
|
|
1017
|
+
<TableRow>
|
|
1018
|
+
<TableCellHead>head 1</TableCellHead>
|
|
1019
|
+
<TableCellHead>head 2</TableCellHead>
|
|
1020
|
+
</TableRow>
|
|
1021
|
+
</TableHead>
|
|
1022
|
+
<TableBody>
|
|
1023
|
+
<TableRow>
|
|
1024
|
+
<TableCellData>value 1</TableCellData>
|
|
1025
|
+
<TableCellData>value 2</TableCellData>
|
|
1026
|
+
</TableRow>
|
|
1027
|
+
</TableBody>
|
|
1028
|
+
<TableFoot>
|
|
1029
|
+
<TableRow>
|
|
1030
|
+
<TableCellData>footer</TableCellData>
|
|
1031
|
+
</TableRow>
|
|
1032
|
+
</TableFoot>
|
|
1033
|
+
</Table>
|
|
588
1034
|
*/
|
|
589
|
-
declare const
|
|
1035
|
+
declare const Table: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "key" | keyof React$1.TableHTMLAttributes<HTMLTableElement>> & React$1.RefAttributes<HTMLTableElement>>;
|
|
1036
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1037
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1038
|
+
declare const TableFoot: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1039
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableRowElement>> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
1040
|
+
declare const TableCellHead: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1041
|
+
declare const TableCellData: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "key" | keyof React$1.TdHTMLAttributes<HTMLTableDataCellElement>> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
590
1042
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
* @default 9999
|
|
598
|
-
*/
|
|
599
|
-
zIndex?: number;
|
|
1043
|
+
declare const useCurrentTab: () => TabState;
|
|
1044
|
+
interface TabsProps {
|
|
1045
|
+
selectedId?: string;
|
|
1046
|
+
manual?: boolean;
|
|
1047
|
+
orientation?: TabState['orientation'];
|
|
1048
|
+
children: React__default.ReactNode;
|
|
600
1049
|
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
declare const LoadingOverlay: ({ isActive, statusMessage, zIndex }: LoadingOverlayProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
607
|
-
interface LoadingIconProps extends HTMLAttributes<SVGSVGElement> {
|
|
608
|
-
/** (optional) prop that sets a number value for the height of the icon */
|
|
609
|
-
width?: number;
|
|
610
|
-
/** (optional) prop that sets a number value for the width of the icon */
|
|
611
|
-
height?: number;
|
|
1050
|
+
declare const Tabs: ({ children, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1051
|
+
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1052
|
+
interface TabButtonProps extends Partial<TabProps> {
|
|
1053
|
+
id: string;
|
|
1054
|
+
children: React__default.ReactNode;
|
|
612
1055
|
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
1056
|
+
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1057
|
+
interface TabContentProps extends Partial<TabPanelProps> {
|
|
1058
|
+
id: string;
|
|
1059
|
+
children: React__default.ReactNode;
|
|
1060
|
+
}
|
|
1061
|
+
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
618
1062
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
/** sets the type of heading tag between h1 to h6, defaults to <h2>
|
|
623
|
-
* @default 2
|
|
1063
|
+
declare type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1064
|
+
/** (optional) sets the title value
|
|
1065
|
+
* @default 'Create a custom integration'
|
|
624
1066
|
*/
|
|
625
|
-
|
|
626
|
-
/** sets the
|
|
627
|
-
|
|
628
|
-
/** (optional) sets whether to use the default margin for the heading element
|
|
629
|
-
* @default true
|
|
1067
|
+
title?: string;
|
|
1068
|
+
/** (optional) sets the button text value
|
|
1069
|
+
* @default 'Add Integration'
|
|
630
1070
|
*/
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
1071
|
+
buttonText?: string;
|
|
1072
|
+
/** sets the button function call */
|
|
1073
|
+
onClick: () => void;
|
|
1074
|
+
/** (optional) sets the icon position and icon type
|
|
1075
|
+
* @default 'false'
|
|
1076
|
+
*/
|
|
1077
|
+
asDeepLink?: boolean;
|
|
1078
|
+
};
|
|
1079
|
+
declare const CreateTeamIntegrationTile: ({ title, buttonText, onClick, asDeepLink, ...props }: CreateTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
638
1080
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
1081
|
+
interface IntegrationTileFields {
|
|
1082
|
+
icon?: string | React.ComponentType<{
|
|
1083
|
+
className?: string;
|
|
1084
|
+
}> | undefined;
|
|
1085
|
+
name: string;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare type EditTeamIntegrationTileProps = IntegrationTileFields & {
|
|
1089
|
+
/** sets the id value */
|
|
1090
|
+
id: string;
|
|
1091
|
+
/** sets the function call for the button */
|
|
1092
|
+
onEdit: () => void;
|
|
1093
|
+
/** (optional) sets whether the integration is public or not */
|
|
1094
|
+
isPublic?: boolean;
|
|
1095
|
+
/** displays the edit button component */
|
|
1096
|
+
canEdit: boolean;
|
|
1097
|
+
};
|
|
1098
|
+
/** Uniform Edit Team Integration Tile
|
|
1099
|
+
* @example <EditTeamIntegrationTile id="example" onEdit={() => func()} canEdit={true} isPublis={true} name="example" icon="./image.svg" />
|
|
1100
|
+
*/
|
|
1101
|
+
declare const EditTeamIntegrationTile: ({ id, icon, name, onEdit, isPublic, canEdit, }: EditTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1102
|
+
|
|
1103
|
+
declare type IntegrationComingSoonProps = IntegrationTileFields & React.HTMLAttributes<HTMLDivElement> & {
|
|
1104
|
+
/** sets the id and data-testid value */
|
|
1105
|
+
id: string;
|
|
1106
|
+
/** click event used for tracking analytics data */
|
|
1107
|
+
onUpVoteClick: () => void;
|
|
1108
|
+
/** (optional) sets the thank you message visibility duration
|
|
1109
|
+
* @default 1000
|
|
1110
|
+
*/
|
|
1111
|
+
timing?: number;
|
|
1112
|
+
};
|
|
647
1113
|
/**
|
|
648
|
-
*
|
|
649
|
-
* @example <
|
|
1114
|
+
* Uniform Integration Coming Soon Component
|
|
1115
|
+
* @example <IntegrationComingSoon id="piedpiper" name="Pied Piper" icon="./piedpiper.svg" onUpVoteClick={() => someFunc()} />
|
|
650
1116
|
*/
|
|
651
|
-
declare const
|
|
1117
|
+
declare const IntegrationComingSoon: ({ name, icon, id, onUpVoteClick, timing, ...props }: IntegrationComingSoonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1118
|
+
|
|
1119
|
+
declare type IntegrationLoadingTileProps = {
|
|
1120
|
+
/** (optional) sets the number of skeletal loading elements to show
|
|
1121
|
+
* @default 1
|
|
1122
|
+
*/
|
|
1123
|
+
count?: number;
|
|
1124
|
+
};
|
|
1125
|
+
/** Uniform Integration Loading Tile
|
|
1126
|
+
* @example <IntegrationLoadingTile count={10} />
|
|
1127
|
+
*/
|
|
1128
|
+
declare const IntegrationLoadingTile: ({ count }: IntegrationLoadingTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1129
|
+
|
|
1130
|
+
declare type IntegrationModalIconProps = React$1.ImgHTMLAttributes<HTMLImageElement> & {
|
|
1131
|
+
/** sets the icon as inline svg or img tag */
|
|
1132
|
+
icon: string | React$1.ComponentType<{
|
|
1133
|
+
className?: string;
|
|
1134
|
+
}> | undefined;
|
|
1135
|
+
/** sets the alt text of the image */
|
|
1136
|
+
name: string;
|
|
1137
|
+
};
|
|
1138
|
+
/**
|
|
1139
|
+
* Uniform Integration Modal Icon
|
|
1140
|
+
* @example <IntegrationModalIcon name="name" icon="/my-icon.svg" />
|
|
1141
|
+
*/
|
|
1142
|
+
declare const IntegrationModalIcon: ({ icon, name, ...imgProps }: IntegrationModalIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1143
|
+
|
|
1144
|
+
declare type IntegrationTileProps = IntegrationTileFields & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1145
|
+
id: string;
|
|
1146
|
+
requiedEntitlement?: boolean | undefined;
|
|
1147
|
+
onAddIntegration: () => void;
|
|
1148
|
+
isPublic?: boolean;
|
|
1149
|
+
isInstalled?: boolean;
|
|
1150
|
+
authorIcon?: string | React$1.ComponentType<{
|
|
1151
|
+
className?: string;
|
|
1152
|
+
}> | undefined;
|
|
1153
|
+
};
|
|
1154
|
+
declare const IntegrationTile: ({ id, icon, name, requiedEntitlement, onAddIntegration, isPublic, isInstalled, authorIcon, ...btnProps }: IntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1155
|
+
|
|
1156
|
+
declare type ClassNameOptions = 'logo' | 'author';
|
|
1157
|
+
declare type ResolveIconProps = IntegrationTileFields & React__default.SVGAttributes<SVGElement> & React__default.ImgHTMLAttributes<HTMLImageElement> & {
|
|
1158
|
+
/** sets the emotion styles for the rendered image
|
|
1159
|
+
* @default 'logo'
|
|
1160
|
+
*/
|
|
1161
|
+
styleType?: ClassNameOptions;
|
|
1162
|
+
};
|
|
1163
|
+
/** Uniform Resolve Icon Component
|
|
1164
|
+
* @example <ResolveIcon icon="/my-image.png" name="my image" />
|
|
1165
|
+
*/
|
|
1166
|
+
declare const ResolveIcon: ({ icon, name, styleType, ...props }: ResolveIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
1167
|
+
|
|
1168
|
+
declare type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
1169
|
+
/** sets react child elements */
|
|
1170
|
+
children: React$1.ReactNode;
|
|
1171
|
+
};
|
|
1172
|
+
/**
|
|
1173
|
+
* Uniform Tile Container Component
|
|
1174
|
+
* @example <TileContainer><div>child content</div></TileContainer>
|
|
1175
|
+
*/
|
|
1176
|
+
declare const TileContainer: ({ children, ...props }: TileContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1177
|
+
|
|
1178
|
+
/** Available heading weights e.g. 1 - 6 */
|
|
1179
|
+
declare type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1180
|
+
declare type HeadingProps = {
|
|
1181
|
+
/** sets the type of heading tag between h1 to h6, defaults to <h2>
|
|
1182
|
+
* @default 2
|
|
1183
|
+
*/
|
|
1184
|
+
level?: LevelProps;
|
|
1185
|
+
/** sets the title value */
|
|
1186
|
+
children: React$1.ReactNode;
|
|
1187
|
+
/** (optional) sets whether to use the default margin for the heading element
|
|
1188
|
+
* @default true
|
|
1189
|
+
*/
|
|
1190
|
+
withMarginBottom?: boolean;
|
|
1191
|
+
} & React$1.HTMLAttributes<HTMLHeadingElement>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Component that sets the heading tag
|
|
1194
|
+
* @example <Heading level={1}>Blog Post Title</Heading>
|
|
1195
|
+
*/
|
|
1196
|
+
declare const Heading: ({ level, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1197
|
+
|
|
1198
|
+
declare type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
1199
|
+
/** sets the title text of the integration */
|
|
1200
|
+
title: string;
|
|
1201
|
+
/** sets the description text of the integration */
|
|
1202
|
+
description: string | string[];
|
|
1203
|
+
/** (optional) sets the icon of the integration */
|
|
1204
|
+
icon?: string | React$1.ComponentType<{
|
|
1205
|
+
className?: string;
|
|
1206
|
+
}>;
|
|
1207
|
+
/** (optional) sets the react child elements*/
|
|
1208
|
+
children?: React$1.ReactNode;
|
|
1209
|
+
/** (optional) sets an external link to documentation */
|
|
1210
|
+
docsLink?: string;
|
|
1211
|
+
/** (optional) sets the badge text of the integration */
|
|
1212
|
+
badgeText?: string;
|
|
1213
|
+
/** (optional) location for the menu options to be positioned */
|
|
1214
|
+
menu?: React$1.ReactNode;
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* Uniform Integration Header Section Component
|
|
1218
|
+
* @Example <IntegrationHeaderSection title="custom integration" description="custom integration description text" />
|
|
1219
|
+
*/
|
|
1220
|
+
declare const IntegrationHeaderSection: ({ title, description, icon, docsLink, badgeText, menu, children, ...props }: IntegrationHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
652
1221
|
|
|
653
1222
|
declare type LinkColorProps = 'currentColor' | 'red' | 'green';
|
|
654
1223
|
declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -712,580 +1281,26 @@ declare type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
|
712
1281
|
};
|
|
713
1282
|
declare const PageHeaderSection: ({ title, desc, children, linkText, level, linkProps, linkManagerComponent, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
714
1283
|
|
|
715
|
-
declare type
|
|
716
|
-
/**
|
|
717
|
-
title: string;
|
|
718
|
-
/** sets the description text of the integration */
|
|
719
|
-
description: string | string[];
|
|
720
|
-
/** (optional) sets the icon of the integration */
|
|
721
|
-
icon?: string | React$1.ComponentType<{
|
|
722
|
-
className?: string;
|
|
723
|
-
}>;
|
|
724
|
-
/** (optional) sets the react child elements*/
|
|
725
|
-
children?: React$1.ReactNode;
|
|
726
|
-
/** (optional) sets an external link to documentation */
|
|
727
|
-
docsLink?: string;
|
|
728
|
-
/** (optional) sets the badge text of the integration */
|
|
729
|
-
badgeText?: string;
|
|
730
|
-
/** (optional) location for the menu options to be positioned */
|
|
731
|
-
menu?: React$1.ReactNode;
|
|
732
|
-
};
|
|
733
|
-
/**
|
|
734
|
-
* Uniform Integration Header Section Component
|
|
735
|
-
* @Example <IntegrationHeaderSection title="custom integration" description="custom integration description text" />
|
|
736
|
-
*/
|
|
737
|
-
declare const IntegrationHeaderSection: ({ title, description, icon, docsLink, badgeText, menu, children, ...props }: IntegrationHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
738
|
-
|
|
739
|
-
declare type ScrollableListProps = {
|
|
740
|
-
/** (optional) sets the label value */
|
|
741
|
-
label?: string;
|
|
742
|
-
/** (optional) allows users to add child components within the container */
|
|
1284
|
+
declare type ParagraphProps = {
|
|
1285
|
+
/** (optional) adds child elements to the paragraph tag */
|
|
743
1286
|
children?: React$1.ReactNode;
|
|
744
|
-
|
|
1287
|
+
/** (optional) sets raw html values */
|
|
1288
|
+
htmlContent?: string | string[];
|
|
1289
|
+
/** (optional) allows user to set overriding class names or emotion styles */
|
|
1290
|
+
className?: SerializedStyles | string;
|
|
1291
|
+
} & React$1.HTMLAttributes<HTMLParagraphElement>;
|
|
745
1292
|
/**
|
|
746
|
-
* Component
|
|
747
|
-
* @example <
|
|
1293
|
+
* Component for generic paragraph tags
|
|
1294
|
+
* @example <Paragraph>This is the text that was be inside the paragraph tag.</Paragraph>
|
|
748
1295
|
*/
|
|
749
|
-
declare const
|
|
1296
|
+
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
750
1297
|
|
|
751
|
-
declare type
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
};
|
|
757
|
-
/**
|
|
758
|
-
* Component used within <ScrollableList /> for adding interactive button components with predefined styles
|
|
759
|
-
* @example <ScrollableListItem buttontext="my button" active={false} />
|
|
760
|
-
*/
|
|
761
|
-
declare const ScrollableListItem: ({ buttonText, active, ...props }: ScrollableListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
762
|
-
|
|
763
|
-
declare type ButtonThemeProps = 'primary' | 'secondary' | 'unimportant' | 'ghost';
|
|
764
|
-
interface ActionButtonsProps {
|
|
765
|
-
/** Takes a function for the visible button */
|
|
766
|
-
onButtonClick: () => void;
|
|
767
|
-
/** (optional) reakit placements options for the expandable menu */
|
|
768
|
-
placement?: MenuProps$2['placement'];
|
|
769
|
-
/** sets the theme of the button
|
|
770
|
-
* @default "secondary"
|
|
771
|
-
*/
|
|
772
|
-
buttonType?: ButtonThemeProps;
|
|
773
|
-
/** sets the button text value */
|
|
774
|
-
buttonText: string;
|
|
775
|
-
/** adds child components to the ButtonWithMenu component */
|
|
776
|
-
children: React$1.ReactNode;
|
|
777
|
-
}
|
|
778
|
-
/** ButtonWithMenuProps combines the ActionButtonsProps with React HTMLButtonElement attributes */
|
|
779
|
-
declare type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
780
|
-
/**
|
|
781
|
-
* Uniform ButtonWithMenu Component
|
|
782
|
-
* @example
|
|
783
|
-
<ButtonWithMenu
|
|
784
|
-
disabled={isDisabled}
|
|
785
|
-
buttonText="Save and close"
|
|
786
|
-
onButtonClick={() => someFunction()}
|
|
787
|
-
placement="bottom-end"
|
|
788
|
-
>
|
|
789
|
-
<MenuItem
|
|
790
|
-
disabled={isDisabled}
|
|
791
|
-
onClick={() => someFunction()}
|
|
792
|
-
key="save"
|
|
793
|
-
className="flex gap-2 items-center"
|
|
794
|
-
data-testid="save-menu-item-button"
|
|
795
|
-
>
|
|
796
|
-
<span className="whitespace-nowrap" data-test-id="save-menu-item">
|
|
797
|
-
Save
|
|
798
|
-
</span>
|
|
799
|
-
</MenuItem>
|
|
800
|
-
</ButtonWithMenu>
|
|
801
|
-
*/
|
|
802
|
-
declare const ButtonWithMenu: ({ onButtonClick, buttonType, buttonText, disabled, children, placement, ...buttonProps }: ButtonWithMenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
803
|
-
|
|
804
|
-
declare type AddButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
805
|
-
/** sets the aria-label for accessibility
|
|
806
|
-
* @default "Add"
|
|
807
|
-
*/
|
|
808
|
-
buttonText?: string;
|
|
809
|
-
onClick: () => void;
|
|
810
|
-
className?: string;
|
|
811
|
-
/** sets keyboard shortcut command for Windows
|
|
812
|
-
* @default "ctrl+alt+n"
|
|
813
|
-
*/
|
|
814
|
-
shortcut?: string | null;
|
|
815
|
-
/** sets keyboard shortcut command for Mac
|
|
816
|
-
* @default "option+n"
|
|
817
|
-
*/
|
|
818
|
-
macShortcut?: string | null;
|
|
819
|
-
};
|
|
820
|
-
/**
|
|
821
|
-
* Add button component
|
|
822
|
-
* @param {Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange'>} props - object of button props
|
|
823
|
-
* @example <AddButton buttonText="Button Text" />
|
|
824
|
-
*/
|
|
825
|
-
declare const AddButton: ({ buttonText, onClick, shortcut, macShortcut, ...props }: AddButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
826
|
-
|
|
827
|
-
declare function ShortcutContext({ children }: {
|
|
828
|
-
children: React__default.ReactNode;
|
|
829
|
-
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
830
|
-
declare function ShortcutRevealer({ shortcut, macShortcut, className, }: {
|
|
831
|
-
shortcut: string;
|
|
832
|
-
macShortcut?: string;
|
|
833
|
-
className?: SerializedStyles | string;
|
|
834
|
-
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
835
|
-
|
|
836
|
-
declare type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
837
|
-
/** sets the label value */
|
|
838
|
-
label: string;
|
|
839
|
-
/** (optional) sets information text */
|
|
840
|
-
infoText?: string;
|
|
841
|
-
/** sets the toggle text value */
|
|
842
|
-
toggleText?: string;
|
|
843
|
-
/** sets child elements */
|
|
844
|
-
children?: React$1.ReactNode;
|
|
845
|
-
};
|
|
846
|
-
/**
|
|
847
|
-
* Uniform Switch Input Component
|
|
848
|
-
* @param {Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>} inputProps - props for an input element that can be passed down, "type" is omitted from the prop list
|
|
849
|
-
* @example <Switch label="my switch" name="switch-name" onChange={() => setChecked((prev) => !prev)} checked={checked} infoText="my info text" toggleText="my toggle text" />
|
|
850
|
-
*/
|
|
851
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
852
|
-
/** sets the label value */
|
|
853
|
-
label: string;
|
|
854
|
-
/** (optional) sets information text */
|
|
855
|
-
infoText?: string | undefined;
|
|
856
|
-
/** sets the toggle text value */
|
|
857
|
-
toggleText?: string | undefined;
|
|
858
|
-
/** sets child elements */
|
|
859
|
-
children?: React$1.ReactNode;
|
|
860
|
-
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
861
|
-
|
|
862
|
-
declare type TableProps = React$1.ComponentPropsWithoutRef<'table'>;
|
|
863
|
-
declare type TableHeadProps = React$1.ComponentPropsWithoutRef<'thead'>;
|
|
864
|
-
declare type TableBodyProps = React$1.ComponentPropsWithoutRef<'tbody'>;
|
|
865
|
-
declare type TableFootProps = React$1.ComponentPropsWithoutRef<'tfoot'>;
|
|
866
|
-
declare type TableRowProps = React$1.ComponentPropsWithoutRef<'tr'>;
|
|
867
|
-
declare type TableCellHeadProps = React$1.ComponentPropsWithoutRef<'th'>;
|
|
868
|
-
declare type TableCellDataProps = React$1.ComponentPropsWithoutRef<'td'>;
|
|
869
|
-
/**
|
|
870
|
-
* Uniform's Table component
|
|
871
|
-
* @example
|
|
872
|
-
* <Table>
|
|
873
|
-
<TableHead>
|
|
874
|
-
<TableRow>
|
|
875
|
-
<TableCellHead>head 1</TableCellHead>
|
|
876
|
-
<TableCellHead>head 2</TableCellHead>
|
|
877
|
-
</TableRow>
|
|
878
|
-
</TableHead>
|
|
879
|
-
<TableBody>
|
|
880
|
-
<TableRow>
|
|
881
|
-
<TableCellData>value 1</TableCellData>
|
|
882
|
-
<TableCellData>value 2</TableCellData>
|
|
883
|
-
</TableRow>
|
|
884
|
-
</TableBody>
|
|
885
|
-
<TableFoot>
|
|
886
|
-
<TableRow>
|
|
887
|
-
<TableCellData>footer</TableCellData>
|
|
888
|
-
</TableRow>
|
|
889
|
-
</TableFoot>
|
|
890
|
-
</Table>
|
|
891
|
-
*/
|
|
892
|
-
declare const Table: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "key" | keyof React$1.TableHTMLAttributes<HTMLTableElement>> & React$1.RefAttributes<HTMLTableElement>>;
|
|
893
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
894
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
895
|
-
declare const TableFoot: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
896
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableRowElement>> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
897
|
-
declare const TableCellHead: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
898
|
-
declare const TableCellData: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "key" | keyof React$1.TdHTMLAttributes<HTMLTableDataCellElement>> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
899
|
-
|
|
900
|
-
declare type AddListButtonThemeProps = 'var(--brand-secondary-5)' | 'var(--brand-secondary-3)';
|
|
901
|
-
declare type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
902
|
-
/** (optional) - sets the button text and title value
|
|
903
|
-
* @default 'Add Item'
|
|
904
|
-
*/
|
|
905
|
-
buttonText?: string;
|
|
906
|
-
/** sets the function action of the button */
|
|
907
|
-
onButtonClick: () => void;
|
|
908
|
-
/** (optional) - sets the icon within the button, requires the icon provider to work
|
|
909
|
-
* @default 'regular'
|
|
910
|
-
*/
|
|
911
|
-
variant?: 'regular' | 'small';
|
|
912
|
-
/** (optional) - sets whether the button is disabled or not
|
|
913
|
-
* @default undefined
|
|
914
|
-
*/
|
|
915
|
-
disabled?: boolean;
|
|
916
|
-
/** (optional) - sets the icon within the button, requires the icon provider to work
|
|
917
|
-
* @default 'add'
|
|
918
|
-
*/
|
|
919
|
-
icon?: 'math-plus' | 'add' | 'add-r';
|
|
920
|
-
/** (optional) sets button theme */
|
|
921
|
-
theme?: AddListButtonThemeProps;
|
|
922
|
-
};
|
|
923
|
-
/**
|
|
924
|
-
* Uniform Add List Button Component
|
|
925
|
-
* @example <AddListButton buttonText="my text" onButtonClick={() => console.log('button clicked')} icon="add" />
|
|
926
|
-
*/
|
|
927
|
-
declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, variant, theme, ...buttonProps }: AddListButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
928
|
-
|
|
929
|
-
declare type TextAlignProps = 'left' | 'right' | 'center';
|
|
930
|
-
declare type BoxHeightProps = 'auto' | 'sm' | 'md' | 'lg';
|
|
931
|
-
declare type DashedBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
932
|
-
/** React child elements */
|
|
933
|
-
children: React$1.ReactNode;
|
|
934
|
-
/** (optional) - sets the text alignment */
|
|
935
|
-
textAlign?: TextAlignProps;
|
|
936
|
-
/** (optional) - sets the background color */
|
|
937
|
-
bgColor?: 'transparent' | 'white' | 'var(--gray-50)';
|
|
938
|
-
/** (optional) - sets the minimum box height */
|
|
939
|
-
boxHeight?: BoxHeightProps;
|
|
940
|
-
};
|
|
941
|
-
/**
|
|
942
|
-
* Uniform Dashed Box Component
|
|
943
|
-
* @example <DashedBox bgColor="white" boxHeight="md" textAlign="center"><h1>hello world</h1></DashedBox>
|
|
944
|
-
*/
|
|
945
|
-
declare const DashedBox: ({ bgColor, textAlign, boxHeight, children, ...props }: DashedBoxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
946
|
-
|
|
947
|
-
declare type LimitsBarProps = {
|
|
948
|
-
/** The current value of used limits */
|
|
949
|
-
current: number;
|
|
950
|
-
/** The maximum number of limits */
|
|
951
|
-
max: number;
|
|
952
|
-
/** Text value used for the label text */
|
|
953
|
-
label: string;
|
|
954
|
-
};
|
|
955
|
-
/**
|
|
956
|
-
* Uniform Limits Bar Component
|
|
957
|
-
* @example <LimitsBar current="3" max="5" label="signals" />
|
|
958
|
-
*/
|
|
959
|
-
declare const LimitsBar: ({ current, max, label }: LimitsBarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
960
|
-
|
|
961
|
-
declare type ArrowPositionProps = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
962
|
-
declare type InlineAlertProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
963
|
-
/** sets the id of the popup and the aria-controls attibute on the close button
|
|
964
|
-
* @example 'my-alert-box'
|
|
965
|
-
*/
|
|
966
|
-
id: string;
|
|
967
|
-
/** sets the title of the inline alert message */
|
|
968
|
-
title: string;
|
|
969
|
-
/** sets the text of the inline alert message */
|
|
970
|
-
text: string;
|
|
971
|
-
/** (optional) sets the position of the arrow
|
|
972
|
-
* @default 'left-top'
|
|
973
|
-
*/
|
|
974
|
-
arrowPosition?: ArrowPositionProps;
|
|
975
|
-
/** (optional) allows to position alert using direct css */
|
|
976
|
-
positionCss?: SerializedStyles;
|
|
977
|
-
};
|
|
978
|
-
/**
|
|
979
|
-
* Uniform Inline Alert Component
|
|
980
|
-
* @example <InlineAlert id="my-alert-box" title="my alert box" text="some description text" />
|
|
981
|
-
*/
|
|
982
|
-
declare const InlineAlert: ({ id, title, text, arrowPosition, positionCss, ...btnProps }: InlineAlertProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
983
|
-
|
|
984
|
-
interface IntegrationTileFields {
|
|
985
|
-
icon?: string | React.ComponentType<{
|
|
986
|
-
className?: string;
|
|
987
|
-
}> | undefined;
|
|
988
|
-
name: string;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
declare type IntegrationTileProps = IntegrationTileFields & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
992
|
-
id: string;
|
|
993
|
-
requiedEntitlement?: boolean | undefined;
|
|
994
|
-
onAddIntegration: () => void;
|
|
995
|
-
isPublic?: boolean;
|
|
996
|
-
isInstalled?: boolean;
|
|
997
|
-
authorIcon?: string | React$1.ComponentType<{
|
|
998
|
-
className?: string;
|
|
999
|
-
}> | undefined;
|
|
1000
|
-
};
|
|
1001
|
-
declare const IntegrationTile: ({ id, icon, name, requiedEntitlement, onAddIntegration, isPublic, isInstalled, authorIcon, ...btnProps }: IntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1002
|
-
|
|
1003
|
-
declare type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1004
|
-
/** (optional) sets the title value
|
|
1005
|
-
* @default 'Create a custom integration'
|
|
1006
|
-
*/
|
|
1007
|
-
title?: string;
|
|
1008
|
-
/** (optional) sets the button text value
|
|
1009
|
-
* @default 'Add Integration'
|
|
1010
|
-
*/
|
|
1011
|
-
buttonText?: string;
|
|
1012
|
-
/** sets the button function call */
|
|
1013
|
-
onClick: () => void;
|
|
1014
|
-
/** (optional) sets the icon position and icon type
|
|
1015
|
-
* @default 'false'
|
|
1016
|
-
*/
|
|
1017
|
-
asDeepLink?: boolean;
|
|
1018
|
-
};
|
|
1019
|
-
declare const CreateTeamIntegrationTile: ({ title, buttonText, onClick, asDeepLink, ...props }: CreateTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1020
|
-
|
|
1021
|
-
declare type EditTeamIntegrationTileProps = IntegrationTileFields & {
|
|
1022
|
-
/** sets the id value */
|
|
1023
|
-
id: string;
|
|
1024
|
-
/** sets the function call for the button */
|
|
1025
|
-
onEdit: () => void;
|
|
1026
|
-
/** (optional) sets whether the integration is public or not */
|
|
1027
|
-
isPublic?: boolean;
|
|
1028
|
-
/** displays the edit button component */
|
|
1029
|
-
canEdit: boolean;
|
|
1030
|
-
};
|
|
1031
|
-
/** Uniform Edit Team Integration Tile
|
|
1032
|
-
* @example <EditTeamIntegrationTile id="example" onEdit={() => func()} canEdit={true} isPublis={true} name="example" icon="./image.svg" />
|
|
1033
|
-
*/
|
|
1034
|
-
declare const EditTeamIntegrationTile: ({ id, icon, name, onEdit, isPublic, canEdit, }: EditTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1035
|
-
|
|
1036
|
-
declare type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
1037
|
-
/** sets react child elements */
|
|
1038
|
-
children: React$1.ReactNode;
|
|
1039
|
-
};
|
|
1040
|
-
/**
|
|
1041
|
-
* Uniform Tile Container Component
|
|
1042
|
-
* @example <TileContainer><div>child content</div></TileContainer>
|
|
1043
|
-
*/
|
|
1044
|
-
declare const TileContainer: ({ children, ...props }: TileContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1045
|
-
|
|
1046
|
-
declare type IntegrationComingSoonProps = IntegrationTileFields & React.HTMLAttributes<HTMLDivElement> & {
|
|
1047
|
-
/** sets the id and data-testid value */
|
|
1048
|
-
id: string;
|
|
1049
|
-
/** click event used for tracking analytics data */
|
|
1050
|
-
onUpVoteClick: () => void;
|
|
1051
|
-
/** (optional) sets the thank you message visibility duration
|
|
1052
|
-
* @default 1000
|
|
1053
|
-
*/
|
|
1054
|
-
timing?: number;
|
|
1055
|
-
};
|
|
1056
|
-
/**
|
|
1057
|
-
* Uniform Integration Coming Soon Component
|
|
1058
|
-
* @example <IntegrationComingSoon id="piedpiper" name="Pied Piper" icon="./piedpiper.svg" onUpVoteClick={() => someFunc()} />
|
|
1059
|
-
*/
|
|
1060
|
-
declare const IntegrationComingSoon: ({ name, icon, id, onUpVoteClick, timing, ...props }: IntegrationComingSoonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1061
|
-
|
|
1062
|
-
declare type ClassNameOptions = 'logo' | 'author';
|
|
1063
|
-
declare type ResolveIconProps = IntegrationTileFields & React__default.SVGAttributes<SVGElement> & React__default.ImgHTMLAttributes<HTMLImageElement> & {
|
|
1064
|
-
/** sets the emotion styles for the rendered image
|
|
1065
|
-
* @default 'logo'
|
|
1066
|
-
*/
|
|
1067
|
-
styleType?: ClassNameOptions;
|
|
1068
|
-
};
|
|
1069
|
-
/** Uniform Resolve Icon Component
|
|
1070
|
-
* @example <ResolveIcon icon="/my-image.png" name="my image" />
|
|
1071
|
-
*/
|
|
1072
|
-
declare const ResolveIcon: ({ icon, name, styleType, ...props }: ResolveIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
1073
|
-
|
|
1074
|
-
declare type IntegrationModalIconProps = React$1.ImgHTMLAttributes<HTMLImageElement> & {
|
|
1075
|
-
/** sets the icon as inline svg or img tag */
|
|
1076
|
-
icon: string | React$1.ComponentType<{
|
|
1077
|
-
className?: string;
|
|
1078
|
-
}> | undefined;
|
|
1079
|
-
/** sets the alt text of the image */
|
|
1080
|
-
name: string;
|
|
1081
|
-
};
|
|
1082
|
-
/**
|
|
1083
|
-
* Uniform Integration Modal Icon
|
|
1084
|
-
* @example <IntegrationModalIcon name="name" icon="/my-icon.svg" />
|
|
1085
|
-
*/
|
|
1086
|
-
declare const IntegrationModalIcon: ({ icon, name, ...imgProps }: IntegrationModalIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1087
|
-
|
|
1088
|
-
declare type IntegrationLoadingTileProps = {
|
|
1089
|
-
/** (optional) sets the number of skeletal loading elements to show
|
|
1090
|
-
* @default 1
|
|
1091
|
-
*/
|
|
1092
|
-
count?: number;
|
|
1093
|
-
};
|
|
1094
|
-
/** Uniform Integration Loading Tile
|
|
1095
|
-
* @example <IntegrationLoadingTile count={10} />
|
|
1096
|
-
*/
|
|
1097
|
-
declare const IntegrationLoadingTile: ({ count }: IntegrationLoadingTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1098
|
-
|
|
1099
|
-
declare type BadgeProps = {
|
|
1100
|
-
/** sets the text of the badge */
|
|
1101
|
-
text: string;
|
|
1102
|
-
};
|
|
1103
|
-
/**
|
|
1104
|
-
* Uniform Badge Component
|
|
1105
|
-
* @example <Badge text="My badge" />
|
|
1106
|
-
*/
|
|
1107
|
-
declare const Badge: ({ text }: BadgeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1108
|
-
|
|
1109
|
-
declare type IntegrationModalHeaderProps = {
|
|
1110
|
-
/** sets the icon as inline svg or img tag */
|
|
1111
|
-
icon: string | React$1.ComponentType<{
|
|
1112
|
-
className?: string;
|
|
1113
|
-
}> | undefined | null;
|
|
1114
|
-
/** sets the alt text of the image */
|
|
1115
|
-
name: string | undefined;
|
|
1116
|
-
/** (optional) sets react child elements */
|
|
1117
|
-
children?: React$1.ReactNode;
|
|
1118
|
-
/** (optional) sets child elements in */
|
|
1119
|
-
menu?: React$1.ReactNode;
|
|
1120
|
-
};
|
|
1121
|
-
declare type HexModalBackgroundProps = React$1.SVGAttributes<SVGElement>;
|
|
1122
|
-
declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1123
|
-
/** Uniform Integration Modal Header
|
|
1124
|
-
* @example <IntegrationModalHeader icon="/icon.svg" name="name" />
|
|
1125
|
-
*/
|
|
1126
|
-
declare const IntegrationModalHeader: ({ icon, name, menu, children }: IntegrationModalHeaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1127
|
-
|
|
1128
|
-
declare type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1129
|
-
/** (optional) sets the title value of the card */
|
|
1130
|
-
title?: string;
|
|
1131
|
-
/** (optional) sets react child components */
|
|
1132
|
-
children?: React$1.ReactNode;
|
|
1133
|
-
/** (optional) sets options for a dropdown menu */
|
|
1134
|
-
menuItems?: JSX.Element;
|
|
1135
|
-
/** (optional) sets the data-test-id attribute on the button element
|
|
1136
|
-
* @default 'list-card-menu'
|
|
1137
|
-
*/
|
|
1138
|
-
menuButtonTestId?: string;
|
|
1139
|
-
/** (optional) sets the menu button disabled state */
|
|
1140
|
-
disabled?: boolean;
|
|
1141
|
-
};
|
|
1142
|
-
declare const Card: ({ title, menuItems, children, disabled, menuButtonTestId, ...props }: CardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1143
|
-
|
|
1144
|
-
declare type CardContainerBgColorProps = 'gray' | 'white';
|
|
1145
|
-
declare type CardContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1146
|
-
/** (optional): sets the background colour of the wrapping element
|
|
1147
|
-
* @default 'white'
|
|
1148
|
-
*/
|
|
1149
|
-
bgColor?: CardContainerBgColorProps;
|
|
1150
|
-
/** (optional): sets react child components */
|
|
1151
|
-
children?: React$1.ReactNode;
|
|
1152
|
-
/** (optional): sets the padding values of the inner container
|
|
1153
|
-
* @example 'when set to true padding: var(--spacing-2xl) var(--spacing-lg)'
|
|
1154
|
-
* @default true
|
|
1155
|
-
*/
|
|
1156
|
-
padding?: boolean;
|
|
1157
|
-
/** (optional): sets the padding values of the inner container
|
|
1158
|
-
* @example `when set to true`
|
|
1159
|
-
* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) [last-col] minmax(300px, 1fr);
|
|
1160
|
-
* grid-template-rows: auto [last-line];
|
|
1161
|
-
* @default false
|
|
1162
|
-
*/
|
|
1163
|
-
withLastColumn?: boolean;
|
|
1164
|
-
};
|
|
1165
|
-
/** Uniform Card Container
|
|
1166
|
-
* @example <CardContainer><Card title="card title" /></CardContainer>
|
|
1167
|
-
*/
|
|
1168
|
-
declare const CardContainer: ({ bgColor, padding, withLastColumn, children, ...props }: CardContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1169
|
-
|
|
1170
|
-
declare type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1171
|
-
/** sets the title field */
|
|
1172
|
-
title: string;
|
|
1173
|
-
/** (optional) sets react child component */
|
|
1174
|
-
children?: React$1.ReactNode;
|
|
1175
|
-
};
|
|
1176
|
-
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1177
|
-
|
|
1178
|
-
declare const useCurrentTab: () => TabState;
|
|
1179
|
-
interface TabsProps {
|
|
1180
|
-
selectedId?: string;
|
|
1181
|
-
manual?: boolean;
|
|
1182
|
-
orientation?: TabState['orientation'];
|
|
1183
|
-
children: React__default.ReactNode;
|
|
1184
|
-
}
|
|
1185
|
-
declare const Tabs: ({ children, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1186
|
-
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1187
|
-
interface TabButtonProps extends Partial<TabProps> {
|
|
1188
|
-
id: string;
|
|
1189
|
-
children: React__default.ReactNode;
|
|
1190
|
-
}
|
|
1191
|
-
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1192
|
-
interface TabContentProps extends Partial<TabPanelProps> {
|
|
1193
|
-
id: string;
|
|
1194
|
-
children: React__default.ReactNode;
|
|
1195
|
-
}
|
|
1196
|
-
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1197
|
-
|
|
1198
|
-
interface DrawerItem {
|
|
1199
|
-
/** An ID for the drawer. It should be unique in the stack where it's rendered */
|
|
1200
|
-
id: string;
|
|
1201
|
-
/** The ReactNode to render inside the drawer */
|
|
1202
|
-
component: React__default.ReactNode;
|
|
1203
|
-
/** The ID of the stack where the drawer should be renderer. It should match the stack ID of an existing DrawerRenderer */
|
|
1204
|
-
stackId: string;
|
|
1205
|
-
/** Just like React.Key, changing this value indicates that the drawer has changed and we need to close the current instance and open a new one */
|
|
1206
|
-
instanceKey?: string;
|
|
1207
|
-
/** Called when the close button is clicked, the Escape button is pressed, or when the drawer's overlay is clicked */
|
|
1208
|
-
onRequestClose?: () => void;
|
|
1209
|
-
}
|
|
1210
|
-
interface RegisterDrawerProps {
|
|
1211
|
-
drawer: DrawerItem;
|
|
1212
|
-
/** Called when drawer is rendered for the first time. Useful to set the focus on the drawer */
|
|
1213
|
-
onFirstRender?: () => void;
|
|
1214
|
-
}
|
|
1215
|
-
declare type DrawerContextValue = {
|
|
1216
|
-
drawersRegistry: DrawerItem[];
|
|
1217
|
-
registerDrawer: (props: RegisterDrawerProps) => void;
|
|
1218
|
-
unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
|
|
1219
|
-
};
|
|
1220
|
-
/**
|
|
1221
|
-
* Provides the context to the Drawer and DrawerRenderer components.
|
|
1222
|
-
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
1223
|
-
*/
|
|
1224
|
-
declare const DrawerProvider: ({ children }: React__default.PropsWithChildren) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1225
|
-
declare const useDrawer: () => DrawerContextValue;
|
|
1226
|
-
|
|
1227
|
-
interface DrawerProps extends Omit<DrawerItem, 'component'> {
|
|
1228
|
-
header?: React__default.ReactNode;
|
|
1229
|
-
children?: React__default.ReactNode;
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* A drawer component that opens from the right side of is parent. The component is used in combination with DrawerProvider and DrawerRenderer
|
|
1233
|
-
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
1234
|
-
*/
|
|
1235
|
-
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1236
|
-
|
|
1237
|
-
interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1238
|
-
/** The ID of the stack to render. Some drawers need to use the same stack ID to be rendered here */
|
|
1239
|
-
stackId: string;
|
|
1240
|
-
/** The width of the drawers. In any CSS length unit (px, rem, %, et al). Can't use CSS functions (e.g. calc())
|
|
1241
|
-
* @default '45%'
|
|
1242
|
-
*/
|
|
1243
|
-
width?: string;
|
|
1244
|
-
/** The minimum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
1245
|
-
* @default '0'
|
|
1246
|
-
|
|
1247
|
-
*/
|
|
1248
|
-
minWidth?: string;
|
|
1249
|
-
/** The maximum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
1250
|
-
* @default '100%'
|
|
1251
|
-
*/
|
|
1252
|
-
maxWidth?: string;
|
|
1253
|
-
}
|
|
1254
|
-
declare const DrawerRenderer: ({ stackId, width, minWidth, maxWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
1255
|
-
interface DrawerRendererItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1256
|
-
index: number;
|
|
1257
|
-
totalDrawers: number;
|
|
1258
|
-
width: DrawerRendererProps['width'];
|
|
1259
|
-
minWidth: Required<DrawerRendererProps['minWidth']>;
|
|
1260
|
-
maxWidth: Required<DrawerRendererProps['maxWidth']>;
|
|
1261
|
-
onOverlayClick?: () => void;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
declare type StatusTypeProps = 'Modified' | 'Unsaved' | 'Error' | 'Draft' | 'Published' | 'Orphan';
|
|
1265
|
-
declare type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
1266
|
-
status: StatusTypeProps;
|
|
1267
|
-
message?: string;
|
|
1268
|
-
hideText?: boolean;
|
|
1298
|
+
declare type StatusTypeProps = 'Modified' | 'Unsaved' | 'Error' | 'Draft' | 'Published' | 'Orphan';
|
|
1299
|
+
declare type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
1300
|
+
status: StatusTypeProps;
|
|
1301
|
+
message?: string;
|
|
1302
|
+
hideText?: boolean;
|
|
1269
1303
|
};
|
|
1270
1304
|
declare const StatusBullet: ({ status, hideText, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1271
1305
|
|
|
1272
|
-
|
|
1273
|
-
/** sets the count value, a 0 will show a dot instead of a number */
|
|
1274
|
-
count: number;
|
|
1275
|
-
};
|
|
1276
|
-
/** @example <Counter count={1} /> */
|
|
1277
|
-
declare const Counter: ({ count }: CounterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1278
|
-
|
|
1279
|
-
declare type DetailsProps = React$1.HTMLAttributes<HTMLDetailsElement> & {
|
|
1280
|
-
/** sets the summary inner components */
|
|
1281
|
-
summary: React$1.ReactNode;
|
|
1282
|
-
children: React$1.ReactNode;
|
|
1283
|
-
/** sets whether the details should be open by default
|
|
1284
|
-
* @default false
|
|
1285
|
-
*/
|
|
1286
|
-
isOpenByDefault?: boolean;
|
|
1287
|
-
};
|
|
1288
|
-
/** @example <Details summary="summary text">child content here</Details>*/
|
|
1289
|
-
declare const Details: ({ summary, children, isOpenByDefault, ...props }: DetailsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1290
|
-
|
|
1291
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, labelText, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext };
|
|
1306
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, labelText, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext };
|