@kapiuara/ui 0.16.0 → 0.18.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 +430 -20
- 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/KapiScatterChart.d.ts +56 -0
- package/dist/components/data/KapiScatterChart.js +90 -0
- 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/chartFrame.d.ts +20 -2
- package/dist/components/data/chartFrame.js +33 -24
- package/dist/components/data/index.d.ts +4 -0
- package/dist/components/data/scatterLogic.d.ts +56 -0
- package/dist/components/data/scatterLogic.js +43 -0
- 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/KapiAvatarGroup.d.ts +14 -2
- package/dist/components/display/KapiAvatarGroup.js +25 -23
- 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 +19 -2
- package/dist/components/display/KapiTimeline.js +38 -23
- package/dist/components/display/annotationLogic.d.ts +2 -1
- package/dist/components/display/annotationLogic.js +7 -6
- package/dist/components/display/avatarGroupSlots.d.ts +6 -0
- package/dist/components/display/avatarGroupSlots.js +9 -0
- 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 +9 -1
- 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/KapiAlert.d.ts +6 -1
- package/dist/components/feedback/KapiAlert.js +45 -44
- package/dist/components/feedback/KapiCountdown.d.ts +12 -1
- package/dist/components/feedback/KapiCountdown.js +34 -31
- package/dist/components/feedback/KapiEmpty.d.ts +6 -1
- package/dist/components/feedback/KapiEmpty.js +20 -18
- package/dist/components/feedback/KapiFab.js +108 -108
- package/dist/components/feedback/KapiProgress.js +63 -54
- package/dist/components/feedback/KapiSpinner.d.ts +48 -0
- package/dist/components/feedback/KapiSpinner.js +27 -0
- package/dist/components/feedback/KapiToastContainer.js +10 -10
- package/dist/components/feedback/KapiTour.js +13 -13
- package/dist/components/feedback/alertSlots.d.ts +9 -0
- package/dist/components/feedback/alertSlots.js +12 -0
- package/dist/components/feedback/countdownSlots.d.ts +6 -0
- package/dist/components/feedback/countdownSlots.js +9 -0
- package/dist/components/feedback/emptySlots.d.ts +8 -0
- package/dist/components/feedback/emptySlots.js +11 -0
- package/dist/components/feedback/index.d.ts +5 -3
- 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.d.ts +14 -1
- package/dist/components/inputs/KapiFileUpload.js +83 -70
- 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/formBridgeLogic.d.ts +104 -0
- package/dist/components/inputs/formBridgeLogic.js +25 -0
- package/dist/components/inputs/index.d.ts +10 -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 +18 -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/KapiSteps.d.ts +26 -5
- package/dist/components/navigation/KapiSteps.js +55 -43
- 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/KapiImageViewer.d.ts +63 -0
- package/dist/components/overlays/KapiImageViewer.js +106 -0
- 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/KapiShortcutsHelp.d.ts +53 -0
- package/dist/components/overlays/KapiShortcutsHelp.js +55 -0
- package/dist/components/overlays/KapiTooltip.d.ts +49 -10
- package/dist/components/overlays/KapiTooltip.js +120 -68
- package/dist/components/overlays/KapiViewport.d.ts +63 -0
- package/dist/components/overlays/KapiViewport.js +195 -0
- package/dist/components/overlays/index.d.ts +8 -0
- package/dist/components/overlays/menuList.js +22 -22
- package/dist/components/overlays/shortcutsHelpSlots.d.ts +9 -0
- package/dist/components/overlays/shortcutsHelpSlots.js +12 -0
- package/dist/components/overlays/viewportLogic.d.ts +73 -0
- package/dist/components/overlays/viewportLogic.js +54 -0
- package/dist/components/slotCatalog.d.ts +66 -0
- package/dist/components/slotCatalog.js +30 -12
- package/dist/css/base.css +1 -1
- package/dist/css/components/data/KapiScatterChart.css +1 -0
- 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/KapiFileUpload.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/KapiSteps.css +1 -1
- package/dist/css/components/navigation/KapiToc.css +1 -0
- package/dist/css/components/overlays/KapiViewport.css +1 -0
- package/dist/css/components/overlays/overlays.css +1 -1
- package/dist/hooks/asyncResourceLogic.d.ts +11 -0
- package/dist/hooks/asyncResourceLogic.js +4 -0
- package/dist/hooks/elementSizeLogic.d.ts +15 -0
- package/dist/hooks/elementSizeLogic.js +7 -0
- package/dist/hooks/hotkeyLogic.d.ts +9 -0
- package/dist/hooks/hotkeyLogic.js +16 -15
- package/dist/hooks/hotkeyRegistry.d.ts +44 -0
- package/dist/hooks/hotkeyRegistry.js +32 -0
- package/dist/hooks/index.d.ts +13 -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/useDebouncedValue.d.ts +30 -0
- package/dist/hooks/useDebouncedValue.js +26 -0
- package/dist/hooks/useDisclosure.d.ts +39 -0
- package/dist/hooks/useDisclosure.js +35 -0
- package/dist/hooks/useElementSize.d.ts +27 -0
- package/dist/hooks/useElementSize.js +29 -0
- package/dist/hooks/useHotkey.d.ts +8 -0
- package/dist/hooks/useHotkey.js +27 -15
- 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 +234 -207
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/dist/logic.d.ts +45 -0
- package/dist/logic.js +46 -0
- package/package.json +13 -2
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/feedback/feedback.css";
|
|
3
3
|
import { useToneLook as e } from "../../hooks/useToneFamilies.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { resolveTone as t } from "../tone.js";
|
|
5
|
+
import { KapiButton as n } from "../inputs/KapiButton.js";
|
|
6
|
+
import { useLabels as r } from "../locale/KapiLocaleProvider.js";
|
|
7
|
+
import { slot as i } from "../slotsLogic.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { ALERT_SLOTS as a } from "./alertSlots.js";
|
|
10
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
11
|
+
import { AlertTriangle as c, CheckCircle2 as l, Info as u, X as d, XCircle as f } from "lucide-react";
|
|
11
12
|
//#region src/components/feedback/KapiAlert.tsx
|
|
12
|
-
var
|
|
13
|
+
var p = { close: "Cerrar aviso" }, m = (e, t) => {
|
|
13
14
|
let n = t ?? (e === "danger" ? "alert" : "status");
|
|
14
15
|
return n === "none" ? void 0 : n;
|
|
15
|
-
},
|
|
16
|
+
}, h = {
|
|
16
17
|
info: {
|
|
17
|
-
Icon:
|
|
18
|
+
Icon: u,
|
|
18
19
|
color: "var(--kapi-info)"
|
|
19
20
|
},
|
|
20
21
|
success: {
|
|
21
|
-
Icon:
|
|
22
|
+
Icon: l,
|
|
22
23
|
color: "var(--kapi-success)"
|
|
23
24
|
},
|
|
24
25
|
warning: {
|
|
25
|
-
Icon:
|
|
26
|
+
Icon: c,
|
|
26
27
|
color: "var(--kapi-warning)"
|
|
27
28
|
},
|
|
28
29
|
danger: {
|
|
29
|
-
Icon:
|
|
30
|
+
Icon: f,
|
|
30
31
|
color: "var(--kapi-danger)"
|
|
31
32
|
}
|
|
32
|
-
},
|
|
33
|
-
let
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
...
|
|
36
|
-
style:
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
} :
|
|
40
|
-
|
|
41
|
-
role:
|
|
33
|
+
}, g = ({ tone: c, variant: l, title: u, children: f, action: g, icon: _, onClose: v, labels: y, className: b, classNames: x, role: S, style: C, ...w }) => {
|
|
34
|
+
let T = r("alert", p, y), E = e("KapiAlert", c), D = t(E.tone, l, "info"), O = D in h ? D : "info", { Icon: k } = h[O], A = E.style ? "var(--kapi-tone)" : h[O].color;
|
|
35
|
+
return /* @__PURE__ */ s("div", {
|
|
36
|
+
...w,
|
|
37
|
+
style: E.style ? {
|
|
38
|
+
...E.style,
|
|
39
|
+
...C
|
|
40
|
+
} : C,
|
|
41
|
+
...i(a, "root", x, E.style ? "kapi-alert--family" : `kapi-alert--${O}`, b),
|
|
42
|
+
role: m(O, S),
|
|
42
43
|
children: [
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
_ === void 0 ? /* @__PURE__ */ o(k, {
|
|
45
|
+
...i(a, "icon", x),
|
|
45
46
|
size: 19,
|
|
46
47
|
strokeWidth: 2,
|
|
47
|
-
color:
|
|
48
|
-
}) :
|
|
49
|
-
|
|
50
|
-
style: { color:
|
|
48
|
+
color: A
|
|
49
|
+
}) : _ === !1 || _ === null ? null : /* @__PURE__ */ o("span", {
|
|
50
|
+
...i(a, "icon", x, "kapi-alert__ico--custom"),
|
|
51
|
+
style: { color: A },
|
|
51
52
|
"aria-hidden": "true",
|
|
52
|
-
children:
|
|
53
|
+
children: _
|
|
53
54
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
children: [
|
|
57
|
-
|
|
58
|
-
children:
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
children:
|
|
55
|
+
/* @__PURE__ */ s("div", {
|
|
56
|
+
...i(a, "body", x),
|
|
57
|
+
children: [u && /* @__PURE__ */ o("div", {
|
|
58
|
+
...i(a, "title", x),
|
|
59
|
+
children: u
|
|
60
|
+
}), f && /* @__PURE__ */ o("div", {
|
|
61
|
+
...i(a, "message", x),
|
|
62
|
+
children: f
|
|
62
63
|
})]
|
|
63
64
|
}),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
g,
|
|
66
|
+
v && /* @__PURE__ */ o(n, {
|
|
67
|
+
...i(a, "close", x),
|
|
67
68
|
variant: "ghost",
|
|
68
69
|
size: "sm",
|
|
69
70
|
iconOnly: !0,
|
|
70
|
-
icon: /* @__PURE__ */
|
|
71
|
+
icon: /* @__PURE__ */ o(d, {
|
|
71
72
|
size: 16,
|
|
72
73
|
strokeWidth: 2.2,
|
|
73
74
|
"aria-hidden": "true"
|
|
74
75
|
}),
|
|
75
|
-
"aria-label":
|
|
76
|
-
onClick: () =>
|
|
76
|
+
"aria-label": T.close,
|
|
77
|
+
onClick: () => v?.("close-button")
|
|
77
78
|
})
|
|
78
79
|
]
|
|
79
80
|
});
|
|
80
81
|
};
|
|
81
82
|
//#endregion
|
|
82
|
-
export {
|
|
83
|
+
export { p as DEFAULT_ALERT_LABELS, g as KapiAlert, m as alertRole };
|
|
@@ -2,10 +2,15 @@ import { type HTMLAttributes, type ReactNode, type Ref } from "react";
|
|
|
2
2
|
import { type KapiBadgeAppearance, type KapiBadgeSize } from "../display/KapiBadge.js";
|
|
3
3
|
import { type KapiCountdownLabels, type KapiCountdownTarget, type KapiCountdownToneMap } from "./countdownLogic.js";
|
|
4
4
|
import type { KapiLabelsOverride } from "../labelsLogic.js";
|
|
5
|
+
import type { KapiClassNames } from "../slotCatalog.js";
|
|
6
|
+
/** Partes de `KapiCountdown` que acepta `classNames` (`root`, `prefix`, `time`). */
|
|
7
|
+
export type KapiCountdownClassNames = KapiClassNames<"countdown">;
|
|
5
8
|
/** Native attributes (`id`, `style`, `data-*`…) go to the chip; `role="timer"` and its label (from `detail`) are owned. */
|
|
6
9
|
export type KapiCountdownProps = Omit<HTMLAttributes<HTMLSpanElement>, "prefix" | "children" | "role" | "aria-label"> & {
|
|
7
10
|
/** Ref al `<span>` raíz de la cuenta regresiva. */
|
|
8
11
|
ref?: Ref<HTMLSpanElement> | undefined;
|
|
12
|
+
/** Clases por parte (`root`, `prefix`, `time`). Se suman a las propias. */
|
|
13
|
+
classNames?: KapiCountdownClassNames | undefined;
|
|
9
14
|
/** Deadline: Date, ISO string or epoch milliseconds. */
|
|
10
15
|
to: KapiCountdownTarget;
|
|
11
16
|
/** Text before the clock while running (e.g. "Cierra en"). Hidden once overdue. */
|
|
@@ -16,6 +21,12 @@ export type KapiCountdownProps = Omit<HTMLAttributes<HTMLSpanElement>, "prefix"
|
|
|
16
21
|
nearThresholdMs?: number | undefined;
|
|
17
22
|
/** Tooltip text. Defaults to a sentence like "Faltan 2 horas". */
|
|
18
23
|
detail?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Fija el "ahora" en lugar de leer el reloj, y **apaga el tick**. Es la misma convención que el
|
|
26
|
+
* resto de lo que muestra tiempo relativo en el sistema: sin esto, un test y una captura miden
|
|
27
|
+
* algo distinto en cada corrida y la baseline se mueve sola.
|
|
28
|
+
*/
|
|
29
|
+
now?: number | undefined;
|
|
19
30
|
/** Override the Spanish copy (unit words keyed by `Intl.PluralRules` category). */
|
|
20
31
|
labels?: KapiLabelsOverride<KapiCountdownLabels> | undefined;
|
|
21
32
|
/** Tamaño del badge: `sm` · `md`. */
|
|
@@ -26,4 +37,4 @@ export type KapiCountdownProps = Omit<HTMLAttributes<HTMLSpanElement>, "prefix"
|
|
|
26
37
|
badgeTone?: KapiBadgeAppearance | undefined;
|
|
27
38
|
};
|
|
28
39
|
/** Live countdown chip: ticks every second and changes color as the deadline approaches. */
|
|
29
|
-
export declare function KapiCountdown({ to, prefix, tones, nearThresholdMs, detail, labels, size, badgeVariant, badgeTone, className, ...rest }: KapiCountdownProps): import("react").JSX.Element | null;
|
|
40
|
+
export declare function KapiCountdown({ to, prefix, tones, nearThresholdMs, detail, now: nowProp, labels, size, badgeVariant, badgeTone, className, classNames, ...rest }: KapiCountdownProps): import("react").JSX.Element | null;
|
|
@@ -1,44 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/feedback/feedback.css";
|
|
3
3
|
import { useKapiLocale as e, useLabels as t } from "../locale/KapiLocaleProvider.js";
|
|
4
|
-
import {
|
|
5
|
-
import { KapiBadge as r } from "../display/KapiBadge.js";
|
|
4
|
+
import { slot as n } from "../slotsLogic.js";
|
|
6
5
|
/* empty css */
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { KapiTooltip as r } from "../overlays/KapiTooltip.js";
|
|
7
|
+
import { KapiBadge as i } from "../display/KapiBadge.js";
|
|
8
|
+
import { DEFAULT_COUNTDOWN_LABELS as a, DEFAULT_NEAR_MS as o, bucketFor as s, chipText as c, describe as l, parseTarget as u, resolveTones as d } from "./countdownLogic.js";
|
|
9
|
+
import { COUNTDOWN_SLOTS as f } from "./countdownSlots.js";
|
|
10
|
+
import { useEffect as p, useState as m } from "react";
|
|
11
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
10
12
|
//#region src/components/feedback/KapiCountdown.tsx
|
|
11
|
-
function
|
|
12
|
-
let [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
function _({ to: _, prefix: v, tones: y, nearThresholdMs: b = o, detail: x, now: S, labels: C, size: w = "md", badgeVariant: T, badgeTone: E, className: D, classNames: O, ...k }) {
|
|
14
|
+
let [A, j] = m(() => Date.now()), M = S ?? A, N = t("countdown", a, C), P = e() ?? "es";
|
|
15
|
+
p(() => {
|
|
16
|
+
if (S !== void 0) return;
|
|
17
|
+
j(Date.now());
|
|
18
|
+
let e = setInterval(() => j(Date.now()), 1e3);
|
|
16
19
|
return () => clearInterval(e);
|
|
17
|
-
}, [
|
|
18
|
-
let
|
|
19
|
-
if (!Number.isFinite(
|
|
20
|
-
let
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
label:
|
|
23
|
-
children: /* @__PURE__ */
|
|
24
|
-
...
|
|
25
|
-
tone:
|
|
26
|
-
variant:
|
|
27
|
-
size:
|
|
28
|
-
|
|
29
|
-
"data-state":
|
|
20
|
+
}, [_, S]);
|
|
21
|
+
let F = u(_);
|
|
22
|
+
if (!Number.isFinite(F)) return null;
|
|
23
|
+
let I = F - M, L = s(I, b), R = d(y)[L], z = x ?? l(I, N, P), B = v && L !== "overdue";
|
|
24
|
+
return /* @__PURE__ */ h(r, {
|
|
25
|
+
label: z,
|
|
26
|
+
children: /* @__PURE__ */ g(i, {
|
|
27
|
+
...k,
|
|
28
|
+
tone: R,
|
|
29
|
+
variant: T ?? E ?? "subtle",
|
|
30
|
+
size: w,
|
|
31
|
+
...n(f, "root", O, D),
|
|
32
|
+
"data-state": L,
|
|
30
33
|
role: "timer",
|
|
31
|
-
"aria-label":
|
|
34
|
+
"aria-label": z,
|
|
32
35
|
suppressHydrationWarning: !0,
|
|
33
|
-
children: [
|
|
34
|
-
|
|
35
|
-
children:
|
|
36
|
-
}), /* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
children:
|
|
36
|
+
children: [B && /* @__PURE__ */ h("span", {
|
|
37
|
+
...n(f, "prefix", O),
|
|
38
|
+
children: v
|
|
39
|
+
}), /* @__PURE__ */ h("span", {
|
|
40
|
+
...n(f, "time", O),
|
|
41
|
+
children: c(I, N)
|
|
39
42
|
})]
|
|
40
43
|
})
|
|
41
44
|
});
|
|
42
45
|
}
|
|
43
46
|
//#endregion
|
|
44
|
-
export {
|
|
47
|
+
export { _ as KapiCountdown };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
import type { KapiClassNames } from "../slotCatalog.js";
|
|
3
|
+
/** Partes de `KapiEmpty` que acepta `classNames` (`root`, `icon`, `title`, `description`, `action`). */
|
|
4
|
+
export type KapiEmptyClassNames = KapiClassNames<"empty">;
|
|
2
5
|
export type KapiEmptyProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
3
6
|
/** Ref al `<div>` raíz del estado vacío. */
|
|
4
7
|
ref?: Ref<HTMLDivElement> | undefined;
|
|
@@ -10,6 +13,8 @@ export type KapiEmptyProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
|
10
13
|
description?: ReactNode;
|
|
11
14
|
/** Acción principal (típicamente un `KapiButton`). */
|
|
12
15
|
action?: ReactNode;
|
|
16
|
+
/** Clases por parte (`root`, `icon`, `title`, `description`, `action`). Se suman a las propias. */
|
|
17
|
+
classNames?: KapiEmptyClassNames | undefined;
|
|
13
18
|
};
|
|
14
19
|
/** Estado vacío: ícono, título, descripción y acción opcionales, centrados. */
|
|
15
|
-
export declare function KapiEmpty({ icon, title, description, action, className, ...rest }: KapiEmptyProps): import("react").JSX.Element;
|
|
20
|
+
export declare function KapiEmpty({ icon, title, description, action, className, classNames, ...rest }: KapiEmptyProps): import("react").JSX.Element;
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/feedback/feedback.css";
|
|
3
|
+
import { slot as e } from "../slotsLogic.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import {
|
|
5
|
+
import { EMPTY_SLOTS as t } from "./emptySlots.js";
|
|
6
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
7
|
//#region src/components/feedback/KapiEmpty.tsx
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
...
|
|
8
|
+
function i({ icon: i, title: a, description: o, action: s, className: c, classNames: l, ...u }) {
|
|
9
|
+
return /* @__PURE__ */ r("div", {
|
|
10
|
+
...u,
|
|
11
|
+
...e(t, "root", l, c),
|
|
10
12
|
children: [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
i != null && /* @__PURE__ */ n("div", {
|
|
14
|
+
...e(t, "icon", l),
|
|
13
15
|
"aria-hidden": !0,
|
|
14
|
-
children: n
|
|
15
|
-
}),
|
|
16
|
-
/* @__PURE__ */ e("div", {
|
|
17
|
-
className: "kapi-empty__title",
|
|
18
|
-
children: r
|
|
19
|
-
}),
|
|
20
|
-
i != null && /* @__PURE__ */ e("div", {
|
|
21
|
-
className: "kapi-empty__desc",
|
|
22
16
|
children: i
|
|
23
17
|
}),
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
/* @__PURE__ */ n("div", {
|
|
19
|
+
...e(t, "title", l),
|
|
26
20
|
children: a
|
|
21
|
+
}),
|
|
22
|
+
o != null && /* @__PURE__ */ n("div", {
|
|
23
|
+
...e(t, "description", l),
|
|
24
|
+
children: o
|
|
25
|
+
}),
|
|
26
|
+
s != null && /* @__PURE__ */ n("div", {
|
|
27
|
+
...e(t, "action", l),
|
|
28
|
+
children: s
|
|
27
29
|
})
|
|
28
30
|
]
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
33
|
//#endregion
|
|
32
|
-
export {
|
|
34
|
+
export { i as KapiEmpty };
|
|
@@ -1,197 +1,197 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/feedback/feedback.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useDismiss as
|
|
3
|
+
import { useMergedRefs as e } from "../../hooks/mergeRefs.js";
|
|
4
|
+
import { useKapiDir as t, useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
5
|
+
import { activeElementOf as r, winOf as i } from "../../hooks/ownerDocument.js";
|
|
6
|
+
import { useKapiRoot as a } from "../../hooks/kapiRoot.js";
|
|
7
|
+
import { onViewportChange as o } from "../../hooks/rafThrottle.js";
|
|
8
|
+
import { placementViewport as s } from "../../hooks/viewportInsetLogic.js";
|
|
9
|
+
import { resolveDirection as c } from "../../hooks/directionLogic.js";
|
|
10
|
+
import { useDismiss as l } from "../../hooks/useDismiss.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { clampFabPosition as
|
|
13
|
-
import { useCallback as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { Plus as
|
|
16
|
-
import { createPortal as
|
|
12
|
+
import { clampFabPosition as u, fabPanelPlacement as ee, isDragMove as te, resolveFabCorner as ne } from "./fabLogic.js";
|
|
13
|
+
import { useCallback as d, useEffect as f, useId as p, useLayoutEffect as m, useRef as h, useState as g } from "react";
|
|
14
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
15
|
+
import { Plus as re, X as ie } from "lucide-react";
|
|
16
|
+
import { createPortal as ae } from "react-dom";
|
|
17
17
|
//#region src/components/feedback/KapiFab.tsx
|
|
18
|
-
var
|
|
18
|
+
var y = {
|
|
19
19
|
action: "Acción",
|
|
20
20
|
close: "Cerrar"
|
|
21
|
-
},
|
|
21
|
+
}, oe = {
|
|
22
22
|
br: "up-end",
|
|
23
23
|
bl: "up-start",
|
|
24
24
|
tr: "down-end",
|
|
25
25
|
tl: "down-start"
|
|
26
|
-
},
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
let t = typeof e == "function" ? e(
|
|
31
|
-
t !==
|
|
32
|
-
}, [
|
|
33
|
-
let t =
|
|
26
|
+
}, b = ({ actions: b = [], icon: se, label: x, labels: ce, onClick: le, position: ue = "bottom-end", draggable: S = !1, panel: C, panelTitle: w, open: T, defaultOpen: de = !1, onOpenChange: E, keepOpen: D = !1, className: fe, style: O, id: pe, ref: me }) => {
|
|
27
|
+
let k = n("fab", y, ce), A = x ?? k.action, j = T !== void 0, [he, ge] = g(de), M = j ? T : he, N = h(M);
|
|
28
|
+
N.current = M;
|
|
29
|
+
let P = d((e) => {
|
|
30
|
+
let t = typeof e == "function" ? e(N.current) : e;
|
|
31
|
+
t !== N.current && (j || ge(t), E?.(t));
|
|
32
|
+
}, [j, E]), F = C != null && C !== !1, I = h(null), L = h(null), R = p(), [z, B] = g(null), [_e, V] = g(!1), H = h(null), ve = e(H, me), U = h(!1), W = a(), ye = t(), G = !F && b.length > 0, K = d((e) => {
|
|
33
|
+
let t = H.current;
|
|
34
34
|
if (!t) return e;
|
|
35
35
|
let n = t.getBoundingClientRect();
|
|
36
|
-
return
|
|
36
|
+
return u(e, {
|
|
37
37
|
width: n.width,
|
|
38
38
|
height: n.height
|
|
39
|
-
},
|
|
40
|
-
}, []),
|
|
41
|
-
zones: [
|
|
42
|
-
outside: !(
|
|
39
|
+
}, s(t));
|
|
40
|
+
}, []), be = l(M, {
|
|
41
|
+
zones: [H],
|
|
42
|
+
outside: !(F && D),
|
|
43
43
|
onDismiss: (e) => {
|
|
44
|
-
let t = e === "escape" && (
|
|
45
|
-
|
|
44
|
+
let t = e === "escape" && (H.current?.contains(r(H.current)) ?? !1);
|
|
45
|
+
P(!1), t && I.current?.focus();
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
if (!
|
|
50
|
-
let e =
|
|
48
|
+
f(() => {
|
|
49
|
+
if (!M || !F) return;
|
|
50
|
+
let e = L.current;
|
|
51
51
|
(e?.querySelector(".kapi-fab-panel__body :is(input, select, textarea, button, [href], [tabindex]:not([tabindex='-1']))") ?? e)?.focus();
|
|
52
|
-
}, [
|
|
53
|
-
let [
|
|
54
|
-
let t =
|
|
55
|
-
|
|
52
|
+
}, [M, F]);
|
|
53
|
+
let [xe, Se] = g(null), q = d((e) => {
|
|
54
|
+
let t = H.current, n = e && t ? ee(t.getBoundingClientRect(), s(t)) : null;
|
|
55
|
+
Se(n);
|
|
56
56
|
}, []);
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
m(() => {
|
|
58
|
+
q(z !== null);
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
z,
|
|
61
|
+
M,
|
|
62
|
+
W,
|
|
63
|
+
q
|
|
64
64
|
]);
|
|
65
|
-
let
|
|
66
|
-
|
|
67
|
-
if (!
|
|
68
|
-
let e =
|
|
69
|
-
return
|
|
70
|
-
|
|
65
|
+
let J = z !== null;
|
|
66
|
+
f(() => {
|
|
67
|
+
if (!J) return;
|
|
68
|
+
let e = i(H.current);
|
|
69
|
+
return o(() => {
|
|
70
|
+
B((e) => {
|
|
71
71
|
if (!e) return e;
|
|
72
|
-
let t =
|
|
72
|
+
let t = K(e);
|
|
73
73
|
return t.x === e.x && t.y === e.y ? e : t;
|
|
74
|
-
}),
|
|
74
|
+
}), q(!0);
|
|
75
75
|
}, e ? { target: e } : {});
|
|
76
76
|
}, [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
J,
|
|
78
|
+
K,
|
|
79
|
+
q
|
|
80
80
|
]);
|
|
81
|
-
let
|
|
82
|
-
if (!
|
|
83
|
-
let t =
|
|
81
|
+
let Ce = (e) => {
|
|
82
|
+
if (!S || e.button !== 0 || !H.current) return;
|
|
83
|
+
let t = H.current.getBoundingClientRect(), n = {
|
|
84
84
|
mx: e.clientX,
|
|
85
85
|
my: e.clientY,
|
|
86
86
|
x: t.left,
|
|
87
87
|
y: t.top,
|
|
88
88
|
moved: !1
|
|
89
|
-
},
|
|
89
|
+
}, r = (e) => {
|
|
90
90
|
let t = e.clientX - n.mx, r = e.clientY - n.my;
|
|
91
|
-
|
|
91
|
+
te(t, r) && (n.moved = !0), n.moved && (V(!0), B(K({
|
|
92
92
|
x: n.x + t,
|
|
93
93
|
y: n.y + r
|
|
94
94
|
})));
|
|
95
|
-
}, a =
|
|
96
|
-
a.removeEventListener("pointermove",
|
|
97
|
-
|
|
95
|
+
}, a = i(H.current) ?? window, o = () => {
|
|
96
|
+
a.removeEventListener("pointermove", r), a.removeEventListener("pointerup", o), a.removeEventListener("pointercancel", o), U.current = n.moved, V(!1), setTimeout(() => {
|
|
97
|
+
U.current = !1;
|
|
98
98
|
}, 0);
|
|
99
99
|
};
|
|
100
|
-
a.addEventListener("pointermove",
|
|
100
|
+
a.addEventListener("pointermove", r), a.addEventListener("pointerup", o), a.addEventListener("pointercancel", o);
|
|
101
101
|
}, we = () => {
|
|
102
|
-
|
|
102
|
+
U.current || (G || F ? P((e) => !e) : le?.());
|
|
103
103
|
}, Y = () => {
|
|
104
|
-
|
|
104
|
+
P(!1), I.current?.focus();
|
|
105
105
|
};
|
|
106
|
-
if (!
|
|
107
|
-
let X =
|
|
108
|
-
...
|
|
109
|
-
left:
|
|
110
|
-
top:
|
|
106
|
+
if (!W) return null;
|
|
107
|
+
let X = c(W, ye), Z = ne(ue, X), Q = X === "rtl" && Z.frame === "ltr", $ = Q ? { dir: "rtl" } : {}, Te = z && xe || oe[Z.physical], Ee = z ? {
|
|
108
|
+
...O,
|
|
109
|
+
left: z.x,
|
|
110
|
+
top: z.y,
|
|
111
111
|
right: "auto",
|
|
112
112
|
bottom: "auto"
|
|
113
|
-
} :
|
|
113
|
+
} : O, De = [
|
|
114
114
|
"kapi-fab-wrap",
|
|
115
115
|
`kapi-fab-wrap--${Z.logical}`,
|
|
116
116
|
`kapi-fab-wrap--${Z.physical}`,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
S && "is-draggable",
|
|
118
|
+
_e && "is-dragging",
|
|
119
|
+
fe
|
|
120
120
|
].filter(Boolean).join(" ");
|
|
121
|
-
return
|
|
122
|
-
ref:
|
|
123
|
-
id:
|
|
121
|
+
return ae(/* @__PURE__ */ v("div", {
|
|
122
|
+
ref: ve,
|
|
123
|
+
id: pe,
|
|
124
124
|
className: De,
|
|
125
125
|
style: Ee,
|
|
126
126
|
...Q ? { dir: "ltr" } : {},
|
|
127
|
-
onKeyDown:
|
|
127
|
+
onKeyDown: be,
|
|
128
128
|
children: [
|
|
129
|
-
|
|
130
|
-
ref:
|
|
129
|
+
F && M && /* @__PURE__ */ v("div", {
|
|
130
|
+
ref: L,
|
|
131
131
|
role: "dialog",
|
|
132
132
|
tabIndex: -1,
|
|
133
133
|
className: `kapi-fab-panel kapi-fab-panel--${Te}`,
|
|
134
134
|
...$,
|
|
135
|
-
...
|
|
136
|
-
children: [
|
|
135
|
+
...w == null ? { "aria-label": A } : { "aria-labelledby": R },
|
|
136
|
+
children: [w != null && /* @__PURE__ */ v("div", {
|
|
137
137
|
className: "kapi-fab-panel__head",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
139
|
-
id:
|
|
138
|
+
children: [/* @__PURE__ */ _("span", {
|
|
139
|
+
id: R,
|
|
140
140
|
className: "kapi-fab-panel__title",
|
|
141
|
-
children:
|
|
142
|
-
}), /* @__PURE__ */
|
|
141
|
+
children: w
|
|
142
|
+
}), /* @__PURE__ */ _("button", {
|
|
143
143
|
type: "button",
|
|
144
144
|
className: "kapi-fab-panel__close",
|
|
145
|
-
"aria-label":
|
|
145
|
+
"aria-label": k.close,
|
|
146
146
|
onClick: Y,
|
|
147
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ _(ie, {
|
|
148
148
|
size: 16,
|
|
149
149
|
strokeWidth: 2.2
|
|
150
150
|
})
|
|
151
151
|
})]
|
|
152
|
-
}), /* @__PURE__ */
|
|
152
|
+
}), /* @__PURE__ */ _("div", {
|
|
153
153
|
className: "kapi-fab-panel__body",
|
|
154
|
-
children: typeof
|
|
154
|
+
children: typeof C == "function" ? C({ close: Y }) : C
|
|
155
155
|
})]
|
|
156
156
|
}),
|
|
157
|
-
|
|
158
|
-
className: `kapi-fab-actions${
|
|
159
|
-
children:
|
|
157
|
+
G && /* @__PURE__ */ _("div", {
|
|
158
|
+
className: `kapi-fab-actions${M ? " is-open" : ""}`,
|
|
159
|
+
children: b.map((e) => /* @__PURE__ */ v("button", {
|
|
160
160
|
type: "button",
|
|
161
161
|
className: "kapi-fab-act",
|
|
162
|
-
tabIndex:
|
|
162
|
+
tabIndex: M ? 0 : -1,
|
|
163
163
|
onClick: () => {
|
|
164
|
-
e.onClick?.(),
|
|
164
|
+
e.onClick?.(), P(!1);
|
|
165
165
|
},
|
|
166
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ _("span", {
|
|
167
167
|
className: "kapi-fab-act__label",
|
|
168
168
|
...$,
|
|
169
169
|
children: e.label
|
|
170
|
-
}), /* @__PURE__ */
|
|
170
|
+
}), /* @__PURE__ */ _("span", {
|
|
171
171
|
className: "kapi-fab-act__btn",
|
|
172
172
|
children: e.icon
|
|
173
173
|
})]
|
|
174
174
|
}, e.label))
|
|
175
175
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
ref:
|
|
176
|
+
/* @__PURE__ */ _("button", {
|
|
177
|
+
ref: I,
|
|
178
178
|
type: "button",
|
|
179
179
|
className: "kapi-fab-main",
|
|
180
|
-
onPointerDown:
|
|
180
|
+
onPointerDown: Ce,
|
|
181
181
|
onClick: we,
|
|
182
|
-
"aria-label":
|
|
183
|
-
"aria-haspopup":
|
|
184
|
-
"aria-expanded":
|
|
185
|
-
children: /* @__PURE__ */
|
|
186
|
-
className: `kapi-fab-main__ico${
|
|
187
|
-
children:
|
|
182
|
+
"aria-label": A,
|
|
183
|
+
"aria-haspopup": F ? "dialog" : void 0,
|
|
184
|
+
"aria-expanded": G || F ? M : void 0,
|
|
185
|
+
children: /* @__PURE__ */ _("span", {
|
|
186
|
+
className: `kapi-fab-main__ico${G && M ? " is-open" : ""}`,
|
|
187
|
+
children: se ?? /* @__PURE__ */ _(re, {
|
|
188
188
|
size: 24,
|
|
189
189
|
strokeWidth: 2.4
|
|
190
190
|
})
|
|
191
191
|
})
|
|
192
192
|
})
|
|
193
193
|
]
|
|
194
|
-
}),
|
|
194
|
+
}), W);
|
|
195
195
|
};
|
|
196
196
|
//#endregion
|
|
197
|
-
export {
|
|
197
|
+
export { y as DEFAULT_FAB_LABELS, b as KapiFab };
|