@uniformdev/design-system 17.1.0 → 17.1.1-alpha.151
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 +140 -137
- package/dist/index.d.ts +29 -34
- package/dist/index.js +191 -188
- package/package.json +4 -5
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ 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';
|
|
14
13
|
|
|
15
14
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
16
15
|
declare type ThemeProps = {
|
|
@@ -246,7 +245,7 @@ declare type ComboBoxGroupBase<TOption> = GroupBase<TOption>;
|
|
|
246
245
|
/**
|
|
247
246
|
* InputComboBox
|
|
248
247
|
* @component
|
|
249
|
-
* @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 /> */
|
|
250
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;
|
|
251
250
|
|
|
252
251
|
declare type InputInlineSelectOption = {
|
|
@@ -526,20 +525,6 @@ declare type ParagraphProps = {
|
|
|
526
525
|
*/
|
|
527
526
|
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
528
527
|
|
|
529
|
-
interface RouteProps {
|
|
530
|
-
as: string;
|
|
531
|
-
href: string;
|
|
532
|
-
}
|
|
533
|
-
declare type PageHeaderSectionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
534
|
-
title: string | undefined;
|
|
535
|
-
desc?: React$1.ReactNode;
|
|
536
|
-
children?: React$1.ReactNode;
|
|
537
|
-
linkProps?: RouteProps;
|
|
538
|
-
linkText?: string;
|
|
539
|
-
level?: LevelProps;
|
|
540
|
-
};
|
|
541
|
-
declare const PageHeaderSection: ({ title, desc, children, linkText, level, linkProps, ...htmlProps }: PageHeaderSectionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
542
|
-
|
|
543
528
|
declare type LinkColorProps = 'currentColor' | 'red' | 'green';
|
|
544
529
|
declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
545
530
|
/** sets the link text and title text */
|
|
@@ -559,25 +544,16 @@ declare type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
559
544
|
* @example <Link text="my link" href="#" />
|
|
560
545
|
*/
|
|
561
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;
|
|
562
552
|
/** Uniform LinkWithRef Component
|
|
563
553
|
* We recommend using this link `next/link`
|
|
564
|
-
* @example <
|
|
554
|
+
* @example <LinkWithRef linkManagerComponent={NextLink} href="some-url" text="my link" />
|
|
565
555
|
*/
|
|
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> & {
|
|
556
|
+
declare const LinkWithRef: React$1.ForwardRefExoticComponent<Pick<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
581
557
|
/** sets the link text and title text */
|
|
582
558
|
text: string;
|
|
583
559
|
/** (optional) sets the link color
|
|
@@ -590,7 +566,26 @@ declare const LinkWithRef: React$1.ForwardRefExoticComponent<Pick<{
|
|
|
590
566
|
ref?: React$1.ForwardedRef<HTMLAnchorElement> | undefined;
|
|
591
567
|
/** (optional) sets react child elements */
|
|
592
568
|
children?: React$1.ReactNode;
|
|
593
|
-
}
|
|
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;
|
|
594
589
|
|
|
595
590
|
declare type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
596
591
|
/** sets the title text of the integration */
|
|
@@ -1048,4 +1043,4 @@ declare type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
1048
1043
|
};
|
|
1049
1044
|
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1050
1045
|
|
|
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 };
|
|
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 };
|