@beweco/aurora-ui 0.1.4 → 0.1.6

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 (44) hide show
  1. package/dist/assets/css/styles.css +1 -1
  2. package/dist/index.cjs.js +142 -74
  3. package/dist/index.esm.js +139 -76
  4. package/dist/types/components/color-selector/ColorSelector.d.ts +5 -0
  5. package/dist/types/components/color-selector/ColorSelector.d.ts.map +1 -0
  6. package/dist/types/components/color-selector/ColorSelector.types.d.ts +5 -0
  7. package/dist/types/components/color-selector/ColorSelector.types.d.ts.map +1 -0
  8. package/dist/types/components/color-selector/index.d.ts +3 -0
  9. package/dist/types/components/color-selector/index.d.ts.map +1 -0
  10. package/dist/types/components/daterangepicker/DateRangePicker.d.ts +0 -1
  11. package/dist/types/components/daterangepicker/DateRangePicker.d.ts.map +1 -1
  12. package/dist/types/components/h2/H2.d.ts +4 -0
  13. package/dist/types/components/h2/H2.d.ts.map +1 -0
  14. package/dist/types/components/h2/H2.types.d.ts +4 -0
  15. package/dist/types/components/h2/H2.types.d.ts.map +1 -0
  16. package/dist/types/components/h2/index.d.ts +3 -0
  17. package/dist/types/components/h2/index.d.ts.map +1 -0
  18. package/dist/types/components/h3/H3.d.ts +4 -0
  19. package/dist/types/components/h3/H3.d.ts.map +1 -0
  20. package/dist/types/components/h3/H3.types.d.ts +4 -0
  21. package/dist/types/components/h3/H3.types.d.ts.map +1 -0
  22. package/dist/types/components/h3/index.d.ts +3 -0
  23. package/dist/types/components/h3/index.d.ts.map +1 -0
  24. package/dist/types/components/h4/H4.d.ts +4 -0
  25. package/dist/types/components/h4/H4.d.ts.map +1 -0
  26. package/dist/types/components/h4/H4.types.d.ts +4 -0
  27. package/dist/types/components/h4/H4.types.d.ts.map +1 -0
  28. package/dist/types/components/h4/index.d.ts +3 -0
  29. package/dist/types/components/h4/index.d.ts.map +1 -0
  30. package/dist/types/components/p/P.d.ts +4 -0
  31. package/dist/types/components/p/P.d.ts.map +1 -0
  32. package/dist/types/components/p/P.types.d.ts +4 -0
  33. package/dist/types/components/p/P.types.d.ts.map +1 -0
  34. package/dist/types/components/p/index.d.ts +3 -0
  35. package/dist/types/components/p/index.d.ts.map +1 -0
  36. package/dist/types/components/phone/Phone.d.ts.map +1 -1
  37. package/dist/types/components/phone/Phone.types.d.ts +13 -2
  38. package/dist/types/components/phone/Phone.types.d.ts.map +1 -1
  39. package/dist/types/components/phone/phone.constants.d.ts +13 -0
  40. package/dist/types/components/phone/phone.constants.d.ts.map +1 -0
  41. package/dist/types/components/theme-picker/ThemePicker.d.ts.map +1 -1
  42. package/dist/types/index.d.ts +5 -0
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { Autocomplete, Button as Button$1, DatePicker as DatePicker$1, DateRangePicker as DateRangePicker$1, Input as Input$1, RadioGroup, Radio, cn, ListboxItem, Popover, PopoverTrigger, Tooltip, PopoverContent, Listbox, Accordion, AccordionItem, ListboxSection, Spacer, Avatar, Card as Card$1, CardBody, CardFooter, Select as Select$1, Switch as Switch$1, TimeInput as TimeInput$1, Chip, Table, TableHeader, TableColumn, TableBody, TableRow, TableCell, Textarea as Textarea$1, Dropdown, DropdownTrigger, DropdownMenu, DropdownSection, DropdownItem, Alert, Modal as Modal$1, ModalContent as ModalContent$1, ModalHeader as ModalHeader$1, ModalBody as ModalBody$1, Slider, ModalFooter as ModalFooter$1, Pagination as Pagination$1 } from '@heroui/react';
2
2
  export * from '@heroui/react';
