@uniformdev/design-system 19.151.2-alpha.16 → 19.153.1-alpha.1

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 CHANGED
@@ -303,31 +303,30 @@ import { css as css2 } from "@emotion/react";
303
303
  // src/styles/functionalColors.styles.ts
304
304
  import { css } from "@emotion/react";
305
305
  var functionalColors = css`
306
- --caution-icon: rgb(250, 204, 21);
307
- --caution-title: rgb(133, 77, 14);
308
- --caution-container: rgb(254, 252, 232);
306
+ --utility-caution-icon: #facc15;
307
+ --utility-caution-title: #854d0e;
308
+ --utility-caution-container: #fefce8;
309
309
 
310
- --danger-icon: rgb(248, 113, 113);
311
- --danger-title: rgb(153, 27, 27);
312
- --danger-container: rgb(254, 242, 242);
310
+ --utility-danger-icon: #f87171;
311
+ --utility-danger-title: #991b1b;
312
+ --utility-danger-container: #fef2f2;
313
313
 
314
- --info-icon: rgb(96, 165, 250);
315
- --info-title: rgb(30, 64, 175);
316
- --info-container: rgb(239, 246, 255);
314
+ --utility-info-icon: #60a5fa;
315
+ --utility-info-title: #1e40af;
316
+ --utility-info-container: #eff6ff;
317
317
 
318
- --note-icon: var(--gray-400);
319
- --note-title: var(--gray-800);
320
- --note-container: var(--gray-50);
318
+ --utility-note-icon: var(--gray-400);
319
+ --utility-note-title: var(--gray-800);
320
+ --utility-note-container: var(--gray-50);
321
321
 
322
- --success-icon: rgb(74, 222, 128);
323
- --success-title: rgb(22, 101, 52);
324
- --success-container: rgb(240, 253, 250);
322
+ --utility-success-icon: #4ade80;
323
+ --utility-success-title: #166534;
324
+ --utility-success-container: #f0fdfa;
325
325
  `;
326
326
 
327
327
  // src/components/Callout/Callout.styles.ts
328
328
  var calloutContainer = css2`
329
329
  ${functionalColors}
330
-
331
330
  font-size: var(--fs-sm);
332
331
  border-radius: var(--rounded-base);
333
332
  padding: var(--spacing-base);
@@ -495,11 +494,11 @@ var calloutTypeDataMap = {
495
494
  color: var(--typography-base);
496
495
  `,
497
496
  iconColor: css3`
498
- color: var(--caution-icon);
497
+ color: var(--utility-caution-icon);
499
498
  `,
500
499
  containerStyles: css3`
501
- color: var(--caution-title);
502
- background-color: var(--caution-container);
500
+ color: var(--utility-caution-title);
501
+ background-color: var(--utility-caution-container);
503
502
  `
504
503
  },
