@cronocode/react-box 0.3.6 → 0.3.8

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/box.d.ts CHANGED
@@ -6,6 +6,9 @@ interface BoxDisplay {
6
6
  display?: 'none' | 'block' | 'inline-block' | 'flex' | 'inline-flex' | 'grid';
7
7
  inline?: boolean;
8
8
  }
9
+ interface BoxSizing {
10
+ boxSizing?: 'border-box' | 'content-box';
11
+ }
9
12
  interface BoxPosition {
10
13
  position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
11
14
  inset?: SizeType;
@@ -154,7 +157,7 @@ interface BoxFlex {
154
157
  interface BoxHover {
155
158
  hover?: boolean;
156
159
  }
157
- declare type BoxStyles = BoxDisplay & BoxPosition & BoxSize & BoxMargin & BoxBorder & BoxPadding & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxHover;
160
+ declare type BoxStyles = BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxBorder & BoxPadding & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxHover;
158
161
  declare type TagPropsType<TTag extends keyof React.ReactHTML> = Omit<React.ComponentProps<TTag>, 'className' | 'style'>;
159
162
  interface Props<TTag extends keyof React.ReactHTML> extends BoxStyles, Hovered<BoxStyles> {
160
163
  children?: React.ReactNode | ((props: {