@kapiuara/ui 0.13.0 → 0.15.0
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/README.md +239 -1
- package/dist/components/chat/KapiChatDivider.d.ts +7 -3
- package/dist/components/chat/KapiChatDivider.js +6 -6
- package/dist/components/chat/KapiChatList.js +19 -19
- package/dist/components/chat/KapiChatThread.js +23 -23
- package/dist/components/chat/KapiComposer.js +19 -19
- package/dist/components/chat/KapiMessageBubble.js +4 -4
- package/dist/components/chat/KapiTypingIndicator.js +4 -4
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/closeReason.d.ts +34 -0
- package/dist/components/data/KapiBarChart.js +1 -1
- package/dist/components/data/KapiDataTable.js +31 -31
- package/dist/components/data/KapiEventCalendar.js +78 -78
- package/dist/components/data/KapiHeatmap.js +23 -23
- package/dist/components/data/KapiLineChart.js +1 -1
- package/dist/components/data/KapiPagination.js +4 -4
- package/dist/components/data/KapiSparkline.js +1 -1
- package/dist/components/data/KapiTable.js +122 -122
- package/dist/components/data/KapiTableFilter.js +18 -18
- package/dist/components/data/KapiTableRow.js +24 -24
- package/dist/components/data/KapiTableToolbar.js +49 -49
- package/dist/components/data/chartFrame.js +21 -21
- package/dist/components/data/useColumnResize.js +8 -8
- package/dist/components/data/useTableSelection.js +8 -8
- package/dist/components/display/KapiAnnotation.js +55 -55
- package/dist/components/display/KapiComment.js +4 -4
- package/dist/components/display/KapiCommentComposer.js +16 -16
- package/dist/components/display/KapiFileItem.js +6 -6
- package/dist/components/display/KapiFileViewer.js +9 -9
- package/dist/components/display/KapiTruncate.js +7 -7
- package/dist/components/feedback/KapiAlert.d.ts +2 -1
- package/dist/components/feedback/KapiAlert.js +8 -8
- package/dist/components/feedback/KapiCountdown.js +8 -8
- package/dist/components/feedback/KapiFab.js +30 -30
- package/dist/components/feedback/KapiOfflineBanner.js +8 -8
- package/dist/components/feedback/KapiToastContainer.js +25 -25
- package/dist/components/feedback/KapiTour.d.ts +2 -1
- package/dist/components/feedback/KapiTour.js +35 -35
- package/dist/components/inputs/KapiAutocomplete.js +14 -14
- package/dist/components/inputs/KapiButton.d.ts +17 -1
- package/dist/components/inputs/KapiButton.js +41 -25
- package/dist/components/inputs/KapiCalendar.js +5 -5
- package/dist/components/inputs/KapiCalendarGrid.js +10 -10
- package/dist/components/inputs/KapiChecklist.js +71 -71
- package/dist/components/inputs/KapiDatePicker.js +124 -122
- package/dist/components/inputs/KapiDateRangePicker.js +138 -136
- package/dist/components/inputs/KapiFacetedSearch.js +29 -29
- package/dist/components/inputs/KapiField.js +14 -14
- package/dist/components/inputs/KapiFileUpload.js +27 -27
- package/dist/components/inputs/KapiIconButton.d.ts +9 -1
- package/dist/components/inputs/KapiIconButton.js +27 -10
- package/dist/components/inputs/KapiInput.js +21 -21
- package/dist/components/inputs/KapiInputGroup.js +8 -8
- package/dist/components/inputs/KapiMaskedInput.d.ts +8 -3
- package/dist/components/inputs/KapiMaskedInput.js +64 -51
- package/dist/components/inputs/KapiNumberStepper.js +29 -29
- package/dist/components/inputs/KapiRating.js +61 -59
- package/dist/components/inputs/KapiSearchChip.js +8 -8
- package/dist/components/inputs/KapiSegmented.js +74 -64
- package/dist/components/inputs/KapiSelect.js +232 -222
- package/dist/components/inputs/KapiSelectMenu.js +60 -60
- package/dist/components/inputs/KapiSlider.js +1 -1
- package/dist/components/inputs/KapiSwitch.js +6 -6
- package/dist/components/inputs/KapiTagInput.js +83 -81
- package/dist/components/inputs/KapiTextarea.js +8 -8
- package/dist/components/inputs/misuseWarnings.d.ts +37 -0
- package/dist/components/inputs/misuseWarnings.js +36 -0
- package/dist/components/inputs/numberStepLogic.d.ts +10 -0
- package/dist/components/inputs/numberStepLogic.js +16 -7
- package/dist/components/inputs/ownField.js +4 -4
- package/dist/components/layout/KapiAccountMenu.d.ts +2 -1
- package/dist/components/layout/KapiAccountMenu.js +53 -53
- package/dist/components/layout/KapiContextSlot.js +35 -35
- package/dist/components/layout/KapiMasonry.js +6 -6
- package/dist/components/layout/KapiNotificationBell.js +60 -60
- package/dist/components/layout/KapiPageHeader.js +19 -19
- package/dist/components/layout/KapiRail.js +60 -60
- package/dist/components/layout/KapiRailAccount.js +9 -9
- package/dist/components/layout/KapiRoot.js +21 -21
- package/dist/components/layout/KapiScrollArea.js +11 -11
- package/dist/components/layout/KapiShell.js +12 -12
- package/dist/components/locale/KapiLocaleProvider.js +13 -13
- package/dist/components/navigation/CtxSlidingList.js +4 -4
- package/dist/components/navigation/KapiAccordion.js +12 -12
- package/dist/components/navigation/KapiBreadcrumb.js +11 -11
- package/dist/components/navigation/KapiCollapsiblePanel.js +23 -23
- package/dist/components/navigation/KapiContextPanel.js +76 -76
- package/dist/components/navigation/KapiFilterChips.js +9 -9
- package/dist/components/navigation/KapiNavBadge.d.ts +4 -2
- package/dist/components/navigation/KapiNavBadge.js +11 -10
- package/dist/components/navigation/KapiPanelGroup.js +25 -25
- package/dist/components/navigation/KapiSteps.js +4 -4
- package/dist/components/navigation/KapiTabs.d.ts +4 -1
- package/dist/components/navigation/KapiTabs.js +63 -55
- package/dist/components/navigation/KapiTree.js +75 -75
- package/dist/components/navigation/KapiWizard.d.ts +2 -1
- package/dist/components/navigation/KapiWizard.js +30 -30
- package/dist/components/overlays/KapiCanvasForm.d.ts +6 -2
- package/dist/components/overlays/KapiCanvasForm.js +12 -12
- package/dist/components/overlays/KapiCommandPalette.d.ts +2 -1
- package/dist/components/overlays/KapiCommandPalette.js +23 -23
- package/dist/components/overlays/KapiConfirm.d.ts +2 -1
- package/dist/components/overlays/KapiConfirm.js +12 -12
- package/dist/components/overlays/KapiContextMenu.d.ts +2 -1
- package/dist/components/overlays/KapiContextMenu.js +18 -18
- package/dist/components/overlays/KapiDialogHost.js +22 -22
- package/dist/components/overlays/KapiLoading.js +16 -16
- package/dist/components/overlays/KapiMenuButton.js +15 -15
- package/dist/components/overlays/KapiModal.d.ts +2 -1
- package/dist/components/overlays/KapiModal.js +28 -28
- package/dist/components/overlays/KapiOffcanvas.d.ts +3 -2
- package/dist/components/overlays/KapiOffcanvas.js +63 -63
- package/dist/components/overlays/KapiOffcanvasStack.js +38 -38
- package/dist/components/overlays/KapiPhotoView.js +15 -15
- package/dist/components/overlays/KapiPopover.d.ts +2 -1
- package/dist/components/overlays/KapiPopover.js +10 -10
- package/dist/components/overlays/KapiShapeSheet.js +20 -20
- package/dist/components/overlays/KapiSplitModal.js +29 -29
- package/dist/components/overlays/KapiTooltip.js +21 -21
- package/dist/components/overlays/menuList.js +60 -60
- package/dist/components/renderSlot.d.ts +27 -0
- package/dist/components/renderSlot.js +23 -0
- package/dist/css/components/chat/chat.css +1 -1
- package/dist/hooks/portalRoot.js +6 -6
- package/dist/hooks/useControllableState.d.ts +6 -2
- package/dist/hooks/useControllableState.js +14 -11
- package/dist/hooks/useFormReset.d.ts +22 -0
- package/dist/hooks/useFormReset.js +17 -0
- package/dist/index.d.ts +2 -0
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/package.json +5 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { joinClasses as e } from "../rootProps.js";
|
|
3
|
+
import { resolveMenuItemTone as t } from "../tone.js";
|
|
4
|
+
import { useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
5
5
|
import { initialMenuFocus as r, isTypeaheadKey as i, menuKeyIntent as a, nextEnabledIndex as o } from "./menuKeyboardLogic.js";
|
|
6
6
|
import { activeElementOf as s } from "../../hooks/ownerDocument.js";
|
|
7
7
|
import { logicalKeyOf as c } from "../../hooks/directionLogic.js";
|
|
@@ -9,8 +9,8 @@ import { usePlacement as l } from "../../hooks/usePlacement.js";
|
|
|
9
9
|
import { useTypeahead as u } from "../../hooks/useTypeahead.js";
|
|
10
10
|
import { actionableIndexes as d, isActionMenuItem as f, matchMenuTypeahead as p, menuItemRole as m, submenuKeyAction as h } from "./menuButtonLogic.js";
|
|
11
11
|
import { DEFAULT_LINK_LABELS as g } from "../locale/linkLabels.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { useEffect as _, useId as v, useRef as y, useState as b } from "react";
|
|
13
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
14
14
|
import { Check as w, ChevronRight as T, Circle as E } from "lucide-react";
|
|
15
15
|
var D = {
|
|
16
16
|
side: "right",
|
|
@@ -18,9 +18,9 @@ var D = {
|
|
|
18
18
|
offset: 4,
|
|
19
19
|
flip: "auto",
|
|
20
20
|
shift: !0
|
|
21
|
-
}, O = (
|
|
22
|
-
let t =
|
|
23
|
-
|
|
21
|
+
}, O = (n) => e("kapi-ctxmenu__item", t(n.tone, n.danger) === "danger" && "is-danger", n.disabled && "is-disabled", n.current && "is-current"), k = (e) => {
|
|
22
|
+
let t = y([]), n = y(null), r = y(void 0), [i, a] = b(null);
|
|
23
|
+
_(() => () => clearTimeout(r.current), []);
|
|
24
24
|
let o = (e) => t.current[e]?.focus(), c = (e, t) => a((n) => ({
|
|
25
25
|
index: e,
|
|
26
26
|
focus: t ? (n?.focus ?? 0) + 1 : n?.index === e ? n.focus : 0
|
|
@@ -56,15 +56,15 @@ var D = {
|
|
|
56
56
|
onLeave: p
|
|
57
57
|
})
|
|
58
58
|
};
|
|
59
|
-
}, A = ({ items: e, onActivate:
|
|
60
|
-
let E =
|
|
61
|
-
return
|
|
59
|
+
}, A = ({ items: e, onActivate: t, onClose: l, focusRequest: f, onBack: m, onKeyDown: v, ref: y, id: b, className: x, style: C, "aria-label": w, "aria-labelledby": T }) => {
|
|
60
|
+
let E = n("link", g), D = u(500), O = k(e), { itemEls: A, focusItem: M, openSub: N, hasSubmenu: P } = O, F = d(e), I = m !== void 0;
|
|
61
|
+
return _(() => {
|
|
62
62
|
f > 0 && M(r(F));
|
|
63
|
-
}, [f]), /* @__PURE__ */
|
|
63
|
+
}, [f]), /* @__PURE__ */ S("div", {
|
|
64
64
|
ref: y,
|
|
65
|
-
id:
|
|
65
|
+
id: b,
|
|
66
66
|
role: "menu",
|
|
67
|
-
className:
|
|
67
|
+
className: x,
|
|
68
68
|
style: C,
|
|
69
69
|
"aria-label": w,
|
|
70
70
|
"aria-labelledby": T,
|
|
@@ -84,113 +84,113 @@ var D = {
|
|
|
84
84
|
else if (f === "back") u(), m?.();
|
|
85
85
|
else if (d.kind === "close") {
|
|
86
86
|
if (I) return;
|
|
87
|
-
if (d.returnFocus) return
|
|
87
|
+
if (d.returnFocus) return v?.(t);
|
|
88
88
|
l(!1);
|
|
89
89
|
} else if (i(t.key) && !t.ctrlKey && !t.metaKey && !t.altKey) {
|
|
90
90
|
let n = p(e, r, D(t.key));
|
|
91
91
|
n >= 0 && (u(), M(n));
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
children: e.map((e,
|
|
94
|
+
children: e.map((e, n) => e.sep ? /* @__PURE__ */ S("div", {
|
|
95
95
|
role: "separator",
|
|
96
96
|
className: "kapi-ctxmenu__sep"
|
|
97
|
-
}, `s${
|
|
97
|
+
}, `s${n}`) : "header" in e ? /* @__PURE__ */ S("div", {
|
|
98
98
|
role: "presentation",
|
|
99
99
|
className: "kapi-ctxmenu__header",
|
|
100
100
|
children: e.header
|
|
101
|
-
}, `h${
|
|
102
|
-
...O.entryProps(
|
|
101
|
+
}, `h${n}`) : /* @__PURE__ */ S(j, {
|
|
102
|
+
...O.entryProps(n),
|
|
103
103
|
item: e,
|
|
104
|
-
index:
|
|
104
|
+
index: n,
|
|
105
105
|
newTabLabel: E.newTab,
|
|
106
|
-
onActivate:
|
|
106
|
+
onActivate: t,
|
|
107
107
|
onClose: l
|
|
108
|
-
}, e.id ?? `m${
|
|
108
|
+
}, e.id ?? `m${n}`))
|
|
109
109
|
});
|
|
110
|
-
}, j = ({ item:
|
|
111
|
-
let h =
|
|
112
|
-
|
|
110
|
+
}, j = ({ item: t, index: n, newTabLabel: r, itemRef: i, subOpen: a, subFocus: o, subRef: s, onToggleSub: c, onBackFromSub: l, onActivate: u, onClose: d, onEnter: f, onLeave: p }) => {
|
|
111
|
+
let h = v(), g = v(), _ = y(null), b = m(t), D = b !== "menuitem", k = t.items !== void 0 && t.items.length > 0 ? t.items : null, A = t.href !== void 0 && t.target === "_blank", j = typeof t.label != "string" && t.textValue !== void 0 ? A ? `${t.textValue} ${r}` : t.textValue : void 0, N = (e) => {
|
|
112
|
+
_.current = e, i(e);
|
|
113
113
|
}, P = {
|
|
114
114
|
id: k ? h : void 0,
|
|
115
|
-
role:
|
|
115
|
+
role: b,
|
|
116
116
|
tabIndex: -1,
|
|
117
|
-
"data-menu-index":
|
|
118
|
-
"data-menu-id":
|
|
119
|
-
"aria-disabled":
|
|
120
|
-
"aria-current":
|
|
121
|
-
"aria-checked": D ?
|
|
122
|
-
"aria-keyshortcuts":
|
|
123
|
-
"aria-describedby":
|
|
117
|
+
"data-menu-index": n,
|
|
118
|
+
"data-menu-id": t.id,
|
|
119
|
+
"aria-disabled": t.disabled ? "true" : void 0,
|
|
120
|
+
"aria-current": t.current ? "true" : void 0,
|
|
121
|
+
"aria-checked": D ? t.checked === !0 : void 0,
|
|
122
|
+
"aria-keyshortcuts": t.shortcut,
|
|
123
|
+
"aria-describedby": t.description === void 0 ? void 0 : g,
|
|
124
124
|
"aria-haspopup": k ? "menu" : void 0,
|
|
125
125
|
"aria-expanded": k ? a : void 0,
|
|
126
126
|
"aria-label": j,
|
|
127
|
-
className:
|
|
128
|
-
onClick: (
|
|
129
|
-
|
|
127
|
+
className: e(O(t), D && "is-checkable", a && "is-open"),
|
|
128
|
+
onClick: (e) => {
|
|
129
|
+
t.disabled ? e.preventDefault() : k ? (e.preventDefault(), c()) : u(t, e);
|
|
130
130
|
},
|
|
131
131
|
onMouseEnter: f,
|
|
132
132
|
onMouseLeave: p
|
|
133
|
-
}, F = /* @__PURE__ */
|
|
134
|
-
D && /* @__PURE__ */
|
|
133
|
+
}, F = /* @__PURE__ */ C(x, { children: [
|
|
134
|
+
D && /* @__PURE__ */ S("span", {
|
|
135
135
|
className: "kapi-ctxmenu__check",
|
|
136
136
|
"aria-hidden": "true",
|
|
137
|
-
children:
|
|
137
|
+
children: t.checked === !0 && (b === "menuitemradio" ? /* @__PURE__ */ S(E, {
|
|
138
138
|
size: 8,
|
|
139
139
|
fill: "currentColor",
|
|
140
140
|
strokeWidth: 0
|
|
141
|
-
}) : /* @__PURE__ */
|
|
141
|
+
}) : /* @__PURE__ */ S(w, {
|
|
142
142
|
size: 15,
|
|
143
143
|
strokeWidth: 2.4
|
|
144
144
|
}))
|
|
145
145
|
}),
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
t.icon,
|
|
147
|
+
t.description === void 0 ? t.label : /* @__PURE__ */ C("span", {
|
|
148
148
|
className: "kapi-ctxmenu__text",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
149
|
+
children: [/* @__PURE__ */ S("span", {
|
|
150
150
|
className: "kapi-ctxmenu__label",
|
|
151
|
-
children:
|
|
152
|
-
}), /* @__PURE__ */
|
|
151
|
+
children: t.label
|
|
152
|
+
}), /* @__PURE__ */ S("span", {
|
|
153
153
|
id: g,
|
|
154
154
|
className: "kapi-ctxmenu__desc",
|
|
155
155
|
"aria-hidden": "true",
|
|
156
|
-
children:
|
|
156
|
+
children: t.description
|
|
157
157
|
})]
|
|
158
158
|
}),
|
|
159
|
-
A && j === void 0 && /* @__PURE__ */
|
|
159
|
+
A && j === void 0 && /* @__PURE__ */ C(x, { children: [" ", /* @__PURE__ */ S("span", {
|
|
160
160
|
className: "kapi-sr-only",
|
|
161
161
|
children: r
|
|
162
162
|
})] }),
|
|
163
|
-
|
|
163
|
+
t.shortcut !== void 0 && /* @__PURE__ */ S("kbd", {
|
|
164
164
|
className: "kapi-ctxmenu__kbd",
|
|
165
165
|
"aria-hidden": "true",
|
|
166
|
-
children:
|
|
166
|
+
children: t.shortcut
|
|
167
167
|
}),
|
|
168
|
-
k && /* @__PURE__ */
|
|
168
|
+
k && /* @__PURE__ */ S(T, {
|
|
169
169
|
className: "kapi-ctxmenu__chev kapi-flip-rtl",
|
|
170
170
|
size: 15,
|
|
171
171
|
strokeWidth: 2.2,
|
|
172
172
|
"aria-hidden": "true"
|
|
173
173
|
})
|
|
174
|
-
] }), I =
|
|
174
|
+
] }), I = t.href !== void 0 && !k ? /* @__PURE__ */ S("a", {
|
|
175
175
|
ref: N,
|
|
176
176
|
...P,
|
|
177
|
-
href:
|
|
178
|
-
target:
|
|
179
|
-
rel:
|
|
180
|
-
download:
|
|
177
|
+
href: t.disabled ? void 0 : t.href,
|
|
178
|
+
target: t.target,
|
|
179
|
+
rel: t.rel ?? (A ? "noopener noreferrer" : void 0),
|
|
180
|
+
download: t.download,
|
|
181
181
|
children: F
|
|
182
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ S("button", {
|
|
183
183
|
ref: N,
|
|
184
184
|
type: "button",
|
|
185
185
|
...P,
|
|
186
186
|
children: F
|
|
187
187
|
});
|
|
188
|
-
return k ? /* @__PURE__ */
|
|
188
|
+
return k ? /* @__PURE__ */ C("div", {
|
|
189
189
|
role: "none",
|
|
190
190
|
className: "kapi-ctxmenu__subwrap",
|
|
191
|
-
children: [I, a && /* @__PURE__ */
|
|
191
|
+
children: [I, a && /* @__PURE__ */ S(M, {
|
|
192
192
|
items: k,
|
|
193
|
-
anchorRef:
|
|
193
|
+
anchorRef: _,
|
|
194
194
|
menuRef: s,
|
|
195
195
|
labelledBy: h,
|
|
196
196
|
focusRequest: o,
|
|
@@ -207,7 +207,7 @@ var D = {
|
|
|
207
207
|
...D,
|
|
208
208
|
hideUntilPlaced: !1
|
|
209
209
|
});
|
|
210
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ S(A, {
|
|
211
211
|
ref: n,
|
|
212
212
|
items: e,
|
|
213
213
|
className: "kapi-ctxmenu kapi-ctxmenu--sub",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactElement } from "react";
|
|
2
|
+
/** Props que el componente calculó para su elemento. */
|
|
3
|
+
export type SlotProps = HTMLAttributes<HTMLElement> & Record<string, unknown>;
|
|
4
|
+
/** Encadena dos handlers: primero el del consumidor; si frena el evento, el interno no corre. */
|
|
5
|
+
export declare const chainHandlers: (delConsumidor: ((e: unknown) => void) | undefined, interno: ((e: unknown) => void) | undefined) => ((e: unknown) => void) | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Fusiona las props del componente con las del elemento que trajo el consumidor.
|
|
8
|
+
*
|
|
9
|
+
* `fijas` son las que el componente necesita para funcionar (rol, `aria-*` de estado, `type` de un
|
|
10
|
+
* botón): se aplican al final y no se pueden pisar. Sin eso, un `render` descuidado convierte un
|
|
11
|
+
* control accesible en un `<div>` mudo y nada lo avisa.
|
|
12
|
+
*/
|
|
13
|
+
export declare const mergeSlotProps: (propias: SlotProps, delConsumidor: SlotProps, fijas?: SlotProps) => SlotProps;
|
|
14
|
+
/**
|
|
15
|
+
* Lo que el consumidor puede pasar en `render`: un elemento ya armado, o una función que recibe
|
|
16
|
+
* las props calculadas y devuelve el elemento. La función sirve cuando hay que repartirlas a mano
|
|
17
|
+
* (un componente que no reenvía lo que no conoce).
|
|
18
|
+
*/
|
|
19
|
+
export type KapiRender = ReactElement | ((props: SlotProps) => ReactElement);
|
|
20
|
+
/**
|
|
21
|
+
* Produce el elemento final: el del consumidor si pasó `render`, o el que arma `propio`.
|
|
22
|
+
*
|
|
23
|
+
* Las props del componente se fusionan con las del elemento recibido por `mergeSlotProps`, así el
|
|
24
|
+
* `render` hereda exactamente las mismas reglas que el passthrough nativo y no estrena otra
|
|
25
|
+
* filosofía. `fijas` son las que el componente necesita para funcionar y no se negocian.
|
|
26
|
+
*/
|
|
27
|
+
export declare const renderSlot: (render: KapiRender | undefined, propias: SlotProps, fijas: SlotProps, propio: (props: SlotProps) => ReactElement) => ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { joinClasses as e } from "./rootProps.js";
|
|
3
|
+
import { cloneElement as t, isValidElement as n } from "react";
|
|
4
|
+
//#region src/components/renderSlot.ts
|
|
5
|
+
var r = (e, t) => typeof t == "function" && /^on[A-Z]/.test(e), i = (e, t) => e ? t ? (n) => {
|
|
6
|
+
e(n), n?.defaultPrevented || t(n);
|
|
7
|
+
} : e : t, a = (t, n, a = {}) => {
|
|
8
|
+
let o = { ...t };
|
|
9
|
+
for (let [t, a] of Object.entries(n)) {
|
|
10
|
+
let n = o[t];
|
|
11
|
+
o[t] = t === "className" ? e(String(n ?? ""), String(a ?? "")) : t === "style" ? {
|
|
12
|
+
...n,
|
|
13
|
+
...a
|
|
14
|
+
} : r(t, a) ? i(a, n) : a;
|
|
15
|
+
}
|
|
16
|
+
for (let [e, t] of Object.entries(a)) t !== void 0 && (o[e] = t);
|
|
17
|
+
return o;
|
|
18
|
+
}, o = (e, r, i, o) => {
|
|
19
|
+
let s = (e) => a(r, e, i);
|
|
20
|
+
return e === void 0 ? o(s({})) : typeof e == "function" ? e(s({})) : n(e) ? t(e, s(e.props ?? {})) : o(s({}));
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { i as chainHandlers, a as mergeSlotProps, o as renderSlot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kapi .kapi-bubble{--bubble-radius:var(--kapi-radius-xl);--bubble-radius-inner:var(--kapi-radius-xs);box-sizing:border-box;gap:var(--kapi-space-2);width:fit-content;max-width:min(100%,34em);margin-top:var(--kapi-space-4);padding:var(--kapi-space-4) var(--kapi-space-6);border-radius:var(--bubble-radius);background:var(--kapi-card);color:var(--kapi-ink);font-size:var(--kapi-fs-body);border:1px solid var(--kapi-border);flex-direction:column;line-height:1.45;display:flex}.kapi .kapi-bubble:first-child,.kapi .kapi-bubble[data-grouping=middle],.kapi .kapi-bubble[data-grouping=last]{margin-top:var(--kapi-space-1)}.kapi .kapi-bubble:first-child{margin-top:0}.kapi .kapi-bubble[data-direction=out]{background:var(--kapi-primary-soft);border-color:var(--kapi-primary-border);margin-inline-start:auto}.kapi .kapi-bubble[data-direction=in][data-grouping=first]{border-end-start-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=in][data-grouping=middle]{border-start-start-radius:var(--bubble-radius-inner);border-end-start-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=in][data-grouping=last]{border-start-start-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=out][data-grouping=first]{border-end-end-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=out][data-grouping=middle]{border-start-end-radius:var(--bubble-radius-inner);border-end-end-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=out][data-grouping=last]{border-start-end-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble__author{font-size:var(--kapi-fs-sm);color:var(--kapi-primary-ink);font-weight:700}.kapi .kapi-bubble__reply{min-width:0;padding:var(--kapi-space-2) var(--kapi-space-4);border-inline-start:3px solid var(--kapi-primary);border-radius:var(--kapi-radius-xs);background:color-mix(in srgb, var(--kapi-ink) 6%, transparent);font-size:var(--kapi-fs-sm);overflow-wrap:anywhere}.kapi .kapi-bubble__text{white-space:pre-wrap;overflow-wrap:anywhere}.kapi .kapi-bubble__media{min-width:0;max-width:100%}.kapi .kapi-bubble__media img,.kapi .kapi-bubble__media video{border-radius:var(--kapi-radius-sm);max-width:100%;height:auto;display:block}.kapi .kapi-bubble__meta{align-self:flex-end;align-items:center;gap:var(--kapi-space-2);color:var(--kapi-muted);font-size:var(--kapi-fs-caption);line-height:1;display:inline-flex}.kapi .kapi-bubble__status{align-items:center;display:inline-flex}.kapi .kapi-bubble__status[data-status=read]{color:var(--kapi-primary-ink)}.kapi .kapi-bubble__status[data-status=failed]{color:var(--kapi-danger)}.kapi .kapi-chatdiv{--chatdiv-line:var(--kapi-border);align-items:center;gap:var(--kapi-space-4);margin-block:var(--kapi-space-6);display:flex}.kapi .kapi-chatdiv:before,.kapi .kapi-chatdiv:after{content:"";background:var(--chatdiv-line);flex:1;height:1px}.kapi .kapi-chatdiv__label{padding:var(--kapi-space-1) var(--kapi-space-5);border:1px solid var(--kapi-border);border-radius:var(--kapi-radius-pill);background:var(--kapi-card);color:var(--kapi-muted);font-size:var(--kapi-fs-caption);white-space:nowrap;font-weight:600;line-height:1.3}.kapi .kapi-chatdiv[data-
|
|
1
|
+
.kapi .kapi-bubble{--bubble-radius:var(--kapi-radius-xl);--bubble-radius-inner:var(--kapi-radius-xs);box-sizing:border-box;gap:var(--kapi-space-2);width:fit-content;max-width:min(100%,34em);margin-top:var(--kapi-space-4);padding:var(--kapi-space-4) var(--kapi-space-6);border-radius:var(--bubble-radius);background:var(--kapi-card);color:var(--kapi-ink);font-size:var(--kapi-fs-body);border:1px solid var(--kapi-border);flex-direction:column;line-height:1.45;display:flex}.kapi .kapi-bubble:first-child,.kapi .kapi-bubble[data-grouping=middle],.kapi .kapi-bubble[data-grouping=last]{margin-top:var(--kapi-space-1)}.kapi .kapi-bubble:first-child{margin-top:0}.kapi .kapi-bubble[data-direction=out]{background:var(--kapi-primary-soft);border-color:var(--kapi-primary-border);margin-inline-start:auto}.kapi .kapi-bubble[data-direction=in][data-grouping=first]{border-end-start-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=in][data-grouping=middle]{border-start-start-radius:var(--bubble-radius-inner);border-end-start-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=in][data-grouping=last]{border-start-start-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=out][data-grouping=first]{border-end-end-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=out][data-grouping=middle]{border-start-end-radius:var(--bubble-radius-inner);border-end-end-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble[data-direction=out][data-grouping=last]{border-start-end-radius:var(--bubble-radius-inner)}.kapi .kapi-bubble__author{font-size:var(--kapi-fs-sm);color:var(--kapi-primary-ink);font-weight:700}.kapi .kapi-bubble__reply{min-width:0;padding:var(--kapi-space-2) var(--kapi-space-4);border-inline-start:3px solid var(--kapi-primary);border-radius:var(--kapi-radius-xs);background:color-mix(in srgb, var(--kapi-ink) 6%, transparent);font-size:var(--kapi-fs-sm);overflow-wrap:anywhere}.kapi .kapi-bubble__text{white-space:pre-wrap;overflow-wrap:anywhere}.kapi .kapi-bubble__media{min-width:0;max-width:100%}.kapi .kapi-bubble__media img,.kapi .kapi-bubble__media video{border-radius:var(--kapi-radius-sm);max-width:100%;height:auto;display:block}.kapi .kapi-bubble__meta{align-self:flex-end;align-items:center;gap:var(--kapi-space-2);color:var(--kapi-muted);font-size:var(--kapi-fs-caption);line-height:1;display:inline-flex}.kapi .kapi-bubble__status{align-items:center;display:inline-flex}.kapi .kapi-bubble__status[data-status=read]{color:var(--kapi-primary-ink)}.kapi .kapi-bubble__status[data-status=failed]{color:var(--kapi-danger)}.kapi .kapi-chatdiv{--chatdiv-line:var(--kapi-border);align-items:center;gap:var(--kapi-space-4);margin-block:var(--kapi-space-6);display:flex}.kapi .kapi-chatdiv:before,.kapi .kapi-chatdiv:after{content:"";background:var(--chatdiv-line);flex:1;height:1px}.kapi .kapi-chatdiv__label{padding:var(--kapi-space-1) var(--kapi-space-5);border:1px solid var(--kapi-border);border-radius:var(--kapi-radius-pill);background:var(--kapi-card);color:var(--kapi-muted);font-size:var(--kapi-fs-caption);white-space:nowrap;font-weight:600;line-height:1.3}.kapi .kapi-chatdiv[data-variant=unread]{--chatdiv-line:var(--kapi-primary-border)}.kapi .kapi-chatdiv[data-variant=unread] .kapi-chatdiv__label{border-color:var(--kapi-primary-border);background:var(--kapi-primary-soft);color:var(--kapi-primary-ink)}.kapi .kapi-chatthread{flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.kapi .kapi-chatthread__scroll{flex:1;min-height:0;overflow:hidden auto}.kapi .kapi-chatthread__scroll:focus-visible{outline:2px solid var(--kapi-primary);outline-offset:-2px}.kapi .kapi-chatthread__content{min-height:100%;padding:var(--kapi-space-6);flex-direction:column;justify-content:flex-end;display:flex}.kapi .kapi-chatthread__pill{inset-inline:0;bottom:var(--kapi-space-6);z-index:1;align-items:center;gap:var(--kapi-space-3);width:fit-content;padding:var(--kapi-space-2) var(--kapi-space-6);border:1px solid var(--kapi-border);border-radius:var(--kapi-radius-pill);background:var(--kapi-card);box-shadow:var(--kapi-shadow-sm);color:var(--kapi-ink);font:inherit;font-size:var(--kapi-fs-sm);cursor:pointer;margin-inline:auto;font-weight:600;display:inline-flex;position:absolute}.kapi .kapi-chatthread__pill:hover{background:var(--kapi-primary-soft)}.kapi .kapi-chatthread__pill:focus-visible{outline:2px solid var(--kapi-primary);outline-offset:2px}.kapi .kapi-chatcomposer{box-sizing:border-box;align-items:flex-end;gap:var(--kapi-space-3);padding:var(--kapi-space-4) var(--kapi-space-6);background:var(--kapi-card);border-top:1px solid var(--kapi-border);display:flex}.kapi .kapi-chatcomposer__field{box-sizing:border-box;align-items:flex-end;gap:var(--kapi-space-2);min-width:0;min-height:var(--kapi-ctl-h);padding-inline:var(--kapi-space-2);background:var(--kapi-card);border:1.5px solid var(--kapi-border);border-radius:var(--kapi-radius-md);transition:border-color var(--kapi-dur-fast) ease, box-shadow var(--kapi-dur-fast) ease;flex:1;display:flex}.kapi .kapi-chatcomposer__field:focus-within{border-color:var(--kapi-primary);box-shadow:var(--kapi-ring)}.kapi .kapi-chatcomposer__field:has(textarea.kapi-input--err){border-color:var(--kapi-danger)}.kapi .kapi-chatcomposer__field:has(textarea.kapi-input--err):focus-within{box-shadow:var(--kapi-ring-danger)}.kapi .kapi-chatcomposer__field:has(textarea:disabled){background:var(--kapi-soft);color:var(--kapi-muted)}.kapi .kapi-chatcomposer__side{align-items:flex-end;gap:var(--kapi-space-2);flex:none;display:flex}.kapi .kapi-chatcomposer__side .kapi-btn--icon{box-shadow:none;width:calc(var(--kapi-ctl-h) - 3px);height:calc(var(--kapi-ctl-h) - 3px);background:0 0;border-color:#0000;min-height:0}.kapi .kapi-chatcomposer__side .kapi-btn--icon:hover:not(:disabled){background:var(--kapi-soft);color:var(--kapi-ink)}.kapi .kapi-chatcomposer__side .kapi-btn--icon:hover:not(:active):not(:disabled){box-shadow:none;transform:none}.kapi .kapi-chatcomposer__input{flex:1;min-width:0}.kapi textarea.kapi-chatcomposer__input{min-height:calc(var(--kapi-ctl-h) - 3px);font-size:var(--kapi-fs-body);padding-block:calc((var(--kapi-ctl-h) - 3px - 1.45 * var(--kapi-fs-body)) / 2);box-shadow:none;padding-inline:var(--kapi-space-3);background:0 0;border:0;border-radius:0;font-weight:400;line-height:1.45}.kapi textarea.kapi-chatcomposer__input:focus{box-shadow:none;border:0}.kapi .kapi-chatcomposer__send.kapi-btn--icon{background:var(--kapi-primary);color:var(--kapi-primary-fg);border-color:#0000;flex:none}.kapi .kapi-chatcomposer__send.kapi-btn--icon:disabled{background:var(--kapi-bg);color:var(--kapi-ink-3);border-color:var(--kapi-border)}.kapi .kapi-chatlist{box-sizing:border-box;gap:var(--kapi-space-1);flex-direction:column;min-width:0;display:flex}.kapi .kapi-chatlist__item{box-sizing:border-box;align-items:center;gap:var(--kapi-space-6);width:100%;min-width:0;padding:var(--kapi-space-4) var(--kapi-space-6);border-radius:var(--kapi-radius-ctl-sm);color:var(--kapi-ink-2);font:inherit;text-align:start;cursor:pointer;transition:background var(--kapi-dur-fast) var(--kapi-ease);background:0 0;border:0;display:flex}.kapi .kapi-chatlist__item:hover:not(:disabled){background:var(--kapi-soft)}.kapi .kapi-chatlist__item--on,.kapi .kapi-chatlist__item--on:hover:not(:disabled){background:var(--kapi-primary-soft);color:var(--kapi-primary-ink)}.kapi .kapi-chatlist__item:focus-visible{outline:2px solid var(--kapi-primary);outline-offset:-2px}.kapi .kapi-chatlist__item:disabled{opacity:.5;cursor:not-allowed}.kapi .kapi-chatlist__avatar{flex:none;display:flex}.kapi .kapi-chatlist__main{gap:var(--kapi-space-1);flex-direction:column;flex:1;min-width:0;display:flex}.kapi .kapi-chatlist__top,.kapi .kapi-chatlist__bottom{align-items:center;gap:var(--kapi-space-4);min-width:0;display:flex}.kapi .kapi-chatlist__name,.kapi .kapi-chatlist__preview{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.kapi .kapi-chatlist__name{color:var(--kapi-ink);font-size:var(--kapi-fs-body);font-weight:700}.kapi .kapi-chatlist__preview{color:var(--kapi-muted);font-size:var(--kapi-fs-sm);font-weight:500}.kapi .kapi-chatlist__time{color:var(--kapi-muted);font-size:var(--kapi-fs-xs);flex:none;font-weight:600}.kapi .kapi-chatlist__bottom .kapi-navbadge{flex:none}.kapi .kapi-typing{box-sizing:border-box;align-items:center;gap:var(--kapi-space-3);min-width:0;padding:var(--kapi-space-2) var(--kapi-space-6);color:var(--kapi-muted);font-size:var(--kapi-fs-sm);font-weight:500;display:flex}.kapi .kapi-typing__dots{align-items:center;gap:var(--kapi-space-1);flex:none;display:inline-flex}.kapi .kapi-typing__dot{border-radius:var(--kapi-radius-pill);width:6px;height:6px;animation:kapi-typing-pulse 1.2s var(--kapi-ease) infinite;background:currentColor}.kapi .kapi-typing__dot:nth-child(2){animation-delay:.2s}.kapi .kapi-typing__dot:nth-child(3){animation-delay:.4s}.kapi .kapi-typing__text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}@keyframes kapi-typing-pulse{0%,80%,to{opacity:.25}40%{opacity:1}}
|
package/dist/hooks/portalRoot.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { createContext as e, useContext as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/hooks/portalRoot.tsx
|
|
5
|
-
var r =
|
|
6
|
-
value:
|
|
7
|
-
children:
|
|
8
|
-
}), a = () =>
|
|
5
|
+
var r = e(null), i = ({ root: e, children: t }) => /* @__PURE__ */ n(r.Provider, {
|
|
6
|
+
value: e,
|
|
7
|
+
children: t
|
|
8
|
+
}), a = () => t(r);
|
|
9
9
|
//#endregion
|
|
10
10
|
export { i as KapiPortalRootProvider, a as usePortalRootOverride };
|
|
@@ -6,16 +6,20 @@ import { type SetStateAction } from "react";
|
|
|
6
6
|
* decide. Sin `value`, el hook guarda el cambio y además avisa. `null` cuenta como valor controlado
|
|
7
7
|
* (p. ej. «sin orden»), así que un padre puede fijar "nada" sin soltar el control.
|
|
8
8
|
*
|
|
9
|
-
* Devuelve `[valor, set, setSilently]`:
|
|
9
|
+
* Devuelve `[valor, set, setSilently, reset]`:
|
|
10
10
|
* - `set(next)` guarda (si no está controlado) y avisa. Es estable mientras no cambien el modo
|
|
11
11
|
* (controlado o no) ni `onChange`, así que puede ir en las dependencias de un efecto.
|
|
12
12
|
* - `setSilently(next | prev => next)` escribe sólo el estado interno, sin avisar, y no hace nada si
|
|
13
13
|
* está controlado. Es para limpiezas propias del componente que no son un cambio del usuario (p. ej.
|
|
14
14
|
* vaciar el borrador después de enviar); el updater sirve cuando se escribe tras una promesa.
|
|
15
|
+
* - `reset()` vuelve al valor del primer render (el `defaultValue` ya evaluado), sin avisar y sin
|
|
16
|
+
* hacer nada si está controlado. Lo usa `useFormReset` para el `reset` nativo de un `<form>`,
|
|
17
|
+
* que tampoco dispara eventos de cambio: el formulario vuelve a su estado inicial, no es una
|
|
18
|
+
* edición de la persona.
|
|
15
19
|
*
|
|
16
20
|
* `S` (por defecto `V`) es lo que se puede escribir, cuando es más angosto que lo que se muestra: un
|
|
17
21
|
* calendario muestra `Date | null` pero sólo elige `Date`, así `onChange` puede ser `(date: Date) => void`.
|
|
18
22
|
*
|
|
19
23
|
* Interno: no se exporta del paquete. Cada componente sigue declarando sus tres props.
|
|
20
24
|
*/
|
|
21
|
-
export declare const useControllableState: <V, S extends V = V>(value: V | undefined, defaultValue: V | (() => V), onChange?: ((next: S) => void) | undefined) => [V, (next: S) => void, (next: SetStateAction<V>) => void];
|
|
25
|
+
export declare const useControllableState: <V, S extends V = V>(value: V | undefined, defaultValue: V | (() => V), onChange?: ((next: S) => void) | undefined) => [V, (next: S) => void, (next: SetStateAction<V>) => void, () => void];
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCallback as e,
|
|
2
|
+
import { useCallback as e, useRef as t, useState as n } from "react";
|
|
3
3
|
//#region src/hooks/useControllableState.ts
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
|
|
7
|
-
}, [
|
|
8
|
-
|
|
9
|
-
}, [
|
|
4
|
+
var r = (r, i, a) => {
|
|
5
|
+
let o = r !== void 0, [s, c] = n(i), l = t(s), u = e((e) => {
|
|
6
|
+
o || c(e), a?.(e);
|
|
7
|
+
}, [o, a]), d = e((e) => {
|
|
8
|
+
o || c(e);
|
|
9
|
+
}, [o]), f = e(() => {
|
|
10
|
+
o || c(l.current);
|
|
11
|
+
}, [o]);
|
|
10
12
|
return [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
o ? r : s,
|
|
14
|
+
u,
|
|
15
|
+
d,
|
|
16
|
+
f
|
|
14
17
|
];
|
|
15
18
|
};
|
|
16
19
|
//#endregion
|
|
17
|
-
export {
|
|
20
|
+
export { r as useControllableState };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vuelve al valor inicial cuando el `<form>` que contiene al control se resetea.
|
|
3
|
+
*
|
|
4
|
+
* Por qué hace falta. Un `<input>` nativo se resetea solo: el navegador le devuelve el valor de su
|
|
5
|
+
* atributo. Un control compuesto de la librería no, porque su valor vive en estado de React y el
|
|
6
|
+
* `<input type="hidden">` que lo envía es controlado. Medido antes de escribir esto: tras
|
|
7
|
+
* `form.reset()`, `KapiSelect`, `KapiSegmented` y los campos con máscara seguían mandando el valor
|
|
8
|
+
* viejo en el `FormData` y mostrándolo en pantalla, mientras un `KapiCheckbox` al lado se limpiaba
|
|
9
|
+
* como corresponde. El formulario quedaba a medias y nada lo avisaba.
|
|
10
|
+
*
|
|
11
|
+
* Devuelve una ref callback para colgar de cualquier elemento que el componente ya dibuje: desde
|
|
12
|
+
* ahí encuentra su `<form>` con `closest`. Se engancha al elemento y no al `name`, porque el reset
|
|
13
|
+
* nativo limpia TODOS los campos del formulario, tengan nombre o no.
|
|
14
|
+
*
|
|
15
|
+
* El trabajo va en un microtask porque el evento `reset` se dispara ANTES de que el navegador
|
|
16
|
+
* limpie los campos, así que esperar al final de la tarea deja el estado escrito después del reset
|
|
17
|
+
* nativo y no antes. Es defensivo, no cargante: probado quitándolo, los tests siguen en verde,
|
|
18
|
+
* porque los controles son controlados por React y termina ganando su valor igual. Se deja porque
|
|
19
|
+
* el orden sí importaría para cualquier control que leyera el DOM en vez de su estado; si alguna
|
|
20
|
+
* vez molesta, sacarlo no rompe nada medible y este comentario es el permiso para hacerlo.
|
|
21
|
+
*/
|
|
22
|
+
export declare const useFormReset: (alResetear: () => void) => (node: Element | null) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback as e, useRef as t } from "react";
|
|
3
|
+
//#region src/hooks/useFormReset.ts
|
|
4
|
+
var n = (n) => {
|
|
5
|
+
let r = t(n);
|
|
6
|
+
r.current = n;
|
|
7
|
+
let i = t(null);
|
|
8
|
+
return e((e) => {
|
|
9
|
+
i.current?.(), i.current = null;
|
|
10
|
+
let t = e?.closest("form");
|
|
11
|
+
if (!t) return;
|
|
12
|
+
let n = () => queueMicrotask(() => r.current());
|
|
13
|
+
t.addEventListener("reset", n), i.current = () => t.removeEventListener("reset", n);
|
|
14
|
+
}, []);
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as useFormReset };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,3 +11,5 @@ export * from "./hooks/index.js";
|
|
|
11
11
|
export { withLabels } from "./components/labelsLogic.js";
|
|
12
12
|
export type { KapiLabelsOverride } from "./components/labelsLogic.js";
|
|
13
13
|
export type { KapiTone } from "./components/tone.js";
|
|
14
|
+
export type { KapiRender } from "./components/renderSlot.js";
|
|
15
|
+
export type { KapiCloseReason } from "./components/closeReason.js";
|