@beweco/aurora-ui 0.1.52 → 0.1.53

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
@@ -1674,20 +1674,23 @@ var H4 = function (_a) {
1674
1674
  * ```
1675
1675
  */
1676
1676
  var BreadcrumbsComponent = function (_a) {
1677
- var items = _a.items, children = _a.children, heroUIProps = __rest(_a, ["items", "children"]);
1677
+ var items = _a.items, children = _a.children, onItemClick = _a.onItemClick, heroUIProps = __rest(_a, ["items", "children", "onItemClick"]);
1678
1678
  return (jsxRuntime.jsx(react.Breadcrumbs, __assign({}, heroUIProps, { children: items
1679
- ? items.map(function (item, index) { return (jsxRuntime.jsx(react.BreadcrumbItem, { href: item.href, isCurrent: item.isCurrent, children: item.label }, "".concat(item.href || item.label, "-").concat(index))); })
1679
+ ? items.map(function (item, index) { return (jsxRuntime.jsx(react.BreadcrumbItem, __assign({}, (onItemClick && item.href && !item.isCurrent
1680
+ ? { onPress: function () { return onItemClick(item.href); } }
1681
+ : { href: item.href }), { isCurrent: item.isCurrent, children: item.label }), "".concat(item.href || item.label, "-").concat(index))); })
1680
1682
  : children })));
1681
1683
  };
1682
1684
 
1683
1685
  var ConfigMenu = function (_a) {
1684
- var _b;
1685
- var options = _a.options, onLogout = _a.onLogout, translations = _a.translations;
1686
- return (jsxRuntime.jsxs(react.Dropdown, { className: "min-w-40", children: [jsxRuntime.jsx(react.DropdownTrigger, { children: jsxRuntime.jsx(react.Button, { isIconOnly: true, color: "default", startContent: jsxRuntime.jsx(IconComponent, { icon: "solar:settings-linear" }) }) }), jsxRuntime.jsxs(react.DropdownMenu, { "aria-label": "Configuration", children: [jsxRuntime.jsx(react.DropdownSection, { showDivider: true, className: "mb-0", children: options.map(function (item) { return (jsxRuntime.jsx(react.DropdownItem, { href: item.href, className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1686
+ var options = _a.options, onLogout = _a.onLogout, onOptionSelect = _a.onOptionSelect, translations = _a.translations;
1687
+ return (jsxRuntime.jsxs(react.Dropdown, { className: "min-w-40", children: [jsxRuntime.jsx(react.DropdownTrigger, { children: jsxRuntime.jsx(react.Button, { isIconOnly: true, color: "default", startContent: jsxRuntime.jsx(IconComponent, { icon: "solar:settings-linear" }) }) }), jsxRuntime.jsxs(react.DropdownMenu, { "aria-label": "Configuration", children: [jsxRuntime.jsx(react.DropdownSection, { showDivider: true, className: "mb-0", children: options.map(function (item) { return (jsxRuntime.jsx(react.DropdownItem, __assign({}, (onOptionSelect
1688
+ ? { onPress: function () { return onOptionSelect(item.href); } }
1689
+ : { href: item.href }), { className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1687
1690
  base: "text-default-500",
1688
- }, startContent: item.icon ? jsxRuntime.jsx(IconComponent, { icon: item.icon }) : undefined, children: item.label }, item.label)); }) }), jsxRuntime.jsx(react.DropdownSection, { children: jsxRuntime.jsx(react.DropdownItem, { onPress: onLogout, className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1691
+ }, startContent: item.icon ? jsxRuntime.jsx(IconComponent, { icon: item.icon }) : undefined, children: item.label }), item.label)); }) }), jsxRuntime.jsx(react.DropdownSection, { children: jsxRuntime.jsx(react.DropdownItem, { onPress: onLogout, className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1689
1692
  base: "text-default-500",
1690
- }, startContent: jsxRuntime.jsx(IconComponent, { icon: "solar:logout-2-linear" }), children: (_b = translations === null || translations === void 0 ? void 0 : translations.logout) !== null && _b !== void 0 ? _b : "Logout" }, "logout") })] })] }));
1693
+ }, startContent: jsxRuntime.jsx(IconComponent, { icon: "solar:logout-2-linear" }), children: translations === null || translations === void 0 ? void 0 : translations.logout }, "logout") })] })] }));
1691
1694
  };
1692
1695
  ConfigMenu.displayName = "ConfigMenu";
1693
1696
 
@@ -1700,9 +1703,13 @@ var NotificationButton = function (_a) {
1700
1703
  };
1701
1704
  NotificationButton.displayName = "NotificationButton";
1702
1705
 
1706
+ var DEFAULT_TRANSLATIONS$3 = {
1707
+ logout: "Cerrar sesión",
1708
+ };
1703
1709
  var HeaderComponent = function (_a) {
1704
- var notificationCount = _a.notificationCount, options = _a.options, onMenuClick = _a.onMenuClick, onLogout = _a.onLogout, translations = _a.translations, breadcrumbs = _a.breadcrumbs, onNotificationClick = _a.onNotificationClick;
1705
- return (jsxRuntime.jsx("header", { className: "header__container", children: jsxRuntime.jsxs("div", { className: "flex items-center justify-between w-full", children: [jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [jsxRuntime.jsx(react.Button, { className: "sm:hidden", isIconOnly: true, variant: "light", startContent: jsxRuntime.jsx(IconComponent, { icon: "solar:hamburger-menu-linear" }), onPress: onMenuClick }), breadcrumbs && breadcrumbs.length > 0 && (jsxRuntime.jsx(BreadcrumbsComponent, { items: breadcrumbs }))] }), jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [jsxRuntime.jsx(NotificationButton, { notificationCount: notificationCount, onPress: onNotificationClick }), jsxRuntime.jsx(ConfigMenu, { options: options, onLogout: onLogout, translations: translations })] })] }) }));
1710
+ var notificationCount = _a.notificationCount, options = _a.options, onMenuClick = _a.onMenuClick, onLogout = _a.onLogout, _b = _a.translations, translations = _b === void 0 ? {} : _b, breadcrumbs = _a.breadcrumbs, onNotificationClick = _a.onNotificationClick, onOptionSelect = _a.onOptionSelect, onBreadcrumbClick = _a.onBreadcrumbClick;
1711
+ var t = __assign(__assign({}, DEFAULT_TRANSLATIONS$3), translations);
1712
+ return (jsxRuntime.jsx("header", { className: "header__container", children: jsxRuntime.jsxs("div", { className: "flex items-center justify-between w-full", children: [jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [jsxRuntime.jsx(react.Button, { className: "sm:hidden", isIconOnly: true, variant: "light", startContent: jsxRuntime.jsx(IconComponent, { icon: "solar:hamburger-menu-linear" }), onPress: onMenuClick }), breadcrumbs && breadcrumbs.length > 0 && (jsxRuntime.jsx(BreadcrumbsComponent, { items: breadcrumbs, onItemClick: onBreadcrumbClick }))] }), jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [jsxRuntime.jsx(NotificationButton, { notificationCount: notificationCount, onPress: onNotificationClick }), jsxRuntime.jsx(ConfigMenu, { options: options, onLogout: onLogout, onOptionSelect: onOptionSelect, translations: t })] })] }) }));
1706
1713
  };
1707
1714
  HeaderComponent.displayName = "Header";
1708
1715
 
package/dist/index.esm.js CHANGED
@@ -1675,20 +1675,23 @@ var H4 = function (_a) {
1675
1675
  * ```
1676
1676
  */
1677
1677
  var BreadcrumbsComponent = function (_a) {
1678
- var items = _a.items, children = _a.children, heroUIProps = __rest(_a, ["items", "children"]);
1678
+ var items = _a.items, children = _a.children, onItemClick = _a.onItemClick, heroUIProps = __rest(_a, ["items", "children", "onItemClick"]);
1679
1679
  return (jsx(Breadcrumbs, __assign({}, heroUIProps, { children: items
1680
- ? items.map(function (item, index) { return (jsx(BreadcrumbItem, { href: item.href, isCurrent: item.isCurrent, children: item.label }, "".concat(item.href || item.label, "-").concat(index))); })
1680
+ ? items.map(function (item, index) { return (jsx(BreadcrumbItem, __assign({}, (onItemClick && item.href && !item.isCurrent
1681
+ ? { onPress: function () { return onItemClick(item.href); } }
1682
+ : { href: item.href }), { isCurrent: item.isCurrent, children: item.label }), "".concat(item.href || item.label, "-").concat(index))); })
1681
1683
  : children })));
1682
1684
  };
1683
1685
 
1684
1686
  var ConfigMenu = function (_a) {
1685
- var _b;
1686
- var options = _a.options, onLogout = _a.onLogout, translations = _a.translations;
1687
- return (jsxs(Dropdown, { className: "min-w-40", children: [jsx(DropdownTrigger, { children: jsx(Button$1, { isIconOnly: true, color: "default", startContent: jsx(IconComponent, { icon: "solar:settings-linear" }) }) }), jsxs(DropdownMenu, { "aria-label": "Configuration", children: [jsx(DropdownSection, { showDivider: true, className: "mb-0", children: options.map(function (item) { return (jsx(DropdownItem, { href: item.href, className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1687
+ var options = _a.options, onLogout = _a.onLogout, onOptionSelect = _a.onOptionSelect, translations = _a.translations;
1688
+ return (jsxs(Dropdown, { className: "min-w-40", children: [jsx(DropdownTrigger, { children: jsx(Button$1, { isIconOnly: true, color: "default", startContent: jsx(IconComponent, { icon: "solar:settings-linear" }) }) }), jsxs(DropdownMenu, { "aria-label": "Configuration", children: [jsx(DropdownSection, { showDivider: true, className: "mb-0", children: options.map(function (item) { return (jsx(DropdownItem, __assign({}, (onOptionSelect
1689
+ ? { onPress: function () { return onOptionSelect(item.href); } }
1690
+ : { href: item.href }), { className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1688
1691
  base: "text-default-500",
1689
- }, startContent: item.icon ? jsx(IconComponent, { icon: item.icon }) : undefined, children: item.label }, item.label)); }) }), jsx(DropdownSection, { children: jsx(DropdownItem, { onPress: onLogout, className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1692
+ }, startContent: item.icon ? jsx(IconComponent, { icon: item.icon }) : undefined, children: item.label }), item.label)); }) }), jsx(DropdownSection, { children: jsx(DropdownItem, { onPress: onLogout, className: "data-[hover=true]:bg-primary-100 data-[hover=true]:text-default-700", classNames: {
1690
1693
  base: "text-default-500",
1691
- }, startContent: jsx(IconComponent, { icon: "solar:logout-2-linear" }), children: (_b = translations === null || translations === void 0 ? void 0 : translations.logout) !== null && _b !== void 0 ? _b : "Logout" }, "logout") })] })] }));
1694
+ }, startContent: jsx(IconComponent, { icon: "solar:logout-2-linear" }), children: translations === null || translations === void 0 ? void 0 : translations.logout }, "logout") })] })] }));
1692
1695
  };
