@beweco/aurora-ui 0.1.57 → 0.1.59

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/dist/index.cjs.js CHANGED
@@ -2108,14 +2108,13 @@ var MenuNavList = React.forwardRef(function (_a, ref) {
2108
2108
  document.activeElement.blur();
2109
2109
  }
2110
2110
  }, [onSelect]);
2111
- // Renders a sub-item (text-only, hierarchy line, pill selected state).
2112
- // Aplicamos estilos de selección por key porque el Listbox anidado puede no inyectar data-selected.
2111
+ // Renders a sub-item (text-only, hierarchy line). Estilos de selección vía clase .selected en Menu.scss.
2113
2112
  var renderSubItem = React.useCallback(function (item, parentKey) {
2114
2113
  var _a;
2115
2114
  item.href; var itemProps = __rest(item, ["href"]);
2116
2115
  var isSelected = item.key === selectedKey;
2117
2116
  return (React.createElement(react.ListboxItem, __assign({}, itemProps, { key: item.key, textValue: item.title, title: item.title, startContent: null, endContent: (_a = item.endContent) !== null && _a !== void 0 ? _a : null, "aria-selected": isSelected, "data-menu-subitem-selected": isSelected ? "true" : "false", classNames: {
2118
- base: react.cn("min-h-9 rounded-large px-3 py-2 menu-nav-list__sub-item", "text-default-500 data-[hover=true]:text-default-700", "data-[selected=true]:bg-default-100 data-[selected=true]:text-foreground data-[selected=true]:font-semibold"),
2117
+ base: react.cn("min-h-9 rounded-large px-3 py-2 menu-nav-list__sub-item", "text-default-500 data-[hover=true]:text-default-700", isSelected && "selected"),
2119
2118
  }, onPress: function () { return handleItemPress(item); } })));
2120
2119
  }, [handleItemPress, selectedKey]);
2121
2120
  // Renders the item displayed inside the Popover when the menu is collapsed.
package/dist/index.esm.js CHANGED
@@ -2109,14 +2109,13 @@ var MenuNavList = React.forwardRef(function (_a, ref) {
2109
2109
  document.activeElement.blur();
2110
2110
  }
2111
2111
  }, [onSelect]);
2112
- // Renders a sub-item (text-only, hierarchy line, pill selected state).
2113
- // Aplicamos estilos de selección por key porque el Listbox anidado puede no inyectar data-selected.
2112
+ // Renders a sub-item (text-only, hierarchy line). Estilos de selección vía clase .selected en Menu.scss.
2114
2113
  var renderSubItem = React.useCallback(function (item, parentKey) {
2115
2114
  var _a;
2116
2115
  item.href; var itemProps = __rest(item, ["href"]);
2117
2116
  var isSelected = item.key === selectedKey;
2118
2117
  return (createElement(ListboxItem, __assign({}, itemProps, { key: item.key, textValue: item.title, title: item.title, startContent: null, endContent: (_a = item.endContent) !== null && _a !== void 0 ? _a : null, "aria-selected": isSelected, "data-menu-subitem-selected": isSelected ? "true" : "false", classNames: {
2119
- base: cn("min-h-9 rounded-large px-3 py-2 menu-nav-list__sub-item", "text-default-500 data-[hover=true]:text-default-700", "data-[selected=true]:bg-default-100 data-[selected=true]:text-foreground data-[selected=true]:font-semibold"),
2118
+ base: cn("min-h-9 rounded-large px-3 py-2 menu-nav-list__sub-item", "text-default-500 data-[hover=true]:text-default-700", isSelected && "selected"),
2120
2119
  }, onPress: function () { return handleItemPress(item); } })));
2121
2120
  }, [handleItemPress, selectedKey]);
2122
2121
  // Renders the item displayed inside the Popover when the menu is collapsed.
@@ -1 +1 @@
1
- {"version":3,"file":"MenuNavList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/_internal/menu-nav-list/MenuNavList.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,mGA2ZvB,CAAC"}
1
+ {"version":3,"file":"MenuNavList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/_internal/menu-nav-list/MenuNavList.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,mGAyZvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -1,3 +0,0 @@
1
- import { type MenuNavListItem } from "./_internal/menu-nav-list/MenuNavList.types";
2
- export declare const SIDEBAR_MENU_ITEMS: MenuNavListItem[];
3
- //# sourceMappingURL=sidebar-items.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar-items.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/sidebar-items.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEN,KAAK,eAAe,EACpB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAwH/C,CAAC"}