@nimbus-ds/menubutton 1.1.0 → 1.1.1-rc.3
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 +4 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
MenuButton component is meant to be used inside Menus and navigation, and allows the user to navigate between different sections of an application.
|
|
4
4
|
|
|
5
|
+
## 2023-03-13 `1.1.1`
|
|
6
|
+
|
|
7
|
+
- Add props documentation. ([#26](https://github.com/TiendaNube/nimbus-patterns/pull/26) by [@juanchigallego](https://github.com/juanchigallego))
|
|
8
|
+
|
|
5
9
|
## 2023-02-17 `1.1.0`
|
|
6
10
|
|
|
7
11
|
### 🎉 New features
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, ReactNode, FC } from "react";
|
|
2
2
|
import { IconProps } from "@nimbus-ds/icons";
|
|
3
3
|
export interface MenuButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/** Text label for the button */
|
|
4
5
|
label: string;
|
|
6
|
+
/** Function executed when clicking the button */
|
|
5
7
|
onClick?: () => void;
|
|
8
|
+
/** Sets an icon element on the left of the button */
|
|
6
9
|
startIcon?: FC<IconProps>;
|
|
10
|
+
/** Sets the state of the button as active/inactive */
|
|
7
11
|
active?: boolean;
|
|
12
|
+
/** Inner components displayed on the right of the button component */
|
|
8
13
|
children?: ReactNode;
|
|
9
14
|
}
|
|
10
15
|
export const MenuButton: React.FC<MenuButtonProps>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;AAGA,gCACE,SAAQ,qBAAqB,iBAAiB,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;
|
|
1
|
+
{"mappings":";;AAGA,gCACE,SAAQ,qBAAqB,iBAAiB,CAAC;IAC/C,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1B,sDAAsD;IACtD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;ACTD,OAAA,MAAM,YAAY,MAAM,EAAE,CAAC,eAAe,CAoDzC,CAAC;ACtDF,eAAe,UAAU,CAAC","sources":["packages/react/MenuButton/src/packages/react/MenuButton/src/menuButton.types.ts","packages/react/MenuButton/src/packages/react/MenuButton/src/MenuButton.tsx","packages/react/MenuButton/src/packages/react/MenuButton/src/index.ts","packages/react/MenuButton/src/index.ts"],"sourcesContent":[null,null,null,"import { MenuButton } from \"./MenuButton\";\n\nexport { MenuButton } from \"./MenuButton\";\nexport type { MenuButtonProps } from \"./menuButton.types\";\nexport default MenuButton;\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbus-ds/menubutton",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,5 +31,6 @@
|
|
|
31
31
|
"@nimbus-ds/components": "^2.8.0",
|
|
32
32
|
"@nimbus-ds/icons": "^1.0.0",
|
|
33
33
|
"@nimbus-ds/styles": "^6.11.0"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"stableVersion": "1.1.0"
|
|
35
36
|
}
|