@kapiuara/ui 0.15.3 → 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/LICENSE +19 -15
- package/README.md +505 -13
- package/dist/components/chat/KapiChatThread.js +4 -4
- package/dist/components/chat/KapiComposer.js +8 -8
- package/dist/components/data/KapiDataTable.d.ts +1 -1
- package/dist/components/data/KapiDataTable.js +25 -25
- package/dist/components/data/KapiPaginationFooter.js +1 -1
- package/dist/components/data/KapiSheet.d.ts +105 -0
- package/dist/components/data/KapiSheet.js +75 -0
- package/dist/components/data/KapiSparkline.d.ts +2 -1
- package/dist/components/data/KapiSparkline.js +29 -26
- package/dist/components/data/KapiTable.d.ts +2 -2
- package/dist/components/data/KapiTable.js +347 -329
- package/dist/components/data/KapiTableFilter.js +6 -6
- package/dist/components/data/KapiTableFooter.d.ts +22 -0
- package/dist/components/data/KapiTableFooter.js +55 -0
- package/dist/components/data/KapiTableRow.js +53 -52
- package/dist/components/data/KapiTableToolbar.d.ts +4 -2
- package/dist/components/data/KapiTableToolbar.js +71 -69
- package/dist/components/data/index.d.ts +3 -1
- package/dist/components/data/tableCells.d.ts +17 -5
- package/dist/components/data/tableCells.js +52 -53
- package/dist/components/data/tableLogic.d.ts +2 -0
- package/dist/components/data/tableLogic.js +66 -66
- package/dist/components/data/tableSlots.d.ts +9 -0
- package/dist/components/data/tableSlots.js +12 -0
- package/dist/components/data/tableSpanLogic.d.ts +35 -0
- package/dist/components/data/tableSpanLogic.js +47 -0
- package/dist/components/data/tableTypes.d.ts +54 -1
- package/dist/components/data/useTableSelection.d.ts +4 -2
- package/dist/components/data/useTableSelection.js +29 -25
- package/dist/components/display/KapiAnchor.d.ts +36 -0
- package/dist/components/display/KapiAnchor.js +36 -0
- 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/KapiBadge.d.ts +6 -5
- package/dist/components/display/KapiBadge.js +25 -19
- 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/KapiText.d.ts +43 -0
- package/dist/components/display/KapiText.js +33 -0
- package/dist/components/display/KapiTimeline.d.ts +5 -2
- package/dist/components/display/KapiTimeline.js +31 -23
- package/dist/components/display/KapiTitle.d.ts +33 -0
- package/dist/components/display/KapiTitle.js +29 -0
- 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 +15 -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/textLogic.d.ts +32 -0
- package/dist/components/display/textLogic.js +19 -0
- package/dist/components/display/timelineLogic.d.ts +20 -2
- package/dist/components/display/timelineLogic.js +10 -2
- package/dist/components/feedback/KapiAlert.d.ts +8 -4
- package/dist/components/feedback/KapiAlert.js +39 -34
- 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/KapiButton.d.ts +7 -4
- package/dist/components/inputs/KapiButton.js +47 -42
- 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 +21 -1
- package/dist/components/inputs/KapiSelect.js +251 -245
- package/dist/components/inputs/KapiSelectMenu.d.ts +4 -2
- package/dist/components/inputs/KapiSelectMenu.js +131 -133
- 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 +21 -1
- package/dist/components/inputs/fieldLogic.js +18 -11
- package/dist/components/inputs/index.d.ts +9 -1
- 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/inputs/selectSlots.d.ts +24 -0
- package/dist/components/inputs/selectSlots.js +27 -0
- 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/KapiBox.d.ts +31 -0
- package/dist/components/layout/KapiBox.js +26 -0
- package/dist/components/layout/KapiCard.d.ts +16 -4
- package/dist/components/layout/KapiCard.js +46 -34
- package/dist/components/layout/KapiCenter.d.ts +13 -0
- package/dist/components/layout/KapiCenter.js +23 -0
- package/dist/components/layout/KapiCol.d.ts +22 -0
- package/dist/components/layout/KapiCol.js +23 -0
- 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.d.ts +29 -3
- package/dist/components/layout/KapiGrid.js +39 -17
- package/dist/components/layout/KapiNotificationBell.js +10 -10
- package/dist/components/layout/KapiPageHeader.d.ts +10 -1
- package/dist/components/layout/KapiPageHeader.js +94 -92
- package/dist/components/layout/KapiPanelParts.d.ts +11 -2
- package/dist/components/layout/KapiPanelParts.js +73 -56
- package/dist/components/layout/KapiRail.d.ts +10 -1
- package/dist/components/layout/KapiRail.js +125 -122
- package/dist/components/layout/KapiRoot.d.ts +55 -5
- package/dist/components/layout/KapiRoot.js +57 -38
- package/dist/components/layout/KapiShell.d.ts +44 -3
- package/dist/components/layout/KapiShell.js +54 -50
- package/dist/components/layout/accessCardLogic.d.ts +8 -1
- package/dist/components/layout/accessCardLogic.js +11 -7
- package/dist/components/layout/cardSlots.d.ts +9 -0
- package/dist/components/layout/cardSlots.js +12 -0
- package/dist/components/layout/gridSpanLogic.d.ts +46 -0
- package/dist/components/layout/gridSpanLogic.js +39 -0
- package/dist/components/layout/index.d.ts +13 -4
- package/dist/components/layout/layoutPrimitives.d.ts +11 -0
- package/dist/components/layout/layoutPrimitives.js +12 -1
- package/dist/components/layout/pageHeaderSlots.d.ts +12 -0
- package/dist/components/layout/pageHeaderSlots.js +15 -0
- package/dist/components/layout/railLogic.d.ts +16 -3
- package/dist/components/layout/railSlots.d.ts +12 -0
- package/dist/components/layout/railSlots.js +15 -0
- package/dist/components/layout/shellSlots.d.ts +6 -0
- package/dist/components/layout/shellSlots.js +9 -0
- package/dist/components/layout/useGridBreakpoint.d.ts +12 -0
- package/dist/components/layout/useGridBreakpoint.js +35 -0
- package/dist/components/locale/labelRegistry.d.ts +10 -0
- package/dist/components/navigation/KapiAccordion.js +9 -9
- package/dist/components/navigation/KapiBreadcrumb.d.ts +18 -2
- package/dist/components/navigation/KapiBreadcrumb.js +23 -16
- package/dist/components/navigation/KapiContextPanel.d.ts +17 -4
- package/dist/components/navigation/KapiContextPanel.js +152 -136
- package/dist/components/navigation/KapiNavBadge.d.ts +6 -3
- package/dist/components/navigation/KapiNavBadge.js +26 -22
- package/dist/components/navigation/KapiPanelGroup.d.ts +16 -4
- package/dist/components/navigation/KapiPanelGroup.js +66 -65
- package/dist/components/navigation/KapiTabs.d.ts +12 -0
- package/dist/components/navigation/KapiTabs.js +87 -71
- 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/MiniNavItem.d.ts +7 -2
- package/dist/components/navigation/MiniNavItem.js +41 -36
- package/dist/components/navigation/breadcrumbLogic.d.ts +4 -2
- package/dist/components/navigation/breadcrumbLogic.js +1 -1
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/navLink.d.ts +21 -0
- package/dist/components/navigation/navLink.js +26 -0
- package/dist/components/navigation/navLinkLogic.d.ts +18 -0
- package/dist/components/navigation/navLinkLogic.js +22 -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.d.ts +8 -0
- package/dist/components/overlays/KapiContextMenu.js +5 -5
- package/dist/components/overlays/KapiMenuButton.js +7 -7
- package/dist/components/overlays/KapiModal.d.ts +9 -0
- package/dist/components/overlays/KapiModal.js +79 -77
- 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/index.d.ts +1 -1
- package/dist/components/overlays/menuList.js +127 -117
- package/dist/components/overlays/modalSlots.d.ts +11 -0
- package/dist/components/overlays/modalSlots.js +14 -0
- package/dist/components/slotCatalog.d.ts +123 -0
- package/dist/components/slotCatalog.js +27 -0
- package/dist/components/slotsLogic.d.ts +34 -0
- package/dist/components/slotsLogic.js +18 -0
- package/dist/components/tone.d.ts +26 -0
- package/dist/components/tone.js +15 -14
- package/dist/css/base.css +1 -1
- package/dist/css/components/data/KapiEventCalendar.css +1 -1
- package/dist/css/components/data/KapiTable.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/display/typography.css +1 -0
- package/dist/css/components/feedback/feedback.css +1 -1
- package/dist/css/components/inputs/KapiButton.css +1 -1
- package/dist/css/components/inputs/KapiDatePicker.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/KapiBox.css +1 -0
- package/dist/css/components/layout/KapiCollapse.css +1 -0
- package/dist/css/components/layout/KapiDivider.css +1 -1
- package/dist/css/components/layout/KapiRail.css +1 -1
- package/dist/css/components/layout/gridSpan.css +1 -0
- package/dist/css/components/navigation/KapiToc.css +1 -0
- package/dist/css/components/navigation/navigation.css +1 -1
- package/dist/hooks/asyncResourceLogic.d.ts +11 -0
- package/dist/hooks/asyncResourceLogic.js +4 -0
- package/dist/hooks/densityLogic.d.ts +15 -0
- package/dist/hooks/densityLogic.js +4 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/themeColorsLogic.d.ts +19 -0
- package/dist/hooks/themeColorsLogic.js +4 -2
- package/dist/hooks/themeDeriveLogic.d.ts +16 -0
- package/dist/hooks/themeDeriveLogic.js +27 -17
- package/dist/hooks/toneFamilyLogic.d.ts +146 -0
- package/dist/hooks/toneFamilyLogic.js +164 -0
- package/dist/hooks/useAsyncResource.d.ts +45 -0
- package/dist/hooks/useAsyncResource.js +24 -0
- package/dist/hooks/useKapiTheme.d.ts +16 -3
- package/dist/hooks/useKapiTheme.js +130 -117
- package/dist/hooks/useToneFamilies.d.ts +40 -0
- package/dist/hooks/useToneFamilies.js +50 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +227 -204
- 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/dist/styles/rawHeights.d.ts +8 -0
- package/package.json +14 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type KapiToneName } from "../tone.js";
|
|
2
|
+
/** Escala tipográfica de la librería: cada valor es el token `--kapi-fs-<valor>`. */
|
|
3
|
+
export type KapiTextSize = "3xs" | "2xs" | "xs" | "sm" | "base" | "body" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
4
|
+
/** Color de un texto: cualquier `KapiTone` o una familia propia de la app. */
|
|
5
|
+
export type KapiTextTone = KapiToneName;
|
|
6
|
+
/** Peso de la letra: 400, 500, 600 y 700. */
|
|
7
|
+
export type KapiTextWeight = "regular" | "medium" | "semibold" | "bold";
|
|
8
|
+
/** Alineación del texto dentro de su caja. */
|
|
9
|
+
export type KapiTextAlign = "start" | "center" | "end" | "justify";
|
|
10
|
+
/** Nivel de un título (`h1` a `h6`). */
|
|
11
|
+
export type KapiTitleLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
12
|
+
/** Tamaño visual que trae cada nivel de título si no se pide otro. */
|
|
13
|
+
export declare const TITLE_DEFAULT_SIZE: Record<KapiTitleLevel, KapiTextSize>;
|
|
14
|
+
type TextLook = {
|
|
15
|
+
size?: KapiTextSize | undefined;
|
|
16
|
+
tone?: KapiTextTone | undefined;
|
|
17
|
+
muted?: boolean | undefined;
|
|
18
|
+
weight?: KapiTextWeight | undefined;
|
|
19
|
+
align?: KapiTextAlign | undefined;
|
|
20
|
+
truncate?: boolean | number | undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Cuántas líneas se muestran antes de cortar, sólo cuando son MÁS de una: una línea (`true` o `1`) se
|
|
24
|
+
* resuelve con `text-overflow` y no necesita la custom property.
|
|
25
|
+
*/
|
|
26
|
+
export declare const truncateLines: (truncate: boolean | number | undefined) => number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Clases de la familia de texto (`KapiText`, `KapiTitle`, `KapiAnchor`). Sin props, la base sola: el
|
|
29
|
+
* texto hereda tamaño, color y peso de donde esté. `tone` gana sobre `muted`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const textClasses: ({ size, tone, muted, weight, align, truncate }: TextLook) => string[];
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isFamilyTone as e } from "../tone.js";
|
|
2
|
+
//#region src/components/display/textLogic.ts
|
|
3
|
+
var t = {
|
|
4
|
+
1: "4xl",
|
|
5
|
+
2: "3xl",
|
|
6
|
+
3: "2xl",
|
|
7
|
+
4: "xl",
|
|
8
|
+
5: "lg",
|
|
9
|
+
6: "md"
|
|
10
|
+
}, n = (e) => typeof e == "number" && e > 1 ? e : void 0, r = ({ size: t, tone: r, muted: i, weight: a, align: o, truncate: s }) => [
|
|
11
|
+
"kapi-text",
|
|
12
|
+
t !== void 0 && `kapi-text--${t}`,
|
|
13
|
+
r === void 0 ? i === !0 && "kapi-text--muted" : `kapi-text--tone-${e(r) ? "family" : r}`,
|
|
14
|
+
a !== void 0 && `kapi-text--w-${a}`,
|
|
15
|
+
o !== void 0 && `kapi-text--align-${o}`,
|
|
16
|
+
n(s) === void 0 ? s !== void 0 && s !== !1 && s !== 0 && "kapi-text--truncate" : "kapi-text--clamp"
|
|
17
|
+
].filter((e) => typeof e == "string");
|
|
18
|
+
//#endregion
|
|
19
|
+
export { t as TITLE_DEFAULT_SIZE, r as textClasses, n as truncateLines };
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
import { type KapiFamilyTone } from "../tone.js";
|
|
2
|
+
/** Tonos propios de la línea de tiempo. `muted` no es un `KapiTone`: es gris apagado, sólo de acá. */
|
|
1
3
|
export type KapiTimelineTone = "primary" | "success" | "info" | "warning" | "danger" | "muted";
|
|
2
|
-
/**
|
|
3
|
-
export
|
|
4
|
+
/** El tono de un ítem: uno propio de la línea de tiempo o una familia de la app (`toneFamilies`). */
|
|
5
|
+
export type KapiTimelineToneName = KapiTimelineTone | KapiFamilyTone;
|
|
6
|
+
/**
|
|
7
|
+
* `true` si el valor es un tono propio de la línea de tiempo. Hace falta además de `isFamilyTone`
|
|
8
|
+
* porque `muted` es de acá y NO está en los nombres reservados: sin este filtro, `tone="muted"` se
|
|
9
|
+
* leería como una familia sin registrar, caería al default y avisaría por consola.
|
|
10
|
+
*/
|
|
11
|
+
export declare const isTimelineTone: (value: unknown) => value is KapiTimelineTone;
|
|
12
|
+
/**
|
|
13
|
+
* Clase del punto según el tono (default `primary`). `family` lo dibuja con los slots locales
|
|
14
|
+
* (`--kapi-tone`) que el componente pone inline, que es cómo entra una familia propia de la app.
|
|
15
|
+
*/
|
|
16
|
+
export declare const timelineDotClass: (tone?: KapiTimelineTone | undefined, family?: boolean) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Si el tono de un ítem lo resuelve la línea de tiempo (uno propio, o nada) o hay que preguntarle
|
|
19
|
+
* al resolver de familias. Separado del `.tsx` para poder testear la decisión sin montar nada.
|
|
20
|
+
*/
|
|
21
|
+
export declare const needsToneResolver: (tone: KapiTimelineToneName | undefined) => boolean;
|
|
4
22
|
/** El último ítem no dibuja el conector hacia abajo. */
|
|
5
23
|
export declare const showConnector: (index: number, total: number) => boolean;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { isFamilyTone as e } from "../tone.js";
|
|
1
2
|
//#region src/components/display/timelineLogic.ts
|
|
2
|
-
var
|
|
3
|
+
var t = /* @__PURE__ */ new Set([
|
|
4
|
+
"primary",
|
|
5
|
+
"success",
|
|
6
|
+
"info",
|
|
7
|
+
"warning",
|
|
8
|
+
"danger",
|
|
9
|
+
"muted"
|
|
10
|
+
]), n = (e) => typeof e == "string" && t.has(e), r = (e, t = !1) => `kapi-tl-dot kapi-timeline__dot--${t ? "family" : e ?? "primary"}`, i = (t) => t !== void 0 && !n(t) && e(t), a = (e, t) => e < t - 1;
|
|
3
11
|
//#endregion
|
|
4
|
-
export {
|
|
12
|
+
export { n as isTimelineTone, i as needsToneResolver, a as showConnector, r as timelineDotClass };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
2
|
import type { KapiCloseReason } from "../closeReason.js";
|
|
3
|
-
import { type KapiTone } from "../tone.js";
|
|
3
|
+
import { type KapiFamilyTone, type KapiTone } from "../tone.js";
|
|
4
4
|
import type { KapiLabelsOverride } from "../labelsLogic.js";
|
|
5
5
|
export type KapiAlertLabels = {
|
|
6
6
|
/** Nombre accesible del botón de cierre (con `onClose`). */
|
|
@@ -15,8 +15,12 @@ export type KapiAlertVariant = KapiAlertTone;
|
|
|
15
15
|
export type KapiAlertProps = Omit<HTMLAttributes<HTMLDivElement>, "title" | "role" | "children"> & {
|
|
16
16
|
/** Ref al `<div>` raíz del aviso. */
|
|
17
17
|
ref?: Ref<HTMLDivElement> | undefined;
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Rol semántico: define color, ícono y si se anuncia como `alert` o `status`. Una familia propia
|
|
20
|
+
* de la app (`toneFamilies`) pinta el color y usa el ícono y el anuncio de `info`.
|
|
21
|
+
* @default "info"
|
|
22
|
+
*/
|
|
23
|
+
tone?: KapiAlertTone | KapiFamilyTone | undefined;
|
|
20
24
|
/** Nombre anterior de `tone`, deprecado. @deprecated Usar `tone` (mismos valores). */
|
|
21
25
|
variant?: KapiAlertTone | undefined;
|
|
22
26
|
/** Título en negrita sobre el mensaje. */
|
|
@@ -49,4 +53,4 @@ export declare const alertRole: (tone: KapiAlertTone, override?: KapiAlertRole)
|
|
|
49
53
|
* Banner inline (info / success / warning / danger) para formularios, modales y pantallas.
|
|
50
54
|
* `danger` se anuncia como `role="alert"`; el resto como `role="status"` (ver `role`).
|
|
51
55
|
*/
|
|
52
|
-
export declare const KapiAlert: ({ tone: toneProp, variant, title, children, action, icon, onClose, labels, className, role, ...rest }: KapiAlertProps) => import("react").JSX.Element;
|
|
56
|
+
export declare const KapiAlert: ({ tone: toneProp, variant, title, children, action, icon, onClose, labels, className, role, style, ...rest }: KapiAlertProps) => import("react").JSX.Element;
|
|
@@ -1,77 +1,82 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/feedback/feedback.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { useToneLook as e } from "../../hooks/useToneFamilies.js";
|
|
4
|
+
import { joinClasses as t } from "../rootProps.js";
|
|
5
|
+
import { resolveTone as n } from "../tone.js";
|
|
6
|
+
import { KapiButton as r } from "../inputs/KapiButton.js";
|
|
7
|
+
import { useLabels as i } from "../locale/KapiLocaleProvider.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { AlertTriangle as
|
|
9
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
10
|
+
import { AlertTriangle as s, CheckCircle2 as c, Info as l, X as u, XCircle as d } from "lucide-react";
|
|
10
11
|
//#region src/components/feedback/KapiAlert.tsx
|
|
11
|
-
var
|
|
12
|
+
var f = { close: "Cerrar aviso" }, p = (e, t) => {
|
|
12
13
|
let n = t ?? (e === "danger" ? "alert" : "status");
|
|
13
14
|
return n === "none" ? void 0 : n;
|
|
14
|
-
},
|
|
15
|
+
}, m = {
|
|
15
16
|
info: {
|
|
16
|
-
Icon:
|
|
17
|
+
Icon: l,
|
|
17
18
|
color: "var(--kapi-info)"
|
|
18
19
|
},
|
|
19
20
|
success: {
|
|
20
|
-
Icon:
|
|
21
|
+
Icon: c,
|
|
21
22
|
color: "var(--kapi-success)"
|
|
22
23
|
},
|
|
23
24
|
warning: {
|
|
24
|
-
Icon:
|
|
25
|
+
Icon: s,
|
|
25
26
|
color: "var(--kapi-warning)"
|
|
26
27
|
},
|
|
27
28
|
danger: {
|
|
28
|
-
Icon:
|
|
29
|
+
Icon: d,
|
|
29
30
|
color: "var(--kapi-danger)"
|
|
30
31
|
}
|
|
31
|
-
},
|
|
32
|
-
let
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
...
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
}, h = ({ tone: s, variant: c, title: l, children: d, action: h, icon: g, onClose: _, labels: v, className: y, role: b, style: x, ...S }) => {
|
|
33
|
+
let C = i("alert", f, v), w = e("KapiAlert", s), T = n(w.tone, c, "info"), E = T in m ? T : "info", { Icon: D } = m[E], O = w.style ? "var(--kapi-tone)" : m[E].color;
|
|
34
|
+
return /* @__PURE__ */ o("div", {
|
|
35
|
+
...S,
|
|
36
|
+
style: w.style ? {
|
|
37
|
+
...w.style,
|
|
38
|
+
...x
|
|
39
|
+
} : x,
|
|
40
|
+
className: t("kapi-alert", w.style ? "kapi-alert--family" : `kapi-alert--${E}`, y),
|
|
41
|
+
role: p(E, b),
|
|
37
42
|
children: [
|
|
38
|
-
|
|
43
|
+
g === void 0 ? /* @__PURE__ */ a(D, {
|
|
39
44
|
className: "kapi-alert__ico",
|
|
40
45
|
size: 19,
|
|
41
46
|
strokeWidth: 2,
|
|
42
|
-
color:
|
|
43
|
-
}) :
|
|
47
|
+
color: O
|
|
48
|
+
}) : g === !1 || g === null ? null : /* @__PURE__ */ a("span", {
|
|
44
49
|
className: "kapi-alert__ico kapi-alert__ico--custom",
|
|
45
|
-
style: { color:
|
|
50
|
+
style: { color: O },
|
|
46
51
|
"aria-hidden": "true",
|
|
47
|
-
children:
|
|
52
|
+
children: g
|
|
48
53
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ o("div", {
|
|
50
55
|
className: "kapi-alert__body",
|
|
51
|
-
children: [
|
|
56
|
+
children: [l && /* @__PURE__ */ a("div", {
|
|
52
57
|
className: "kapi-alert__title",
|
|
53
|
-
children:
|
|
54
|
-
}),
|
|
58
|
+
children: l
|
|
59
|
+
}), d && /* @__PURE__ */ a("div", {
|
|
55
60
|
className: "kapi-alert__msg",
|
|
56
|
-
children:
|
|
61
|
+
children: d
|
|
57
62
|
})]
|
|
58
63
|
}),
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
h,
|
|
65
|
+
_ && /* @__PURE__ */ a(r, {
|
|
61
66
|
className: "kapi-alert__close",
|
|
62
67
|
variant: "ghost",
|
|
63
68
|
size: "sm",
|
|
64
69
|
iconOnly: !0,
|
|
65
|
-
icon: /* @__PURE__ */
|
|
70
|
+
icon: /* @__PURE__ */ a(u, {
|
|
66
71
|
size: 16,
|
|
67
72
|
strokeWidth: 2.2,
|
|
68
73
|
"aria-hidden": "true"
|
|
69
74
|
}),
|
|
70
|
-
"aria-label":
|
|
71
|
-
onClick: () =>
|
|
75
|
+
"aria-label": C.close,
|
|
76
|
+
onClick: () => _?.("close-button")
|
|
72
77
|
})
|
|
73
78
|
]
|
|
74
79
|
});
|
|
75
80
|
};
|
|
76
81
|
//#endregion
|
|
77
|
-
export {
|
|
82
|
+
export { f as DEFAULT_ALERT_LABELS, h as KapiAlert, p as alertRole };
|
|
@@ -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 };
|