@nimbus-ds/menubutton 1.1.1 → 1.1.2-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,6 +2,17 @@
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-20 `1.1.2`
6
+
7
+ ### 📚 3rd party library updates
8
+
9
+ - Updated `@nimbus-ds/components@3.0.0`. ([#27](https://github.com/TiendaNube/nimbus-patterns/pull/27) by [@juanchigallego](https://github.com/juanchigallego))
10
+ - Updated `@nimbus-ds/styles@7.0.0`. ([#27](https://github.com/TiendaNube/nimbus-patterns/pull/27) by [@juanchigallego](https://github.com/juanchigallego))
11
+
12
+ ### 💡 Others
13
+
14
+ - Updated props to match current versions of `components` and `styles`. ([#27](https://github.com/TiendaNube/nimbus-patterns/pull/27) by [@juanchigallego](https://github.com/juanchigallego))
15
+
5
16
  ## 2023-03-13 `1.1.1`
6
17
 
7
18
  ### 📚 Documentation
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { ButtonHTMLAttributes, ReactNode, FC } from "react";
2
2
  import { IconProps } from "@nimbus-ds/icons";
3
- export interface MenuButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ export interface MenuButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
4
4
  /** Text label for the button */
5
5
  label: string;
6
6
  /** Function executed when clicking the button */
@@ -1 +1 @@
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"}
1
+ {"mappings":";;AAGA,gCACE,SAAQ,IAAI,CAAC,qBAAqB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC9D,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/dist/index.js CHANGED
@@ -18,8 +18,8 @@ $parcel$export(module.exports, "MenuButton", () => $7f667c33a97c600f$export$266a
18
18
 
19
19
 
20
20
  const $7f667c33a97c600f$export$266a769812832828 = ({ className: _className , style: _style , label: label , onClick: onClick , startIcon: IconSrc , children: children , active: active = false , ...rest })=>{
21
- const activeColor = active ? "primary.interactive" : "primary.textHigh";
22
- const disabledColor = rest.disabled ? "neutral.textDisabled" : activeColor;
21
+ const activeColor = active ? "primary-interactive" : "primary-textHigh";
22
+ const disabledColor = rest.disabled ? "neutral-textDisabled" : activeColor;
23
23
  return /*#__PURE__*/ (0, ($parcel$interopDefault($kFxFh$react))).createElement((0, $kFxFh$nimbusdscomponents.Box), {
24
24
  ...rest,
25
25
  as: "button",
@@ -27,10 +27,10 @@ const $7f667c33a97c600f$export$266a769812832828 = ({ className: _className , sty
27
27
  onClick: onClick,
28
28
  alignItems: "center",
29
29
  backgroundColor: {
30
- xs: active ? "primary.surface" : "transparent",
31
- hover: "primary.surface",
32
- active: "primary.surfaceHighlight",
33
- disabled: "neutral.surfaceDisabled"
30
+ xs: active ? "primary-surface" : "transparent",
31
+ hover: "primary-surface",
32
+ active: "primary-surfaceHighlight",
33
+ disabled: "neutral-surfaceDisabled"
34
34
  },
35
35
  boxShadow: {
36
36
  focus: "focusRing"
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;ACAA;;AAMA,MAAM,4CAAwC,CAAC,EAC7C,WAAW,WAAU,EACrB,OAAO,OAAM,SACb,MAAK,WACL,QAAO,EACP,WAAW,QAAO,YAClB,SAAQ,UACR,SAAS,KAAK,GACd,GAAG,MACa,GATlB;IAUE,MAAM,cAAc,SAAS,wBAAwB,kBAAkB;IACvE,MAAM,gBAAgB,KAAK,QAAQ,GAAG,yBAAyB,WAAW;IAE1E,qBACE,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,CAAA,GAAA,6BAAG,AAAH,GAAG;QAAA,GACE,IAAI;QACR,IAAG;QACH,MAAK;QACL,SAAS;QACT,YAAW;QACX,iBAAiB;YACf,IAAI,SAAS,oBAAoB,aAAa;YAC9C,OAAO;YACP,QAAQ;YACR,UAAU;QACX;QACD,WAAW;YACT,OAAO;QACR;QACD,cAAa;QACb,aAAY;QACZ,QAAQ;YACN,IAAI;YACJ,UAAU;QACX;QACD,SAAQ;QACR,KAAI;QACJ,SAAQ;QACR,OAAM;QACN,oBAAmB;QACnB,oBAAmB;QACnB,0BAAyB;IAPxB,GASA,yBAAW,CAAA,GAAA,sCAAA,AAAA,EAAA,aAAA,CAAC,CAAA,GAAA,8BAAA,GAAI;QAAC,OAAO;QAAe,sBAAQ,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,SAAO,IAAA;IAAG,kBAC3D,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,CAAA,GAAA,6BAAG,AAAH,GAAG;QAAC,SAAQ;QAAc,MAAK;IAAhC,iBACE,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,CAAA,GAAA,8BAAI,AAAJ,GAAI;QAAC,UAAS;QAAO,OAAO;IAAa,GACvC,SAGJ;AAGP;AAEA,0CAAW,WAAW,GAAG;;AD5DzB;;IAIA,2CAAe,CAAA,GAAA,yCAAA","sources":["packages/react/MenuButton/src/index.ts","packages/react/MenuButton/src/MenuButton.tsx"],"sourcesContent":["import { MenuButton } from \"./MenuButton\";\n\nexport { MenuButton } from \"./MenuButton\";\nexport type { MenuButtonProps } from \"./menuButton.types\";\nexport default MenuButton;\n","import React from \"react\";\n\nimport { Text, Icon, Box } from \"@nimbus-ds/components\";\n\nimport { MenuButtonProps } from \"./menuButton.types\";\n\nconst MenuButton: React.FC<MenuButtonProps> = ({\n className: _className,\n style: _style,\n label,\n onClick,\n startIcon: IconSrc,\n children,\n active = false,\n ...rest\n}: MenuButtonProps) => {\n const activeColor = active ? \"primary.interactive\" : \"primary.textHigh\";\n const disabledColor = rest.disabled ? \"neutral.textDisabled\" : activeColor;\n\n return (\n <Box\n {...rest}\n as=\"button\"\n type=\"button\"\n onClick={onClick}\n alignItems=\"center\"\n backgroundColor={{\n xs: active ? \"primary.surface\" : \"transparent\",\n hover: \"primary.surface\",\n active: \"primary.surfaceHighlight\",\n disabled: \"neutral.surfaceDisabled\",\n }}\n boxShadow={{\n focus: \"focusRing\",\n }}\n borderRadius=\".5rem\"\n borderWidth=\"0\"\n cursor={{\n xs: \"pointer\",\n disabled: \"not-allowed\",\n }}\n display=\"flex\"\n gap=\"2\"\n padding=\"2\"\n width=\"100%\"\n transitionProperty=\"all\"\n transitionDuration=\"base\"\n transitionTimingFunction=\"ease-in-out\"\n >\n {IconSrc && <Icon color={disabledColor} source={<IconSrc />} />}\n <Box display=\"inline-flex\" flex=\"1\">\n <Text fontSize=\"base\" color={disabledColor}>\n {label}\n </Text>\n </Box>\n {children}\n </Box>\n );\n};\n\nMenuButton.displayName = \"MenuButton\";\n\nexport { MenuButton };\n"],"names":[],"version":3,"file":"index.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;ACAA;;AAMA,MAAM,4CAAwC,CAAC,EAC7C,WAAW,WAAU,EACrB,OAAO,OAAM,SACb,MAAK,WACL,QAAO,EACP,WAAW,QAAO,YAClB,SAAQ,UACR,SAAS,KAAK,GACd,GAAG,MACa,GATlB;IAUE,MAAM,cAAc,SAAS,wBAAwB,kBAAkB;IACvE,MAAM,gBAAgB,KAAK,QAAQ,GAAG,yBAAyB,WAAW;IAE1E,qBACE,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,CAAA,GAAA,6BAAG,AAAH,GAAG;QAAA,GACE,IAAI;QACR,IAAG;QACH,MAAK;QACL,SAAS;QACT,YAAW;QACX,iBAAiB;YACf,IAAI,SAAS,oBAAoB,aAAa;YAC9C,OAAO;YACP,QAAQ;YACR,UAAU;QACX;QACD,WAAW;YACT,OAAO;QACR;QACD,cAAa;QACb,aAAY;QACZ,QAAQ;YACN,IAAI;YACJ,UAAU;QACX;QACD,SAAQ;QACR,KAAI;QACJ,SAAQ;QACR,OAAM;QACN,oBAAmB;QACnB,oBAAmB;QACnB,0BAAyB;IAPxB,GASA,yBAAW,CAAA,GAAA,sCAAA,AAAA,EAAA,aAAA,CAAC,CAAA,GAAA,8BAAA,GAAI;QAAC,OAAO;QAAe,sBAAQ,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,SAAO,IAAA;IAAG,kBAC3D,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,CAAA,GAAA,6BAAG,AAAH,GAAG;QAAC,SAAQ;QAAc,MAAK;IAAhC,iBACE,CAAA,GAAA,sCAAA,EAAA,aAAA,CAAC,CAAA,GAAA,8BAAI,AAAJ,GAAI;QAAC,UAAS;QAAO,OAAO;IAAa,GACvC,SAGJ;AAGP;AAEA,0CAAW,WAAW,GAAG;;AD5DzB;;IAIA,2CAAe,CAAA,GAAA,yCAAA","sources":["packages/react/MenuButton/src/index.ts","packages/react/MenuButton/src/MenuButton.tsx"],"sourcesContent":["import { MenuButton } from \"./MenuButton\";\n\nexport { MenuButton } from \"./MenuButton\";\nexport type { MenuButtonProps } from \"./menuButton.types\";\nexport default MenuButton;\n","import React from \"react\";\n\nimport { Text, Icon, Box } from \"@nimbus-ds/components\";\n\nimport { MenuButtonProps } from \"./menuButton.types\";\n\nconst MenuButton: React.FC<MenuButtonProps> = ({\n className: _className,\n style: _style,\n label,\n onClick,\n startIcon: IconSrc,\n children,\n active = false,\n ...rest\n}: MenuButtonProps) => {\n const activeColor = active ? \"primary-interactive\" : \"primary-textHigh\";\n const disabledColor = rest.disabled ? \"neutral-textDisabled\" : activeColor;\n\n return (\n <Box\n {...rest}\n as=\"button\"\n type=\"button\"\n onClick={onClick}\n alignItems=\"center\"\n backgroundColor={{\n xs: active ? \"primary-surface\" : \"transparent\",\n hover: \"primary-surface\",\n active: \"primary-surfaceHighlight\",\n disabled: \"neutral-surfaceDisabled\",\n }}\n boxShadow={{\n focus: \"focusRing\",\n }}\n borderRadius=\".5rem\"\n borderWidth=\"0\"\n cursor={{\n xs: \"pointer\",\n disabled: \"not-allowed\",\n }}\n display=\"flex\"\n gap=\"2\"\n padding=\"2\"\n width=\"100%\"\n transitionProperty=\"all\"\n transitionDuration=\"base\"\n transitionTimingFunction=\"ease-in-out\"\n >\n {IconSrc && <Icon color={disabledColor} source={<IconSrc />} />}\n <Box display=\"inline-flex\" flex=\"1\">\n <Text fontSize=\"base\" color={disabledColor}>\n {label}\n </Text>\n </Box>\n {children}\n </Box>\n );\n};\n\nMenuButton.displayName = \"MenuButton\";\n\nexport { MenuButton };\n"],"names":[],"version":3,"file":"index.js.map"}
@@ -4,8 +4,8 @@ import {Box as $hq6vK$Box, Icon as $hq6vK$Icon, Text as $hq6vK$Text} from "@nimb
4
4
 
5
5
 
6
6
  const $a1957ce755237e22$export$266a769812832828 = ({ className: _className , style: _style , label: label , onClick: onClick , startIcon: IconSrc , children: children , active: active = false , ...rest })=>{
7
- const activeColor = active ? "primary.interactive" : "primary.textHigh";
8
- const disabledColor = rest.disabled ? "neutral.textDisabled" : activeColor;
7
+ const activeColor = active ? "primary-interactive" : "primary-textHigh";
8
+ const disabledColor = rest.disabled ? "neutral-textDisabled" : activeColor;
9
9
  return /*#__PURE__*/ (0, $hq6vK$react).createElement((0, $hq6vK$Box), {
10
10
  ...rest,
11
11
  as: "button",
@@ -13,10 +13,10 @@ const $a1957ce755237e22$export$266a769812832828 = ({ className: _className , sty
13
13
  onClick: onClick,
14
14
  alignItems: "center",
15
15
  backgroundColor: {
16
- xs: active ? "primary.surface" : "transparent",
17
- hover: "primary.surface",
18
- active: "primary.surfaceHighlight",
19
- disabled: "neutral.surfaceDisabled"
16
+ xs: active ? "primary-surface" : "transparent",
17
+ hover: "primary-surface",
18
+ active: "primary-surfaceHighlight",
19
+ disabled: "neutral-surfaceDisabled"
20
20
  },
21
21
  boxShadow: {
22
22
  focus: "focusRing"
@@ -1 +1 @@
1
- {"mappings":";;;ACAA;;AAMA,MAAM,4CAAwC,CAAC,EAC7C,WAAW,WAAU,EACrB,OAAO,OAAM,SACb,MAAK,WACL,QAAO,EACP,WAAW,QAAO,YAClB,SAAQ,UACR,SAAS,KAAK,GACd,GAAG,MACa,GATlB;IAUE,MAAM,cAAc,SAAS,wBAAwB,kBAAkB;IACvE,MAAM,gBAAgB,KAAK,QAAQ,GAAG,yBAAyB,WAAW;IAE1E,qBACE,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,CAAA,GAAA,UAAG,AAAH,GAAG;QAAA,GACE,IAAI;QACR,IAAG;QACH,MAAK;QACL,SAAS;QACT,YAAW;QACX,iBAAiB;YACf,IAAI,SAAS,oBAAoB,aAAa;YAC9C,OAAO;YACP,QAAQ;YACR,UAAU;QACX;QACD,WAAW;YACT,OAAO;QACR;QACD,cAAa;QACb,aAAY;QACZ,QAAQ;YACN,IAAI;YACJ,UAAU;QACX;QACD,SAAQ;QACR,KAAI;QACJ,SAAQ;QACR,OAAM;QACN,oBAAmB;QACnB,oBAAmB;QACnB,0BAAyB;IAPxB,GASA,yBAAW,CAAA,GAAA,YAAA,AAAA,EAAA,aAAA,CAAC,CAAA,GAAA,WAAA,GAAI;QAAC,OAAO;QAAe,sBAAQ,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,SAAO,IAAA;IAAG,kBAC3D,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,CAAA,GAAA,UAAG,AAAH,GAAG;QAAC,SAAQ;QAAc,MAAK;IAAhC,iBACE,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,CAAA,GAAA,WAAI,AAAJ,GAAI;QAAC,UAAS;QAAO,OAAO;IAAa,GACvC,SAGJ;AAGP;AAEA,0CAAW,WAAW,GAAG;;AD5DzB;;IAIA,2CAAe,CAAA,GAAA,yCAAA","sources":["packages/react/MenuButton/src/index.ts","packages/react/MenuButton/src/MenuButton.tsx"],"sourcesContent":["import { MenuButton } from \"./MenuButton\";\n\nexport { MenuButton } from \"./MenuButton\";\nexport type { MenuButtonProps } from \"./menuButton.types\";\nexport default MenuButton;\n","import React from \"react\";\n\nimport { Text, Icon, Box } from \"@nimbus-ds/components\";\n\nimport { MenuButtonProps } from \"./menuButton.types\";\n\nconst MenuButton: React.FC<MenuButtonProps> = ({\n className: _className,\n style: _style,\n label,\n onClick,\n startIcon: IconSrc,\n children,\n active = false,\n ...rest\n}: MenuButtonProps) => {\n const activeColor = active ? \"primary.interactive\" : \"primary.textHigh\";\n const disabledColor = rest.disabled ? \"neutral.textDisabled\" : activeColor;\n\n return (\n <Box\n {...rest}\n as=\"button\"\n type=\"button\"\n onClick={onClick}\n alignItems=\"center\"\n backgroundColor={{\n xs: active ? \"primary.surface\" : \"transparent\",\n hover: \"primary.surface\",\n active: \"primary.surfaceHighlight\",\n disabled: \"neutral.surfaceDisabled\",\n }}\n boxShadow={{\n focus: \"focusRing\",\n }}\n borderRadius=\".5rem\"\n borderWidth=\"0\"\n cursor={{\n xs: \"pointer\",\n disabled: \"not-allowed\",\n }}\n display=\"flex\"\n gap=\"2\"\n padding=\"2\"\n width=\"100%\"\n transitionProperty=\"all\"\n transitionDuration=\"base\"\n transitionTimingFunction=\"ease-in-out\"\n >\n {IconSrc && <Icon color={disabledColor} source={<IconSrc />} />}\n <Box display=\"inline-flex\" flex=\"1\">\n <Text fontSize=\"base\" color={disabledColor}>\n {label}\n </Text>\n </Box>\n {children}\n </Box>\n );\n};\n\nMenuButton.displayName = \"MenuButton\";\n\nexport { MenuButton };\n"],"names":[],"version":3,"file":"index.module.js.map"}
1
+ {"mappings":";;;ACAA;;AAMA,MAAM,4CAAwC,CAAC,EAC7C,WAAW,WAAU,EACrB,OAAO,OAAM,SACb,MAAK,WACL,QAAO,EACP,WAAW,QAAO,YAClB,SAAQ,UACR,SAAS,KAAK,GACd,GAAG,MACa,GATlB;IAUE,MAAM,cAAc,SAAS,wBAAwB,kBAAkB;IACvE,MAAM,gBAAgB,KAAK,QAAQ,GAAG,yBAAyB,WAAW;IAE1E,qBACE,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,CAAA,GAAA,UAAG,AAAH,GAAG;QAAA,GACE,IAAI;QACR,IAAG;QACH,MAAK;QACL,SAAS;QACT,YAAW;QACX,iBAAiB;YACf,IAAI,SAAS,oBAAoB,aAAa;YAC9C,OAAO;YACP,QAAQ;YACR,UAAU;QACX;QACD,WAAW;YACT,OAAO;QACR;QACD,cAAa;QACb,aAAY;QACZ,QAAQ;YACN,IAAI;YACJ,UAAU;QACX;QACD,SAAQ;QACR,KAAI;QACJ,SAAQ;QACR,OAAM;QACN,oBAAmB;QACnB,oBAAmB;QACnB,0BAAyB;IAPxB,GASA,yBAAW,CAAA,GAAA,YAAA,AAAA,EAAA,aAAA,CAAC,CAAA,GAAA,WAAA,GAAI;QAAC,OAAO;QAAe,sBAAQ,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,SAAO,IAAA;IAAG,kBAC3D,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,CAAA,GAAA,UAAG,AAAH,GAAG;QAAC,SAAQ;QAAc,MAAK;IAAhC,iBACE,CAAA,GAAA,YAAA,EAAA,aAAA,CAAC,CAAA,GAAA,WAAI,AAAJ,GAAI;QAAC,UAAS;QAAO,OAAO;IAAa,GACvC,SAGJ;AAGP;AAEA,0CAAW,WAAW,GAAG;;AD5DzB;;IAIA,2CAAe,CAAA,GAAA,yCAAA","sources":["packages/react/MenuButton/src/index.ts","packages/react/MenuButton/src/MenuButton.tsx"],"sourcesContent":["import { MenuButton } from \"./MenuButton\";\n\nexport { MenuButton } from \"./MenuButton\";\nexport type { MenuButtonProps } from \"./menuButton.types\";\nexport default MenuButton;\n","import React from \"react\";\n\nimport { Text, Icon, Box } from \"@nimbus-ds/components\";\n\nimport { MenuButtonProps } from \"./menuButton.types\";\n\nconst MenuButton: React.FC<MenuButtonProps> = ({\n className: _className,\n style: _style,\n label,\n onClick,\n startIcon: IconSrc,\n children,\n active = false,\n ...rest\n}: MenuButtonProps) => {\n const activeColor = active ? \"primary-interactive\" : \"primary-textHigh\";\n const disabledColor = rest.disabled ? \"neutral-textDisabled\" : activeColor;\n\n return (\n <Box\n {...rest}\n as=\"button\"\n type=\"button\"\n onClick={onClick}\n alignItems=\"center\"\n backgroundColor={{\n xs: active ? \"primary-surface\" : \"transparent\",\n hover: \"primary-surface\",\n active: \"primary-surfaceHighlight\",\n disabled: \"neutral-surfaceDisabled\",\n }}\n boxShadow={{\n focus: \"focusRing\",\n }}\n borderRadius=\".5rem\"\n borderWidth=\"0\"\n cursor={{\n xs: \"pointer\",\n disabled: \"not-allowed\",\n }}\n display=\"flex\"\n gap=\"2\"\n padding=\"2\"\n width=\"100%\"\n transitionProperty=\"all\"\n transitionDuration=\"base\"\n transitionTimingFunction=\"ease-in-out\"\n >\n {IconSrc && <Icon color={disabledColor} source={<IconSrc />} />}\n <Box display=\"inline-flex\" flex=\"1\">\n <Text fontSize=\"base\" color={disabledColor}>\n {label}\n </Text>\n </Box>\n {children}\n </Box>\n );\n};\n\nMenuButton.displayName = \"MenuButton\";\n\nexport { MenuButton };\n"],"names":[],"version":3,"file":"index.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/menubutton",
3
- "version": "1.1.1",
3
+ "version": "1.1.2-rc.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -28,8 +28,9 @@
28
28
  "url": "https://github.com/TiendaNube/nimbus-patterns/issues"
29
29
  },
30
30
  "dependencies": {
31
- "@nimbus-ds/components": "^2.8.0",
31
+ "@nimbus-ds/components": "^3.0.0-rc.3",
32
32
  "@nimbus-ds/icons": "^1.0.0",
33
- "@nimbus-ds/styles": "^6.11.0"
34
- }
33
+ "@nimbus-ds/styles": "^7.0.0-rc.3"
34
+ },
35
+ "stableVersion": "1.1.1"
35
36
  }