@uniformdev/design-system 17.3.0 → 17.3.1-alpha.146

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
@@ -399,6 +399,28 @@ declare type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & {
399
399
  };
400
400
  declare const Label: ({ children, className, testId, ...props }: LabelProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
401
401
 
402
+ declare type CheckboxWithInforProps = React.HTMLAttributes<HTMLInputElement> & {
403
+ /** sets the label value */
404
+ label: string;
405
+ /** sets the name value of the radio/checkbox input */
406
+ name: string;
407
+ /** sets info message */
408
+ info?: string;
409
+ /** (optional) sets the checked state of the input */
410
+ checked?: boolean;
411
+ };
412
+ /** @example <CheckboxWithInfo label="checkbox" name="name" info="some message" /> */
413
+ declare const CheckboxWithInfo: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLInputElement> & {
414
+ /** sets the label value */
415
+ label: string;
416
+ /** sets the name value of the radio/checkbox input */
417
+ name: string;
418
+ /** sets info message */
419
+ info?: string | undefined;
420
+ /** (optional) sets the checked state of the input */
421
+ checked?: boolean | undefined;
422
+ } & React$1.RefAttributes<HTMLInputElement>>;
423
+
402
424
  interface MenuProps extends MenuHTMLProps {
403
425
  /** sets aria-label attribute */
404
426
  menuLabel: string;
@@ -453,6 +475,10 @@ interface CalloutProps {
453
475
  * @default "info"
454
476
  */
455
477
  type: CalloutType;
478
+ /** make the display of the callout compact. Suitable for small spaces
479
+ * @default false
480
+ */
481
+ compact?: boolean;
456
482
  /** (optional) sets the title of the callout */
457
483
  title?: React$1.ReactNode;
458
484
  /** add child elements to the callout */
@@ -464,7 +490,7 @@ interface CalloutProps {
464
490
  * Uniform Callout Component
465
491
  * @example <Callout title="my title" type="caution"><p>callout body copy</p></Callout>
466
492
  */
467
- declare const Callout: ({ type, title, children, className }: CalloutProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
493
+ declare const Callout: ({ type, compact, title, children, className }: CalloutProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
468
494
 
469
495
  /**
470
496
  * Loading Indicator
@@ -783,6 +809,10 @@ declare type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement
783
809
  buttonText?: string;
784
810
  /** sets the function action of the button */
785
811
  onButtonClick: () => void;
812
+ /** (optional) - sets the icon within the button, requires the icon provider to work
813
+ * @default 'regular'
814
+ */
815
+ variant?: 'regular' | 'small';
786
816
  /** (optional) - sets whether the button is disabled or not
787
817
  * @default undefined
788
818
  */
@@ -796,7 +826,7 @@ declare type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement
796
826
  * Uniform Add List Button Component
797
827
  * @example <AddListButton buttonText="my text" onButtonClick={() => console.log('button clicked')} icon="add" />
798
828
  */
799
- declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, ...buttonProps }: AddListButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
829
+ declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, variant, ...buttonProps }: AddListButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
800
830
 
801
831
  declare type TextAlignProps = 'left' | 'right' | 'center';
802
832
  declare type BoxHeightProps = 'auto' | 'sm' | 'md' | 'lg';
@@ -1067,4 +1097,65 @@ interface TabContentProps extends Partial<TabPanelProps> {
1067
1097
  }
1068
1098
  declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1069
1099
 
1070
- 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, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, labelText, mq, ripple, scrollbarStyles, skeletonLoading, supports, useCurrentTab, useIconContext, useMenuContext };
1100
+ interface DrawerItem {
1101
+ /** An ID for the drawer. It should be unique in the stack where it's rendered */
1102
+ id: string;
1103
+ /** The ReactNode to render inside the drawer */
1104
+ component: React__default.ReactNode;
1105
+ /** The ID of the stack where the drawer should be renderer. It should match the stack ID of an existing DrawerRenderer */
1106
+ stackId: string;
1107
+ /** Just like React.Key, changing this value indicates that the drawer has changed and we need to close the current instance and open a new one */
1108
+ instanceKey?: string;
1109
+ /** Called when the close button is clicked, the Escape button is pressed, or when the drawer's overlay is clicked */
1110
+ onRequestClose?: () => void;
1111
+ }
1112
+ declare type DrawerContextValue = {
1113
+ drawersRegistry: DrawerItem[];
1114
+ registerDrawer: (drawer: DrawerItem) => void;
1115
+ unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
1116
+ };
1117
+ /**
1118
+ * Provides the context to the Drawer and DrawerRenderer components.
1119
+ * @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
1120
+ */
1121
+ declare const DrawerProvider: ({ children }: React__default.PropsWithChildren) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1122
+ declare const useDrawer: () => DrawerContextValue;
1123
+
1124
+ interface DrawerProps extends Omit<DrawerItem, 'component'> {
1125
+ header?: React__default.ReactNode;
1126
+ children?: React__default.ReactNode;
1127
+ }
1128
+ /**
1129
+ * A drawer component that opens from the right side of is parent. The component is used in combination with DrawerProvider and DrawerRenderer
1130
+ * @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
1131
+ */
1132
+ declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
1133
+
1134
+ interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
1135
+ /** The ID of the stack to render. Some drawers need to use the same stack ID to be rendered here */
1136
+ stackId: string;
1137
+ /** The width of the drawers. In any CSS length unit (px, rem, %, et al). Can't use CSS functions (e.g. calc())
1138
+ * @default '45%'
1139
+ */
1140
+ width?: string;
1141
+ /** The minimum width of the drawers. In any CSS length unit (px, rem, %, et al)
1142
+ * @default '0'
1143
+
1144
+ */
1145
+ minWidth?: string;
1146
+ /** The maximum width of the drawers. In any CSS length unit (px, rem, %, et al)
1147
+ * @default '100%'
1148
+ */
1149
+ maxWidth?: string;
1150
+ }
1151
+ declare const DrawerRenderer: ({ stackId, width, minWidth, maxWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
1152
+ interface DrawerRendererItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
1153
+ index: number;
1154
+ totalDrawers: number;
1155
+ width: DrawerRendererProps['width'];
1156
+ minWidth: Required<DrawerRendererProps['minWidth']>;
1157
+ maxWidth: Required<DrawerRendererProps['maxWidth']>;
1158
+ onOverlayClick?: () => void;
1159
+ }
1160
+
1161
+ 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, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, 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, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, labelText, mq, ripple, scrollbarStyles, skeletonLoading, supports, useCurrentTab, useDrawer, useIconContext, useMenuContext };