@photon-ai/pho-ui 2.17.0 → 4.0.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/dist/chunks/{basic-page-CogcwGx3.js → basic-page-DlLTmGnH.js} +4 -4
- package/dist/chunks/{basic-page-CogcwGx3.js.map → basic-page-DlLTmGnH.js.map} +1 -1
- package/dist/chunks/calendar-4OFiCLAv.js +292 -0
- package/dist/chunks/calendar-4OFiCLAv.js.map +1 -0
- package/dist/chunks/data-table-BeUwsjmX.js +297 -0
- package/dist/chunks/data-table-BeUwsjmX.js.map +1 -0
- package/dist/chunks/date-picker-DnQuw-B1.js +404 -0
- package/dist/chunks/date-picker-DnQuw-B1.js.map +1 -0
- package/dist/chunks/{error-D0yoFxCv.js → error-BAQgnde7.js} +2 -2
- package/dist/chunks/{error-D0yoFxCv.js.map → error-BAQgnde7.js.map} +1 -1
- package/dist/chunks/{filter-bar-BsvdXwzc.js → filter-bar-D9lBBr4z.js} +2 -2
- package/dist/chunks/{filter-bar-BsvdXwzc.js.map → filter-bar-D9lBBr4z.js.map} +1 -1
- package/dist/chunks/{ghost-search-BvBFa9su.js → ghost-search-AmVXd0zE.js} +2 -2
- package/dist/chunks/{ghost-search-BvBFa9su.js.map → ghost-search-AmVXd0zE.js.map} +1 -1
- package/dist/chunks/trace-Hku-rImp.js +1706 -0
- package/dist/chunks/trace-Hku-rImp.js.map +1 -0
- package/dist/components/calendar.js +5 -0
- package/dist/components/data-table.js +2 -2
- package/dist/components/date-picker.js +6 -0
- package/dist/components/error.js +1 -1
- package/dist/components/filter-bar.js +1 -1
- package/dist/components/phone-input.js +3 -3
- package/dist/components/phone-input.js.map +1 -1
- package/dist/components/trace.js +38 -37
- package/dist/index.js +141 -142
- package/dist/primitives.js +1 -1
- package/dist/sections/basic-page.js +2 -2
- package/dist/src/components/calendar/calendar.d.ts +36 -0
- package/dist/src/components/calendar/index.d.ts +2 -0
- package/dist/src/components/data-table/data-table.d.ts +8 -6
- package/dist/src/components/date-picker/date-picker.d.ts +110 -0
- package/dist/src/components/date-picker/index.d.ts +2 -0
- package/dist/src/components/trace/index.d.ts +1 -1
- package/dist/src/components/trace/layout.d.ts +11 -5
- package/dist/src/components/trace/trace.d.ts +5 -27
- package/dist/src/index.d.ts +2 -1
- package/package.json +10 -5
- package/dist/chunks/data-table-DcwCgXJU.js +0 -293
- package/dist/chunks/data-table-DcwCgXJU.js.map +0 -1
- package/dist/chunks/date-range-picker-DwFDUNRL.js +0 -88
- package/dist/chunks/date-range-picker-DwFDUNRL.js.map +0 -1
- package/dist/chunks/trace-Ba1RMBfk.js +0 -1645
- package/dist/chunks/trace-Ba1RMBfk.js.map +0 -1
- package/dist/components/date-range-picker.js +0 -10
- package/dist/src/components/date-range-picker/date-range-picker.d.ts +0 -31
- package/dist/src/components/date-range-picker/index.d.ts +0 -1
package/dist/components/trace.js
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as s, B as e, C as i, D as n, E as
|
|
2
|
+
import { A as s, B as e, C as i, D as n, E as l, F as r, I as t, L as o, M as p, N as c, O as T, P as u, R as I, S, T as m, V as d, _ as v, a as b, b as V, c as w, d as f, f as D, g as L, h as _, i as k, j as x, k as g, l as A, m as E, n as F, o as N, p as y, r as z, s as B, t as O, u as P, v as R, w as W, x as C, y as G, z as K } from "../chunks/trace-Hku-rImp.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
i as FULL_VIEW,
|
|
5
|
+
y as GEN_AI_KINDS,
|
|
6
|
+
W as MIN_VIEW_WIDTH,
|
|
7
|
+
V as SpanPrimitive,
|
|
8
8
|
O as Trace,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
m as allCollapsed,
|
|
10
|
+
l as ancestorIds,
|
|
11
|
+
E as attribute,
|
|
12
|
+
_ as attributeText,
|
|
13
|
+
k as axisTicks,
|
|
14
|
+
b as barGeometry,
|
|
15
|
+
n as buildSpanTree,
|
|
16
|
+
T as clampView,
|
|
17
|
+
g as collapseAllIds,
|
|
18
|
+
s as collapseOneLevel,
|
|
19
|
+
x as deriveSpanTree,
|
|
20
|
+
p as expandOneLevel,
|
|
21
|
+
c as filterSpans,
|
|
22
|
+
F as footerTotals,
|
|
23
|
+
N as formatDuration,
|
|
24
24
|
B as formatTick,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
L as genAIKind,
|
|
26
|
+
u as isFullView,
|
|
27
27
|
w as labeledTicks,
|
|
28
|
-
|
|
29
|
-
P as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
A as layoutTickLabels,
|
|
29
|
+
P as niceStep,
|
|
30
|
+
f as normalizeSpans,
|
|
31
|
+
r as panView,
|
|
32
|
+
v as peerService,
|
|
33
|
+
R as spanDecorationIcon,
|
|
34
|
+
D as spanDuration,
|
|
35
|
+
G as spanPills,
|
|
36
|
+
t as spanTimelineBarVars,
|
|
36
37
|
z as traceBulletInset,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
o as traceRange,
|
|
39
|
+
C as useSpan,
|
|
40
|
+
S as useSpanTree,
|
|
41
|
+
I as viewFraction,
|
|
42
|
+
K as viewToRange,
|
|
43
|
+
e as visibleSpans,
|
|
44
|
+
d as zoomView
|
|
44
45
|
};
|
package/dist/index.js
CHANGED
|
@@ -2,184 +2,183 @@
|
|
|
2
2
|
import { t as s } from "./chunks/cn-ChIgwEl3.js";
|
|
3
3
|
import { t as r } from "./chunks/is-react-component-DSnjtBmo.js";
|
|
4
4
|
import { t as e } from "./chunks/resolve-variant-CcD8iG5l.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import { BAR_RISE_PX as n, BLUR_PX as m, EASE_POP as
|
|
5
|
+
import { n as E, t as S } from "./chunks/link-provider-DXzDQ08N.js";
|
|
6
|
+
import { BAR_RISE_PX as n, BLUR_PX as m, EASE_POP as I, EASE_STACK as T, FADE_ENTRANCE as p, FADE_SWAP as A, PRESS_SCALE as R, PRESS_SCALE_ROW as l, RISE_PX as C, SPRING_ENTRANCE as B, SPRING_PRESS as f, SPRING_PRESS_INLINE as N, SPRING_PRESS_QUICK as P, SPRING_SETTLE as u, TRAVEL_LINEAR as L, fadeThroughBlur as c, riseIn as D } from "./motion.js";
|
|
7
7
|
import { n as V, r as d, t as U } from "./chunks/use-press-pulse-IbNstUT0.js";
|
|
8
|
-
import { n as
|
|
8
|
+
import { n as b, t as F } from "./chunks/use-copy-D6JwKUll.js";
|
|
9
9
|
import "./utils.js";
|
|
10
|
-
import { a as h, c as
|
|
11
|
-
import { a as Z, c as j, i as J, l as Q, n as q, o as $, r as aa, s as sa, t as ta } from "./chunks/error-
|
|
12
|
-
import { A as oa, B as ea, C as
|
|
13
|
-
import { n as Xa, t as
|
|
14
|
-
import {
|
|
15
|
-
import { t as Es } from "./chunks/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { n as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { i as
|
|
10
|
+
import { a as h, c as k, d as v, i as w, l as W, n as x, o as H, r as y, s as z, t as K, u as X } from "./chunks/button-CdqS_t5a.js";
|
|
11
|
+
import { a as Z, c as j, i as J, l as Q, n as q, o as $, r as aa, s as sa, t as ta } from "./chunks/error-BAQgnde7.js";
|
|
12
|
+
import { A as oa, B as ea, C as ia, D as Ea, E as Sa, F as _a, I as na, L as ma, M as Ia, N as Ta, O as pa, P as Aa, R as Ra, S as la, T as Ca, V as Ba, _ as fa, a as Na, b as Pa, c as ua, d as La, f as ca, g as Da, h as Oa, i as Va, j as da, k as Ua, l as Ga, m as ba, n as Fa, o as Ma, p as ga, r as ha, s as ka, t as va, u as wa, v as Wa, w as xa, x as Ha, y as ya, z as za } from "./chunks/trace-Hku-rImp.js";
|
|
13
|
+
import { n as Xa, t as Ya } from "./chunks/date-picker-DnQuw-B1.js";
|
|
14
|
+
import { n as ja, t as Ja } from "./chunks/copy-button-B_B15mEi.js";
|
|
15
|
+
import { a as qa, c as $a, d as as, i as ss, l as ts, n as rs, o as os, r as es, s as is, t as Es, u as Ss } from "./chunks/sidebar-DRPe5CAh.js";
|
|
16
|
+
import { t as ns } from "./chunks/input-DjvZoF8v.js";
|
|
17
|
+
import { i as Is, n as Ts, r as ps, t as As } from "./chunks/filter-bar-D9lBBr4z.js";
|
|
18
|
+
import { a as ls } from "./chunks/data-table-BeUwsjmX.js";
|
|
19
|
+
import { n as Bs, t as fs } from "./chunks/code-block-BuDIo8Q0.js";
|
|
20
|
+
import { n as Ps, t as us } from "./chunks/stat-hnNqjWVG.js";
|
|
21
|
+
import { t as cs } from "./chunks/calendar-4OFiCLAv.js";
|
|
22
|
+
import { t as Os } from "./chunks/close-button-GvqWbLl0.js";
|
|
23
|
+
import { t as ds } from "./chunks/input-group-fc9_jD4d.js";
|
|
24
|
+
import { n as Gs, t as bs } from "./chunks/card-DhDwtSi9.js";
|
|
25
|
+
import { n as Ms, t as gs } from "./chunks/dialog-BwfUFn6B.js";
|
|
26
|
+
import { i as ks, n as vs, r as ws, t as Ws } from "./chunks/status-view-C8tabjDu.js";
|
|
27
|
+
import { a as Hs, c as ys, d as zs, f as Ks, i as Xs, l as Ys, m as Zs, n as js, o as Js, p as Qs, r as qs, s as $s, t as at, u as st } from "./chunks/basic-page-DlLTmGnH.js";
|
|
28
|
+
import { i as rt, n as ot, r as et, t as it } from "./chunks/legend-C0mU7dqd.js";
|
|
28
29
|
import "./components/chart.js";
|
|
29
|
-
import { t as
|
|
30
|
-
import { t as
|
|
31
|
-
import { i as
|
|
32
|
-
import { t as
|
|
30
|
+
import { t as _t } from "./chunks/bar-chart-DIALC2_z.js";
|
|
31
|
+
import { t as mt } from "./chunks/line-chart-VuMYKzW3.js";
|
|
32
|
+
import { i as Tt, n as pt, r as At, t as Rt } from "./chunks/log-list-BERiO4UJ.js";
|
|
33
|
+
import { t as Ct } from "./chunks/description-list-C-mwe4ki.js";
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
at as AUTO_SAVE_DELAY_MS,
|
|
35
36
|
n as BAR_RISE_PX,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
js as BASIC_PAGE_CALLOUT,
|
|
38
|
+
qs as BASIC_PAGE_CARD,
|
|
39
|
+
Xs as BASIC_PAGE_ITEM,
|
|
40
|
+
Hs as BASIC_PAGE_ITEM_PANEL,
|
|
41
|
+
Js as BASIC_PAGE_ITEM_PANEL_DIVIDED,
|
|
42
|
+
$s as BASIC_PAGE_ROW,
|
|
42
43
|
m as BLUR_PX,
|
|
43
|
-
|
|
44
|
+
K as BUTTON_COLORS,
|
|
44
45
|
x as BUTTON_SHAPES,
|
|
45
|
-
|
|
46
|
+
y as BUTTON_SIZES,
|
|
46
47
|
w as BUTTON_VARIANTS,
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
_t as BarChart,
|
|
49
|
+
ys as BasicPage,
|
|
49
50
|
h as Button,
|
|
50
51
|
H as ButtonLink,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
bs as CARD_SURFACE,
|
|
53
|
+
et as CHART_SLOTS,
|
|
54
|
+
Ys as CONDENSE_BAR_ENTER,
|
|
55
|
+
st as CONDENSE_BAR_RISE_PX,
|
|
56
|
+
zs as CONDENSE_BAR_TRAVEL,
|
|
56
57
|
U as CONTROL_PRESS_SCALE,
|
|
57
58
|
V as CONTROL_PRESS_SPRING,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
Ja as COPY_BUTTON_SIZES,
|
|
60
|
+
F as COPY_FEEDBACK_MS,
|
|
61
|
+
cs as Calendar,
|
|
62
|
+
Gs as Card,
|
|
61
63
|
it as ChartLegend,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
ot as ChartSwatch,
|
|
65
|
+
Os as CloseButton,
|
|
66
|
+
fs as CodeBlock,
|
|
67
|
+
ja as CopyButton,
|
|
68
|
+
Ya as DatePicker,
|
|
69
|
+
Ct as DescriptionList,
|
|
70
|
+
gs as Dialog,
|
|
71
|
+
I as EASE_POP,
|
|
72
|
+
T as EASE_STACK,
|
|
73
|
+
z as EFFECT_BUTTON_SIZES,
|
|
74
|
+
k as EffectButton,
|
|
73
75
|
W as EffectButtonLink,
|
|
74
76
|
ta as Error,
|
|
75
77
|
q as ErrorView,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
p as FADE_ENTRANCE,
|
|
79
|
+
A as FADE_SWAP,
|
|
80
|
+
As as FILTER_DATE_PRESETS,
|
|
81
|
+
ia as FULL_VIEW,
|
|
82
|
+
Ts as FilterBar,
|
|
81
83
|
aa as GENERIC_ERROR_TITLE,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
ga as GEN_AI_KINDS,
|
|
85
|
+
ns as Input,
|
|
86
|
+
ds as InputGroup,
|
|
87
|
+
mt as LineChart,
|
|
86
88
|
S as LinkProvider,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
p as PRESS_SCALE,
|
|
89
|
+
Rt as LogList,
|
|
90
|
+
xa as MIN_VIEW_WIDTH,
|
|
91
|
+
R as PRESS_SCALE,
|
|
91
92
|
l as PRESS_SCALE_ROW,
|
|
92
93
|
C as RISE_PX,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
Es as SIDEBAR_HEADER_INSET,
|
|
95
|
+
rs as SIDEBAR_ITEM,
|
|
96
|
+
es as SIDEBAR_ITEM_ACTIVE,
|
|
97
|
+
ss as SIDEBAR_ITEM_INACTIVE,
|
|
98
|
+
qa as SIDEBAR_ROOT,
|
|
99
|
+
os as SIDEBAR_ROOT_BASE,
|
|
100
|
+
is as SIDEBAR_ROOT_INSET,
|
|
101
|
+
$a as SIDEBAR_SUBMENU_CHEVRON,
|
|
102
|
+
ts as SIDEBAR_SUBMENU_LIST_INDENT,
|
|
103
|
+
Ss as SIDEBAR_SUBMENU_TRIGGER_CHILD_ACTIVE,
|
|
103
104
|
B as SPRING_ENTRANCE,
|
|
104
105
|
f as SPRING_PRESS,
|
|
105
106
|
N as SPRING_PRESS_INLINE,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
P as SPRING_PRESS_QUICK,
|
|
108
|
+
u as SPRING_SETTLE,
|
|
109
|
+
Ws as STATUS_VIEW,
|
|
110
|
+
vs as STATUS_VIEW_COPY,
|
|
111
|
+
ws as STATUS_VIEW_SIZES,
|
|
112
|
+
as as Sidebar,
|
|
113
|
+
Pa as SpanPrimitive,
|
|
114
|
+
us as Stat,
|
|
115
|
+
Ps as StatGroup,
|
|
115
116
|
ks as StatusView,
|
|
116
|
-
|
|
117
|
+
L as TRAVEL_LINEAR,
|
|
117
118
|
va as Trace,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
Ca as allCollapsed,
|
|
120
|
+
Sa as ancestorIds,
|
|
121
|
+
ba as attribute,
|
|
122
|
+
Oa as attributeText,
|
|
123
|
+
Va as axisTicks,
|
|
124
|
+
Na as barGeometry,
|
|
125
|
+
Ea as buildSpanTree,
|
|
126
|
+
X as buttonVariants,
|
|
126
127
|
J as capitalizeFirst,
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
rt as chartColor,
|
|
129
|
+
pa as clampView,
|
|
129
130
|
s as cn,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
oa as deriveSpanTree,
|
|
131
|
+
Ua as collapseAllIds,
|
|
132
|
+
oa as collapseOneLevel,
|
|
133
|
+
ls as createColumns,
|
|
134
|
+
da as deriveSpanTree,
|
|
135
135
|
Z as describeError,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
v as effectButtonVariants,
|
|
137
|
+
Ia as expandOneLevel,
|
|
138
|
+
c as fadeThroughBlur,
|
|
139
139
|
Ta as filterSpans,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
Fa as footerTotals,
|
|
141
|
+
Ks as formToasts,
|
|
142
|
+
Xa as formatDateLabel,
|
|
143
143
|
Ma as formatDuration,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
ca as genAIKind,
|
|
144
|
+
ps as formatFilterValue,
|
|
145
|
+
ka as formatTick,
|
|
146
|
+
Da as genAIKind,
|
|
148
147
|
$ as httpReasonPhrase,
|
|
149
148
|
sa as httpStatusExplanation,
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
Is as isFilterSet,
|
|
150
|
+
Aa as isFullView,
|
|
152
151
|
j as isProblem,
|
|
153
152
|
r as isReactComponent,
|
|
154
153
|
ua as labeledTicks,
|
|
155
|
-
|
|
156
|
-
pt as
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
Ga as layoutTickLabels,
|
|
155
|
+
pt as logStatusColor,
|
|
156
|
+
At as logStatusLabel,
|
|
157
|
+
wa as niceStep,
|
|
158
|
+
La as normalizeSpans,
|
|
159
|
+
_a as panView,
|
|
160
160
|
Q as parseProblem,
|
|
161
|
-
|
|
161
|
+
fa as peerService,
|
|
162
162
|
e as resolveVariant,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
i as useLinkComponent,
|
|
163
|
+
D as riseIn,
|
|
164
|
+
Wa as spanDecorationIcon,
|
|
165
|
+
ca as spanDuration,
|
|
166
|
+
ya as spanPills,
|
|
167
|
+
na as spanTimelineBarVars,
|
|
168
|
+
Bs as tokenizeJson,
|
|
169
|
+
ha as traceBulletInset,
|
|
170
|
+
ma as traceRange,
|
|
171
|
+
Tt as truncateMiddle,
|
|
172
|
+
Qs as useAutoSave,
|
|
173
|
+
Zs as useCondense,
|
|
174
|
+
b as useCopy,
|
|
175
|
+
Ms as useDialogPending,
|
|
176
|
+
E as useLinkComponent,
|
|
178
177
|
d as usePressPulse,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
178
|
+
Ha as useSpan,
|
|
179
|
+
la as useSpanTree,
|
|
180
|
+
Ra as viewFraction,
|
|
181
|
+
za as viewToRange,
|
|
182
|
+
ea as visibleSpans,
|
|
183
|
+
Ba as zoomView
|
|
185
184
|
};
|
package/dist/primitives.js
CHANGED
|
@@ -40,11 +40,11 @@ import "./primitives/toggle.js";
|
|
|
40
40
|
import "./primitives/toggle-group.js";
|
|
41
41
|
import "./primitives/toolbar.js";
|
|
42
42
|
import "./primitives/tooltip.js";
|
|
43
|
+
export * from "@base-ui/react/popover";
|
|
43
44
|
export * from "@base-ui/react/field";
|
|
44
45
|
export * from "@base-ui/react/separator";
|
|
45
46
|
export * from "@base-ui/react/dialog";
|
|
46
47
|
export * from "@base-ui/react/scroll-area";
|
|
47
|
-
export * from "@base-ui/react/popover";
|
|
48
48
|
export * from "@base-ui/react/collapsible";
|
|
49
49
|
export * from "@base-ui/react/avatar";
|
|
50
50
|
export * from "@base-ui/react/form";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as s } from "../chunks/data-table-
|
|
3
|
-
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-
|
|
2
|
+
import { a as s } from "../chunks/data-table-BeUwsjmX.js";
|
|
3
|
+
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-DlLTmGnH.js";
|
|
4
4
|
export {
|
|
5
5
|
D as AUTO_SAVE_DELAY_MS,
|
|
6
6
|
B as BASIC_PAGE_CALLOUT,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DayPickerProps } from 'react-day-picker';
|
|
2
|
+
export type CalendarProps = DayPickerProps & {
|
|
3
|
+
/**
|
|
4
|
+
* The word on the button back to today, used as its label and its tooltip.
|
|
5
|
+
* @default "Today"
|
|
6
|
+
*/
|
|
7
|
+
todayLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Calendar built on React DayPicker — a month of days to read or to choose
|
|
11
|
+
* from. Pass `mode` to make it selectable (`single`, `multiple`, `range`);
|
|
12
|
+
* without one it is a static month. Every DayPicker prop passes through, so
|
|
13
|
+
* `numberOfMonths`, `disabled`, `startMonth` / `endMonth`, `captionLayout`,
|
|
14
|
+
* and the locale props all work as documented upstream.
|
|
15
|
+
*
|
|
16
|
+
* Pho supplies the whole class map, so the library's stylesheet is neither
|
|
17
|
+
* imported nor needed. `classNames` and `components` merge over Pho's,
|
|
18
|
+
* element by element.
|
|
19
|
+
*
|
|
20
|
+
* The caption is clickable: month and year each open a jump list, so a date
|
|
21
|
+
* two years out is two taps rather than twenty-four. Pass
|
|
22
|
+
* `captionLayout="label"` for a caption that only reads, and `startMonth` /
|
|
23
|
+
* `endMonth` to say how far the year list should reach. Between the month
|
|
24
|
+
* arrows sits a way back to today's month.
|
|
25
|
+
*
|
|
26
|
+
* Selection follows DayPicker's own contract: hand it `onSelect` and the
|
|
27
|
+
* calendar is controlled, so `selected` has to come with it. Leave both off
|
|
28
|
+
* and it keeps the selection itself.
|
|
29
|
+
*
|
|
30
|
+
* For a calendar behind a field — a trigger that shows the chosen date and
|
|
31
|
+
* opens this in a popover — use `DatePicker`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function Calendar({ className, classNames, components, showOutsideDays, captionLayout, startMonth, endMonth, todayLabel, ...props }: CalendarProps): import("react").JSX.Element;
|
|
34
|
+
export declare namespace Calendar {
|
|
35
|
+
var displayName: string;
|
|
36
|
+
}
|
|
@@ -77,13 +77,13 @@ declare const features: {
|
|
|
77
77
|
columnMeta: DataTableColumnMeta;
|
|
78
78
|
};
|
|
79
79
|
export type DataTableFeatures = typeof features;
|
|
80
|
-
/** Body row height — header
|
|
80
|
+
/** Body row height — the header keeps its own `h-10` on every size. */
|
|
81
81
|
export declare const DATA_TABLE_SIZES: {
|
|
82
82
|
sm: {
|
|
83
83
|
classes: string;
|
|
84
84
|
description: string;
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
base: {
|
|
87
87
|
classes: string;
|
|
88
88
|
description: string;
|
|
89
89
|
};
|
|
@@ -218,10 +218,12 @@ export interface DataTableProps<TData extends RowData> extends Omit<ComponentPro
|
|
|
218
218
|
*/
|
|
219
219
|
layout?: "auto" | "fixed";
|
|
220
220
|
/**
|
|
221
|
-
* Body row height
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
221
|
+
* Body row height and the type that comes with it. `base` (the default)
|
|
222
|
+
* is 48px rows at 14px — one line of body type. `sm` is 40px at 13px,
|
|
223
|
+
* the header's own height, for a dense list scanned more than read.
|
|
224
|
+
* `lg` is 56px at 16px, for a two-line cell (a number and a caption)
|
|
225
|
+
* that would crowd `base`. The header row keeps its 40px on every size
|
|
226
|
+
* and follows the type.
|
|
225
227
|
*/
|
|
226
228
|
size?: DataTableSize;
|
|
227
229
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DateRange, PropsBase } from 'react-day-picker';
|
|
3
|
+
import { InputSize } from '../input';
|
|
4
|
+
/** The trigger wears Input's sizes so the two line up in one form. */
|
|
5
|
+
export type DatePickerSize = InputSize;
|
|
6
|
+
/**
|
|
7
|
+
* How fine the time is asked for, and read back. Omit it for a date alone.
|
|
8
|
+
* The value is always a `Date`; the granularity says which of its parts the
|
|
9
|
+
* viewer sets, and everything below is zeroed.
|
|
10
|
+
*/
|
|
11
|
+
export type DatePickerTime = "hour" | "minute" | "second";
|
|
12
|
+
/**
|
|
13
|
+
* The shape to type, in this locale's own order — `mm/dd/yyyy`,
|
|
14
|
+
* `yyyy-mm-dd`, `dd.mm.yyyy`. Lowercase, the way a browser's own date field
|
|
15
|
+
* writes it, so the two paths read alike.
|
|
16
|
+
*/
|
|
17
|
+
export declare function dateFieldMask(locales?: Intl.LocalesArgument, time?: DatePickerTime): string;
|
|
18
|
+
/**
|
|
19
|
+
* The figures in the field — `09/12/2026`, or `09/10/2026 – 09/13/2026` for a
|
|
20
|
+
* span, in the viewer's locale. An empty or half-finished range prints just
|
|
21
|
+
* the day that is settled; nothing selected prints nothing. Pass `time` to
|
|
22
|
+
* print the clock too, at the precision that was asked for.
|
|
23
|
+
*
|
|
24
|
+
* Figures rather than words (`Sep 12, 2026`) because the field is typed into:
|
|
25
|
+
* a month's name is the one part of a date nobody wants to spell.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatDateLabel(value: Date | DateRange | undefined, locales?: Intl.LocalesArgument, time?: DatePickerTime): string;
|
|
28
|
+
/**
|
|
29
|
+
* A window the page offers by name — `Last 7 days` — beside the calendar.
|
|
30
|
+
* Pass a function for anything measured from now, so it is resolved at the
|
|
31
|
+
* click rather than at render.
|
|
32
|
+
*/
|
|
33
|
+
export interface DatePickerPreset<T> {
|
|
34
|
+
label: string;
|
|
35
|
+
value: T | (() => T);
|
|
36
|
+
}
|
|
37
|
+
interface DatePickerBaseProps {
|
|
38
|
+
/** Field label (associated for accessibility). */
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
/** Helper text below the field; rendered in the error color when `invalid`. */
|
|
41
|
+
hint?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* What the field shows until something is chosen.
|
|
44
|
+
* @default the shape to type, in this locale's order (`mm/dd/yyyy`)
|
|
45
|
+
*/
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
/** Render the invalid state (error ring + error-colored hint). */
|
|
48
|
+
invalid?: boolean;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** Marks the label with the required asterisk. */
|
|
51
|
+
required?: boolean;
|
|
52
|
+
/** Size variant. @default "md" */
|
|
53
|
+
size?: DatePickerSize;
|
|
54
|
+
/**
|
|
55
|
+
* Ask for a time as well as a day, this fine. `hour` sets the hour and
|
|
56
|
+
* zeroes the rest, `minute` the hour and minute, `second` all three. Omit
|
|
57
|
+
* it and the value is midnight on the chosen day.
|
|
58
|
+
*/
|
|
59
|
+
time?: DatePickerTime;
|
|
60
|
+
/** Locale for the trigger's words. Defaults to the viewer's. */
|
|
61
|
+
locales?: Intl.LocalesArgument;
|
|
62
|
+
/**
|
|
63
|
+
* Everything else React DayPicker takes — `disabled` days, `startMonth` /
|
|
64
|
+
* `endMonth`, `numberOfMonths`, `weekStartsOn`, `captionLayout`.
|
|
65
|
+
*/
|
|
66
|
+
calendarProps?: PropsBase;
|
|
67
|
+
/** Id for the trigger, if the page needs its own. */
|
|
68
|
+
id?: string;
|
|
69
|
+
/** Class applied to the trigger. */
|
|
70
|
+
className?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface DatePickerSingleProps extends DatePickerBaseProps {
|
|
73
|
+
/** @default "single" */
|
|
74
|
+
mode?: "single";
|
|
75
|
+
value?: Date;
|
|
76
|
+
defaultValue?: Date;
|
|
77
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
78
|
+
/** Named days offered beside the calendar. */
|
|
79
|
+
presets?: DatePickerPreset<Date>[];
|
|
80
|
+
}
|
|
81
|
+
export interface DatePickerRangeProps extends DatePickerBaseProps {
|
|
82
|
+
mode: "range";
|
|
83
|
+
value?: DateRange;
|
|
84
|
+
defaultValue?: DateRange;
|
|
85
|
+
onValueChange?: (value: DateRange | undefined) => void;
|
|
86
|
+
/** Named windows offered beside the calendar — `Last 7 days`, and so on. */
|
|
87
|
+
presets?: DatePickerPreset<DateRange>[];
|
|
88
|
+
}
|
|
89
|
+
export type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps;
|
|
90
|
+
/**
|
|
91
|
+
* Date Picker — a field that shows the chosen date and opens a `Calendar` to
|
|
92
|
+
* change it. `mode="range"` picks a span instead of a day; the popover stays
|
|
93
|
+
* open until both ends are down.
|
|
94
|
+
*
|
|
95
|
+
* The value is a `Date` (or a `{ from, to }` range), never a string: pass
|
|
96
|
+
* `value` to control it, `defaultValue` to let it keep its own. Clearing is
|
|
97
|
+
* built in — clicking the chosen day again unsets it.
|
|
98
|
+
*
|
|
99
|
+
* `time` asks for the clock as well, to the hour, the minute, or the second.
|
|
100
|
+
*
|
|
101
|
+
* On a touch device the field hands off to the system picker — the OS wheel or
|
|
102
|
+
* dialog, which people already know — as long as the rules the page set are
|
|
103
|
+
* ones it can enforce. A weekday rule or a predicate keeps the calendar, which
|
|
104
|
+
* can; so does `mode="range"`, which no system picker offers.
|
|
105
|
+
*/
|
|
106
|
+
export declare function DatePicker(props: DatePickerProps): import("react").JSX.Element;
|
|
107
|
+
export declare namespace DatePicker {
|
|
108
|
+
var displayName: string;
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
@@ -2,4 +2,4 @@ export { Trace, traceBulletInset, footerTotals, type TraceWaterfallProps, type T
|
|
|
2
2
|
export { SpanPrimitive, useSpan, useSpanTree, type SpanTreeContextValue, type SpanProviderProps, type SpanChildrenProps, type SpanRootProps, type SpanIndentProps, type SpanCollapseToggleProps, type SpanStatusIndicatorProps, type SpanTypeBadgeProps, type SpanNameProps, type SpanTimelineProps, type SpanTimelineBarProps, } from './span-primitive';
|
|
3
3
|
export { deriveSpanTree, visibleSpans, buildSpanTree, ancestorIds, collapseAllIds, collapseOneLevel, expandOneLevel, allCollapsed, traceRange, clampView, viewToRange, zoomView, panView, viewFraction, isFullView, spanTimelineBarVars, filterSpans, FULL_VIEW, MIN_VIEW_WIDTH, type SpanData, type SpanStatus, type SpanKind, type SpanItemState, type SpanTree, type SpanTimelineRange, type SpanView, } from './span-tree';
|
|
4
4
|
export { spanDecorationIcon, spanPills, genAIKind, peerService, attribute, attributeText, GEN_AI_KINDS, type SpanPill, type SpanDecorationIcon, type GenAIKind, } from './decorations';
|
|
5
|
-
export { normalizeSpans, spanDuration, barGeometry, axisTicks, niceStep, formatDuration, formatTick, labeledTicks, type AxisTick, type TraceWaterfallSpan, type TraceSpanStatus, type TraceSpanKind, type TraceRange, } from './layout';
|
|
5
|
+
export { normalizeSpans, spanDuration, barGeometry, axisTicks, niceStep, formatDuration, formatTick, labeledTicks, layoutTickLabels, type AxisTick, type TickLabel, type TraceWaterfallSpan, type TraceSpanStatus, type TraceSpanKind, type TraceRange, } from './layout';
|