@uniformdev/design-system 19.195.1-alpha.2 → 19.195.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -21109,6 +21109,11 @@ declare const allSupportedIcons: {
21109
21109
  yinyang: _react_icons_all_files.IconType;
21110
21110
  'zoom-in': _react_icons_all_files.IconType;
21111
21111
  'zoom-out': _react_icons_all_files.IconType;
21112
+ 'device-mobile': _react_icons_all_files.IconType;
21113
+ 'device-tablet': _react_icons_all_files.IconType;
21114
+ 'device-tv': _react_icons_all_files.IconType;
21115
+ 'device-ipad': _react_icons_all_files.IconType;
21116
+ 'device-mobile-rotated': _react_icons_all_files.IconType;
21112
21117
  };
21113
21118
 
21114
21119
  /** A list of available icon names that can be used with the Uniform brand */
@@ -21385,6 +21390,11 @@ type ChipProps = {
21385
21390
  * @default 'span'
21386
21391
  */
21387
21392
  as?: 'span' | 'button';
21393
+ /**
21394
+ * Whether the chip is visually disabled
21395
+ * @default false
21396
+ */
21397
+ isDisabled?: boolean;
21388
21398
  } & React.HTMLAttributes<HTMLSpanElement>;
21389
21399
  /**
21390
21400
  * @description Chips are used in a variety of ways
@@ -21393,7 +21403,7 @@ type ChipProps = {
21393
21403
  * To represent a different object, as a reference
21394
21404
  * @example <Chip text="productId" theme="accent-light" chipAction={<DismissibleChipAction onDismiss={() => {...}}/>} />
21395
21405
  */
21396
- declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
21406
+ declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, isDisabled, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
21397
21407
  type DismissibleChipActionProps = {
21398
21408
  onDismiss: () => void;
21399
21409
  } & HTMLAttributes<HTMLButtonElement>;