1693
1696
  ConfigMenu.displayName = "ConfigMenu";
1694
1697
 
@@ -1701,9 +1704,13 @@ var NotificationButton = function (_a) {
1701
1704
  };
1702
1705
  NotificationButton.displayName = "NotificationButton";
1703
1706
 
1707
+ var DEFAULT_TRANSLATIONS$3 = {
1708
+ logout: "Cerrar sesión",
1709
+ };
1704
1710
  var HeaderComponent = function (_a) {
1705
- var notificationCount = _a.notificationCount, options = _a.options, onMenuClick = _a.onMenuClick, onLogout = _a.onLogout, translations = _a.translations, breadcrumbs = _a.breadcrumbs, onNotificationClick = _a.onNotificationClick;
1706
- return (jsx("header", { className: "header__container", children: jsxs("div", { className: "flex items-center justify-between w-full", children: [jsxs("div", { className: "flex items-center gap-4", children: [jsx(Button$1, { className: "sm:hidden", isIconOnly: true, variant: "light", startContent: jsx(IconComponent, { icon: "solar:hamburger-menu-linear" }), onPress: onMenuClick }), breadcrumbs && breadcrumbs.length > 0 && (jsx(BreadcrumbsComponent, { items: breadcrumbs }))] }), jsxs("div", { className: "flex items-center gap-4", children: [jsx(NotificationButton, { notificationCount: notificationCount, onPress: onNotificationClick }), jsx(ConfigMenu, { options: options, onLogout: onLogout, translations: translations })] })] }) }));
1711
+ var notificationCount = _a.notificationCount, options = _a.options, onMenuClick = _a.onMenuClick, onLogout = _a.onLogout, _b = _a.translations, translations = _b === void 0 ? {} : _b, breadcrumbs = _a.breadcrumbs, onNotificationClick = _a.onNotificationClick, onOptionSelect = _a.onOptionSelect, onBreadcrumbClick = _a.onBreadcrumbClick;
1712
+ var t = __assign(__assign({}, DEFAULT_TRANSLATIONS$3), translations);
1713
+ return (jsx("header", { className: "header__container", children: jsxs("div", { className: "flex items-center justify-between w-full", children: [jsxs("div", { className: "flex items-center gap-4", children: [jsx(Button$1, { className: "sm:hidden", isIconOnly: true, variant: "light", startContent: jsx(IconComponent, { icon: "solar:hamburger-menu-linear" }), onPress: onMenuClick }), breadcrumbs && breadcrumbs.length > 0 && (jsx(BreadcrumbsComponent, { items: breadcrumbs, onItemClick: onBreadcrumbClick }))] }), jsxs("div", { className: "flex items-center gap-4", children: [jsx(NotificationButton, { notificationCount: notificationCount, onPress: onNotificationClick }), jsx(ConfigMenu, { options: options, onLogout: onLogout, onOptionSelect: onOptionSelect, translations: t })] })] }) }));
1707
1714
  };
