@uniformdev/design-system 17.7.0 → 17.7.1-alpha.140
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 +75 -74
- package/dist/index.d.ts +95 -85
- package/dist/index.js +262 -261
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { MenuHTMLProps, MenuProps as MenuProps$2, MenuStateReturn } from 'reakit
|
|
|
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 */
|
|
16
|
-
|
|
16
|
+
type ThemeProps = {
|
|
17
17
|
/** sets whether to disable a provided reset stylesheet or not
|
|
18
18
|
* @default false
|
|
19
19
|
*/
|
|
@@ -25,8 +25,8 @@ declare type ThemeProps = {
|
|
|
25
25
|
declare const Theme: React__default.ElementType;
|
|
26
26
|
|
|
27
27
|
/** Breakpoint label values */
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
29
|
+
type BreakpointsMap = Record<BreakpointSize, number>;
|
|
30
30
|
/** Object of breakpoints and the pixel values */
|
|
31
31
|
declare const breakpoints: BreakpointsMap;
|
|
32
32
|
/**
|
|
@@ -97,7 +97,7 @@ declare const fadeInRtl: _emotion_react.Keyframes;
|
|
|
97
97
|
/** Custom scrollbar styles */
|
|
98
98
|
declare const scrollbarStyles: _emotion_react.SerializedStyles;
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
type AddButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
101
101
|
/** sets the aria-label for accessibility
|
|
102
102
|
* @default "Add"
|
|
103
103
|
*/
|
|
@@ -120,8 +120,8 @@ declare type AddButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
120
120
|
*/
|
|
121
121
|
declare const AddButton: ({ buttonText, onClick, shortcut, macShortcut, ...props }: AddButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
type AddListButtonThemeProps = 'var(--brand-secondary-5)' | 'var(--brand-secondary-3)';
|
|
124
|
+
type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
125
125
|
/** (optional) - sets the button text and title value
|
|
126
126
|
* @default 'Add Item'
|
|
127
127
|
*/
|
|
@@ -149,8 +149,8 @@ declare type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
149
149
|
*/
|
|
150
150
|
declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, variant, theme, ...buttonProps }: AddListButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
type ArrowPositionProps = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
153
|
+
type InlineAlertProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
154
154
|
/** sets the id of the popup and the aria-controls attibute on the close button
|
|
155
155
|
* @example 'my-alert-box'
|
|
156
156
|
*/
|
|
@@ -172,7 +172,7 @@ declare type InlineAlertProps = React$1.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
172
172
|
*/
|
|
173
173
|
declare const InlineAlert: ({ id, title, text, arrowPosition, positionCss, ...btnProps }: InlineAlertProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
type BadgeProps = {
|
|
176
176
|
/** sets the text of the badge */
|
|
177
177
|
text: string;
|
|
178
178
|
};
|
|
@@ -182,7 +182,7 @@ declare type BadgeProps = {
|
|
|
182
182
|
*/
|
|
183
183
|
declare const Badge: ({ text }: BadgeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
type UniformLogoProps = {
|
|
186
186
|
/** sets a light or dark theme for the uniform badge or logo component
|
|
187
187
|
* @default "light"
|
|
188
188
|
*/
|
|
@@ -203,10 +203,10 @@ declare const UniformBadge: ({ theme, ...props }: React__default.SVGAttributes<S
|
|
|
203
203
|
declare const UniformLogo: ({ theme, ...props }: UniformLogoProps & React.SVGAttributes<SVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
204
204
|
|
|
205
205
|
/** Button themes that are available to use with our brand */
|
|
206
|
-
|
|
206
|
+
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'tertiary' | 'unimportant' | 'ghost' | 'secondaryInvert';
|
|
207
207
|
/** Button sizes that are available to use with our brand */
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
type ButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
209
|
+
type ButtonProps = ButtonProps$1 & {
|
|
210
210
|
/** sets the theme of the button
|
|
211
211
|
* @default "primary"
|
|
212
212
|
*/
|
|
@@ -227,7 +227,7 @@ declare type ButtonProps = ButtonProps$1 & {
|
|
|
227
227
|
*/
|
|
228
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>>;
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
type ButtonThemeProps = 'primary' | 'secondary' | 'unimportant' | 'ghost';
|
|
231
231
|
interface ActionButtonsProps {
|
|
232
232
|
/** Takes a function for the visible button */
|
|
233
233
|
onButtonClick: () => void;
|
|
@@ -243,7 +243,7 @@ interface ActionButtonsProps {
|
|
|
243
243
|
children: React$1.ReactNode;
|
|
244
244
|
}
|
|
245
245
|
/** ButtonWithMenuProps combines the ActionButtonsProps with React HTMLButtonElement attributes */
|
|
246
|
-
|
|
246
|
+
type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
247
247
|
/**
|
|
248
248
|
* Uniform ButtonWithMenu Component
|
|
249
249
|
* @example
|
|
@@ -269,7 +269,7 @@ declare type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttrib
|
|
|
269
269
|
declare const ButtonWithMenu: ({ onButtonClick, buttonType, buttonText, disabled, children, placement, ...buttonProps }: ButtonWithMenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
270
270
|
|
|
271
271
|
/** Callout button types available to use with our brand */
|
|
272
|
-
|
|
272
|
+
type CalloutType = 'caution' | 'danger' | 'info' | 'note' | 'success' | 'tip' | 'error';
|
|
273
273
|
interface CalloutProps {
|
|
274
274
|
/** sets the type of callout to use and it's styles
|
|
275
275
|
* @default "info"
|
|
@@ -292,7 +292,7 @@ interface CalloutProps {
|
|
|
292
292
|
*/
|
|
293
293
|
declare const Callout: ({ type, compact, title, children, className }: CalloutProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
296
296
|
/** (optional) sets the title value of the card */
|
|
297
297
|
title?: string;
|
|
298
298
|
/** (optional) sets react child components */
|
|
@@ -308,8 +308,8 @@ declare type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
308
308
|
};
|
|
309
309
|
declare const Card: ({ title, menuItems, children, disabled, menuButtonTestId, ...props }: CardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
310
310
|
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
type CardContainerBgColorProps = 'gray' | 'white';
|
|
312
|
+
type CardContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
313
313
|
/** (optional): sets the background colour of the wrapping element
|
|
314
314
|
* @default 'white'
|
|
315
315
|
*/
|
|
@@ -334,16 +334,16 @@ declare type CardContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
334
334
|
*/
|
|
335
335
|
declare const CardContainer: ({ bgColor, padding, withLastColumn, children, ...props }: CardContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
type CounterProps = {
|
|
338
338
|
/** sets the count value, a 0 will show a dot instead of a number */
|
|
339
339
|
count: number;
|
|
340
340
|
};
|
|
341
341
|
/** @example <Counter count={1} /> */
|
|
342
342
|
declare const Counter: ({ count }: CounterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
343
343
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
type TextAlignProps = 'left' | 'right' | 'center';
|
|
345
|
+
type BoxHeightProps = 'auto' | 'sm' | 'md' | 'lg';
|
|
346
|
+
type DashedBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
347
347
|
/** React child elements */
|
|
348
348
|
children: React$1.ReactNode;
|
|
349
349
|
/** (optional) - sets the text alignment */
|
|
@@ -359,7 +359,7 @@ declare type DashedBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
359
359
|
*/
|
|
360
360
|
declare const DashedBox: ({ bgColor, textAlign, boxHeight, children, ...props }: DashedBoxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
361
361
|
|
|
362
|
-
|
|
362
|
+
type DetailsProps = React$1.HTMLAttributes<HTMLDetailsElement> & {
|
|
363
363
|
/** sets the summary inner components */
|
|
364
364
|
summary: React$1.ReactNode;
|
|
365
365
|
children: React$1.ReactNode;
|
|
@@ -388,7 +388,7 @@ interface RegisterDrawerProps {
|
|
|
388
388
|
/** Called when drawer is rendered for the first time. Useful to set the focus on the drawer */
|
|
389
389
|
onFirstRender?: () => void;
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
type DrawerContextValue = {
|
|
392
392
|
drawersRegistry: DrawerItem[];
|
|
393
393
|
registerDrawer: (props: RegisterDrawerProps) => void;
|
|
394
394
|
unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
|
|
@@ -439,12 +439,12 @@ interface DrawerRendererItemProps extends React__default.HTMLAttributes<HTMLDivE
|
|
|
439
439
|
|
|
440
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
441
|
/** A list of available icon names that can be used with the Uniform brand */
|
|
442
|
-
|
|
442
|
+
type IconName = typeof iconNames[number];
|
|
443
443
|
|
|
444
444
|
/** sets fill color of the svg icon */
|
|
445
|
-
|
|
445
|
+
type IconColor = 'green' | 'red' | 'gray' | 'currentColor';
|
|
446
446
|
/** sets the type of icon to use from the available list */
|
|
447
|
-
|
|
447
|
+
type IconType = IconName | IconType$1;
|
|
448
448
|
interface IconProps extends IconBaseProps {
|
|
449
449
|
/** sets the icon to be used */
|
|
450
450
|
icon: IconType;
|
|
@@ -459,7 +459,7 @@ interface IconProps extends IconBaseProps {
|
|
|
459
459
|
*/
|
|
460
460
|
declare const Icon: React__default.MemoExoticComponent<({ icon, iconColor, size, ...otherProps }: IconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null>;
|
|
461
461
|
|
|
462
|
-
|
|
462
|
+
type IconsMap = Record<string, IconType$1>;
|
|
463
463
|
declare function useIconContext(): {
|
|
464
464
|
iconsMap: IconsMap;
|
|
465
465
|
isLoading: boolean;
|
|
@@ -472,7 +472,7 @@ declare function IconsProvider({ children }: {
|
|
|
472
472
|
children: ReactNode;
|
|
473
473
|
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
474
474
|
|
|
475
|
-
|
|
475
|
+
type CaptionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
476
476
|
/** allows users to add child elements */
|
|
477
477
|
children: React$1.ReactNode;
|
|
478
478
|
/** Makes the font size relative to the inherited font size */
|
|
@@ -486,7 +486,7 @@ declare type CaptionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
|
486
486
|
*/
|
|
487
487
|
declare const Caption: ({ children, testId, dynamicSize, ...props }: CaptionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
type CheckboxWithInforProps = React.HTMLAttributes<HTMLInputElement> & {
|
|
490
490
|
/** sets the label value */
|
|
491
491
|
label: string;
|
|
492
492
|
/** sets the name value of the radio/checkbox input */
|
|
@@ -508,7 +508,7 @@ declare const CheckboxWithInfo: React$1.ForwardRefExoticComponent<React$1.HTMLAt
|
|
|
508
508
|
checked?: boolean | undefined;
|
|
509
509
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
510
510
|
|
|
511
|
-
|
|
511
|
+
type ErrorMessageProps = {
|
|
512
512
|
/** sets the error message value */
|
|
513
513
|
message?: string;
|
|
514
514
|
/** sets the test id for test automation (optional) */
|
|
@@ -521,7 +521,7 @@ declare type ErrorMessageProps = {
|
|
|
521
521
|
*/
|
|
522
522
|
declare const ErrorMessage: ({ message, testId, ...otherProps }: ErrorMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
523
523
|
|
|
524
|
-
|
|
524
|
+
type FieldsetProps = React$1.HTMLAttributes<HTMLFieldSetElement> & {
|
|
525
525
|
/** sets the legend value */
|
|
526
526
|
legend: React$1.ReactElement;
|
|
527
527
|
/** sets the disabled value and sets child inputs disabled */
|
|
@@ -543,7 +543,7 @@ declare const Fieldset: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes
|
|
|
543
543
|
invert?: boolean | undefined;
|
|
544
544
|
} & React$1.RefAttributes<HTMLFieldSetElement>>;
|
|
545
545
|
|
|
546
|
-
|
|
546
|
+
type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
547
547
|
/** (optional) sets the label value */
|
|
548
548
|
label?: string;
|
|
549
549
|
/** (optional) sets caption text value */
|
|
@@ -618,7 +618,7 @@ declare const Input: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttribut
|
|
|
618
618
|
classNameLabel?: string | SerializedStyles | undefined;
|
|
619
619
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
620
620
|
|
|
621
|
-
|
|
621
|
+
type InputComboBoxOption = {
|
|
622
622
|
/** sets the label value */
|
|
623
623
|
label: string;
|
|
624
624
|
/** sets the input value */
|
|
@@ -626,21 +626,21 @@ declare type InputComboBoxOption = {
|
|
|
626
626
|
/** (optional) sets the disabled value on the input */
|
|
627
627
|
isDisabled?: boolean;
|
|
628
628
|
};
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
type InputComboBoxProps<TOption, IsMulti extends boolean, TGroup extends GroupBase<TOption> = GroupBase<TOption>> = StateManagerProps<TOption, IsMulti, TGroup> & React$1.RefAttributes<InternalSelect<TOption, IsMulti, TGroup>>;
|
|
630
|
+
type ComboBoxGroupBase<TOption> = GroupBase<TOption>;
|
|
631
631
|
/**
|
|
632
632
|
* InputComboBox
|
|
633
633
|
* @component
|
|
634
634
|
* @example <InputComboBox name="name" id="combo-box" options={[{ value: 'chocolate', label: 'Chocolate' }, { value: 'strawberry', label: 'Strawberry' }, { value: 'vanilla', label: 'Vanilla' }]} isMulti /> */
|
|
635
635
|
declare function InputComboBox<TOption = InputComboBoxOption, IsMulti extends boolean = false, TGroup extends ComboBoxGroupBase<TOption> = ComboBoxGroupBase<TOption>>(props: InputComboBoxProps<TOption, IsMulti, TGroup>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
636
636
|
|
|
637
|
-
|
|
637
|
+
type InputInlineSelectOption = {
|
|
638
638
|
/** sets the display name of the option */
|
|
639
639
|
label: string;
|
|
640
640
|
/** sets the option value attribute */
|
|
641
641
|
value: string;
|
|
642
642
|
};
|
|
643
|
-
|
|
643
|
+
type InputInlineSelectProps = Omit<React$1.HTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
644
644
|
/** sets the selected value */
|
|
645
645
|
value: string;
|
|
646
646
|
/** sets the available options within the dropdown */
|
|
@@ -688,7 +688,7 @@ interface InputKeywordSearchProps extends React$1.InputHTMLAttributes<HTMLInputE
|
|
|
688
688
|
*/
|
|
689
689
|
declare const InputKeywordSearch: ({ onSearchTextChanged, disabled, placeholder, inputFieldName, disabledFieldSubmission, value, onClear, ...props }: InputKeywordSearchProps) => React$1.ReactElement;
|
|
690
690
|
|
|
691
|
-
|
|
691
|
+
type InputSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
692
692
|
/** (optional) sets the first item in the options list with empty value */
|
|
693
693
|
defaultOption?: string;
|
|
694
694
|
/** sets an array of select options with value and text value */
|
|
@@ -728,7 +728,7 @@ declare type InputSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> &
|
|
|
728
728
|
*/
|
|
729
729
|
declare const InputSelect: ({ label, defaultOption, options, caption, errorMessage, warningMessage, showLabel, labelCta, classNameContainer, classNameControl, classNameLabel, ...props }: InputSelectProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
730
730
|
|
|
731
|
-
|
|
731
|
+
type InputToggleProps = React$1.HTMLAttributes<HTMLInputElement> & {
|
|
732
732
|
/** sets the label value */
|
|
733
733
|
label: string;
|
|
734
734
|
/** sets the type of input to use, either radio or checkbox */
|
|
@@ -758,7 +758,7 @@ declare type InputToggleProps = React$1.HTMLAttributes<HTMLInputElement> & {
|
|
|
758
758
|
*/
|
|
759
759
|
declare const InputToggle: ({ label, type, disabled, checked, name, caption, errorMessage, warningMessage, testId, fontWeight, ...props }: InputToggleProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
760
760
|
|
|
761
|
-
|
|
761
|
+
type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
762
762
|
/** sets child elements within the label tag, normally the default label text */
|
|
763
763
|
children: React$1.ReactNode;
|
|
764
764
|
/** (optional) sets additional css properties */
|
|
@@ -768,12 +768,12 @@ declare type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
|
768
768
|
};
|
|
769
769
|
declare const Label: ({ children, className, testId, ...props }: LabelProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
770
770
|
|
|
771
|
-
|
|
771
|
+
type LegendProps = {
|
|
772
772
|
children: ReactNode;
|
|
773
773
|
};
|
|
774
774
|
declare const Legend: ({ children }: LegendProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
775
775
|
|
|
776
|
-
|
|
776
|
+
type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
777
777
|
/** (optional) sets the label value */
|
|
778
778
|
label?: string;
|
|
779
779
|
/** (optional) sets caption text value */
|
|
@@ -794,7 +794,7 @@ declare type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
794
794
|
*/
|
|
795
795
|
declare const Textarea: ({ label, icon, id, caption, showLabel, errorMessage, warningMessage, ...props }: TextareaProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
796
796
|
|
|
797
|
-
|
|
797
|
+
type WarningMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
798
798
|
/** sets the error message value */
|
|
799
799
|
message?: string;
|
|
800
800
|
/** sets the test id for test automation (optional) */
|
|
@@ -806,7 +806,7 @@ declare type WarningMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
|
806
806
|
*/
|
|
807
807
|
declare const WarningMessage: ({ message, testId, ...props }: WarningMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
808
808
|
|
|
809
|
-
|
|
809
|
+
type LimitsBarProps = {
|
|
810
810
|
/** The current value of used limits */
|
|
811
811
|
current: number;
|
|
812
812
|
/** The maximum number of limits */
|
|
@@ -820,7 +820,7 @@ declare type LimitsBarProps = {
|
|
|
820
820
|
*/
|
|
821
821
|
declare const LimitsBar: ({ current, max, label }: LimitsBarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
822
822
|
|
|
823
|
-
|
|
823
|
+
type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
824
824
|
/** sets the title field */
|
|
825
825
|
title: string;
|
|
826
826
|
/** (optional) sets react child component */
|
|
@@ -828,7 +828,7 @@ declare type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
828
828
|
};
|
|
829
829
|
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
830
830
|
|
|
831
|
-
|
|
831
|
+
type ScrollableListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
832
832
|
/** (optional) sets the label value */
|
|
833
833
|
label?: string;
|
|
834
834
|
/** (optional) allows users to add child components within the container */
|
|
@@ -840,7 +840,7 @@ declare type ScrollableListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
840
840
|
*/
|
|
841
841
|
declare const ScrollableList: ({ label, children, ...props }: ScrollableListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
842
842
|
|
|
843
|
-
|
|
843
|
+
type ScrollableItemProps = React.HTMLAttributes<HTMLInputElement> & {
|
|
844
844
|
/** sets an element within the label > span element */
|
|
845
845
|
icon?: React.ReactElement;
|
|
846
846
|
/**sets the label value */
|
|
@@ -855,7 +855,7 @@ declare type ScrollableItemProps = React.HTMLAttributes<HTMLInputElement> & {
|
|
|
855
855
|
/** @example <ScrollableListInputItem label="my label" active={true}><input type="radio" name="age" /></ScrollableListInputItem>*/
|
|
856
856
|
declare const ScrollableListInputItem: ({ label, icon, active, children, labelTestId, }: ScrollableItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
857
857
|
|
|
858
|
-
|
|
858
|
+
type ScrollableListItemProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
859
859
|
/** sets the button text value */
|
|
860
860
|
buttonText: string;
|
|
861
861
|
/** sets the active style of the button */
|
|
@@ -882,13 +882,21 @@ interface LoadingOverlayProps {
|
|
|
882
882
|
* @default 9999
|
|
883
883
|
*/
|
|
884
884
|
zIndex?: number;
|
|
885
|
+
/** (optional) sets the width and height of the loading spinner icon
|
|
886
|
+
* @default 128
|
|
887
|
+
*/
|
|
888
|
+
size?: number;
|
|
889
|
+
/** (optional) sets the loading overlay background color
|
|
890
|
+
* @default 'var(--white)'
|
|
891
|
+
*/
|
|
892
|
+
overlayBackgroundColor?: 'transparent' | 'var(--white)';
|
|
885
893
|
}
|
|
886
894
|
/**
|
|
887
895
|
* Loading Overlay.
|
|
888
896
|
* NOTE: the container/parent element must have a non-static `position` value for the overlay to work properly.
|
|
889
897
|
* @example <LoadingOverlay isActive={true} statusMessage="Loading..." />
|
|
890
898
|
*/
|
|
891
|
-
declare const LoadingOverlay: ({ isActive, statusMessage, zIndex }: LoadingOverlayProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
899
|
+
declare const LoadingOverlay: ({ isActive, statusMessage, zIndex, size, overlayBackgroundColor, }: LoadingOverlayProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
892
900
|
interface LoadingIconProps extends HTMLAttributes<SVGSVGElement> {
|
|
893
901
|
/** (optional) prop that sets a number value for the height of the icon */
|
|
894
902
|
width?: number;
|
|
@@ -926,8 +934,8 @@ declare const useMenuContext: () => MenuStateReturn;
|
|
|
926
934
|
*/
|
|
927
935
|
declare const Menu: ({ menuLabel, menuTrigger, placement, menuItemsContainerCssClasses, children, }: MenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
928
936
|
|
|
929
|
-
|
|
930
|
-
|
|
937
|
+
type MenuItemTextThemeProps = 'base' | 'red';
|
|
938
|
+
type MenuItemProps = MenuItemHTMLProps & {
|
|
931
939
|
/** sets child elements within the component */
|
|
932
940
|
children: ChildFunction | React$1.ReactNode;
|
|
933
941
|
/** (optional) set whether to hide the menu after a click action */
|
|
@@ -941,7 +949,7 @@ declare type MenuItemProps = MenuItemHTMLProps & {
|
|
|
941
949
|
*/
|
|
942
950
|
textColor?: MenuItemTextThemeProps;
|
|
943
951
|
};
|
|
944
|
-
|
|
952
|
+
type ChildFunction = (menuItemProps: MenuItemHTMLProps) => React$1.ReactElement | null;
|
|
945
953
|
/**
|
|
946
954
|
* MenuItem Component used along side <Menu /> component
|
|
947
955
|
* @example <MenuItem onClick={() => alert('menu item was clicked')} icon={<RedClose />}>Remove Link</MenuItem>
|
|
@@ -950,7 +958,7 @@ declare const MenuItem: React$1.FC<MenuItemProps>;
|
|
|
950
958
|
|
|
951
959
|
declare const MenuItemSeparator: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
952
960
|
|
|
953
|
-
|
|
961
|
+
type IntegrationModalHeaderProps = {
|
|
954
962
|
/** sets the icon as inline svg or img tag */
|
|
955
963
|
icon: string | React$1.ComponentType<{
|
|
956
964
|
className?: string;
|
|
@@ -962,7 +970,7 @@ declare type IntegrationModalHeaderProps = {
|
|
|
962
970
|
/** (optional) sets child elements in */
|
|
963
971
|
menu?: React$1.ReactNode;
|
|
964
972
|
};
|
|
965
|
-
|
|
973
|
+
type HexModalBackgroundProps = React$1.SVGAttributes<SVGElement>;
|
|
966
974
|
declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
967
975
|
/** Uniform Integration Modal Header
|
|
968
976
|
* @example <IntegrationModalHeader icon="/icon.svg" name="name" />
|
|
@@ -978,7 +986,7 @@ declare function ShortcutRevealer({ shortcut, macShortcut, className, }: {
|
|
|
978
986
|
className?: SerializedStyles | string;
|
|
979
987
|
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
980
988
|
|
|
981
|
-
|
|
989
|
+
type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
982
990
|
/** sets the label value */
|
|
983
991
|
label: string;
|
|
984
992
|
/** (optional) sets information text */
|
|
@@ -1004,13 +1012,13 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAt
|
|
|
1004
1012
|
children?: React$1.ReactNode;
|
|
1005
1013
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1006
1014
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1015
|
+
type TableProps = React$1.ComponentPropsWithoutRef<'table'>;
|
|
1016
|
+
type TableHeadProps = React$1.ComponentPropsWithoutRef<'thead'>;
|
|
1017
|
+
type TableBodyProps = React$1.ComponentPropsWithoutRef<'tbody'>;
|
|
1018
|
+
type TableFootProps = React$1.ComponentPropsWithoutRef<'tfoot'>;
|
|
1019
|
+
type TableRowProps = React$1.ComponentPropsWithoutRef<'tr'>;
|
|
1020
|
+
type TableCellHeadProps = React$1.ComponentPropsWithoutRef<'th'>;
|
|
1021
|
+
type TableCellDataProps = React$1.ComponentPropsWithoutRef<'td'>;
|
|
1014
1022
|
/**
|
|
1015
1023
|
* Uniform's Table component
|
|
1016
1024
|
* @example
|
|
@@ -1044,12 +1052,13 @@ declare const TableCellData: React$1.ForwardRefExoticComponent<Pick<React$1.Deta
|
|
|
1044
1052
|
|
|
1045
1053
|
declare const useCurrentTab: () => TabState;
|
|
1046
1054
|
interface TabsProps {
|
|
1055
|
+
children: React__default.ReactNode;
|
|
1047
1056
|
selectedId?: string;
|
|
1048
1057
|
manual?: boolean;
|
|
1049
1058
|
orientation?: TabState['orientation'];
|
|
1050
|
-
|
|
1059
|
+
onSelectedIdChange?: (tabName: string | undefined) => void;
|
|
1051
1060
|
}
|
|
1052
|
-
declare const Tabs: ({ children, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1061
|
+
declare const Tabs: ({ children, onSelectedIdChange, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1053
1062
|
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1054
1063
|
interface TabButtonProps extends Partial<TabProps> {
|
|
1055
1064
|
id: string;
|
|
@@ -1062,7 +1071,7 @@ interface TabContentProps extends Partial<TabPanelProps> {
|
|
|
1062
1071
|
}
|
|
1063
1072
|
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1064
1073
|
|
|
1065
|
-
|
|
1074
|
+
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1066
1075
|
/** (optional) sets the title value
|
|
1067
1076
|
* @default 'Create a custom integration'
|
|
1068
1077
|
*/
|
|
@@ -1087,7 +1096,7 @@ interface IntegrationTileFields {
|
|
|
1087
1096
|
name: string;
|
|
1088
1097
|
}
|
|
1089
1098
|
|
|
1090
|
-
|
|
1099
|
+
type EditTeamIntegrationTileProps = IntegrationTileFields & {
|
|
1091
1100
|
/** sets the id value */
|
|
1092
1101
|
id: string;
|
|
1093
1102
|
/** sets the function call for the button */
|
|
@@ -1102,7 +1111,7 @@ declare type EditTeamIntegrationTileProps = IntegrationTileFields & {
|
|
|
1102
1111
|
*/
|
|
1103
1112
|
declare const EditTeamIntegrationTile: ({ id, icon, name, onEdit, isPublic, canEdit, }: EditTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1104
1113
|
|
|
1105
|
-
|
|
1114
|
+
type IntegrationComingSoonProps = IntegrationTileFields & React.HTMLAttributes<HTMLDivElement> & {
|
|
1106
1115
|
/** sets the id and data-testid value */
|
|
1107
1116
|
id: string;
|
|
1108
1117
|
/** click event used for tracking analytics data */
|
|
@@ -1118,7 +1127,7 @@ declare type IntegrationComingSoonProps = IntegrationTileFields & React.HTMLAttr
|
|
|
1118
1127
|
*/
|
|
1119
1128
|
declare const IntegrationComingSoon: ({ name, icon, id, onUpVoteClick, timing, ...props }: IntegrationComingSoonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1120
1129
|
|
|
1121
|
-
|
|
1130
|
+
type IntegrationLoadingTileProps = {
|
|
1122
1131
|
/** (optional) sets the number of skeletal loading elements to show
|
|
1123
1132
|
* @default 1
|
|
1124
1133
|
*/
|
|
@@ -1129,7 +1138,7 @@ declare type IntegrationLoadingTileProps = {
|
|
|
1129
1138
|
*/
|
|
1130
1139
|
declare const IntegrationLoadingTile: ({ count }: IntegrationLoadingTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1131
1140
|
|
|
1132
|
-
|
|
1141
|
+
type IntegrationModalIconProps = React$1.ImgHTMLAttributes<HTMLImageElement> & {
|
|
1133
1142
|
/** sets the icon as inline svg or img tag */
|
|
1134
1143
|
icon: string | React$1.ComponentType<{
|
|
1135
1144
|
className?: string;
|
|
@@ -1143,7 +1152,7 @@ declare type IntegrationModalIconProps = React$1.ImgHTMLAttributes<HTMLImageElem
|
|
|
1143
1152
|
*/
|
|
1144
1153
|
declare const IntegrationModalIcon: ({ icon, name, ...imgProps }: IntegrationModalIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1145
1154
|
|
|
1146
|
-
|
|
1155
|
+
type IntegrationTileProps = IntegrationTileFields & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1147
1156
|
id: string;
|
|
1148
1157
|
requiedEntitlement?: boolean | undefined;
|
|
1149
1158
|
onAddIntegration: () => void;
|
|
@@ -1155,8 +1164,8 @@ declare type IntegrationTileProps = IntegrationTileFields & React$1.ButtonHTMLAt
|
|
|
1155
1164
|
};
|
|
1156
1165
|
declare const IntegrationTile: ({ id, icon, name, requiedEntitlement, onAddIntegration, isPublic, isInstalled, authorIcon, ...btnProps }: IntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1157
1166
|
|
|
1158
|
-
|
|
1159
|
-
|
|
1167
|
+
type ClassNameOptions = 'logo' | 'author';
|
|
1168
|
+
type ResolveIconProps = IntegrationTileFields & React__default.SVGAttributes<SVGElement> & React__default.ImgHTMLAttributes<HTMLImageElement> & {
|
|
1160
1169
|
/** sets the emotion styles for the rendered image
|
|
1161
1170
|
* @default 'logo'
|
|
1162
1171
|
*/
|
|
@@ -1167,7 +1176,7 @@ declare type ResolveIconProps = IntegrationTileFields & React__default.SVGAttrib
|
|
|
1167
1176
|
*/
|
|
1168
1177
|
declare const ResolveIcon: ({ icon, name, styleType, ...props }: ResolveIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
1169
1178
|
|
|
1170
|
-
|
|
1179
|
+
type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
1171
1180
|
/** sets react child elements */
|
|
1172
1181
|
children: React$1.ReactNode;
|
|
1173
1182
|
};
|
|
@@ -1178,8 +1187,8 @@ declare type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
|
1178
1187
|
declare const TileContainer: ({ children, ...props }: TileContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1179
1188
|
|
|
1180
1189
|
/** Available heading weights e.g. 1 - 6 */
|
|
1181
|
-
|
|
1182
|
-
|
|
1190
|
+
type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1191
|
+
type HeadingProps = {
|
|
1183
1192
|
/** sets the type of heading tag between h1 to h6, defaults to <h2>
|
|
1184
1193
|
* @default 2
|
|
1185
1194
|
*/
|
|
@@ -1197,7 +1206,7 @@ declare type HeadingProps = {
|
|
|
1197
1206
|
*/
|
|
1198
1207
|
declare const Heading: ({ level, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1199
1208
|
|
|
1200
|
-
|
|
1209
|
+
type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
1201
1210
|
/** sets the title text of the integration */
|
|
1202
1211
|
title: string;
|
|
1203
1212
|
/** sets the description text of the integration */
|
|
@@ -1221,8 +1230,8 @@ declare type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivE
|
|
|
1221
1230
|
*/
|
|
1222
1231
|
declare const IntegrationHeaderSection: ({ title, description, icon, docsLink, badgeText, menu, children, ...props }: IntegrationHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1223
1232
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1233
|
+
type LinkColorProps = 'currentColor' | 'red' | 'green';
|
|
1234
|
+
type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1226
1235
|
/** sets the link text and title text */
|
|
1227
1236
|
text: string;
|
|
1228
1237
|
/** (optional) sets the link color
|
|
@@ -1240,10 +1249,11 @@ declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
1240
1249
|
* @example <Link text="my link" href="#" />
|
|
1241
1250
|
*/
|
|
1242
1251
|
declare const Link: React$1.ForwardRefExoticComponent<Pick<LinkProps, "text" | "external" | "linkColor" | keyof React$1.AnchorHTMLAttributes<HTMLAnchorElement>> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
1243
|
-
|
|
1252
|
+
type LinkManagerWithRefType = (props: Partial<LinkProps> & {
|
|
1244
1253
|
as?: string;
|
|
1245
1254
|
href: string;
|
|
1246
1255
|
passHref: true;
|
|
1256
|
+
legacyBehavior?: boolean;
|
|
1247
1257
|
} & React$1.RefAttributes<HTMLAnchorElement>) => JSX.Element | null;
|
|
1248
1258
|
/** Uniform LinkWithRef Component
|
|
1249
1259
|
* We recommend using this link `next/link`
|
|
@@ -1272,7 +1282,7 @@ interface RouteProps {
|
|
|
1272
1282
|
as: string;
|
|
1273
1283
|
href: string;
|
|
1274
1284
|
}
|
|
1275
|
-
|
|
1285
|
+
type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
1276
1286
|
title: string | undefined;
|
|
1277
1287
|
desc?: React$1.ReactNode;
|
|
1278
1288
|
children?: React$1.ReactNode;
|
|
@@ -1283,7 +1293,7 @@ declare type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
|
1283
1293
|
};
|
|
1284
1294
|
declare const PageHeaderSection: ({ title, desc, children, linkText, level, linkProps, linkManagerComponent, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1285
1295
|
|
|
1286
|
-
|
|
1296
|
+
type ParagraphProps = {
|
|
1287
1297
|
/** (optional) adds child elements to the paragraph tag */
|
|
1288
1298
|
children?: React$1.ReactNode;
|
|
1289
1299
|
/** (optional) sets raw html values */
|
|
@@ -1297,8 +1307,8 @@ declare type ParagraphProps = {
|
|
|
1297
1307
|
*/
|
|
1298
1308
|
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1299
1309
|
|
|
1300
|
-
|
|
1301
|
-
|
|
1310
|
+
type StatusTypeProps = 'Modified' | 'Unsaved' | 'Error' | 'Draft' | 'Published' | 'Orphan';
|
|
1311
|
+
type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
1302
1312
|
status: StatusTypeProps;
|
|
1303
1313
|
message?: string;
|
|
1304
1314
|
hideText?: boolean;
|