@beweco/aurora-ui 0.6.76-qa.105 → 0.6.77

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.
Files changed (25) hide show
  1. package/dist/index.cjs.js +19 -74
  2. package/dist/index.esm.js +20 -74
  3. package/dist/types/components/area-line-chart/AreaLineChart.d.ts +1 -1
  4. package/dist/types/components/area-line-chart/AreaLineChart.d.ts.map +1 -1
  5. package/dist/types/components/area-line-chart/AreaLineChart.types.d.ts +0 -12
  6. package/dist/types/components/area-line-chart/AreaLineChart.types.d.ts.map +1 -1
  7. package/dist/types/components/currency/Currency.d.ts.map +1 -1
  8. package/dist/types/components/currency/currency.constants.d.ts.map +1 -1
  9. package/dist/types/components/donut-chart/DonutChart.d.ts.map +1 -1
  10. package/dist/types/components/donut-chart/DonutChart.types.d.ts +0 -2
  11. package/dist/types/components/donut-chart/DonutChart.types.d.ts.map +1 -1
  12. package/dist/types/components/donut-chart/donut-chart.utils.d.ts +0 -7
  13. package/dist/types/components/donut-chart/donut-chart.utils.d.ts.map +1 -1
  14. package/dist/types/components/donut-chart/index.d.ts +1 -1
  15. package/dist/types/components/donut-chart/index.d.ts.map +1 -1
  16. package/dist/types/components/phone/Phone.d.ts.map +1 -1
  17. package/dist/types/components/phone/flags/FlagIcon.d.ts.map +1 -1
  18. package/dist/types/components/phone/flags/index.d.ts +0 -1
  19. package/dist/types/components/phone/flags/index.d.ts.map +1 -1
  20. package/dist/types/components/phone/phone.constants.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/types/components/phone/flags/Canada.d.ts +0 -2
  23. package/dist/types/components/phone/flags/Canada.d.ts.map +0 -1
  24. package/dist/types/utils/text-search.d.ts +0 -18
  25. package/dist/types/utils/text-search.d.ts.map +0 -1
package/dist/index.cjs.js CHANGED
@@ -599,9 +599,9 @@ function ChartTooltip(_a) {
599
599
  })] }));
600
600
  }