1708
1715
  HeaderComponent.displayName = "Header";
1709
1716
 
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAoBpE,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuBpE,CAAC"}
@@ -39,5 +39,10 @@ export interface BreadcrumbsComponentProps extends HeroUIBreadcrumbsProps {
39
39
  * Elementos hijo (BreadcrumbItem components)
40
40
  */
41
41
  children?: React.ReactNode;
42
+ /**
43
+ * Callback for programmatic navigation when a breadcrumb item is clicked.
44
+ * When provided, replaces native anchor navigation with onPress.
45
+ */
46
+ onItemClick?: (href: string) => void;
42
47
  }
43
48
  //# sourceMappingURL=Breadcrumbs.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.types.d.ts","sourceRoot":"","sources":["../../../../src/components/breadcrumbs/Breadcrumbs.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,IAAI,yBAAyB,EAChD,gBAAgB,IAAI,sBAAsB,EAC1C,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,WAAW,4BAChB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC;IACnD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACxE;;;OAGG;IACH,KAAK,CAAC,EAAE,4BAA4B,EAAE,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B"}
1
+ {"version":3,"file":"Breadcrumbs.types.d.ts","sourceRoot":"","sources":["../../../../src/components/breadcrumbs/Breadcrumbs.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,IAAI,yBAAyB,EAChD,gBAAgB,IAAI,sBAAsB,EAC1C,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,WAAW,4BAChB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC;IACnD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACxE;;;OAGG;IACH,KAAK,CAAC,EAAE,4BAA4B,EAAE,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,eAAe,CAAC;AAMvB,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsCjD,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,gBAAgB,CAAC;AAEtE,OAAO,eAAe,CAAC;AAUvB,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8CjD,CAAC"}
@@ -1,11 +1,22 @@
1
1
  import type { BreadcrumbItemComponentProps } from "@/components/breadcrumbs";
2
+ /**
3
+ * Traducciones disponibles para el componente Header.
4
+ * Todas las propiedades son opcionales para permitir traducciones parciales.
5
+ */
6
+ export type HeaderTranslations = {
7
+ /** Texto del botón/opción de cerrar sesión */
8
+ logout?: string;
9
+ };
2
10
  export interface HeaderProps {
3
11
  /**
4
- * The translations for the header.
12
+ * Traducciones i18n del componente.
13
+ * Si no se proporciona, usa traducciones por defecto en español.
14
+ * @example
15
+ * ```tsx
16
+ * <HeaderComponent translations={{ logout: "Sign out" }} />
17
+ * ```
5
18
  */
6
- translations?: {
7
- logout?: string;
8
- };
19
+ translations?: HeaderTranslations;
9
20
  /**
10
21
  * The number of notifications to display in the badge.
11
22
  */
@@ -24,6 +35,16 @@ export interface HeaderProps {
24
35
  onMenuClick?: () => void;
25
36
  onLogout?: () => void;
26
37
  onNotificationClick?: () => void;
38
+ /**
39
+ * Callback for programmatic navigation when a config option is selected.
40
+ * When provided, replaces native anchor navigation with onPress.
41
+ */
42
+ onOptionSelect?: (href: string) => void;
43
+ /**
44
+ * Callback for programmatic navigation when a breadcrumb is clicked.
45
+ * When provided, replaces native anchor navigation with onPress.
46
+ */
47
+ onBreadcrumbClick?: (href: string) => void;
27
48
  }
28
49
  export interface HeaderOptions {
29
50
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.types.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Header.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAE7E,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,OAAO,EAAE,aAAa,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAE7C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"Header.types.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Header.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC3B;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,OAAO,EAAE,aAAa,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAE7C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACb"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/_internal/config-menu/ConfigMenu.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgDhD,CAAC"}
1
+ {"version":3,"file":"ConfigMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/_internal/config-menu/ConfigMenu.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmDhD,CAAC"}
@@ -1,9 +1,12 @@
1
- import type { HeaderOptions } from "../../Header.types";
1
+ import type { HeaderOptions, HeaderTranslations } from "../../Header.types";
2
2
  export interface ConfigMenuProps {
3
3
  options: HeaderOptions[];
4
4
  onLogout?: () => void;
5
- translations?: {
6
- logout?: string;
7
- };
5
+ /**
6
+ * Callback for programmatic navigation (e.g. React Router).
7
+ * When provided, replaces native anchor navigation with onPress.
8
+ */
9
+ onOptionSelect?: (href: string) => void;
10
+ translations?: HeaderTranslations;
8
11
  }
9
12
  //# sourceMappingURL=ConfigMenu.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigMenu.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/_internal/config-menu/ConfigMenu.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACF"}
1
+ {"version":3,"file":"ConfigMenu.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/_internal/config-menu/ConfigMenu.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,kBAAkB,CAAC;CAClC"}
@@ -1,3 +1,3 @@
1
1
  export { HeaderComponent } from "./Header";
2
- export type { HeaderProps, HeaderOptions, } from "./Header.types";
2
+ export type { HeaderProps, HeaderOptions, HeaderTranslations, } from "./Header.types";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,YAAY,EACX,WAAW,EACX,aAAa,GACb,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,YAAY,EACX,WAAW,EACX,aAAa,EACb,kBAAkB,GAClB,MAAM,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",