@beweco/aurora-ui 1.0.0-beta.142 → 1.0.0-beta.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/styles.css +1 -1
- package/dist/assets/css/theme.css +18 -0
- package/dist/index.cjs.js +314 -232
- package/dist/index.esm.js +198 -113
- package/dist/types/compat/heroui-v2-shims.d.ts.map +1 -1
- package/dist/types/components/alert/Alert.d.ts.map +1 -1
- package/dist/types/components/analytics-card/AnalyticsCard.d.ts.map +1 -1
- package/dist/types/components/autocomplete/AutoComplete.d.ts.map +1 -1
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/components/button/Button.d.ts.map +1 -1
- package/dist/types/components/card/Card.d.ts.map +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/chip/Chip.d.ts.map +1 -1
- package/dist/types/components/copy-text/CopyText.d.ts.map +1 -1
- package/dist/types/components/datepicker/calendar-slots.d.ts.map +1 -1
- package/dist/types/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/types/components/drawer/Drawer.types.d.ts +11 -0
- package/dist/types/components/drawer/Drawer.types.d.ts.map +1 -1
- package/dist/types/components/drawer/_internal/DrawerBody.d.ts.map +1 -1
- package/dist/types/components/drawer/_internal/DrawerFooter.d.ts.map +1 -1
- package/dist/types/components/drawer/_internal/DrawerHeader.d.ts.map +1 -1
- package/dist/types/components/drawer-filters/DrawerFilters.d.ts.map +1 -1
- package/dist/types/components/drawer-filters/_internal/FilterSection.d.ts.map +1 -1
- package/dist/types/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/types/components/dropdown/_internal/renderTrigger.d.ts.map +1 -1
- package/dist/types/components/h1/H1.d.ts.map +1 -1
- package/dist/types/components/h2/H2.d.ts.map +1 -1
- package/dist/types/components/h3/H3.d.ts.map +1 -1
- package/dist/types/components/h4/H4.d.ts.map +1 -1
- package/dist/types/components/input/Input.d.ts.map +1 -1
- package/dist/types/components/kanban/_internal/KanbanColumn.d.ts.map +1 -1
- package/dist/types/components/menu/_internal/menu-mobile-bottom-bar/MenuMobileBottomBar.d.ts.map +1 -1
- package/dist/types/components/menu/_internal/menu-nav-list/MenuNavList.d.ts.map +1 -1
- package/dist/types/components/menu-claw/MenuClaw.d.ts.map +1 -1
- package/dist/types/components/menu-claw/_internal/menu-claw-history/MenuClawHistoryPanel.d.ts.map +1 -1
- package/dist/types/components/menu-claw/_internal/menu-claw-nav/MenuClawNavItem.d.ts.map +1 -1
- package/dist/types/components/modal/Modal.d.ts.map +1 -1
- package/dist/types/components/modal/Modal.types.d.ts +11 -0
- package/dist/types/components/modal/Modal.types.d.ts.map +1 -1
- package/dist/types/components/modal/_internal/ModalBody.d.ts +1 -1
- package/dist/types/components/modal/_internal/ModalBody.d.ts.map +1 -1
- package/dist/types/components/modal/_internal/ModalFooter.d.ts.map +1 -1
- package/dist/types/components/modal/_internal/ModalHeader.d.ts.map +1 -1
- package/dist/types/components/multi-step-wizard/_internal/MultiStepSidebar.d.ts.map +1 -1
- package/dist/types/components/multi-step-wizard/_internal/MultistepNavigationButtons.d.ts.map +1 -1
- package/dist/types/components/p/P.d.ts.map +1 -1
- package/dist/types/components/pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/row-steps/RowSteps.d.ts.map +1 -1
- package/dist/types/components/select/Select.d.ts.map +1 -1
- package/dist/types/components/step-indicator/StepIndicator.d.ts.map +1 -1
- package/dist/types/components/switch/Switch.d.ts.map +1 -1
- package/dist/types/components/table/TableContent.d.ts.map +1 -1
- package/dist/types/components/table/_internal/v2-compat.d.ts.map +1 -1
- package/dist/types/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/textarea/Textarea.d.ts.map +1 -1
- package/dist/types/components/time-input/TimeInput.d.ts.map +1 -1
- package/dist/types/components/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/components/vertical-steps/VerticalSteps.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/utils/cn.d.ts +46 -0
- package/dist/types/utils/cn.d.ts.map +1 -0
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Card as Card$1, Breadcrumbs, ProgressBar,
|
|
2
|
-
export { Accordion, AccordionItem, Avatar, Breadcrumbs, CardFooter, CardHeader, CheckboxGroup, CloseButton, DropdownItem, DropdownMenu, DropdownTrigger, Link, Popover, PopoverContent, PopoverTrigger, Radio, RadioGroup, Skeleton, Slider, Spinner, TableBody, TableCell, TableColumn, TableHeader, TableRow
|
|
1
|
+
import { Card as Card$1, Breadcrumbs, ProgressBar, Label, ListBoxSection, ListBoxItem, Separator, RouterProvider, I18nProvider, useOverlayState, Spinner, buttonVariants, Button as Button$1, Chip as Chip$1, CloseButton, useLocale, Pagination as Pagination$1, Skeleton, Accordion, DatePicker as DatePicker$1, DateField, Description, Calendar, FieldError, DateRangePicker as DateRangePicker$1, RangeCalendar, TextField, InputGroup, RadioGroup, Radio, Tabs as Tabs$1, Dropdown as Dropdown$1, Header, ComboBox, Input as Input$1, ListBox, Tooltip as Tooltip$2, DropdownTrigger, DropdownPopover, DropdownMenu, DropdownSection as DropdownSection$1, DropdownItem, Badge as Badge$1, Popover, PopoverTrigger, PopoverContent, Avatar, Link, Switch as Switch$1, TimeField, useFilter, Autocomplete, Select as Select$1, SearchField, Checkbox as Checkbox$1, Table as Table$1, TextArea, toastVariants, WarningIcon, SuccessIcon, InfoIcon, DangerIcon, Modal as Modal$1, Slider, Drawer as Drawer$1, ModalHeader as ModalHeader$1, ModalBody as ModalBody$1, ModalFooter as ModalFooter$1, DrawerHeader as DrawerHeader$1, DrawerBody as DrawerBody$1, DrawerFooter as DrawerFooter$1, Alert as Alert$1 } from '@heroui/react';
|
|
2
|
+
export { Accordion, AccordionItem, Avatar, Breadcrumbs, CardFooter, CardHeader, CheckboxGroup, CloseButton, DropdownItem, DropdownMenu, DropdownTrigger, Link, Popover, PopoverContent, PopoverTrigger, Radio, RadioGroup, Skeleton, Slider, Spinner, TableBody, TableCell, TableColumn, TableHeader, TableRow } from '@heroui/react';
|
|
3
|
+
import { cnMerge } from 'tailwind-variants';
|
|
3
4
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
4
5
|
import $8WNJc$react, { Children, isValidElement, Fragment, useState, useRef, useCallback, useEffect, createElement, useId, forwardRef, useMemo, cloneElement, useImperativeHandle, createContext, useContext, useLayoutEffect, memo, useReducer, version } from 'react';
|
|
5
6
|
import { Icon } from '@iconify/react';
|
|
@@ -8,6 +9,74 @@ import { ResponsiveContainer, AreaChart, CartesianGrid, XAxis, Tooltip as Toolti
|
|
|
8
9
|
import { createPortal } from 'react-dom';
|
|
9
10
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* `cn` de Aurora: el mismo `cn` de `tailwind-variants` que reexporta HeroUI v3, pero con
|
|
14
|
+
* `tailwind-merge` enseñado a reconocer el vocabulario de HeroUI v2.
|
|
15
|
+
*
|
|
16
|
+
* Por qué existe (TECH-2459): el `cn` de v3 corre sobre `tailwind-merge` 3, que no conoce la
|
|
17
|
+
* escala `tiny/small/medium/large` del plugin `heroui()` de v2. Sin esta configuración:
|
|
18
|
+
*
|
|
19
|
+
* - `cn("text-tiny text-default-500")` → `"text-default-500"`: lee `text-tiny` como un COLOR
|
|
20
|
+
* (`text-<cualquier cosa>` casa con el validador de color), ve otro color detrás y la BORRA
|
|
21
|
+
* del DOM. Medido en `P.tsx`: texto a 16px en vez de 12px.
|
|
22
|
+
* - `cn("border-medium border-default-200")` y `cn("shadow-small shadow-primary")` igual:
|
|
23
|
+
* `border-*` y `shadow-*` también caen en el validador de color.
|
|
24
|
+
* - `cn("rounded-medium rounded-none")` → conserva las dos: no la reconoce como radio, así
|
|
25
|
+
* que el conflicto real no se resuelve y gana la que venga después en la hoja.
|
|
26
|
+
*
|
|
27
|
+
* Las utilidades en sí (`.text-tiny`, `.rounded-medium`…) las genera el Tailwind de la app a
|
|
28
|
+
* partir de los tokens `--text-*`, `--radius-*`, `--border-width-*` y `--shadow-*` que publica
|
|
29
|
+
* `theme-tokens.generated.css` (export `./theme`). Esto solo cubre la otra mitad: que `cn` no
|
|
30
|
+
* las borre ni las deje sin resolver.
|
|
31
|
+
*
|
|
32
|
+
* La escala sale del plugin v2 (`@heroui/theme@2.4.15`, `corePlugin` → `theme.extend`):
|
|
33
|
+
* `fontSize` tiny/small/medium/large, `borderRadius` small/medium/large, `borderWidth`
|
|
34
|
+
* small/medium/large, `boxShadow` small/medium/large. Nada más: la escala `*-unit-*` NO existía
|
|
35
|
+
* en 2.4.15 (ya estaba muerta en v2) y no se repone.
|
|
36
|
+
*
|
|
37
|
+
* Se exporta como `cn` del paquete, así que el de las apps y el de las fachadas es el mismo.
|
|
38
|
+
* Las fachadas deben importarlo de aquí, nunca de `@heroui/react` (lo vigila `cn.test.ts`).
|
|
39
|
+
*/
|
|
40
|
+
const V2_TEXT = ["tiny", "small", "medium", "large"];
|
|
41
|
+
const V2_SIZES = ["small", "medium", "large"];
|
|
42
|
+
/**
|
|
43
|
+
* Extensión de `tailwind-merge` (formato `twMergeConfig` de tailwind-variants).
|
|
44
|
+
*
|
|
45
|
+
* `theme.text`/`radius`/`shadow` alimentan los grupos `font-size`, `rounded*` (todas las
|
|
46
|
+
* esquinas y lados) y `shadow`. El ancho de borde no lee del tema en tailwind-merge 3
|
|
47
|
+
* (`scaleBorderWidth` es fijo), así que se extienden sus grupos uno a uno.
|
|
48
|
+
*/
|
|
49
|
+
const BORDER_WIDTH_GROUPS = [
|
|
50
|
+
["border-w", "border"],
|
|
51
|
+
["border-w-x", "border-x"],
|
|
52
|
+
["border-w-y", "border-y"],
|
|
53
|
+
["border-w-s", "border-s"],
|
|
54
|
+
["border-w-e", "border-e"],
|
|
55
|
+
["border-w-bs", "border-bs"],
|
|
56
|
+
["border-w-be", "border-be"],
|
|
57
|
+
["border-w-t", "border-t"],
|
|
58
|
+
["border-w-r", "border-r"],
|
|
59
|
+
["border-w-b", "border-b"],
|
|
60
|
+
["border-w-l", "border-l"],
|
|
61
|
+
];
|
|
62
|
+
const AURORA_TW_MERGE_CONFIG = {
|
|
63
|
+
extend: {
|
|
64
|
+
theme: {
|
|
65
|
+
text: V2_TEXT,
|
|
66
|
+
radius: V2_SIZES,
|
|
67
|
+
shadow: V2_SIZES,
|
|
68
|
+
},
|
|
69
|
+
classGroups: Object.fromEntries(BORDER_WIDTH_GROUPS.map(([group, prefix]) => [
|
|
70
|
+
group,
|
|
71
|
+
[{ [prefix]: V2_SIZES }],
|
|
72
|
+
])),
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
// Referencia estable: tailwind-variants cachea el merger por igualdad con la última config.
|
|
76
|
+
const MERGE_OPTIONS = { twMergeConfig: AURORA_TW_MERGE_CONFIG };
|
|
77
|
+
/** Combina clases y resuelve conflictos de Tailwind, conociendo la escala de HeroUI v2. */
|
|
78
|
+
const cn = (...classnames) => cnMerge(...classnames)(MERGE_OPTIONS);
|
|
79
|
+
|
|
11
80
|
// ---------------------------------------------------------------------------
|
|
12
81
|
// Compound v2 → namespaced v3: símbolos que SÍ desaparecieron como export plano
|
|
13
82
|
// (verificado: no están en los `export { … }` de sus módulos v3, a diferencia
|
|
@@ -13616,111 +13685,6 @@ const DrawerFiltersHeader = ({ titleId, title, description, }) => {
|
|
|
13616
13685
|
return (jsxs("div", { className: "px-6 pt-10", children: [jsx(H2, { id: titleId, className: "text-xl font-semibold text-foreground mb-2", children: title }), jsx(P, { className: "text-default-500", children: description })] }));
|
|
13617
13686
|
};
|
|
13618
13687
|
|
|
13619
|
-
const NO_YEAR_CLASS = "[&_[data-type='year']]:hidden [&_[data-type='literal']:has(+[data-type='year'])]:hidden";
|
|
13620
|
-
// Year used to construct CalendarDate values. React Aria's onChange only fires when
|
|
13621
|
-
// ALL segments (including hidden year) are user-confirmed. Since users can't type year
|
|
13622
|
-
// (it's CSS-hidden), we read month+day directly from the DOM via data-placeholder
|
|
13623
|
-
// attributes when the picker loses focus, bypassing the year-confirmation requirement.
|
|
13624
|
-
const FILLER_YEAR = new Date().getFullYear();
|
|
13625
|
-
/**
|
|
13626
|
-
* Reads month and day from segment DOM elements.
|
|
13627
|
-
* Returns null if any segment is still in placeholder state (user hasn't typed it yet).
|
|
13628
|
-
* React Aria marks unconfirmed segments with data-placeholder="true".
|
|
13629
|
-
*/
|
|
13630
|
-
function readConfirmedMonthDay(container, monthSelector = '[data-type="month"]', daySelector = '[data-type="day"]') {
|
|
13631
|
-
const monthEl = container.querySelector(monthSelector);
|
|
13632
|
-
const dayEl = container.querySelector(daySelector);
|
|
13633
|
-
if (!monthEl || !dayEl)
|
|
13634
|
-
return null;
|
|
13635
|
-
if (monthEl.getAttribute("data-placeholder") === "true")
|
|
13636
|
-
return null;
|
|
13637
|
-
if (dayEl.getAttribute("data-placeholder") === "true")
|
|
13638
|
-
return null;
|
|
13639
|
-
const month = Number(monthEl.getAttribute("aria-valuenow"));
|
|
13640
|
-
const day = Number(dayEl.getAttribute("aria-valuenow"));
|
|
13641
|
-
if (month >= 1 && month <= 12 && day >= 1 && day <= 31)
|
|
13642
|
-
return { month, day };
|
|
13643
|
-
return null;
|
|
13644
|
-
}
|
|
13645
|
-
const DayMonthPicker = ({ value, onChange, translations, ariaLabelledBy, }) => {
|
|
13646
|
-
const t = {
|
|
13647
|
-
dayMonthAriaLabel: "Seleccionar mes y día",
|
|
13648
|
-
dayMonthRangeAriaLabel: "Seleccionar rango de mes y día",
|
|
13649
|
-
dayMonthSingleOption: "Día específico",
|
|
13650
|
-
dayMonthRangeOption: "Rango de fechas",
|
|
13651
|
-
...translations,
|
|
13652
|
-
};
|
|
13653
|
-
const [mode, setMode] = useState(value?.type === "dayMonthRange" ? "range" : "single");
|
|
13654
|
-
useEffect(() => {
|
|
13655
|
-
setMode(value?.type === "dayMonthRange" ? "range" : "single");
|
|
13656
|
-
}, [value?.type]);
|
|
13657
|
-
const pickerValue = value?.type === "dayMonth" ? value.dayMonth : null;
|
|
13658
|
-
const rangeValue = value?.type === "dayMonthRange" ? value.dayMonthRange : null;
|
|
13659
|
-
// Refs to DOM wrappers — used by the DOM-reading fallback for manual input.
|
|
13660
|
-
const singleRef = useRef(null);
|
|
13661
|
-
const rangeRef = useRef(null);
|
|
13662
|
-
// Stable refs so focus-change callbacks always read current values without
|
|
13663
|
-
// needing to be recreated on every render.
|
|
13664
|
-
const pickerValueRef = useRef(pickerValue);
|
|
13665
|
-
pickerValueRef.current = pickerValue;
|
|
13666
|
-
const rangeValueRef = useRef(rangeValue);
|
|
13667
|
-
rangeValueRef.current = rangeValue;
|
|
13668
|
-
const handleModeChange = (newMode) => {
|
|
13669
|
-
const nextMode = newMode === "range" ? "range" : "single";
|
|
13670
|
-
setMode(nextMode);
|
|
13671
|
-
if (nextMode === "single") {
|
|
13672
|
-
onChange({ type: "dayMonth", dayMonth: null, dayMonthRange: null });
|
|
13673
|
-
return;
|
|
13674
|
-
}
|
|
13675
|
-
onChange({ type: "dayMonthRange", dayMonth: null, dayMonthRange: null });
|
|
13676
|
-
};
|
|
13677
|
-
const handleSingleChange = (date) => {
|
|
13678
|
-
onChange({ type: "dayMonth", dayMonth: date, dayMonthRange: null });
|
|
13679
|
-
};
|
|
13680
|
-
const handleRangeChange = (range) => {
|
|
13681
|
-
onChange({ type: "dayMonthRange", dayMonth: null, dayMonthRange: range });
|
|
13682
|
-
};
|
|
13683
|
-
// Called by React Aria when the DatePicker gains/loses focus.
|
|
13684
|
-
// When value=null (placeholder mode) React Aria never fires onChange because the
|
|
13685
|
-
// hidden year segment is never user-confirmed. On blur we read the confirmed
|
|
13686
|
-
// month/day directly from the DOM as a workaround.
|
|
13687
|
-
const handleSingleFocusChange = (isFocused) => {
|
|
13688
|
-
if (isFocused || pickerValueRef.current)
|
|
13689
|
-
return;
|
|
13690
|
-
if (!singleRef.current)
|
|
13691
|
-
return;
|
|
13692
|
-
const result = readConfirmedMonthDay(singleRef.current);
|
|
13693
|
-
if (result) {
|
|
13694
|
-
handleSingleChange(new $2aaf608024c21ca1$export$99faa760c7908e4f(FILLER_YEAR, result.month, result.day));
|
|
13695
|
-
}
|
|
13696
|
-
};
|
|
13697
|
-
const handleRangeFocusChange = (isFocused) => {
|
|
13698
|
-
if (isFocused || rangeValueRef.current)
|
|
13699
|
-
return;
|
|
13700
|
-
if (!rangeRef.current)
|
|
13701
|
-
return;
|
|
13702
|
-
const monthEls = rangeRef.current.querySelectorAll('[data-type="month"]');
|
|
13703
|
-
const dayEls = rangeRef.current.querySelectorAll('[data-type="day"]');
|
|
13704
|
-
if (monthEls.length < 2 || dayEls.length < 2)
|
|
13705
|
-
return;
|
|
13706
|
-
const allConfirmed = [...monthEls, ...dayEls].every((el) => el.getAttribute("data-placeholder") !== "true");
|
|
13707
|
-
if (!allConfirmed)
|
|
13708
|
-
return;
|
|
13709
|
-
const startMonth = Number(monthEls[0].getAttribute("aria-valuenow"));
|
|
13710
|
-
const startDay = Number(dayEls[0].getAttribute("aria-valuenow"));
|
|
13711
|
-
const endMonth = Number(monthEls[1].getAttribute("aria-valuenow"));
|
|
13712
|
-
const endDay = Number(dayEls[1].getAttribute("aria-valuenow"));
|
|
13713
|
-
const valid = (m, d) => m >= 1 && m <= 12 && d >= 1 && d <= 31;
|
|
13714
|
-
if (valid(startMonth, startDay) && valid(endMonth, endDay)) {
|
|
13715
|
-
handleRangeChange({
|
|
13716
|
-
start: new $2aaf608024c21ca1$export$99faa760c7908e4f(FILLER_YEAR, startMonth, startDay),
|
|
13717
|
-
end: new $2aaf608024c21ca1$export$99faa760c7908e4f(FILLER_YEAR, endMonth, endDay),
|
|
13718
|
-
});
|
|
13719
|
-
}
|
|
13720
|
-
};
|
|
13721
|
-
return (jsxs("div", { className: "w-full flex flex-wrap xs:gap-5 justify-between items-center", children: [jsxs(RadioGroup, { orientation: "horizontal", value: mode, onChange: handleModeChange, "aria-labelledby": ariaLabelledBy, children: [jsx(Radio, { value: "single", children: jsxs(Radio.Content, { children: [jsx(Radio.Control, { children: jsx(Radio.Indicator, {}) }), t.dayMonthSingleOption] }) }), jsx(Radio, { value: "range", children: jsxs(Radio.Content, { children: [jsx(Radio.Control, { children: jsx(Radio.Indicator, {}) }), t.dayMonthRangeOption] }) })] }), mode === "single" ? (jsx("div", { ref: singleRef, children: jsx(DatePicker, { value: pickerValue, onChange: handleSingleChange, onFocusChange: handleSingleFocusChange, "aria-label": t.dayMonthAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: `w-full md:w-auto md:max-w-40 ${NO_YEAR_CLASS}` }, "dmp") })) : (jsx("div", { ref: rangeRef, children: jsx(DateRangePicker, { value: rangeValue, onChange: handleRangeChange, onFocusChange: handleRangeFocusChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: `w-full md:w-auto md:max-w-xs ${NO_YEAR_CLASS}` }, "dmpr") }))] }));
|
|
13722
|
-
};
|
|
13723
|
-
|
|
13724
13688
|
/**
|
|
13725
13689
|
* Las cuatro props de slider que v2 tenía y v3 eliminó, traducidas a clases. Los valores son los
|
|
13726
13690
|
* LITERALES del `tv` de v2 (`npm pack @heroui/theme@2.4.15` → `dist/components/slider.js`), no
|
|
@@ -13858,6 +13822,111 @@ const RangeFilter = ({ title, description, value, onChange, minValue, maxValue,
|
|
|
13858
13822
|
(restSliderProps["aria-labelledby"] ? undefined : t.title), ...restSliderProps, children: jsxs(Slider.Track, { children: [jsx(Slider.Fill, { className: fillClassName }), stepMarks.length > 0 ? (jsx(Slider.Marks, { children: stepMarks.map((left) => (jsx("span", { className: SLIDER_STEP_CLASS, style: { left: `${left}%` } }, left))) })) : null, jsx(Slider.Thumb, { index: 0, "aria-label": t.minLabel, className: thumbClassName }), jsx(Slider.Thumb, { index: 1, "aria-label": t.maxLabel, className: thumbClassName })] }) }) }), jsxs("div", { className: "flex justify-between items-center text-sm", children: [jsxs("div", { className: "flex flex-col items-start", children: [jsx("span", { className: "text-xs text-default-500", children: t.minLabel }), jsx("span", { className: "font-medium text-default-700", children: formatValue(currentValue[0]) })] }), jsxs("div", { className: "flex flex-col items-end", children: [jsx("span", { className: "text-xs text-default-500", children: t.maxLabel }), jsx("span", { className: "font-medium text-default-700", children: formatValue(currentValue[1]) })] })] })] }));
|
|
13859
13823
|
};
|
|
13860
13824
|
|
|
13825
|
+
const NO_YEAR_CLASS = "[&_[data-type='year']]:hidden [&_[data-type='literal']:has(+[data-type='year'])]:hidden";
|
|
13826
|
+
// Year used to construct CalendarDate values. React Aria's onChange only fires when
|
|
13827
|
+
// ALL segments (including hidden year) are user-confirmed. Since users can't type year
|
|
13828
|
+
// (it's CSS-hidden), we read month+day directly from the DOM via data-placeholder
|
|
13829
|
+
// attributes when the picker loses focus, bypassing the year-confirmation requirement.
|
|
13830
|
+
const FILLER_YEAR = new Date().getFullYear();
|
|
13831
|
+
/**
|
|
13832
|
+
* Reads month and day from segment DOM elements.
|
|
13833
|
+
* Returns null if any segment is still in placeholder state (user hasn't typed it yet).
|
|
13834
|
+
* React Aria marks unconfirmed segments with data-placeholder="true".
|
|
13835
|
+
*/
|
|
13836
|
+
function readConfirmedMonthDay(container, monthSelector = '[data-type="month"]', daySelector = '[data-type="day"]') {
|
|
13837
|
+
const monthEl = container.querySelector(monthSelector);
|
|
13838
|
+
const dayEl = container.querySelector(daySelector);
|
|
13839
|
+
if (!monthEl || !dayEl)
|
|
13840
|
+
return null;
|
|
13841
|
+
if (monthEl.getAttribute("data-placeholder") === "true")
|
|
13842
|
+
return null;
|
|
13843
|
+
if (dayEl.getAttribute("data-placeholder") === "true")
|
|
13844
|
+
return null;
|
|
13845
|
+
const month = Number(monthEl.getAttribute("aria-valuenow"));
|
|
13846
|
+
const day = Number(dayEl.getAttribute("aria-valuenow"));
|
|
13847
|
+
if (month >= 1 && month <= 12 && day >= 1 && day <= 31)
|
|
13848
|
+
return { month, day };
|
|
13849
|
+
return null;
|
|
13850
|
+
}
|
|
13851
|
+
const DayMonthPicker = ({ value, onChange, translations, ariaLabelledBy, }) => {
|
|
13852
|
+
const t = {
|
|
13853
|
+
dayMonthAriaLabel: "Seleccionar mes y día",
|
|
13854
|
+
dayMonthRangeAriaLabel: "Seleccionar rango de mes y día",
|
|
13855
|
+
dayMonthSingleOption: "Día específico",
|
|
13856
|
+
dayMonthRangeOption: "Rango de fechas",
|
|
13857
|
+
...translations,
|
|
13858
|
+
};
|
|
13859
|
+
const [mode, setMode] = useState(value?.type === "dayMonthRange" ? "range" : "single");
|
|
13860
|
+
useEffect(() => {
|
|
13861
|
+
setMode(value?.type === "dayMonthRange" ? "range" : "single");
|
|
13862
|
+
}, [value?.type]);
|
|
13863
|
+
const pickerValue = value?.type === "dayMonth" ? value.dayMonth : null;
|
|
13864
|
+
const rangeValue = value?.type === "dayMonthRange" ? value.dayMonthRange : null;
|
|
13865
|
+
// Refs to DOM wrappers — used by the DOM-reading fallback for manual input.
|
|
13866
|
+
const singleRef = useRef(null);
|
|
13867
|
+
const rangeRef = useRef(null);
|
|
13868
|
+
// Stable refs so focus-change callbacks always read current values without
|
|
13869
|
+
// needing to be recreated on every render.
|
|
13870
|
+
const pickerValueRef = useRef(pickerValue);
|
|
13871
|
+
pickerValueRef.current = pickerValue;
|
|
13872
|
+
const rangeValueRef = useRef(rangeValue);
|
|
13873
|
+
rangeValueRef.current = rangeValue;
|
|
13874
|
+
const handleModeChange = (newMode) => {
|
|
13875
|
+
const nextMode = newMode === "range" ? "range" : "single";
|
|
13876
|
+
setMode(nextMode);
|
|
13877
|
+
if (nextMode === "single") {
|
|
13878
|
+
onChange({ type: "dayMonth", dayMonth: null, dayMonthRange: null });
|
|
13879
|
+
return;
|
|
13880
|
+
}
|
|
13881
|
+
onChange({ type: "dayMonthRange", dayMonth: null, dayMonthRange: null });
|
|
13882
|
+
};
|
|
13883
|
+
const handleSingleChange = (date) => {
|
|
13884
|
+
onChange({ type: "dayMonth", dayMonth: date, dayMonthRange: null });
|
|
13885
|
+
};
|
|
13886
|
+
const handleRangeChange = (range) => {
|
|
13887
|
+
onChange({ type: "dayMonthRange", dayMonth: null, dayMonthRange: range });
|
|
13888
|
+
};
|
|
13889
|
+
// Called by React Aria when the DatePicker gains/loses focus.
|
|
13890
|
+
// When value=null (placeholder mode) React Aria never fires onChange because the
|
|
13891
|
+
// hidden year segment is never user-confirmed. On blur we read the confirmed
|
|
13892
|
+
// month/day directly from the DOM as a workaround.
|
|
13893
|
+
const handleSingleFocusChange = (isFocused) => {
|
|
13894
|
+
if (isFocused || pickerValueRef.current)
|
|
13895
|
+
return;
|
|
13896
|
+
if (!singleRef.current)
|
|
13897
|
+
return;
|
|
13898
|
+
const result = readConfirmedMonthDay(singleRef.current);
|
|
13899
|
+
if (result) {
|
|
13900
|
+
handleSingleChange(new $2aaf608024c21ca1$export$99faa760c7908e4f(FILLER_YEAR, result.month, result.day));
|
|
13901
|
+
}
|
|
13902
|
+
};
|
|
13903
|
+
const handleRangeFocusChange = (isFocused) => {
|
|
13904
|
+
if (isFocused || rangeValueRef.current)
|
|
13905
|
+
return;
|
|
13906
|
+
if (!rangeRef.current)
|
|
13907
|
+
return;
|
|
13908
|
+
const monthEls = rangeRef.current.querySelectorAll('[data-type="month"]');
|
|
13909
|
+
const dayEls = rangeRef.current.querySelectorAll('[data-type="day"]');
|
|
13910
|
+
if (monthEls.length < 2 || dayEls.length < 2)
|
|
13911
|
+
return;
|
|
13912
|
+
const allConfirmed = [...monthEls, ...dayEls].every((el) => el.getAttribute("data-placeholder") !== "true");
|
|
13913
|
+
if (!allConfirmed)
|
|
13914
|
+
return;
|
|
13915
|
+
const startMonth = Number(monthEls[0].getAttribute("aria-valuenow"));
|
|
13916
|
+
const startDay = Number(dayEls[0].getAttribute("aria-valuenow"));
|
|
13917
|
+
const endMonth = Number(monthEls[1].getAttribute("aria-valuenow"));
|
|
13918
|
+
const endDay = Number(dayEls[1].getAttribute("aria-valuenow"));
|
|
13919
|
+
const valid = (m, d) => m >= 1 && m <= 12 && d >= 1 && d <= 31;
|
|
13920
|
+
if (valid(startMonth, startDay) && valid(endMonth, endDay)) {
|
|
13921
|
+
handleRangeChange({
|
|
13922
|
+
start: new $2aaf608024c21ca1$export$99faa760c7908e4f(FILLER_YEAR, startMonth, startDay),
|
|
13923
|
+
end: new $2aaf608024c21ca1$export$99faa760c7908e4f(FILLER_YEAR, endMonth, endDay),
|
|
13924
|
+
});
|
|
13925
|
+
}
|
|
13926
|
+
};
|
|
13927
|
+
return (jsxs("div", { className: "w-full flex flex-wrap xs:gap-5 justify-between items-center", children: [jsxs(RadioGroup, { orientation: "horizontal", value: mode, onChange: handleModeChange, "aria-labelledby": ariaLabelledBy, children: [jsx(Radio, { value: "single", children: jsxs(Radio.Content, { children: [jsx(Radio.Control, { children: jsx(Radio.Indicator, {}) }), t.dayMonthSingleOption] }) }), jsx(Radio, { value: "range", children: jsxs(Radio.Content, { children: [jsx(Radio.Control, { children: jsx(Radio.Indicator, {}) }), t.dayMonthRangeOption] }) })] }), mode === "single" ? (jsx("div", { ref: singleRef, children: jsx(DatePicker, { value: pickerValue, onChange: handleSingleChange, onFocusChange: handleSingleFocusChange, "aria-label": t.dayMonthAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: `w-full md:w-auto md:max-w-40 ${NO_YEAR_CLASS}` }, "dmp") })) : (jsx("div", { ref: rangeRef, children: jsx(DateRangePicker, { value: rangeValue, onChange: handleRangeChange, onFocusChange: handleRangeFocusChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: `w-full md:w-auto md:max-w-xs ${NO_YEAR_CLASS}` }, "dmpr") }))] }));
|
|
13928
|
+
};
|
|
13929
|
+
|
|
13861
13930
|
/**
|
|
13862
13931
|
* Opciones visibles en el panel del multiselect mientras se escribe en su
|
|
13863
13932
|
* buscador.
|
|
@@ -16263,7 +16332,7 @@ const splitDialogDOMProps = (rest) => {
|
|
|
16263
16332
|
* foco vuelve al disparador al cerrar y la página no hace scroll por detrás — los cuatro los
|
|
16264
16333
|
* gestiona react-aria-components internamente (`ModalOverlay`/`Dialog`), sin código propio.
|
|
16265
16334
|
*/
|
|
16266
|
-
const Modal = ({ isOpen, defaultOpen, onOpenChange, onClose, size = "md", radius = "lg", backdrop = "opaque", scrollBehavior = "normal", placement, isDismissable = true, isKeyboardDismissDisabled = false, hideCloseButton = false, className, classNames, children, ...rest }) => {
|
|
16335
|
+
const Modal = ({ isOpen, defaultOpen, onOpenChange, onClose, size = "md", radius = "lg", backdrop = "opaque", scrollBehavior = "normal", placement, isDismissable = true, isKeyboardDismissDisabled = false, hideCloseButton = false, portalContainer, className, classNames, children, ...rest }) => {
|
|
16267
16336
|
// v2 aceptaba `onClose` además de `onOpenChange` y lo llamaba en cada cierre; v3 solo conoce
|
|
16268
16337
|
// `onOpenChange`. Sin este puente, un modal controlado con `isOpen` + `onClose` (el patrón
|
|
16269
16338
|
// v2 dominante en las apps: ~118 usos en beweossmbs frente a 8 de `onOpenChange`) no se
|
|
@@ -16317,6 +16386,14 @@ const Modal = ({ isOpen, defaultOpen, onOpenChange, onClose, size = "md", radius
|
|
|
16317
16386
|
// slots de `modalVariants()` aunque no haya root encima; el root solo aportaba ese aviso y un
|
|
16318
16387
|
// `aria-labelledby` de reserva que apuntaba al id de un disparador que no existe.
|
|
16319
16388
|
return (jsx(Modal$1.Backdrop, { isOpen: isOpen, defaultOpen: defaultOpen, onOpenChange: handleOpenChange, variant: backdrop, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled,
|
|
16389
|
+
// `portalContainer` de v2 (`@heroui/modal@2.2.29`, `chunk-TW2E3XVA.mjs`: `<Overlay
|
|
16390
|
+
// portalContainer>`). `Modal.Backdrop` reparte sus props sobre el `ModalOverlay` de
|
|
16391
|
+
// react-aria-components, que lo recibe como `UNSTABLE_portalContainer` y lo entrega al
|
|
16392
|
+
// `Overlay` de react-aria (`createPortal`, `document.body` por defecto). Está
|
|
16393
|
+
// `@deprecated` en favor de un `UNSAFE_PortalProvider` padre, pero ese movería TAMBIÉN
|
|
16394
|
+
// los overlays anidados, y v2 solo movía el modal; `undefined` deja el `<body>`. Se
|
|
16395
|
+
// desestructura arriba para que no caiga en `...rest` (que va al `role="dialog"`).
|
|
16396
|
+
UNSTABLE_portalContainer: portalContainer,
|
|
16320
16397
|
// v2 `classNames.backdrop` → la capa que oscurece la página. Utilidad en
|
|
16321
16398
|
// `@layer utilities`, gana a `.modal__backdrop--opaque` (`@layer components`).
|
|
16322
16399
|
className: classNames?.backdrop, children: jsx(Modal$1.Container, { size: SIZE_MAP[size], placement: placement, scroll: scrollBehavior === "inside" ? "inside" : undefined,
|
|
@@ -16648,8 +16725,8 @@ const sizeClass = (size, placement) => {
|
|
|
16648
16725
|
* no llegaban a ningún overlay, así que los drawers de las apps no montaban o no cerraban. Esta
|
|
16649
16726
|
* fachada arma la anatomía de v3 por dentro (`Drawer` → `Backdrop` → `Content` → `Dialog`) y
|
|
16650
16727
|
* conserva la API de v2 (`isOpen`/`defaultOpen`/`onOpenChange`/`onClose`/`placement`/`size`/
|
|
16651
|
-
* `backdrop`/`scrollBehavior`/`isDismissable`/`isKeyboardDismissDisabled`/`hideCloseButton
|
|
16652
|
-
* `<DrawerContent>{(onClose) => ...}</DrawerContent>`), con los defaults de v2 (`useDrawer` de
|
|
16728
|
+
* `backdrop`/`scrollBehavior`/`isDismissable`/`isKeyboardDismissDisabled`/`hideCloseButton`/
|
|
16729
|
+
* `portalContainer` + `<DrawerContent>{(onClose) => ...}</DrawerContent>`), con los defaults de v2 (`useDrawer` de
|
|
16653
16730
|
* `@heroui/drawer@2.2.29`: `placement="right"`, `size="md"`, `scrollBehavior="inside"`).
|
|
16654
16731
|
*
|
|
16655
16732
|
* Lo que NO se repone a propósito (criterio de la migración: adaptarse a v3, no identidad de
|
|
@@ -16661,7 +16738,7 @@ const sizeClass = (size, placement) => {
|
|
|
16661
16738
|
* La anatomía v3 completa queda publicada como estáticos (`Drawer.Backdrop`, `Drawer.Content`,
|
|
16662
16739
|
* `Drawer.Dialog`, …): son los MISMOS objetos que exporta `@heroui/react`.
|
|
16663
16740
|
*/
|
|
16664
|
-
const DrawerFacade = ({ isOpen, defaultOpen, onOpenChange, onClose, placement = "right", size = "md", backdrop = "opaque", scrollBehavior = "inside", isDismissable = true, isKeyboardDismissDisabled = false, hideCloseButton = false, className, children, }) => {
|
|
16741
|
+
const DrawerFacade = ({ isOpen, defaultOpen, onOpenChange, onClose, placement = "right", size = "md", backdrop = "opaque", scrollBehavior = "inside", isDismissable = true, isKeyboardDismissDisabled = false, hideCloseButton = false, portalContainer, className, children, }) => {
|
|
16665
16742
|
// Mismo puente que `Modal` (f3ce18c): v3 solo conoce `onOpenChange`. Todas las vías de cierre
|
|
16666
16743
|
// (la X —`Drawer.CloseTrigger`, `slot="close"`—, el `close` del render-prop de
|
|
16667
16744
|
// `Drawer.Dialog`, Escape, backdrop y el arrastre de v3) acaban en `state.close()` del
|
|
@@ -16685,7 +16762,15 @@ const DrawerFacade = ({ isOpen, defaultOpen, onOpenChange, onClose, placement =
|
|
|
16685
16762
|
// `Modal.v2.test.tsx` vigila 0 avisos con modales cerrados. `Drawer.Backdrop` (`ModalOverlay`)
|
|
16686
16763
|
// ya crea y publica su propio estado de overlay con `isOpen`/`onOpenChange`, y trae todos los
|
|
16687
16764
|
// slots de `drawerVariants()`, así que el root no aportaba nada.
|
|
16688
|
-
return (jsx(Drawer$1.Backdrop, { isOpen: isOpen, defaultOpen: defaultOpen, onOpenChange: handleOpenChange, variant: backdrop, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled,
|
|
16765
|
+
return (jsx(Drawer$1.Backdrop, { isOpen: isOpen, defaultOpen: defaultOpen, onOpenChange: handleOpenChange, variant: backdrop, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled,
|
|
16766
|
+
// `portalContainer` de v2 (`@heroui/modal@2.2.29`: `<Overlay portalContainer>`). v3 no
|
|
16767
|
+
// lo expone con ese nombre: `Drawer.Backdrop` reparte sus props sobre el `ModalOverlay`
|
|
16768
|
+
// de react-aria-components, que lo recibe como `UNSTABLE_portalContainer` y lo entrega
|
|
16769
|
+
// al `Overlay` de react-aria (`createPortal(contents, portalContainer)`, con
|
|
16770
|
+
// `document.body` por defecto). Está marcado `@deprecated` en favor de un
|
|
16771
|
+
// `UNSAFE_PortalProvider` padre, pero ese movería TAMBIÉN los overlays anidados
|
|
16772
|
+
// (Select, Tooltip…), y v2 solo movía el drawer; `undefined` deja el `<body>` de siempre.
|
|
16773
|
+
UNSTABLE_portalContainer: portalContainer, children: jsx(Drawer$1.Content, { placement: placement, children: jsx(Drawer$1.Dialog, { "aria-labelledby": headerId, className: cn(sizeClass(size, placement), "p-0", scrollBehavior === "outside" && "overflow-y-auto", className), children: ({ close }) => (jsx(DrawerDialogBody, { close: close, headerId: headerId, scrollBehavior: scrollBehavior, hideCloseButton: hideCloseButton, children: children })) }) }) }));
|
|
16689
16774
|
};
|
|
16690
16775
|
/** Aísla el `useMemo` del valor de contexto (el render-prop de `Dialog` no puede usar hooks). */
|
|
16691
16776
|
const DrawerDialogBody = ({ close, headerId, scrollBehavior, hideCloseButton, children }) => {
|
|
@@ -18798,4 +18883,4 @@ const NavigationLoadingProvider = ({ children, }) => {
|
|
|
18798
18883
|
return (jsxs(NavigationLoadingContext.Provider, { value: value, children: [children, jsx(NavigationLoadingOverlay, { isVisible: isVisible })] }));
|
|
18799
18884
|
};
|
|
18800
18885
|
|
|
18801
|
-
export { ALL_THEMES, AURORA_THEME_FAMILIES, AURORA_THEME_REGISTRY, AccordionList, AddHolidayForm, Alert, AnalyticsCard, AreaLineChart, AuraAutocomplete, AuraTable, AuraToastProvider, AuraAutocomplete as Autocomplete, AutocompleteItem, BEWEOS_THEME_MODE_COOKIE_NAME, Badge, BreadcrumbItem, BreadcrumbsComponent, Button, CONTAINER_ATTRIBUTE, Card, CardBody, Checkbox, Chip, ColorPicker, ColorSelector, ContentCarousel, Currency, DEFAULT_DONUT_COLORS, DEFAULT_PREDEFINED_COLORS, DEFAULT_RANKED_BAR_COLORS, DISMISS_CONTROL_ATTRIBUTE, DatePicker, DateRangePicker, DateSelector, Divider, DonutChart, Drawer, DrawerBody, DrawerContent, DrawerFilters, DrawerFooter, DrawerHeader, Dropdown, DropdownSection, EmailPreview, EnumMenuNavListItem, GlobalToast, H1, H2, H3, H4, HeaderComponent, HeroUIProvider, HolidayType, IconComponent, Image$1 as Image, ImagePreview, Input, InputPassword, Kanban, KanbanCard, KanbanColumn, LINDA_TONE_PROPERTIES, LindaIcon, MenuClaw, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, MultiStepWizard, NavigationLoadingContext, NavigationLoadingOverlay, NavigationLoadingProvider, P, Pagination, Phone, Progress, PromotionalBanner, REGISTERED_THEME_COLORS, RangeFilter, RankedBarList, RowSteps, DEFAULT_TRANSLATIONS$2 as SEGMENTATION_DEFAULT_TRANSLATIONS, ScheduleRow, SearchInput, SegmentationBuilder, Select, SelectItem, SelectSection, SimpleLineChart, SocialMediaBar, SocialMediaCarousel, SocialMediaPreview, StatTile, StepIndicator, Switch, Switch as SwitchComponent, THEME_COLOR_HEX_MAP, Tab, Table, Tabs, TagsFilter, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput, 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, hexToHsl, hexToThemeColor, hslToCssValue, isAuroraFullThemeId, isDismissControl, isDonutEmpty, isExactThemeColor, isGroupState, isHexColor, isRankedBarListEmpty, isSegmentationGroup, parseColorToHsl, removeCustomPrimaryColor, removeLindaTones, shouldClosePopoverOnInteractOutside, sizeMap, themeColors, useAuraToast, useCloseOnAncestorScroll, useDisclosure, useMediaQuery, useNavigationLoading, useThemeContext };
|
|
18886
|
+
export { ALL_THEMES, AURORA_THEME_FAMILIES, AURORA_THEME_REGISTRY, AccordionList, AddHolidayForm, Alert, AnalyticsCard, AreaLineChart, AuraAutocomplete, AuraTable, AuraToastProvider, AuraAutocomplete as Autocomplete, AutocompleteItem, BEWEOS_THEME_MODE_COOKIE_NAME, Badge, BreadcrumbItem, BreadcrumbsComponent, Button, CONTAINER_ATTRIBUTE, Card, CardBody, Checkbox, Chip, ColorPicker, ColorSelector, ContentCarousel, Currency, DEFAULT_DONUT_COLORS, DEFAULT_PREDEFINED_COLORS, DEFAULT_RANKED_BAR_COLORS, DISMISS_CONTROL_ATTRIBUTE, DatePicker, DateRangePicker, DateSelector, Divider, DonutChart, Drawer, DrawerBody, DrawerContent, DrawerFilters, DrawerFooter, DrawerHeader, Dropdown, DropdownSection, EmailPreview, EnumMenuNavListItem, GlobalToast, H1, H2, H3, H4, HeaderComponent, HeroUIProvider, HolidayType, IconComponent, Image$1 as Image, ImagePreview, Input, InputPassword, Kanban, KanbanCard, KanbanColumn, LINDA_TONE_PROPERTIES, LindaIcon, MenuClaw, MenuComponent, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, MultiStepWizard, NavigationLoadingContext, NavigationLoadingOverlay, NavigationLoadingProvider, P, Pagination, Phone, Progress, PromotionalBanner, REGISTERED_THEME_COLORS, RangeFilter, RankedBarList, RowSteps, DEFAULT_TRANSLATIONS$2 as SEGMENTATION_DEFAULT_TRANSLATIONS, ScheduleRow, SearchInput, SegmentationBuilder, Select, SelectItem, SelectSection, SimpleLineChart, SocialMediaBar, SocialMediaCarousel, SocialMediaPreview, StatTile, StepIndicator, Switch, Switch as SwitchComponent, THEME_COLOR_HEX_MAP, Tab, Table, Tabs, TagsFilter, Textarea, ThemeContext, ThemePicker, ThemeProvider, TimeInput, TimeInputComponent, ToastContext, Tooltip, TwoColumnLayoutAgent, UploadFile, VerticalSteps, ViolinPlot, WhatsAppPreview, Wizard, WizardNavigation, WizardSidebar, applyCustomPrimaryColor, applyLindaTones, cn, computeBars, computeMax, computeSlices, computeTotal, containerProps, createCurrencyFormatter, uniqueCountries as defaultCountries, defaultCurrencyOptions, defaultTranslations$5 as defaultTranslations, deriveLindaTones, dismissControlProps, forceLightOnlyThemeBeforeReact, formatAuroraThemeTooltip, formatDonutPercent, generateThemeColorScale, getContrastForeground, getRegisteredThemeColorBases, getSelectedKeyFromPath, hexToHsl, hexToThemeColor, hslToCssValue, isAuroraFullThemeId, isDismissControl, isDonutEmpty, isExactThemeColor, isGroupState, isHexColor, isRankedBarListEmpty, isSegmentationGroup, parseColorToHsl, removeCustomPrimaryColor, removeLindaTones, shouldClosePopoverOnInteractOutside, sizeMap, themeColors, useAuraToast, useCloseOnAncestorScroll, useDisclosure, useMediaQuery, useNavigationLoading, useThemeContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heroui-v2-shims.d.ts","sourceRoot":"","sources":["../../../src/compat/heroui-v2-shims.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAGN,YAAY,EAEZ,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,
|
|
1
|
+
{"version":3,"file":"heroui-v2-shims.d.ts","sourceRoot":"","sources":["../../../src/compat/heroui-v2-shims.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAGN,YAAY,EAEZ,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EAEd,eAAe,EACf,MAAM,eAAe,CAAC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AAc,CAAC;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAMF;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;;;;;;EAS1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAEX,UAAU,EAIV,MAAM,eAAe,CAAC;AA6avB;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;CAKhB,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsCard.d.ts","sourceRoot":"","sources":["../../../../src/components/analytics-card/AnalyticsCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AnalyticsCard.d.ts","sourceRoot":"","sources":["../../../../src/components/analytics-card/AnalyticsCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,KAAK,EACX,kBAAkB,EAGlB,MAAM,uBAAuB,CAAC;AAuD/B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyVtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/AutoComplete.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/AutoComplete.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EACX,qBAAqB,EAIrB,MAAM,sBAAsB,CAAC;AA8W9B;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8S5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA+FrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAgCpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAe,WAAW,EAAiB,MAAM,gBAAgB,CAAC;AAuR9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsMxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAC;AAkH9D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,IAAI,kFAgJhB,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/Checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/Checkbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAEX,aAAa,EAGb,MAAM,kBAAkB,CAAC;AA2Q1B;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;CAInB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAkC,MAAM,cAAc,CAAC;AAmb9E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,IAAI,GAAI,yJAelB,SAAS,sBA6JX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyText.d.ts","sourceRoot":"","sources":["../../../../src/components/copy-text/CopyText.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopyText.d.ts","sourceRoot":"","sources":["../../../../src/components/copy-text/CopyText.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,qGAiEpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-slots.d.ts","sourceRoot":"","sources":["../../../../src/components/datepicker/calendar-slots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar-slots.d.ts","sourceRoot":"","sources":["../../../../src/components/datepicker/calendar-slots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC,EACtC,QAAQ,CAAC,EAAE,MAAM,wCAIjB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAC1C,KAAK,EAAE,aAAa,GAAG,SAAS,GAC9B,aAAa,GAAG,SAAS,CAO3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAmB,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAiM/E;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -47,6 +47,17 @@ export interface DrawerProps {
|
|
|
47
47
|
isKeyboardDismissDisabled?: boolean;
|
|
48
48
|
/** Oculta el botón de cierre nativo (la X). @default false */
|
|
49
49
|
hideCloseButton?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* v2: elemento del DOM en el que se monta el portal del drawer (backdrop + panel). Sin él
|
|
52
|
+
* se porta a `document.body`, como hasta ahora. Úsalo cuando el drawer tenga que quedar
|
|
53
|
+
* DENTRO de una raíz de estilos aislada (p. ej. un microfront cuyas utilidades de Tailwind
|
|
54
|
+
* solo casan bajo `.linda-business-root`): portado a `<body>` hereda las reglas del host que
|
|
55
|
+
* comparten nombre de clase. Mismo nombre y efecto que en `@heroui/modal@2` (que el drawer de
|
|
56
|
+
* v2 heredaba); en v3 se pasa como `UNSTABLE_portalContainer` al `ModalOverlay`. Solo mueve
|
|
57
|
+
* ESTE overlay: los overlays anidados (Select, Tooltip…) eligen su propio contenedor.
|
|
58
|
+
* @default document.body
|
|
59
|
+
*/
|
|
60
|
+
portalContainer?: Element;
|
|
50
61
|
/**
|
|
51
62
|
* Clase aplicada al **panel** (`Drawer.Dialog`), el mismo destino que en v2 (slot `base` del
|
|
52
63
|
* modal, que es el panel). Se aplica en última posición, así que gana a los valores de la
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAClE,8FAA8F;AAC9F,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAAC;AAC/D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,CAAC;AACxD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GACnB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,CAAC;AASV,MAAM,WAAW,WAAW;IAC3B,2CAA2C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CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,WAAW,iBAAiB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/_internal/DrawerBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/_internal/DrawerBody.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAgBvD,QAAA,MAAM,UAAU;8BAA6B,eAAe;;CAa3D,CAAC;AAIF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/_internal/DrawerFooter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/_internal/DrawerFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;;;GAOG;AACH,QAAA,MAAM,YAAY;8BAA6B,iBAAiB;;CAI/D,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/_internal/DrawerHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/_internal/DrawerHeader.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,YAAY;8BAA6B,iBAAiB;;CAa/D,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer-filters/DrawerFilters.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer-filters/DrawerFilters.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAEX,kBAAkB,EAOlB,MAAM,uBAAuB,CAAC;AAK/B;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0NtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer-filters/_internal/FilterSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer-filters/_internal/FilterSection.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAIX,kBAAkB,EAWlB,MAAM,wBAAwB,CAAC;AA6BhC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsPtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/Dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/Dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACX,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EAEpB,mBAAmB,EACnB,MAAM,kBAAkB,CAAC;AA8G1B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe;2DA9BzB,oBAAoB;;;;CAgCrB,CAAC;AAkHH,gEAAgE;AAChE,wBAAgB,aAAa,CAC5B,SAAS,EAAE,iBAAiB,GAC1B,mBAAmB,CAKrB;AA6LD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;qKApHlB,aAAa;;;;;;;;;+DAnPb,oBAAoB;;;;;;;;CAiXrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTrigger.d.ts","sourceRoot":"","sources":["../../../../../src/components/dropdown/_internal/renderTrigger.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderTrigger.d.ts","sourceRoot":"","sources":["../../../../../src/components/dropdown/_internal/renderTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,YAAY,EACjB,KAAK,SAAS,EAMd,MAAM,OAAO,CAAC;AAGf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAwCxC,4EAA4E;AAC5E,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,SAAS,GACjB,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC,CAEpC;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,YAAY,CAAC,QAAQ,CAAC,EAC7B,gBAAgB,EAAE,MAAM,GAAG,SAAS,IAE5B,aAAa,QAAQ,KAAG,YAAY,CAmC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../../../src/components/h1/H1.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../../../src/components/h1/H1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAUjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../../src/components/h2/H2.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../../src/components/h2/H2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAMhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../../src/components/h3/H3.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../../src/components/h3/H3.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAMhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../../src/components/h4/H4.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../../src/components/h4/H4.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAMhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Input.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAA0B,MAAM,eAAe,CAAC;AAiUxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,KAAK,qFAoSjB,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/kanban/_internal/KanbanColumn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/kanban/_internal/KanbanColumn.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAgCjE;;;;;;GAMG;AACH,QAAA,MAAM,qBAAqB,GAAI,CAAC,EAAG,oOAkBhC,yBAAyB,CAAC,CAAC,CAAC,sBA+L9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAkC,OAAO,qBAAqB,GAAG;IACzF,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
package/dist/types/components/menu/_internal/menu-mobile-bottom-bar/MenuMobileBottomBar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuMobileBottomBar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/_internal/menu-mobile-bottom-bar/MenuMobileBottomBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MenuMobileBottomBar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/_internal/menu-mobile-bottom-bar/MenuMobileBottomBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAI5E,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwEhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuNavList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/_internal/menu-nav-list/MenuNavList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MenuNavList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/_internal/menu-nav-list/MenuNavList.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAuF5D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,sFAuiBvB,CAAC"}
|