@uniformdev/design-system 17.0.0 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { StateManagerProps } from 'react-select/dist/declarations/src/useStateMa
10
10
  import InternalSelect from 'react-select/dist/declarations/src/Select';
11
11
  import { MenuHTMLProps, MenuProps as MenuProps$1, MenuStateReturn } from 'reakit/Menu';
12
12
  import { MenuItemHTMLProps, MenuProps as MenuProps$2 } from 'reakit';
13
+ import * as url from 'url';
13
14
 
14
15
  /** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
15
16
  declare type ThemeProps = {
@@ -47,7 +48,7 @@ declare const mq: (size: breakpointSizeProps) => string;
47
48
  declare const supports: (cssProp: string) => string;
48
49
 
49
50
  declare const labelText: _emotion_react.SerializedStyles;
50
- declare const input: _emotion_react.SerializedStyles;
51
+ declare const input: (whiteSpaceWrap: 'wrap' | 'nowrap') => _emotion_react.SerializedStyles;
51
52
  declare const inputError: _emotion_react.SerializedStyles;
52
53
  declare const inputSelect: _emotion_react.SerializedStyles;
53
54
 
@@ -500,12 +501,16 @@ declare type HeadingProps = {
500
501
  level?: LevelProps;
501
502
  /** sets the title value */
502
503
  children: React$1.ReactNode;
504
+ /** (optional) sets whether to use the default margin for the heading element
505
+ * @default true
506
+ */
507
+ withMarginBottom?: boolean;
503
508
  } & React$1.HTMLAttributes<HTMLHeadingElement>;
504
509
  /**
505
510
  * Component that sets the heading tag
506
511
  * @example <Heading level={1}>Blog Post Title</Heading>
507
512
  */
508
- declare const Heading: ({ level, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
513
+ declare const Heading: ({ level, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
509
514
 
510
515
  declare type ParagraphProps = {
511
516
  /** (optional) adds child elements to the paragraph tag */
@@ -531,8 +536,9 @@ declare type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
531
536
  children?: React$1.ReactNode;
532
537
  linkProps?: RouteProps;
533
538
  linkText?: string;
539
+ level?: LevelProps;
534
540
  };
535
- declare const PageHeaderSection: ({ title, desc, children, linkText, linkProps, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
541
+ declare const PageHeaderSection: ({ title, desc, children, linkText, level, linkProps, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
536
542
 
537
543
  declare type LinkColorProps = 'currentColor' | 'red' | 'green';
538
544
  declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -546,9 +552,45 @@ declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
546
552
  external?: boolean;
547
553
  /** (optional) For supporting inside next/link component */
548
554
  ref?: React$1.ForwardedRef<HTMLAnchorElement>;
555
+ /** (optional) sets react child elements */
556
+ children?: React$1.ReactNode;
549
557
  };
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>>;
558
+ /** Uniform Link Component
559
+ * @example <Link text="my link" href="#" />
560
+ */
561
+ declare const Link: ({ external, text, linkColor, children, ...props }: LinkProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
562
+ /** Uniform LinkWithRef Component
563
+ * We recommend using this link `next/link`
564
+ * @example <NextLink {...someProps} passHref><LinkWithRef text="my link" /></NextLink>
565
+ */
566
+ declare const LinkWithRef: React$1.ForwardRefExoticComponent<Pick<{
567
+ href: string | url.UrlObject;
568
+ as?: (string | url.UrlObject) | undefined;
569
+ replace?: boolean | undefined;
570
+ soft?: boolean | undefined;
571
+ scroll?: boolean | undefined;
572
+ shallow?: boolean | undefined;
573
+ passHref?: boolean | undefined;
574
+ prefetch?: boolean | undefined;
575
+ locale?: string | false | undefined;
576
+ legacyBehavior?: boolean | undefined;
577
+ onMouseEnter?: ((e: any) => void) | undefined;
578
+ onTouchStart?: ((e: any) => void) | undefined;
579
+ onClick?: ((e: any) => void) | undefined;
580
+ } & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
581
+ /** sets the link text and title text */
582
+ text: string;
583
+ /** (optional) sets the link color
584
+ * @default 'currentColor'
585
+ */
586
+ linkColor?: LinkColorProps | undefined;
587
+ /** (optional) sets whether the link is external or not adding an icon to the link */
588
+ external?: boolean | undefined;
589
+ /** (optional) For supporting inside next/link component */
590
+ ref?: React$1.ForwardedRef<HTMLAnchorElement> | undefined;
591
+ /** (optional) sets react child elements */
592
+ children?: React$1.ReactNode;
593
+ }, "slot" | "style" | "title" | "text" | "className" | "as" | "href" | "hrefLang" | "media" | "referrerPolicy" | "rel" | "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" | "replace" | "target" | "external" | "scroll" | "soft" | "shallow" | "passHref" | "prefetch" | "locale" | "legacyBehavior" | "download" | "ping" | "linkColor"> & React$1.RefAttributes<HTMLAnchorElement>>;
552
594
 
553
595
  declare type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
554
596
  /** sets the title text of the integration */
@@ -956,4 +998,54 @@ declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _em
956
998
  */
957
999
  declare const IntegrationModalHeader: ({ icon, name, menu, children }: IntegrationModalHeaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
958
1000
 
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 };
1001
+ declare type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
1002
+ /** (optional) sets the title value of the card */
1003
+ title?: string;
1004
+ /** (optional) sets react child components */
1005
+ children?: React$1.ReactNode;
1006
+ /** (optional) sets options for a dropdown menu */
1007
+ menuItems?: JSX.Element;
1008
+ /** (optional) sets the data-test-id attribute on the button element
1009
+ * @default 'list-card-menu'
1010
+ */
1011
+ menuButtonTestId?: string;
1012
+ /** (optional) sets the menu button disabled state */
1013
+ disabled?: boolean;
1014
+ };
1015
+ declare const Card: ({ title, menuItems, children, disabled, menuButtonTestId, ...props }: CardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1016
+
1017
+ declare type CardContainerBgColorProps = 'gray' | 'white';
1018
+ declare type CardContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
1019
+ /** (optional): sets the background colour of the wrapping element
1020
+ * @default 'white'
1021
+ */
1022
+ bgColor?: CardContainerBgColorProps;
1023
+ /** (optional): sets react child components */
1024
+ children?: React$1.ReactNode;
1025
+ /** (optional): sets the padding values of the inner container
1026
+ * @example 'when set to true padding: var(--spacing-2xl) var(--spacing-lg)'
1027
+ * @default true
1028
+ */
1029
+ padding?: boolean;
1030
+ /** (optional): sets the padding values of the inner container
1031
+ * @example `when set to true`
1032
+ * grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) [last-col] minmax(300px, 1fr);
1033
+ * grid-template-rows: auto [last-line];
1034
+ * @default false
1035
+ */
1036
+ withLastColumn?: boolean;
1037
+ };
1038
+ /** Uniform Card Container
1039
+ * @example <CardContainer><Card title="card title" /></CardContainer>
1040
+ */
1041
+ declare const CardContainer: ({ bgColor, padding, withLastColumn, children, ...props }: CardContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1042
+
1043
+ declare type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
1044
+ /** sets the title field */
1045
+ title: string;
1046
+ /** (optional) sets react child component */
1047
+ children?: React$1.ReactNode;
1048
+ };
1049
+ declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1050
+
1051
+ export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, 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, LinkList, LinkListProps, 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 };