@nimbus-ds/box 2.5.0-rc.1 → 2.5.0-rc.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  A low-level utility component that accepts styled system props to enable custom theme-aware styling
4
4
 
5
+ ## 2023-02-10 `2.5.0`
6
+
7
+ ### 🎉 New features
8
+
9
+ - Added `none` as option in `display` sprinkles type. ([#88](https://github.com/TiendaNube/nimbus-design-system/pull/88) by [@juanchigallego](https://github.com/juanchigallego))
10
+
5
11
  ## 2023-02-10 `2.4.0`
6
12
 
7
13
  ### 🎉 New features
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Generated by dts-bundle-generator v7.1.0
2
2
 
3
3
  import React from 'react';
4
- import { HTMLAttributes, ReactNode } from 'react';
4
+ import { CSSProperties, ReactNode } from 'react';
5
5
 
6
6
  export type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
7
7
  export type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
@@ -37,7 +37,7 @@ export interface Conditions<T> {
37
37
  export type BorderStyle = "solid" | "none" | "hidden" | "dashed" | "dotted";
38
38
  export type BoxSizing = "border-box" | "content-box";
39
39
  export type Cursor = "auto" | "pointer" | "not-allowed" | "grab";
40
- export type Display = "block" | "flex" | "inline-flex" | "grid" | "inline-grid";
40
+ export type Display = "block" | "flex" | "inline-flex" | "grid" | "inline-grid" | "none";
41
41
  export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
42
42
  export type FlexDirection = "row" | "row-reverse" | "column" | "column-reverse";
43
43
  export type JustifyContent = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
@@ -266,8 +266,9 @@ export interface BoxSprinkle {
266
266
  transitionDelay?: string | BoxConditions<string>;
267
267
  transitionDuration?: TransitionDurationProperties | BoxConditions<TransitionDurationProperties>;
268
268
  }
269
- export type BoxExtends = BoxSprinkle & HTMLAttributes<HTMLElement>;
270
- export interface BoxProps extends BoxExtends {
269
+ export interface BoxProps extends BoxSprinkle {
270
+ className?: string;
271
+ style?: CSSProperties;
271
272
  /** Element to be rendered inside the Box component */
272
273
  children?: ReactNode;
273
274
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/box",
3
- "version": "2.5.0-rc.1",
3
+ "version": "2.5.0-rc.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [