@kapiuara/ui 0.16.0 → 0.17.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 +171 -11
- package/dist/components/chat/KapiChatThread.js +4 -4
- package/dist/components/chat/KapiComposer.js +8 -8
- package/dist/components/data/KapiDataTable.js +4 -4
- package/dist/components/data/KapiSparkline.d.ts +2 -1
- package/dist/components/data/KapiSparkline.js +29 -26
- package/dist/components/data/KapiTableFilter.js +6 -6
- package/dist/components/data/tableCells.d.ts +12 -1
- package/dist/components/data/tableCells.js +49 -51
- package/dist/components/data/useTableSelection.js +3 -3
- package/dist/components/display/KapiAnnotation.js +68 -63
- package/dist/components/display/KapiAvatar.d.ts +6 -4
- package/dist/components/display/KapiAvatar.js +33 -28
- package/dist/components/display/KapiCodeBlock.d.ts +48 -0
- package/dist/components/display/KapiCodeBlock.js +44 -0
- package/dist/components/display/KapiCommentComposer.js +6 -6
- package/dist/components/display/KapiDiff.d.ts +62 -0
- package/dist/components/display/KapiDiff.js +118 -0
- package/dist/components/display/KapiHighlight.d.ts +27 -0
- package/dist/components/display/KapiHighlight.js +21 -0
- package/dist/components/display/KapiIconTile.d.ts +2 -1
- package/dist/components/display/KapiIconTile.js +23 -21
- package/dist/components/display/KapiStat.d.ts +3 -2
- package/dist/components/display/KapiStat.js +32 -26
- package/dist/components/display/KapiTag.d.ts +4 -3
- package/dist/components/display/KapiTag.js +29 -24
- package/dist/components/display/KapiTimeline.d.ts +5 -2
- package/dist/components/display/KapiTimeline.js +31 -23
- package/dist/components/display/annotationLogic.d.ts +2 -1
- package/dist/components/display/annotationLogic.js +7 -6
- package/dist/components/display/codeBlockSlots.d.ts +10 -0
- package/dist/components/display/codeBlockSlots.js +13 -0
- package/dist/components/display/diffLogic.d.ts +58 -0
- package/dist/components/display/diffLogic.js +96 -0
- package/dist/components/display/diffSlots.d.ts +14 -0
- package/dist/components/display/diffSlots.js +17 -0
- package/dist/components/display/highlightLogic.d.ts +18 -0
- package/dist/components/display/highlightLogic.js +26 -0
- package/dist/components/display/highlightSlots.d.ts +5 -0
- package/dist/components/display/highlightSlots.js +8 -0
- package/dist/components/display/iconTileLogic.d.ts +2 -2
- package/dist/components/display/iconTileLogic.js +7 -6
- package/dist/components/display/index.d.ts +8 -0
- package/dist/components/display/statLogic.d.ts +2 -1
- package/dist/components/display/statLogic.js +7 -6
- package/dist/components/display/tagLogic.d.ts +2 -1
- package/dist/components/display/tagLogic.js +7 -6
- package/dist/components/display/timelineLogic.d.ts +20 -2
- package/dist/components/display/timelineLogic.js +10 -2
- package/dist/components/feedback/KapiFab.js +108 -108
- package/dist/components/feedback/KapiProgress.js +63 -54
- package/dist/components/feedback/KapiToastContainer.js +9 -9
- package/dist/components/feedback/KapiTour.js +12 -12
- package/dist/components/feedback/progressLogic.d.ts +2 -1
- package/dist/components/feedback/progressLogic.js +9 -8
- package/dist/components/inputs/KapiAutocomplete.d.ts +6 -0
- package/dist/components/inputs/KapiAutocomplete.js +86 -85
- package/dist/components/inputs/KapiChecklist.d.ts +7 -1
- package/dist/components/inputs/KapiChecklist.js +53 -52
- package/dist/components/inputs/KapiCopyButton.d.ts +40 -0
- package/dist/components/inputs/KapiCopyButton.js +35 -0
- package/dist/components/inputs/KapiDatePicker.d.ts +7 -1
- package/dist/components/inputs/KapiDatePicker.js +118 -116
- package/dist/components/inputs/KapiDateRangePicker.d.ts +7 -1
- package/dist/components/inputs/KapiDateRangePicker.js +136 -135
- package/dist/components/inputs/KapiFacetedSearch.js +5 -5
- package/dist/components/inputs/KapiField.d.ts +9 -1
- package/dist/components/inputs/KapiField.js +43 -42
- package/dist/components/inputs/KapiFileUpload.js +6 -6
- package/dist/components/inputs/KapiInput.d.ts +29 -1
- package/dist/components/inputs/KapiInput.js +74 -51
- package/dist/components/inputs/KapiMaskedInput.js +26 -26
- package/dist/components/inputs/KapiNumberStepper.d.ts +7 -1
- package/dist/components/inputs/KapiNumberStepper.js +24 -23
- package/dist/components/inputs/KapiPinInput.d.ts +72 -0
- package/dist/components/inputs/KapiPinInput.js +75 -0
- package/dist/components/inputs/KapiPropsForm.d.ts +34 -0
- package/dist/components/inputs/KapiPropsForm.js +78 -0
- package/dist/components/inputs/KapiRating.d.ts +7 -1
- package/dist/components/inputs/KapiRating.js +39 -38
- package/dist/components/inputs/KapiSearchChip.js +5 -5
- package/dist/components/inputs/KapiSegmented.d.ts +13 -5
- package/dist/components/inputs/KapiSegmented.js +81 -77
- package/dist/components/inputs/KapiSelect.d.ts +9 -1
- package/dist/components/inputs/KapiSelect.js +236 -233
- package/dist/components/inputs/KapiSlider.d.ts +10 -3
- package/dist/components/inputs/KapiSlider.js +67 -63
- package/dist/components/inputs/KapiTagInput.d.ts +7 -1
- package/dist/components/inputs/KapiTagInput.js +70 -69
- package/dist/components/inputs/KapiTextarea.d.ts +7 -1
- package/dist/components/inputs/KapiTextarea.js +51 -50
- package/dist/components/inputs/copyLogic.d.ts +1 -0
- package/dist/components/inputs/copyLogic.js +12 -0
- package/dist/components/inputs/fieldLogic.d.ts +23 -3
- package/dist/components/inputs/fieldLogic.js +18 -11
- package/dist/components/inputs/index.d.ts +8 -0
- package/dist/components/inputs/inputLogic.d.ts +16 -1
- package/dist/components/inputs/inputLogic.js +3 -3
- package/dist/components/inputs/ownField.d.ts +3 -1
- package/dist/components/inputs/ownField.js +28 -27
- package/dist/components/inputs/pinInputLogic.d.ts +34 -0
- package/dist/components/inputs/pinInputLogic.js +37 -0
- package/dist/components/inputs/propsFormLogic.d.ts +53 -0
- package/dist/components/inputs/propsFormLogic.js +11 -0
- package/dist/components/inputs/segmentedLogic.d.ts +7 -0
- package/dist/components/inputs/segmentedLogic.js +2 -2
- package/dist/components/layout/KapiAccessCard.d.ts +5 -1
- package/dist/components/layout/KapiAccessCard.js +43 -39
- package/dist/components/layout/KapiAccountMenu.js +7 -7
- package/dist/components/layout/KapiCollapse.d.ts +39 -0
- package/dist/components/layout/KapiCollapse.js +20 -0
- package/dist/components/layout/KapiContextSlot.js +4 -4
- package/dist/components/layout/KapiDivider.d.ts +11 -2
- package/dist/components/layout/KapiDivider.js +30 -24
- package/dist/components/layout/KapiGrid.js +2 -2
- package/dist/components/layout/KapiNotificationBell.js +10 -10
- package/dist/components/layout/KapiPageHeader.js +22 -22
- package/dist/components/layout/KapiRail.js +4 -4
- package/dist/components/layout/KapiRoot.d.ts +22 -2
- package/dist/components/layout/KapiRoot.js +33 -29
- package/dist/components/layout/KapiShell.d.ts +9 -1
- package/dist/components/layout/KapiShell.js +28 -27
- package/dist/components/layout/accessCardLogic.d.ts +8 -1
- package/dist/components/layout/accessCardLogic.js +11 -7
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/locale/labelRegistry.d.ts +10 -0
- package/dist/components/navigation/KapiAccordion.js +9 -9
- package/dist/components/navigation/KapiContextPanel.js +12 -12
- package/dist/components/navigation/KapiNavBadge.d.ts +6 -3
- package/dist/components/navigation/KapiNavBadge.js +26 -22
- package/dist/components/navigation/KapiTabs.js +9 -9
- package/dist/components/navigation/KapiToc.d.ts +48 -0
- package/dist/components/navigation/KapiToc.js +66 -0
- package/dist/components/navigation/KapiTree.js +10 -10
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/tocLogic.d.ts +35 -0
- package/dist/components/navigation/tocLogic.js +11 -0
- package/dist/components/navigation/tocSlots.d.ts +8 -0
- package/dist/components/navigation/tocSlots.js +11 -0
- package/dist/components/overlays/KapiCommandPalette.js +6 -6
- package/dist/components/overlays/KapiContextMenu.js +5 -5
- package/dist/components/overlays/KapiMenuButton.js +7 -7
- package/dist/components/overlays/KapiModal.js +3 -3
- package/dist/components/overlays/KapiOffcanvas.js +24 -24
- package/dist/components/overlays/KapiPhotoView.js +10 -10
- package/dist/components/overlays/KapiPopover.js +6 -6
- package/dist/components/overlays/KapiShapeSheet.js +4 -4
- package/dist/components/overlays/KapiTooltip.js +18 -18
- package/dist/components/overlays/menuList.js +22 -22
- package/dist/components/slotCatalog.d.ts +33 -0
- package/dist/components/slotCatalog.js +18 -10
- package/dist/css/base.css +1 -1
- package/dist/css/components/display/KapiAnnotation.css +1 -1
- package/dist/css/components/display/KapiCodeBlock.css +1 -0
- package/dist/css/components/display/KapiDiff.css +1 -0
- package/dist/css/components/display/display.css +1 -1
- package/dist/css/components/feedback/feedback.css +1 -1
- package/dist/css/components/inputs/KapiPinInput.css +1 -0
- package/dist/css/components/inputs/KapiSelect.css +1 -1
- package/dist/css/components/inputs/inputsExtra.css +1 -1
- package/dist/css/components/layout/KapiAccessCard.css +1 -1
- package/dist/css/components/layout/KapiCollapse.css +1 -0
- package/dist/css/components/layout/KapiDivider.css +1 -1
- package/dist/css/components/navigation/KapiToc.css +1 -0
- package/dist/hooks/asyncResourceLogic.d.ts +11 -0
- package/dist/hooks/asyncResourceLogic.js +4 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/toneFamilyLogic.d.ts +26 -2
- package/dist/hooks/toneFamilyLogic.js +19 -6
- package/dist/hooks/useAsyncResource.d.ts +45 -0
- package/dist/hooks/useAsyncResource.js +24 -0
- package/dist/hooks/useKapiTheme.d.ts +8 -1
- package/dist/hooks/useKapiTheme.js +57 -57
- package/dist/hooks/useToneFamilies.d.ts +14 -4
- package/dist/hooks/useToneFamilies.js +27 -23
- package/dist/index.js +221 -207
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/dist/logic.d.ts +41 -0
- package/dist/logic.js +42 -0
- package/package.json +13 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/overlays.css";
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
|
|
5
|
+
import { useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
6
|
+
import { usePlacement as r } from "../../hooks/usePlacement.js";
|
|
7
7
|
import { useDismiss as i } from "../../hooks/useDismiss.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { POINT_MENU_PLACEMENT as a } from "../../hooks/rightClick.js";
|
|
@@ -14,7 +14,7 @@ import { useLayoutEffect as l, useRef as u } from "react";
|
|
|
14
14
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/overlays/KapiContextMenu.tsx
|
|
16
16
|
var m = { menu: "Menú contextual" }, h = 210, g = ({ open: e, ...t }) => e ? /* @__PURE__ */ f(_, { ...t }) : null, _ = ({ x: g, y: _, items: v, onClose: y, className: b, style: x, id: S, ref: C, labels: w, "aria-label": T }) => {
|
|
17
|
-
let E =
|
|
17
|
+
let E = n("contextMenu", m, w), D = u(null), O = t(D, C);
|
|
18
18
|
c(!0, {
|
|
19
19
|
container: D,
|
|
20
20
|
restoreOnDeactivate: "if-lost"
|
|
@@ -23,7 +23,7 @@ var m = { menu: "Menú contextual" }, h = 210, g = ({ open: e, ...t }) => e ? /*
|
|
|
23
23
|
zones: [D],
|
|
24
24
|
outside: !1,
|
|
25
25
|
onDismiss: (e) => y(e)
|
|
26
|
-
}), { placement: A, update: j } =
|
|
26
|
+
}), { placement: A, update: j } = r({
|
|
27
27
|
open: !0,
|
|
28
28
|
anchor: () => ({
|
|
29
29
|
x: g,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "#kapi-css/components/overlays/overlays.css";
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
4
|
import { KapiButton as t } from "../inputs/KapiButton.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { useMergedRefs as n } from "../../hooks/mergeRefs.js";
|
|
6
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
7
|
+
import { resolveKapiRoot as i } from "../../hooks/kapiRoot.js";
|
|
8
|
+
import { usePlacement as a } from "../../hooks/usePlacement.js";
|
|
9
9
|
import { useDismiss as o } from "../../hooks/useDismiss.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import { ACTION_MENU_PLACEMENT as s } from "./menuButtonLogic.js";
|
|
@@ -17,12 +17,12 @@ import { ChevronDown as g } from "lucide-react";
|
|
|
17
17
|
import { createPortal as _ } from "react-dom";
|
|
18
18
|
//#region src/components/overlays/KapiMenuButton.tsx
|
|
19
19
|
var v = 6, y = ({ label: y, items: b, icon: x, tone: S, variant: C, size: w, disabled: T = !1, open: E, defaultOpen: D = !1, onOpenChange: O, chevron: k, "aria-label": A, drop: j = "down", className: M, style: N, id: P, ref: F }) => {
|
|
20
|
-
let I = d(), [L, R] =
|
|
20
|
+
let I = d(), [L, R] = r(E, D, O), z = L && !T, B = y === void 0 && x != null, V = k ?? !B, H = p(null), U = n(H, F), W = p(null), G = p(null), { restore: K } = l(z, {
|
|
21
21
|
container: G,
|
|
22
22
|
target: W
|
|
23
23
|
}), q = u((e) => {
|
|
24
24
|
R(!1), e && K();
|
|
25
|
-
}, [R, K]), { placement: J, style: Y, update: X } =
|
|
25
|
+
}, [R, K]), { placement: J, style: Y, update: X } = a({
|
|
26
26
|
open: z,
|
|
27
27
|
anchor: W,
|
|
28
28
|
floatingRef: G,
|
|
@@ -43,7 +43,7 @@ var v = 6, y = ({ label: y, items: b, icon: x, tone: S, variant: C, size: w, dis
|
|
|
43
43
|
onDismiss: (e) => q(e === "escape")
|
|
44
44
|
}), Q = (e) => {
|
|
45
45
|
(e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), R(!0));
|
|
46
|
-
}, $ = z ?
|
|
46
|
+
}, $ = z ? i(H.current) : null;
|
|
47
47
|
return /* @__PURE__ */ h("span", {
|
|
48
48
|
ref: U,
|
|
49
49
|
id: P,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/KapiModal.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useMergedRefs as e } from "../../hooks/mergeRefs.js";
|
|
4
|
+
import { useLabels as t } from "../locale/KapiLocaleProvider.js";
|
|
5
5
|
import { slot as n } from "../slotsLogic.js";
|
|
6
6
|
import { prefersReducedMotion as r } from "../../hooks/reducedMotion.js";
|
|
7
7
|
import { dialogNameProps as i, modalClasses as a, resolveDismiss as o } from "./dialogUtils.js";
|
|
@@ -23,7 +23,7 @@ var b = { close: "Cerrar" }, x = ({ open: e, ...t }) => {
|
|
|
23
23
|
closing: i
|
|
24
24
|
}) : null;
|
|
25
25
|
}, S = () => {}, C = ({ title: s, subtitle: x, onClose: C, children: w, footer: T, size: E = "md", hideHeader: D = !1, className: ne = "", classNames: O, style: k, id: A, ref: j, closeOnBackdrop: M, closeOnEscape: N, closeButton: P, dismissible: F, closeLabel: I, labels: L, "aria-label": R, "aria-labelledby": z, growFrom: B, dialogRef: V, closing: H }) => {
|
|
26
|
-
let U = H ? S : C, W = f(), G =
|
|
26
|
+
let U = H ? S : C, W = f(), G = t("modal", b, L), K = I ?? G.close, q = m(null), J = e(q, j), [Y, X] = h(null), Z = o({
|
|
27
27
|
dismissible: F,
|
|
28
28
|
closeOnEscape: N,
|
|
29
29
|
closeOnBackdrop: M,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/KapiOffcanvas.css";
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
|
|
5
|
+
import { useKapiDir as n, useLabels as r } from "../locale/KapiLocaleProvider.js";
|
|
6
|
+
import { computedStyleOf as i, winOf as a } from "../../hooks/ownerDocument.js";
|
|
7
|
+
import { resolveDirection as o } from "../../hooks/directionLogic.js";
|
|
8
8
|
import { maxTransitionMs as ee, resolveDismiss as s } from "./dialogUtils.js";
|
|
9
9
|
import { useExitPresence as c } from "./useExitPresence.js";
|
|
10
10
|
import { useBackdropClose as l, useNativeDialog as u, usePortalRoot as d, useTrappedDialogWarning as f } from "./useNativeDialog.js";
|
|
@@ -21,8 +21,8 @@ var be = 120, T = {
|
|
|
21
21
|
resize: "Redimensionar panel",
|
|
22
22
|
close: "Cerrar",
|
|
23
23
|
closePanel: "Cerrar panel"
|
|
24
|
-
}, E = ({ textDir:
|
|
25
|
-
let N =
|
|
24
|
+
}, E = ({ textDir: n, stackId: o, phase: d, onEntered: m, onExited: h, onClose: ve, title: w, subtitle: E, children: D, footer: O, side: xe, width: k = 520, height: Se, pushRatio: Ce = te, pushOffset: we = 16, closeOnBackdrop: Te, closeOnEscape: Ee, closeButton: De, dismissible: Oe, closeLabel: ke, labels: Ae, className: je, style: Me, id: Ne, ref: Pe, companion: A, resizable: Fe = !1, minWidth: j = 320, maxWidth: M, onResize: Ie }) => {
|
|
25
|
+
let N = r("offcanvas", T, Ae), Le = ke ?? N.close, P = _(), F = _(), I = ae(xe), L = y(null), R = ye(p.subscribe, p.getSnapshot, p.getServerSnapshot), z = ne(R, o), Re = Math.max(0, re(R, o)), { scale: ze, translateX: Be } = oe(I, ie(z, Ce, we)), [B, Ve] = b(() => me(k, 520)), [He, V] = b(!1), H = y(null), U = y(Ie);
|
|
26
26
|
U.current = Ie;
|
|
27
27
|
let W = (e) => {
|
|
28
28
|
Ve(e), e !== B && U.current?.(e);
|
|
@@ -36,26 +36,26 @@ var be = 120, T = {
|
|
|
36
36
|
}, We = (e) => {
|
|
37
37
|
let t = H.current;
|
|
38
38
|
if (!t) return;
|
|
39
|
-
let n = g(M, (
|
|
39
|
+
let n = g(M, (a(L.current) ?? window).innerWidth);
|
|
40
40
|
W(ge(I, t.startWidth, t.startX, e.clientX, j, n));
|
|
41
41
|
}, G = (e) => {
|
|
42
42
|
H.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), V(!1);
|
|
43
43
|
}, Ge = (e) => {
|
|
44
|
-
let t = g(M, (
|
|
44
|
+
let t = g(M, (a(L.current) ?? window).innerWidth), n = he(I, B, e.key, j, t);
|
|
45
45
|
n !== null && (e.preventDefault(), e.stopPropagation(), W(n));
|
|
46
46
|
}, K = d === "open" ? ve : void 0, q = s({
|
|
47
47
|
dismissible: Oe,
|
|
48
48
|
closeOnEscape: Ee,
|
|
49
49
|
closeOnBackdrop: Te,
|
|
50
50
|
closeButton: De
|
|
51
|
-
}), { closeOnEscape: Ke, closeOnBackdrop: qe, closeButton: Je } = q, { ref: J, dialogProps: Ye } = u({ onRequestClose: Ke ? () => K?.("escape") : void 0 }), Xe =
|
|
51
|
+
}), { closeOnEscape: Ke, closeOnBackdrop: qe, closeButton: Je } = q, { ref: J, dialogProps: Ye } = u({ onRequestClose: Ke ? () => K?.("escape") : void 0 }), Xe = t(J, Pe), Ze = l(qe ? () => K?.("backdrop") : void 0);
|
|
52
52
|
f("KapiOffcanvas", q, J), v(() => (p.dispatch({
|
|
53
53
|
type: "add",
|
|
54
|
-
id:
|
|
54
|
+
id: o
|
|
55
55
|
}), () => p.dispatch({
|
|
56
56
|
type: "remove",
|
|
57
|
-
id:
|
|
58
|
-
})), [
|
|
57
|
+
id: o
|
|
58
|
+
})), [o]);
|
|
59
59
|
let Y = y(m);
|
|
60
60
|
Y.current = m, v(() => {
|
|
61
61
|
L.current?.getBoundingClientRect(), Y.current();
|
|
@@ -68,20 +68,20 @@ var be = 120, T = {
|
|
|
68
68
|
X.current();
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
let t =
|
|
71
|
+
let t = i(e), n = ee(t.transitionDuration, t.transitionDelay);
|
|
72
72
|
if (n <= 0) {
|
|
73
73
|
X.current();
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
let
|
|
77
|
-
|
|
76
|
+
let r = !1, a = () => {
|
|
77
|
+
r || (r = !0, X.current());
|
|
78
78
|
}, o = (t) => {
|
|
79
79
|
t.target === e && t.propertyName === "transform" && a();
|
|
80
80
|
};
|
|
81
81
|
e.addEventListener("transitionend", o);
|
|
82
82
|
let s = window.setTimeout(a, n + be);
|
|
83
83
|
return () => {
|
|
84
|
-
|
|
84
|
+
r = !0, e.removeEventListener("transitionend", o), window.clearTimeout(s);
|
|
85
85
|
};
|
|
86
86
|
}, [d]);
|
|
87
87
|
let Z = Fe && (I === "left" || I === "right"), Q = ce(I, k, Se, "520px");
|
|
@@ -93,7 +93,7 @@ var be = 120, T = {
|
|
|
93
93
|
"--kapi-offc-push-s": ze
|
|
94
94
|
}, $e = ue(I, A), et = y(null), { present: tt, closing: nt } = c($e, et), rt = y(A);
|
|
95
95
|
A && (rt.current = A);
|
|
96
|
-
let $ = A ?? rt.current, it = tt && pe(I) && $ !== void 0, at =
|
|
96
|
+
let $ = A ?? rt.current, it = tt && pe(I) && $ !== void 0, at = n === "rtl", ot = at ? { dir: "rtl" } : {}, st = /* @__PURE__ */ S("div", {
|
|
97
97
|
ref: L,
|
|
98
98
|
className: "kapi-offc__panel",
|
|
99
99
|
...ot,
|
|
@@ -201,25 +201,25 @@ var be = 120, T = {
|
|
|
201
201
|
children: lt
|
|
202
202
|
})
|
|
203
203
|
});
|
|
204
|
-
}, D = ({ open: e, onExited:
|
|
205
|
-
let
|
|
206
|
-
l.current =
|
|
204
|
+
}, D = ({ open: e, onExited: t, side: r, ...i }) => {
|
|
205
|
+
let a = _(), ee = n(), [s, c] = ve(m, "unmounted"), l = y(t);
|
|
206
|
+
l.current = t, v(() => {
|
|
207
207
|
c(e ? "open" : "close");
|
|
208
208
|
}, [e]), v(() => {
|
|
209
209
|
(s === "exit" || s === "open") && p.dispatch({
|
|
210
210
|
type: "mark",
|
|
211
|
-
id:
|
|
211
|
+
id: a,
|
|
212
212
|
state: s === "exit" ? "closing" : "open"
|
|
213
213
|
});
|
|
214
|
-
}, [s,
|
|
214
|
+
}, [s, a]);
|
|
215
215
|
let u = d();
|
|
216
216
|
if (s === "unmounted" || !u) return null;
|
|
217
|
-
let f =
|
|
217
|
+
let f = o(u, ee);
|
|
218
218
|
return w(/* @__PURE__ */ x(E, {
|
|
219
219
|
...i,
|
|
220
220
|
textDir: f,
|
|
221
221
|
side: h(r, f),
|
|
222
|
-
stackId:
|
|
222
|
+
stackId: a,
|
|
223
223
|
phase: s,
|
|
224
224
|
onEntered: () => c("entered"),
|
|
225
225
|
onExited: () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/overlays.css";
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
|
|
5
|
+
import { useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
6
|
+
import { computedStyleOf as r } from "../../hooks/ownerDocument.js";
|
|
7
|
+
import { resolveKapiRoot as i } from "../../hooks/kapiRoot.js";
|
|
8
|
+
import { onViewportChange as a } from "../../hooks/rafThrottle.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { KapiOverlayPortal as o } from "./overlayPortal.js";
|
|
11
11
|
import { prefersReducedMotion as s } from "../../hooks/reducedMotion.js";
|
|
@@ -44,14 +44,14 @@ var _ = { viewer: "Foto ampliada" }, v = 92, y = 24, b = .42, x = (e, t) => {
|
|
|
44
44
|
fontSize: t.height * b
|
|
45
45
|
} : {};
|
|
46
46
|
}, E = ({ children: v, content: y, bg: b = "var(--kapi-primary-soft)", ink: E = "var(--kapi-primary-ink)", label: D, labels: O, className: k, style: A, id: j, ref: M }) => {
|
|
47
|
-
let N =
|
|
47
|
+
let N = n("photoView", _, O), P = f(null), F = t(P, M), I = f(null), L = f(!1), [R, z] = d(x, "closed"), [B, V] = p(null), [H, U] = p(999), [W, G] = p(null), K = (e) => {
|
|
48
48
|
e.stopPropagation();
|
|
49
49
|
let t = P.current;
|
|
50
50
|
if (!t) return;
|
|
51
|
-
let
|
|
52
|
-
V(
|
|
51
|
+
let n = t.getBoundingClientRect();
|
|
52
|
+
V(n);
|
|
53
53
|
let a = t.firstElementChild ?? t;
|
|
54
|
-
U(C(
|
|
54
|
+
U(C(r(a).borderRadius, n)), G(i(t)), z("open");
|
|
55
55
|
}, q = (e) => {
|
|
56
56
|
e.stopPropagation(), z("close");
|
|
57
57
|
};
|
|
@@ -62,7 +62,7 @@ var _ = { viewer: "Foto ampliada" }, v = 92, y = 24, b = .42, x = (e, t) => {
|
|
|
62
62
|
}, [R]);
|
|
63
63
|
let J = R === "closed";
|
|
64
64
|
l(() => {
|
|
65
|
-
if (!J) return
|
|
65
|
+
if (!J) return a(() => {
|
|
66
66
|
let e = P.current;
|
|
67
67
|
if (!e) return;
|
|
68
68
|
let t = e.getBoundingClientRect();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/KapiPopover.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { useMergedRefs as e } from "../../hooks/mergeRefs.js";
|
|
4
|
+
import { resolveKapiRoot as t } from "../../hooks/kapiRoot.js";
|
|
5
|
+
import { usePlacement as n } from "../../hooks/usePlacement.js";
|
|
6
6
|
import { useDismiss as r } from "../../hooks/useDismiss.js";
|
|
7
7
|
import { KapiOverlayPortal as i } from "./overlayPortal.js";
|
|
8
8
|
import { useExitPresence as a } from "./useExitPresence.js";
|
|
@@ -11,11 +11,11 @@ import { useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
|
11
11
|
import { jsx as l } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/overlays/KapiPopover.tsx
|
|
13
13
|
function u({ open: u, anchorRef: d, onClose: f, side: p = "bottom", align: m = "start", offset: h = 6, margin: g = 8, matchAnchorWidth: _ = !1, role: v = "dialog", "aria-label": y, id: b, className: x = "", style: S, ref: C, closeOnEscape: w = !0, closeOnOutside: T = !0, restoreFocus: E = !0, children: D }) {
|
|
14
|
-
let O = s(null), k =
|
|
14
|
+
let O = s(null), k = e(O, C), [A, j] = c(null), { present: M, closing: N } = a(u, O);
|
|
15
15
|
o(() => {
|
|
16
|
-
j(M ?
|
|
16
|
+
j(M ? t(d.current) : null);
|
|
17
17
|
}, [M, d]);
|
|
18
|
-
let { placement: P, style: F } =
|
|
18
|
+
let { placement: P, style: F } = n({
|
|
19
19
|
open: M,
|
|
20
20
|
enabled: !!A,
|
|
21
21
|
anchor: d,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/overlays.css";
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
|
|
5
|
+
import { useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
6
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
7
7
|
import { useDismiss as i } from "../../hooks/useDismiss.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { focusableWithin as a } from "../../hooks/focusLogic.js";
|
|
@@ -15,7 +15,7 @@ var p = {
|
|
|
15
15
|
close: "Cerrar",
|
|
16
16
|
open: "Abrir"
|
|
17
17
|
}, m = ({ title: m, children: h, width: g = 300, height: _ = 250, label: v, labels: y, className: b, style: x, id: S, ref: C, open: w, defaultOpen: T = !1, onOpenChange: E }) => {
|
|
18
|
-
let D =
|
|
18
|
+
let D = n("shapeSheet", p, y), O = c(null), k = t(O, C), A = c(null), j = c(null), M = c(null), N = s(), [P, F] = r(w, T, E), I = c(P);
|
|
19
19
|
I.current = P;
|
|
20
20
|
let L = (e) => {
|
|
21
21
|
e !== I.current && F(e);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/overlays/overlays.css";
|
|
3
3
|
import { joinClasses as e } from "../rootProps.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useMergedRefs as t } from "../../hooks/mergeRefs.js";
|
|
5
5
|
import { useKapiDir as n } from "../locale/KapiLocaleProvider.js";
|
|
6
6
|
import { winOf as r } from "../../hooks/ownerDocument.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { joinIds as i } from "../inputs/fieldLogic.js";
|
|
8
|
+
import { placePopover as a } from "./popoverLogic.js";
|
|
9
|
+
import { onViewportChange as o } from "../../hooks/rafThrottle.js";
|
|
10
|
+
import { placementViewport as s } from "../../hooks/viewportInsetLogic.js";
|
|
11
|
+
import { resolveDirection as c } from "../../hooks/directionLogic.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { cloneElement as l, isValidElement as u, useEffect as d, useId as f, useLayoutEffect as p, useRef as m, useState as h } from "react";
|
|
14
14
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/overlays/KapiTooltip.tsx
|
|
16
|
-
var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "rtl" ? "left" : "right" : e === "start" ? t === "rtl" ? "right" : "left" : e, w = (e) => Math.min(v, String(e).length * y + b), T = (e, t, n, r,
|
|
16
|
+
var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "rtl" ? "left" : "right" : e === "start" ? t === "rtl" ? "right" : "left" : e, w = (e) => Math.min(v, String(e).length * y + b), T = (e, t, n, r, i = Infinity) => {
|
|
17
17
|
let o = t.bottom ?? t.top, s = t.left ?? t.right, c = {
|
|
18
18
|
top: t.top,
|
|
19
19
|
bottom: o,
|
|
@@ -22,12 +22,12 @@ var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "r
|
|
|
22
22
|
width: t.right - s,
|
|
23
23
|
height: o - t.top
|
|
24
24
|
}, l = e === "top" || e === "bottom";
|
|
25
|
-
return
|
|
25
|
+
return a(c, {
|
|
26
26
|
width: w(n),
|
|
27
27
|
height: S
|
|
28
28
|
}, {
|
|
29
29
|
width: r,
|
|
30
|
-
height:
|
|
30
|
+
height: i
|
|
31
31
|
}, {
|
|
32
32
|
side: e,
|
|
33
33
|
offset: l ? 0 : x,
|
|
@@ -40,7 +40,7 @@ var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "r
|
|
|
40
40
|
shift: !1,
|
|
41
41
|
mainMin: -Infinity
|
|
42
42
|
}, k = (e, t) => {
|
|
43
|
-
let n = e === "top" || e === "bottom", { top: r, left:
|
|
43
|
+
let n = e === "top" || e === "bottom", { top: r, left: i } = a({
|
|
44
44
|
top: t.top,
|
|
45
45
|
bottom: t.bottom,
|
|
46
46
|
left: t.left,
|
|
@@ -59,7 +59,7 @@ var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "r
|
|
|
59
59
|
offset: n ? D : E
|
|
60
60
|
});
|
|
61
61
|
return {
|
|
62
|
-
x:
|
|
62
|
+
x: i,
|
|
63
63
|
y: r
|
|
64
64
|
};
|
|
65
65
|
}, A = (e, t) => {
|
|
@@ -68,15 +68,15 @@ var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "r
|
|
|
68
68
|
} catch {
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
|
-
}, j = (e,
|
|
72
|
-
let w = f(), E = m(null), D =
|
|
71
|
+
}, j = (e, t) => i(typeof e == "string" ? e : void 0, t), M = ({ label: i, children: a, prefer: v = "end", className: y, style: b, id: x, ref: S }) => {
|
|
72
|
+
let w = f(), E = m(null), D = t(E, S), O = n(), [M, N] = h(() => C(v, c(null, O))), [P, F] = h(!1), [I, L] = h(!1), R = m({
|
|
73
73
|
hover: !1,
|
|
74
74
|
focus: !1
|
|
75
75
|
}), z = () => {
|
|
76
76
|
let e = E.current;
|
|
77
77
|
if (!e) return;
|
|
78
|
-
let
|
|
79
|
-
e.style.setProperty("--kapi-tip-x", `${Math.round(a)}px`), e.style.setProperty("--kapi-tip-y", `${Math.round(
|
|
78
|
+
let t = e.getBoundingClientRect(), n = s(e), r = T(C(v, c(e, O)), t, i, n.width, n.height), { x: a, y: o } = k(r, t);
|
|
79
|
+
e.style.setProperty("--kapi-tip-x", `${Math.round(a)}px`), e.style.setProperty("--kapi-tip-y", `${Math.round(o)}px`), N(r);
|
|
80
80
|
}, B = m(z);
|
|
81
81
|
p(() => {
|
|
82
82
|
B.current = z;
|
|
@@ -94,11 +94,11 @@ var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "r
|
|
|
94
94
|
d(() => {
|
|
95
95
|
if (!I) return;
|
|
96
96
|
let e = r(E.current);
|
|
97
|
-
return
|
|
97
|
+
return o(() => B.current(), e ? { target: e } : {});
|
|
98
98
|
}, [I]);
|
|
99
99
|
let K = (e) => {
|
|
100
100
|
e.key === "Escape" && !P && F(!0);
|
|
101
|
-
}, q = u(
|
|
101
|
+
}, q = u(a) ? a : null, J = q ? l(q, { "aria-describedby": j(q.props["aria-describedby"], w) }) : a;
|
|
102
102
|
return /* @__PURE__ */ _("span", {
|
|
103
103
|
id: x,
|
|
104
104
|
className: e("kapi-tip", y),
|
|
@@ -120,7 +120,7 @@ var v = 280, y = 7, b = 28, x = 12, S = 44, C = (e, t) => e === "end" ? t === "r
|
|
|
120
120
|
role: "tooltip",
|
|
121
121
|
id: w,
|
|
122
122
|
popover: "manual",
|
|
123
|
-
children:
|
|
123
|
+
children: i
|
|
124
124
|
})]
|
|
125
125
|
});
|
|
126
126
|
};
|
|
@@ -3,8 +3,8 @@ import { joinClasses as e } from "../rootProps.js";
|
|
|
3
3
|
import { renderSlot as t } from "../renderSlot.js";
|
|
4
4
|
import { resolveMenuItemTone as n } from "../tone.js";
|
|
5
5
|
import { useLabels as r } from "../locale/KapiLocaleProvider.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { activeElementOf as i } from "../../hooks/ownerDocument.js";
|
|
7
|
+
import { initialMenuFocus as a, isTypeaheadKey as o, menuKeyIntent as s, nextEnabledIndex as c } from "./menuKeyboardLogic.js";
|
|
8
8
|
import { logicalKeyOf as l } from "../../hooks/directionLogic.js";
|
|
9
9
|
import { usePlacement as u } from "../../hooks/usePlacement.js";
|
|
10
10
|
import { useTypeahead as d } from "../../hooks/useTypeahead.js";
|
|
@@ -20,38 +20,38 @@ var O = {
|
|
|
20
20
|
flip: "auto",
|
|
21
21
|
shift: !0
|
|
22
22
|
}, k = (t) => e("kapi-ctxmenu__item", n(t.tone, t.danger) === "danger" && "is-danger", t.disabled && "is-disabled", t.current && "is-current"), A = (e) => {
|
|
23
|
-
let t = b([]), n = b(null), r = b(void 0), [
|
|
23
|
+
let t = b([]), n = b(null), r = b(void 0), [a, o] = x(null);
|
|
24
24
|
v(() => () => clearTimeout(r.current), []);
|
|
25
|
-
let
|
|
25
|
+
let s = (e) => t.current[e]?.focus(), c = (e, t) => o((n) => ({
|
|
26
26
|
index: e,
|
|
27
27
|
focus: t ? (n?.focus ?? 0) + 1 : n?.index === e ? n.focus : 0
|
|
28
28
|
})), l = () => {
|
|
29
|
-
|
|
29
|
+
a !== null && (n.current?.contains(i(n.current)) && s(a.index), o(null));
|
|
30
30
|
}, u = (t) => {
|
|
31
31
|
let n = e[t];
|
|
32
32
|
return n !== void 0 && p(n) && !n.disabled && (n.items?.length ?? 0) > 0;
|
|
33
33
|
}, d = (e) => {
|
|
34
|
-
clearTimeout(r.current),
|
|
35
|
-
u(e) ?
|
|
34
|
+
clearTimeout(r.current), a?.index !== e && (r.current = setTimeout(() => {
|
|
35
|
+
u(e) ? c(e, !1) : l();
|
|
36
36
|
}, 200));
|
|
37
37
|
}, f = () => clearTimeout(r.current);
|
|
38
38
|
return {
|
|
39
39
|
itemEls: t,
|
|
40
|
-
focusItem:
|
|
41
|
-
sub:
|
|
42
|
-
openSub:
|
|
40
|
+
focusItem: s,
|
|
41
|
+
sub: a,
|
|
42
|
+
openSub: c,
|
|
43
43
|
closeSub: l,
|
|
44
44
|
hasSubmenu: u,
|
|
45
45
|
entryProps: (e) => ({
|
|
46
46
|
itemRef: (n) => {
|
|
47
47
|
t.current[e] = n;
|
|
48
48
|
},
|
|
49
|
-
subOpen:
|
|
50
|
-
subFocus:
|
|
49
|
+
subOpen: a?.index === e && u(e),
|
|
50
|
+
subFocus: a?.index === e ? a.focus : 0,
|
|
51
51
|
subRef: n,
|
|
52
|
-
onToggleSub: () =>
|
|
52
|
+
onToggleSub: () => a?.index === e ? l() : c(e, !0),
|
|
53
53
|
onBackFromSub: () => {
|
|
54
|
-
|
|
54
|
+
o(null), s(e);
|
|
55
55
|
},
|
|
56
56
|
onEnter: () => d(e),
|
|
57
57
|
onLeave: f
|
|
@@ -60,7 +60,7 @@ var O = {
|
|
|
60
60
|
}, j = ({ items: e, onActivate: t, onClose: n, focusRequest: u, onBack: p, onKeyDown: h, ref: y, id: b, className: x, style: S, "aria-label": w, "aria-labelledby": T }) => {
|
|
61
61
|
let E = r("link", _), D = d(500), O = A(e), { itemEls: k, focusItem: j, openSub: N, hasSubmenu: P } = O, F = f(e), I = p !== void 0;
|
|
62
62
|
return v(() => {
|
|
63
|
-
u > 0 && j(
|
|
63
|
+
u > 0 && j(a(F));
|
|
64
64
|
}, [u]), /* @__PURE__ */ C("div", {
|
|
65
65
|
ref: y,
|
|
66
66
|
id: b,
|
|
@@ -70,25 +70,25 @@ var O = {
|
|
|
70
70
|
"aria-label": w,
|
|
71
71
|
"aria-labelledby": T,
|
|
72
72
|
onKeyDown: (t) => {
|
|
73
|
-
let r =
|
|
73
|
+
let r = i(t.currentTarget), a = k.current.findIndex((e) => e !== null && e === r), u = () => {
|
|
74
74
|
t.preventDefault(), I && t.stopPropagation();
|
|
75
|
-
}, d =
|
|
75
|
+
}, d = s(t.key);
|
|
76
76
|
if (d.kind === "move") {
|
|
77
|
-
u(), j(
|
|
77
|
+
u(), j(c(a, d.dir, F));
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
let f = g(l(t), {
|
|
81
|
-
hasSubmenu:
|
|
81
|
+
hasSubmenu: a >= 0 && P(a),
|
|
82
82
|
nested: I
|
|
83
83
|
});
|
|
84
|
-
if (f === "open") u(), N(
|
|
84
|
+
if (f === "open") u(), N(a, !0);
|
|
85
85
|
else if (f === "back") u(), p?.();
|
|
86
86
|
else if (d.kind === "close") {
|
|
87
87
|
if (I) return;
|
|
88
88
|
if (d.returnFocus) return h?.(t);
|
|
89
89
|
n(!1);
|
|
90
|
-
} else if (
|
|
91
|
-
let n = m(e,
|
|
90
|
+
} else if (o(t.key) && !t.ctrlKey && !t.metaKey && !t.altKey) {
|
|
91
|
+
let n = m(e, a, D(t.key));
|
|
92
92
|
n >= 0 && (u(), j(n));
|
|
93
93
|
}
|
|
94
94
|
},
|
|
@@ -8,6 +8,39 @@ export declare const KAPI_SLOTS: {
|
|
|
8
8
|
readonly body: "kapi-card__body";
|
|
9
9
|
readonly footer: "kapi-card__foot";
|
|
10
10
|
};
|
|
11
|
+
codeBlock: {
|
|
12
|
+
readonly root: "kapi-codeblock";
|
|
13
|
+
readonly bar: "kapi-codeblock__bar";
|
|
14
|
+
readonly title: "kapi-codeblock__title";
|
|
15
|
+
readonly copy: null;
|
|
16
|
+
readonly pre: "kapi-codeblock__pre";
|
|
17
|
+
readonly numbers: "kapi-codeblock__nums";
|
|
18
|
+
readonly code: "kapi-codeblock__code";
|
|
19
|
+
};
|
|
20
|
+
diff: {
|
|
21
|
+
readonly root: "kapi-diff";
|
|
22
|
+
readonly bar: "kapi-diff__bar";
|
|
23
|
+
readonly empty: "kapi-diff__empty";
|
|
24
|
+
readonly body: "kapi-diff__body";
|
|
25
|
+
readonly hunk: null;
|
|
26
|
+
readonly skip: "kapi-diff__skip";
|
|
27
|
+
readonly row: "kapi-diff__row";
|
|
28
|
+
readonly cell: "kapi-diff__cell";
|
|
29
|
+
readonly number: "kapi-diff__num";
|
|
30
|
+
readonly sign: "kapi-diff__sign";
|
|
31
|
+
readonly text: "kapi-diff__text";
|
|
32
|
+
};
|
|
33
|
+
highlight: {
|
|
34
|
+
readonly root: null;
|
|
35
|
+
readonly hit: "kapi-highlight__hit";
|
|
36
|
+
};
|
|
37
|
+
toc: {
|
|
38
|
+
readonly root: null;
|
|
39
|
+
readonly heading: "kapi-toc__heading";
|
|
40
|
+
readonly list: "kapi-toc__list";
|
|
41
|
+
readonly item: "kapi-toc__item";
|
|
42
|
+
readonly link: "kapi-toc__link";
|
|
43
|
+
};
|
|
11
44
|
modal: {
|
|
12
45
|
readonly overlay: "kapi-modal-overlay";
|
|
13
46
|
readonly root: "kapi-modal";
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { SELECT_SLOTS as e } from "./inputs/selectSlots.js";
|
|
2
2
|
import { MODAL_SLOTS as t } from "./overlays/modalSlots.js";
|
|
3
3
|
import { TABLE_SLOTS as n } from "./data/tableSlots.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { HIGHLIGHT_SLOTS as r } from "./display/highlightSlots.js";
|
|
5
|
+
import { CODE_BLOCK_SLOTS as i } from "./display/codeBlockSlots.js";
|
|
6
|
+
import { DIFF_SLOTS as a } from "./display/diffSlots.js";
|
|
7
|
+
import { TOC_SLOTS as o } from "./navigation/tocSlots.js";
|
|
8
|
+
import { SHELL_SLOTS as s } from "./layout/shellSlots.js";
|
|
9
|
+
import { RAIL_SLOTS as c } from "./layout/railSlots.js";
|
|
10
|
+
import { CARD_SLOTS as l } from "./layout/cardSlots.js";
|
|
11
|
+
import { PAGEHEADER_SLOTS as u } from "./layout/pageHeaderSlots.js";
|
|
8
12
|
//#region src/components/slotCatalog.ts
|
|
9
|
-
var
|
|
10
|
-
card:
|
|
13
|
+
var d = {
|
|
14
|
+
card: l.parts,
|
|
15
|
+
codeBlock: i.parts,
|
|
16
|
+
diff: a.parts,
|
|
17
|
+
highlight: r.parts,
|
|
18
|
+
toc: o.parts,
|
|
11
19
|
modal: t.parts,
|
|
12
20
|
table: n.parts,
|
|
13
21
|
select: e.parts,
|
|
14
|
-
shell:
|
|
15
|
-
rail:
|
|
16
|
-
pageheader:
|
|
22
|
+
shell: s.parts,
|
|
23
|
+
rail: c.parts,
|
|
24
|
+
pageheader: u.parts
|
|
17
25
|
};
|
|
18
26
|
//#endregion
|
|
19
|
-
export {
|
|
27
|
+
export { d as KAPI_SLOTS };
|