601
601
  function AreaLineChart(_a) {
602
- var data = _a.data, xAxisKey = _a.xAxisKey, series = _a.series, title = _a.title, value = _a.value, trend = _a.trend, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.wrappedInCard, wrappedInCard = _d === void 0 ? false : _d, formatTooltipValue = _a.formatTooltipValue, _e = _a.yAxisDomain, yAxisDomain = _e === void 0 ? [0, "dataMax + 100"] : _e, _f = _a.xAxisInterval, xAxisInterval = _f === void 0 ? "preserveStartEnd" : _f;
602
+ var data = _a.data, xAxisKey = _a.xAxisKey, series = _a.series, title = _a.title, value = _a.value, trend = _a.trend, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.wrappedInCard, wrappedInCard = _d === void 0 ? false : _d, formatTooltipValue = _a.formatTooltipValue, _e = _a.yAxisDomain, yAxisDomain = _e === void 0 ? [0, "dataMax + 100"] : _e;
603
603
  var hasHeader = title != null || value != null || trend != null || series.length > 0;
604
- var content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasHeader && (jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-6", children: [jsxRuntime.jsxs("div", { children: [title != null && (jsxRuntime.jsx(H3, { className: "text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1", children: title })), value != null && (jsxRuntime.jsxs("div", { className: "flex items-baseline gap-2", children: [jsxRuntime.jsx("span", { className: "text-2xl font-bold text-gray-900", children: value }), trend != null && (jsxRuntime.jsx("span", { className: "text-xs font-medium text-yellow-600 bg-yellow-50 px-2 py-1 rounded", children: trend }))] }))] }), series.length > 0 && (jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-4", children: series.map(function (s) { return (jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntime.jsx("svg", { width: "16", height: "2", viewBox: "0 0 16 2", fill: "none", children: jsxRuntime.jsx("line", { x1: "0", y1: "1", x2: "16", y2: "1", stroke: s.color, strokeWidth: "2" }) }), jsxRuntime.jsx("span", { className: "text-xs text-gray-600 font-medium", children: s.label })] }, s.dataKey)); }) }))] })), jsxRuntime.jsx("div", { className: "w-full", style: { height: "".concat(height, "px") }, children: jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: jsxRuntime.jsxs(recharts.LineChart, { data: data, margin: { top: 5, right: 5, left: 5, bottom: 5 }, children: [jsxRuntime.jsx("defs", { children: series.map(function (s) { return (jsxRuntime.jsxs("linearGradient", { id: "area-line-chart-".concat(s.dataKey), x1: "0", y1: "0", x2: "0", y2: "1", children: [jsxRuntime.jsx("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.3 }), jsxRuntime.jsx("stop", { offset: "50%", stopColor: s.color, stopOpacity: 0.15 }), jsxRuntime.jsx("stop", { offset: "100%", stopColor: s.color, stopOpacity: 0 })] }, s.dataKey)); }) }), jsxRuntime.jsx(recharts.XAxis, { dataKey: xAxisKey, axisLine: false, tickLine: false, tick: { fill: "#9ca3af", fontSize: 12 }, dy: 10, interval: xAxisInterval }), jsxRuntime.jsx(recharts.YAxis, { axisLine: false, tickLine: false, tick: { fill: "transparent", fontSize: 0 }, width: 0, tickCount: 6, domain: yAxisDomain, allowDecimals: false }), jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "#d1d5db", strokeOpacity: 0.5, vertical: false, horizontal: true }), jsxRuntime.jsx(recharts.Tooltip, { content: jsxRuntime.jsx(ChartTooltip, { series: series, formatValue: formatTooltipValue }) }), series.map(function (s) { return (jsxRuntime.jsx(recharts.Area, { type: "natural", dataKey: s.dataKey, stroke: "none", fill: "url(#area-line-chart-".concat(s.dataKey, ")"), animationDuration: 1500, animationEasing: "ease-in-out" }, "area-".concat(s.dataKey))); }), series.map(function (s) { return (jsxRuntime.jsx(recharts.Line, { type: "natural", dataKey: s.dataKey, name: s.dataKey, stroke: s.color, strokeWidth: 3, dot: false, activeDot: {
604
+ var content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasHeader && (jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-6", children: [jsxRuntime.jsxs("div", { children: [title != null && (jsxRuntime.jsx(H3, { className: "text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1", children: title })), value != null && (jsxRuntime.jsxs("div", { className: "flex items-baseline gap-2", children: [jsxRuntime.jsx("span", { className: "text-2xl font-bold text-gray-900", children: value }), trend != null && (jsxRuntime.jsx("span", { className: "text-xs font-medium text-yellow-600 bg-yellow-50 px-2 py-1 rounded", children: trend }))] }))] }), series.length > 0 && (jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-4", children: series.map(function (s) { return (jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntime.jsx("svg", { width: "16", height: "2", viewBox: "0 0 16 2", fill: "none", children: jsxRuntime.jsx("line", { x1: "0", y1: "1", x2: "16", y2: "1", stroke: s.color, strokeWidth: "2" }) }), jsxRuntime.jsx("span", { className: "text-xs text-gray-600 font-medium", children: s.label })] }, s.dataKey)); }) }))] })), jsxRuntime.jsx("div", { className: "w-full", style: { height: "".concat(height, "px") }, children: jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: jsxRuntime.jsxs(recharts.LineChart, { data: data, margin: { top: 5, right: 5, left: 5, bottom: 5 }, children: [jsxRuntime.jsx("defs", { children: series.map(function (s) { return (jsxRuntime.jsxs("linearGradient", { id: "area-line-chart-".concat(s.dataKey), x1: "0", y1: "0", x2: "0", y2: "1", children: [jsxRuntime.jsx("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.3 }), jsxRuntime.jsx("stop", { offset: "50%", stopColor: s.color, stopOpacity: 0.15 }), jsxRuntime.jsx("stop", { offset: "100%", stopColor: s.color, stopOpacity: 0 })] }, s.dataKey)); }) }), jsxRuntime.jsx(recharts.XAxis, { dataKey: xAxisKey, axisLine: false, tickLine: false, tick: { fill: "#9ca3af", fontSize: 12 }, dy: 10 }), jsxRuntime.jsx(recharts.YAxis, { axisLine: false, tickLine: false, tick: { fill: "transparent", fontSize: 0 }, width: 0, tickCount: 6, domain: yAxisDomain, allowDecimals: false }), jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "#d1d5db", strokeOpacity: 0.5, vertical: false, horizontal: true }), jsxRuntime.jsx(recharts.Tooltip, { content: jsxRuntime.jsx(ChartTooltip, { series: series, formatValue: formatTooltipValue }) }), series.map(function (s) { return (jsxRuntime.jsx(recharts.Area, { type: "natural", dataKey: s.dataKey, stroke: "none", fill: "url(#area-line-chart-".concat(s.dataKey, ")"), animationDuration: 1500, animationEasing: "ease-in-out" }, "area-".concat(s.dataKey))); }), series.map(function (s) { return (jsxRuntime.jsx(recharts.Line, { type: "natural", dataKey: s.dataKey, name: s.dataKey, stroke: s.color, strokeWidth: 3, dot: false, activeDot: {
605
605
  r: 6,
606
606
  fill: s.color,
607
607
  stroke: "#fff",
@@ -1982,34 +1982,6 @@ var useCloseOnAncestorScroll = function (_a) {
1982
1982
  }, [isOpen, onClose, contentRef]);
1983
1983
  };
1984
1984
 
1985
- /**
1986
- * Comparación de texto para los buscadores de los desplegables (país, moneda).
1987
- *
1988
- * El problema que resuelve: los nombres de la lista de países mezclan idiomas y
1989
- * algunos llevan tilde ("Canadá", "República Dominicana"). Un `includes` crudo
1990
- * exige que quien busca escriba la tilde, así que teclear "canada" no encontraba
1991
- * Canadá y "republica" no encontraba República Dominicana — el desplegable
1992
- * respondía "No se encontraron países" con el país delante.
1993
- */
1994
- /** Minúsculas y sin diacríticos, para comparar lo que se escribe con lo que se muestra. */
1995
- var normalizeForSearch = function (value) {
1996
- return value
1997
- .normalize("NFD")
1998
- // Rango de marcas combinantes (tildes, diéresis, cedilla) que deja NFD.
1999
- // Se usa en vez de \p{Diacritic} porque el flag `u` exige target es6+.
2000
- .replace(/[̀-ͯ]/g, "")
2001
- .toLowerCase();
2002
- };
2003
- /**
2004
- * `true` si el término aparece en alguno de los campos, ignorando tildes y
2005
- * mayúsculas. Los campos ausentes se descartan. Un término vacío casa siempre,
2006
- * igual que el `includes` que sustituye.
2007
- */
2008
- var matchesSearchTerm = function (fields, term) {
2009
- var needle = normalizeForSearch(term);
2010
- return fields.some(function (field) { return field != null && normalizeForSearch(field).includes(needle); });
2011
- };
2012
-
2013
1985
  // Lista de países con código telefónico y código ISO
2014
1986
  var countries = [
2015
1987
  { code: "+57", name: "Colombia", country: "CO" },
@@ -2019,8 +1991,6 @@ var countries = [
2019
1991
  { code: "+503", name: "El Salvador", country: "SV" },
2020
1992
  { code: "+507", name: "Panama", country: "PA" },
2021
1993
  { code: "+506", name: "Costa Rica", country: "CR" },
2022
- { code: "+504", name: "Honduras", country: "HN" },
2023
- { code: "+505", name: "Nicaragua", country: "NI" },
2024
1994
  { code: "+51", name: "Peru", country: "PE" },
2025
1995
  { code: "+56", name: "Chile", country: "CL" },
2026
1996
  { code: "+591", name: "Bolivia", country: "BO" },
@@ -2033,9 +2003,6 @@ var countries = [
2033
2003
  { code: "+598", name: "Uruguay", country: "UY" },
2034
2004
  { code: "+58", name: "Venezuela", country: "VE" },
2035
2005
  { code: "+1", name: "United States", country: "US" },
2036
- // Canadá va detrás del resto de países con +1: para values legacy sin ISO
2037
- // gana el primer +1 de la lista y ese comportamiento no debe cambiar.
2038
- { code: "+1", name: "Canadá", country: "CA" },
2039
2006
  { code: "+7", name: "Russia", country: "RU" },
2040
2007
  { code: "+20", name: "Egypt", country: "EG" },
2041
2008
  { code: "+27", name: "South Africa", country: "ZA" },
@@ -2063,7 +2030,6 @@ var defaultTranslations$d = {
2063
2030
  selectCountryAriaLabel: "Seleccionar país",
2064
2031
  expandListAriaLabel: "Desplegar lista de países",
2065
2032
  noCountriesFound: "No se encontraron países",
2066
- countries: {},
2067
2033
  };
2068
2034
 
2069
2035
  /**
@@ -2091,14 +2057,11 @@ var currencyByCountry = {
2091
2057
  DO: "DOP",
2092
2058
  EC: "USD",
2093
2059
  GT: "GTQ",
2094
- HN: "HNL",
2095
- NI: "NIO",
2096
2060
  PR: "USD",
2097
2061
  PY: "PYG",
2098
2062
  UY: "UYU",
2099
2063
  VE: "VES",
2100
2064
  US: "USD",
2101
- CA: "CAD",
2102
2065
  RU: "RUB",
2103
2066
  EG: "EGP",
2104
2067
  ZA: "ZAR",
@@ -2202,10 +2165,6 @@ var Bulgaria = function () {
2202
2165
  return (jsxRuntime.jsxs("svg", { width: "50", height: "40", viewBox: "0 0 21 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsxs("g", { clipPath: "url(#clip0_13_10424)", children: [jsxRuntime.jsx("path", { d: "M21 0H0V14H21V0Z", fill: "white" }), jsxRuntime.jsx("path", { d: "M21 4.66669H0V14H21V4.66669Z", fill: "#00966E" }), jsxRuntime.jsx("path", { d: "M21 9.33331H0V14H21V9.33331Z", fill: "#D62612" })] }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_13_10424", children: jsxRuntime.jsx("rect", { width: "21", height: "14", fill: "white" }) }) })] }));
2203
2166
  };
2204
2167
 
2205
- var Canada = function () {
2206
- return (jsxRuntime.jsxs("svg", { width: "50", height: "40", viewBox: "0 0 21 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsx("rect", { width: "21", height: "14", fill: "white" }), jsxRuntime.jsx("rect", { width: "5.25", height: "14", fill: "#D80621" }), jsxRuntime.jsx("rect", { x: "15.75", width: "5.25", height: "14", fill: "#D80621" }), jsxRuntime.jsx("path", { d: "M10.50 2.90 L10.92 4.25 L11.75 3.95 L11.45 5.30 L13.30 4.95 L12.85 5.95 L13.20 6.60 L12.00 7.45 L12.30 8.10 L10.95 8.05 L10.50 9.90 L10.05 8.05 L8.70 8.10 L9.00 7.45 L7.80 6.60 L8.15 5.95 L7.70 4.95 L9.55 5.30 L9.25 3.95 L10.08 4.25 Z", fill: "#D80621" }), jsxRuntime.jsx("rect", { x: "10.34", y: "9.7", width: "0.32", height: "1.5", fill: "#D80621" })] }));
2207
- };
2208
-
2209
2168
  var Chile = function () {
2210
2169
  return (jsxRuntime.jsxs("svg", { width: "50", height: "40", viewBox: "0 0 21 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsxs("g", { clipPath: "url(#clip0_13_10428)", children: [jsxRuntime.jsx("path", { d: "M0 0H21V14H0V0Z", fill: "white" }), jsxRuntime.jsx("path", { d: "M0 7V0H7V10.5L0 7Z", fill: "#0039A6" }), jsxRuntime.jsx("path", { d: "M0 7H21V14H0V7Z", fill: "#D72B1F" }), jsxRuntime.jsx("path", { d: "M3.5 1.75L4.52865 4.91575L1.83575 2.95925H5.16425L2.47135 4.91575L3.5 1.75Z", fill: "white" })] }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_13_10428", children: jsxRuntime.jsx("rect", { width: "21", height: "14", fill: "white" }) }) })] }));
2211
2170
  };
@@ -2478,7 +2437,6 @@ var flagsMap = {
2478
2437
  BO: Bolivia,
2479
2438
  BR: Brasil,
2480
2439
  BG: Bulgaria,
2481
- CA: Canada,
2482
2440
  CL: Chile,
2483
2441
  CN: China,
2484
2442
  CO: Colombia,
@@ -2720,14 +2678,12 @@ var Currency = function (_a) {
2720
2678
  !currencySelectorLocked &&
2721
2679
  !disabled &&
2722
2680
  reactDom.createPortal(jsxRuntime.jsxs("div", { ref: portalDropdownRef, style: dropdownPosition, className: "bg-content1 border border-default-200 rounded-lg shadow-lg z-50", role: "listbox", children: [jsxRuntime.jsx("div", { className: "p-2", children: jsxRuntime.jsx("input", { type: "text", className: "w-full px-3 py-2 text-sm bg-default-100 border-medium border-default-200 text-default-500 rounded-lg focus:outline-none focus:border-primary-500", placeholder: t.searchPlaceholder, onChange: function (e) {
2723
- var searchTerm = e.target.value;
2681
+ var searchTerm = e.target.value.toLowerCase();
2724
2682
  var filtered = options.filter(function (opt) {
2725
- return matchesSearchTerm([
2726
- getCountryName(opt),
2727
- opt.name,
2728
- opt.currency,
2729
- opt.country,
2730
- ], searchTerm);
2683
+ return getCountryName(opt).toLowerCase().includes(searchTerm) ||
2684
+ opt.name.toLowerCase().includes(searchTerm) ||
2685
+ opt.currency.toLowerCase().includes(searchTerm) ||
2686
+ opt.country.toLowerCase().includes(searchTerm);
2731
2687
  });
2732
2688
  setFilteredOptions(filtered);
2733
2689
  } }) }), jsxRuntime.jsx("div", { className: "".concat(listMaxHeight, " overflow-y-auto"), children: filteredOptions.length > 0 ? (filteredOptions.map(function (opt) { return (jsxRuntime.jsxs("button", { type: "button", role: "option", "aria-selected": opt.country === selected.country &&
@@ -3186,20 +3142,6 @@ function computeTotal(data) {
3186
3142
  function isDonutEmpty(data) {
3187
3143
  return data.length === 0 || computeTotal(data) === 0;
3188
3144
  }
3189
- /**
3190
- * Formatea `percent` (0-1) como entero + "%", excepto cuando la porción es
3191
- * real (>0) pero redondea a 0 — ahí muestra "<1%" en vez de "0%", que se lee
3192
- * como "no hay nada" y confunde cuando sí hay dato (ej. 4 de 2357 = 0.17%).
3193
- * `lessThanOneLabel` permite traducir el texto (ver `DonutChartTranslations`).
3194
- */
3195
- function formatDonutPercent(percent, lessThanOneLabel) {
3196
- if (lessThanOneLabel === void 0) { lessThanOneLabel = "<1%"; }
3197
- if (!Number.isFinite(percent) || percent <= 0) {
3198
- return "0%";
3199
- }
3200
- var rounded = Math.round(percent * 100);
3201
- return rounded === 0 ? lessThanOneLabel : "".concat(rounded, "%");
3202
- }
3203
3145
  /**
3204
3146
  * Resuelve las proporciones y el color final de cada categoría.
3205
3147
  * El color propio de cada dato tiene prioridad; si falta, se cicla `palette` por índice.
@@ -3217,7 +3159,6 @@ function computeSlices(data, palette) {
3217
3159
  var DEFAULT_TRANSLATIONS$b = {
3218
3160
  emptyState: "Sin datos para mostrar",
3219
3161
  totalLabel: "Total",
3220
- lessThanOnePercent: "<1%",
3221
3162
  };
3222
3163
  /**
3223
3164
  * DonutChart - Gráfico circular (pie o donut, según `innerRadiusRatio`) con
@@ -3236,7 +3177,7 @@ var DonutChart = function (_a) {
3236
3177
  return formatValue ? formatValue(value) : String(value);
3237
3178
  };
3238
3179
  var isDonut = innerRadiusRatio > 0;
3239
- return (jsxRuntime.jsxs("div", { className: className, children: [jsxRuntime.jsxs("div", { className: "relative w-full", style: { height: height }, children: [jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: jsxRuntime.jsxs(recharts.PieChart, { children: [jsxRuntime.jsx(recharts.Pie, { data: slices, dataKey: "value", nameKey: "name", innerRadius: isDonut ? "".concat(innerRadiusRatio * 100, "%") : 0, outerRadius: "90%", stroke: "none", children: slices.map(function (slice) { return (jsxRuntime.jsx(recharts.Cell, { fill: slice.color }, slice.name)); }) }), jsxRuntime.jsx(recharts.Tooltip, { formatter: function (value) { return format(value); } })] }) }), isDonut && showTotal && (jsxRuntime.jsxs("div", { className: "aurora-donut-total pointer-events-none absolute inset-0 flex flex-col items-center justify-center", "aria-hidden": "true", children: [jsxRuntime.jsx("span", { className: "text-xs text-foreground-500", children: t.totalLabel }), jsxRuntime.jsx("span", { className: "text-xl font-semibold", children: format(total) })] }))] }), showLegend && (jsxRuntime.jsx("ul", { className: "mt-3 flex flex-wrap gap-3", children: slices.map(function (slice) { return (jsxRuntime.jsxs("li", { className: "flex items-center gap-1.5 text-xs", children: [jsxRuntime.jsx("span", { className: "h-2 w-2 rounded-full", style: { backgroundColor: slice.color }, "aria-hidden": "true" }), jsxRuntime.jsx("span", { children: slice.name }), jsxRuntime.jsx("span", { className: "text-foreground-500", children: formatDonutPercent(slice.percent, t.lessThanOnePercent) })] }, slice.name)); }) }))] }));
3180
+ return (jsxRuntime.jsxs("div", { className: className, children: [jsxRuntime.jsxs("div", { className: "relative w-full", style: { height: height }, children: [jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: jsxRuntime.jsxs(recharts.PieChart, { children: [jsxRuntime.jsx(recharts.Pie, { data: slices, dataKey: "value", nameKey: "name", innerRadius: isDonut ? "".concat(innerRadiusRatio * 100, "%") : 0, outerRadius: "90%", stroke: "none", children: slices.map(function (slice) { return (jsxRuntime.jsx(recharts.Cell, { fill: slice.color }, slice.name)); }) }), jsxRuntime.jsx(recharts.Tooltip, { formatter: function (value) { return format(value); } })] }) }), isDonut && showTotal && (jsxRuntime.jsxs("div", { className: "aurora-donut-total pointer-events-none absolute inset-0 flex flex-col items-center justify-center", "aria-hidden": "true", children: [jsxRuntime.jsx("span", { className: "text-xs text-foreground-500", children: t.totalLabel }), jsxRuntime.jsx("span", { className: "text-xl font-semibold", children: format(total) })] }))] }), showLegend && (jsxRuntime.jsx("ul", { className: "mt-3 flex flex-wrap gap-3", children: slices.map(function (slice) { return (jsxRuntime.jsxs("li", { className: "flex items-center gap-1.5 text-xs", children: [jsxRuntime.jsx("span", { className: "h-2 w-2 rounded-full", style: { backgroundColor: slice.color }, "aria-hidden": "true" }), jsxRuntime.jsx("span", { children: slice.name }), jsxRuntime.jsxs("span", { className: "text-foreground-500", children: [Math.round(slice.percent * 100), "%"] })] }, slice.name)); }) }))] }));
3240
3181
  };
3241
3182
 
3242
3183
  var H1 = function (_a) {
@@ -4608,6 +4549,13 @@ var Phone = function (_a) {
4608
4549
  document.removeEventListener("mousedown", handleClickOutside);
4609
4550
  };
4610
4551
  }, [isDropdownOpen]);
4552
+ // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4553
+ // un ancestro hace scroll para que no quede flotando fuera de lugar.
4554
+ useCloseOnAncestorScroll({
4555
+ isOpen: isDropdownOpen,
4556
+ onClose: function () { return setIsDropdownOpen(false); },
4557
+ contentRef: portalDropdownRef,
4558
+ });
4611
4559
  var handleCountrySelect = function (country) {
4612
4560
  setSelectedCountry(country);
4613
4561
  setIsDropdownOpen(false);
@@ -4632,13 +4580,11 @@ var Phone = function (_a) {
4632
4580
  };
4633
4581
  return (jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 w-full relative", id: id, children: [finalLabel && (jsxRuntime.jsxs("label", { htmlFor: "phone-input-".concat(name), className: "text-tiny text-default-500 mb-1 text-left", children: [finalLabel, " ", required && jsxRuntime.jsx("span", { className: "text-danger-500", children: "*" })] })), jsxRuntime.jsxs("div", { className: "flex items-center w-full min-h-[56px] transition-colors shadow-sm border-medium border-default-200 rounded-xl focus-within:border-primary-500 ".concat(error ? "!border-danger-500 " : "border-default-200").concat(disabled ? "opacity-60" : ""), children: [jsxRuntime.jsx("div", { className: "relative ml-2", ref: dropdownRef, children: jsxRuntime.jsxs("button", { type: "button", className: "flex items-center gap-1 px-4 h-10 rounded-xl bg-default-100 focus:outline-none transition-colors", onClick: function () { return setIsDropdownOpen(function (v) { return !v; }); }, disabled: disabled, tabIndex: 0, "aria-label": t.selectCountryAriaLabel, children: [jsxRuntime.jsx(FlagIcon, { countryCode: selectedCountry.country, size: "md" }), jsxRuntime.jsx("span", { className: "text-xs text-default-500", children: selectedCountry.code }), jsxRuntime.jsxs("svg", { className: "w-4 h-4 text-default-500 ml-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-label": t.expandListAriaLabel, children: [jsxRuntime.jsx("title", { children: t.expandListAriaLabel }), jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })] })] }) }), jsxRuntime.jsx(react.Input, { type: "tel", className: "flex-1 border-none bg-transparent text-default-500 placeholder-default-500 px-2", placeholder: t.placeholder, value: inputValue, onChange: handleInputChange, onBlur: onBlur, disabled: disabled, name: name, autoComplete: "tel", id: "phone-input-".concat(name) })] }), error && errorText && (jsxRuntime.jsx("span", { className: " text-left text-xs text-danger-500 mt-1", children: errorText })), isDropdownOpen &&
4634
4582
  reactDom.createPortal(jsxRuntime.jsxs("div", { ref: portalDropdownRef, style: dropdownPosition, className: "bg-content1 border border-default-200 rounded-lg shadow-lg", "data-react-aria-top-layer": "true", children: [jsxRuntime.jsx("div", { className: "p-2", children: jsxRuntime.jsx("input", { type: "text", className: "w-full px-3 py-2 text-sm bg-default-100 border-medium border-default-200 text-default-500 rounded-lg focus:outline-none focus:border-primary-500", placeholder: t.searchPlaceholder, onChange: function (e) {
4635
- var searchTerm = e.target.value;
4583
+ var searchTerm = e.target.value.toLowerCase();
4636
4584
  var filtered = uniqueCountries.filter(function (country) {
4637
- return matchesSearchTerm([
4638
- getCountryName(country),
4639
- country.name,
4640
- country.code,
4641
- ], searchTerm);
4585
+ return getCountryName(country).toLowerCase().includes(searchTerm) ||
4586
+ country.name.toLowerCase().includes(searchTerm) ||
4587
+ country.code.toLowerCase().includes(searchTerm);
4642
4588
  });
4643
4589
  setFilteredCountries(filtered);
4644
4590
  } }) }), jsxRuntime.jsx("div", { className: "max-h-60 overflow-y-auto", children: filteredCountries.length > 0 ? (filteredCountries.map(function (country) { return (jsxRuntime.jsxs("button", { type: "button", className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(country.country === selectedCountry.country
@@ -10219,7 +10165,6 @@ exports.deriveLindaTones = deriveLindaTones;
10219
10165
  exports.dismissControlProps = dismissControlProps;
10220
10166
  exports.forceLightOnlyThemeBeforeReact = forceLightOnlyThemeBeforeReact;
10221
10167
  exports.formatAuroraThemeTooltip = formatAuroraThemeTooltip;
10222
- exports.formatDonutPercent = formatDonutPercent;
10223
10168
  exports.generateThemeColorScale = generateThemeColorScale;
10224
10169
  exports.getContrastForeground = getContrastForeground;
10225
10170
  exports.getRegisteredThemeColorBases = getRegisteredThemeColorBases;
package/dist/index.esm.js CHANGED
@@ -600,9 +600,9 @@ function ChartTooltip(_a) {
600
600
  })] }));
601
601
  }
602
602
  function AreaLineChart(_a) {
603
- var data = _a.data, xAxisKey = _a.xAxisKey, series = _a.series, title = _a.title, value = _a.value, trend = _a.trend, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.wrappedInCard, wrappedInCard = _d === void 0 ? false : _d, formatTooltipValue = _a.formatTooltipValue, _e = _a.yAxisDomain, yAxisDomain = _e === void 0 ? [0, "dataMax + 100"] : _e, _f = _a.xAxisInterval, xAxisInterval = _f === void 0 ? "preserveStartEnd" : _f;
603
+ var data = _a.data, xAxisKey = _a.xAxisKey, series = _a.series, title = _a.title, value = _a.value, trend = _a.trend, _b = _a.height, height = _b === void 0 ? 200 : _b, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.wrappedInCard, wrappedInCard = _d === void 0 ? false : _d, formatTooltipValue = _a.formatTooltipValue, _e = _a.yAxisDomain, yAxisDomain = _e === void 0 ? [0, "dataMax + 100"] : _e;
604
604
  var hasHeader = title != null || value != null || trend != null || series.length > 0;
605
- var content = (jsxs(Fragment, { children: [hasHeader && (jsxs("div", { className: "flex items-start justify-between mb-6", children: [jsxs("div", { children: [title != null && (jsx(H3, { className: "text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1", children: title })), value != null && (jsxs("div", { className: "flex items-baseline gap-2", children: [jsx("span", { className: "text-2xl font-bold text-gray-900", children: value }), trend != null && (jsx("span", { className: "text-xs font-medium text-yellow-600 bg-yellow-50 px-2 py-1 rounded", children: trend }))] }))] }), series.length > 0 && (jsx("div", { className: "flex flex-wrap items-center gap-4", children: series.map(function (s) { return (jsxs("div", { className: "flex items-center gap-2", children: [jsx("svg", { width: "16", height: "2", viewBox: "0 0 16 2", fill: "none", children: jsx("line", { x1: "0", y1: "1", x2: "16", y2: "1", stroke: s.color, strokeWidth: "2" }) }), jsx("span", { className: "text-xs text-gray-600 font-medium", children: s.label })] }, s.dataKey)); }) }))] })), jsx("div", { className: "w-full", style: { height: "".concat(height, "px") }, children: jsx(ResponsiveContainer, { width: "100%", height: "100%", children: jsxs(LineChart, { data: data, margin: { top: 5, right: 5, left: 5, bottom: 5 }, children: [jsx("defs", { children: series.map(function (s) { return (jsxs("linearGradient", { id: "area-line-chart-".concat(s.dataKey), x1: "0", y1: "0", x2: "0", y2: "1", children: [jsx("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.3 }), jsx("stop", { offset: "50%", stopColor: s.color, stopOpacity: 0.15 }), jsx("stop", { offset: "100%", stopColor: s.color, stopOpacity: 0 })] }, s.dataKey)); }) }), jsx(XAxis, { dataKey: xAxisKey, axisLine: false, tickLine: false, tick: { fill: "#9ca3af", fontSize: 12 }, dy: 10, interval: xAxisInterval }), jsx(YAxis, { axisLine: false, tickLine: false, tick: { fill: "transparent", fontSize: 0 }, width: 0, tickCount: 6, domain: yAxisDomain, allowDecimals: false }), jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "#d1d5db", strokeOpacity: 0.5, vertical: false, horizontal: true }), jsx(Tooltip$1, { content: jsx(ChartTooltip, { series: series, formatValue: formatTooltipValue }) }), series.map(function (s) { return (jsx(Area, { type: "natural", dataKey: s.dataKey, stroke: "none", fill: "url(#area-line-chart-".concat(s.dataKey, ")"), animationDuration: 1500, animationEasing: "ease-in-out" }, "area-".concat(s.dataKey))); }), series.map(function (s) { return (jsx(Line, { type: "natural", dataKey: s.dataKey, name: s.dataKey, stroke: s.color, strokeWidth: 3, dot: false, activeDot: {
605
+ var content = (jsxs(Fragment, { children: [hasHeader && (jsxs("div", { className: "flex items-start justify-between mb-6", children: [jsxs("div", { children: [title != null && (jsx(H3, { className: "text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1", children: title })), value != null && (jsxs("div", { className: "flex items-baseline gap-2", children: [jsx("span", { className: "text-2xl font-bold text-gray-900", children: value }), trend != null && (jsx("span", { className: "text-xs font-medium text-yellow-600 bg-yellow-50 px-2 py-1 rounded", children: trend }))] }))] }), series.length > 0 && (jsx("div", { className: "flex flex-wrap items-center gap-4", children: series.map(function (s) { return (jsxs("div", { className: "flex items-center gap-2", children: [jsx("svg", { width: "16", height: "2", viewBox: "0 0 16 2", fill: "none", children: jsx("line", { x1: "0", y1: "1", x2: "16", y2: "1", stroke: s.color, strokeWidth: "2" }) }), jsx("span", { className: "text-xs text-gray-600 font-medium", children: s.label })] }, s.dataKey)); }) }))] })), jsx("div", { className: "w-full", style: { height: "".concat(height, "px") }, children: jsx(ResponsiveContainer, { width: "100%", height: "100%", children: jsxs(LineChart, { data: data, margin: { top: 5, right: 5, left: 5, bottom: 5 }, children: [jsx("defs", { children: series.map(function (s) { return (jsxs("linearGradient", { id: "area-line-chart-".concat(s.dataKey), x1: "0", y1: "0", x2: "0", y2: "1", children: [jsx("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.3 }), jsx("stop", { offset: "50%", stopColor: s.color, stopOpacity: 0.15 }), jsx("stop", { offset: "100%", stopColor: s.color, stopOpacity: 0 })] }, s.dataKey)); }) }), jsx(XAxis, { dataKey: xAxisKey, axisLine: false, tickLine: false, tick: { fill: "#9ca3af", fontSize: 12 }, dy: 10 }), jsx(YAxis, { axisLine: false, tickLine: false, tick: { fill: "transparent", fontSize: 0 }, width: 0, tickCount: 6, domain: yAxisDomain, allowDecimals: false }), jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: "#d1d5db", strokeOpacity: 0.5, vertical: false, horizontal: true }), jsx(Tooltip$1, { content: jsx(ChartTooltip, { series: series, formatValue: formatTooltipValue }) }), series.map(function (s) { return (jsx(Area, { type: "natural", dataKey: s.dataKey, stroke: "none", fill: "url(#area-line-chart-".concat(s.dataKey, ")"), animationDuration: 1500, animationEasing: "ease-in-out" }, "area-".concat(s.dataKey))); }), series.map(function (s) { return (jsx(Line, { type: "natural", dataKey: s.dataKey, name: s.dataKey, stroke: s.color, strokeWidth: 3, dot: false, activeDot: {
606
606
  r: 6,
607
607
  fill: s.color,
608
608
  stroke: "#fff",
@@ -1983,34 +1983,6 @@ var useCloseOnAncestorScroll = function (_a) {
1983
1983
  }, [isOpen, onClose, contentRef]);
1984
1984
  };
1985
1985
 
1986
- /**
1987
- * Comparación de texto para los buscadores de los desplegables (país, moneda).
1988
- *
1989
- * El problema que resuelve: los nombres de la lista de países mezclan idiomas y
1990
- * algunos llevan tilde ("Canadá", "República Dominicana"). Un `includes` crudo
1991
- * exige que quien busca escriba la tilde, así que teclear "canada" no encontraba
1992
- * Canadá y "republica" no encontraba República Dominicana — el desplegable
1993
- * respondía "No se encontraron países" con el país delante.
1994
- */
1995
- /** Minúsculas y sin diacríticos, para comparar lo que se escribe con lo que se muestra. */
1996
- var normalizeForSearch = function (value) {
1997
- return value
1998
- .normalize("NFD")
1999
- // Rango de marcas combinantes (tildes, diéresis, cedilla) que deja NFD.
2000
- // Se usa en vez de \p{Diacritic} porque el flag `u` exige target es6+.
2001
- .replace(/[̀-ͯ]/g, "")
2002
- .toLowerCase();
2003
- };
2004
- /**
2005
- * `true` si el término aparece en alguno de los campos, ignorando tildes y
2006
- * mayúsculas. Los campos ausentes se descartan. Un término vacío casa siempre,
2007
- * igual que el `includes` que sustituye.
2008
- */
2009
- var matchesSearchTerm = function (fields, term) {
2010
- var needle = normalizeForSearch(term);
2011
- return fields.some(function (field) { return field != null && normalizeForSearch(field).includes(needle); });
2012
- };
2013
-
2014
1986
  // Lista de países con código telefónico y código ISO
2015
1987
  var countries = [
2016
1988
  { code: "+57", name: "Colombia", country: "CO" },
@@ -2020,8 +1992,6 @@ var countries = [
2020
1992
  { code: "+503", name: "El Salvador", country: "SV" },
2021
1993
  { code: "+507", name: "Panama", country: "PA" },
2022
1994
  { code: "+506", name: "Costa Rica", country: "CR" },
2023
- { code: "+504", name: "Honduras", country: "HN" },
2024
- { code: "+505", name: "Nicaragua", country: "NI" },
2025
1995
  { code: "+51", name: "Peru", country: "PE" },
2026
1996
  { code: "+56", name: "Chile", country: "CL" },
2027
1997
  { code: "+591", name: "Bolivia", country: "BO" },
@@ -2034,9 +2004,6 @@ var countries = [
2034
2004
  { code: "+598", name: "Uruguay", country: "UY" },
2035
2005
  { code: "+58", name: "Venezuela", country: "VE" },
2036
2006
  { code: "+1", name: "United States", country: "US" },
2037
- // Canadá va detrás del resto de países con +1: para values legacy sin ISO
2038
- // gana el primer +1 de la lista y ese comportamiento no debe cambiar.
2039
- { code: "+1", name: "Canadá", country: "CA" },
2040
2007
  { code: "+7", name: "Russia", country: "RU" },
2041
2008
  { code: "+20", name: "Egypt", country: "EG" },
2042
2009
  { code: "+27", name: "South Africa", country: "ZA" },
@@ -2064,7 +2031,6 @@ var defaultTranslations$d = {
2064
2031
  selectCountryAriaLabel: "Seleccionar país",
2065
2032
  expandListAriaLabel: "Desplegar lista de países",
2066
2033
  noCountriesFound: "No se encontraron países",
2067
- countries: {},
2068
2034
  };
2069
2035
 
2070
2036
  /**
@@ -2092,14 +2058,11 @@ var currencyByCountry = {
2092
2058
  DO: "DOP",
2093
2059
  EC: "USD",
2094
2060
  GT: "GTQ",
2095
- HN: "HNL",
2096
- NI: "NIO",
2097
2061
  PR: "USD",
2098
2062
  PY: "PYG",
2099
2063
  UY: "UYU",
2100
2064
  VE: "VES",
2101
2065
  US: "USD",
2102
- CA: "CAD",
2103
2066
  RU: "RUB",
2104
2067
  EG: "EGP",
2105
2068
  ZA: "ZAR",
@@ -2203,10 +2166,6 @@ var Bulgaria = function () {
2203
2166
  return (jsxs("svg", { width: "50", height: "40", viewBox: "0 0 21 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxs("g", { clipPath: "url(#clip0_13_10424)", children: [jsx("path", { d: "M21 0H0V14H21V0Z", fill: "white" }), jsx("path", { d: "M21 4.66669H0V14H21V4.66669Z", fill: "#00966E" }), jsx("path", { d: "M21 9.33331H0V14H21V9.33331Z", fill: "#D62612" })] }), jsx("defs", { children: jsx("clipPath", { id: "clip0_13_10424", children: jsx("rect", { width: "21", height: "14", fill: "white" }) }) })] }));
2204
2167
  };
2205
2168
 
2206
- var Canada = function () {
2207
- return (jsxs("svg", { width: "50", height: "40", viewBox: "0 0 21 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("rect", { width: "21", height: "14", fill: "white" }), jsx("rect", { width: "5.25", height: "14", fill: "#D80621" }), jsx("rect", { x: "15.75", width: "5.25", height: "14", fill: "#D80621" }), jsx("path", { d: "M10.50 2.90 L10.92 4.25 L11.75 3.95 L11.45 5.30 L13.30 4.95 L12.85 5.95 L13.20 6.60 L12.00 7.45 L12.30 8.10 L10.95 8.05 L10.50 9.90 L10.05 8.05 L8.70 8.10 L9.00 7.45 L7.80 6.60 L8.15 5.95 L7.70 4.95 L9.55 5.30 L9.25 3.95 L10.08 4.25 Z", fill: "#D80621" }), jsx("rect", { x: "10.34", y: "9.7", width: "0.32", height: "1.5", fill: "#D80621" })] }));
2208
- };
2209
-
2210
2169
  var Chile = function () {
2211
2170
  return (jsxs("svg", { width: "50", height: "40", viewBox: "0 0 21 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxs("g", { clipPath: "url(#clip0_13_10428)", children: [jsx("path", { d: "M0 0H21V14H0V0Z", fill: "white" }), jsx("path", { d: "M0 7V0H7V10.5L0 7Z", fill: "#0039A6" }), jsx("path", { d: "M0 7H21V14H0V7Z", fill: "#D72B1F" }), jsx("path", { d: "M3.5 1.75L4.52865 4.91575L1.83575 2.95925H5.16425L2.47135 4.91575L3.5 1.75Z", fill: "white" })] }), jsx("defs", { children: jsx("clipPath", { id: "clip0_13_10428", children: jsx("rect", { width: "21", height: "14", fill: "white" }) }) })] }));
2212
2171
  };
@@ -2479,7 +2438,6 @@ var flagsMap = {
2479
2438
  BO: Bolivia,
2480
2439
  BR: Brasil,
2481
2440
  BG: Bulgaria,
2482
- CA: Canada,
2483
2441
  CL: Chile,
2484
2442
  CN: China,
2485
2443
  CO: Colombia,
@@ -2721,14 +2679,12 @@ var Currency = function (_a) {
2721
2679
  !currencySelectorLocked &&
2722
2680
  !disabled &&
2723
2681
  createPortal(jsxs("div", { ref: portalDropdownRef, style: dropdownPosition, className: "bg-content1 border border-default-200 rounded-lg shadow-lg z-50", role: "listbox", children: [jsx("div", { className: "p-2", children: jsx("input", { type: "text", className: "w-full px-3 py-2 text-sm bg-default-100 border-medium border-default-200 text-default-500 rounded-lg focus:outline-none focus:border-primary-500", placeholder: t.searchPlaceholder, onChange: function (e) {
2724
- var searchTerm = e.target.value;
2682
+ var searchTerm = e.target.value.toLowerCase();
2725
2683
  var filtered = options.filter(function (opt) {
2726
- return matchesSearchTerm([
2727
- getCountryName(opt),
2728
- opt.name,
2729
- opt.currency,
2730
- opt.country,
2731
- ], searchTerm);
2684
+ return getCountryName(opt).toLowerCase().includes(searchTerm) ||
2685
+ opt.name.toLowerCase().includes(searchTerm) ||
2686
+ opt.currency.toLowerCase().includes(searchTerm) ||
2687
+ opt.country.toLowerCase().includes(searchTerm);
2732
2688
  });
2733
2689
  setFilteredOptions(filtered);
2734
2690
  } }) }), jsx("div", { className: "".concat(listMaxHeight, " overflow-y-auto"), children: filteredOptions.length > 0 ? (filteredOptions.map(function (opt) { return (jsxs("button", { type: "button", role: "option", "aria-selected": opt.country === selected.country &&
@@ -3187,20 +3143,6 @@ function computeTotal(data) {
3187
3143
  function isDonutEmpty(data) {
3188
3144
  return data.length === 0 || computeTotal(data) === 0;
3189
3145
  }
3190
- /**
3191
- * Formatea `percent` (0-1) como entero + "%", excepto cuando la porción es
3192
- * real (>0) pero redondea a 0 — ahí muestra "<1%" en vez de "0%", que se lee
3193
- * como "no hay nada" y confunde cuando sí hay dato (ej. 4 de 2357 = 0.17%).
3194
- * `lessThanOneLabel` permite traducir el texto (ver `DonutChartTranslations`).
3195
- */
3196
- function formatDonutPercent(percent, lessThanOneLabel) {
3197
- if (lessThanOneLabel === void 0) { lessThanOneLabel = "<1%"; }
3198
- if (!Number.isFinite(percent) || percent <= 0) {
3199
- return "0%";
3200
- }
3201
- var rounded = Math.round(percent * 100);
3202
- return rounded === 0 ? lessThanOneLabel : "".concat(rounded, "%");
3203
- }
3204
3146
  /**
3205
3147
  * Resuelve las proporciones y el color final de cada categoría.
3206
3148
  * El color propio de cada dato tiene prioridad; si falta, se cicla `palette` por índice.
@@ -3218,7 +3160,6 @@ function computeSlices(data, palette) {
3218
3160
  var DEFAULT_TRANSLATIONS$b = {
3219
3161
  emptyState: "Sin datos para mostrar",
3220
3162
  totalLabel: "Total",
3221
- lessThanOnePercent: "<1%",
3222
3163
  };
3223
3164
  /**
3224
3165
  * DonutChart - Gráfico circular (pie o donut, según `innerRadiusRatio`) con
@@ -3237,7 +3178,7 @@ var DonutChart = function (_a) {
3237
3178
  return formatValue ? formatValue(value) : String(value);
3238
3179
  };
3239
3180
  var isDonut = innerRadiusRatio > 0;
3240
- return (jsxs("div", { className: className, children: [jsxs("div", { className: "relative w-full", style: { height: height }, children: [jsx(ResponsiveContainer, { width: "100%", height: "100%", children: jsxs(PieChart, { children: [jsx(Pie, { data: slices, dataKey: "value", nameKey: "name", innerRadius: isDonut ? "".concat(innerRadiusRatio * 100, "%") : 0, outerRadius: "90%", stroke: "none", children: slices.map(function (slice) { return (jsx(Cell, { fill: slice.color }, slice.name)); }) }), jsx(Tooltip$1, { formatter: function (value) { return format(value); } })] }) }), isDonut && showTotal && (jsxs("div", { className: "aurora-donut-total pointer-events-none absolute inset-0 flex flex-col items-center justify-center", "aria-hidden": "true", children: [jsx("span", { className: "text-xs text-foreground-500", children: t.totalLabel }), jsx("span", { className: "text-xl font-semibold", children: format(total) })] }))] }), showLegend && (jsx("ul", { className: "mt-3 flex flex-wrap gap-3", children: slices.map(function (slice) { return (jsxs("li", { className: "flex items-center gap-1.5 text-xs", children: [jsx("span", { className: "h-2 w-2 rounded-full", style: { backgroundColor: slice.color }, "aria-hidden": "true" }), jsx("span", { children: slice.name }), jsx("span", { className: "text-foreground-500", children: formatDonutPercent(slice.percent, t.lessThanOnePercent) })] }, slice.name)); }) }))] }));
3181
+ return (jsxs("div", { className: className, children: [jsxs("div", { className: "relative w-full", style: { height: height }, children: [jsx(ResponsiveContainer, { width: "100%", height: "100%", children: jsxs(PieChart, { children: [jsx(Pie, { data: slices, dataKey: "value", nameKey: "name", innerRadius: isDonut ? "".concat(innerRadiusRatio * 100, "%") : 0, outerRadius: "90%", stroke: "none", children: slices.map(function (slice) { return (jsx(Cell, { fill: slice.color }, slice.name)); }) }), jsx(Tooltip$1, { formatter: function (value) { return format(value); } })] }) }), isDonut && showTotal && (jsxs("div", { className: "aurora-donut-total pointer-events-none absolute inset-0 flex flex-col items-center justify-center", "aria-hidden": "true", children: [jsx("span", { className: "text-xs text-foreground-500", children: t.totalLabel }), jsx("span", { className: "text-xl font-semibold", children: format(total) })] }))] }), showLegend && (jsx("ul", { className: "mt-3 flex flex-wrap gap-3", children: slices.map(function (slice) { return (jsxs("li", { className: "flex items-center gap-1.5 text-xs", children: [jsx("span", { className: "h-2 w-2 rounded-full", style: { backgroundColor: slice.color }, "aria-hidden": "true" }), jsx("span", { children: slice.name }), jsxs("span", { className: "text-foreground-500", children: [Math.round(slice.percent * 100), "%"] })] }, slice.name)); }) }))] }));
3241
3182
  };
3242
3183
 
3243
3184
  var H1 = function (_a) {
@@ -4609,6 +4550,13 @@ var Phone = function (_a) {
4609
4550
  document.removeEventListener("mousedown", handleClickOutside);
4610
4551
  };
4611
4552
  }, [isDropdownOpen]);
4553
+ // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4554
+ // un ancestro hace scroll para que no quede flotando fuera de lugar.
4555
+ useCloseOnAncestorScroll({
4556
+ isOpen: isDropdownOpen,
4557
+ onClose: function () { return setIsDropdownOpen(false); },
4558
+ contentRef: portalDropdownRef,
4559
+ });
4612
4560
  var handleCountrySelect = function (country) {
4613
4561
  setSelectedCountry(country);
4614
4562
  setIsDropdownOpen(false);
@@ -4633,13 +4581,11 @@ var Phone = function (_a) {
4633
4581
  };
4634
4582
  return (jsxs("div", { className: "flex flex-col gap-1 w-full relative", id: id, children: [finalLabel && (jsxs("label", { htmlFor: "phone-input-".concat(name), className: "text-tiny text-default-500 mb-1 text-left", children: [finalLabel, " ", required && jsx("span", { className: "text-danger-500", children: "*" })] })), jsxs("div", { className: "flex items-center w-full min-h-[56px] transition-colors shadow-sm border-medium border-default-200 rounded-xl focus-within:border-primary-500 ".concat(error ? "!border-danger-500 " : "border-default-200").concat(disabled ? "opacity-60" : ""), children: [jsx("div", { className: "relative ml-2", ref: dropdownRef, children: jsxs("button", { type: "button", className: "flex items-center gap-1 px-4 h-10 rounded-xl bg-default-100 focus:outline-none transition-colors", onClick: function () { return setIsDropdownOpen(function (v) { return !v; }); }, disabled: disabled, tabIndex: 0, "aria-label": t.selectCountryAriaLabel, children: [jsx(FlagIcon, { countryCode: selectedCountry.country, size: "md" }), jsx("span", { className: "text-xs text-default-500", children: selectedCountry.code }), jsxs("svg", { className: "w-4 h-4 text-default-500 ml-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-label": t.expandListAriaLabel, children: [jsx("title", { children: t.expandListAriaLabel }), jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })] })] }) }), jsx(Input$1, { type: "tel", className: "flex-1 border-none bg-transparent text-default-500 placeholder-default-500 px-2", placeholder: t.placeholder, value: inputValue, onChange: handleInputChange, onBlur: onBlur, disabled: disabled, name: name, autoComplete: "tel", id: "phone-input-".concat(name) })] }), error && errorText && (jsx("span", { className: " text-left text-xs text-danger-500 mt-1", children: errorText })), isDropdownOpen &&
4635
4583
  createPortal(jsxs("div", { ref: portalDropdownRef, style: dropdownPosition, className: "bg-content1 border border-default-200 rounded-lg shadow-lg", "data-react-aria-top-layer": "true", children: [jsx("div", { className: "p-2", children: jsx("input", { type: "text", className: "w-full px-3 py-2 text-sm bg-default-100 border-medium border-default-200 text-default-500 rounded-lg focus:outline-none focus:border-primary-500", placeholder: t.searchPlaceholder, onChange: function (e) {
4636
- var searchTerm = e.target.value;
4584
+ var searchTerm = e.target.value.toLowerCase();
4637
4585
  var filtered = uniqueCountries.filter(function (country) {
4638
- return matchesSearchTerm([
4639
- getCountryName(country),
4640
- country.name,
4641
- country.code,
4642
- ], searchTerm);
4586
+ return getCountryName(country).toLowerCase().includes(searchTerm) ||
4587
+ country.name.toLowerCase().includes(searchTerm) ||
4588
+ country.code.toLowerCase().includes(searchTerm);
4643
4589
  });
4644
4590
  setFilteredCountries(filtered);
4645
4591
  } }) }), jsx("div", { className: "max-h-60 overflow-y-auto", children: filteredCountries.length > 0 ? (filteredCountries.map(function (country) { return (jsxs("button", { type: "button", className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(country.country === selectedCountry.country
@@ -10104,4 +10050,4 @@ var NavigationLoadingProvider = function (_a) {
10104
10050
  return (jsxs(NavigationLoadingContext.Provider, { value: value, children: [children, jsx(NavigationLoadingOverlay, { isVisible: isVisible })] }));
10105
10051
  };
10106
10052
 
10107
- export { ALL_THEMES, AURORA_THEME_FAMILIES, AURORA_THEME_REGISTRY, AccordionList, AddHolidayForm, AnalyticsCard, AreaLineChart, AuraAutocomplete, AuraTable, AuraToastProvider, BEWEOS_THEME_MODE_COOKIE_NAME, BreadcrumbsComponent, Button, CONTAINER_ATTRIBUTE, Card, Chip, ColorPicker, ColorSelector, ContentCarousel, Currency, DEFAULT_DONUT_COLORS, DEFAULT_PREDEFINED_COLORS, DEFAULT_RANKED_BAR_COLORS, DISMISS_CONTROL_ATTRIBUTE, DatePicker, DateRangePicker, DateSelector, DonutChart, DrawerFilters, EmailPreview, EnumMenuNavListItem, GlobalToast, H1, H2, H3, H4, HeaderComponent, HolidayType, IconComponent, ImagePreview, Input, InputPassword, Kanban, KanbanCard, KanbanColumn, LINDA_TONE_PROPERTIES, LindaIcon, MenuClaw, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, MultiStepWizard, NavigationLoadingContext, NavigationLoadingOverlay, NavigationLoadingProvider, P, Pagination, Phone, PromotionalBanner, REGISTERED_THEME_COLORS, RangeFilter, RankedBarList, RowSteps, DEFAULT_TRANSLATIONS$1 as SEGMENTATION_DEFAULT_TRANSLATIONS, ScheduleRow, SearchInput, SegmentationBuilder, Select, SimpleLineChart, SocialMediaBar, SocialMediaCarousel, SocialMediaPreview, StatTile, StepIndicator, Switch as SwitchComponent, THEME_COLOR_HEX_MAP, TagsFilter, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput as TimeInputComponent, ToastContext, Tooltip, TwoColumnLayoutAgent, UploadFile, VerticalSteps, ViolinPlot, WhatsAppPreview, Wizard, WizardNavigation, WizardSidebar, applyCustomPrimaryColor, applyLindaTones, computeBars, computeMax, computeSlices, computeTotal, containerProps, createCurrencyFormatter, uniqueCountries as defaultCountries, defaultCurrencyOptions, defaultTranslations$5 as defaultTranslations, deriveLindaTones, dismissControlProps, forceLightOnlyThemeBeforeReact, formatAuroraThemeTooltip, formatDonutPercent, generateThemeColorScale, getContrastForeground, getRegisteredThemeColorBases, getSelectedKeyFromPath, hexToThemeColor, hslToCssValue, isAuroraFullThemeId, isDismissControl, isDonutEmpty, isExactThemeColor, isGroupState, isHexColor, isInsideDismissContainer, isRankedBarListEmpty, isSegmentationGroup, parseHslTriplet, removeCustomPrimaryColor, removeLindaTones, shouldClosePopoverOnInteractOutside, sizeMap, themeColors, useAuraToast, useCloseOnAncestorScroll, useMediaQuery, useNavigationLoading, useThemeContext, withPopoverDismissDefaults };
10053
+ export { ALL_THEMES, AURORA_THEME_FAMILIES, AURORA_THEME_REGISTRY, AccordionList, AddHolidayForm, AnalyticsCard, AreaLineChart, AuraAutocomplete, AuraTable, AuraToastProvider, BEWEOS_THEME_MODE_COOKIE_NAME, BreadcrumbsComponent, Button, CONTAINER_ATTRIBUTE, Card, Chip, ColorPicker, ColorSelector, ContentCarousel, Currency, DEFAULT_DONUT_COLORS, DEFAULT_PREDEFINED_COLORS, DEFAULT_RANKED_BAR_COLORS, DISMISS_CONTROL_ATTRIBUTE, DatePicker, DateRangePicker, DateSelector, DonutChart, DrawerFilters, EmailPreview, EnumMenuNavListItem, GlobalToast, H1, H2, H3, H4, HeaderComponent, HolidayType, IconComponent, ImagePreview, Input, InputPassword, Kanban, KanbanCard, KanbanColumn, LINDA_TONE_PROPERTIES, LindaIcon, MenuClaw, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, MultiStepWizard, NavigationLoadingContext, NavigationLoadingOverlay, NavigationLoadingProvider, P, Pagination, Phone, PromotionalBanner, REGISTERED_THEME_COLORS, RangeFilter, RankedBarList, RowSteps, DEFAULT_TRANSLATIONS$1 as SEGMENTATION_DEFAULT_TRANSLATIONS, ScheduleRow, SearchInput, SegmentationBuilder, Select, SimpleLineChart, SocialMediaBar, SocialMediaCarousel, SocialMediaPreview, StatTile, StepIndicator, Switch as SwitchComponent, THEME_COLOR_HEX_MAP, TagsFilter, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput as TimeInputComponent, ToastContext, Tooltip, TwoColumnLayoutAgent, UploadFile, VerticalSteps, ViolinPlot, WhatsAppPreview, Wizard, WizardNavigation, WizardSidebar, applyCustomPrimaryColor, applyLindaTones, computeBars, computeMax, computeSlices, computeTotal, containerProps, createCurrencyFormatter, uniqueCountries as defaultCountries, defaultCurrencyOptions, defaultTranslations$5 as defaultTranslations, deriveLindaTones, dismissControlProps, forceLightOnlyThemeBeforeReact, formatAuroraThemeTooltip, generateThemeColorScale, getContrastForeground, getRegisteredThemeColorBases, getSelectedKeyFromPath, hexToThemeColor, hslToCssValue, isAuroraFullThemeId, isDismissControl, isDonutEmpty, isExactThemeColor, isGroupState, isHexColor, isInsideDismissContainer, isRankedBarListEmpty, isSegmentationGroup, parseHslTriplet, removeCustomPrimaryColor, removeLindaTones, shouldClosePopoverOnInteractOutside, sizeMap, themeColors, useAuraToast, useCloseOnAncestorScroll, useMediaQuery, useNavigationLoading, useThemeContext, withPopoverDismissDefaults };
@@ -1,3 +1,3 @@
1
1
  import type { AreaLineChartProps } from "./AreaLineChart.types";
2
- export declare function AreaLineChart<T extends Record<string, unknown>>({ data, xAxisKey, series, title, value, trend, height, className, wrappedInCard, formatTooltipValue, yAxisDomain, xAxisInterval, }: AreaLineChartProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AreaLineChart<T extends Record<string, unknown>>({ data, xAxisKey, series, title, value, trend, height, className, wrappedInCard, formatTooltipValue, yAxisDomain, }: AreaLineChartProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=AreaLineChart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AreaLineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/AreaLineChart.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACX,kBAAkB,EAElB,MAAM,uBAAuB,CAAC;AAgD/B,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChE,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAY,EACZ,SAAc,EACd,aAAqB,EACrB,kBAAkB,EAClB,WAAkC,EAClC,aAAkC,GAClC,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAqJvB"}
1
+ {"version":3,"file":"AreaLineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/AreaLineChart.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACX,kBAAkB,EAElB,MAAM,uBAAuB,CAAC;AAgD/B,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChE,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAY,EACZ,SAAc,EACd,aAAqB,EACrB,kBAAkB,EAClB,WAAkC,GAClC,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAoJvB"}
@@ -35,17 +35,5 @@ export interface AreaLineChartProps<T extends Record<string, unknown> = Record<s
35
35
  * corresponde a quien consume el componente, no a AreaLineChart.
36
36
  */
37
37
  yAxisDomain?: [number | string, number | string];
38
- /**
39
- * Estrategia de Recharts para decidir qué ticks del eje X pintar cuando no
40
- * caben todos. `0` fuerza a pintar cada punto de `data` sin saltar
41
- * ninguno — correcto para pocos puntos con labels cortos (ej. una
42
- * tendencia mensual de 8-12 meses), pero con muchos puntos o labels
43
- * largos los ticks se solapan (Recharts no rota ni elide con `interval={0}`,
44
- * y `minTickGap` queda inoperante). Igual que `yAxisDomain`, esa
45
- * decisión le corresponde a quien consume el componente según su dataset,
46
- * no a `AreaLineChart`.
47
- * @default "preserveStartEnd" — garantiza el primer y el último tick sin solapar
48
- */
49
- xAxisInterval?: number | "preserveStart" | "preserveEnd" | "preserveStartEnd";
50
38
  }
51
39
  //# sourceMappingURL=AreaLineChart.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AreaLineChart.types.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/AreaLineChart.types.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACzC,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE3D,gFAAgF;IAChF,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAChE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACjD;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,aAAa,GAAG,kBAAkB,CAAC;CAC9E"}
1
+ {"version":3,"file":"AreaLineChart.types.d.ts","sourceRoot":"","sources":["../../../../src/components/area-line-chart/AreaLineChart.types.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACzC,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE3D,gFAAgF;IAChF,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAChE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/Currency.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,kBAAkB,EAAiC,MAAM,kBAAkB,CAAC;AAkD1F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+SjD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/Currency.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,kBAAkB,EAAiC,MAAM,kBAAkB,CAAC;AAkD1F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2SjD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"currency.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/currency.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAqE7E,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAsB/C,CAAC;AAEL,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,oBAAoB,CAQ9D,CAAC"}
1
+ {"version":3,"file":"currency.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/currency.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAkE7E,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAsB/C,CAAC;AAEL,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,oBAAoB,CAQ9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/DonutChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACX,eAAe,EAEf,MAAM,oBAAoB,CAAC;AAa5B;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4EhD,CAAC"}
1
+ {"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/DonutChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACX,eAAe,EAEf,MAAM,oBAAoB,CAAC;AAQ5B;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4EhD,CAAC"}
@@ -21,8 +21,6 @@ export type DonutChartTranslations = {
21
21
  emptyState?: string;
22
22
  /** Etiqueta sobre el total, en el centro del donut (solo si `innerRadiusRatio > 0`). */
23
23
  totalLabel?: string;
24
- /** Texto para una porción real (>0) que redondea a 0% en la leyenda. */
25
- lessThanOnePercent?: string;
26
24
  };
27
25
  export type DonutChartProps = {
28
26
  /** Categorías a graficar. */
@@ -1 +1 @@
1
- {"version":3,"file":"DonutChart.types.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/DonutChart.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC7B,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC/C,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC7B,6BAA6B;IAC7B,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,mGAAmG;IACnG,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"DonutChart.types.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/DonutChart.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC7B,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC/C,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC7B,6BAA6B;IAC7B,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,mGAAmG;IACnG,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -7,13 +7,6 @@ export declare function computeTotal(data: DonutChartDatum[]): number;
7
7
  * `NotData` legacy de Guru.js: un donut sin nada que repartir no aporta información.
8
8
  */
9
9
  export declare function isDonutEmpty(data: DonutChartDatum[]): boolean;
10
- /**
11
- * Formatea `percent` (0-1) como entero + "%", excepto cuando la porción es
12
- * real (>0) pero redondea a 0 — ahí muestra "<1%" en vez de "0%", que se lee
13
- * como "no hay nada" y confunde cuando sí hay dato (ej. 4 de 2357 = 0.17%).
14
- * `lessThanOneLabel` permite traducir el texto (ver `DonutChartTranslations`).
15
- */
16
- export declare function formatDonutPercent(percent: number, lessThanOneLabel?: string): string;
17
10
  /**
18
11
  * Resuelve las proporciones y el color final de cada categoría.
19
12
  * El color propio de cada dato tiene prioridad; si falta, se cicla `palette` por índice.
@@ -1 +1 @@
1
- {"version":3,"file":"donut-chart.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/donut-chart.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE3E,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,UAMhC,CAAC;AAMF,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,OAAO,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,MAAM,EACf,gBAAgB,SAAQ,GACtB,MAAM,CAMR;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,eAAe,EAAE,EACvB,OAAO,GAAE,MAAM,EAAyB,GACtC,eAAe,EAAE,CAWnB"}
1
+ {"version":3,"file":"donut-chart.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/donut-chart.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE3E,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,UAMhC,CAAC;AAMF,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,OAAO,CAE7D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,eAAe,EAAE,EACvB,OAAO,GAAE,MAAM,EAAyB,GACtC,eAAe,EAAE,CAWnB"}
@@ -1,4 +1,4 @@
1
1
  export { DonutChart } from "./DonutChart";
2
2
  export type { DonutChartDatum, DonutChartProps, DonutChartSlice, DonutChartTranslations, } from "./DonutChart.types";
3
- export { DEFAULT_DONUT_COLORS, computeSlices, computeTotal, formatDonutPercent, isDonutEmpty, } from "./donut-chart.utils";
3
+ export { DEFAULT_DONUT_COLORS, computeSlices, computeTotal, isDonutEmpty, } from "./donut-chart.utils";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACX,eAAe,EACf,eAAe,EACf,eAAe,EACf,sBAAsB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,YAAY,GACZ,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/donut-chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACX,eAAe,EACf,eAAe,EACf,eAAe,EACf,sBAAsB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,YAAY,GACZ,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuP3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2P3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FlagIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/phone/flags/FlagIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkF/B,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CA+EtC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B;AAQD;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+B5C,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"FlagIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/phone/flags/FlagIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiF/B,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CA8EtC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B;AAQD;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+B5C,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAe,QAAQ,CAAC"}
@@ -12,7 +12,6 @@ export * from "./Belize";
12
12
  export * from "./Bolivia";
13
13
  export * from "./Brasil";
14
14
  export * from "./Bulgaria";
15
- export * from "./Canada";
16
15
  export * from "./Chile";
17
16
  export * from "./China";
18
17
  export * from "./Colombia";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/phone/flags/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/phone/flags/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"phone.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/phone.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,SAAS;;;;GA0CrB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAE3B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAQ3D,CAAC"}
1
+ {"version":3,"file":"phone.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/phone.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,SAAS;;;;GAqCrB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAE3B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAO3D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.6.76-qa.105",
3
+ "version": "0.6.77",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -1,2 +0,0 @@
1
- export declare const Canada: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=Canada.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Canada.d.ts","sourceRoot":"","sources":["../../../../../src/components/phone/flags/Canada.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,+CAoBlB,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Comparación de texto para los buscadores de los desplegables (país, moneda).
3
- *
4
- * El problema que resuelve: los nombres de la lista de países mezclan idiomas y
5
- * algunos llevan tilde ("Canadá", "República Dominicana"). Un `includes` crudo
6
- * exige que quien busca escriba la tilde, así que teclear "canada" no encontraba
7
- * Canadá y "republica" no encontraba República Dominicana — el desplegable
8
- * respondía "No se encontraron países" con el país delante.
9
- */
10
- /** Minúsculas y sin diacríticos, para comparar lo que se escribe con lo que se muestra. */
11
- export declare const normalizeForSearch: (value: string) => string;
12
- /**
13
- * `true` si el término aparece en alguno de los campos, ignorando tildes y
14
- * mayúsculas. Los campos ausentes se descartan. Un término vacío casa siempre,
15
- * igual que el `includes` que sustituye.
16
- */
17
- export declare const matchesSearchTerm: (fields: (string | undefined | null)[], term: string) => boolean;
18
- //# sourceMappingURL=text-search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-search.d.ts","sourceRoot":"","sources":["../../../src/utils/text-search.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,2FAA2F;AAC3F,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MAMnC,CAAC;AAEjB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC7B,QAAQ,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,EACrC,MAAM,MAAM,KACV,OAKF,CAAC"}