@nimbus-ds/sidebar 1.0.0 → 1.1.0-rc.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/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Sidebars navigation provides access to the parts within its application. The side sections have the supplementary content that is linked on the left or right side of the screen.
4
4
 
5
- ## 2022-10-26
5
+ ## 2022-11-16 `1.0.0`
6
6
 
7
7
  ### 📚 3rd party library updates
8
8
 
@@ -14,11 +14,11 @@ Sidebars navigation provides access to the parts within its application. The sid
14
14
 
15
15
  ### 🎉 New features
16
16
 
17
- - Added `position`, `padding`, `children`, `onRemove`, and `open` properties to the Component. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
17
+ - Added `position`, `padding`, `children`, `onRemove` and `open` properties to the Component. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
18
18
  - Added stories on Component. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
19
19
  - Created new `Sidebar.Header` subcomponent. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
20
- - Added `children`, and `title` properties to the Component `Sidebar.Header`. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
20
+ - Added `children` and `title` properties to the Component `Sidebar.Header`. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
21
21
  - Created new `Sidebar.Body` subcomponent. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
22
- - Added `children`, and `padding` properties to the Component `Sidebar.Body`. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
22
+ - Added `children` and `padding` properties to the Component `Sidebar.Body`. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
23
23
  - Created new `Sidebar.Footer` subcomponent. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
24
24
  - Added `children` properties to the Component `Sidebar.Footer`. ([#56](https://github.com/TiendaNube/nimbus-design-system/pull/56) by [@juniorconquista](https://github.com/juniorconquista))
@@ -1,5 +1,8 @@
1
1
  import { HTMLAttributes, ReactNode } from "react";
2
+ import { sidebar } from "@nimbus-ds/styles";
2
3
  export interface FooterProps extends HTMLAttributes<HTMLElement> {
3
4
  /** Footer content */
4
5
  children: ReactNode;
6
+ /** Sidebar padding */
7
+ padding?: keyof typeof sidebar.properties.padding;
5
8
  }
@@ -1,7 +1,10 @@
1
1
  import { HTMLAttributes, ReactNode } from "react";
2
+ import { sidebar } from "@nimbus-ds/styles";
2
3
  export interface HeaderProps extends HTMLAttributes<HTMLElement> {
3
4
  /** Header content */
4
5
  children?: ReactNode;
5
6
  /** Header title */
6
7
  title?: string;
8
+ /** Sidebar padding */
9
+ padding?: keyof typeof sidebar.properties.padding;
7
10
  }