@@ -21922,7 +21932,7 @@ declare const InfoMessage: ({ message, testId, icon, ...props }: InfoMessageProp
21922
21932
 
21923
21933
  type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
21924
21934
  /** (optional) sets the label value */
21925
- label?: string;
21935
+ label?: string | React$1.ReactNode;
21926
21936
  /** (optional) sets caption text value */
21927
21937
  caption?: string | JSX.Element;
21928
21938
  /** (optional) add an input icon to the input field */
@@ -21965,7 +21975,7 @@ type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
21965
21975
  */
21966
21976
  declare const Input: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
21967
21977
  /** (optional) sets the label value */
21968
- label?: string;
21978
+ label?: string | React$1.ReactNode;
21969
21979
  /** (optional) sets caption text value */
21970
21980
  caption?: string | JSX.Element;
21971
21981
  /** (optional) add an input icon to the input field */
@@ -22758,6 +22768,9 @@ declare function MenuItemIcon({ icon }: {
22758
22768
  */
22759
22769
  declare function MenuItemEmptyIcon(): _emotion_react_jsx_runtime.JSX.Element;
22760
22770
 
22771
+ /**
22772
+ * @deprecated this is deprecated and will be removed in the next major release. Use MenuGroup instead.
22773
+ */
22761
22774
  declare const MenuItemHeading: ({ children }: {
22762
22775
  children: ReactNode;
22763
22776
  }) => _emotion_react_jsx_runtime.JSX.Element;
@@ -22826,8 +22839,11 @@ declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, side
22826
22839
  type ModalProps = {
22827
22840
  header?: React__default.ReactNode;
22828
22841
  children?: React__default.ReactNode;
22829
- /** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
22830
- onRequestClose: () => void;
22842
+ /**
22843
+ * Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked.
22844
+ * If undefined is passed, the modal will not be closable by the user and the close button will not be rendered.
22845
+ */
22846
+ onRequestClose: (() => void) | undefined;
22831
22847
  /** The size sets the modal width to one of three options sm = 400px, md = 600px and lg = 800px
22832
22848
  * if a width attribute is used the size will be overridden by the width attribute
22833
22849
  * @default 'lg'
@@ -22847,6 +22863,12 @@ type ModalProps = {
22847
22863
  withoutContentBackground?: boolean;
22848
22864
  /** Places buttons at the bottom of the modal */
22849
22865
  buttonGroup?: ReactNode;
22866
+ /**
22867
+ * Disables scrolling of the modal body if the content exceeds the height.
22868
+ * Can be required for modals that have comboboxes where the menu items are expected
22869
+ * to overflow the bounds of the modal.
22870
+ */
22871
+ disableBodyScroll?: boolean;
22850
22872
  } & React__default.HTMLProps<HTMLDialogElement>;
22851
22873
  /**
22852
22874
  * A modal component to open a dialog with a backdrop that covers the whole page.
@@ -22992,7 +23014,7 @@ declare function Pagination({ limit, offset, total, onPageChange, }: {
22992
23014
 
22993
23015
  type CommonParameterProps = {
22994
23016
  /** sets the label value */
22995
- label: string;
23017
+ label: string | ReactNode;
22996
23018
  /** (optional): allows user to pass a component before the label */
22997
23019
  labelLeadingIcon?: ReactNode;
22998
23020
  /** (optional): allows user to pass a component after the label */
@@ -23047,7 +23069,7 @@ type CommonParameterSelectProps = {
23047
23069
  declare const ParameterShellContext: React$1.Context<CommonParameterProps>;
23048
23070
  declare const useParameterShell: () => {
23049
23071
  id: string;
23050
- label: string;
23072
+ label: React$1.ReactNode;
23051
23073
  hiddenLabel: boolean | undefined;
23052
23074
  errorMessage: string | undefined;
23053
23075
  handleManuallySetErrorMessage: ((message: string | undefined) => void) | undefined;
@@ -23153,7 +23175,7 @@ type ParameterLabelProps = HTMLAttributes<HTMLLabelElement> & {
23153
23175
  children: React.ReactNode;
23154
23176
  /** sets the label to use a span tag with aria-labelledby */
23155
23177
  asSpan?: boolean;
23156
- /** sets the data-testId attribute */
23178
+ /** sets the data-testid attribute */
23157
23179
  testId?: string;
23158
23180
  };
23159
23181
  /** @example <ParameterLabel id="my-label">my label</ParameterLabel> */
@@ -23401,7 +23423,7 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
23401
23423
  declare const extractParameterProps: <T>(props: T & CommonParameterInputProps) => {
23402
23424
  shellProps: {
23403
23425
  id: string;
23404
- label: string;
23426
+ label: ReactNode;
23405
23427
  caption: string | undefined;
23406
23428
  captionTestId: string | undefined;
23407
23429
  errorMessage: string | undefined;
package/dist/index.d.ts CHANGED
@@ -21109,6 +21109,11 @@ declare const allSupportedIcons: {
21109
21109
  yinyang: _react_icons_all_files.IconType;
21110
21110
  'zoom-in': _react_icons_all_files.IconType;
21111
21111
  'zoom-out': _react_icons_all_files.IconType;
21112
+ 'device-mobile': _react_icons_all_files.IconType;
21113
+ 'device-tablet': _react_icons_all_files.IconType;
21114
+ 'device-tv': _react_icons_all_files.IconType;
21115
+ 'device-ipad': _react_icons_all_files.IconType;
21116
+ 'device-mobile-rotated': _react_icons_all_files.IconType;
21112
21117
  };
21113
21118
 
21114
21119
  /** A list of available icon names that can be used with the Uniform brand */
@@ -21385,6 +21390,11 @@ type ChipProps = {
21385
21390
  * @default 'span'
21386
21391
  */
21387
21392
  as?: 'span' | 'button';
21393
+ /**
21394
+ * Whether the chip is visually disabled
21395
+ * @default false
21396
+ */
21397
+ isDisabled?: boolean;
21388
21398
  } & React.HTMLAttributes<HTMLSpanElement>;
21389
21399
  /**
21390
21400
  * @description Chips are used in a variety of ways
@@ -21393,7 +21403,7 @@ type ChipProps = {
21393
21403
  * To represent a different object, as a reference
21394
21404
  * @example <Chip text="productId" theme="accent-light" chipAction={<DismissibleChipAction onDismiss={() => {...}}/>} />
21395
21405
  */
21396
- declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
21406
+ declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, isDisabled, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
21397
21407
  type DismissibleChipActionProps = {
21398
21408
  onDismiss: () => void;
21399
21409
  } & HTMLAttributes<HTMLButtonElement>;
@@ -21922,7 +21932,7 @@ declare const InfoMessage: ({ message, testId, icon, ...props }: InfoMessageProp
21922
21932
 
21923
21933
  type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
21924
21934
  /** (optional) sets the label value */
21925
- label?: string;
21935
+ label?: string | React$1.ReactNode;
21926
21936
  /** (optional) sets caption text value */
21927
21937
  caption?: string | JSX.Element;
21928
21938
  /** (optional) add an input icon to the input field */
@@ -21965,7 +21975,7 @@ type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
21965
21975
  */
21966
21976
  declare const Input: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
21967
21977
  /** (optional) sets the label value */
21968
- label?: string;
21978
+ label?: string | React$1.ReactNode;
21969
21979
  /** (optional) sets caption text value */
21970
21980
  caption?: string | JSX.Element;
21971
21981
  /** (optional) add an input icon to the input field */
@@ -22758,6 +22768,9 @@ declare function MenuItemIcon({ icon }: {
22758
22768
  */
22759
22769
  declare function MenuItemEmptyIcon(): _emotion_react_jsx_runtime.JSX.Element;
22760
22770
 
22771
+ /**
22772
+ * @deprecated this is deprecated and will be removed in the next major release. Use MenuGroup instead.
22773
+ */
22761
22774
  declare const MenuItemHeading: ({ children }: {
22762
22775
  children: ReactNode;
22763
22776
  }) => _emotion_react_jsx_runtime.JSX.Element;
@@ -22826,8 +22839,11 @@ declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, side
22826
22839
  type ModalProps = {
22827
22840
  header?: React__default.ReactNode;
22828
22841
  children?: React__default.ReactNode;
22829
- /** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
22830
- onRequestClose: () => void;
22842
+ /**
22843
+ * Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked.
22844
+ * If undefined is passed, the modal will not be closable by the user and the close button will not be rendered.
22845
+ */
22846
+ onRequestClose: (() => void) | undefined;
22831
22847
  /** The size sets the modal width to one of three options sm = 400px, md = 600px and lg = 800px
22832
22848
  * if a width attribute is used the size will be overridden by the width attribute
22833
22849
  * @default 'lg'
@@ -22847,6 +22863,12 @@ type ModalProps = {
22847
22863
  withoutContentBackground?: boolean;
22848
22864
  /** Places buttons at the bottom of the modal */
22849
22865
  buttonGroup?: ReactNode;
22866
+ /**
22867
+ * Disables scrolling of the modal body if the content exceeds the height.
22868
+ * Can be required for modals that have comboboxes where the menu items are expected
22869
+ * to overflow the bounds of the modal.
22870
+ */
22871
+ disableBodyScroll?: boolean;
22850
22872
  } & React__default.HTMLProps<HTMLDialogElement>;
22851
22873
  /**
22852
22874
  * A modal component to open a dialog with a backdrop that covers the whole page.
@@ -22992,7 +23014,7 @@ declare function Pagination({ limit, offset, total, onPageChange, }: {
22992
23014
 
22993
23015
  type CommonParameterProps = {
22994
23016
  /** sets the label value */
22995
- label: string;
23017
+ label: string | ReactNode;
22996
23018
  /** (optional): allows user to pass a component before the label */
22997
23019
  labelLeadingIcon?: ReactNode;
22998
23020
  /** (optional): allows user to pass a component after the label */
@@ -23047,7 +23069,7 @@ type CommonParameterSelectProps = {
23047
23069
  declare const ParameterShellContext: React$1.Context<CommonParameterProps>;
23048
23070
  declare const useParameterShell: () => {
23049
23071
  id: string;
23050
- label: string;
23072
+ label: React$1.ReactNode;
23051
23073
  hiddenLabel: boolean | undefined;
23052
23074
  errorMessage: string | undefined;
23053
23075
  handleManuallySetErrorMessage: ((message: string | undefined) => void) | undefined;
@@ -23153,7 +23175,7 @@ type ParameterLabelProps = HTMLAttributes<HTMLLabelElement> & {
23153
23175
  children: React.ReactNode;
23154
23176
  /** sets the label to use a span tag with aria-labelledby */
23155
23177
  asSpan?: boolean;
23156
- /** sets the data-testId attribute */
23178
+ /** sets the data-testid attribute */
23157
23179
  testId?: string;
23158
23180
  };
23159
23181
  /** @example <ParameterLabel id="my-label">my label</ParameterLabel> */
@@ -23401,7 +23423,7 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
23401
23423
  declare const extractParameterProps: <T>(props: T & CommonParameterInputProps) => {
23402
23424
  shellProps: {
23403
23425
  id: string;
23404
- label: string;
23426
+ label: ReactNode;
23405
23427
  caption: string | undefined;
23406
23428
  captionTestId: string | undefined;
23407
23429
  errorMessage: string | undefined;