@worldresources/wri-design-systems 2.205.1 → 2.206.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/index.d.ts CHANGED
@@ -954,6 +954,7 @@ declare const Slider: React__default.ForwardRefExoticComponent<Omit<Slider$1.Roo
954
954
  value: number[];
955
955
  }) => void;
956
956
  isCentred?: boolean;
957
+ colors?: string[];
957
958
  } & React__default.RefAttributes<HTMLDivElement>>;
958
959
 
959
960
  type SliderMarksProps = {
@@ -980,6 +981,8 @@ type SliderProps = Omit<SliderRootProps, 'size' | 'variant' | 'colorPalette' | '
980
981
  onValueChange?: (details: ValueChangeDetails) => void;
981
982
  onValueChangeEnd?: (details: ValueChangeDetails) => void;
982
983
  isCentred?: boolean;
984
+ /** Colors used to render a gradient track, e.g. for data-driven scales (low → high). */
985
+ colors?: string[];
983
986
  };
984
987
 
985
988
  type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'invalid' | 'onCheckedChange' | 'onChange' | 'labels'> & {
@@ -1782,6 +1785,7 @@ type InlineMessageProps = {
1782
1785
  icon?: React.ReactNode;
1783
1786
  onActionClick?: VoidFunction;
1784
1787
  actionLabel?: string;
1788
+ actionButtonVariant?: 'primary' | 'secondary' | 'borderless' | 'outline' | 'negative';
1785
1789
  isButtonRight?: boolean;
1786
1790
  buttonLeftIcon?: React.ReactNode;
1787
1791
  buttonRightIcon?: React.ReactNode;
@@ -1789,7 +1793,7 @@ type InlineMessageProps = {
1789
1793
  labels?: Partial<InlineMessageLabels>;
1790
1794
  };
1791
1795
 
1792
- declare const InlineMessage: ({ label, caption, variant, size, icon, onActionClick, actionLabel, isButtonRight, buttonLeftIcon, buttonRightIcon, labels, }: InlineMessageProps) => _emotion_react_jsx_runtime.JSX.Element;
1796
+ declare const InlineMessage: ({ label, caption, variant, size, icon, onActionClick, actionLabel, actionButtonVariant, isButtonRight, buttonLeftIcon, buttonRightIcon, labels, }: InlineMessageProps) => _emotion_react_jsx_runtime.JSX.Element;
1793
1797
 
1794
1798
  interface AlertProps extends Omit<Alert.RootProps, 'title' | 'variant' | 'width'> {
1795
1799
  title?: React.ReactNode;