@beweco/aurora-ui 0.6.30 → 0.6.32

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
@@ -6639,17 +6639,30 @@ var DrawerFilters = function (_a) {
6639
6639
  "".concat(value.dateRange.start, "-").concat(value.dateRange.end);
6640
6640
  }
6641
6641
  else if (value.type === "dayMonth" && value.dayMonth) {
6642
- processedFilters[key] =
6643
- typeof value.dayMonth === "string"
6644
- ? value.dayMonth
6645
- : value.dayMonth.toString();
6642
+ if (typeof value.dayMonth === "string") {
6643
+ processedFilters[key] = value.dayMonth;
6644
+ }
6645
+ else {
6646
+ // CalendarDate → MM-DD (sin año)
6647
+ var mm = String(value.dayMonth.month).padStart(2, "0");
6648
+ var dd = String(value.dayMonth.day).padStart(2, "0");
6649
+ processedFilters[key] = "".concat(mm, "-").concat(dd);
6650
+ }
6646
6651
  }
6647
6652
  else if (value.type === "dayMonthRange" &&
6648
6653
  ((_a = value.dayMonthRange) === null || _a === void 0 ? void 0 : _a.start) &&
6649
6654
  ((_b = value.dayMonthRange) === null || _b === void 0 ? void 0 : _b.end)) {
6650
- var start = value.dayMonthRange.start.toString();
6651
- var end = value.dayMonthRange.end.toString();
6652
- processedFilters[key] = "".concat(start, "-").concat(end);
6655
+ var start = value.dayMonthRange.start;
6656
+ var end = value.dayMonthRange.end;
6657
+ if (typeof start !== "string" && typeof end !== "string") {
6658
+ // CalendarDate → MM-DD (sin año)
6659
+ var s = "".concat(String(start.month).padStart(2, "0"), "-").concat(String(start.day).padStart(2, "0"));
6660
+ var e = "".concat(String(end.month).padStart(2, "0"), "-").concat(String(end.day).padStart(2, "0"));
6661
+ processedFilters[key] = "".concat(s, "-").concat(e);
6662
+ }
6663
+ else {
6664
+ processedFilters[key] = "".concat(start, "-").concat(end);
6665
+ }
6653
6666
  }
6654
6667
  }
6655
6668
  break;
