@uniformdev/design-system 18.22.0 → 18.23.1-alpha.34

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
@@ -12,6 +12,7 @@ import { IconType as IconType$1, IconBaseProps } from 'react-icons';
12
12
  import InternalSelect from 'react-select/dist/declarations/src/Select';
13
13
  import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
14
14
  import { MenuHTMLProps, MenuProps as MenuProps$2, MenuStateReturn } from 'reakit/Menu';
15
+ import { PopoverProps as PopoverProps$1, PopoverInitialState } from 'reakit/Popover';
15
16
  import { TabState, TabListProps, TabProps, TabPanelProps } from 'reakit/Tab';
16
17
  import { TooltipOptions, TooltipInitialState } from 'reakit/Tooltip';
17
18
 
@@ -1045,6 +1046,10 @@ type CommonParameterProps = {
1045
1046
  errorMessage?: string;
1046
1047
  /** (optional) allows users to manually set the error message state */
1047
1048
  onManuallySetErrorMessage?: (message: string | undefined) => void;
1049
+ /** sets whether to show the override UI */
1050
+ hasOverriddenValue?: boolean;
1051
+ /** sets the function call of the overriding parameters button */
1052
+ onResetOverriddenValue?: () => void;
1048
1053
  };
1049
1054
  type CommonParameterInputProps = CommonParameterProps & {
1050
1055
  /** (optional) sets caption text value */
@@ -1059,8 +1064,6 @@ type CommonParameterInputProps = CommonParameterProps & {
1059
1064
  * recommended to be used with radio and checkbox inputs
1060
1065
  */
1061
1066
  title?: string;
1062
- /** sets whether to show the override UI */
1063
- hasOverridingParams?: boolean;
1064
1067
  };
1065
1068
  type CommonOptionProps = Array<React.OptionHTMLAttributes<HTMLOptionElement> & {
1066
1069
  label: string;
@@ -1109,7 +1112,7 @@ declare const ParameterDrawerHeader: ({ title, iconBeforeTitle, children }: Para
1109
1112
 
1110
1113
  type ParameterGroupProps = React.HTMLAttributes<HTMLFieldSetElement> & {
1111
1114
  /** sets the legend value */
1112
- legend: string;
1115
+ legend: string | JSX.Element;
1113
1116
  /** (optional) - sets a disabled attribute at the field level disabling all child input fields and buttons */
1114
1117
  isDisabled?: boolean;
1115
1118
  children: ReactNode;
@@ -1117,7 +1120,7 @@ type ParameterGroupProps = React.HTMLAttributes<HTMLFieldSetElement> & {
1117
1120
  /** @example <ParameterGroup legend="legend name">{...some form input elements}</ParameterGroup> */
1118
1121
  declare const ParameterGroup: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLFieldSetElement> & {
1119
1122
  /** sets the legend value */
1120
- legend: string;
1123
+ legend: string | JSX.Element;
1121
1124
  /** (optional) - sets a disabled attribute at the field level disabling all child input fields and buttons */
1122
1125
  isDisabled?: boolean | undefined;
1123
1126
  children: ReactNode;
@@ -1136,7 +1139,6 @@ declare const ParameterInput: React$1.ForwardRefExoticComponent<CommonParameterP
1136
1139
  errorTestId?: string | undefined;
1137
1140
  captionTestId?: string | undefined;
1138
1141
  title?: string | undefined;
1139
- hasOverridingParams?: boolean | undefined;
1140
1142
  } & React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
1141
1143
  declare const ParameterInputInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
1142
1144
 
@@ -1242,7 +1244,6 @@ declare const ParameterRichText: React$1.ForwardRefExoticComponent<React$1.Input
1242
1244
  errorTestId?: string | undefined;
1243
1245
  captionTestId?: string | undefined;
1244
1246
  title?: string | undefined;
1245
- hasOverridingParams?: boolean | undefined;
1246
1247
  } & React$1.RefAttributes<HTMLTextAreaElement>>;
1247
1248
  declare const ParameterRichTextInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
1248
1249
 
@@ -1254,7 +1255,6 @@ declare const ParameterSelect: React$1.ForwardRefExoticComponent<CommonParameter
1254
1255
  errorTestId?: string | undefined;
1255
1256
  captionTestId?: string | undefined;
1256
1257
  title?: string | undefined;
1257
- hasOverridingParams?: boolean | undefined;
1258
1258
  } & CommonParameterSelectProps & React$1.InputHTMLAttributes<HTMLSelectElement> & React$1.RefAttributes<HTMLSelectElement>>;
1259
1259
  /** @example <ParameterSelectInner options={[{ label: 'option label', value: 0}]} />*/
1260
1260
  declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectProps, "label" | "id"> & React$1.RefAttributes<HTMLSelectElement>>;
@@ -1263,11 +1263,10 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
1263
1263
  * @example const { shellProps, innerProps } = extractParameterProps(props) */
1264
1264
  declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
1265
1265
  caption?: string | undefined;
1266
- menuItems?: React$1.ReactNode;
1266
+ menuItems?: ReactNode;
1267
1267
  errorTestId?: string | undefined;
1268
1268
  captionTestId?: string | undefined;
1269
1269
  title?: string | undefined;
1270
- hasOverridingParams?: boolean | undefined;
1271
1270
  }) => {
1272
1271
  shellProps: {
1273
1272
  id: string;
@@ -1277,33 +1276,37 @@ declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
1277
1276
  errorMessage: string | undefined;
1278
1277
  errorTestId: string | undefined;
1279
1278
  hiddenLabel: boolean | undefined;
1280
- labelLeadingIcon: React$1.ReactNode;
1281
- menuItems: React$1.ReactNode;
1279
+ labelLeadingIcon: ReactNode;
1280
+ menuItems: ReactNode;
1282
1281
  onManuallySetErrorMessage: ((message: string | undefined) => void) | undefined;
1283
1282
  title: string | undefined;
1284
- hasOverridingParams: boolean | undefined;
1283
+ hasOverriddenValue: boolean | undefined;
1284
+ onResetOverriddenValue: (() => void) | undefined;
1285
1285
  };
1286
1286
  innerProps: Omit<T & CommonParameterProps & {
1287
1287
  caption?: string | undefined;
1288
- menuItems?: React$1.ReactNode;
1288
+ menuItems?: ReactNode;
1289
1289
  errorTestId?: string | undefined;
1290
1290
  captionTestId?: string | undefined;
1291
1291
  title?: string | undefined;
1292
- hasOverridingParams?: boolean | undefined;
1293
- }, "caption" | "label" | "title" | "id" | "menuItems" | "errorMessage" | "errorTestId" | "captionTestId" | "hiddenLabel" | "onManuallySetErrorMessage" | "labelLeadingIcon" | "hasOverridingParams">;
1292
+ }, "caption" | "label" | "title" | "id" | "menuItems" | "errorMessage" | "errorTestId" | "captionTestId" | "hiddenLabel" | "onManuallySetErrorMessage" | "labelLeadingIcon" | "hasOverriddenValue" | "onResetOverriddenValue">;
1294
1293
  };
1295
1294
  type ParameterShellOverrideProps = {
1296
1295
  /** sets overriding parameters indicator */
1297
- hasOverridingParams?: boolean;
1296
+ hasOverriddenValue?: boolean;
1297
+ /** sets the function call of the overriding parameters button */
1298
+ onResetOverriddenValue?: () => void;
1298
1299
  };
1299
1300
  type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps;
1300
1301
  /**
1301
1302
  * Uniform Parameter shell component
1302
1303
  * @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
1303
1304
  */
1304
- declare const ParameterShell: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, hasOverridingParams, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1305
- declare const ParameterShellPlaceholder: ({ hasOverridingParams }: ParameterShellOverrideProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1306
- declare const ParameterOverrideMarker: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1305
+ declare const ParameterShell: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, hasOverriddenValue, onResetOverriddenValue, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1306
+ declare const ParameterShellPlaceholder: ({ children }: {
1307
+ children?: ReactNode;
1308
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1309
+ declare const ParameterOverrideMarker: (props: HTMLAttributes<HTMLButtonElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1307
1310
 
1308
1311
  type ParameterTextareaProps = CommonParameterInputProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
1309
1312
  /** @example <ParameterTextarea label="label value" id="my-textarea" /> */
@@ -1313,7 +1316,6 @@ declare const ParameterTextarea: React$1.ForwardRefExoticComponent<CommonParamet
1313
1316
  errorTestId?: string | undefined;
1314
1317
  captionTestId?: string | undefined;
1315
1318
  title?: string | undefined;
1316
- hasOverridingParams?: boolean | undefined;
1317
1319
  } & React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
1318
1320
  /** @example <ParameterTextareaInner /> */
1319
1321
  declare const ParameterTextareaInner: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
@@ -1327,6 +1329,24 @@ declare const ParameterToggle: React$1.ForwardRefExoticComponent<React$1.InputHT
1327
1329
  } & React$1.RefAttributes<HTMLInputElement>>;
1328
1330
  declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
1329
1331
 
1332
+ type PopoverProps = PopoverProps$1 & {
1333
+ /** sets the aria-controls and id value of the matching popover set */
1334
+ /** sets the icon color
1335
+ * @default 'green'
1336
+ */
1337
+ iconColor?: IconColor;
1338
+ /** sets the aria label attribute on the popover */
1339
+ ariaLabel?: string;
1340
+ /** sets the title attr and text of the button */
1341
+ buttonText: string;
1342
+ /** sets the placement of the popover
1343
+ * @default 'bottom'
1344
+ */
1345
+ placement?: PopoverInitialState['placement'];
1346
+ children: ReactNode;
1347
+ };
1348
+ declare const Popover: ({ iconColor, buttonText, ariaLabel, placement, children, }: PopoverProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1349
+
1330
1350
  declare function ShortcutContext({ children }: {
1331
1351
  children: React__default.ReactNode;
1332
1352
  }): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
@@ -1704,4 +1724,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
1704
1724
  };
1705
1725
  declare const StatusBullet: ({ status, hideText, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1706
1726
 
1707
- export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, 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, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, LottieFile, LottieFileKeyProps, LottieFileProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, 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, Tooltip, TooltipProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentDrawerRenderer, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useParameterShell, useShortcut };
1727
+ export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, 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, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, LottieFile, LottieFileKeyProps, LottieFileProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, Popover, PopoverProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, 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, Tooltip, TooltipProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentDrawerRenderer, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useParameterShell, useShortcut };