@datum-cloud/datum-ui 3.6.0 → 3.7.1
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/dist/{action-row-DTvs91_3.mjs → action-row-BEzE9x37.mjs} +2 -3
- package/dist/{adapter-context-h0jCVqGO.mjs → adapter-context-XT749tyT.mjs} +1 -2
- package/dist/alert/index.mjs +1 -2
- package/dist/{alert-SAPwee1h.mjs → alert-CVckvox4.mjs} +2 -3
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation-BB_NLEWv.mjs → app-navigation-Bcx7hr9L.mjs} +10 -16
- package/dist/assistant/index.mjs +418 -88
- package/dist/autocomplete/index.mjs +1 -2
- package/dist/{autocomplete-BxtzndxZ.mjs → autocomplete-fSSmRLYK.mjs} +6 -8
- package/dist/autosearch/index.mjs +8 -10
- package/dist/avatar/index.mjs +2 -3
- package/dist/avatar-stack/index.mjs +1 -2
- package/dist/{avatar-stack-BUcsjhA6.mjs → avatar-stack-2ow672bR.mjs} +3 -4
- package/dist/badge/index.mjs +1 -2
- package/dist/{badge-DOZUr5DV.mjs → badge-D7A6GfWn.mjs} +2 -3
- package/dist/breadcrumb/index.mjs +1 -2
- package/dist/{breadcrumb-DmdhC8bE.mjs → breadcrumb-D97jAZ2N.mjs} +2 -3
- package/dist/button/index.mjs +2 -2
- package/dist/{button-CDPui_Ov.mjs → button-BU8TEbJ5.mjs} +3 -4
- package/dist/{button-CsdF61EI.mjs → button-C57mkFkS.mjs} +2 -3
- package/dist/{button-DoMqfQLu.mjs → button-Dj6cKrWj.mjs} +4 -6
- package/dist/button-group/index.mjs +1 -2
- package/dist/{button-group-DFrTH4L8.mjs → button-group-C3GKo-0p.mjs} +3 -4
- package/dist/calendar/index.mjs +4 -5
- package/dist/{calendar-date-picker-DPvVAW2I.mjs → calendar-date-picker-BUwgVaI1.mjs} +3 -4
- package/dist/card/index.mjs +1 -2
- package/dist/{card-save-bar-BZzNnKYj.mjs → card-save-bar-0XDpAJo_.mjs} +5 -8
- package/dist/chart/index.mjs +1 -2
- package/dist/{chart-EgzTS28l.mjs → chart-BsGsx2jb.mjs} +2 -3
- package/dist/checkbox/index.mjs +1 -2
- package/dist/{checkbox-C6P12fio.mjs → checkbox-CNljVnKj.mjs} +3 -5
- package/dist/{close.icon-DdXKQ4m0.mjs → close.icon-BCPmH4nN.mjs} +2 -3
- package/dist/code-editor/index.mjs +1 -2
- package/dist/{col-BYGWTB4j.mjs → col-CYHIfPJq.mjs} +5 -9
- package/dist/collapsible/index.mjs +1 -2
- package/dist/command/index.mjs +1 -2
- package/dist/{command-C0aGIYnQ.mjs → command-B0be-zU5.mjs} +3 -4
- package/dist/components/features/assistant/components/assistant-workspace.d.ts +8 -2
- package/dist/components/features/assistant/components/composer/prompt-card.d.ts +7 -2
- package/dist/components/features/assistant/components/conversation/conversation.d.ts +19 -5
- package/dist/components/features/assistant/components/message/assistant-message.d.ts +24 -4
- package/dist/components/features/assistant/components/message/choice-chips.d.ts +17 -0
- package/dist/components/features/assistant/components/message/index.d.ts +2 -0
- package/dist/components/features/assistant/components/message/plan-card.d.ts +20 -0
- package/dist/components/features/assistant/components/message/user-message.d.ts +1 -1
- package/dist/components/features/assistant/index.d.ts +2 -1
- package/dist/components/features/assistant/types.d.ts +66 -3
- package/dist/data-table/index.mjs +1 -2
- package/dist/{data-table-CJiQQ6TM.mjs → data-table-s2YrE79S.mjs} +39 -66
- package/dist/date-picker/index.mjs +3 -3
- package/dist/date-time/index.mjs +1 -2
- package/dist/{date-time-lZdefM4H.mjs → date-time-BBRVM9qb.mjs} +4 -6
- package/dist/date-time-picker/index.mjs +1 -2
- package/dist/{date-time-picker-CricsXgF.mjs → date-time-picker-CLdaGiGC.mjs} +3 -4
- package/dist/{date-time-range-picker-DM4AIvQ1.mjs → date-time-range-picker-RZX4CS4b.mjs} +36 -59
- package/dist/dialog/index.mjs +1 -2
- package/dist/{dialog-Gu70fban.mjs → dialog-C8RXIQYm.mjs} +4 -5
- package/dist/{dialog-CmkrpaYy.mjs → dialog-D6sDXaH6.mjs} +2 -3
- package/dist/dropdown/index.mjs +1 -2
- package/dist/{dropdown-Xvduih96.mjs → dropdown-DR9j3Ni_.mjs} +3 -4
- package/dist/{dropdown-menu-b8zY5Cs6.mjs → dropdown-menu-CjgTr8Ab.mjs} +2 -3
- package/dist/dropzone/index.mjs +1 -2
- package/dist/{dropzone-ihksfjN2.mjs → dropzone-Cer9E-VH.mjs} +6 -8
- package/dist/empty-content/index.mjs +1 -2
- package/dist/{empty-content-CmuVcU0P.mjs → empty-content-B2FZ9cyt.mjs} +8 -13
- package/dist/form/adapters/conform/index.mjs +4 -6
- package/dist/form/adapters/rhf/index.mjs +6 -9
- package/dist/form/index.mjs +2 -2
- package/dist/form/stepper/index.mjs +11 -16
- package/dist/{form-D4R6C609.mjs → form-C4XcxxjK.mjs} +54 -86
- package/dist/{form-context-DzB2a-dw.mjs → form-context-BRzt53M5.mjs} +1 -2
- package/dist/grid/index.mjs +1 -2
- package/dist/grouped-table/index.mjs +1 -2
- package/dist/{grouped-table-fHguJz9W.mjs → grouped-table-32RO2v7U.mjs} +16 -24
- package/dist/hooks/index.mjs +4 -4
- package/dist/{hooks-CwZ6hyI1.mjs → hooks-WVJbyhCz.mjs} +1 -2
- package/dist/hover-card/index.mjs +1 -2
- package/dist/{hover-card-BNOE5vT5.mjs → hover-card-DSt1lZGg.mjs} +3 -5
- package/dist/{icon-wrapper-DKfJlJd0.mjs → icon-wrapper-CIk2th6R.mjs} +1 -2
- package/dist/icons/index.mjs +3 -3
- package/dist/index.mjs +79 -79
- package/dist/input/index.mjs +1 -2
- package/dist/{input-j4tbmYYz.mjs → input-DsT5qkJn.mjs} +3 -4
- package/dist/{input-DR-XbgpD.mjs → input-Wl1K48ca.mjs} +2 -3
- package/dist/input-group/index.mjs +1 -2
- package/dist/{input-group-DieA8aBt.mjs → input-group-CCzvJIZM.mjs} +5 -6
- package/dist/input-number/index.mjs +1 -2
- package/dist/{input-number-TXmW-X9o.mjs → input-number-DF-bfIo8.mjs} +5 -6
- package/dist/input-with-addons/index.mjs +2 -3
- package/dist/label/index.mjs +1 -2
- package/dist/{label-Bk6FXsju.mjs → label-BR1V3Imy.mjs} +3 -5
- package/dist/{layers-DWYdrGmC.mjs → layers-XEND2WKv.mjs} +17 -26
- package/dist/loader-overlay/index.mjs +1 -2
- package/dist/{loader-overlay-DD94azZX.mjs → loader-overlay-JvB8IQo3.mjs} +3 -4
- package/dist/logo/index.mjs +2 -2
- package/dist/logo/themed/index.mjs +3 -4
- package/dist/{logo-C3FxD7jb.mjs → logo-CkzKra6H.mjs} +2 -3
- package/dist/{logo-text-Dpm5O6Kg.mjs → logo-text-B54YiEte.mjs} +6 -11
- package/dist/logs/fixtures/index.mjs +2 -4
- package/dist/logs/index.mjs +34 -56
- package/dist/map/index.mjs +1 -2
- package/dist/{map-leaflet-imports-S3kx8Q-S.mjs → map-leaflet-imports-Xdz9Xiaf.mjs} +1 -2
- package/dist/mobile-sheet/index.mjs +1 -2
- package/dist/{mobile-sheet-9TootJGg.mjs → mobile-sheet-1995HYY_.mjs} +6 -9
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-C3DYWO0a.mjs → more-actions-D9k1ILzT.mjs} +6 -7
- package/dist/{motion-DvGRWdsm.mjs → motion-DOrRbLmy.mjs} +1 -2
- package/dist/multi-select/index.mjs +1 -2
- package/dist/{multi-select-CF0Yq5yf.mjs → multi-select-BUgx6VZF.mjs} +11 -15
- package/dist/nprogress/index.mjs +1 -2
- package/dist/page-title/index.mjs +1 -2
- package/dist/{page-title-ipRWEOeM.mjs → page-title-Djl3LvPT.mjs} +2 -3
- package/dist/picker/index.mjs +2 -2
- package/dist/{picker-BoKXW6_s.mjs → picker-C0h30DHf.mjs} +14 -25
- package/dist/popover/index.mjs +1 -2
- package/dist/{popover-X82NwhX9.mjs → popover-7YxyP_W0.mjs} +3 -5
- package/dist/radio-group/index.mjs +1 -2
- package/dist/{radio-group-LduBVTnh.mjs → radio-group-0RxTmRnF.mjs} +3 -5
- package/dist/responsive-dropdown/index.mjs +1 -2
- package/dist/{responsive-dropdown-C_KKgLbH.mjs → responsive-dropdown-DsWgpE_i.mjs} +5 -6
- package/dist/responsive-popover/index.mjs +1 -2
- package/dist/{responsive-popover-8VcjBM2d.mjs → responsive-popover-DJYd8lOK.mjs} +5 -6
- package/dist/rich-text-content/index.mjs +1 -2
- package/dist/{rich-text-content-DNonBD39.mjs → rich-text-content-BiIIowBU.mjs} +2 -3
- package/dist/rich-text-editor/index.mjs +2 -2
- package/dist/{rich-text-editor-DP5JnAoO.mjs → rich-text-editor-ibngjhQV.mjs} +16 -24
- package/dist/select/index.mjs +1 -2
- package/dist/{select-D4pk9e2d.mjs → select-DemYhwnG.mjs} +3 -4
- package/dist/{select-daE2Nn0Z.mjs → select-jgK6wyXj.mjs} +2 -3
- package/dist/separator/index.mjs +1 -2
- package/dist/{separator-vbPD_WFQ.mjs → separator-DNiiN2BN.mjs} +2 -3
- package/dist/settings-nav/index.mjs +1 -2
- package/dist/{settings-nav-Hf3GrCGv.mjs → settings-nav-CCZdPD-x.mjs} +2 -3
- package/dist/sheet/index.mjs +2 -2
- package/dist/{sheet-DHn6C_rs.mjs → sheet-DEpEJ_Rk.mjs} +4 -5
- package/dist/{sheet-DXCZyMHI.mjs → sheet-DYPtVIb2.mjs} +2 -3
- package/dist/sidebar/index.mjs +1 -2
- package/dist/{sidebar-sbqOOFii.mjs → sidebar-DWnxQWQ8.mjs} +13 -18
- package/dist/skeleton/index.mjs +3 -4
- package/dist/{skeleton-DFExK4GX.mjs → skeleton-CDPoo7-M.mjs} +2 -3
- package/dist/spinner/index.mjs +1 -2
- package/dist/{spinner-C5Xv-i2C.mjs → spinner-DjEpx6Q3.mjs} +2 -3
- package/dist/{spinner.icon-BYUMQ8H-.mjs → spinner.icon-D0SKuGFG.mjs} +2 -3
- package/dist/stepper/index.mjs +1 -2
- package/dist/{stepper-dNvkipop.mjs → stepper-ZipxpzWY.mjs} +10 -11
- package/dist/styles/themes/alpha.css +1 -1
- package/dist/switch/index.mjs +1 -2
- package/dist/{switch-BaR-Vna4.mjs → switch-CWvVN9ea.mjs} +2 -3
- package/dist/table/index.mjs +2 -3
- package/dist/tabs/index.mjs +2 -3
- package/dist/tag-input/index.mjs +1 -2
- package/dist/{tag-input-c9OvWTSe.mjs → tag-input-DAMY703F.mjs} +8 -12
- package/dist/task-queue/index.mjs +1 -2
- package/dist/{task-queue-dropdown-CHPP5WIm.mjs → task-queue-dropdown-BgQSGDwg.mjs} +39 -59
- package/dist/textarea/index.mjs +1 -2
- package/dist/{textarea-DiSGxCBO.mjs → textarea-CvhdK6JY.mjs} +3 -4
- package/dist/{textarea-CCxpXJdh.mjs → textarea-D36SE4ki.mjs} +2 -3
- package/dist/theme/index.mjs +1 -2
- package/dist/{themes-Ba2bajuF.mjs → themes-BoxnQbbu.mjs} +8 -10
- package/dist/time-picker/index.mjs +1 -2
- package/dist/{time-picker-DQlc2gKW.mjs → time-picker-DgHjdcMZ.mjs} +3 -4
- package/dist/{to-api-format-QuJ81vQ9.mjs → to-api-format-EZInfj0_.mjs} +15 -23
- package/dist/toast/index.mjs +2 -2
- package/dist/{toast-BUPlDkN3.mjs → toast-CizxCEcK.mjs} +4 -6
- package/dist/tooltip/index.mjs +1 -2
- package/dist/{tooltip-DhbN1BDK.mjs → tooltip-OIySjJWW.mjs} +3 -5
- package/dist/transfer/index.mjs +1 -2
- package/dist/{transfer-DsshYgIk.mjs → transfer-91lwTOhX.mjs} +8 -14
- package/dist/{types-agDpVXBG.mjs → types-ChINrR8H.mjs} +7 -11
- package/dist/typography/index.mjs +1 -2
- package/dist/{typography-q71iTG72.mjs → typography-XFfN6PGD.mjs} +5 -6
- package/dist/{use-breakpoint-CwiUJSmk.mjs → use-breakpoint-zY_JYINK.mjs} +1 -2
- package/dist/{use-controllable-state-Dna7u3r9.mjs → use-controllable-state-DLeVgbAb.mjs} +1 -2
- package/dist/{use-copy-to-clipboard-DZDq_85T.mjs → use-copy-to-clipboard-CWKWHLxI.mjs} +1 -2
- package/dist/{use-debounced-search-input-yu_F0QBt.mjs → use-debounced-search-input-B4u28iLx.mjs} +1 -2
- package/dist/{use-deprecation-warning-DXrGc0jX.mjs → use-deprecation-warning-BS1V4IS5.mjs} +1 -2
- package/dist/{use-display-touched-CMEEv7aT.mjs → use-display-touched-BSq0Ninl.mjs} +3 -5
- package/dist/{use-option-picker-s2bUYwXC.mjs → use-option-picker-CBMU72LU.mjs} +6 -9
- package/dist/{use-toast-Bpq0yJIT.mjs → use-toast-CZAZeS95.mjs} +3 -5
- package/dist/utils/index.mjs +3 -3
- package/dist/{utils-CA4QEIJ8.mjs → utils-CPJ5MCfd.mjs} +1 -2
- package/dist/{utils-Bu32wN-x.mjs → utils-CTIuhCOs.mjs} +1 -2
- package/dist/visually-hidden/index.mjs +1 -2
- package/dist/{visuallyhidden-D7L_qs8b.mjs → visuallyhidden-Mg4OsZ-l.mjs} +1 -2
- package/dist/{zod-helpers-YEhVo2S-.mjs → zod-helpers-JcfFVJJd.mjs} +1 -2
- package/package.json +20 -20
package/dist/logs/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import { t as Badge } from "../badge-DOZUr5DV.mjs";
|
|
3
|
-
import { t as Button } from "../button-DoMqfQLu.mjs";
|
|
4
|
-
import { t as Icon } from "../icon-wrapper-DKfJlJd0.mjs";
|
|
5
|
-
import { t as Checkbox } from "../checkbox-C6P12fio.mjs";
|
|
6
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../collapsible/index.mjs";
|
|
7
|
-
import { t as Input } from "../input-j4tbmYYz.mjs";
|
|
8
|
-
import { t as Sheet } from "../sheet-DHn6C_rs.mjs";
|
|
9
|
-
import { t as useBreakpoint } from "../use-breakpoint-CwiUJSmk.mjs";
|
|
1
|
+
import { t as cn } from "../utils-CTIuhCOs.mjs";
|
|
10
2
|
import { Skeleton } from "../skeleton/index.mjs";
|
|
3
|
+
import { t as Badge } from "../badge-D7A6GfWn.mjs";
|
|
4
|
+
import { t as useBreakpoint } from "../use-breakpoint-zY_JYINK.mjs";
|
|
5
|
+
import { t as useCopyToClipboard } from "../use-copy-to-clipboard-CWKWHLxI.mjs";
|
|
6
|
+
import { t as Button } from "../button-Dj6cKrWj.mjs";
|
|
7
|
+
import { t as Sheet } from "../sheet-DEpEJ_Rk.mjs";
|
|
8
|
+
import { t as Icon } from "../icon-wrapper-CIk2th6R.mjs";
|
|
9
|
+
import { c as getBrowserTimezone, t as DateTime, u as getTimezoneAbbreviation } from "../date-time-BBRVM9qb.mjs";
|
|
10
|
+
import { t as Checkbox } from "../checkbox-CNljVnKj.mjs";
|
|
11
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../collapsible/index.mjs";
|
|
12
|
+
import { t as DateTimeRangePicker } from "../date-time-range-picker-RZX4CS4b.mjs";
|
|
11
13
|
import { TableBody, TableCell, TableHead, TableHeader, TableRow } from "../table/index.mjs";
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as getBrowserTimezone, t as DateTime, u as getTimezoneAbbreviation } from "../date-time-lZdefM4H.mjs";
|
|
14
|
-
import { t as useCopyToClipboard } from "../use-copy-to-clipboard-DZDq_85T.mjs";
|
|
14
|
+
import { t as Input } from "../input-DsT5qkJn.mjs";
|
|
15
15
|
import { Bot, ChevronDown, ChevronUp, Clock, Copy, Download, HelpCircle, Inbox, Monitor, RefreshCw, Search, SlidersHorizontal, Smartphone, Tablet, TriangleAlert, X } from "lucide-react";
|
|
16
16
|
import { createContext, memo, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
17
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
19
19
|
import { format, isSameDay } from "date-fns";
|
|
20
|
-
|
|
20
|
+
// src/components/features/logs/utils/format-timestamp.ts
|
|
21
21
|
function formatLogTimestampParts(date) {
|
|
22
22
|
return {
|
|
23
23
|
date: format(date, "MMM dd").toUpperCase(),
|
|
@@ -28,8 +28,7 @@ function formatLogTimestamp(date) {
|
|
|
28
28
|
const { date: day, time } = formatLogTimestampParts(date);
|
|
29
29
|
return `${day} ${time}`;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
//#region src/components/features/logs/utils/host.ts
|
|
31
|
+
// src/components/features/logs/utils/host.ts
|
|
33
32
|
/**
|
|
34
33
|
* Host shown for an HTTP access log. An explicit `host` label (set by the
|
|
35
34
|
* host app) wins; otherwise prefer the name the client asked for
|
|
@@ -39,8 +38,7 @@ function formatLogTimestamp(date) {
|
|
|
39
38
|
function logRequestHost(labels) {
|
|
40
39
|
return labels.host?.trim() || labels.requested_server_name?.trim() || labels.x_forwarded_host?.trim() || labels.authority?.trim() || labels.resource_name?.trim() || void 0;
|
|
41
40
|
}
|
|
42
|
-
|
|
43
|
-
//#region src/components/features/logs/utils/severity.ts
|
|
41
|
+
// src/components/features/logs/utils/severity.ts
|
|
44
42
|
const SEVERITY_BADGE = {
|
|
45
43
|
ERROR: "danger",
|
|
46
44
|
FATAL: "danger",
|
|
@@ -71,8 +69,7 @@ function httpStatusTextClass(status) {
|
|
|
71
69
|
default: return "text-muted-foreground";
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
|
-
|
|
75
|
-
//#region src/components/features/logs/components/status-badge.tsx
|
|
72
|
+
// src/components/features/logs/components/status-badge.tsx
|
|
76
73
|
function LogsSeverityBadge({ severity }) {
|
|
77
74
|
const unlabeled = !severity;
|
|
78
75
|
return /* @__PURE__ */ jsx(Badge, {
|
|
@@ -108,8 +105,7 @@ function LogsStatusBadge({ parsed }) {
|
|
|
108
105
|
})]
|
|
109
106
|
});
|
|
110
107
|
}
|
|
111
|
-
|
|
112
|
-
//#region src/components/features/logs/components/columns.tsx
|
|
108
|
+
// src/components/features/logs/components/columns.tsx
|
|
113
109
|
const DEFAULT_FIXED_WIDTH = 160;
|
|
114
110
|
/** `MMM dd HH:mm:ss.SS` — e.g. `SEP 10 12:03:37.79`. */
|
|
115
111
|
const TIME_CHS = 18;
|
|
@@ -316,8 +312,7 @@ function columnSkeleton(column, row) {
|
|
|
316
312
|
function columnHeader(column) {
|
|
317
313
|
return column.header;
|
|
318
314
|
}
|
|
319
|
-
|
|
320
|
-
//#region src/components/features/logs/hooks/use-logs.ts
|
|
315
|
+
// src/components/features/logs/hooks/use-logs.ts
|
|
321
316
|
const LogsContext = createContext(null);
|
|
322
317
|
function useLogs() {
|
|
323
318
|
const context = use(LogsContext);
|
|
@@ -332,8 +327,7 @@ function logsDetailMaxWidth(node) {
|
|
|
332
327
|
if (parentWidth > 400) return parentWidth;
|
|
333
328
|
return typeof window === "undefined" ? 400 : window.innerWidth;
|
|
334
329
|
}
|
|
335
|
-
|
|
336
|
-
//#region src/components/features/logs/utils/parse-log-line.ts
|
|
330
|
+
// src/components/features/logs/utils/parse-log-line.ts
|
|
337
331
|
const ACCESS_LOG_RE = /^(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS)\s+(\S+)\s+(\d{3})\s+(\d+)ms\b/i;
|
|
338
332
|
const PATH_TOKEN_RE = /(?:^|\s)(\/\S+)/;
|
|
339
333
|
/**
|
|
@@ -437,8 +431,7 @@ function stripOnce(line, token) {
|
|
|
437
431
|
if (index === -1) return line;
|
|
438
432
|
return `${line.slice(0, index)}${line.slice(index + token.length)}`.replace(/\s+/g, " ").trim();
|
|
439
433
|
}
|
|
440
|
-
|
|
441
|
-
//#region src/components/features/logs/utils/user-agent.ts
|
|
434
|
+
// src/components/features/logs/utils/user-agent.ts
|
|
442
435
|
/** Label keys, in order, that may carry the client's User-Agent header. */
|
|
443
436
|
const USER_AGENT_LABEL_KEYS = [
|
|
444
437
|
"user_agent",
|
|
@@ -661,8 +654,7 @@ function parseUserAgent(raw) {
|
|
|
661
654
|
raw: ua
|
|
662
655
|
};
|
|
663
656
|
}
|
|
664
|
-
|
|
665
|
-
//#region src/components/features/logs/components/detail.tsx
|
|
657
|
+
// src/components/features/logs/components/detail.tsx
|
|
666
658
|
const DEVICE_ICONS = {
|
|
667
659
|
desktop: Monitor,
|
|
668
660
|
mobile: Smartphone,
|
|
@@ -1035,8 +1027,7 @@ function LogsDetail({ className }) {
|
|
|
1035
1027
|
}), /* @__PURE__ */ jsx(DetailBody, {})]
|
|
1036
1028
|
}) });
|
|
1037
1029
|
}
|
|
1038
|
-
|
|
1039
|
-
//#region src/components/features/logs/utils/time-range.ts
|
|
1030
|
+
// src/components/features/logs/utils/time-range.ts
|
|
1040
1031
|
const MINUTE_MS$1 = 6e4;
|
|
1041
1032
|
const HOUR_MS = 60 * MINUTE_MS$1;
|
|
1042
1033
|
const DAY_MS$1 = 24 * HOUR_MS;
|
|
@@ -1110,8 +1101,7 @@ function logTimeRangeLabel(range) {
|
|
|
1110
1101
|
function filtersAreActive(filters) {
|
|
1111
1102
|
return Object.values(filters).some((values) => values.length > 0);
|
|
1112
1103
|
}
|
|
1113
|
-
|
|
1114
|
-
//#region src/components/features/logs/components/filters.tsx
|
|
1104
|
+
// src/components/features/logs/components/filters.tsx
|
|
1115
1105
|
function LogsFilterGroup({ facet, defaultOpen }) {
|
|
1116
1106
|
const { filters, toggleFilterValue } = useLogs();
|
|
1117
1107
|
const selected = filters[facet.name] ?? [];
|
|
@@ -1261,8 +1251,7 @@ function LogsFilters({ className }) {
|
|
|
1261
1251
|
})]
|
|
1262
1252
|
});
|
|
1263
1253
|
}
|
|
1264
|
-
|
|
1265
|
-
//#region src/components/features/logs/components/table.tsx
|
|
1254
|
+
// src/components/features/logs/components/table.tsx
|
|
1266
1255
|
const SKELETON_ROWS = 12;
|
|
1267
1256
|
/** Centred message shared by the empty and error states. */
|
|
1268
1257
|
function LogsTableState({ icon, title, description, action, slot, role, tone = "muted" }) {
|
|
@@ -1503,8 +1492,7 @@ function formatBucketSummary(bucket, spanMs) {
|
|
|
1503
1492
|
const noun = bucket.count === 1 ? "log" : "logs";
|
|
1504
1493
|
return `${bucket.count} ${noun} · ${formatTimelineTick(start, tickSpan)} – ${formatTimelineTick(end, tickSpan)}`;
|
|
1505
1494
|
}
|
|
1506
|
-
|
|
1507
|
-
//#region src/components/features/logs/components/timeline.tsx
|
|
1495
|
+
// src/components/features/logs/components/timeline.tsx
|
|
1508
1496
|
const SKELETON_HEIGHTS = [
|
|
1509
1497
|
18,
|
|
1510
1498
|
34,
|
|
@@ -1573,8 +1561,7 @@ function LogsTimeline({ className }) {
|
|
|
1573
1561
|
})]
|
|
1574
1562
|
});
|
|
1575
1563
|
}
|
|
1576
|
-
|
|
1577
|
-
//#region src/components/features/logs/components/toolbar.tsx
|
|
1564
|
+
// src/components/features/logs/components/toolbar.tsx
|
|
1578
1565
|
function LogsSearch({ placeholder = "Search logs...", className }) {
|
|
1579
1566
|
const { search, setSearch } = useLogs();
|
|
1580
1567
|
const [value, setValue] = useState(search);
|
|
@@ -1652,8 +1639,7 @@ function LogsToolbar({ children, className }) {
|
|
|
1652
1639
|
]
|
|
1653
1640
|
});
|
|
1654
1641
|
}
|
|
1655
|
-
|
|
1656
|
-
//#region src/components/features/logs/components/explorer.tsx
|
|
1642
|
+
// src/components/features/logs/components/explorer.tsx
|
|
1657
1643
|
function LogsExplorer({ className }) {
|
|
1658
1644
|
const isDesktop = useBreakpoint() === "desktop";
|
|
1659
1645
|
const [filtersOpen, setFiltersOpen] = useState(false);
|
|
@@ -1701,8 +1687,7 @@ function LogsExplorer({ className }) {
|
|
|
1701
1687
|
]
|
|
1702
1688
|
});
|
|
1703
1689
|
}
|
|
1704
|
-
|
|
1705
|
-
//#region src/components/features/logs/hooks/use-controllable-state.ts
|
|
1690
|
+
// src/components/features/logs/hooks/use-controllable-state.ts
|
|
1706
1691
|
function useControllableState({ value, defaultValue, onChange }) {
|
|
1707
1692
|
const [internal, setInternal] = useState(defaultValue);
|
|
1708
1693
|
const isControlled = value !== void 0;
|
|
@@ -1711,8 +1696,7 @@ function useControllableState({ value, defaultValue, onChange }) {
|
|
|
1711
1696
|
onChange?.(next);
|
|
1712
1697
|
}, [isControlled, onChange])];
|
|
1713
1698
|
}
|
|
1714
|
-
|
|
1715
|
-
//#region src/components/features/logs/utils/constants.ts
|
|
1699
|
+
// src/components/features/logs/utils/constants.ts
|
|
1716
1700
|
const DEFAULT_LOG_COLUMNS = [
|
|
1717
1701
|
"time",
|
|
1718
1702
|
"severity",
|
|
@@ -1742,8 +1726,7 @@ const SEVERITY_ORDER = [
|
|
|
1742
1726
|
"TRACE"
|
|
1743
1727
|
];
|
|
1744
1728
|
const DEFAULT_LOGQL_MATCHER = "{service_name=~\".+\"}";
|
|
1745
|
-
|
|
1746
|
-
//#region src/components/features/logs/utils/facets.ts
|
|
1729
|
+
// src/components/features/logs/utils/facets.ts
|
|
1747
1730
|
function facetLabel(name) {
|
|
1748
1731
|
const mapped = FACET_LABELS[name];
|
|
1749
1732
|
if (mapped) return mapped;
|
|
@@ -1821,8 +1804,7 @@ function searchableLogText(entry) {
|
|
|
1821
1804
|
function entryMatchesSearch(entry, query) {
|
|
1822
1805
|
return searchableLogText(entry).includes(query);
|
|
1823
1806
|
}
|
|
1824
|
-
|
|
1825
|
-
//#region src/components/features/logs/components/root.tsx
|
|
1807
|
+
// src/components/features/logs/components/root.tsx
|
|
1826
1808
|
/** Return the previous array while its items are shallow-equal to the new one. */
|
|
1827
1809
|
function useShallowArray(next) {
|
|
1828
1810
|
const ref = useRef(next);
|
|
@@ -1957,8 +1939,7 @@ function LogsRoot({ entries, facets, histogram, timeRange, defaultTimeRange, fil
|
|
|
1957
1939
|
})
|
|
1958
1940
|
});
|
|
1959
1941
|
}
|
|
1960
|
-
|
|
1961
|
-
//#region src/components/features/logs/logs.tsx
|
|
1942
|
+
// src/components/features/logs/logs.tsx
|
|
1962
1943
|
const Logs = {
|
|
1963
1944
|
Root: LogsRoot,
|
|
1964
1945
|
Explorer: LogsExplorer,
|
|
@@ -1972,8 +1953,7 @@ const Logs = {
|
|
|
1972
1953
|
Table: LogsTable,
|
|
1973
1954
|
Detail: LogsDetail
|
|
1974
1955
|
};
|
|
1975
|
-
|
|
1976
|
-
//#region src/components/features/logs/utils/build-logql.ts
|
|
1956
|
+
// src/components/features/logs/utils/build-logql.ts
|
|
1977
1957
|
/** Loki/Prometheus label names. Anything else is dropped, not interpolated. */
|
|
1978
1958
|
const LOKI_LABEL_NAME = /^[a-z_]\w*$/i;
|
|
1979
1959
|
function escapeQuoted(value) {
|
|
@@ -2001,8 +1981,7 @@ function buildLogQL({ matchers, lineContains } = {}) {
|
|
|
2001
1981
|
if (!text) return selector;
|
|
2002
1982
|
return `${selector} |= "${escapeQuoted(text)}"`;
|
|
2003
1983
|
}
|
|
2004
|
-
|
|
2005
|
-
//#region src/components/features/logs/utils/flatten-loki.ts
|
|
1984
|
+
// src/components/features/logs/utils/flatten-loki.ts
|
|
2006
1985
|
function nsToDate(timestampNs) {
|
|
2007
1986
|
try {
|
|
2008
1987
|
const ms = BigInt(timestampNs) / 1000000n;
|
|
@@ -2045,5 +2024,4 @@ function flattenLokiStreams(response) {
|
|
|
2045
2024
|
});
|
|
2046
2025
|
return entries;
|
|
2047
2026
|
}
|
|
2048
|
-
//#endregion
|
|
2049
2027
|
export { LOG_TIME_PRESETS, Logs, buildLogQL, facetsFromEntries, filterEntries, flattenLokiStreams, formatHttpLogLine, histogramFromEntries, httpStatusBadgeType, httpStatusTextClass, lastThirtyMinutes, logLineDisplay, logRequestHost, logTimeRangeLabel, logUserAgent, nsToDate, parseLogLine, parseUserAgent, resolveLogColumns, resolveLogTimeRange, searchableLogText, severityBadgeType, splitPathQuery, useLogs };
|
package/dist/map/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Map, MapCircle, MapCircleMarker, MapControlContainer, MapDrawCircle, MapDrawControl, MapDrawDelete, MapDrawEdit, MapDrawMarker, MapDrawPolygon, MapDrawPolyline, MapDrawRectangle, MapDrawUndo, MapFeatureGroup, MapFullscreenControl, MapLayerGroup, MapLayers, MapLayersControl, MapLocateControl, MapMarker, MapMarkerClusterGroup, MapPolygon, MapPolyline, MapPopup, MapRectangle, MapSearchControl, MapTileLayer, MapTooltip, MapZoomControl, PlaceAutocomplete, useLeaflet };
|
|
1
|
+
export { k as Map, b as MapCircle, x as MapCircleMarker, h as MapControlContainer, o as MapDrawCircle, s as MapDrawControl, c as MapDrawDelete, l as MapDrawEdit, u as MapDrawMarker, d as MapDrawPolygon, f as MapDrawPolyline, p as MapDrawRectangle, m as MapDrawUndo, t as MapFeatureGroup, g as MapFullscreenControl, n as MapLayerGroup, r as MapLayers, i as MapLayersControl, _ as MapLocateControl, S as MapMarker, C as MapMarkerClusterGroup, w as MapPolygon, T as MapPolyline, E as MapPopup, D as MapRectangle, v as MapSearchControl, a as MapTileLayer, O as MapTooltip, y as MapZoomControl, j as PlaceAutocomplete, A as useLeaflet } from "../layers-XEND2WKv.mjs";
|
|
@@ -3,5 +3,4 @@ import "leaflet-draw/dist/leaflet.draw.css";
|
|
|
3
3
|
import "leaflet.fullscreen/dist/Control.FullScreen.css";
|
|
4
4
|
import "leaflet.markercluster/dist/MarkerCluster.Default.css";
|
|
5
5
|
import "leaflet.markercluster/dist/MarkerCluster.css";
|
|
6
|
-
|
|
7
|
-
export { useMap, useMapEvents };
|
|
6
|
+
export { useMap, useMapEvents } from "react-leaflet";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { InSheetContext, MobileSheet, ResponsiveSheetTrigger, useInSheet };
|
|
1
|
+
export { r as InSheetContext, n as MobileSheet, t as ResponsiveSheetTrigger, i as useInSheet } from "../mobile-sheet-1995HYY_.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { r as SheetContent, t as Sheet } from "./sheet-DEpEJ_Rk.mjs";
|
|
3
|
+
import { a as SheetHeader, o as SheetTitle, r as SheetDescription } from "./sheet-DYPtVIb2.mjs";
|
|
4
4
|
import { createContext, use } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Slot } from "@radix-ui/react-slot";
|
|
7
|
-
|
|
7
|
+
// src/components/base/mobile-sheet/context.ts
|
|
8
8
|
/**
|
|
9
9
|
* Signals that children are rendered inside a MobileSheet. Responsive
|
|
10
10
|
* primitives (ResponsivePopover, ResponsiveDropdown) read this context
|
|
@@ -19,8 +19,7 @@ const InSheetContext = createContext(false);
|
|
|
19
19
|
function useInSheet() {
|
|
20
20
|
return use(InSheetContext);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
//#region src/components/base/mobile-sheet/mobile-sheet.tsx
|
|
22
|
+
// src/components/base/mobile-sheet/mobile-sheet.tsx
|
|
24
23
|
function MobileSheet({ open, onOpenChange, title, description, children, footer, className }) {
|
|
25
24
|
return /* @__PURE__ */ jsx(Sheet, {
|
|
26
25
|
open,
|
|
@@ -58,8 +57,7 @@ function MobileSheet({ open, onOpenChange, title, description, children, footer,
|
|
|
58
57
|
})
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
|
-
|
|
62
|
-
//#region src/components/base/mobile-sheet/responsive-sheet-trigger.tsx
|
|
60
|
+
// src/components/base/mobile-sheet/responsive-sheet-trigger.tsx
|
|
63
61
|
/**
|
|
64
62
|
* Shared mobile branch for ResponsivePopover and ResponsiveDropdown: renders the
|
|
65
63
|
* trigger via Radix Slot and opens a MobileSheet.
|
|
@@ -92,5 +90,4 @@ function ResponsiveSheetTrigger({ open, onOpenChange, trigger, children, sheetTi
|
|
|
92
90
|
children
|
|
93
91
|
})] });
|
|
94
92
|
}
|
|
95
|
-
//#endregion
|
|
96
93
|
export { useInSheet as i, MobileSheet as n, InSheetContext as r, ResponsiveSheetTrigger as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as ActionRow } from "../action-row-
|
|
2
|
-
import { t as MoreActions } from "../more-actions-
|
|
1
|
+
import { t as ActionRow } from "../action-row-BEzE9x37.mjs";
|
|
2
|
+
import { t as MoreActions } from "../more-actions-D9k1ILzT.mjs";
|
|
3
3
|
export { ActionRow, MoreActions };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as ActionRow } from "./action-row-
|
|
1
|
+
import { t as Button } from "./button-Dj6cKrWj.mjs";
|
|
2
|
+
import { t as Tooltip } from "./tooltip-OIySjJWW.mjs";
|
|
3
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
4
|
+
import { t as ResponsiveDropdown } from "./responsive-dropdown-DsWgpE_i.mjs";
|
|
5
|
+
import { t as ActionRow } from "./action-row-BEzE9x37.mjs";
|
|
6
6
|
import { Ellipsis } from "lucide-react";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/features/more-actions/more-actions.tsx
|
|
10
10
|
function MoreActions(props) {
|
|
11
11
|
const { row, actions, className, disabled = false, iconClassName, responsive = true, sheetTitle = "Actions" } = props;
|
|
12
12
|
const [open, setOpen] = useState(false);
|
|
@@ -49,5 +49,4 @@ function MoreActions(props) {
|
|
|
49
49
|
})
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { MoreActions as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/motion.ts
|
|
2
2
|
/**
|
|
3
3
|
* Motion tokens — the single source of truth for JS-driven animation
|
|
4
4
|
* (Motion / `motion/react`). Mirrors the CSS motion tokens defined in
|
|
@@ -42,5 +42,4 @@ const DURATION = {
|
|
|
42
42
|
/** 200ms — drawer/sheet exit (faster than enter). */
|
|
43
43
|
drawerOut: .2
|
|
44
44
|
};
|
|
45
|
-
//#endregion
|
|
46
45
|
export { EASE as n, DURATION as t };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { MultiSelect };
|
|
1
|
+
export { t as MultiSelect } from "../multi-select-BUgx6VZF.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as LoaderOverlay } from "./loader-overlay-
|
|
7
|
-
import {
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { t as useControllableState } from "./use-controllable-state-DLeVgbAb.mjs";
|
|
3
|
+
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-CBMU72LU.mjs";
|
|
4
|
+
import { t as ResponsivePopover } from "./responsive-popover-DJYd8lOK.mjs";
|
|
5
|
+
import { t as Separator } from "./separator-DNiiN2BN.mjs";
|
|
6
|
+
import { t as LoaderOverlay } from "./loader-overlay-JvB8IQo3.mjs";
|
|
7
|
+
import { t as Badge } from "./badge-D7A6GfWn.mjs";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { CheckIcon, ChevronDown, WandSparkles, XCircle, XIcon } from "lucide-react";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/features/multi-select/multi-select-options.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Presentational popover command list for the multi-select: the searchable
|
|
15
15
|
* option list with a checkbox affordance per row. Selection state and search
|
|
@@ -35,8 +35,7 @@ function MultiSelectOptions({ picker, searchPlaceholder, emptyContent, header, f
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
MultiSelectOptions.displayName = "MultiSelectOptions";
|
|
38
|
-
|
|
39
|
-
//#region src/components/features/multi-select/multi-select-shared.ts
|
|
38
|
+
// src/components/features/multi-select/multi-select-shared.ts
|
|
40
39
|
/**
|
|
41
40
|
* Variants for the multi-select badges to handle different styles.
|
|
42
41
|
* Uses class-variance-authority (cva) to define styles based on the `variant` prop.
|
|
@@ -53,8 +52,7 @@ const multiSelectVariants = cva("flex items-center gap-1 rounded-md border px-2
|
|
|
53
52
|
} },
|
|
54
53
|
defaultVariants: { variant: "default" }
|
|
55
54
|
});
|
|
56
|
-
|
|
57
|
-
//#region src/components/features/multi-select/selected-badge-list.tsx
|
|
55
|
+
// src/components/features/multi-select/selected-badge-list.tsx
|
|
58
56
|
/**
|
|
59
57
|
* A keyboard-operable icon control. The badge/clear affordances live inside the
|
|
60
58
|
* trigger button, so they cannot be real nested `<button>`s (invalid DOM). We
|
|
@@ -161,8 +159,7 @@ function SelectedBadgeList({ selectedOptions, maxCount, variant, badgeClassName,
|
|
|
161
159
|
});
|
|
162
160
|
}
|
|
163
161
|
SelectedBadgeList.displayName = "SelectedBadgeList";
|
|
164
|
-
|
|
165
|
-
//#region src/components/features/multi-select/multi-select.tsx
|
|
162
|
+
// src/components/features/multi-select/multi-select.tsx
|
|
166
163
|
const EMPTY_ARRAY = [];
|
|
167
164
|
function MultiSelect({ options, onValueChange, variant, defaultValue = EMPTY_ARRAY, value, placeholder = "Select options", animation = 0, maxCount = 3, modalPopover = false, className, boxClassName, actions, onBadgeClick, badgeClassName, clickableBadges = false, showCloseButton = true, showClearButton = true, showSelectAll = false, disabled = false, id, name, isLoading = false, emptyContent = "No results found.", responsive = true, sheetTitle, asChild: _asChild, onClick: onTriggerClick, ...rest }) {
|
|
168
165
|
const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
|
|
@@ -306,5 +303,4 @@ function MultiSelect({ options, onValueChange, variant, defaultValue = EMPTY_ARR
|
|
|
306
303
|
] });
|
|
307
304
|
}
|
|
308
305
|
MultiSelect.displayName = "MultiSelect";
|
|
309
|
-
//#endregion
|
|
310
306
|
export { MultiSelect as t };
|
package/dist/nprogress/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import NProgress from "nprogress";
|
|
2
|
-
|
|
2
|
+
// src/components/features/nprogress/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* NProgress Module
|
|
5
5
|
*
|
|
@@ -26,5 +26,4 @@ function configureProgress() {
|
|
|
26
26
|
trickleSpeed: 100
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
//#endregion
|
|
30
29
|
export { configureProgress, startProgress, stopProgress };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { PageTitle };
|
|
1
|
+
export { t as PageTitle } from "../page-title-Djl3LvPT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/features/page-title/page-title.tsx
|
|
4
4
|
function PageTitle({ title, description, actions, className, titleClassName, descriptionClassName, actionsClassName, actionsPosition = "inline" }) {
|
|
5
5
|
const isInline = actionsPosition === "inline";
|
|
6
6
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -21,5 +21,4 @@ function PageTitle({ title, description, actions, className, titleClassName, des
|
|
|
21
21
|
})]
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { PageTitle as t };
|
package/dist/picker/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as formatInTimezone, B as isDateBearingMode, C as PickerClear, D as PickerCalendar, E as PickerContent, F as zonedDateToIso, H as isTimeBearingMode, I as ALLOWED_STEPS, L as DATE_BEARING_MODES, M as getBrowserTimezone, N as getTimezoneOffset, O as PickerContext, P as isoToZonedDate, R as RANGE_MODES, S as PickerCancel, T as PickerReset, V as isRangeMode, _ as parseTimeString, a as PickerTimezoneIndicator, b as PickerPresets, d as DATE_PRESETS, f as getDefaultPresets, g as isValidTimeString, h as formatTimeLabel, i as PickerTrigger, j as formatTimezoneLabel, k as usePickerContext, l as usePresets, m as dateToYYYYMMDD, o as PickerTimeInput, p as usePickerState, r as formatPickerValue, s as useTimeSlots, t as DateTimeRangePicker, u as DATETIME_PRESETS, v as resolveCommit, w as PickerFooter, x as PickerApply, y as useKeyboardShortcuts, z as TIME_BEARING_MODES } from "../date-time-range-picker-
|
|
2
|
-
import { a as DateRangePicker, c as getDaysDifference, d as isSameDateRange, f as isSameStringRange, i as DateRangeTimePicker, l as isRangeValid, m as PickerTimezoneSelect, n as TimePicker, o as DatePicker, p as Picker, r as DateTimePicker, s as clampRange, t as TimeRangePicker, u as isSameDate } from "../picker-
|
|
1
|
+
import { A as formatInTimezone, B as isDateBearingMode, C as PickerClear, D as PickerCalendar, E as PickerContent, F as zonedDateToIso, H as isTimeBearingMode, I as ALLOWED_STEPS, L as DATE_BEARING_MODES, M as getBrowserTimezone, N as getTimezoneOffset, O as PickerContext, P as isoToZonedDate, R as RANGE_MODES, S as PickerCancel, T as PickerReset, V as isRangeMode, _ as parseTimeString, a as PickerTimezoneIndicator, b as PickerPresets, d as DATE_PRESETS, f as getDefaultPresets, g as isValidTimeString, h as formatTimeLabel, i as PickerTrigger, j as formatTimezoneLabel, k as usePickerContext, l as usePresets, m as dateToYYYYMMDD, o as PickerTimeInput, p as usePickerState, r as formatPickerValue, s as useTimeSlots, t as DateTimeRangePicker, u as DATETIME_PRESETS, v as resolveCommit, w as PickerFooter, x as PickerApply, y as useKeyboardShortcuts, z as TIME_BEARING_MODES } from "../date-time-range-picker-RZX4CS4b.mjs";
|
|
2
|
+
import { a as DateRangePicker, c as getDaysDifference, d as isSameDateRange, f as isSameStringRange, i as DateRangeTimePicker, l as isRangeValid, m as PickerTimezoneSelect, n as TimePicker, o as DatePicker, p as Picker, r as DateTimePicker, s as clampRange, t as TimeRangePicker, u as isSameDate } from "../picker-C0h30DHf.mjs";
|
|
3
3
|
export { ALLOWED_STEPS, DATETIME_PRESETS, DATE_BEARING_MODES, DATE_PRESETS, DatePicker, DateRangePicker, DateRangeTimePicker, DateTimePicker, DateTimeRangePicker, Picker, PickerApply, PickerCalendar, PickerCancel, PickerClear, PickerContent, PickerContext, PickerFooter, PickerPresets, PickerReset, PickerTimeInput, PickerTimezoneIndicator, PickerTimezoneSelect, PickerTrigger, RANGE_MODES, TIME_BEARING_MODES, TimePicker, TimeRangePicker, clampRange, dateToYYYYMMDD, formatInTimezone, formatPickerValue, formatTimeLabel, formatTimezoneLabel, getBrowserTimezone, getDaysDifference, getDefaultPresets, getTimezoneOffset, isDateBearingMode, isRangeMode, isRangeValid, isSameDate, isSameDateRange, isSameStringRange, isTimeBearingMode, isValidTimeString, isoToZonedDate, parseTimeString, resolveCommit, useKeyboardShortcuts, usePickerContext, usePickerState, usePresets, useTimeSlots, zonedDateToIso };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-
|
|
3
|
-
import { C as PickerClear, D as PickerCalendar, E as PickerContent, F as zonedDateToIso, H as isTimeBearingMode, P as isoToZonedDate, S as PickerCancel, T as PickerReset, _ as parseTimeString, a as PickerTimezoneIndicator, b as PickerPresets, c as Picker$1, i as PickerTrigger, k as usePickerContext, n as DefaultFooter, o as PickerTimeInput, r as formatPickerValue, w as PickerFooter, x as PickerApply } from "./date-time-range-picker-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-jgK6wyXj.mjs";
|
|
3
|
+
import { C as PickerClear, D as PickerCalendar, E as PickerContent, F as zonedDateToIso, H as isTimeBearingMode, P as isoToZonedDate, S as PickerCancel, T as PickerReset, _ as parseTimeString, a as PickerTimezoneIndicator, b as PickerPresets, c as Picker$1, i as PickerTrigger, k as usePickerContext, n as DefaultFooter, o as PickerTimeInput, r as formatPickerValue, w as PickerFooter, x as PickerApply } from "./date-time-range-picker-RZX4CS4b.mjs";
|
|
4
4
|
import { Clock, Globe } from "lucide-react";
|
|
5
5
|
import { useEffect, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { addDays, differenceInCalendarDays } from "date-fns";
|
|
8
|
-
|
|
8
|
+
// src/components/features/picker/components/timezone-select.tsx
|
|
9
9
|
function PickerTimezoneSelect({ options, onChange, className, placeholder = "Select timezone" }) {
|
|
10
10
|
const { mode, timezone } = usePickerContext();
|
|
11
11
|
if (!isTimeBearingMode(mode)) return null;
|
|
@@ -27,8 +27,7 @@ function PickerTimezoneSelect({ options, onChange, className, placeholder = "Sel
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
PickerTimezoneSelect.displayName = "Picker.TimezoneSelect";
|
|
30
|
-
|
|
31
|
-
//#region src/components/features/picker/components/index.ts
|
|
30
|
+
// src/components/features/picker/components/index.ts
|
|
32
31
|
const Picker = Object.assign(Picker$1, {
|
|
33
32
|
Trigger: PickerTrigger,
|
|
34
33
|
Content: PickerContent,
|
|
@@ -43,8 +42,7 @@ const Picker = Object.assign(Picker$1, {
|
|
|
43
42
|
TimezoneIndicator: PickerTimezoneIndicator,
|
|
44
43
|
TimezoneSelect: PickerTimezoneSelect
|
|
45
44
|
});
|
|
46
|
-
|
|
47
|
-
//#region src/components/features/picker/utils/compare.ts
|
|
45
|
+
// src/components/features/picker/utils/compare.ts
|
|
48
46
|
/** Strict equality of two nullable Date references by millisecond value. */
|
|
49
47
|
function isSameDate(a, b) {
|
|
50
48
|
if (a === b) return true;
|
|
@@ -67,8 +65,7 @@ function isSameStringRange(a, b) {
|
|
|
67
65
|
if (a === null || b === null) return false;
|
|
68
66
|
return a.from === b.from && a.to === b.to && a.preset === b.preset;
|
|
69
67
|
}
|
|
70
|
-
|
|
71
|
-
//#region src/components/features/picker/utils/range.ts
|
|
68
|
+
// src/components/features/picker/utils/range.ts
|
|
72
69
|
/**
|
|
73
70
|
* Number of calendar days between two dates. Always non-negative.
|
|
74
71
|
*
|
|
@@ -105,8 +102,7 @@ function clampRange(from, to, maxRange) {
|
|
|
105
102
|
to: addDays(from, maxRange)
|
|
106
103
|
};
|
|
107
104
|
}
|
|
108
|
-
|
|
109
|
-
//#region src/components/features/picker/wrappers/date-picker.tsx
|
|
105
|
+
// src/components/features/picker/wrappers/date-picker.tsx
|
|
110
106
|
function DatePicker({ value, onChange, placeholder = "Pick a date", clearable = true, responsive = true, sheetTitle = "Pick a date", numberOfMonths = 1, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit, disablePast, disableFuture, minDate, maxDate, dateFormat }) {
|
|
111
107
|
return /* @__PURE__ */ jsx(Picker$1.Root, {
|
|
112
108
|
mode: "date",
|
|
@@ -146,8 +142,7 @@ function DatePicker({ value, onChange, placeholder = "Pick a date", clearable =
|
|
|
146
142
|
});
|
|
147
143
|
}
|
|
148
144
|
DatePicker.displayName = "DatePicker";
|
|
149
|
-
|
|
150
|
-
//#region src/components/features/picker/wrappers/date-range-picker.tsx
|
|
145
|
+
// src/components/features/picker/wrappers/date-range-picker.tsx
|
|
151
146
|
function DateRangePicker({ value, onChange, placeholder = "Pick a date range", clearable = true, responsive = true, sheetTitle = "Pick a date range", numberOfMonths = 2, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit, disablePast, disableFuture, minDate, maxDate, presets, excludePresets, dateFormat }) {
|
|
152
147
|
return /* @__PURE__ */ jsx(Picker$1.Root, {
|
|
153
148
|
mode: "date-range",
|
|
@@ -191,8 +186,7 @@ function DateRangePicker({ value, onChange, placeholder = "Pick a date range", c
|
|
|
191
186
|
});
|
|
192
187
|
}
|
|
193
188
|
DateRangePicker.displayName = "DateRangePicker";
|
|
194
|
-
|
|
195
|
-
//#region src/components/features/picker/wrappers/date-range-time-picker.tsx
|
|
189
|
+
// src/components/features/picker/wrappers/date-range-time-picker.tsx
|
|
196
190
|
function DateRangeTimePicker({ value, onChange, placeholder = "Pick a date range with time", clearable = true, responsive = true, sheetTitle = "Pick a date range with time", timezone, step = 15, hourCycle, numberOfMonths = 2, hideTimezone = false, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, disablePast, disableFuture, minDate, maxDate, presets, excludePresets, dateFormat, timeFormat }) {
|
|
197
191
|
return /* @__PURE__ */ jsx(Picker$1.Root, {
|
|
198
192
|
mode: "date-range-time",
|
|
@@ -257,8 +251,7 @@ function DateRangeTimePicker({ value, onChange, placeholder = "Pick a date range
|
|
|
257
251
|
});
|
|
258
252
|
}
|
|
259
253
|
DateRangeTimePicker.displayName = "DateRangeTimePicker";
|
|
260
|
-
|
|
261
|
-
//#region src/components/features/picker/components/time-input-field.tsx
|
|
254
|
+
// src/components/features/picker/components/time-input-field.tsx
|
|
262
255
|
function formatZonedTimeOfDay(iso, tz) {
|
|
263
256
|
try {
|
|
264
257
|
const d = isoToZonedDate(iso, tz);
|
|
@@ -299,8 +292,7 @@ function PickerTimeInputField({ className, ariaLabel = "Select time", id }) {
|
|
|
299
292
|
});
|
|
300
293
|
}
|
|
301
294
|
PickerTimeInputField.displayName = "Picker.TimeInputField";
|
|
302
|
-
|
|
303
|
-
//#region src/components/features/picker/wrappers/date-time-picker.tsx
|
|
295
|
+
// src/components/features/picker/wrappers/date-time-picker.tsx
|
|
304
296
|
function DateTimePicker({ value, onChange, placeholder = "Pick a date & time", clearable = true, responsive = true, sheetTitle = "Pick a date & time", timezone, step = 15, hourCycle, numberOfMonths = 1, hideTimezone = false, timeInputMode = "slot", timezoneIndicatorVariant = "full", triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, disablePast, disableFuture, minDate, maxDate, dateFormat, timeFormat }) {
|
|
305
297
|
return /* @__PURE__ */ jsx(Picker$1.Root, {
|
|
306
298
|
mode: "datetime",
|
|
@@ -358,8 +350,7 @@ function DateTimePicker({ value, onChange, placeholder = "Pick a date & time", c
|
|
|
358
350
|
});
|
|
359
351
|
}
|
|
360
352
|
DateTimePicker.displayName = "DateTimePicker";
|
|
361
|
-
|
|
362
|
-
//#region src/components/features/picker/wrappers/time-picker.tsx
|
|
353
|
+
// src/components/features/picker/wrappers/time-picker.tsx
|
|
363
354
|
const DEFAULT_TIME_ICON$1 = /* @__PURE__ */ jsx(Clock, { className: "text-muted-foreground size-4 shrink-0" });
|
|
364
355
|
function TimePicker({ value, onChange, placeholder = "Pick a time", clearable = true, responsive = true, sheetTitle = "Pick a time", step = 15, hourCycle, minTime, maxTime, timeFormat, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit }) {
|
|
365
356
|
return /* @__PURE__ */ jsx(Picker$1.Root, {
|
|
@@ -398,8 +389,7 @@ function TimePicker({ value, onChange, placeholder = "Pick a time", clearable =
|
|
|
398
389
|
});
|
|
399
390
|
}
|
|
400
391
|
TimePicker.displayName = "TimePicker";
|
|
401
|
-
|
|
402
|
-
//#region src/components/features/picker/wrappers/time-range-picker.tsx
|
|
392
|
+
// src/components/features/picker/wrappers/time-range-picker.tsx
|
|
403
393
|
const DEFAULT_TIME_ICON = /* @__PURE__ */ jsx(Clock, { className: "text-muted-foreground size-4 shrink-0" });
|
|
404
394
|
function TimeRangePicker({ value, onChange, placeholder = "Pick a time range", clearable = true, responsive = true, sheetTitle = "Pick a time range", step = 15, hourCycle, timeFormat, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit }) {
|
|
405
395
|
return /* @__PURE__ */ jsx(Picker$1.Root, {
|
|
@@ -449,5 +439,4 @@ function TimeRangePicker({ value, onChange, placeholder = "Pick a time range", c
|
|
|
449
439
|
});
|
|
450
440
|
}
|
|
451
441
|
TimeRangePicker.displayName = "TimeRangePicker";
|
|
452
|
-
//#endregion
|
|
453
442
|
export { DateRangePicker as a, getDaysDifference as c, isSameDateRange as d, isSameStringRange as f, DateRangeTimePicker as i, isRangeValid as l, PickerTimezoneSelect as m, TimePicker as n, DatePicker as o, Picker as p, DateTimePicker as r, clampRange as s, TimeRangePicker as t, isSameDate as u };
|
package/dist/popover/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
1
|
+
export { t as Popover, n as PopoverAnchor, r as PopoverContent, i as PopoverTrigger } from "../popover-7YxyP_W0.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5
|
-
|
|
5
|
+
// ../shadcn/ui/popover.tsx
|
|
6
6
|
function Popover$1({ ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
|
|
8
8
|
"data-slot": "popover",
|
|
@@ -30,8 +30,7 @@ function PopoverAnchor$1({ ...props }) {
|
|
|
30
30
|
...props
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
//#region src/components/base/popover/popover.tsx
|
|
33
|
+
// src/components/base/popover/popover.tsx
|
|
35
34
|
/**
|
|
36
35
|
* Datum Popover
|
|
37
36
|
*
|
|
@@ -49,5 +48,4 @@ function PopoverContent({ className, ...props }) {
|
|
|
49
48
|
...props
|
|
50
49
|
});
|
|
51
50
|
}
|
|
52
|
-
//#endregion
|
|
53
51
|
export { PopoverTrigger as i, PopoverAnchor as n, PopoverContent as r, Popover as t };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { RadioGroup, RadioGroupItem };
|
|
1
|
+
export { t as RadioGroup, n as RadioGroupItem } from "../radio-group-0RxTmRnF.mjs";
|