carbon-react 126.4.3 → 126.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { MarginProps, BackgroundProps, LayoutProps } from "styled-system";
2
+ import { MarginProps, BackgroundProps, LayoutProps, PaddingProps } from "styled-system";
3
3
  export declare type PositionProps = "absolute" | "fixed" | "relative" | "static" | "sticky";
4
- export interface StyledImageProps extends BackgroundProps, LayoutProps, MarginProps {
4
+ export interface StyledImageProps extends BackgroundProps, LayoutProps, MarginProps, PaddingProps {
5
5
  /** HTML alt property to display when an img fails to load */
6
6
  alt?: string;
7
7
  /** Prop to specify if the image is decorative */
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
- import { margin, layout, background } from "styled-system";
2
+ import { margin, layout, background, padding } from "styled-system";
3
3
  import { baseTheme } from "../../style/themes";
4
4
  const StyledImage = styled.div.attrs(({
5
5
  src,
@@ -25,6 +25,7 @@ const StyledImage = styled.div.attrs(({
25
25
  }))`
26
26
  ${margin}
27
27
  ${layout}
28
+ ${padding}
28
29
 
29
30
  ${({
30
31
  position,
@@ -126,11 +126,11 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
126
126
  triggerChange("", false);
127
127
  return "";
128
128
  }
129
+ triggerChange(match.props.value, false);
129
130
  if (isDeleteEvent) {
130
131
  setTextValue(newFilterText);
131
132
  return match.props.value;
132
133
  }
133
- triggerChange(match.props.value, false);
134
134
  if (match.props.text?.toLowerCase().startsWith(newFilterText.toLowerCase())) {
135
135
  setTextValue(match.props.text);
136
136
  } else {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { MarginProps, BackgroundProps, LayoutProps } from "styled-system";
2
+ import { MarginProps, BackgroundProps, LayoutProps, PaddingProps } from "styled-system";
3
3
  export declare type PositionProps = "absolute" | "fixed" | "relative" | "static" | "sticky";
4
- export interface StyledImageProps extends BackgroundProps, LayoutProps, MarginProps {
4
+ export interface StyledImageProps extends BackgroundProps, LayoutProps, MarginProps, PaddingProps {
5
5
  /** HTML alt property to display when an img fails to load */
6
6
  alt?: string;
7
7
  /** Prop to specify if the image is decorative */
@@ -33,6 +33,7 @@ const StyledImage = exports.StyledImage = _styledComponents.default.div.attrs(({
33
33
  }))`
34
34
  ${_styledSystem.margin}
35
35
  ${_styledSystem.layout}
36
+ ${_styledSystem.padding}
36
37
 
37
38
  ${({
38
39
  position,
@@ -135,11 +135,11 @@ const FilterableSelect = exports.FilterableSelect = /*#__PURE__*/_react.default.
135
135
  triggerChange("", false);
136
136
  return "";
137
137
  }
138
+ triggerChange(match.props.value, false);
138
139
  if (isDeleteEvent) {
139
140
  setTextValue(newFilterText);
140
141
  return match.props.value;
141
142
  }
142
- triggerChange(match.props.value, false);
143
143
  if (match.props.text?.toLowerCase().startsWith(newFilterText.toLowerCase())) {
144
144
  setTextValue(match.props.text);
145
145
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "126.4.3",
3
+ "version": "126.5.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",