@uniformdev/design-system 19.162.2-alpha.11 → 19.165.0

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
@@ -12707,9 +12707,9 @@ var InfoIcon2 = css31`
12707
12707
 
12708
12708
  // src/components/Input/InfoMessage.tsx
12709
12709
  import { jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
12710
- var InfoMessage = ({ message, testId, ...props }) => {
12710
+ var InfoMessage = ({ message, testId, icon = MdInfoOutline, ...props }) => {
12711
12711
  return message ? /* @__PURE__ */ jsxs19("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
12712
- /* @__PURE__ */ jsx34("span", { children: /* @__PURE__ */ jsx34(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
12712
+ /* @__PURE__ */ jsx34("span", { children: /* @__PURE__ */ jsx34(Icon, { css: InfoIcon2, icon, size: "1rem", iconColor: "currentColor" }) }),
12713
12713
  message
12714
12714
  ] }) : null;
12715
12715
  };
@@ -13355,6 +13355,10 @@ var InputKeywordSearch = forwardRef8(
13355
13355
  minHeight: 0,
13356
13356
  padding: "var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-base)",
13357
13357
  fontSize: "var(--fs-sm)"
13358
+ } : compact === "sm" ? {
13359
+ minHeight: "40px",
13360
+ padding: "var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-base)",
13361
+ fontSize: "var(--fs-sm)"
13358
13362
  } : compact ? {
13359
13363
  padding: "var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base)",
13360
13364
  fontSize: "var(--fs-sm)"
@@ -15219,6 +15223,7 @@ var DashedBox = ({
15219
15223
 
15220
15224
  // src/components/DateTimePicker/DateTimePicker.tsx
15221
15225
  import { CalendarDate as CalendarDate3, parseDate as parseDate2, parseTime as parseTime2, Time as Time2 } from "@internationalized/date";
15226
+ import { CgCalendar } from "@react-icons/all-files/cg/CgCalendar";
15222
15227
  import { createContext as createContext2, useCallback as useCallback4, useContext as useContext3, useEffect as useEffect5, useMemo, useState as useState6 } from "react";
15223
15228
  import { Popover as Popover2, PopoverDisclosure, usePopoverState } from "reakit/Popover";
15224
15229
 
@@ -15434,6 +15439,7 @@ function useDateTimePickerContext() {
15434
15439
  var DateTimePicker = ({
15435
15440
  id,
15436
15441
  label,
15442
+ triggerIcon = CgCalendar,
15437
15443
  value,
15438
15444
  minVisible,
15439
15445
  maxVisible,
@@ -15543,7 +15549,7 @@ var DateTimePicker = ({
15543
15549
  children: "clear"
15544
15550
  }
15545
15551
  ),
15546
- /* @__PURE__ */ jsx66(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ jsx66(Icon, { icon: "calendar", iconColor: "currentColor" }) })
15552
+ /* @__PURE__ */ jsx66(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ jsx66(Icon, { icon: triggerIcon, iconColor: "currentColor" }) })
15547
15553
  ]
15548
15554
  }
15549
15555
  ),
@@ -21718,7 +21724,7 @@ var Skeleton = ({
21718
21724
  );
21719
21725
 
21720
21726
  // src/components/Switch/Switch.tsx
21721
- import * as React24 from "react";
21727
+ import { forwardRef as forwardRef24 } from "react";
21722
21728
 
21723
21729
  // src/components/Switch/Switch.styles.ts
21724
21730
  import { css as css100 } from "@emotion/react";
@@ -21731,7 +21737,7 @@ var SwitchInputContainer = css100`
21731
21737
  vertical-align: middle;
21732
21738
  user-select: none;
21733
21739
  `;
21734
- var SwitchInput = css100`
21740
+ var SwitchInput = (size) => css100`
21735
21741
  appearance: none;
21736
21742
  border-radius: var(--rounded-full);
21737
21743
  background-color: var(--white);
@@ -21739,15 +21745,16 @@ var SwitchInput = css100`
21739
21745
  cursor: pointer;
21740
21746
  position: absolute;
21741
21747
  display: block;
21742
- width: var(--spacing-md);
21743
- height: var(--spacing-md);
21748
+ width: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
21749
+ height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
21750
+ margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
21744
21751
  transition: transform var(--duration-fast) var(--timing-ease-out),
21745
21752
  background-color var(--duration-fast) var(--timing-ease-out),
21746
21753
  background-image var(--duration-fast) var(--timing-ease-out);
21747
21754
  z-index: var(--z-10);
21748
21755
 
21749
21756
  &:focus {
21750
- outline: 3px solid var(--gray-800);
21757
+ outline: 2px solid var(--gray-800);
21751
21758
  outline-offset: 2px;
21752
21759
  }
21753
21760
 
@@ -21777,12 +21784,12 @@ var SwitchInputDisabled = css100`
21777
21784
  cursor: not-allowed;
21778
21785
  }
21779
21786
  `;
21780
- var SwitchInputLabel = css100`
21787
+ var SwitchInputLabel = (size) => css100`
21781
21788
  align-items: center;
21782
21789
  color: var(--typography-base);
21783
21790
  display: inline-flex;
21784
21791
  line-height: 1.25;
21785
- padding-inline: var(--spacing-2xl) 0;
21792
+ padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
21786
21793
 
21787
21794
  &:before {
21788
21795
  border-radius: var(--rounded-full);
@@ -21791,40 +21798,47 @@ var SwitchInputLabel = css100`
21791
21798
  cursor: pointer;
21792
21799
  display: block;
21793
21800
  overflow: hidden;
21794
- width: var(--spacing-xl);
21795
- height: var(--spacing-md);
21801
+ width: ${size === "sm" ? "var(--spacing-lg)" : "var(--spacing-xl)"};
21802
+ height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
21803
+ margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
21796
21804
  position: absolute;
21797
21805
  left: 0;
21798
21806
  top: 0;
21799
21807
  }
21800
21808
  `;
21801
- var SwitchText = css100`
21809
+ var SwitchText = (size) => css100`
21802
21810
  color: var(--gray-500);
21803
21811
  font-size: var(--fs-sm);
21804
- padding-inline: var(--spacing-2xl) 0;
21812
+ padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
21805
21813
  `;
21806
21814
 
21807
21815
  // src/components/Switch/Switch.tsx
21808
21816
  import { Fragment as Fragment21, jsx as jsx131, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
21809
- var Switch = React24.forwardRef(
21810
- ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
21817
+ var Switch = forwardRef24(
21818
+ ({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
21811
21819
  let additionalText = infoText;
21812
21820
  if (infoText && toggleText) {
21813
21821
  additionalText = inputProps.checked ? toggleText : infoText;
21814
21822
  }
21815
21823
  return /* @__PURE__ */ jsxs87(Fragment21, { children: [
21816
- /* @__PURE__ */ jsxs87("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
21817
- /* @__PURE__ */ jsx131("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
21818
- /* @__PURE__ */ jsx131("span", { css: SwitchInputLabel, children: label })
21819
- ] }),
21820
- additionalText ? /* @__PURE__ */ jsx131("p", { css: SwitchText, children: additionalText }) : null,
21824
+ /* @__PURE__ */ jsxs87(
21825
+ "label",
21826
+ {
21827
+ css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0],
21828
+ children: [
21829
+ /* @__PURE__ */ jsx131("input", { type: "checkbox", css: SwitchInput(switchSize), ...inputProps, ref }),
21830
+ /* @__PURE__ */ jsx131("span", { css: SwitchInputLabel(switchSize), children: label })
21831
+ ]
21832
+ }
21833
+ ),
21834
+ additionalText ? /* @__PURE__ */ jsx131("p", { css: SwitchText(switchSize), children: additionalText }) : null,
21821
21835
  children
21822
21836
  ] });
21823
21837
  }
21824
21838
  );
21825
21839
 
21826
21840
  // src/components/Table/Table.tsx
21827
- import * as React25 from "react";
21841
+ import * as React24 from "react";
21828
21842
 
21829
21843
  // src/components/Table/Table.styles.ts
21830
21844
  import { css as css101 } from "@emotion/react";
@@ -21863,37 +21877,37 @@ var tableCellHead = css101`
21863
21877
 
21864
21878
  // src/components/Table/Table.tsx
21865
21879
  import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
21866
- var Table = React25.forwardRef(
21880
+ var Table = React24.forwardRef(
21867
21881
  ({ children, cellPadding, ...otherProps }, ref) => {
21868
21882
  return /* @__PURE__ */ jsx132("table", { ref, css: table({ cellPadding }), ...otherProps, children });
21869
21883
  }
21870
21884
  );
21871
- var TableHead = React25.forwardRef(
21885
+ var TableHead = React24.forwardRef(
21872
21886
  ({ children, ...otherProps }, ref) => {
21873
21887
  return /* @__PURE__ */ jsx132("thead", { ref, css: tableHead, ...otherProps, children });
21874
21888
  }
21875
21889
  );
21876
- var TableBody = React25.forwardRef(
21890
+ var TableBody = React24.forwardRef(
21877
21891
  ({ children, ...otherProps }, ref) => {
21878
21892
  return /* @__PURE__ */ jsx132("tbody", { ref, ...otherProps, children });
21879
21893
  }
21880
21894
  );
21881
- var TableFoot = React25.forwardRef(
21895
+ var TableFoot = React24.forwardRef(
21882
21896
  ({ children, ...otherProps }, ref) => {
21883
21897
  return /* @__PURE__ */ jsx132("tfoot", { ref, ...otherProps, children });
21884
21898
  }
21885
21899
  );
21886
- var TableRow = React25.forwardRef(
21900
+ var TableRow = React24.forwardRef(
21887
21901
  ({ children, ...otherProps }, ref) => {
21888
21902
  return /* @__PURE__ */ jsx132("tr", { ref, css: tableRow, ...otherProps, children });
21889
21903
  }
21890
21904
  );
21891
- var TableCellHead = React25.forwardRef(
21905
+ var TableCellHead = React24.forwardRef(
21892
21906
  ({ children, ...otherProps }, ref) => {
21893
21907
  return /* @__PURE__ */ jsx132("th", { ref, css: tableCellHead, ...otherProps, children });
21894
21908
  }
21895
21909
  );
21896
- var TableCellData = React25.forwardRef(
21910
+ var TableCellData = React24.forwardRef(
21897
21911
  ({ children, ...otherProps }, ref) => {
21898
21912
  return /* @__PURE__ */ jsx132("td", { ref, ...otherProps, children });
21899
21913
  }
@@ -22129,6 +22143,7 @@ export {
22129
22143
  CurrentDrawerContext,
22130
22144
  DashedBox,
22131
22145
  DateTimePicker,
22146
+ DateTimePickerSummary,
22132
22147
  DateTimePickerVariant,
22133
22148
  DebouncedInputKeywordSearch,
22134
22149
  DescriptionList,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
2
- import { DecoratorFn } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { RefObject, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
5
5
  import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
@@ -46,7 +46,7 @@ type ThemeProps = {
46
46
  * @example <Theme disableReset={true} /> */
47
47
  declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
48
48
 
49
- declare const BetaDecorator: DecoratorFn;
49
+ declare const BetaDecorator: Decorator;
50
50
 
51
51
  /** Breakpoint label values */
52
52
  type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -20422,8 +20422,7 @@ type ButtonProps = ButtonProps$1 & {
20422
20422
  };
20423
20423
  /**
20424
20424
  * Uniform Button Component
20425
- * @param {BaseButtonProps} props - object of button props from reakit
20426
- * @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world')}>Click me</Button>
20425
+ * @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world!')}>Click me</Button>
20427
20426
  */
20428
20427
  declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
20429
20428
 
@@ -21434,6 +21433,8 @@ type DateTimePickerProps = {
21434
21433
  id: string;
21435
21434
  /** (optional) sets the label value */
21436
21435
  label?: ReactNode;
21436
+ /** (optional) icon for the trigger */
21437
+ triggerIcon?: IconType$2;
21437
21438
  /** The current controlled value of the picker */
21438
21439
  value: DateTimePickerValue | null | undefined;
21439
21440
  /** (optional) The minimum visible date. The calendar will not show previous months */
@@ -21482,7 +21483,12 @@ declare function useDateTimePickerContext(): {
21482
21483
  * Subcomponents can manipulate the value directly by using
21483
21484
  * the `useDateTimePickerContext()` hook.
21484
21485
  */
21485
- declare const DateTimePicker: ({ id, label, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, testId, ...props }: DateTimePickerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
21486
+ declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, testId, ...props }: DateTimePickerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
21487
+
21488
+ declare function DateTimePickerSummary({ value, placeholder, }: {
21489
+ value: DateTimePickerValue | null | undefined;
21490
+ placeholder: ReactNode;
21491
+ }): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
21486
21492
 
21487
21493
  type DescriptionListProps = {
21488
21494
  items: {
@@ -21787,12 +21793,14 @@ type InfoMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
21787
21793
  message?: string;
21788
21794
  /** sets the test id for test automation (optional) */
21789
21795
  testId?: string;
21796
+ /** customize the icon (optional) */
21797
+ icon?: IconType;
21790
21798
  };
21791
21799
  /**
21792
21800
  * Component that provides info messaging to input fields
21793
- * @example <WarningMessage>be aware of this</ErrorMessage>
21801
+ * @example <InfoMessage>be aware of this</InfoMessage>
21794
21802
  */
21795
- declare const InfoMessage: ({ message, testId, ...props }: InfoMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
21803
+ declare const InfoMessage: ({ message, testId, icon, ...props }: InfoMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
21796
21804
 
21797
21805
  type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
21798
21806
  /** (optional) sets the label value */
@@ -22001,7 +22009,7 @@ interface InputKeywordSearchProps extends InputHTMLAttributes<HTMLInputElement>
22001
22009
  /** (optional) makes the input look more compact
22002
22010
  * @default false
22003
22011
  */
22004
- compact?: boolean | 'xs';
22012
+ compact?: boolean | 'sm' | 'xs';
22005
22013
  /** (optional) makes the corners of the input rounded
22006
22014
  * @default false
22007
22015
  */
@@ -23412,15 +23420,17 @@ type SkeletonProps = React__default.PropsWithChildren<React__default.HTMLAttribu
23412
23420
  */
23413
23421
  declare const Skeleton: ({ width, height, inline, circle, children, ...otherProps }: SkeletonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23414
23422
 
23415
- type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
23423
+ type SwitchProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
23416
23424
  /** sets the label value */
23417
- label: string;
23425
+ label: ReactNode;
23418
23426
  /** (optional) sets information text */
23419
23427
  infoText?: string;
23420
23428
  /** sets the toggle text value */
23421
23429
  toggleText?: string;
23422
23430
  /** sets child elements */
23423
- children?: React$1.ReactNode;
23431
+ children?: ReactNode;
23432
+ /** the size of the control */
23433
+ switchSize?: 'base' | 'sm';
23424
23434
  };
23425
23435
  /**
23426
23436
  * Uniform Switch Input Component
@@ -23429,13 +23439,15 @@ type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> &
23429
23439
  */
23430
23440
  declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
23431
23441
  /** sets the label value */
23432
- label: string;
23442
+ label: ReactNode;
23433
23443
  /** (optional) sets information text */
23434
23444
  infoText?: string | undefined;
23435
23445
  /** sets the toggle text value */
23436
23446
  toggleText?: string | undefined;
23437
23447
  /** sets child elements */
23438
- children?: React$1.ReactNode;
23448
+ children?: ReactNode;
23449
+ /** the size of the control */
23450
+ switchSize?: "base" | "sm" | undefined;
23439
23451
  } & React$1.RefAttributes<HTMLInputElement>>;
23440
23452
 
23441
23453
  type TableProps = {
@@ -23814,4 +23826,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
23814
23826
  };
23815
23827
  declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23816
23828
 
23817
- 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, 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, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, 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, InputCreatableComboBox, type InputCreatableComboBoxProps, 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, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, type ObjectGridItemProps, type ObjectGridItemTitleProps, 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, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, 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, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, 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 };
23829
+ 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, 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, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, 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, InputCreatableComboBox, type InputCreatableComboBoxProps, 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, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, type ObjectGridItemProps, type ObjectGridItemTitleProps, 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, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, 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, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, 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
@@ -1,5 +1,5 @@
1
1
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
2
- import { DecoratorFn } from '@storybook/react';
2
+ import { Decorator } from '@storybook/react';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { RefObject, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
5
5
  import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
@@ -46,7 +46,7 @@ type ThemeProps = {
46
46
  * @example <Theme disableReset={true} /> */
47
47
  declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
48
48
 
49
- declare const BetaDecorator: DecoratorFn;
49
+ declare const BetaDecorator: Decorator;
50
50
 
51
51
  /** Breakpoint label values */
52
52
  type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -20422,8 +20422,7 @@ type ButtonProps = ButtonProps$1 & {
20422
20422
  };
20423
20423
  /**
20424
20424
  * Uniform Button Component
20425
- * @param {BaseButtonProps} props - object of button props from reakit
20426
- * @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world')}>Click me</Button>
20425
+ * @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world!')}>Click me</Button>
20427
20426
  */
20428
20427
  declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
20429
20428
 
@@ -21434,6 +21433,8 @@ type DateTimePickerProps = {
21434
21433
  id: string;
21435
21434
  /** (optional) sets the label value */
21436
21435
  label?: ReactNode;
21436
+ /** (optional) icon for the trigger */
21437
+ triggerIcon?: IconType$2;
21437
21438
  /** The current controlled value of the picker */
21438
21439
  value: DateTimePickerValue | null | undefined;
21439
21440
  /** (optional) The minimum visible date. The calendar will not show previous months */
@@ -21482,7 +21483,12 @@ declare function useDateTimePickerContext(): {
21482
21483
  * Subcomponents can manipulate the value directly by using
21483
21484
  * the `useDateTimePickerContext()` hook.
21484
21485
  */
21485
- declare const DateTimePicker: ({ id, label, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, testId, ...props }: DateTimePickerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
21486
+ declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, testId, ...props }: DateTimePickerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
21487
+
21488
+ declare function DateTimePickerSummary({ value, placeholder, }: {
21489
+ value: DateTimePickerValue | null | undefined;
21490
+ placeholder: ReactNode;
21491
+ }): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
21486
21492
 
21487
21493
  type DescriptionListProps = {
21488
21494
  items: {
@@ -21787,12 +21793,14 @@ type InfoMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
21787
21793
  message?: string;
21788
21794
  /** sets the test id for test automation (optional) */
21789
21795
  testId?: string;
21796
+ /** customize the icon (optional) */
21797
+ icon?: IconType;
21790
21798
  };
21791
21799
  /**
21792
21800
  * Component that provides info messaging to input fields
21793
- * @example <WarningMessage>be aware of this</ErrorMessage>
21801
+ * @example <InfoMessage>be aware of this</InfoMessage>
21794
21802
  */
21795
- declare const InfoMessage: ({ message, testId, ...props }: InfoMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
21803
+ declare const InfoMessage: ({ message, testId, icon, ...props }: InfoMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
21796
21804
 
21797
21805
  type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
21798
21806
  /** (optional) sets the label value */
@@ -22001,7 +22009,7 @@ interface InputKeywordSearchProps extends InputHTMLAttributes<HTMLInputElement>
22001
22009
  /** (optional) makes the input look more compact
22002
22010
  * @default false
22003
22011
  */
22004
- compact?: boolean | 'xs';
22012
+ compact?: boolean | 'sm' | 'xs';
22005
22013
  /** (optional) makes the corners of the input rounded
22006
22014
  * @default false
22007
22015
  */
@@ -23412,15 +23420,17 @@ type SkeletonProps = React__default.PropsWithChildren<React__default.HTMLAttribu
23412
23420
  */
23413
23421
  declare const Skeleton: ({ width, height, inline, circle, children, ...otherProps }: SkeletonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23414
23422
 
23415
- type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
23423
+ type SwitchProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
23416
23424
  /** sets the label value */
23417
- label: string;
23425
+ label: ReactNode;
23418
23426
  /** (optional) sets information text */
23419
23427
  infoText?: string;
23420
23428
  /** sets the toggle text value */
23421
23429
  toggleText?: string;
23422
23430
  /** sets child elements */
23423
- children?: React$1.ReactNode;
23431
+ children?: ReactNode;
23432
+ /** the size of the control */
23433
+ switchSize?: 'base' | 'sm';
23424
23434
  };
23425
23435
  /**
23426
23436
  * Uniform Switch Input Component
@@ -23429,13 +23439,15 @@ type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> &
23429
23439
  */
23430
23440
  declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
23431
23441
  /** sets the label value */
23432
- label: string;
23442
+ label: ReactNode;
23433
23443
  /** (optional) sets information text */
23434
23444
  infoText?: string | undefined;
23435
23445
  /** sets the toggle text value */
23436
23446
  toggleText?: string | undefined;
23437
23447
  /** sets child elements */
23438
- children?: React$1.ReactNode;
23448
+ children?: ReactNode;
23449
+ /** the size of the control */
23450
+ switchSize?: "base" | "sm" | undefined;
23439
23451
  } & React$1.RefAttributes<HTMLInputElement>>;
23440
23452
 
23441
23453
  type TableProps = {
@@ -23814,4 +23826,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
23814
23826
  };
23815
23827
  declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
23816
23828
 
23817
- 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, 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, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, 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, InputCreatableComboBox, type InputCreatableComboBoxProps, 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, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, type ObjectGridItemProps, type ObjectGridItemTitleProps, 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, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, 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, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, 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 };
23829
+ 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, 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, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, 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, InputCreatableComboBox, type InputCreatableComboBoxProps, 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, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, type ObjectGridItemProps, type ObjectGridItemTitleProps, 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, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, 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, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, 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
@@ -1371,6 +1371,7 @@ __export(src_exports, {
1371
1371
  CurrentDrawerContext: () => CurrentDrawerContext,
1372
1372
  DashedBox: () => DashedBox,
1373
1373
  DateTimePicker: () => DateTimePicker,
1374
+ DateTimePickerSummary: () => DateTimePickerSummary,
1374
1375
  DateTimePickerVariant: () => DateTimePickerVariant,
1375
1376
  DebouncedInputKeywordSearch: () => DebouncedInputKeywordSearch,
1376
1377
  DescriptionList: () => DescriptionList,
@@ -14413,9 +14414,9 @@ var InfoIcon2 = import_react44.css`
14413
14414
 
14414
14415
  // src/components/Input/InfoMessage.tsx
14415
14416
  var import_jsx_runtime34 = require("@emotion/react/jsx-runtime");
14416
- var InfoMessage = ({ message, testId, ...props }) => {
14417
+ var InfoMessage = ({ message, testId, icon = import_MdInfoOutline.MdInfoOutline, ...props }) => {
14417
14418
  return message ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
14418
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { css: InfoIcon2, icon: import_MdInfoOutline.MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
14419
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { css: InfoIcon2, icon, size: "1rem", iconColor: "currentColor" }) }),
14419
14420
  message
14420
14421
  ] }) : null;
14421
14422
  };
@@ -15072,6 +15073,10 @@ var InputKeywordSearch = (0, import_react50.forwardRef)(
15072
15073
  minHeight: 0,
15073
15074
  padding: "var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-base)",
15074
15075
  fontSize: "var(--fs-sm)"
15076
+ } : compact === "sm" ? {
15077
+ minHeight: "40px",
15078
+ padding: "var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-base)",
15079
+ fontSize: "var(--fs-sm)"
15075
15080
  } : compact ? {
15076
15081
  padding: "var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base)",
15077
15082
  fontSize: "var(--fs-sm)"
@@ -16980,6 +16985,7 @@ init_emotion_jsx_shim();
16980
16985
  // src/components/DateTimePicker/DateTimePicker.tsx
16981
16986
  init_emotion_jsx_shim();
16982
16987
  var import_date4 = require("@internationalized/date");
16988
+ var import_CgCalendar2 = require("@react-icons/all-files/cg/CgCalendar");
16983
16989
  var import_react75 = require("react");
16984
16990
  var import_Popover = require("reakit/Popover");
16985
16991
 
@@ -17192,6 +17198,7 @@ function useDateTimePickerContext() {
17192
17198
  var DateTimePicker = ({
17193
17199
  id,
17194
17200
  label,
17201
+ triggerIcon = import_CgCalendar2.CgCalendar,
17195
17202
  value,
17196
17203
  minVisible,
17197
17204
  maxVisible,
@@ -17301,7 +17308,7 @@ var DateTimePicker = ({
17301
17308
  children: "clear"
17302
17309
  }
17303
17310
  ),
17304
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: "calendar", iconColor: "currentColor" }) })
17311
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: triggerIcon, iconColor: "currentColor" }) })
17305
17312
  ]
17306
17313
  }
17307
17314
  ),
@@ -23588,7 +23595,7 @@ var Skeleton = ({
23588
23595
 
23589
23596
  // src/components/Switch/Switch.tsx
23590
23597
  init_emotion_jsx_shim();
23591
- var React24 = __toESM(require("react"));
23598
+ var import_react155 = require("react");
23592
23599
 
23593
23600
  // src/components/Switch/Switch.styles.ts
23594
23601
  init_emotion_jsx_shim();
@@ -23602,7 +23609,7 @@ var SwitchInputContainer = import_react154.css`
23602
23609
  vertical-align: middle;
23603
23610
  user-select: none;
23604
23611
  `;
23605
- var SwitchInput = import_react154.css`
23612
+ var SwitchInput = (size) => import_react154.css`
23606
23613
  appearance: none;
23607
23614
  border-radius: var(--rounded-full);
23608
23615
  background-color: var(--white);
@@ -23610,15 +23617,16 @@ var SwitchInput = import_react154.css`
23610
23617
  cursor: pointer;
23611
23618
  position: absolute;
23612
23619
  display: block;
23613
- width: var(--spacing-md);
23614
- height: var(--spacing-md);
23620
+ width: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
23621
+ height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
23622
+ margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
23615
23623
  transition: transform var(--duration-fast) var(--timing-ease-out),
23616
23624
  background-color var(--duration-fast) var(--timing-ease-out),
23617
23625
  background-image var(--duration-fast) var(--timing-ease-out);
23618
23626
  z-index: var(--z-10);
23619
23627
 
23620
23628
  &:focus {
23621
- outline: 3px solid var(--gray-800);
23629
+ outline: 2px solid var(--gray-800);
23622
23630
  outline-offset: 2px;
23623
23631
  }
23624
23632
 
@@ -23648,12 +23656,12 @@ var SwitchInputDisabled = import_react154.css`
23648
23656
  cursor: not-allowed;
23649
23657
  }
23650
23658
  `;
23651
- var SwitchInputLabel = import_react154.css`
23659
+ var SwitchInputLabel = (size) => import_react154.css`
23652
23660
  align-items: center;
23653
23661
  color: var(--typography-base);
23654
23662
  display: inline-flex;
23655
23663
  line-height: 1.25;
23656
- padding-inline: var(--spacing-2xl) 0;
23664
+ padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
23657
23665
 
23658
23666
  &:before {
23659
23667
  border-radius: var(--rounded-full);
@@ -23662,33 +23670,40 @@ var SwitchInputLabel = import_react154.css`
23662
23670
  cursor: pointer;
23663
23671
  display: block;
23664
23672
  overflow: hidden;
23665
- width: var(--spacing-xl);
23666
- height: var(--spacing-md);
23673
+ width: ${size === "sm" ? "var(--spacing-lg)" : "var(--spacing-xl)"};
23674
+ height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
23675
+ margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
23667
23676
  position: absolute;
23668
23677
  left: 0;
23669
23678
  top: 0;
23670
23679
  }
23671
23680
  `;
23672
- var SwitchText = import_react154.css`
23681
+ var SwitchText = (size) => import_react154.css`
23673
23682
  color: var(--gray-500);
23674
23683
  font-size: var(--fs-sm);
23675
- padding-inline: var(--spacing-2xl) 0;
23684
+ padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
23676
23685
  `;
23677
23686
 
23678
23687
  // src/components/Switch/Switch.tsx
23679
23688
  var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
23680
- var Switch = React24.forwardRef(
23681
- ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
23689
+ var Switch = (0, import_react155.forwardRef)(
23690
+ ({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
23682
23691
  let additionalText = infoText;
23683
23692
  if (infoText && toggleText) {
23684
23693
  additionalText = inputProps.checked ? toggleText : infoText;
23685
23694
  }
23686
23695
  return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
23687
- /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
23688
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
23689
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { css: SwitchInputLabel, children: label })
23690
- ] }),
23691
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { css: SwitchText, children: additionalText }) : null,
23696
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
23697
+ "label",
23698
+ {
23699
+ css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0],
23700
+ children: [
23701
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("input", { type: "checkbox", css: SwitchInput(switchSize), ...inputProps, ref }),
23702
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { css: SwitchInputLabel(switchSize), children: label })
23703
+ ]
23704
+ }
23705
+ ),
23706
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { css: SwitchText(switchSize), children: additionalText }) : null,
23692
23707
  children
23693
23708
  ] });
23694
23709
  }
@@ -23696,12 +23711,12 @@ var Switch = React24.forwardRef(
23696
23711
 
23697
23712
  // src/components/Table/Table.tsx
23698
23713
  init_emotion_jsx_shim();
23699
- var React25 = __toESM(require("react"));
23714
+ var React24 = __toESM(require("react"));
23700
23715
 
23701
23716
  // src/components/Table/Table.styles.ts
23702
23717
  init_emotion_jsx_shim();
23703
- var import_react155 = require("@emotion/react");
23704
- var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => import_react155.css`
23718
+ var import_react156 = require("@emotion/react");
23719
+ var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => import_react156.css`
23705
23720
  border-bottom: 1px solid var(--gray-400);
23706
23721
  border-collapse: collapse;
23707
23722
  min-width: 100%;
@@ -23721,14 +23736,14 @@ var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => import_
23721
23736
  background-color: var(--gray-50);
23722
23737
  }
23723
23738
  `;
23724
- var tableHead = import_react155.css`
23739
+ var tableHead = import_react156.css`
23725
23740
  color: var(--typography-base);
23726
23741
  text-align: left;
23727
23742
  `;
23728
- var tableRow = import_react155.css`
23743
+ var tableRow = import_react156.css`
23729
23744
  border-bottom: 1px solid var(--gray-100);
23730
23745
  `;
23731
- var tableCellHead = import_react155.css`
23746
+ var tableCellHead = import_react156.css`
23732
23747
  font-size: var(--fs-sm);
23733
23748
  text-transform: uppercase;
23734
23749
  font-weight: var(--fw-bold);
@@ -23736,37 +23751,37 @@ var tableCellHead = import_react155.css`
23736
23751
 
23737
23752
  // src/components/Table/Table.tsx
23738
23753
  var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
23739
- var Table = React25.forwardRef(
23754
+ var Table = React24.forwardRef(
23740
23755
  ({ children, cellPadding, ...otherProps }, ref) => {
23741
23756
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
23742
23757
  }
23743
23758
  );
23744
- var TableHead = React25.forwardRef(
23759
+ var TableHead = React24.forwardRef(
23745
23760
  ({ children, ...otherProps }, ref) => {
23746
23761
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
23747
23762
  }
23748
23763
  );
23749
- var TableBody = React25.forwardRef(
23764
+ var TableBody = React24.forwardRef(
23750
23765
  ({ children, ...otherProps }, ref) => {
23751
23766
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tbody", { ref, ...otherProps, children });
23752
23767
  }
23753
23768
  );
23754
- var TableFoot = React25.forwardRef(
23769
+ var TableFoot = React24.forwardRef(
23755
23770
  ({ children, ...otherProps }, ref) => {
23756
23771
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tfoot", { ref, ...otherProps, children });
23757
23772
  }
23758
23773
  );
23759
- var TableRow = React25.forwardRef(
23774
+ var TableRow = React24.forwardRef(
23760
23775
  ({ children, ...otherProps }, ref) => {
23761
23776
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
23762
23777
  }
23763
23778
  );
23764
- var TableCellHead = React25.forwardRef(
23779
+ var TableCellHead = React24.forwardRef(
23765
23780
  ({ children, ...otherProps }, ref) => {
23766
23781
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
23767
23782
  }
23768
23783
  );
23769
- var TableCellData = React25.forwardRef(
23784
+ var TableCellData = React24.forwardRef(
23770
23785
  ({ children, ...otherProps }, ref) => {
23771
23786
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("td", { ref, ...otherProps, children });
23772
23787
  }
@@ -23774,13 +23789,13 @@ var TableCellData = React25.forwardRef(
23774
23789
 
23775
23790
  // src/components/Tabs/Tabs.tsx
23776
23791
  init_emotion_jsx_shim();
23777
- var import_react157 = require("@ariakit/react");
23778
- var import_react158 = require("react");
23792
+ var import_react158 = require("@ariakit/react");
23793
+ var import_react159 = require("react");
23779
23794
 
23780
23795
  // src/components/Tabs/Tabs.styles.ts
23781
23796
  init_emotion_jsx_shim();
23782
- var import_react156 = require("@emotion/react");
23783
- var tabButtonStyles = import_react156.css`
23797
+ var import_react157 = require("@emotion/react");
23798
+ var tabButtonStyles = import_react157.css`
23784
23799
  align-items: center;
23785
23800
  border: 0;
23786
23801
  height: 2.5rem;
@@ -23797,7 +23812,7 @@ var tabButtonStyles = import_react156.css`
23797
23812
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
23798
23813
  }
23799
23814
  `;
23800
- var tabButtonGroupStyles = import_react156.css`
23815
+ var tabButtonGroupStyles = import_react157.css`
23801
23816
  display: flex;
23802
23817
  gap: var(--spacing-base);
23803
23818
  border-bottom: 1px solid var(--gray-300);
@@ -23806,7 +23821,7 @@ var tabButtonGroupStyles = import_react156.css`
23806
23821
  // src/components/Tabs/Tabs.tsx
23807
23822
  var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
23808
23823
  var useCurrentTab = () => {
23809
- const context = (0, import_react157.useTabStore)();
23824
+ const context = (0, import_react158.useTabStore)();
23810
23825
  if (!context) {
23811
23826
  throw new Error("This component can only be used inside <Tabs>");
23812
23827
  }
@@ -23820,13 +23835,13 @@ var Tabs = ({
23820
23835
  manual,
23821
23836
  ...props
23822
23837
  }) => {
23823
- const selected = (0, import_react158.useMemo)(() => {
23838
+ const selected = (0, import_react159.useMemo)(() => {
23824
23839
  if (selectedId)
23825
23840
  return selectedId;
23826
23841
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
23827
23842
  }, [selectedId, useHashForState]);
23828
- const tab = (0, import_react157.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
23829
- const onTabSelect = (0, import_react158.useCallback)(
23843
+ const tab = (0, import_react158.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
23844
+ const onTabSelect = (0, import_react159.useCallback)(
23830
23845
  (value) => {
23831
23846
  const selectedValueWithoutNull = value != null ? value : void 0;
23832
23847
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -23837,28 +23852,28 @@ var Tabs = ({
23837
23852
  },
23838
23853
  [onSelectedIdChange, useHashForState]
23839
23854
  );
23840
- (0, import_react158.useEffect)(() => {
23855
+ (0, import_react159.useEffect)(() => {
23841
23856
  if (selected && selected !== tab.getState().activeId) {
23842
23857
  tab.setSelectedId(selected);
23843
23858
  }
23844
23859
  }, [selected, tab]);
23845
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react157.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
23860
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react158.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
23846
23861
  };
23847
23862
  var TabButtonGroup = ({ children, ...props }) => {
23848
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react157.TabList, { ...props, css: tabButtonGroupStyles, children });
23863
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react158.TabList, { ...props, css: tabButtonGroupStyles, children });
23849
23864
  };
23850
23865
  var TabButton = ({
23851
23866
  children,
23852
23867
  id,
23853
23868
  ...props
23854
23869
  }) => {
23855
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react157.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
23870
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react158.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
23856
23871
  };
23857
23872
  var TabContent = ({
23858
23873
  children,
23859
23874
  ...props
23860
23875
  }) => {
23861
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react157.TabPanel, { ...props, children });
23876
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react158.TabPanel, { ...props, children });
23862
23877
  };
23863
23878
 
23864
23879
  // src/components/Validation/StatusBullet.tsx
@@ -23866,8 +23881,8 @@ init_emotion_jsx_shim();
23866
23881
 
23867
23882
  // src/components/Validation/StatusBullet.styles.ts
23868
23883
  init_emotion_jsx_shim();
23869
- var import_react159 = require("@emotion/react");
23870
- var StatusBulletContainer = import_react159.css`
23884
+ var import_react160 = require("@emotion/react");
23885
+ var StatusBulletContainer = import_react160.css`
23871
23886
  align-items: center;
23872
23887
  align-self: center;
23873
23888
  color: var(--gray-500);
@@ -23884,33 +23899,33 @@ var StatusBulletContainer = import_react159.css`
23884
23899
  display: block;
23885
23900
  }
23886
23901
  `;
23887
- var StatusBulletBase = import_react159.css`
23902
+ var StatusBulletBase = import_react160.css`
23888
23903
  font-size: var(--fs-sm);
23889
23904
  &:before {
23890
23905
  width: var(--fs-xs);
23891
23906
  height: var(--fs-xs);
23892
23907
  }
23893
23908
  `;
23894
- var StatusBulletSmall = import_react159.css`
23909
+ var StatusBulletSmall = import_react160.css`
23895
23910
  font-size: var(--fs-xs);
23896
23911
  &:before {
23897
23912
  width: var(--fs-xxs);
23898
23913
  height: var(--fs-xxs);
23899
23914
  }
23900
23915
  `;
23901
- var StatusDraft = import_react159.css`
23916
+ var StatusDraft = import_react160.css`
23902
23917
  &:before {
23903
23918
  background: var(--white);
23904
23919
  box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
23905
23920
  }
23906
23921
  `;
23907
- var StatusModified = import_react159.css`
23922
+ var StatusModified = import_react160.css`
23908
23923
  &:before {
23909
23924
  background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
23910
23925
  box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
23911
23926
  }
23912
23927
  `;
23913
- var StatusError = import_react159.css`
23928
+ var StatusError = import_react160.css`
23914
23929
  color: var(--error);
23915
23930
  &:before {
23916
23931
  /* TODO: replace this with an svg icon */
@@ -23923,22 +23938,22 @@ var StatusError = import_react159.css`
23923
23938
  );
23924
23939
  }
23925
23940
  `;
23926
- var StatusPublished = import_react159.css`
23941
+ var StatusPublished = import_react160.css`
23927
23942
  &:before {
23928
23943
  background: var(--accent-dark);
23929
23944
  }
23930
23945
  `;
23931
- var StatusOrphan = import_react159.css`
23946
+ var StatusOrphan = import_react160.css`
23932
23947
  &:before {
23933
23948
  background: var(--brand-secondary-5);
23934
23949
  }
23935
23950
  `;
23936
- var StatusUnknown = import_react159.css`
23951
+ var StatusUnknown = import_react160.css`
23937
23952
  &:before {
23938
23953
  background: var(--gray-800);
23939
23954
  }
23940
23955
  `;
23941
- var StatusDeleted = import_react159.css`
23956
+ var StatusDeleted = import_react160.css`
23942
23957
  &:before {
23943
23958
  background: var(--error);
23944
23959
  }
@@ -24003,6 +24018,7 @@ var StatusBullet = ({
24003
24018
  CurrentDrawerContext,
24004
24019
  DashedBox,
24005
24020
  DateTimePicker,
24021
+ DateTimePickerSummary,
24006
24022
  DateTimePickerVariant,
24007
24023
  DebouncedInputKeywordSearch,
24008
24024
  DescriptionList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.162.2-alpha.11+5544f3f2ca",
3
+ "version": "19.165.0",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@emotion/jest": "11.11.0",
23
- "@storybook/client-api": "6.5.16",
24
- "@storybook/react": "6.5.16",
23
+ "@storybook/preview-api": "^8.0.10",
24
+ "@storybook/react": "8.0.10",
25
25
  "@types/react": "18.2.40",
26
26
  "@types/react-dom": "18.2.17",
27
- "@uniformdev/canvas": "^19.162.2-alpha.11+5544f3f2ca",
28
- "@uniformdev/richtext": "^19.162.2-alpha.11+5544f3f2ca",
27
+ "@uniformdev/canvas": "^19.165.0",
28
+ "@uniformdev/richtext": "^19.165.0",
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": "5544f3f2ca31829767dbe8511c21b1192a811443"
75
+ "gitHead": "edbe5a9fe21137f383003c6f604934dc9501b6e6"
76
76
  }