carbon-react 126.4.3 → 126.5.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.
@@ -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,
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "126.4.3",
3
+ "version": "126.5.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",