@nimbus-ds/sidebar 1.0.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.
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes, ReactNode } from "react";
2
+ import { sidebar } from "@nimbus-ds/styles";
3
+ import { Body, Footer, Header } from "./components";
4
+ export interface SidebarComponents {
5
+ Body: typeof Body;
6
+ Footer: typeof Footer;
7
+ Header: typeof Header;
8
+ }
9
+ export interface SidebarProps extends HTMLAttributes<HTMLElement> {
10
+ /** Sidebar position */
11
+ position?: "right" | "left";
12
+ /** Sidebar padding */
13
+ padding?: keyof typeof sidebar.properties.padding;
14
+ /** Sidebar body content */
15
+ children: ReactNode;
16
+ /** Function to be passed on actioning the dismiss button */
17
+ onRemove?: () => void;
18
+ /** Controls the menu display */
19
+ open?: boolean;
20
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@nimbus-ds/sidebar",
3
+ "version": "1.0.0-rc.1",
4
+ "license": "MIT",
5
+ "source": "src/index.ts",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.module.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
13
+ "sideEffects": false,
14
+ "scripts": {
15
+ "build": "yarn build:types && webpack",
16
+ "build:types": "tsc --emitDeclarationOnly --declaration true --declarationDir ./dist --baseUrl ../../../",
17
+ "clean": "rm -rf dist",
18
+ "version": "yarn version"
19
+ },
20
+ "dependencies": {
21
+ "@nimbus-ds/styles": "4.15.0-rc.1",
22
+ "@nimbus-ds/title": "1.4.0"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^16.8 || ^17.0 || ^18.0",
26
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
27
+ },
28
+ "homepage": "https://nimbus.nuvemshop.com.br/documentation",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/TiendaNube/nimbus-design-system.git"
32
+ },
33
+ "bugs": {
34
+ "url": "https://github.com/TiendaNube/nimbus-design-system/issues"
35
+ },
36
+ "devDependencies": {
37
+ "@nimbus-ds/box": "1.0.2-rc.1",
38
+ "@nimbus-ds/button": "1.0.0",
39
+ "@nimbus-ds/stack": "1.0.1",
40
+ "@nimbus-ds/text": "4.2.0",
41
+ "terser-webpack-plugin": "^5.3.5",
42
+ "ts-loader": "^9.3.1",
43
+ "typescript": "^4.7.4",
44
+ "webpack": "^5.74.0",
45
+ "webpack-cli": "^4.10.0"
46
+ },
47
+ "stableVersion": "0.0.0"
48
+ }