505
504
  danger: {
@@ -508,11 +507,11 @@ var calloutTypeDataMap = {
508
507
  color: var(--typography-base);
509
508
  `,
510
509
  iconColor: css3`
511
- color: var(--danger-icon);
510
+ color: var(--utility-danger-icon);
512
511
  `,
513
512
  containerStyles: css3`
514
- color: var(--danger-title);
515
- background-color: var(--danger-container);
513
+ color: var(--utility-danger-title);
514
+ background-color: var(--utility-danger-container);
516
515
  `
517
516
  },
518
517
  error: {
@@ -521,11 +520,11 @@ var calloutTypeDataMap = {
521
520
  color: var(--typography-base);
522
521
  `,
523
522
  iconColor: css3`
524
- color: var(--danger-icon);
523
+ color: var(--utility-danger-icon);
525
524
  `,
526
525
  containerStyles: css3`
527
- color: var(--danger-title);
528
- background-color: var(--danger-container);
526
+ color: var(--utility-danger-title);
527
+ background-color: var(--utility-danger-container);
529
528
  `
530
529
  },
531
530
  info: {
@@ -534,11 +533,11 @@ var calloutTypeDataMap = {
534
533
  color: var(--typography-base);
535
534
  `,
536
535
  iconColor: css3`
537
- color: var(--info-icon);
536
+ color: var(--utility-info-icon);
538
537
  `,
539
538
  containerStyles: css3`
540
- color: var(--info-title);
541
- background-color: var(--info-container);
539
+ color: var(--utility-info-title);
540
+ background-color: var(--utility-info-container);
542
541
  `
543
542
  },
544
543
  note: {
@@ -547,11 +546,11 @@ var calloutTypeDataMap = {
547
546
  color: var(--typography-base);
548
547
  `,
549
548
  iconColor: css3`
550
- color: var(--note-icon);
549
+ color: var(--utility-note-icon);
551
550
  `,
552
551
  containerStyles: css3`
553
- color: var(--note-title);
554
- background-color: var(--note-container);
552
+ color: var(--utility-note-title);
553
+ background-color: var(--utility-note-container);
555
554
  `
556
555
  },
557
556
  success: {
@@ -560,11 +559,11 @@ var calloutTypeDataMap = {
560
559
  color: var(--typography-base);
561
560
  `,
562
561
  iconColor: css3`
563
- color: var(--success-icon);
562
+ color: var(--utility-success-icon);
564
563
  `,
565
564
  containerStyles: css3`
566
- color: var(--success-title);
567
- background-color: var(--success-container);
565
+ color: var(--utility-success-title);
566
+ background-color: var(--utility-success-container);
568
567
  `
569
568
  },
570
569
  tip: {
@@ -573,11 +572,11 @@ var calloutTypeDataMap = {
573
572
  color: var(--typography-base);
574
573
  `,
575
574
  iconColor: css3`
576
- color: var(--success-icon);
575
+ color: var(--utility-success-icon);
577
576
  `,
578
577
  containerStyles: css3`
579
- color: var(--success-title);
580
- background-color: var(--success-container);
578
+ color: var(--utility-success-title);
579
+ background-color: var(--utility-success-container);
581
580
  `
582
581
  }
583
582
  };
@@ -11659,8 +11658,8 @@ import { css as css21 } from "@emotion/react";
11659
11658
  var bannerStyles = css21`
11660
11659
  ${functionalColors}
11661
11660
 
11662
- --border-color: var(--info-icon);
11663
- --background-color: var(--info-container);
11661
+ --border-color: var(--utility-caution-icon);
11662
+ --background-color: var(--utility-info-container);
11664
11663
 
11665
11664
  display: flex;
11666
11665
  gap: var(--spacing-sm);
@@ -11671,23 +11670,23 @@ var bannerStyles = css21`
11671
11670
  padding: var(--spacing-sm);
11672
11671
 
11673
11672
  &[data-type='caution'] {
11674
- --border-color: var(--caution-icon);
11675
- --background-color: var(--caution-container);
11673
+ --border-color: var(--utility-caution-icon);
11674
+ --background-color: var(--utility-caution-container);
11676
11675
  }
11677
11676
 
11678
11677
  &[data-type='danger'] {
11679
- --border-color: var(--danger-icon);
11680
- --background-color: var(--danger-container);
11678
+ --border-color: var(--utility-danger-icon);
11679
+ --background-color: var(--utility-danger-container);
11681
11680
  }
11682
11681
 
11683
11682
  &[data-type='note'] {
11684
- --border-color: var(--note-icon);
11685
- --background-color: var(--note-container);
11683
+ --border-color: var(--utility-note-icon);
11684
+ --background-color: var(--utility-note-container);
11686
11685
  }
11687
11686
 
11688
11687
  &[data-type='success'] {
11689
- --border-color: var(--success-icon);
11690
- --background-color: var(--success-container);
11688
+ --border-color: var(--utility-success-icon);
11689
+ --background-color: var(--utility-success-container);
11691
11690
  }
11692
11691
  `;
11693
11692
  var bannerAnimatedStyles = css21`
@@ -14660,6 +14659,7 @@ var InputToggle = React13.forwardRef(
14660
14659
  errorMessage,
14661
14660
  warningMessage,
14662
14661
  testId,
14662
+ showLabel = true,
14663
14663
  fontWeight = "normal",
14664
14664
  ...props
14665
14665
  }, ref) => {
@@ -14683,10 +14683,11 @@ var InputToggle = React13.forwardRef(
14683
14683
  checked,
14684
14684
  name,
14685
14685
  disabled: disabled2,
14686
+ "aria-label": !showLabel && typeof label === "string" ? label : void 0,
14686
14687
  ...props
14687
14688
  }
14688
14689
  ),
14689
- /* @__PURE__ */ jsx57("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
14690
+ !showLabel ? null : /* @__PURE__ */ jsx57("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
14690
14691
  caption || errorMessage ? /* @__PURE__ */ jsx57("span", { css: inputToggleMessageContainer, children: /* @__PURE__ */ jsx57(
14691
14692
  FieldMessage,
14692
14693
  {
@@ -21236,10 +21237,10 @@ var toastContainerStyles = css97`
21236
21237
  ${functionalColors}
21237
21238
 
21238
21239
  --toastify-color-light: white;
21239
- --toastify-color-info: var(--info-icon);
21240
- --toastify-color-success: var(--success-icon);
21241
- --toastify-color-warning: var(--caution-icon);
21242
- --toastify-color-error: var(--danger-icon);
21240
+ --toastify-color-info: var(--utility-caution-icon);
21241
+ --toastify-color-success: var(--utility-success-icon);
21242
+ --toastify-color-warning: var(--utility-caution-icon);
21243
+ --toastify-color-error: var(--utility-danger-icon);
21243
21244
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
21244
21245
  --toastify-icon-color-info: var(--toastify-color-info);
21245
21246
  --toastify-icon-color-success: var(--toastify-color-success);
@@ -21456,12 +21457,20 @@ var toastContainerStyles = css97`
21456
21457
 
21457
21458
  // src/components/Toast/Toast.tsx
21458
21459
  import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
21459
- var ToastContainer = ({ limit = 4 }) => {
21460
+ var ToastContainer = ({ limit = 4, autoCloseDelay = "normal" }) => {
21461
+ const duration = {
21462
+ normal: 5e3,
21463
+ // 5 seconds
21464
+ medium: 8e3,
21465
+ // 8 seconds
21466
+ long: 1e4
21467
+ // 10 seconds
21468
+ };
21460
21469
  return /* @__PURE__ */ jsx125(
21461
21470
  ToastifyContainer,
21462
21471
  {
21463
21472
  css: toastContainerStyles,
21464
- autoClose: 1e4,
21473
+ autoClose: duration[autoCloseDelay],
21465
21474
  limit,
21466
21475
  theme: "light",
21467
21476
  position: "bottom-right",
@@ -21822,6 +21831,7 @@ export {
21822
21831
  useOutsideClick,
21823
21832
  useParameterShell,
21824
21833
  useShortcut,
21834
+ functionalColors as utilityColors,
21825
21835
  warningIcon,
21826
21836
  yesNoIcon
21827
21837
  };
package/dist/index.d.mts CHANGED
@@ -128,6 +128,29 @@ declare const inputSelect: _emotion_react.SerializedStyles;
128
128
 
129
129
  declare const accessibleHidden: _emotion_react.SerializedStyles;
130
130
 
131
+ /** Uniform utility colors
132
+ * exports the following css variables:
133
+ * --utility-caution-icon: #facc15;
134
+ * --utility-caution-title: #854d0e;
135
+ * --utility-caution-container: #fefce8;
136
+ * --utility-danger-icon: #f87171;
137
+ * --utility-danger-title: #991b1b;
138
+ * --utility-danger-container: #fef2f2;
139
+ * --utility-info-icon: #60a5fa;
140
+ * --utility-info-title: #1e40af;
141
+ * --utility-info-container: #eff6ff;
142
+ * --utility-note-icon: var(--gray-400);
143
+ * --utility-note-title: var(--gray-800);
144
+ * --utility-note-container: var(--gray-50);
145
+ * --utility-success-icon: #4ade80;
146
+ * --utility-success-title: #166534;
147
+ * --utility-success-container: #f0fdfa;
148
+ * @returns { utilityColors } css utility colors
149
+ * @example directly on the component <div css={utilityColors}></div>
150
+ * @example css-in-js my-component { ${utilityColors}}
151
+ */
152
+ declare const functionalColors: _emotion_react.SerializedStyles;
153
+
131
154
  /**
132
155
  * growSubtle animation
133
156
  * @description - increases the size of an element from scale(1) - scale(1.15) and back down to scale(1) using transform: scale(1)
@@ -22090,6 +22113,8 @@ type InputToggleProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
22090
22113
  type: 'radio' | 'checkbox';
22091
22114
  /** sets the name value of the radio/checkbox input */
22092
22115
  name: string;
22116
+ /** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
22117
+ showLabel?: boolean;
22093
22118
  /** (optional) sets the disabled state */
22094
22119
  disabled?: boolean;
22095
22120
  /** (optional) sets the checked state of the input */
@@ -22118,6 +22143,8 @@ declare const InputToggle: React$1.ForwardRefExoticComponent<React$1.InputHTMLAt
22118
22143
  type: 'radio' | 'checkbox';
22119
22144
  /** sets the name value of the radio/checkbox input */
22120
22145
  name: string;
22146
+ /** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
22147
+ showLabel?: boolean | undefined;
22121
22148
  /** (optional) sets the disabled state */
22122
22149
  disabled?: boolean | undefined;
22123
22150
  /** (optional) sets the checked state of the input */
@@ -23466,14 +23493,18 @@ declare const TileText: ({ as, children, ...props }: TileTitleProps) => _emotion
23466
23493
 
23467
23494
  type ToastContainerProps = {
23468
23495
  limit?: number;
23496
+ /** sets the auto close delay in seconds normal: 5 seconds, medium: 8 seconds, long: 10 seconds
23497
+ * @default 'normal'
23498
+ */
23499
+ autoCloseDelay?: 'normal' | 'medium' | 'long';
23469
23500
  };
23470
23501
  /**
23471
23502
  * A component to render toasts in your app. This component is supposed to be used just once in your app. Typically inside _app.tsx
23472
- * @example <App><ToastContainer /></App>
23503
+ * @example <App><ToastContainer autoCloseDelay="normal" /></App>
23473
23504
  *
23474
23505
  * @deprecated This component is in beta, and might receive breaking changes in minor releases!
23475
23506
  */
23476
- declare const ToastContainer: ({ limit }: ToastContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23507
+ declare const ToastContainer: ({ limit, autoCloseDelay }: ToastContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23477
23508
 
23478
23509
  /** Available heading weights e.g. 1 - 6 */
23479
23510
  type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
@@ -23619,4 +23650,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
23619
23650
  };
23620
23651
  declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23621
23652
 
23622
- export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, type ShortcutReference, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformComponentIcon, uniformComponentPatternIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
23653
+ export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, type ShortcutReference, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformComponentIcon, uniformComponentPatternIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon };
package/dist/index.d.ts CHANGED
@@ -128,6 +128,29 @@ declare const inputSelect: _emotion_react.SerializedStyles;
128
128
 
129
129
  declare const accessibleHidden: _emotion_react.SerializedStyles;
130
130
 
131
+ /** Uniform utility colors
132
+ * exports the following css variables:
133
+ * --utility-caution-icon: #facc15;
134
+ * --utility-caution-title: #854d0e;
135
+ * --utility-caution-container: #fefce8;
136
+ * --utility-danger-icon: #f87171;
137
+ * --utility-danger-title: #991b1b;
138
+ * --utility-danger-container: #fef2f2;
139
+ * --utility-info-icon: #60a5fa;
140
+ * --utility-info-title: #1e40af;
141
+ * --utility-info-container: #eff6ff;
142
+ * --utility-note-icon: var(--gray-400);
143
+ * --utility-note-title: var(--gray-800);
144
+ * --utility-note-container: var(--gray-50);
145
+ * --utility-success-icon: #4ade80;
146
+ * --utility-success-title: #166534;
147
+ * --utility-success-container: #f0fdfa;
148
+ * @returns { utilityColors } css utility colors
149
+ * @example directly on the component <div css={utilityColors}></div>
150
+ * @example css-in-js my-component { ${utilityColors}}
151
+ */
152
+ declare const functionalColors: _emotion_react.SerializedStyles;
153
+
131
154
  /**
132
155
  * growSubtle animation
133
156
  * @description - increases the size of an element from scale(1) - scale(1.15) and back down to scale(1) using transform: scale(1)
@@ -22090,6 +22113,8 @@ type InputToggleProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
22090
22113
  type: 'radio' | 'checkbox';
22091
22114
  /** sets the name value of the radio/checkbox input */
22092
22115
  name: string;
22116
+ /** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
22117
+ showLabel?: boolean;
22093
22118
  /** (optional) sets the disabled state */
22094
22119
  disabled?: boolean;
22095
22120
  /** (optional) sets the checked state of the input */
@@ -22118,6 +22143,8 @@ declare const InputToggle: React$1.ForwardRefExoticComponent<React$1.InputHTMLAt
22118
22143
  type: 'radio' | 'checkbox';
22119
22144
  /** sets the name value of the radio/checkbox input */
22120
22145
  name: string;
22146
+ /** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
22147
+ showLabel?: boolean | undefined;
22121
22148
  /** (optional) sets the disabled state */
22122
22149
  disabled?: boolean | undefined;
22123
22150
  /** (optional) sets the checked state of the input */
@@ -23466,14 +23493,18 @@ declare const TileText: ({ as, children, ...props }: TileTitleProps) => _emotion
23466
23493
 
23467
23494
  type ToastContainerProps = {
23468
23495
  limit?: number;
23496
+ /** sets the auto close delay in seconds normal: 5 seconds, medium: 8 seconds, long: 10 seconds
23497
+ * @default 'normal'
23498
+ */
23499
+ autoCloseDelay?: 'normal' | 'medium' | 'long';
23469
23500
  };
23470
23501
  /**
23471
23502
  * A component to render toasts in your app. This component is supposed to be used just once in your app. Typically inside _app.tsx
23472
- * @example <App><ToastContainer /></App>
23503
+ * @example <App><ToastContainer autoCloseDelay="normal" /></App>
23473
23504
  *
23474
23505
  * @deprecated This component is in beta, and might receive breaking changes in minor releases!
23475
23506
  */
23476
- declare const ToastContainer: ({ limit }: ToastContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23507
+ declare const ToastContainer: ({ limit, autoCloseDelay }: ToastContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23477
23508
 
23478
23509
  /** Available heading weights e.g. 1 - 6 */
23479
23510
  type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
@@ -23619,4 +23650,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
23619
23650
  };
23620
23651
  declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23621
23652
 
23622
- export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, type ShortcutReference, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformComponentIcon, uniformComponentPatternIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
23653
+ export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, type ShortcutReference, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformComponentIcon, uniformComponentPatternIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon };
package/dist/index.js CHANGED
@@ -1586,6 +1586,7 @@ __export(src_exports, {
1586
1586
  useOutsideClick: () => useOutsideClick,
1587
1587
  useParameterShell: () => useParameterShell,
1588
1588
  useShortcut: () => useShortcut,
1589
+ utilityColors: () => functionalColors,
1589
1590
  warningIcon: () => warningIcon,
1590
1591
  yesNoIcon: () => yesNoIcon
1591
1592
  });
@@ -1902,31 +1903,30 @@ var import_react3 = require("@emotion/react");
1902
1903
  init_emotion_jsx_shim();
1903
1904
  var import_react2 = require("@emotion/react");
1904
1905
  var functionalColors = import_react2.css`
1905
- --caution-icon: rgb(250, 204, 21);
1906
- --caution-title: rgb(133, 77, 14);
1907
- --caution-container: rgb(254, 252, 232);
1906
+ --utility-caution-icon: #facc15;
1907
+ --utility-caution-title: #854d0e;
1908
+ --utility-caution-container: #fefce8;
1908
1909
 
1909
- --danger-icon: rgb(248, 113, 113);
1910
- --danger-title: rgb(153, 27, 27);
1911
- --danger-container: rgb(254, 242, 242);
1910
+ --utility-danger-icon: #f87171;
1911
+ --utility-danger-title: #991b1b;
1912
+ --utility-danger-container: #fef2f2;
1912
1913
 
1913
- --info-icon: rgb(96, 165, 250);
1914
- --info-title: rgb(30, 64, 175);
1915
- --info-container: rgb(239, 246, 255);
1914
+ --utility-info-icon: #60a5fa;
1915
+ --utility-info-title: #1e40af;
1916
+ --utility-info-container: #eff6ff;
1916
1917
 
1917
- --note-icon: var(--gray-400);
1918
- --note-title: var(--gray-800);
1919
- --note-container: var(--gray-50);
1918
+ --utility-note-icon: var(--gray-400);
1919
+ --utility-note-title: var(--gray-800);
1920
+ --utility-note-container: var(--gray-50);
1920
1921
 
1921
- --success-icon: rgb(74, 222, 128);
1922
- --success-title: rgb(22, 101, 52);
1923
- --success-container: rgb(240, 253, 250);
1922
+ --utility-success-icon: #4ade80;
1923
+ --utility-success-title: #166534;
1924
+ --utility-success-container: #f0fdfa;
1924
1925
  `;
1925
1926
 
1926
1927
  // src/components/Callout/Callout.styles.ts
1927
1928
  var calloutContainer = import_react3.css`
1928
1929
  ${functionalColors}
1929
-
1930
1930
  font-size: var(--fs-sm);
1931
1931
  border-radius: var(--rounded-base);
1932
1932
  padding: var(--spacing-base);
@@ -2095,11 +2095,11 @@ var calloutTypeDataMap = {
2095
2095
  color: var(--typography-base);
2096
2096
  `,
2097
2097
  iconColor: import_react4.css`
2098
- color: var(--caution-icon);
2098
+ color: var(--utility-caution-icon);
2099
2099
  `,
2100
2100
  containerStyles: import_react4.css`
2101
- color: var(--caution-title);
2102
- background-color: var(--caution-container);
2101
+ color: var(--utility-caution-title);
2102
+ background-color: var(--utility-caution-container);
2103
2103
  `
2104
2104
  },
2105
2105
  danger: {
@@ -2108,11 +2108,11 @@ var calloutTypeDataMap = {
2108
2108
  color: var(--typography-base);
2109
2109
  `,
2110
2110
  iconColor: import_react4.css`
2111
- color: var(--danger-icon);
2111
+ color: var(--utility-danger-icon);
2112
2112
  `,
2113
2113
  containerStyles: import_react4.css`
2114
- color: var(--danger-title);
2115
- background-color: var(--danger-container);
2114
+ color: var(--utility-danger-title);
2115
+ background-color: var(--utility-danger-container);
2116
2116
  `
2117
2117
  },
2118
2118
  error: {
@@ -2121,11 +2121,11 @@ var calloutTypeDataMap = {
2121
2121
  color: var(--typography-base);
2122
2122
  `,
2123
2123
  iconColor: import_react4.css`
2124
- color: var(--danger-icon);
2124
+ color: var(--utility-danger-icon);
2125
2125
  `,
2126
2126
  containerStyles: import_react4.css`
2127
- color: var(--danger-title);
2128
- background-color: var(--danger-container);
2127
+ color: var(--utility-danger-title);
2128
+ background-color: var(--utility-danger-container);
2129
2129
  `
2130
2130
  },
2131
2131
  info: {
@@ -2134,11 +2134,11 @@ var calloutTypeDataMap = {
2134
2134
  color: var(--typography-base);
2135
2135
  `,
2136
2136
  iconColor: import_react4.css`
2137
- color: var(--info-icon);
2137
+ color: var(--utility-info-icon);
2138
2138
  `,
2139
2139
  containerStyles: import_react4.css`
2140
- color: var(--info-title);
2141
- background-color: var(--info-container);
2140
+ color: var(--utility-info-title);
2141
+ background-color: var(--utility-info-container);
2142
2142
  `
2143
2143
  },
2144
2144
  note: {
@@ -2147,11 +2147,11 @@ var calloutTypeDataMap = {
2147
2147
  color: var(--typography-base);
2148
2148
  `,
2149
2149
  iconColor: import_react4.css`
2150
- color: var(--note-icon);
2150
+ color: var(--utility-note-icon);
2151
2151
  `,
2152
2152
  containerStyles: import_react4.css`
2153
- color: var(--note-title);
2154
- background-color: var(--note-container);
2153
+ color: var(--utility-note-title);
2154
+ background-color: var(--utility-note-container);
2155
2155
  `
2156
2156
  },
2157
2157
  success: {
@@ -2160,11 +2160,11 @@ var calloutTypeDataMap = {
2160
2160
  color: var(--typography-base);
2161
2161
  `,
2162
2162
  iconColor: import_react4.css`
2163
- color: var(--success-icon);
2163
+ color: var(--utility-success-icon);
2164
2164
  `,
2165
2165
  containerStyles: import_react4.css`
2166
- color: var(--success-title);
2167
- background-color: var(--success-container);
2166
+ color: var(--utility-success-title);
2167
+ background-color: var(--utility-success-container);
2168
2168
  `
2169
2169
  },
2170
2170
  tip: {
@@ -2173,11 +2173,11 @@ var calloutTypeDataMap = {
2173
2173
  color: var(--typography-base);
2174
2174
  `,
2175
2175
  iconColor: import_react4.css`
2176
- color: var(--success-icon);
2176
+ color: var(--utility-success-icon);
2177
2177
  `,
2178
2178
  containerStyles: import_react4.css`
2179
- color: var(--success-title);
2180
- background-color: var(--success-container);
2179
+ color: var(--utility-success-title);
2180
+ background-color: var(--utility-success-container);
2181
2181
  `
2182
2182
  }
2183
2183
  };
@@ -13320,8 +13320,8 @@ var import_react28 = require("@emotion/react");
13320
13320
  var bannerStyles = import_react28.css`
13321
13321
  ${functionalColors}
13322
13322
 
13323
- --border-color: var(--info-icon);
13324
- --background-color: var(--info-container);
13323
+ --border-color: var(--utility-caution-icon);
13324
+ --background-color: var(--utility-info-container);
13325
13325
 
13326
13326
  display: flex;
13327
13327
  gap: var(--spacing-sm);
@@ -13332,23 +13332,23 @@ var bannerStyles = import_react28.css`
13332
13332
  padding: var(--spacing-sm);
13333
13333
 
13334
13334
  &[data-type='caution'] {
13335
- --border-color: var(--caution-icon);
13336
- --background-color: var(--caution-container);
13335
+ --border-color: var(--utility-caution-icon);
13336
+ --background-color: var(--utility-caution-container);
13337
13337
  }
13338
13338
 
13339
13339
  &[data-type='danger'] {
13340
- --border-color: var(--danger-icon);
13341
- --background-color: var(--danger-container);
13340
+ --border-color: var(--utility-danger-icon);
13341
+ --background-color: var(--utility-danger-container);
13342
13342
  }
13343
13343
 
13344
13344
  &[data-type='note'] {
13345
- --border-color: var(--note-icon);
13346
- --background-color: var(--note-container);
13345
+ --border-color: var(--utility-note-icon);
13346
+ --background-color: var(--utility-note-container);
13347
13347
  }
13348
13348
 
13349
13349
  &[data-type='success'] {
13350
- --border-color: var(--success-icon);
13351
- --background-color: var(--success-container);
13350
+ --border-color: var(--utility-success-icon);
13351
+ --background-color: var(--utility-success-container);
13352
13352
  }
13353
13353
  `;
13354
13354
  var bannerAnimatedStyles = import_react28.css`
@@ -16397,6 +16397,7 @@ var InputToggle = React13.forwardRef(
16397
16397
  errorMessage,
16398
16398
  warningMessage,
16399
16399
  testId,
16400
+ showLabel = true,
16400
16401
  fontWeight = "normal",
16401
16402
  ...props
16402
16403
  }, ref) => {
@@ -16420,10 +16421,11 @@ var InputToggle = React13.forwardRef(
16420
16421
  checked,
16421
16422
  name,
16422
16423
  disabled: disabled2,
16424
+ "aria-label": !showLabel && typeof label === "string" ? label : void 0,
16423
16425
  ...props
16424
16426
  }
16425
16427
  ),
16426
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
16428
+ !showLabel ? null : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
16427
16429
  caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { css: inputToggleMessageContainer, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
16428
16430
  FieldMessage,
16429
16431
  {
@@ -23073,10 +23075,10 @@ var toastContainerStyles = import_react149.css`
23073
23075
  ${functionalColors}
23074
23076
 
23075
23077
  --toastify-color-light: white;
23076
- --toastify-color-info: var(--info-icon);
23077
- --toastify-color-success: var(--success-icon);
23078
- --toastify-color-warning: var(--caution-icon);
23079
- --toastify-color-error: var(--danger-icon);
23078
+ --toastify-color-info: var(--utility-caution-icon);
23079
+ --toastify-color-success: var(--utility-success-icon);
23080
+ --toastify-color-warning: var(--utility-caution-icon);
23081
+ --toastify-color-error: var(--utility-danger-icon);
23080
23082
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
23081
23083
  --toastify-icon-color-info: var(--toastify-color-info);
23082
23084
  --toastify-icon-color-success: var(--toastify-color-success);
@@ -23293,12 +23295,20 @@ var toastContainerStyles = import_react149.css`
23293
23295
 
23294
23296
  // src/components/Toast/Toast.tsx
23295
23297
  var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
23296
- var ToastContainer = ({ limit = 4 }) => {
23298
+ var ToastContainer = ({ limit = 4, autoCloseDelay = "normal" }) => {
23299
+ const duration = {
23300
+ normal: 5e3,
23301
+ // 5 seconds
23302
+ medium: 8e3,
23303
+ // 8 seconds
23304
+ long: 1e4
23305
+ // 10 seconds
23306
+ };
23297
23307
  return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23298
23308
  import_react_toastify.ToastContainer,
23299
23309
  {
23300
23310
  css: toastContainerStyles,
23301
- autoClose: 1e4,
23311
+ autoClose: duration[autoCloseDelay],
23302
23312
  limit,
23303
23313
  theme: "light",
23304
23314
  position: "bottom-right",
@@ -23664,6 +23674,7 @@ var StatusBullet = ({
23664
23674
  useOutsideClick,
23665
23675
  useParameterShell,
23666
23676
  useShortcut,
23677
+ utilityColors,
23667
23678
  warningIcon,
23668
23679
  yesNoIcon
23669
23680
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.151.2-alpha.16+eb158bfedd",
3
+ "version": "19.153.1-alpha.1+f8537157ec",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "@storybook/react": "6.5.16",
25
25
  "@types/react": "18.2.40",
26
26
  "@types/react-dom": "18.2.17",
27
- "@uniformdev/canvas": "^19.151.2-alpha.16+eb158bfedd",
28
- "@uniformdev/richtext": "^19.151.2-alpha.16+eb158bfedd",
27
+ "@uniformdev/canvas": "^19.153.1-alpha.1+f8537157ec",
28
+ "@uniformdev/richtext": "^19.153.1-alpha.1+f8537157ec",
29
29
  "autoprefixer": "10.4.16",
30
30
  "hygen": "6.2.11",
31
31
  "postcss": "8.4.38",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "eb158bfeddbe40a7d4aa98b489345e76aaf2930b"
75
+ "gitHead": "f8537157ec48cfc9eeeafb95a733eb987e246427"
76
76
  }