@kapiuara/ui 0.17.0 → 0.19.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 +259 -9
- package/dist/components/data/KapiDataTable.d.ts +12 -2
- package/dist/components/data/KapiDataTable.js +78 -76
- package/dist/components/data/KapiScatterChart.d.ts +56 -0
- package/dist/components/data/KapiScatterChart.js +90 -0
- package/dist/components/data/KapiTable.d.ts +2 -2
- package/dist/components/data/KapiTable.js +229 -227
- package/dist/components/data/chartFrame.d.ts +20 -2
- package/dist/components/data/chartFrame.js +33 -24
- package/dist/components/data/index.d.ts +5 -1
- package/dist/components/data/scatterLogic.d.ts +56 -0
- package/dist/components/data/scatterLogic.js +43 -0
- package/dist/components/data/tableTypes.d.ts +37 -0
- package/dist/components/data/useRowKeyWarning.d.ts +9 -3
- package/dist/components/data/useRowKeyWarning.js +7 -7
- package/dist/components/data/useTableSelection.d.ts +3 -2
- package/dist/components/data/useTableSelection.js +3 -3
- package/dist/components/display/KapiAvatarGroup.d.ts +14 -2
- package/dist/components/display/KapiAvatarGroup.js +25 -23
- package/dist/components/display/KapiTimeline.d.ts +14 -0
- package/dist/components/display/KapiTimeline.js +28 -21
- package/dist/components/display/avatarGroupSlots.d.ts +6 -0
- package/dist/components/display/avatarGroupSlots.js +9 -0
- package/dist/components/display/index.d.ts +1 -1
- 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/KapiProgress.js +1 -1
- package/dist/components/feedback/KapiSpinner.d.ts +48 -0
- package/dist/components/feedback/KapiSpinner.js +27 -0
- package/dist/components/feedback/KapiToastContainer.js +1 -1
- package/dist/components/feedback/KapiTour.js +1 -1
- 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/inputs/KapiFileUpload.d.ts +14 -1
- package/dist/components/inputs/KapiFileUpload.js +80 -67
- package/dist/components/inputs/formBridgeLogic.d.ts +104 -0
- package/dist/components/inputs/formBridgeLogic.js +25 -0
- package/dist/components/inputs/index.d.ts +2 -0
- package/dist/components/locale/labelRegistry.d.ts +8 -0
- package/dist/components/navigation/KapiSteps.d.ts +26 -5
- package/dist/components/navigation/KapiSteps.js +55 -43
- package/dist/components/overlays/KapiImageViewer.d.ts +63 -0
- package/dist/components/overlays/KapiImageViewer.js +106 -0
- 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 +110 -58
- 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/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 +33 -0
- package/dist/components/slotCatalog.js +30 -20
- package/dist/css/base.css +1 -1
- package/dist/css/components/data/KapiScatterChart.css +1 -0
- package/dist/css/components/display/display.css +1 -1
- package/dist/css/components/inputs/KapiFileUpload.css +1 -1
- package/dist/css/components/navigation/KapiSteps.css +1 -1
- package/dist/css/components/overlays/KapiViewport.css +1 -0
- package/dist/css/components/overlays/overlays.css +1 -1
- 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 +10 -0
- package/dist/hooks/themeDeriveLogic.js +2 -2
- 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/index.js +201 -188
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/dist/logic.d.ts +4 -0
- package/dist/logic.js +33 -29
- package/package.json +2 -2
package/dist/logic.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { groupChatMessages } from "./components/chat/chatLogic.js";
|
|
2
2
|
export { DIRECT_LABEL_MAX_BARS } from "./components/data/barChartLogic.js";
|
|
3
3
|
export { SEQ_STEPS } from "./components/data/heatmapLogic.js";
|
|
4
|
+
export { scatterAxis, scatterInside, scatterPosition, scatterTickLabel } from "./components/data/scatterLogic.js";
|
|
4
5
|
export { buildCsv, computePagination, csvCell, filterRows, filterSearchColumns, normalizeFilterText, paginateRows, sortRowsByColumn } from "./components/data/tableLogic.js";
|
|
5
6
|
export { diffHunks, diffLines, diffRows } from "./components/display/diffLogic.js";
|
|
6
7
|
export { splitByQuery } from "./components/display/highlightLogic.js";
|
|
@@ -22,12 +23,15 @@ export { PANEL_GROUP_COUNT_MAX } from "./components/navigation/panelGroupLogic.j
|
|
|
22
23
|
export { tabId } from "./components/navigation/tabsLogic.js";
|
|
23
24
|
export { activeTocId, isAtBottom, visibleTocItems } from "./components/navigation/tocLogic.js";
|
|
24
25
|
export { placePopover } from "./components/overlays/popoverLogic.js";
|
|
26
|
+
export { VIEWPORT_IDENTITY, clampViewport, doubleTapScale, fitScale, fitViewport, panBounds, pinchCenter, pinchDistance, zoomAt } from "./components/overlays/viewportLogic.js";
|
|
25
27
|
export { KAPI_SLOTS } from "./components/slotCatalog.js";
|
|
26
28
|
export { depsChanged } from "./hooks/asyncResourceLogic.js";
|
|
27
29
|
export { contrastRatio, formatHex, mixColors, parseColor, readableForeground, relativeLuminance } from "./hooks/colorLogic.js";
|
|
28
30
|
export { formatDate, formatDayLabel, formatRelativeTime, isoDateTime } from "./hooks/dateFormat.js";
|
|
29
31
|
export { directionOf, logicalArrowKey } from "./hooks/directionLogic.js";
|
|
30
32
|
export { downloadBlob, fileKind, fileNameFromContentDisposition, formatFileSize } from "./hooks/downloadLogic.js";
|
|
33
|
+
export { EMPTY_ELEMENT_SIZE, sameSize } from "./hooks/elementSizeLogic.js";
|
|
34
|
+
export { groupHotkeys, hotkeyKeys, hotkeyRegistry } from "./hooks/hotkeyRegistry.js";
|
|
31
35
|
export { SERVER_ONLINE_STATUS } from "./hooks/onlineStatusLogic.js";
|
|
32
36
|
export { onViewportChange, rafThrottle } from "./hooks/rafThrottle.js";
|
|
33
37
|
export { extendRange, rangeBetween, toggleWithRange } from "./hooks/rangeSelectLogic.js";
|
package/dist/logic.js
CHANGED
|
@@ -11,32 +11,36 @@ import { VIEWPORT_INSET_BOTTOM_VAR as x, placementViewport as S } from "./hooks/
|
|
|
11
11
|
import { directionOf as C, logicalArrowKey as w } from "./hooks/directionLogic.js";
|
|
12
12
|
import { DEFAULT_CALENDAR_LABELS as T, DEFAULT_DATE_PATTERN as E } from "./components/inputs/datePickerLogic.js";
|
|
13
13
|
import { cuitCheckDigit as D, formatCuit as O, formatCurrency as k, formatDni as A, isValidCuit as j, parseCurrency as M } from "./components/inputs/maskLogic.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
|
|
14
|
+
import { formatPercent as N } from "./components/feedback/progressLogic.js";
|
|
15
|
+
import { buildCsv as P, computePagination as F, csvCell as I, filterRows as L, filterSearchColumns as R, normalizeFilterText as z, paginateRows as B, sortRowsByColumn as V } from "./components/data/tableLogic.js";
|
|
16
|
+
import { parseDateRangeValue as H } from "./components/inputs/facetedSearchLogic.js";
|
|
17
|
+
import { initialPropsFormValues as U, isPropsFormFieldEmpty as W, missingPropsFormFields as G, reconcilePropsFormValues as K } from "./components/inputs/propsFormLogic.js";
|
|
18
|
+
import { DEFAULT_LINK_LABELS as q } from "./components/locale/linkLabels.js";
|
|
19
|
+
import { groupHotkeys as J, hotkeyKeys as Y, hotkeyRegistry as X } from "./hooks/hotkeyRegistry.js";
|
|
20
|
+
import { EMPTY_ELEMENT_SIZE as Z, sameSize as Q } from "./hooks/elementSizeLogic.js";
|
|
21
|
+
import { VIEWPORT_IDENTITY as $, clampViewport as ee, doubleTapScale as te, fitScale as ne, fitViewport as re, panBounds as ie, pinchCenter as ae, pinchDistance as oe, zoomAt as se } from "./components/overlays/viewportLogic.js";
|
|
22
|
+
import { SEQ_STEPS as ce } from "./components/data/heatmapLogic.js";
|
|
23
|
+
import { DIRECT_LABEL_MAX_BARS as le } from "./components/data/barChartLogic.js";
|
|
24
|
+
import { downloadBlob as ue, fileKind as de, fileNameFromContentDisposition as fe, formatFileSize as pe } from "./hooks/downloadLogic.js";
|
|
25
|
+
import { scatterAxis as me, scatterInside as he, scatterPosition as ge, scatterTickLabel as _e } from "./components/data/scatterLogic.js";
|
|
26
|
+
import { formatDate as ve, formatDayLabel as ye, formatRelativeTime as be, isoDateTime as xe } from "./hooks/dateFormat.js";
|
|
27
|
+
import { splitByQuery as Se } from "./components/display/highlightLogic.js";
|
|
28
|
+
import { diffHunks as Ce, diffLines as we, diffRows as Te } from "./components/display/diffLogic.js";
|
|
29
|
+
import { groupChatMessages as Ee } from "./components/chat/chatLogic.js";
|
|
30
|
+
import { NAV_BADGE_MAX as De, NAV_BADGE_PANEL_MAX as Oe } from "./components/navigation/navBadgeLogic.js";
|
|
31
|
+
import { DEFAULT_PAGE_FRACTION as ke, DEFAULT_SCROLL_EDGE_TOLERANCE as Ae, pageSize as je } from "./hooks/scrollEdgesLogic.js";
|
|
32
|
+
import { TOAST_ACTION_DURATION as Me, TOAST_DEFAULT_DURATION as Ne, kapiToast as Pe, toastStore as Fe } from "./components/feedback/toastStore.js";
|
|
33
|
+
import { DEFAULT_STORAGE_NAMESPACE as Ie } from "./hooks/storageLogic.js";
|
|
34
|
+
import { TOUR_STORAGE_KEY as Le, tourStorageKey as Re } from "./components/feedback/tourLogic.js";
|
|
35
|
+
import { DEFAULT_COUNTDOWN_LABELS as ze, DEFAULT_COUNTDOWN_LOCALE as Be, formatDuration as Ve } from "./components/feedback/countdownLogic.js";
|
|
36
|
+
import { SERVER_ONLINE_STATUS as He } from "./hooks/onlineStatusLogic.js";
|
|
37
|
+
import { DEFAULT_RESTORED_DURATION as Ue } from "./components/feedback/offlineBannerLogic.js";
|
|
38
|
+
import { tabId as We } from "./components/navigation/tabsLogic.js";
|
|
39
|
+
import { PANEL_GROUP_COUNT_MAX as Ge } from "./components/navigation/panelGroupLogic.js";
|
|
40
|
+
import { activeTocId as Ke, isAtBottom as qe, visibleTocItems as Je } from "./components/navigation/tocLogic.js";
|
|
41
|
+
import { kapiThemeScript as Ye } from "./hooks/themeScript.js";
|
|
42
|
+
import { NOTIFICATION_BELL_PLACEMENT as Xe } from "./components/layout/notificationBellLogic.js";
|
|
43
|
+
import { DEFAULT_ROOT_MARGIN as Ze } from "./hooks/scrollCollapseLogic.js";
|
|
44
|
+
import { depsChanged as Qe } from "./hooks/asyncResourceLogic.js";
|
|
45
|
+
import { KAPI_SLOTS as $e } from "./components/slotCatalog.js";
|
|
46
|
+
export { T as DEFAULT_CALENDAR_LABELS, ze as DEFAULT_COUNTDOWN_LABELS, Be as DEFAULT_COUNTDOWN_LOCALE, E as DEFAULT_DATE_PATTERN, d as DEFAULT_KAPI_LOCALE, q as DEFAULT_LINK_LABELS, ke as DEFAULT_PAGE_FRACTION, Ue as DEFAULT_RESTORED_DURATION, Ze as DEFAULT_ROOT_MARGIN, Ae as DEFAULT_SCROLL_EDGE_TOLERANCE, Ie as DEFAULT_STORAGE_NAMESPACE, f as DEFAULT_WEEK_START, le as DIRECT_LABEL_MAX_BARS, Z as EMPTY_ELEMENT_SIZE, $e as KAPI_SLOTS, De as NAV_BADGE_MAX, Oe as NAV_BADGE_PANEL_MAX, Xe as NOTIFICATION_BELL_PLACEMENT, Ge as PANEL_GROUP_COUNT_MAX, ce as SEQ_STEPS, He as SERVER_ONLINE_STATUS, Me as TOAST_ACTION_DURATION, Ne as TOAST_DEFAULT_DURATION, Le as TOUR_STORAGE_KEY, $ as VIEWPORT_IDENTITY, x as VIEWPORT_INSET_BOTTOM_VAR, Ke as activeTocId, P as buildCsv, o as checkThemeContrast, c as checkToneFamilyContrast, ee as clampViewport, F as computePagination, e as contrastRatio, I as csvCell, D as cuitCheckDigit, l as defineToneFamilies, Qe as depsChanged, s as deriveTheme, Ce as diffHunks, we as diffLines, Te as diffRows, C as directionOf, te as doubleTapScale, ue as downloadBlob, h as extendRange, de as fileKind, fe as fileNameFromContentDisposition, L as filterRows, R as filterSearchColumns, ne as fitScale, re as fitViewport, O as formatCuit, k as formatCurrency, ve as formatDate, ye as formatDayLabel, A as formatDni, Ve as formatDuration, pe as formatFileSize, t as formatHex, N as formatPercent, be as formatRelativeTime, Ee as groupChatMessages, J as groupHotkeys, Y as hotkeyKeys, X as hotkeyRegistry, U as initialPropsFormValues, qe as isAtBottom, W as isPropsFormFieldEmpty, j as isValidCuit, xe as isoDateTime, Ye as kapiThemeScript, Pe as kapiToast, w as logicalArrowKey, G as missingPropsFormFields, n as mixColors, z as normalizeFilterText, y as onViewportChange, je as pageSize, B as paginateRows, ie as panBounds, r as parseColor, M as parseCurrency, H as parseDateRangeValue, ae as pinchCenter, oe as pinchDistance, v as placePopover, S as placementViewport, b as rafThrottle, g as rangeBetween, i as readableForeground, K as reconcilePropsFormValues, a as relativeLuminance, p as resolveFormatLocale, Q as sameSize, me as scatterAxis, he as scatterInside, ge as scatterPosition, _e as scatterTickLabel, V as sortRowsByColumn, Se as splitByQuery, We as tabId, Fe as toastStore, _ as toggleWithRange, Re as tourStorageKey, Je as visibleTocItems, m as weekStartForLocale, u as withLabels, se as zoomAt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kapiuara/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Nicolás Arquiel",
|
|
6
6
|
"publishConfig": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
60
60
|
"@eslint/js": "^10.0.1",
|
|
61
61
|
"@fontsource-variable/roboto": "^5.3.0",
|
|
62
|
-
"@kapiuara/tokens": "0.
|
|
62
|
+
"@kapiuara/tokens": "0.4.0",
|
|
63
63
|
"@playwright/test": "1.63.0",
|
|
64
64
|
"@testing-library/dom": "10.4.2",
|
|
65
65
|
"@testing-library/jest-dom": "7.0.1",
|