@uniformdev/design-system 17.0.0 → 17.1.1-alpha.152
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 +253 -210
- package/dist/index.d.ts +106 -19
- package/dist/index.js +253 -210
- package/package.json +11 -12
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare const mq: (size: breakpointSizeProps) => string;
|
|
|
47
47
|
declare const supports: (cssProp: string) => string;
|
|
48
48
|
|
|
49
49
|
declare const labelText: _emotion_react.SerializedStyles;
|
|
50
|
-
declare const input: _emotion_react.SerializedStyles;
|
|
50
|
+
declare const input: (whiteSpaceWrap: 'wrap' | 'nowrap') => _emotion_react.SerializedStyles;
|
|
51
51
|
declare const inputError: _emotion_react.SerializedStyles;
|
|
52
52
|
declare const inputSelect: _emotion_react.SerializedStyles;
|
|
53
53
|
|
|
@@ -245,7 +245,7 @@ declare type ComboBoxGroupBase<TOption> = GroupBase<TOption>;
|
|
|
245
245
|
/**
|
|
246
246
|
* InputComboBox
|
|
247
247
|
* @component
|
|
248
|
-
* @example <InputComboBox name="name" id="combo-box" options=[{ value: 'chocolate', label: 'Chocolate' }, { value: 'strawberry', label: 'Strawberry' }, { value: 'vanilla', label: 'Vanilla' }] /> */
|
|
248
|
+
* @example <InputComboBox name="name" id="combo-box" options={[{ value: 'chocolate', label: 'Chocolate' }, { value: 'strawberry', label: 'Strawberry' }, { value: 'vanilla', label: 'Vanilla' }]} isMulti /> */
|
|
249
249
|
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;
|
|
250
250
|
|
|
251
251
|
declare type InputInlineSelectOption = {
|
|
@@ -500,12 +500,16 @@ declare type HeadingProps = {
|
|
|
500
500
|
level?: LevelProps;
|
|
501
501
|
/** sets the title value */
|
|
502
502
|
children: React$1.ReactNode;
|
|
503
|
+
/** (optional) sets whether to use the default margin for the heading element
|
|
504
|
+
* @default true
|
|
505
|
+
*/
|
|
506
|
+
withMarginBottom?: boolean;
|
|
503
507
|
} & React$1.HTMLAttributes<HTMLHeadingElement>;
|
|
504
508
|
/**
|
|
505
509
|
* Component that sets the heading tag
|
|
506
510
|
* @example <Heading level={1}>Blog Post Title</Heading>
|
|
507
511
|
*/
|
|
508
|
-
declare const Heading: ({ level, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
512
|
+
declare const Heading: ({ level, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
509
513
|
|
|
510
514
|
declare type ParagraphProps = {
|
|
511
515
|
/** (optional) adds child elements to the paragraph tag */
|
|
@@ -521,19 +525,6 @@ declare type ParagraphProps = {
|
|
|
521
525
|
*/
|
|
522
526
|
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
523
527
|
|
|
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;
|
|
536
|
-
|
|
537
528
|
declare type LinkColorProps = 'currentColor' | 'red' | 'green';
|
|
538
529
|
declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
539
530
|
/** sets the link text and title text */
|
|
@@ -546,9 +537,55 @@ declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
546
537
|
external?: boolean;
|
|
547
538
|
/** (optional) For supporting inside next/link component */
|
|
548
539
|
ref?: React$1.ForwardedRef<HTMLAnchorElement>;
|
|
540
|
+
/** (optional) sets react child elements */
|
|
541
|
+
children?: React$1.ReactNode;
|
|
549
542
|
};
|
|
550
|
-
|
|
551
|
-
|
|
543
|
+
/** Uniform Link Component
|
|
544
|
+
* @example <Link text="my link" href="#" />
|
|
545
|
+
*/
|
|
546
|
+
declare const Link: ({ external, text, linkColor, children, ...props }: LinkProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
547
|
+
declare type LinkManagerWithRefType = (props: Partial<LinkProps> & {
|
|
548
|
+
as?: string;
|
|
549
|
+
href: string;
|
|
550
|
+
passHref: true;
|
|
551
|
+
} & React$1.RefAttributes<HTMLAnchorElement>) => JSX.Element | null;
|
|
552
|
+
/** Uniform LinkWithRef Component
|
|
553
|
+
* We recommend using this link `next/link`
|
|
554
|
+
* @example <LinkWithRef linkManagerComponent={NextLink} href="some-url" text="my link" />
|
|
555
|
+
*/
|
|
556
|
+
declare const LinkWithRef: React$1.ForwardRefExoticComponent<Pick<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
557
|
+
/** sets the link text and title text */
|
|
558
|
+
text: string;
|
|
559
|
+
/** (optional) sets the link color
|
|
560
|
+
* @default 'currentColor'
|
|
561
|
+
*/
|
|
562
|
+
linkColor?: LinkColorProps | undefined;
|
|
563
|
+
/** (optional) sets whether the link is external or not adding an icon to the link */
|
|
564
|
+
external?: boolean | undefined;
|
|
565
|
+
/** (optional) For supporting inside next/link component */
|
|
566
|
+
ref?: React$1.ForwardedRef<HTMLAnchorElement> | undefined;
|
|
567
|
+
/** (optional) sets react child elements */
|
|
568
|
+
children?: React$1.ReactNode;
|
|
569
|
+
} & {
|
|
570
|
+
href: string;
|
|
571
|
+
as?: string | undefined;
|
|
572
|
+
linkManagerComponent: LinkManagerWithRefType;
|
|
573
|
+
}, "text" | "as" | "external" | "linkColor" | "linkManagerComponent" | keyof React$1.AnchorHTMLAttributes<HTMLAnchorElement>> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
574
|
+
|
|
575
|
+
interface RouteProps {
|
|
576
|
+
as: string;
|
|
577
|
+
href: string;
|
|
578
|
+
}
|
|
579
|
+
declare type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
580
|
+
title: string | undefined;
|
|
581
|
+
desc?: React$1.ReactNode;
|
|
582
|
+
children?: React$1.ReactNode;
|
|
583
|
+
linkProps?: RouteProps;
|
|
584
|
+
linkText?: string;
|
|
585
|
+
level?: LevelProps;
|
|
586
|
+
linkManagerComponent: LinkManagerWithRefType;
|
|
587
|
+
};
|
|
588
|
+
declare const PageHeaderSection: ({ title, desc, children, linkText, level, linkProps, linkManagerComponent, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
552
589
|
|
|
553
590
|
declare type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
554
591
|
/** sets the title text of the integration */
|
|
@@ -956,4 +993,54 @@ declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _em
|
|
|
956
993
|
*/
|
|
957
994
|
declare const IntegrationModalHeader: ({ icon, name, menu, children }: IntegrationModalHeaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
958
995
|
|
|
959
|
-
|
|
996
|
+
declare type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
997
|
+
/** (optional) sets the title value of the card */
|
|
998
|
+
title?: string;
|
|
999
|
+
/** (optional) sets react child components */
|
|
1000
|
+
children?: React$1.ReactNode;
|
|
1001
|
+
/** (optional) sets options for a dropdown menu */
|
|
1002
|
+
menuItems?: JSX.Element;
|
|
1003
|
+
/** (optional) sets the data-test-id attribute on the button element
|
|
1004
|
+
* @default 'list-card-menu'
|
|
1005
|
+
*/
|
|
1006
|
+
menuButtonTestId?: string;
|
|
1007
|
+
/** (optional) sets the menu button disabled state */
|
|
1008
|
+
disabled?: boolean;
|
|
1009
|
+
};
|
|
1010
|
+
declare const Card: ({ title, menuItems, children, disabled, menuButtonTestId, ...props }: CardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1011
|
+
|
|
1012
|
+
declare type CardContainerBgColorProps = 'gray' | 'white';
|
|
1013
|
+
declare type CardContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1014
|
+
/** (optional): sets the background colour of the wrapping element
|
|
1015
|
+
* @default 'white'
|
|
1016
|
+
*/
|
|
1017
|
+
bgColor?: CardContainerBgColorProps;
|
|
1018
|
+
/** (optional): sets react child components */
|
|
1019
|
+
children?: React$1.ReactNode;
|
|
1020
|
+
/** (optional): sets the padding values of the inner container
|
|
1021
|
+
* @example 'when set to true padding: var(--spacing-2xl) var(--spacing-lg)'
|
|
1022
|
+
* @default true
|
|
1023
|
+
*/
|
|
1024
|
+
padding?: boolean;
|
|
1025
|
+
/** (optional): sets the padding values of the inner container
|
|
1026
|
+
* @example `when set to true`
|
|
1027
|
+
* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) [last-col] minmax(300px, 1fr);
|
|
1028
|
+
* grid-template-rows: auto [last-line];
|
|
1029
|
+
* @default false
|
|
1030
|
+
*/
|
|
1031
|
+
withLastColumn?: boolean;
|
|
1032
|
+
};
|
|
1033
|
+
/** Uniform Card Container
|
|
1034
|
+
* @example <CardContainer><Card title="card title" /></CardContainer>
|
|
1035
|
+
*/
|
|
1036
|
+
declare const CardContainer: ({ bgColor, padding, withLastColumn, children, ...props }: CardContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1037
|
+
|
|
1038
|
+
declare type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1039
|
+
/** sets the title field */
|
|
1040
|
+
title: string;
|
|
1041
|
+
/** (optional) sets react child component */
|
|
1042
|
+
children?: React$1.ReactNode;
|
|
1043
|
+
};
|
|
1044
|
+
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1045
|
+
|
|
1046
|
+
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, LinkManagerWithRefType, 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 };
|