@kapiuara/ui 0.4.0 → 0.6.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 +54 -1
- package/dist/components/chat/KapiChatDivider.d.ts +15 -0
- package/dist/components/chat/KapiChatDivider.js +17 -0
- package/dist/components/chat/KapiChatList.d.ts +57 -0
- package/dist/components/chat/KapiChatList.js +71 -0
- package/dist/components/chat/KapiChatThread.d.ts +35 -0
- package/dist/components/chat/KapiChatThread.js +85 -0
- package/dist/components/chat/KapiComposer.d.ts +60 -0
- package/dist/components/chat/KapiComposer.js +89 -0
- package/dist/components/chat/KapiMessageBubble.d.ts +43 -0
- package/dist/components/chat/KapiMessageBubble.js +67 -0
- package/dist/components/chat/KapiTypingIndicator.d.ts +27 -0
- package/dist/components/chat/KapiTypingIndicator.js +34 -0
- package/dist/components/chat/chatLogic.d.ts +76 -0
- package/dist/components/chat/chatLogic.js +34 -0
- package/dist/components/chat/index.d.ts +14 -0
- package/dist/components/display/KapiCommentComposer.d.ts +4 -0
- package/dist/components/display/KapiCommentComposer.js +43 -46
- package/dist/components/display/commentLogic.d.ts +9 -2
- package/dist/components/display/commentLogic.js +1 -1
- package/dist/components/display/index.d.ts +1 -0
- package/dist/components/inputs/KapiFacetedSearch.d.ts +14 -1
- package/dist/components/inputs/KapiFacetedSearch.js +172 -110
- package/dist/components/inputs/KapiSelect.d.ts +7 -0
- package/dist/components/inputs/KapiSelect.js +233 -229
- package/dist/components/inputs/facetedSearchLogic.d.ts +12 -2
- package/dist/components/inputs/facetedSearchLogic.js +10 -7
- package/dist/components/layout/KapiPanelParts.js +9 -9
- package/dist/components/layout/KapiRail.js +8 -8
- package/dist/components/locale/labelRegistry.d.ts +10 -0
- package/dist/components/navigation/KapiContextPanel.js +86 -86
- package/dist/components/navigation/KapiPanelGroup.js +18 -18
- package/dist/components/navigation/KapiTabs.js +1 -1
- package/dist/components/navigation/MiniNavItem.js +1 -1
- package/dist/hooks/dateFormat.d.ts +7 -0
- package/dist/hooks/dateFormat.js +16 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useSubmitDraft.d.ts +34 -0
- package/dist/hooks/useSubmitDraft.js +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +83 -76
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/package.json +1 -1
package/dist/hooks/dateFormat.js
CHANGED
|
@@ -7,9 +7,23 @@ var e = 6e4, t = 60 * e, n = 24 * t, r = 7 * n, i = 30 * n, a = 365 * n, o = /*
|
|
|
7
7
|
if (!Number.isFinite(d)) return "";
|
|
8
8
|
let f = d - l.getTime(), p = Math.abs(f), m = s(u);
|
|
9
9
|
return p < e ? m.format(0, "second") : p < t ? m.format(Math.trunc(f / e), "minute") : p < n ? m.format(Math.trunc(f / t), "hour") : p < r ? m.format(Math.trunc(f / n), "day") : p < i ? m.format(Math.trunc(f / r), "week") : p < a ? m.format(Math.trunc(f / i), "month") : m.format(Math.trunc(f / a), "year");
|
|
10
|
-
}, f = (e,
|
|
10
|
+
}, f = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), p = (e, t = /* @__PURE__ */ new Date(), r = "es") => {
|
|
11
|
+
if (!Number.isFinite(e.getTime())) return "";
|
|
12
|
+
let i = Math.round((f(t) - f(e)) / n);
|
|
13
|
+
if (i >= 0 && i <= 1) return s(r).format(-i, "day");
|
|
14
|
+
if (i >= 2 && i <= 6) return new Intl.DateTimeFormat(r, { weekday: "long" }).format(e);
|
|
15
|
+
let a = e.getFullYear() === t.getFullYear();
|
|
16
|
+
return new Intl.DateTimeFormat(r, a ? {
|
|
17
|
+
day: "numeric",
|
|
18
|
+
month: "long"
|
|
19
|
+
} : {
|
|
20
|
+
day: "numeric",
|
|
21
|
+
month: "long",
|
|
22
|
+
year: "numeric"
|
|
23
|
+
}).format(e);
|
|
24
|
+
}, m = (e, t = "es", n = { dateStyle: "medium" }) => {
|
|
11
25
|
let r = c(e);
|
|
12
26
|
return Number.isFinite(r) ? new Intl.DateTimeFormat(t, n).format(r) : "";
|
|
13
27
|
};
|
|
14
28
|
//#endregion
|
|
15
|
-
export {
|
|
29
|
+
export { m as formatDate, p as formatDayLabel, d as formatRelativeTime, u as isoDateTime };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export type { OnlineEventTarget as KapiOnlineEventTarget, OnlineStatus as KapiOn
|
|
|
42
42
|
export { useObjectUrl } from "./useObjectUrl";
|
|
43
43
|
export { downloadBlob, fileKind, fileNameFromContentDisposition, fileNameFromUrl, formatFileSize } from "./downloadLogic";
|
|
44
44
|
export type { KapiFileKind } from "./downloadLogic";
|
|
45
|
-
export { formatDate, formatRelativeTime, isoDateTime } from "./dateFormat";
|
|
45
|
+
export { formatDate, formatDayLabel, formatRelativeTime, isoDateTime } from "./dateFormat";
|
|
46
46
|
export { useScrollEdges } from "./useScrollEdges";
|
|
47
47
|
export type { UseScrollEdgesOptions, UseScrollEdgesResult } from "./useScrollEdges";
|
|
48
48
|
export { DEFAULT_PAGE_FRACTION, DEFAULT_SCROLL_EDGE_TOLERANCE, maxScroll, pageSize, pageTarget, revealTarget, sameScrollEdges, scrollEdges } from "./scrollEdgesLogic";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export type UseSubmitDraftOptions = {
|
|
3
|
+
/** Texto (controlado). */
|
|
4
|
+
value?: string | undefined;
|
|
5
|
+
/** Texto inicial (no controlado). */
|
|
6
|
+
defaultValue?: string | undefined;
|
|
7
|
+
/** Cambio del texto, ya como string. */
|
|
8
|
+
onChange?: ((text: string) => void) | undefined;
|
|
9
|
+
/** Envío con el texto recortado; si devuelve una promesa, el borrador se quita sólo al resolver. */
|
|
10
|
+
onSubmit: (text: string) => void | PromiseLike<unknown>;
|
|
11
|
+
/** Bloquea el envío. */
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
/** Enviando: bloquea el envío y cuenta como ocupado. */
|
|
14
|
+
loading?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type UseSubmitDraftResult = {
|
|
17
|
+
/** Texto actual (la prop `value` si está controlado, el estado interno si no). */
|
|
18
|
+
text: string;
|
|
19
|
+
/** Escribe el texto: actualiza el estado interno sólo si no está controlado, y avisa con `onChange`. */
|
|
20
|
+
setText: (next: string) => void;
|
|
21
|
+
/** Envía el texto recortado si se puede; no hace nada si no. */
|
|
22
|
+
submit: () => void;
|
|
23
|
+
/** `loading` de la prop o envío en curso. */
|
|
24
|
+
busy: boolean;
|
|
25
|
+
/** Hay texto y no está deshabilitado ni ocupado. */
|
|
26
|
+
canSubmit: boolean;
|
|
27
|
+
/** Ref al enfocable, para devolverle el foco después de enviar. */
|
|
28
|
+
boxRef: RefObject<HTMLTextAreaElement | null>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Borrador + envío de un compositor (`KapiComposer`, `KapiCommentComposer`): estado controlado o no, envío
|
|
32
|
+
* síncrono o asíncrono y el foco de vuelta al campo. Interno: no forma parte de la API pública.
|
|
33
|
+
*/
|
|
34
|
+
export declare const useSubmitDraft: ({ value, defaultValue, onChange, onSubmit, disabled, loading }: UseSubmitDraftOptions) => UseSubmitDraftResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { canSubmitComment as e, draftAfterSubmit as t } from "../components/display/commentLogic.js";
|
|
3
|
+
import { useRef as n, useState as r } from "react";
|
|
4
|
+
//#region src/hooks/useSubmitDraft.ts
|
|
5
|
+
var i = (e) => typeof e?.then == "function", a = ({ value: a, defaultValue: o, onChange: s, onSubmit: c, disabled: l, loading: u = !1 }) => {
|
|
6
|
+
let [d, f] = r(o ?? ""), p = a ?? d, m = n(null), [h, g] = r(!1), _ = u || h, v = e(p, {
|
|
7
|
+
disabled: l,
|
|
8
|
+
loading: _
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
text: p,
|
|
12
|
+
setText: (e) => {
|
|
13
|
+
a === void 0 && f(e), s?.(e);
|
|
14
|
+
},
|
|
15
|
+
submit: () => {
|
|
16
|
+
if (!v) return;
|
|
17
|
+
let e = p.trim(), n = c(e);
|
|
18
|
+
m.current?.focus(), i(n) ? (g(!0), Promise.resolve(n).then(() => {
|
|
19
|
+
a === void 0 && f((n) => t(n, e));
|
|
20
|
+
}, (e) => console.error(e)).finally(() => g(!1))) : a === void 0 && f("");
|
|
21
|
+
},
|
|
22
|
+
busy: _,
|
|
23
|
+
canSubmit: v,
|
|
24
|
+
boxRef: m
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { a as useSubmitDraft };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./components/inputs";
|
|
|
3
3
|
export * from "./components/overlays";
|
|
4
4
|
export * from "./components/data";
|
|
5
5
|
export * from "./components/display";
|
|
6
|
+
export * from "./components/chat";
|
|
6
7
|
export * from "./components/feedback";
|
|
7
8
|
export * from "./components/navigation";
|
|
8
9
|
export * from "./components/layout";
|
package/dist/index.js
CHANGED
|
@@ -84,79 +84,86 @@ import { annotationClasses as bn, annotationRole as xn } from "./components/disp
|
|
|
84
84
|
import { KapiAnnotation as Sn } from "./components/display/KapiAnnotation.js";
|
|
85
85
|
import { useObjectUrl as Cn } from "./hooks/useObjectUrl.js";
|
|
86
86
|
import { DEFAULT_FILE_VIEWER_LABELS as wn, KapiFileViewer as Tn } from "./components/display/KapiFileViewer.js";
|
|
87
|
-
import { formatDate as En,
|
|
88
|
-
import { fileItemKind as
|
|
89
|
-
import { KapiFileItem as
|
|
90
|
-
import { KapiComment as
|
|
91
|
-
import { canSubmitComment as
|
|
92
|
-
import { DEFAULT_COMMENT_COMPOSER_LABELS as
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
|
|
87
|
+
import { formatDate as En, formatDayLabel as Dn, formatRelativeTime as On, isoDateTime as kn } from "./hooks/dateFormat.js";
|
|
88
|
+
import { fileItemKind as An, fileMetaParts as jn } from "./components/display/fileItemLogic.js";
|
|
89
|
+
import { KapiFileItem as Mn, KapiFileList as Nn } from "./components/display/KapiFileItem.js";
|
|
90
|
+
import { KapiComment as Pn } from "./components/display/KapiComment.js";
|
|
91
|
+
import { canSubmitComment as Fn, isSubmitShortcut as In } from "./components/display/commentLogic.js";
|
|
92
|
+
import { DEFAULT_COMMENT_COMPOSER_LABELS as Ln, KapiCommentComposer as Rn } from "./components/display/KapiCommentComposer.js";
|
|
93
|
+
import { groupChatMessages as zn, shouldFollowBottom as Bn, typingText as Vn } from "./components/chat/chatLogic.js";
|
|
94
|
+
import { KapiChatDivider as Hn } from "./components/chat/KapiChatDivider.js";
|
|
95
|
+
import { KapiEmpty as Un } from "./components/feedback/KapiEmpty.js";
|
|
96
|
+
import { NAV_BADGE_MAX as Wn, NAV_BADGE_PANEL_MAX as Gn, navBadgeA11yText as Kn, navBadgeView as qn } from "./components/navigation/navBadgeLogic.js";
|
|
97
|
+
import { KapiNavBadge as Jn } from "./components/navigation/KapiNavBadge.js";
|
|
98
|
+
import { DEFAULT_CHAT_LIST_LABELS as Yn, KapiChatList as Xn } from "./components/chat/KapiChatList.js";
|
|
99
|
+
import { DEFAULT_COMPOSER_LABELS as Zn, KapiComposer as Qn } from "./components/chat/KapiComposer.js";
|
|
100
|
+
import { DEFAULT_PAGE_FRACTION as $n, DEFAULT_SCROLL_EDGE_TOLERANCE as er, maxScroll as tr, pageSize as nr, pageTarget as rr, revealTarget as ir, sameScrollEdges as ar, scrollEdges as or } from "./hooks/scrollEdgesLogic.js";
|
|
101
|
+
import { useScrollEdges as sr } from "./hooks/useScrollEdges.js";
|
|
102
|
+
import { DEFAULT_CHAT_THREAD_LABELS as cr, KapiChatThread as lr } from "./components/chat/KapiChatThread.js";
|
|
103
|
+
import { DEFAULT_MESSAGE_BUBBLE_LABELS as ur, KapiMessageBubble as dr } from "./components/chat/KapiMessageBubble.js";
|
|
104
|
+
import { DEFAULT_TYPING_INDICATOR_LABELS as fr, KapiTypingIndicator as pr } from "./components/chat/KapiTypingIndicator.js";
|
|
105
|
+
import { KapiAlert as mr, alertRole as hr } from "./components/feedback/KapiAlert.js";
|
|
106
|
+
import { TOAST_ACTION_DURATION as gr, TOAST_DEFAULT_DURATION as _r, createToastStore as vr, kapiToast as yr, toastStore as br } from "./components/feedback/toastStore.js";
|
|
107
|
+
import { DEFAULT_TOAST_LABELS as xr, KapiToastContainer as Sr } from "./components/feedback/KapiToastContainer.js";
|
|
108
|
+
import { DEFAULT_FAB_LABELS as Cr, KapiFab as wr } from "./components/feedback/KapiFab.js";
|
|
109
|
+
import { DEFAULT_STORAGE_NAMESPACE as Tr, storageKey as Er } from "./hooks/storageLogic.js";
|
|
110
|
+
import { TOUR_STORAGE_KEY as Dr, tourStorageKey as Or } from "./components/feedback/tourLogic.js";
|
|
111
|
+
import { KapiTour as kr, useKapiTour as Ar } from "./components/feedback/KapiTour.js";
|
|
112
|
+
import { circleDash as jr, clampPercent as Mr, formatPercent as Nr, progressClasses as Pr } from "./components/feedback/progressLogic.js";
|
|
113
|
+
import { KapiProgress as Fr } from "./components/feedback/KapiProgress.js";
|
|
114
|
+
import { DEFAULT_COUNTDOWN_LABELS as Ir, DEFAULT_COUNTDOWN_LOCALE as Lr, breakdown as Rr, bucketFor as zr, chipText as Br, describe as Vr, formatClock as Hr, formatDuration as Ur, parseTarget as Wr, remainingMs as Gr, resolveTones as Kr } from "./components/feedback/countdownLogic.js";
|
|
115
|
+
import { KapiCountdown as qr } from "./components/feedback/KapiCountdown.js";
|
|
116
|
+
import { DEFAULT_UNSAVED_BAR_LABELS as Jr, KapiUnsavedBar as Yr } from "./components/feedback/KapiUnsavedBar.js";
|
|
117
|
+
import { SERVER_ONLINE_STATUS as Xr, createOnlineStore as Zr, readOnline as Qr } from "./hooks/onlineStatusLogic.js";
|
|
118
|
+
import { useOnlineStatus as $r } from "./hooks/useOnlineStatus.js";
|
|
119
|
+
import { DEFAULT_RESTORED_DURATION as ei, nextOfflineBannerPhase as ti, offlineBannerClasses as ni } from "./components/feedback/offlineBannerLogic.js";
|
|
120
|
+
import { DEFAULT_OFFLINE_BANNER_LABELS as ri, KapiOfflineBanner as ii } from "./components/feedback/KapiOfflineBanner.js";
|
|
121
|
+
import { DEFAULT_WIZARD_LABELS as ai, KapiWizard as oi } from "./components/navigation/KapiWizard.js";
|
|
122
|
+
import { resolveSteps as si, stepsClasses as ci } from "./components/navigation/stepsLogic.js";
|
|
123
|
+
import { DEFAULT_STEPS_LABELS as li, KapiSteps as ui } from "./components/navigation/KapiSteps.js";
|
|
124
|
+
import { canCollapse as di, ctxPanelClasses as fi, resolveCollapsed as pi } from "./components/navigation/contextPanelLogic.js";
|
|
125
|
+
import { DEFAULT_LINK_LABELS as mi } from "./components/locale/linkLabels.js";
|
|
126
|
+
import { useKapiPanelMini as hi } from "./components/navigation/panelMini.js";
|
|
127
|
+
import { DEFAULT_CONTEXT_PANEL_LABELS as gi, KapiContextPanel as _i, KapiContextSections as vi } from "./components/navigation/KapiContextPanel.js";
|
|
128
|
+
import { DEFAULT_COLLAPSIBLE_PANEL_LABELS as yi, KapiCollapsiblePanel as bi, KapiCollapsiblePanelStripItem as xi } from "./components/navigation/KapiCollapsiblePanel.js";
|
|
129
|
+
import { nextTabId as Si, tabClasses as Ci, tabId as wi, tabPanelId as Ti } from "./components/navigation/tabsLogic.js";
|
|
130
|
+
import { KapiTabPanel as Ei, KapiTabs as Di } from "./components/navigation/KapiTabs.js";
|
|
131
|
+
import { breadcrumbKinds as Oi } from "./components/navigation/breadcrumbLogic.js";
|
|
132
|
+
import { DEFAULT_BREADCRUMB_LABELS as ki, KapiBreadcrumb as Ai } from "./components/navigation/KapiBreadcrumb.js";
|
|
133
|
+
import { normalizeOpenIds as ji, toggleOpenId as Mi } from "./components/navigation/accordionLogic.js";
|
|
134
|
+
import { KapiAccordion as Ni } from "./components/navigation/KapiAccordion.js";
|
|
135
|
+
import { DEFAULT_TREE_LABELS as Pi, KapiTree as Fi } from "./components/navigation/KapiTree.js";
|
|
136
|
+
import { activeChipIndex as Ii, chipAriaLabel as Li, filterChipClasses as Ri, nextChipIndex as zi } from "./components/navigation/filterChipsLogic.js";
|
|
137
|
+
import { DEFAULT_FILTER_CHIPS_LABELS as Bi, KapiFilterChips as Vi } from "./components/navigation/KapiFilterChips.js";
|
|
138
|
+
import { PANEL_GROUP_COUNT_MAX as Hi, formatCount as Ui, panelGroupClasses as Wi, resolveOpen as Gi } from "./components/navigation/panelGroupLogic.js";
|
|
139
|
+
import { KapiPanelGroup as Ki } from "./components/navigation/KapiPanelGroup.js";
|
|
140
|
+
import { useGlobalRightClick as qi } from "./hooks/useGlobalRightClick.js";
|
|
141
|
+
import { SHELL_MOBILE_QUERY as Ji, matchesQuery as Yi, useMediaQuery as Xi } from "./hooks/useMediaQuery.js";
|
|
142
|
+
import { DARK_SCHEME_QUERY as Zi, FONTS as Qi, KapiThemeContext as $i, resolveTheme as ea, themeRootStyle as ta, themeStorageKeys as na, useKapiTheme as ra, useKapiThemeState as ia } from "./hooks/useKapiTheme.js";
|
|
143
|
+
import { KapiShell as aa } from "./components/layout/KapiShell.js";
|
|
144
|
+
import { DEFAULT_RAIL_LABELS as oa, KapiRail as sa } from "./components/layout/KapiRail.js";
|
|
145
|
+
import { DEFAULT_CONTEXT_SLOT_LABELS as ca, KapiContextSlot as la } from "./components/layout/KapiContextSlot.js";
|
|
146
|
+
import { KapiPanelDivider as ua, KapiPanelHint as da, KapiPanelItem as fa, KapiPanelLabel as pa, KapiPanelList as ma } from "./components/layout/KapiPanelParts.js";
|
|
147
|
+
import { cardClasses as ha, hasCardHeader as ga } from "./components/layout/cardLogic.js";
|
|
148
|
+
import { KapiCard as _a, KapiCardBody as va, KapiCardFooter as ya, KapiCardHeader as ba } from "./components/layout/KapiCard.js";
|
|
149
|
+
import { KapiDivider as xa, dividerClasses as Sa } from "./components/layout/KapiDivider.js";
|
|
150
|
+
import { DEFAULT_ACCOUNT_MENU_LABELS as Ca, KapiAccountMenu as wa } from "./components/layout/KapiAccountMenu.js";
|
|
151
|
+
import { NOTIFICATION_BELL_PLACEMENT as Ta, bellTriggerLabel as Ea } from "./components/layout/notificationBellLogic.js";
|
|
152
|
+
import { DEFAULT_NOTIFICATION_BELL_LABELS as Da, KapiNotificationBell as Oa } from "./components/layout/KapiNotificationBell.js";
|
|
153
|
+
import { accessCardAffordance as ka, accessCardClasses as Aa, isActivationKey as ja } from "./components/layout/accessCardLogic.js";
|
|
154
|
+
import { KapiAccessCard as Ma } from "./components/layout/KapiAccessCard.js";
|
|
155
|
+
import { KapiStack as Na } from "./components/layout/KapiStack.js";
|
|
156
|
+
import { KapiCluster as Pa } from "./components/layout/KapiCluster.js";
|
|
157
|
+
import { KapiGrid as Fa } from "./components/layout/KapiGrid.js";
|
|
158
|
+
import { DEFAULT_ROOT_MARGIN as Ia, collapsedFromIntersection as La, normalizeRootMargin as Ra } from "./hooks/scrollCollapseLogic.js";
|
|
159
|
+
import { useScrollCollapse as za } from "./hooks/useScrollCollapse.js";
|
|
160
|
+
import { KapiPageHeader as Ba } from "./components/layout/KapiPageHeader.js";
|
|
161
|
+
import { DEFAULT_SCROLL_AREA_LABELS as Va, KapiScrollArea as Ha } from "./components/layout/KapiScrollArea.js";
|
|
162
|
+
import { DEFAULT_UNSAVED_GUARD_LABELS as Ua, unsavedGuardHandler as Wa, useUnsavedGuard as Ga } from "./hooks/useUnsavedGuard.js";
|
|
163
|
+
import { useHotkey as Ka } from "./hooks/useHotkey.js";
|
|
164
|
+
import { parseStored as qa, serializeStored as Ja } from "./hooks/persistentStateLogic.js";
|
|
165
|
+
import { usePersistentState as Ya } from "./hooks/usePersistentState.js";
|
|
166
|
+
import { addRecentEntry as Xa, removeRecentEntry as Za } from "./hooks/recentLogic.js";
|
|
167
|
+
import { useRecent as Qa } from "./hooks/useRecent.js";
|
|
168
|
+
import { useGrowOrigin as $a } from "./hooks/useGrowOrigin.js";
|
|
169
|
+
export { Zi as DARK_SCHEME_QUERY, Ca as DEFAULT_ACCOUNT_MENU_LABELS, Ee as DEFAULT_AUTOCOMPLETE_LABELS, ki as DEFAULT_BREADCRUMB_LABELS, Kt as DEFAULT_BULK_BAR_LABELS, B as DEFAULT_CALENDAR_LABELS, Pt as DEFAULT_CANVAS_FORM_LABELS, Yn as DEFAULT_CHAT_LIST_LABELS, cr as DEFAULT_CHAT_THREAD_LABELS, yi as DEFAULT_COLLAPSIBLE_PANEL_LABELS, It as DEFAULT_COMMAND_PALETTE_LABELS, Ln as DEFAULT_COMMENT_COMPOSER_LABELS, Zn as DEFAULT_COMPOSER_LABELS, yt as DEFAULT_CONFIRM_LABELS, gi as DEFAULT_CONTEXT_PANEL_LABELS, ca as DEFAULT_CONTEXT_SLOT_LABELS, Ir as DEFAULT_COUNTDOWN_LABELS, Lr as DEFAULT_COUNTDOWN_LOCALE, ee as DEFAULT_CUIT_INPUT_LABELS, K as DEFAULT_DATE_RANGE_LABELS, Et as DEFAULT_DIALOG_LABELS, Cr as DEFAULT_FAB_LABELS, rt as DEFAULT_FACETED_SEARCH_LABELS, ie as DEFAULT_FILE_UPLOAD_LABELS, wn as DEFAULT_FILE_VIEWER_LABELS, Bi as DEFAULT_FILTER_CHIPS_LABELS, y as DEFAULT_INPUT_LABELS, mi as DEFAULT_LINK_LABELS, ur as DEFAULT_MESSAGE_BUBBLE_LABELS, ht as DEFAULT_MODAL_LABELS, Da as DEFAULT_NOTIFICATION_BELL_LABELS, me as DEFAULT_NUMBER_STEPPER_LABELS, kt as DEFAULT_OFFCANVAS_LABELS, ri as DEFAULT_OFFLINE_BANNER_LABELS, $n as DEFAULT_PAGE_FRACTION, lt as DEFAULT_PHOTO_VIEW_LABELS, oa as DEFAULT_RAIL_LABELS, Ce as DEFAULT_RATING_LABELS, ei as DEFAULT_RESTORED_DURATION, Ia as DEFAULT_ROOT_MARGIN, Va as DEFAULT_SCROLL_AREA_LABELS, er as DEFAULT_SCROLL_EDGE_TOLERANCE, L as DEFAULT_SELECT_LABELS, dt as DEFAULT_SHAPE_SHEET_LABELS, _t as DEFAULT_SPLIT_MODAL_LABELS, li as DEFAULT_STEPS_LABELS, Tr as DEFAULT_STORAGE_NAMESPACE, Jt as DEFAULT_TABLE_FILTER_LABELS, Xt as DEFAULT_TABLE_LABELS, be as DEFAULT_TAG_INPUT_LABELS, ve as DEFAULT_TAG_LABELS, xr as DEFAULT_TOAST_LABELS, Pi as DEFAULT_TREE_LABELS, fr as DEFAULT_TYPING_INDICATOR_LABELS, Jr as DEFAULT_UNSAVED_BAR_LABELS, Ua as DEFAULT_UNSAVED_GUARD_LABELS, ai as DEFAULT_WIZARD_LABELS, Qi as FONTS, D as KAPI_ROOT_SELECTOR, Ma as KapiAccessCard, Ni as KapiAccordion, wa as KapiAccountMenu, mr as KapiAlert, Sn as KapiAnnotation, De as KapiAutocomplete, rn as KapiAvatar, yn as KapiAvatarGroup, $t as KapiBadge, Ai as KapiBreadcrumb, qt as KapiBulkBar, e as KapiButton, W as KapiCalendar, Ft as KapiCanvasForm, _a as KapiCard, va as KapiCardBody, ya as KapiCardFooter, ba as KapiCardHeader, Hn as KapiChatDivider, Xn as KapiChatList, lr as KapiChatThread, T as KapiCheckCard, S as KapiCheckbox, Pa as KapiCluster, bi as KapiCollapsiblePanel, xi as KapiCollapsiblePanelStripItem, Lt as KapiCommandPalette, Pn as KapiComment, Rn as KapiCommentComposer, Qn as KapiComposer, bt as KapiConfirm, ot as KapiContextMenu, _i as KapiContextPanel, vi as KapiContextSections, la as KapiContextSlot, qr as KapiCountdown, te as KapiCuitInput, ne as KapiCurrencyInput, G as KapiDatePicker, q as KapiDateRangePicker, mn as KapiDescriptionList, Dt as KapiDialogHost, xa as KapiDivider, re as KapiDniInput, ct as KapiDropdown, Un as KapiEmpty, wr as KapiFab, it as KapiFacetedSearch, a as KapiField, Mn as KapiFileItem, Nn as KapiFileList, ae as KapiFileUpload, Tn as KapiFileViewer, Vi as KapiFilterChips, Fa as KapiGrid, n as KapiIconButton, cn as KapiIconTile, b as KapiInput, d as KapiInputGroup, Ot as KapiLoading, g as KapiLocaleProvider, st as KapiMenuButton, dr as KapiMessageBubble, gt as KapiModal, Jn as KapiNavBadge, Oa as KapiNotificationBell, he as KapiNumberStepper, At as KapiOffcanvas, jt as KapiOffcanvasStack, ii as KapiOfflineBanner, Oe as KapiOverlayPortal, Ba as KapiPageHeader, Qt as KapiPagination, ua as KapiPanelDivider, Ki as KapiPanelGroup, da as KapiPanelHint, fa as KapiPanelItem, pa as KapiPanelLabel, ma as KapiPanelList, ut as KapiPhotoView, je as KapiPopover, Fr as KapiProgress, C as KapiRadio, sa as KapiRail, we as KapiRating, Ha as KapiScrollArea, le as KapiSegmented, R as KapiSelect, ft as KapiShapeSheet, aa as KapiShell, Wt as KapiSkeleton, fe as KapiSlider, vt as KapiSplitModal, Na as KapiStack, un as KapiStat, ui as KapiSteps, w as KapiSwitch, Ei as KapiTabPanel, Zt as KapiTable, Yt as KapiTableFilter, Di as KapiTabs, ye as KapiTag, xe as KapiTagInput, ue as KapiTextarea, $i as KapiThemeContext, pn as KapiTimeline, Sr as KapiToastContainer, ce as KapiTooltip, kr as KapiTour, Fi as KapiTree, pr as KapiTypingIndicator, Yr as KapiUnsavedBar, oi as KapiWizard, Wn as NAV_BADGE_MAX, Gn as NAV_BADGE_PANEL_MAX, Ta as NOTIFICATION_BELL_PLACEMENT, Hi as PANEL_GROUP_COUNT_MAX, ke as REDUCED_MOTION_QUERY, Xr as SERVER_ONLINE_STATUS, Ji as SHELL_MOBILE_QUERY, gr as TOAST_ACTION_DURATION, _r as TOAST_DEFAULT_DURATION, Dr as TOUR_STORAGE_KEY, ka as accessCardAffordance, Aa as accessCardClasses, Ii as activeChipIndex, Xa as addRecentEntry, hr as alertRole, bn as annotationClasses, xn as annotationRole, gn as avatarOverlapPx, en as badgeClasses, Ea as bellTriggerLabel, Oi as breadcrumbKinds, zr as bucketFor, Me as buildCsv, t as buttonClasses, V as calendarNames, di as canCollapse, Fn as canSubmitComment, ha as cardClasses, E as checkCardClasses, Li as chipAriaLabel, Br as chipText, jr as circleDash, Ne as clampColumnWidth, at as clampMenuPosition, Mr as clampPercent, La as collapsedFromIntersection, tn as colorIndexFrom, Pe as compareSortValues, Fe as computePagination, Rr as countdownBreakdown, xt as createDialogStore, Zr as createOnlineStore, vr as createToastStore, Ie as csvCell, fi as ctxPanelClasses, J as cuitCheckDigit, Vr as describeCountdown, hn as descriptionListClasses, Sa as dividerClasses, Rt as downloadBlob, Le as effectiveColumnWidth, Qe as facetKeyAction, $e as facetMenuItems, o as fieldClasses, i as fieldControlProps, An as fileItemKind, zt as fileKind, jn as fileMetaParts, Bt as fileNameFromContentDisposition, Vt as fileNameFromUrl, Ri as filterChipClasses, Re as filterColumnOptions, ze as filterRows, Be as filterSearchColumns, Ve as filterTerms, Hr as formatClock, Ui as formatCount, Y as formatCuit, X as formatCurrency, En as formatDate, Dn as formatDayLabel, Z as formatDni, Ur as formatDuration, Ht as formatFileSize, Nr as formatPercent, On as formatRelativeTime, zn as groupChatMessages, p as hasAdornments, ga as hasCardHeader, s as helpClasses, r as iconButtonClasses, an as iconTileClasses, on as iconTileRadiusPx, sn as iconTileSizePx, nn as initialsFrom, m as inputBoxClasses, x as inputClasses, l as inputGroupAddonClasses, u as inputGroupClasses, ja as isActivationKey, He as isFilterActive, A as isOutsidePopover, In as isSubmitShortcut, Q as isValidCuit, kn as isoDateTime, St as kapiAlert, Ct as kapiCloseDialogs, wt as kapiConfirm, Tt as kapiLoading, yr as kapiToast, H as localizedCalendarLabels, Yi as matchesQuery, tr as maxScroll, U as monthTitle, Kn as navBadgeA11yText, qn as navBadgeView, zi as nextChipIndex, ti as nextOfflineBannerPhase, Ue as nextSortState, Si as nextTabId, We as normalizeFilterText, ji as normalizeOpenIds, Ra as normalizeRootMargin, ni as offlineBannerClasses, P as onViewportChange, pt as originWithinCard, _n as overflowLabel, nr as pageSize, rr as pageTarget, Ge as paginateRows, Wi as panelGroupClasses, $ as parseCurrency, et as parseDateRangeValue, qa as parseStored, Wr as parseTarget, j as placePopover, Ae as prefersReducedMotion, Pr as progressClasses, F as rafThrottle, Te as ratingClasses, Qr as readOnline, mt as rectCenter, Gr as remainingMs, Za as removeRecentEntry, Ke as resizeColumn, pi as resolveCollapsed, O as resolveKapiRoot, Gi as resolveOpen, si as resolveSteps, ea as resolveTheme, Kr as resolveTones, ir as revealTarget, qe as rowMatchesFilter, M as samePlacement, ar as sameScrollEdges, or as scrollEdges, z as selectClasses, Gt as selectedCountLabel, Ja as serializeStored, N as shiftIntoView, Bn as shouldFollowBottom, dn as showConnector, pe as sliderClasses, oe as slidingIndicatorBox, Je as sortRows, Ye as sortRowsByColumn, vn as splitAvatarGroup, ln as statClasses, ge as stepperClasses, ci as stepsClasses, Er as storageKey, Ci as tabClasses, wi as tabId, Ti as tabPanelId, _e as tagClasses, Se as tagInputClasses, de as textareaClasses, ta as themeRootStyle, na as themeStorageKeys, fn as timelineDotClass, tt as toDateRangeValue, nt as toDateValue, br as toastStore, Xe as toggleColumnVisibility, Mi as toggleOpenId, Or as tourStorageKey, Vn as typingText, Wa as unsavedGuardHandler, Ut as useDragScroll, qi as useGlobalRightClick, $a as useGrowOrigin, Ka as useHotkey, c as useKapiField, f as useKapiInputGroup, _ as useKapiLocale, Mt as useKapiOffcanvasPanel, Nt as useKapiOffcanvasStack, hi as useKapiPanelMini, k as useKapiRoot, ra as useKapiTheme, ia as useKapiThemeState, Ar as useKapiTour, v as useLabels, Xi as useMediaQuery, Cn as useObjectUrl, $r as useOnlineStatus, Ya as usePersistentState, I as usePlacement, Qa as useRecent, za as useScrollCollapse, sr as useScrollEdges, se as useSlidingIndicator, Ga as useUnsavedGuard, Ze as visibleColumnsOf, h as withLabels };
|