@uniformdev/design-system 16.2.4 → 17.0.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 +578 -218
- package/dist/index.d.ts +269 -5
- package/dist/index.js +578 -218
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,15 @@ declare const breakpoints: breakpointsProps;
|
|
|
36
36
|
* @example `${mq('md')} { background: red; }`
|
|
37
37
|
*/
|
|
38
38
|
declare const mq: (size: breakpointSizeProps) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Media Query Helper Function
|
|
41
|
+
* @function
|
|
42
|
+
* @param {string} cssProp - The css property you want to check support
|
|
43
|
+
* @returns {string} - compiled supports query e.g. supports (display: grid) {}
|
|
44
|
+
* @example `${supports('display: grid)} { display: grid; }`
|
|
45
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
|
|
46
|
+
*/
|
|
47
|
+
declare const supports: (cssProp: string) => string;
|
|
39
48
|
|
|
40
49
|
declare const labelText: _emotion_react.SerializedStyles;
|
|
41
50
|
declare const input: _emotion_react.SerializedStyles;
|
|
@@ -45,6 +54,30 @@ declare const inputSelect: _emotion_react.SerializedStyles;
|
|
|
45
54
|
/** Custom scrollbar styles */
|
|
46
55
|
declare const scrollbarStyles: _emotion_react.SerializedStyles;
|
|
47
56
|
|
|
57
|
+
/**
|
|
58
|
+
* growSubtle animation
|
|
59
|
+
* @description - increases the size of an element from scale(1) - scale(1.15) and back down to scale(1) using transform: scale(1)
|
|
60
|
+
*/
|
|
61
|
+
declare const growSubtle: _emotion_react.Keyframes;
|
|
62
|
+
/**
|
|
63
|
+
* fadeInBottom animation
|
|
64
|
+
* @description - fades in an element from the Y axis by 10px
|
|
65
|
+
*/
|
|
66
|
+
declare const fadeInBottom: _emotion_react.Keyframes;
|
|
67
|
+
/**
|
|
68
|
+
* fadeOutBottom animation
|
|
69
|
+
* @description - fades out an element from the Y axis by 10px
|
|
70
|
+
*/
|
|
71
|
+
declare const fadeOutBottom: _emotion_react.Keyframes;
|
|
72
|
+
/**
|
|
73
|
+
* fadeIn animation
|
|
74
|
+
* @description - fade in an element from 0 to 1 opacity
|
|
75
|
+
*/
|
|
76
|
+
declare const fadeIn: _emotion_react.Keyframes;
|
|
77
|
+
declare const ripple: _emotion_react.Keyframes;
|
|
78
|
+
declare const skeletonLoading: _emotion_react.Keyframes;
|
|
79
|
+
declare const fadeInLtr: _emotion_react.Keyframes;
|
|
80
|
+
|
|
48
81
|
declare type UniformLogoProps = {
|
|
49
82
|
/** sets a light or dark theme for the uniform badge or logo component
|
|
50
83
|
* @default "light"
|
|
@@ -90,6 +123,17 @@ declare type ButtonProps = ButtonProps$1 & {
|
|
|
90
123
|
*/
|
|
91
124
|
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" | "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" | "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" | "name" | "focusable" | "buttonType" | "size" | "unstable_system" | "disabled" | "unstable_clickOnEnter" | "unstable_clickOnSpace" | "wrapElement" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "rounded"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
92
125
|
|
|
126
|
+
declare const button: _emotion_react.SerializedStyles;
|
|
127
|
+
declare const buttonRippleEffect: (props: {
|
|
128
|
+
hoverColor: string;
|
|
129
|
+
activeColor?: string;
|
|
130
|
+
}) => _emotion_react.SerializedStyles;
|
|
131
|
+
declare const buttonPrimary: _emotion_react.SerializedStyles;
|
|
132
|
+
declare const buttonSecondary: _emotion_react.SerializedStyles;
|
|
133
|
+
declare const buttonUnimportant: _emotion_react.SerializedStyles;
|
|
134
|
+
declare const buttonGhost: _emotion_react.SerializedStyles;
|
|
135
|
+
declare const buttonTertiary: _emotion_react.SerializedStyles;
|
|
136
|
+
|
|
93
137
|
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"];
|
|
94
138
|
/** A list of available icon names that can be used with the Uniform brand */
|
|
95
139
|
declare type IconName = typeof iconNames[number];
|
|
@@ -309,12 +353,18 @@ declare type InputToggleProps = React$1.HTMLAttributes<HTMLInputElement> & {
|
|
|
309
353
|
caption?: string;
|
|
310
354
|
/** (optional) sets shows the the error message value */
|
|
311
355
|
errorMessage?: string;
|
|
356
|
+
/** (optional) sets the font weight of the label text
|
|
357
|
+
* @default 'bold'
|
|
358
|
+
*/
|
|
359
|
+
fontWeight?: 'normal' | 'medium' | 'bold';
|
|
360
|
+
/** (optional) sets test id for test automation*/
|
|
361
|
+
testId?: string;
|
|
312
362
|
};
|
|
313
363
|
/**
|
|
314
364
|
* Component that creates a checkbox or radio input field
|
|
315
365
|
* @example <InputToggle label="Do you like ice cream?" type="checkbox" name="ice-cream" />
|
|
316
366
|
*/
|
|
317
|
-
declare const InputToggle: ({ label, type, disabled, checked, name, caption, errorMessage, ...props }: InputToggleProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
367
|
+
declare const InputToggle: ({ label, type, disabled, checked, name, caption, errorMessage, testId, fontWeight, ...props }: InputToggleProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
318
368
|
|
|
319
369
|
declare type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
320
370
|
/** (optional) sets the label value */
|
|
@@ -370,6 +420,7 @@ declare const useMenuContext: () => MenuStateReturn;
|
|
|
370
420
|
*/
|
|
371
421
|
declare const Menu: ({ menuLabel, menuTrigger, placement, menuItemsContainerCssClasses, children, }: MenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
372
422
|
|
|
423
|
+
declare type MenuItemTextThemeProps = 'base' | 'red';
|
|
373
424
|
declare type MenuItemProps = MenuItemHTMLProps & {
|
|
374
425
|
/** sets child elements within the component */
|
|
375
426
|
children: ChildFunction | React$1.ReactNode;
|
|
@@ -379,6 +430,10 @@ declare type MenuItemProps = MenuItemHTMLProps & {
|
|
|
379
430
|
icon?: React$1.ReactElement;
|
|
380
431
|
/** When an element is disabled, it may still be focusable. It works similarly to readOnly on form elements. In this case, only aria-disabled will be set. */
|
|
381
432
|
focusable?: boolean;
|
|
433
|
+
/** (optional) set the menu item text color
|
|
434
|
+
* @default 'base'
|
|
435
|
+
*/
|
|
436
|
+
textColor?: MenuItemTextThemeProps;
|
|
382
437
|
};
|
|
383
438
|
declare type ChildFunction = (menuItemProps: MenuItemHTMLProps) => React$1.ReactElement | null;
|
|
384
439
|
/**
|
|
@@ -453,8 +508,10 @@ declare type HeadingProps = {
|
|
|
453
508
|
declare const Heading: ({ level, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
454
509
|
|
|
455
510
|
declare type ParagraphProps = {
|
|
456
|
-
/** adds child elements to the paragraph tag */
|
|
457
|
-
children
|
|
511
|
+
/** (optional) adds child elements to the paragraph tag */
|
|
512
|
+
children?: React$1.ReactNode;
|
|
513
|
+
/** (optional) sets raw html values */
|
|
514
|
+
htmlContent?: string | string[];
|
|
458
515
|
/** (optional) allows user to set overriding class names or emotion styles */
|
|
459
516
|
className?: SerializedStyles | string;
|
|
460
517
|
} & React$1.HTMLAttributes<HTMLParagraphElement>;
|
|
@@ -462,7 +519,20 @@ declare type ParagraphProps = {
|
|
|
462
519
|
* Component for generic paragraph tags
|
|
463
520
|
* @example <Paragraph>This is the text that was be inside the paragraph tag.</Paragraph>
|
|
464
521
|
*/
|
|
465
|
-
declare const Paragraph: ({ className, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
522
|
+
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
523
|
+
|
|
524
|
+
interface RouteProps {
|
|
525
|
+
as: string;
|
|
526
|
+
href: string;
|
|
527
|
+
}
|
|
528
|
+
declare type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
529
|
+
title: string | undefined;
|
|
530
|
+
desc?: React$1.ReactNode;
|
|
531
|
+
children?: React$1.ReactNode;
|
|
532
|
+
linkProps?: RouteProps;
|
|
533
|
+
linkText?: string;
|
|
534
|
+
};
|
|
535
|
+
declare const PageHeaderSection: ({ title, desc, children, linkText, linkProps, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
466
536
|
|
|
467
537
|
declare type LinkColorProps = 'currentColor' | 'red' | 'green';
|
|
468
538
|
declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -474,8 +544,35 @@ declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
474
544
|
linkColor?: LinkColorProps;
|
|
475
545
|
/** (optional) sets whether the link is external or not adding an icon to the link */
|
|
476
546
|
external?: boolean;
|
|
547
|
+
/** (optional) For supporting inside next/link component */
|
|
548
|
+
ref?: React$1.ForwardedRef<HTMLAnchorElement>;
|
|
477
549
|
};
|
|
478
550
|
declare const Link: ({ external, text, linkColor, ...props }: LinkProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
551
|
+
declare const LinkWithRef: React$1.ForwardRefExoticComponent<Pick<LinkProps, "text" | "external" | keyof React$1.AnchorHTMLAttributes<HTMLAnchorElement> | "linkColor"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
552
|
+
|
|
553
|
+
declare type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
554
|
+
/** sets the title text of the integration */
|
|
555
|
+
title: string;
|
|
556
|
+
/** sets the description text of the integration */
|
|
557
|
+
description: string | string[];
|
|
558
|
+
/** (optional) sets the icon of the integration */
|
|
559
|
+
icon?: string | React$1.ComponentType<{
|
|
560
|
+
className?: string;
|
|
561
|
+
}>;
|
|
562
|
+
/** (optional) sets the react child elements*/
|
|
563
|
+
children?: React$1.ReactNode;
|
|
564
|
+
/** (optional) sets an external link to documentation */
|
|
565
|
+
docsLink?: string;
|
|
566
|
+
/** (optional) sets the badge text of the integration */
|
|
567
|
+
badgeText?: string;
|
|
568
|
+
/** (optional) location for the menu options to be positioned */
|
|
569
|
+
menu?: React$1.ReactNode;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Uniform Integration Header Section Component
|
|
573
|
+
* @Example <IntegrationHeaderSection title="custom integration" description="custom integration description text" />
|
|
574
|
+
*/
|
|
575
|
+
declare const IntegrationHeaderSection: ({ title, description, icon, docsLink, badgeText, menu, children, ...props }: IntegrationHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
479
576
|
|
|
480
577
|
declare type ScrollableListProps = {
|
|
481
578
|
/** (optional) sets the label value */
|
|
@@ -692,4 +789,171 @@ declare type LimitsBarProps = {
|
|
|
692
789
|
*/
|
|
693
790
|
declare const LimitsBar: ({ current, max, label }: LimitsBarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
694
791
|
|
|
695
|
-
|
|
792
|
+
declare type ArrowPositionProps = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
793
|
+
declare type InlineAlertProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
794
|
+
/** sets the id of the popup and the aria-controls attibute on the close button
|
|
795
|
+
* @example 'my-alert-box'
|
|
796
|
+
*/
|
|
797
|
+
id: string;
|
|
798
|
+
/** sets the title of the inline alert message */
|
|
799
|
+
title: string;
|
|
800
|
+
/** sets the text of the inline alert message */
|
|
801
|
+
text: string;
|
|
802
|
+
/** (optional) sets the position of the arrow
|
|
803
|
+
* @default 'left-top'
|
|
804
|
+
*/
|
|
805
|
+
arrowPosition?: ArrowPositionProps;
|
|
806
|
+
/** (optional) allows to position alert using direct css */
|
|
807
|
+
positionCss?: SerializedStyles;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Uniform Inline Alert Component
|
|
811
|
+
* @example <InlineAlert id="my-alert-box" title="my alert box" text="some description text" />
|
|
812
|
+
*/
|
|
813
|
+
declare const InlineAlert: ({ id, title, text, arrowPosition, positionCss, ...btnProps }: InlineAlertProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
814
|
+
|
|
815
|
+
interface IntegrationTileFields {
|
|
816
|
+
icon?: string | React.ComponentType<{
|
|
817
|
+
className?: string;
|
|
818
|
+
}> | undefined;
|
|
819
|
+
name: string;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
declare type IntegrationTileProps = IntegrationTileFields & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
823
|
+
id: string;
|
|
824
|
+
requiedEntitlement?: boolean | undefined;
|
|
825
|
+
onAddIntegration: () => void;
|
|
826
|
+
isPublic?: boolean;
|
|
827
|
+
isInstalled?: boolean;
|
|
828
|
+
authorIcon?: string | React$1.ComponentType<{
|
|
829
|
+
className?: string;
|
|
830
|
+
}> | undefined;
|
|
831
|
+
};
|
|
832
|
+
declare const IntegrationTile: ({ id, icon, name, requiedEntitlement, onAddIntegration, isPublic, isInstalled, authorIcon, ...btnProps }: IntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
833
|
+
|
|
834
|
+
declare type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
835
|
+
/** (optional) sets the title value
|
|
836
|
+
* @default 'Create a custom integration'
|
|
837
|
+
*/
|
|
838
|
+
title?: string;
|
|
839
|
+
/** (optional) sets the button text value
|
|
840
|
+
* @default 'Add Integration'
|
|
841
|
+
*/
|
|
842
|
+
buttonText?: string;
|
|
843
|
+
/** sets the button function call */
|
|
844
|
+
onClick: () => void;
|
|
845
|
+
/** (optional) sets the icon position and icon type
|
|
846
|
+
* @default 'false'
|
|
847
|
+
*/
|
|
848
|
+
asDeepLink?: boolean;
|
|
849
|
+
};
|
|
850
|
+
declare const CreateTeamIntegrationTile: ({ title, buttonText, onClick, asDeepLink, ...props }: CreateTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
851
|
+
|
|
852
|
+
declare type EditTeamIntegrationTileProps = IntegrationTileFields & {
|
|
853
|
+
/** sets the id value */
|
|
854
|
+
id: string;
|
|
855
|
+
/** sets the function call for the button */
|
|
856
|
+
onEdit: () => void;
|
|
857
|
+
/** (optional) sets whether the integration is public or not */
|
|
858
|
+
isPublic?: boolean;
|
|
859
|
+
/** displays the edit button component */
|
|
860
|
+
canEdit: boolean;
|
|
861
|
+
};
|
|
862
|
+
/** Uniform Edit Team Integration Tile
|
|
863
|
+
* @example <EditTeamIntegrationTile id="example" onEdit={() => func()} canEdit={true} isPublis={true} name="example" icon="./image.svg" />
|
|
864
|
+
*/
|
|
865
|
+
declare const EditTeamIntegrationTile: ({ id, icon, name, onEdit, isPublic, canEdit, }: EditTeamIntegrationTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
866
|
+
|
|
867
|
+
declare type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
868
|
+
/** sets react child elements */
|
|
869
|
+
children: React$1.ReactNode;
|
|
870
|
+
};
|
|
871
|
+
/**
|
|
872
|
+
* Uniform Tile Container Component
|
|
873
|
+
* @example <TileContainer><div>child content</div></TileContainer>
|
|
874
|
+
*/
|
|
875
|
+
declare const TileContainer: ({ children, ...props }: TileContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
876
|
+
|
|
877
|
+
declare type IntegrationComingSoonProps = IntegrationTileFields & React.HTMLAttributes<HTMLDivElement> & {
|
|
878
|
+
/** sets the id and data-testid value */
|
|
879
|
+
id: string;
|
|
880
|
+
/** click event used for tracking analytics data */
|
|
881
|
+
onUpVoteClick: () => void;
|
|
882
|
+
/** (optional) sets the thank you message visibility duration
|
|
883
|
+
* @default 1000
|
|
884
|
+
*/
|
|
885
|
+
timing?: number;
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* Uniform Integration Coming Soon Component
|
|
889
|
+
* @example <IntegrationComingSoon id="piedpiper" name="Pied Piper" icon="./piedpiper.svg" onUpVoteClick={() => someFunc()} />
|
|
890
|
+
*/
|
|
891
|
+
declare const IntegrationComingSoon: ({ name, icon, id, onUpVoteClick, timing, ...props }: IntegrationComingSoonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
892
|
+
|
|
893
|
+
declare type ClassNameOptions = 'logo' | 'author';
|
|
894
|
+
declare type ResolveIconProps = IntegrationTileFields & React__default.SVGAttributes<SVGElement> & React__default.ImgHTMLAttributes<HTMLImageElement> & {
|
|
895
|
+
/** sets the emotion styles for the rendered image
|
|
896
|
+
* @default 'logo'
|
|
897
|
+
*/
|
|
898
|
+
styleType?: ClassNameOptions;
|
|
899
|
+
};
|
|
900
|
+
/** Uniform Resolve Icon Component
|
|
901
|
+
* @example <ResolveIcon icon="/my-image.png" name="my image" />
|
|
902
|
+
*/
|
|
903
|
+
declare const ResolveIcon: ({ icon, name, styleType, ...props }: ResolveIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
904
|
+
|
|
905
|
+
declare type IntegrationModalIconProps = React$1.ImgHTMLAttributes<HTMLImageElement> & {
|
|
906
|
+
/** sets the icon as inline svg or img tag */
|
|
907
|
+
icon: string | React$1.ComponentType<{
|
|
908
|
+
className?: string;
|
|
909
|
+
}> | undefined;
|
|
910
|
+
/** sets the alt text of the image */
|
|
911
|
+
name: string;
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* Uniform Integration Modal Icon
|
|
915
|
+
* @example <IntegrationModalIcon name="name" icon="/my-icon.svg" />
|
|
916
|
+
*/
|
|
917
|
+
declare const IntegrationModalIcon: ({ icon, name, ...imgProps }: IntegrationModalIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
918
|
+
|
|
919
|
+
declare type IntegrationLoadingTileProps = {
|
|
920
|
+
/** (optional) sets the number of skeletal loading elements to show
|
|
921
|
+
* @default 1
|
|
922
|
+
*/
|
|
923
|
+
count?: number;
|
|
924
|
+
};
|
|
925
|
+
/** Uniform Integration Loading Tile
|
|
926
|
+
* @example <IntegrationLoadingTile count={10} />
|
|
927
|
+
*/
|
|
928
|
+
declare const IntegrationLoadingTile: ({ count }: IntegrationLoadingTileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
929
|
+
|
|
930
|
+
declare type BadgeProps = {
|
|
931
|
+
/** sets the text of the badge */
|
|
932
|
+
text: string;
|
|
933
|
+
};
|
|
934
|
+
/**
|
|
935
|
+
* Uniform Badge Component
|
|
936
|
+
* @example <Badge text="My badge" />
|
|
937
|
+
*/
|
|
938
|
+
declare const Badge: ({ text }: BadgeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
939
|
+
|
|
940
|
+
declare type IntegrationModalHeaderProps = {
|
|
941
|
+
/** sets the icon as inline svg or img tag */
|
|
942
|
+
icon: string | React$1.ComponentType<{
|
|
943
|
+
className?: string;
|
|
944
|
+
}> | undefined | null;
|
|
945
|
+
/** sets the alt text of the image */
|
|
946
|
+
name: string | undefined;
|
|
947
|
+
/** (optional) sets react child elements */
|
|
948
|
+
children?: React$1.ReactNode;
|
|
949
|
+
/** (optional) sets child elements in */
|
|
950
|
+
menu?: React$1.ReactNode;
|
|
951
|
+
};
|
|
952
|
+
declare type HexModalBackgroundProps = React$1.SVGAttributes<SVGElement>;
|
|
953
|
+
declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
954
|
+
/** Uniform Integration Modal Header
|
|
955
|
+
* @example <IntegrationModalHeader icon="/icon.svg" name="name" />
|
|
956
|
+
*/
|
|
957
|
+
declare const IntegrationModalHeader: ({ icon, name, menu, children }: IntegrationModalHeaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
958
|
+
|
|
959
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, ChildFunction, ComboBoxGroupBase, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, 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, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ResolveIcon, ResolveIconProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Switch, SwitchProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeOutBottom, growSubtle, input, inputError, inputSelect, labelText, mq, ripple, scrollbarStyles, skeletonLoading, supports, useIconContext, useMenuContext };
|