@@ -7376,7 +7389,16 @@ function TagsFilter(_a) {
7376
7389
  if (isLoading) {
7377
7390
  return (jsxRuntime.jsx("div", { className: "flex flex-col gap-4 ".concat(className), children: jsxRuntime.jsx("div", { className: "flex justify-center py-4", children: jsxRuntime.jsx(react.Spinner, { size: "sm" }) }) }));
7378
7391
  }
7379
- return (jsxRuntime.jsxs("div", { className: "flex flex-col gap-4 ".concat(className), children: [error && (jsxRuntime.jsxs("div", { className: "text-danger text-small py-2", children: [t.errorLoadingPrefix, ": ", error] })), !error && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: "flex flex-col gap-3", children: [jsxRuntime.jsxs(H4, { className: "text-tiny text-left text-default-700", children: [t.labelSelect, required && jsxRuntime.jsx("span", { className: "text-danger ml-0.5", children: "*" })] }), jsxRuntime.jsx(AuraAutocomplete, { placeholder: t.placeholder, "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t.placeholder, inputValue: inputValue, onInputChange: setInputValue, selectedKey: null, items: filteredItems, onSelectionChange: handleAutocompleteSelection, menuTrigger: "focus", listboxProps: {
7392
+ return (jsxRuntime.jsxs("div", { className: "flex flex-col gap-4 ".concat(className), children: [error && (jsxRuntime.jsxs("div", { className: "text-danger text-small py-2", children: [t.errorLoadingPrefix, ": ", error] })), !error && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: "flex flex-col gap-3", children: [jsxRuntime.jsxs(H4, { className: "text-tiny text-left text-default-700", children: [t.labelSelect, required && jsxRuntime.jsx("span", { className: "text-danger ml-0.5", children: "*" })] }), jsxRuntime.jsx(AuraAutocomplete, { placeholder: t.placeholder, "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t.placeholder, inputValue: inputValue, onInputChange: setInputValue, selectedKey: null, items: filteredItems, onSelectionChange: handleAutocompleteSelection,
7393
+ // "focus" keeps the menu tied to focus; prefer opening when typing.
7394
+ menuTrigger: "input",
7395
+ // When the filtered list is empty, avoid keeping an open overlay that blocks the modal.
7396
+ allowsEmptyCollection: false, shouldCloseOnBlur: true, popoverProps: {
7397
+ isNonModal: false,
7398
+ // Default HeroUI uses ariaShouldCloseOnInteractOutside, which can return false
7399
+ // when nested in a Modal (focus scopes), blocking dismissal. Always allow outside close.
7400
+ shouldCloseOnInteractOutside: function () { return true; },
7401
+ }, listboxProps: {
7380
7402
  className: "max-h-[200px] overflow-y-auto",
7381
7403
  }, className: "w-full", children: function (item) {
7382
7404
  var tag = item;
package/dist/index.esm.js CHANGED
@@ -6640,17 +6640,30 @@ var DrawerFilters = function (_a) {
6640
6640
  "".concat(value.dateRange.start, "-").concat(value.dateRange.end);
6641
6641
  }
6642
6642
  else if (value.type === "dayMonth" && value.dayMonth) {
6643
- processedFilters[key] =
6644
- typeof value.dayMonth === "string"
6645
- ? value.dayMonth
6646
- : value.dayMonth.toString();
6643
+ if (typeof value.dayMonth === "string") {
6644
+ processedFilters[key] = value.dayMonth;
6645
+ }
6646
+ else {
6647
+ // CalendarDate → MM-DD (sin año)
6648
+ var mm = String(value.dayMonth.month).padStart(2, "0");
6649
+ var dd = String(value.dayMonth.day).padStart(2, "0");
6650
+ processedFilters[key] = "".concat(mm, "-").concat(dd);
6651
+ }
6647
6652
  }
6648
6653
  else if (value.type === "dayMonthRange" &&
6649
6654
  ((_a = value.dayMonthRange) === null || _a === void 0 ? void 0 : _a.start) &&
6650
6655
  ((_b = value.dayMonthRange) === null || _b === void 0 ? void 0 : _b.end)) {
6651
- var start = value.dayMonthRange.start.toString();
6652
- var end = value.dayMonthRange.end.toString();
6653
- processedFilters[key] = "".concat(start, "-").concat(end);
6656
+ var start = value.dayMonthRange.start;
6657
+ var end = value.dayMonthRange.end;
6658
+ if (typeof start !== "string" && typeof end !== "string") {
6659
+ // CalendarDate → MM-DD (sin año)
6660
+ var s = "".concat(String(start.month).padStart(2, "0"), "-").concat(String(start.day).padStart(2, "0"));
6661
+ var e = "".concat(String(end.month).padStart(2, "0"), "-").concat(String(end.day).padStart(2, "0"));
6662
+ processedFilters[key] = "".concat(s, "-").concat(e);
6663
+ }
6664
+ else {
6665
+ processedFilters[key] = "".concat(start, "-").concat(end);
6666
+ }
6654
6667
  }
6655
6668
  }
6656
6669
  break;
@@ -7377,7 +7390,16 @@ function TagsFilter(_a) {
7377
7390
  if (isLoading) {
7378
7391
  return (jsx("div", { className: "flex flex-col gap-4 ".concat(className), children: jsx("div", { className: "flex justify-center py-4", children: jsx(Spinner, { size: "sm" }) }) }));
7379
7392
  }
7380
- return (jsxs("div", { className: "flex flex-col gap-4 ".concat(className), children: [error && (jsxs("div", { className: "text-danger text-small py-2", children: [t.errorLoadingPrefix, ": ", error] })), !error && (jsxs(Fragment, { children: [jsxs("div", { className: "flex flex-col gap-3", children: [jsxs(H4, { className: "text-tiny text-left text-default-700", children: [t.labelSelect, required && jsx("span", { className: "text-danger ml-0.5", children: "*" })] }), jsx(AuraAutocomplete, { placeholder: t.placeholder, "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t.placeholder, inputValue: inputValue, onInputChange: setInputValue, selectedKey: null, items: filteredItems, onSelectionChange: handleAutocompleteSelection, menuTrigger: "focus", listboxProps: {
7393
+ return (jsxs("div", { className: "flex flex-col gap-4 ".concat(className), children: [error && (jsxs("div", { className: "text-danger text-small py-2", children: [t.errorLoadingPrefix, ": ", error] })), !error && (jsxs(Fragment, { children: [jsxs("div", { className: "flex flex-col gap-3", children: [jsxs(H4, { className: "text-tiny text-left text-default-700", children: [t.labelSelect, required && jsx("span", { className: "text-danger ml-0.5", children: "*" })] }), jsx(AuraAutocomplete, { placeholder: t.placeholder, "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t.placeholder, inputValue: inputValue, onInputChange: setInputValue, selectedKey: null, items: filteredItems, onSelectionChange: handleAutocompleteSelection,
7394
+ // "focus" keeps the menu tied to focus; prefer opening when typing.
7395
+ menuTrigger: "input",
7396
+ // When the filtered list is empty, avoid keeping an open overlay that blocks the modal.
7397
+ allowsEmptyCollection: false, shouldCloseOnBlur: true, popoverProps: {
7398
+ isNonModal: false,
7399
+ // Default HeroUI uses ariaShouldCloseOnInteractOutside, which can return false
7400
+ // when nested in a Modal (focus scopes), blocking dismissal. Always allow outside close.
7401
+ shouldCloseOnInteractOutside: function () { return true; },
7402
+ }, listboxProps: {
7381
7403
  className: "max-h-[200px] overflow-y-auto",
7382
7404
  }, className: "w-full", children: function (item) {
7383
7405
  var tag = item;
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer-filters/DrawerFilters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAEX,kBAAkB,EAOlB,MAAM,uBAAuB,CAAC;AAK/B;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwLtD,CAAC"}
1
+ {"version":3,"file":"DrawerFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer-filters/DrawerFilters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAEX,kBAAkB,EAOlB,MAAM,uBAAuB,CAAC;AAK/B;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmMtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TagsFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/tags-filter/TagsFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AA+BlF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EACpE,KAAK,EACL,KAAK,EACL,QAAQ,EACR,YAAiB,EACjB,KAAK,EACL,SAAiB,EACjB,SAAc,EACd,YAAY,EAAE,SAAS,EACvB,QAAgB,EAChB,WAA2D,EAC3D,SAAkD,GAClD,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CA8HzC;yBA1Ie,UAAU"}
1
+ {"version":3,"file":"TagsFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/tags-filter/TagsFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AA+BlF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EACpE,KAAK,EACL,KAAK,EACL,QAAQ,EACR,YAAiB,EACjB,KAAK,EACL,SAAiB,EACjB,SAAc,EACd,YAAY,EAAE,SAAS,EACvB,QAAgB,EAChB,WAA2D,EAC3D,SAAkD,GAClD,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAwIzC;yBApJe,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.6.30",
3
+ "version": "0.6.32",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",