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.
- package/esm/components/image/image.style.d.ts +2 -2
- package/esm/components/image/image.style.js +2 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +1 -1
- package/lib/components/image/image.style.d.ts +2 -2
- package/lib/components/image/image.style.js +1 -0
- package/lib/components/select/filterable-select/filterable-select.component.js +1 -1
- package/package.json +1 -1
|
@@ -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 */
|
|
@@ -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 {
|