3
3
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
- import React, { useId, useState, useCallback, createElement, useRef, useEffect, createContext, useContext, useMemo } from 'react';
4
+ import React, { useId, useState, useCallback, createElement, useRef, useEffect, useLayoutEffect, createContext, useContext, useMemo } from 'react';
5
5
  import { Icon } from '@iconify/react';
6
+ import { createPortal } from 'react-dom';
6
7
  import { useTheme } from '@heroui/use-theme';
7
8
 
8
9
  /******************************************************************************
@@ -464,42 +465,50 @@ var defaultTranslations$2 = {
464
465
  expandListAriaLabel: "Desplegar lista de países",
465
466
  noCountriesFound: "No se encontraron países",
466
467
  };
468
+
467
469
  var Phone = function (_a) {
468
- var label = _a.label, _b = _a.required, required = _b === void 0 ? false : _b, _c = _a.error, error = _c === void 0 ? false : _c, _d = _a.errorText, errorText = _d === void 0 ? "" : _d, _e = _a.value, value = _e === void 0 ? "" : _e, onChange = _a.onChange, onBlur = _a.onBlur, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.name, name = _g === void 0 ? "phone" : _g, _h = _a.translations, translations = _h === void 0 ? {} : _h;
469
- var _j = useState(false), isDropdownOpen = _j[0], setIsDropdownOpen = _j[1];
470
- var _k = useState(uniqueCountries[0]), selectedCountry = _k[0], setSelectedCountry = _k[1];
471
- var _l = useState(""), inputValue = _l[0], setInputValue = _l[1];
470
+ var id = _a.id, label = _a.label, _b = _a.required, required = _b === void 0 ? false : _b, _c = _a.error, error = _c === void 0 ? false : _c, _d = _a.errorText, errorText = _d === void 0 ? "" : _d, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.name, name = _f === void 0 ? "phone" : _f, _g = _a.translations, translations = _g === void 0 ? {} : _g;
471
+ var _h = useState(false), isDropdownOpen = _h[0], setIsDropdownOpen = _h[1];
472
+ var _j = useState(uniqueCountries[0]), selectedCountry = _j[0], setSelectedCountry = _j[1];
473
+ var _k = useState(""), inputValue = _k[0], setInputValue = _k[1];
472
474
  var dropdownRef = useRef(null);
475
+ var portalDropdownRef = useRef(null);
476
+ var _l = useState({}), dropdownPosition = _l[0], setDropdownPosition = _l[1];
473
477
  var _m = useState(uniqueCountries), filteredCountries = _m[0], setFilteredCountries = _m[1];
474
- // Combinar traducciones por defecto con las proporcionadas
475
478
  var t = __assign(__assign({}, defaultTranslations$2), translations);
476
- // Usar la etiqueta de las traducciones si no se proporciona label explícitamente
477
479
  var finalLabel = label || t.label;
478
- // Sincroniza valor externo
479
480
  useEffect(function () {
480
481
  if (value) {
481
- // Si value incluye el código, lo separamos
482
- var found = uniqueCountries.find(function (c) { return value.startsWith(c.code); });
482
+ var found = uniqueCountries.find(function (c) { return c.code === value.countryCode; });
483
483
  if (found) {
484
484
  setSelectedCountry(found);
485
- setInputValue(value.replace(found.code, "").trim());
486
- }
487
- else {
488
- setInputValue(value);
489
485
  }
486
+ setInputValue(value.phoneNumber);
490
487
  }
491
488
  }, [value]);
492
- // Open dropdown: reset filteredCountries
493
489
  useEffect(function () {
494
490
  if (isDropdownOpen) {
495
491
  setFilteredCountries(uniqueCountries);
496
492
  }
497
493
  }, [isDropdownOpen]);
498
- // Cierra dropdown al hacer click fuera
494
+ useLayoutEffect(function () {
495
+ if (isDropdownOpen && dropdownRef.current) {
496
+ var rect = dropdownRef.current.getBoundingClientRect();
497
+ setDropdownPosition({
498
+ position: "absolute",
499
+ top: "".concat(rect.bottom + window.scrollY + 4, "px"),
500
+ left: "".concat(rect.left + window.scrollX, "px"),
501
+ width: "15rem",
502
+ zIndex: 50,
503
+ });
504
+ }
505
+ }, [isDropdownOpen]);
499
506
  useEffect(function () {
500
507
  var handleClickOutside = function (event) {
501
508
  if (dropdownRef.current &&
502
- !dropdownRef.current.contains(event.target)) {
509
+ !dropdownRef.current.contains(event.target) &&
510
+ portalDropdownRef.current &&
511
+ !portalDropdownRef.current.contains(event.target)) {
503
512
  setIsDropdownOpen(false);
504
513
  }
505
514
  };
@@ -514,31 +523,27 @@ var Phone = function (_a) {
514
523
  setSelectedCountry(country);
515
524
  setIsDropdownOpen(false);
516
525
  if (onChange) {
517
- onChange(country.code + inputValue);
526
+ onChange({ countryCode: country.code, phoneNumber: inputValue });
518
527
  }
519
528
  };
520
529
  var handleInputChange = function (e) {
521
- // Solo números
522
530
  var val = e.target.value.replace(/\D/g, "");
523
531
  setInputValue(val);
524
532
  if (onChange) {
525
- onChange(selectedCountry.code + val);
533
+ onChange({ countryCode: selectedCountry.code, phoneNumber: val });
526
534
  }
527
535
  };
528
- return (jsxs("div", { className: "flex flex-col gap-1 w-full relative", children: [finalLabel && (jsxs("label", { htmlFor: "phone-input-".concat(name), className: "text-tiny text-default-600 mb-1", children: [finalLabel, " ", required && jsx("span", { className: "text-pink-600", children: "*" })] })), jsxs("div", { className: "flex items-center w-full min-h-[56px] bg-white dark:bg-gray-900 transition-colors shadow-sm border border-[#E4E4E7] dark:border-gray-700 rounded-2xl focus-within:border-blue-500 dark:focus-within:border-blue-400 ".concat(error
529
- ? "border-pink-500 dark:border-pink-600"
530
- : "border-[#E4E4E7] dark:border-gray-700").concat(disabled ? " bg-gray-100 dark:bg-gray-800 opacity-60" : ""), children: [jsxs("div", { className: "relative ml-2", ref: dropdownRef, children: [jsxs("button", { type: "button",
531
- ///bg-gray-100
532
- className: "flex items-center gap-1 px-4 h-10 rounded-xl dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 focus:outline-none transition-colors", onClick: function () { return setIsDropdownOpen(function (v) { return !v; }); }, disabled: disabled, tabIndex: 0, "aria-label": t.selectCountryAriaLabel, children: [jsx("span", { className: "text-lg", children: selectedCountry.flag }), jsx("span", { className: "text-xs text-gray-700 dark:text-gray-200", children: selectedCountry.code }), jsxs("svg", { className: "w-4 h-4 text-gray-400 dark:text-gray-300 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" })] })] }), isDropdownOpen && (jsxs("div", { className: "absolute z-30 mt-2 w-60 bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg", children: [jsx("div", { className: "p-2", children: jsx("input", { type: "text", className: "w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-900 dark:text-gray-100 rounded-lg focus:outline-none focus:border-blue-500 dark:focus:border-blue-400", placeholder: t.searchPlaceholder, onChange: function (e) {
533
- var searchTerm = e.target.value.toLowerCase();
534
- var filtered = uniqueCountries.filter(function (country) {
535
- return country.name.toLowerCase().includes(searchTerm) ||
536
- country.code.toLowerCase().includes(searchTerm);
537
- });
538
- setFilteredCountries(filtered);
539
- } }) }), 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-gray-50 dark:hover:bg-gray-800 ".concat(country.code === selectedCountry.code
540
- ? "bg-blue-50 dark:bg-blue-900"
541
- : ""), onClick: function () { return handleCountrySelect(country); }, children: [jsx("span", { className: "mr-3 text-lg", children: country.flag }), jsx("span", { className: "flex-1 text-left dark:text-gray-100", children: country.name }), jsx("span", { className: "text-xs text-gray-500 dark:text-gray-400", children: country.code })] }, country.code)); })) : (jsx("div", { className: "px-4 py-2 text-sm text-gray-500 dark:text-gray-400", children: t.noCountriesFound })) })] }))] }), jsx(Input$1, { type: "tel", className: "flex-1 border-none bg-transparent text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 h-10 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-xs text-pink-600 dark:text-pink-400 mt-1", children: errorText }))] }));
536
+ 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", 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 dark: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("span", { className: "text-lg", children: selectedCountry.flag }), 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-xs text-danger-500 mt-1", children: errorText })), isDropdownOpen &&
537
+ createPortal(jsxs("div", { ref: portalDropdownRef, style: dropdownPosition, className: "bg-content1 border border-default-200 rounded-lg shadow-lg z-50", 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) {
538
+ var searchTerm = e.target.value.toLowerCase();
539
+ var filtered = uniqueCountries.filter(function (country) {
540
+ return country.name.toLowerCase().includes(searchTerm) ||
541
+ country.code.toLowerCase().includes(searchTerm);
542
+ });
543
+ setFilteredCountries(filtered);
544
+ } }) }), 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.code === selectedCountry.code
545
+ ? "bg-primary-50"
546
+ : ""), onClick: function () { return handleCountrySelect(country); }, children: [jsx("span", { className: "mr-3 text-lg", children: country.flag }), jsx("span", { className: "flex-1 text-left text-default-500", children: country.name }), jsx("span", { className: "text-xs text-default-500", children: country.code })] }, country.code)); })) : (jsx("div", { className: "px-4 py-2 text-sm text-default-500", children: t.noCountriesFound })) })] }), document.body)] }));
542
547
  };
543
548
 
544
549
  /**
@@ -894,7 +899,9 @@ var ThemePicker = function (_a) {
894
899
  previewContent: (jsxs("div", { className: "rounded-lg border border-[#3F3F46] p-3 mt-4 flex flex-col gap-2", children: [jsx("div", { className: "h-3 w-1/2 bg-[#3F3F46] rounded mb-2" }), jsxs("div", { className: "flex flex-col gap-1", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("div", { className: "h-3 w-3 rounded-full bg-[#3F3F46]" }), jsx("div", { className: "h-3 w-1/3 rounded bg-[#3F3F46]" })] }), jsxs("div", { className: "flex items-center gap-2", children: [jsx("div", { className: "h-3 w-3 rounded-full bg-[#3F3F46]" }), jsx("div", { className: "h-3 w-1/4 rounded bg-[#3F3F46]" })] })] }), jsx("div", { className: "h-8 w-2/3 bg-[#27272A] rounded-lg mt-2" })] })),
895
900
  },
896
901
  ];
897
- return (jsx(RadioGroup, { value: value, onChange: function (e) { return onChange(e.target.value); }, className: "flex gap-6 w-full ".concat(className || ""), style: { gap: 16 }, children: themes.map(function (theme) { return (jsxs("div", { className: "relative rounded-[14px] ".concat(theme.cardClass, " p-6 w-1/2 min-h-[180px] transition-all duration-200 flex flex-col justify-start"), children: [jsx("div", { className: "absolute top-6 right-6", children: jsx(Radio, { "aria-label": theme.label, color: theme.radioColor, size: "sm", value: theme.key }) }), jsx("span", { className: theme.labelClass, children: theme.label }), theme.previewContent] }, theme.key)); }) }));
902
+ return (jsx(RadioGroup, { value: value, onChange: function (e) { return onChange(e.target.value); }, className: "flex justify-center ".concat(className || ""), orientation: "horizontal", classNames: {
903
+ wrapper: "gap-3",
904
+ }, children: themes.map(function (theme) { return (jsxs("div", { className: "relative rounded-2xl ".concat(theme.cardClass, " p-4 flex-1 transition-all duration-200 flex flex-col justify-start"), children: [jsxs("div", { className: "flex items-center justify-between gap-2", children: [jsx("span", { className: theme.labelClass, children: theme.label }), jsx(Radio, { "aria-label": theme.label, color: theme.radioColor, size: "sm", value: theme.key })] }), theme.previewContent] }, theme.key)); }) }));
898
905
  };
899
906
 
900
907
  var ConfigMenu = function (_a) {
@@ -1439,38 +1446,40 @@ var Pagination = function (_a) {
1439
1446
  return jsx(Pagination$1, __assign({ showControls: true, isCompact: true }, props));
1440
1447
  };
1441
1448
 
1442
- var Modal = function (props) {
1443
- return (jsx(Modal$1, __assign({ shouldBlockScroll: true, radius: "lg", className: "py-9 px-6" }, props)));
1449
+ var H2 = function (_a) {
1450
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
1451
+ return (jsx("h2", __assign({ className: cn("text-lg font-medium", className) }, props, { children: children })));
1444
1452
  };
1445
1453
 
1446
- var ModalContent = ModalContent$1;
1447
-
1448
- var ModalHeader = ModalHeader$1;
1449
-
1450
- var ModalBody = ModalBody$1;
1454
+ var H3 = function (_a) {
1455
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
1456
+ return (jsx("h3", __assign({ className: cn("text-base font-medium mb-1", className) }, props, { children: children })));
1457
+ };
1451
1458
 
1452
- var ModalFooter = ModalFooter$1;
1459
+ var H4 = function (_a) {
1460
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
1461
+ return (jsx("h4", __assign({ className: cn("text-sm font-medium mb-1", className) }, props, { children: children })));
1462
+ };
1453
1463
 
1454
- var paddingClasses = {
1455
- sm: "p-4",
1456
- md: "p-6",
1457
- lg: "p-8",
1464
+ var P = function (_a) {
1465
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
1466
+ return (jsx("p", __assign({ className: cn("text-sm text-default-500", className) }, props, { children: children })));
1458
1467
  };
1459
1468
 
1460
- /**
1461
- * Card genérica siguiendo las reglas de diseño BeweOS basada en HeroUI.
1462
- *
1463
- * Reglas aplicadas:
1464
- * - Shadow: none, sm, md, lg (configurable)
1465
- * - Radius: sm (por defecto, configurable)
1466
- * - Padding configurable (sm, md, lg)
1467
- * - Hereda de HeroUI Card con personalización BeweOS
1468
- */
1469
- var Card = function (_a) {
1470
- var children = _a.children, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.shadow, shadow = _c === void 0 ? "sm" : _c, _d = _a.radius, radius = _d === void 0 ? "sm" : _d, _e = _a.padding, padding = _e === void 0 ? "md" : _e, props = __rest(_a, ["children", "className", "shadow", "radius", "padding"]);
1471
- var paddingClass = paddingClasses[padding];
1472
- var combinedClassName = [paddingClass, className].filter(Boolean).join(" ");
1473
- return (jsx(Card$1, __assign({ shadow: shadow, radius: radius, className: combinedClassName }, props, { children: children })));
1469
+ var ThemeContext = createContext({
1470
+ mode: "light",
1471
+ color: "blue",
1472
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: <explanation>
1473
+ setMode: function () { },
1474
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: <explanation>
1475
+ setColor: function () { },
1476
+ });
1477
+ var useThemeContext = function () {
1478
+ var context = useContext(ThemeContext);
1479
+ if (!context) {
1480
+ throw new Error("useThemeContext debe ser usado dentro de un ThemeProvider");
1481
+ }
1482
+ return context;
1474
1483
  };
1475
1484
 
1476
1485
  var themeColors = {
@@ -1963,20 +1972,74 @@ var themeColors = {
1963
1972
  },
1964
1973
  };
1965
1974
 
1966
- var ThemeContext = createContext({
1967
- mode: "light",
1968
- color: "blue",
1969
- // biome-ignore lint/suspicious/noEmptyBlockStatements: <explanation>
1970
- setMode: function () { },
1971
- // biome-ignore lint/suspicious/noEmptyBlockStatements: <explanation>
1972
- setColor: function () { },
1973
- });
1974
- var useThemeContext = function () {
1975
- var context = useContext(ThemeContext);
1976
- if (!context) {
1977
- throw new Error("useThemeContext debe ser usado dentro de un ThemeProvider");
1978
- }
1979
- return context;
1975
+ var ColorSelector = function (_a) {
1976
+ var selectedColor = _a.selectedColor, onColorChange = _a.onColorChange;
1977
+ var mode = useThemeContext().mode;
1978
+ /**
1979
+ * Filters and maps the available theme colors to the current theme mode (light/dark).
1980
+ * Each color option contains:
1981
+ * - value: the theme name (e.g., "blue-light")
1982
+ * - label: the base color name (e.g., "blue")
1983
+ * - color: the primary color hex value
1984
+ */
1985
+ var colorOptions = Object.entries(themeColors)
1986
+ .filter(function (_a) {
1987
+ var themeData = _a[1];
1988
+ var themeMode = themeData.extend;
1989
+ return mode === "light" ? themeMode === "light" : themeMode === "dark";
1990
+ })
1991
+ .map(function (_a) {
1992
+ var themeName = _a[0], theme = _a[1];
1993
+ return ({
1994
+ value: themeName,
1995
+ label: themeName.split("-")[0],
1996
+ color: theme.colors.primary.DEFAULT,
1997
+ });
1998
+ });
1999
+ return (jsx(RadioGroup, { value: selectedColor, onValueChange: onColorChange, orientation: "horizontal", className: "flex flex-wrap !gap-2", classNames: {
2000
+ base: "flex flex-wrap !gap-2",
2001
+ wrapper: "flex flex-wrap !gap-2",
2002
+ }, children: colorOptions.map(function (color) { return (jsx(Radio, { value: color.label, className: "p-0 m-0", classNames: {
2003
+ base: "p-0 m-0",
2004
+ wrapper: "hidden",
2005
+ labelWrapper: "p-0 m-0",
2006
+ }, children: jsx("div", { className: "w-8 h-8 rounded-full border-2 cursor-pointer transition-all ".concat(selectedColor === color.label
2007
+ ? "border-black border-opacity-20 scale-110"
2008
+ : "border-gray-200 hover:scale-105"), style: { backgroundColor: color.color }, title: color.label }) }, color.value)); }) }));
2009
+ };
2010
+
2011
+ var Modal = function (props) {
2012
+ return (jsx(Modal$1, __assign({ shouldBlockScroll: true, radius: "lg", className: "py-9 px-6" }, props)));
2013
+ };
2014
+
2015
+ var ModalContent = ModalContent$1;
2016
+
2017
+ var ModalHeader = ModalHeader$1;
2018
+
2019
+ var ModalBody = ModalBody$1;
2020
+
2021
+ var ModalFooter = ModalFooter$1;
2022
+
2023
+ var paddingClasses = {
2024
+ sm: "p-4",
2025
+ md: "p-6",
2026
+ lg: "p-8",
2027
+ };
2028
+
2029
+ /**
2030
+ * Card genérica siguiendo las reglas de diseño BeweOS basada en HeroUI.
2031
+ *
2032
+ * Reglas aplicadas:
2033
+ * - Shadow: none, sm, md, lg (configurable)
2034
+ * - Radius: sm (por defecto, configurable)
2035
+ * - Padding configurable (sm, md, lg)
2036
+ * - Hereda de HeroUI Card con personalización BeweOS
2037
+ */
2038
+ var Card = function (_a) {
2039
+ var children = _a.children, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.shadow, shadow = _c === void 0 ? "sm" : _c, _d = _a.radius, radius = _d === void 0 ? "sm" : _d, _e = _a.padding, padding = _e === void 0 ? "md" : _e, props = __rest(_a, ["children", "className", "shadow", "radius", "padding"]);
2040
+ var paddingClass = paddingClasses[padding];
2041
+ var combinedClassName = [paddingClass, className].filter(Boolean).join(" ");
2042
+ return (jsx(Card$1, __assign({ shadow: shadow, radius: radius, className: combinedClassName }, props, { children: children })));
1980
2043
  };
1981
2044
 
1982
2045
  /**
@@ -2090,4 +2153,4 @@ var AuraToastProvider = function (_a) {
2090
2153
  return (jsx(ToastContext.Provider, { value: { toast: toast, showToast: showToast, hideToast: hideToast }, children: children }));
2091
2154
  };
2092
2155
 
2093
- export { AddHolidayForm, AuraTable, AuraToastProvider, AutoComplete, Button, Card, DatePicker, DateRangePicker, GlobalToast, HeaderComponent, HolidayType, IconComponent, Input, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, Pagination, Phone, ScheduleRow, Select, Switch as SwitchComponent, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput as TimeInputComponent, ToastContext, UploadFile, sizeMap, themeColors, useAuraToast, useThemeContext };
2156
+ export { AddHolidayForm, AuraTable, AuraToastProvider, AutoComplete, Button, Card, ColorSelector, DatePicker, DateRangePicker, GlobalToast, H2, H3, H4, HeaderComponent, HolidayType, IconComponent, Input, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, P, Pagination, Phone, ScheduleRow, Select, Switch as SwitchComponent, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput as TimeInputComponent, ToastContext, UploadFile, sizeMap, themeColors, useAuraToast, useThemeContext };
@@ -0,0 +1,5 @@
1
+ import type React from "react";
2
+ import type { PlatformColorManagerProps } from "./ColorSelector.types";
3
+ declare const ColorSelector: React.FC<PlatformColorManagerProps>;
4
+ export default ColorSelector;
5
+ //# sourceMappingURL=ColorSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/color-selector/ColorSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAgEtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface PlatformColorManagerProps {
2
+ selectedColor: string;
3
+ onColorChange: (color: string) => void;
4
+ }
5
+ //# sourceMappingURL=ColorSelector.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorSelector.types.d.ts","sourceRoot":"","sources":["../../../../src/components/color-selector/ColorSelector.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC"}
@@ -0,0 +1,3 @@
1
+ export { default as ColorSelector } from "./ColorSelector";
2
+ export * from "./ColorSelector.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/color-selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,uBAAuB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type React from "react";
2
2
  import type { DateRangePickerProps } from "./DateRangePicker.types";
3
- import "./DateRangePicker.scss";
4
3
  export declare const DateRangePicker: React.FC<DateRangePickerProps>;
5
4
  //# sourceMappingURL=DateRangePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/daterangepicker/DateRangePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,wBAAwB,CAAC;AAEhC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
1
+ {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/daterangepicker/DateRangePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from "react";
2
+ import type { H2Props } from "./H2.types";
3
+ export declare const H2: React.FC<H2Props>;
4
+ //# sourceMappingURL=H2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../../src/components/h2/H2.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAMhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface H2Props extends HTMLAttributes<HTMLHeadingElement> {
3
+ }
4
+ //# sourceMappingURL=H2.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"H2.types.d.ts","sourceRoot":"","sources":["../../../../src/components/h2/H2.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,OAAQ,SAAQ,cAAc,CAAC,kBAAkB,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ export { H2 } from "./H2";
2
+ export * from "./H2.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/h2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from "react";
2
+ import type { H3Props } from "./H3.types";
3
+ export declare const H3: React.FC<H3Props>;
4
+ //# sourceMappingURL=H3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../../src/components/h3/H3.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAMhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface H3Props extends HTMLAttributes<HTMLHeadingElement> {
3
+ }
4
+ //# sourceMappingURL=H3.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"H3.types.d.ts","sourceRoot":"","sources":["../../../../src/components/h3/H3.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,OAAQ,SAAQ,cAAc,CAAC,kBAAkB,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ export { H3 } from "./H3";
2
+ export * from "./H3.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/h3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from "react";
2
+ import type { H4Props } from "./H4.types";
3
+ export declare const H4: React.FC<H4Props>;
4
+ //# sourceMappingURL=H4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../../src/components/h4/H4.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAMhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface H4Props extends HTMLAttributes<HTMLHeadingElement> {
3
+ }
4
+ //# sourceMappingURL=H4.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"H4.types.d.ts","sourceRoot":"","sources":["../../../../src/components/h4/H4.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,OAAQ,SAAQ,cAAc,CAAC,kBAAkB,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ export { H4 } from "./H4";
2
+ export * from "./H4.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/h4/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from "react";
2
+ import type { PProps } from "./P.types";
3
+ export declare const P: React.FC<PProps>;
4
+ //# sourceMappingURL=P.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P.d.ts","sourceRoot":"","sources":["../../../../src/components/p/P.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,eAAO,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAM9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface PProps extends HTMLAttributes<HTMLParagraphElement> {
3
+ }
4
+ //# sourceMappingURL=P.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P.types.d.ts","sourceRoot":"","sources":["../../../../src/components/p/P.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,MAAO,SAAQ,cAAc,CAAC,oBAAoB,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ export { P } from "./P";
2
+ export * from "./P.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/p/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,cAAc,WAAW,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;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,eAAe,CAAC;AAyDxE,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwM3C,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;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkN3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -6,13 +6,24 @@ export interface PhoneTranslations {
6
6
  expandListAriaLabel?: string;
7
7
  noCountriesFound?: string;
8
8
  }
9
+ export interface Country {
10
+ code: string;
11
+ name: string;
12
+ flag: string;
13
+ }
14
+ export interface PhoneValue {
15
+ countryCode?: string;
16
+ phoneNumber: string;
17
+ country?: string;
18
+ }
9
19
  export interface PhoneInputProps {
20
+ id?: string;
10
21
  label?: string;
11
22
  required?: boolean;
12
23
  error?: boolean;
13
24
  errorText?: string;
14
- value?: string;
15
- onChange?: (value: string) => void;
25
+ value?: PhoneValue;
26
+ onChange?: (value: PhoneValue) => void;
16
27
  onBlur?: () => void;
17
28
  disabled?: boolean;
18
29
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Phone.types.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC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CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACjC"}
@@ -0,0 +1,13 @@
1
+ import type { PhoneTranslations } from "./Phone.types";
2
+ export declare const countries: {
3
+ code: string;
4
+ name: string;
5
+ flag: string;
6
+ }[];
7
+ export declare const uniqueCountries: {
8
+ code: string;
9
+ name: string;
10
+ flag: string;
11
+ }[];
12
+ export declare const defaultTranslations: Required<PhoneTranslations>;
13
+ //# sourceMappingURL=phone.constants.d.ts.map
@@ -0,0 +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;;;;GAsCrB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAE3B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAO3D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThemePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/theme-picker/ThemePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAEX,gBAAgB,EAEhB,MAAM,qBAAqB,CAAC;AAQ7B;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwFlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ThemePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/theme-picker/ThemePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAEX,gBAAgB,EAEhB,MAAM,qBAAqB,CAAC;AAQ7B;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2FlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -18,6 +18,11 @@ export * from "./components/time-input";
18
18
  export * from "./components/toast";
19
19
  export * from "./components/upload-file";
20
20
  export * from "./components/pagination";
21
+ export * from "./components/h2";
22
+ export * from "./components/h3";
23
+ export * from "./components/h4";
24
+ export * from "./components/p";
25
+ export * from "./components/color-selector";
21
26
  export { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, type ModalProps, } from "./components/modal";
22
27
  export { Button, type ButtonProps } from "./components/button";
23
28
  export { Card, type CardProps } from "./components/card";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAU9B,cAAc,eAAe,CAAC;AAI9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACN,KAAK,EACL,YAAY,EACZ,W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
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",