@overdoser/react-toolkit 0.21.0 → 0.22.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.
Files changed (161) hide show
  1. package/AGENTS.md +1 -0
  2. package/CHANGELOG.md +27 -0
  3. package/components/Accordion/Accordion.js +48 -48
  4. package/components/ActionButton/ActionButton.js +23 -23
  5. package/components/ActionButton/CopyButton.js +5 -5
  6. package/components/Alert/Alert.js +13 -13
  7. package/components/Avatar/Avatar.js +12 -12
  8. package/components/Badge/Badge.js +6 -6
  9. package/components/Breadcrumbs/Breadcrumbs.js +15 -15
  10. package/components/Button/Button.js +14 -14
  11. package/components/Card/Card.js +26 -26
  12. package/components/Chart/AreaChart.js +103 -103
  13. package/components/Chart/Axis.js +7 -7
  14. package/components/Chart/BarChart.js +62 -62
  15. package/components/Chart/ChartContainer.js +11 -11
  16. package/components/Chart/ChartLegend.js +7 -7
  17. package/components/Chart/ChartTooltip.js +13 -13
  18. package/components/Chart/LineChart.js +88 -88
  19. package/components/Chart/PieChart.js +25 -25
  20. package/components/Chart/RadarChart.js +42 -42
  21. package/components/Chart/Sparkline.js +11 -11
  22. package/components/Chart/TradingChart.js +126 -126
  23. package/components/Chart/trading/period.js +3 -3
  24. package/components/Chip/Chip.js +24 -24
  25. package/components/CodeBlock/CodeBlock.js +31 -31
  26. package/components/CommandPalette/CommandPalette.js +166 -166
  27. package/components/ConfirmDialog/ConfirmDialog.js +60 -60
  28. package/components/Divider/Divider.js +10 -10
  29. package/components/Draggable/Draggable.js +29 -29
  30. package/components/Drawer/Drawer.js +53 -53
  31. package/components/Dropdown/Dropdown.js +66 -66
  32. package/components/Dropdown/DropdownItem.js +13 -13
  33. package/components/Dropdown/DropdownLabel.js +5 -5
  34. package/components/Dropdown/DropdownSeparator.js +5 -5
  35. package/components/Dropzone/Dropzone.js +15 -15
  36. package/components/EmptyState/EmptyState.js +11 -11
  37. package/components/Form/Form.js +17 -17
  38. package/components/Form/FormField.js +21 -21
  39. package/components/Form/FormRow.js +3 -3
  40. package/components/ImageViewer/ImageViewer.js +118 -118
  41. package/components/Kbd/Kbd.js +11 -11
  42. package/components/KeyValueList/KeyValueList.js +32 -32
  43. package/components/Link/Link.js +7 -7
  44. package/components/List/List.js +7 -7
  45. package/components/Loader/Loader.js +39 -39
  46. package/components/Modal/Modal.js +48 -48
  47. package/components/PageHeader/PageHeader.js +18 -18
  48. package/components/Pagination/Pagination.js +23 -23
  49. package/components/Popover/Popover.js +25 -25
  50. package/components/ProgressBar/ProgressBar.js +17 -17
  51. package/components/RelativeTime/RelativeTime.js +10 -10
  52. package/components/SegmentedControl/SegmentedControl.js +38 -38
  53. package/components/Skeleton/Skeleton.js +10 -10
  54. package/components/Spinner/Spinner.js +7 -7
  55. package/components/SplitButton/SplitButton.js +63 -63
  56. package/components/SplitPane/SplitPane.js +50 -50
  57. package/components/StatCard/StatCard.js +32 -32
  58. package/components/StatusDot/StatusDot.js +7 -7
  59. package/components/Table/Table.js +174 -174
  60. package/components/Tabs/Tabs.js +47 -47
  61. package/components/ThemeToggle/ThemeToggle.js +31 -31
  62. package/components/Timeline/GanttTimeline.js +213 -213
  63. package/components/Timeline/HistoryTimeline.js +306 -306
  64. package/components/Timeline/TimelineShared.js +103 -103
  65. package/components/Timeline/TraceEventDetails.js +103 -103
  66. package/components/Timeline/TraceTimeline.js +546 -546
  67. package/components/Timeline/historyLayout.js +2 -2
  68. package/components/Timer/Timer.js +39 -39
  69. package/components/Toast/Toast.js +59 -59
  70. package/components/ToggleIconButton/ToggleIconButton.js +9 -9
  71. package/components/Tooltip/Tooltip.js +16 -16
  72. package/components/Typography/Typography.js +5 -5
  73. package/components/inputs/Checkbox/Checkbox.js +11 -11
  74. package/components/inputs/Checkbox/CheckboxGroup.js +21 -21
  75. package/components/inputs/DatePicker/CalendarPanel.js +113 -113
  76. package/components/inputs/DatePicker/DatePicker.js +39 -39
  77. package/components/inputs/DateTimePicker/DateTimePicker.js +119 -119
  78. package/components/inputs/DateTimePicker/DateTimeSegments.js +40 -40
  79. package/components/inputs/DateTimePicker/TimeField.js +34 -34
  80. package/components/inputs/Input/Input.js +13 -13
  81. package/components/inputs/NumberInput/NumberInput.js +16 -16
  82. package/components/inputs/Radio/Radio.js +17 -17
  83. package/components/inputs/SearchInput/SearchInput.js +25 -25
  84. package/components/inputs/Select/Select.d.ts +55 -3
  85. package/components/inputs/Select/Select.js +485 -344
  86. package/components/inputs/Select/{Select.module.js → Select.module.scss.js} +15 -3
  87. package/components/inputs/Slider/Slider.js +21 -21
  88. package/components/inputs/Switch/Switch.js +4 -4
  89. package/components/inputs/Textarea/Textarea.js +8 -8
  90. package/hooks/usePortalPosition.d.ts +2 -1
  91. package/hooks/usePortalPosition.js +6 -3
  92. package/hooks/useResizable.js +1 -1
  93. package/hooks/useTheme.js +7 -7
  94. package/index.css +1 -1
  95. package/index.js +1 -1
  96. package/index.layered.css +1 -1
  97. package/llms.txt +25 -4
  98. package/manifest.json +33 -4
  99. package/package.json +1 -1
  100. /package/components/Accordion/{Accordion.module.js → Accordion.module.scss.js} +0 -0
  101. /package/components/ActionButton/{ActionButton.module.js → ActionButton.module.scss.js} +0 -0
  102. /package/components/Alert/{Alert.module.js → Alert.module.scss.js} +0 -0
  103. /package/components/Avatar/{Avatar.module.js → Avatar.module.scss.js} +0 -0
  104. /package/components/Badge/{Badge.module.js → Badge.module.scss.js} +0 -0
  105. /package/components/Breadcrumbs/{Breadcrumbs.module.js → Breadcrumbs.module.scss.js} +0 -0
  106. /package/components/Button/{Button.module.js → Button.module.scss.js} +0 -0
  107. /package/components/Card/{Card.module.js → Card.module.scss.js} +0 -0
  108. /package/components/Chart/{Chart.module.js → Chart.module.scss.js} +0 -0
  109. /package/components/Chip/{Chip.module.js → Chip.module.scss.js} +0 -0
  110. /package/components/CodeBlock/{CodeBlock.module.js → CodeBlock.module.scss.js} +0 -0
  111. /package/components/CommandPalette/{CommandPalette.module.js → CommandPalette.module.scss.js} +0 -0
  112. /package/components/ConfirmDialog/{ConfirmDialog.module.js → ConfirmDialog.module.scss.js} +0 -0
  113. /package/components/Divider/{Divider.module.js → Divider.module.scss.js} +0 -0
  114. /package/components/Draggable/{Draggable.module.js → Draggable.module.scss.js} +0 -0
  115. /package/components/Drawer/{Drawer.module.js → Drawer.module.scss.js} +0 -0
  116. /package/components/Dropdown/{Dropdown.module.js → Dropdown.module.scss.js} +0 -0
  117. /package/components/Dropzone/{Dropzone.module.js → Dropzone.module.scss.js} +0 -0
  118. /package/components/EmptyState/{EmptyState.module.js → EmptyState.module.scss.js} +0 -0
  119. /package/components/Form/{Form.module.js → Form.module.scss.js} +0 -0
  120. /package/components/ImageViewer/{ImageViewer.module.js → ImageViewer.module.scss.js} +0 -0
  121. /package/components/Kbd/{Kbd.module.js → Kbd.module.scss.js} +0 -0
  122. /package/components/KeyValueList/{KeyValueList.module.js → KeyValueList.module.scss.js} +0 -0
  123. /package/components/Link/{Link.module.js → Link.module.scss.js} +0 -0
  124. /package/components/List/{List.module.js → List.module.scss.js} +0 -0
  125. /package/components/Loader/{Loader.module.js → Loader.module.scss.js} +0 -0
  126. /package/components/Modal/{Modal.module.js → Modal.module.scss.js} +0 -0
  127. /package/components/PageHeader/{PageHeader.module.js → PageHeader.module.scss.js} +0 -0
  128. /package/components/Pagination/{Pagination.module.js → Pagination.module.scss.js} +0 -0
  129. /package/components/Popover/{Popover.module.js → Popover.module.scss.js} +0 -0
  130. /package/components/ProgressBar/{ProgressBar.module.js → ProgressBar.module.scss.js} +0 -0
  131. /package/components/RelativeTime/{RelativeTime.module.js → RelativeTime.module.scss.js} +0 -0
  132. /package/components/SegmentedControl/{SegmentedControl.module.js → SegmentedControl.module.scss.js} +0 -0
  133. /package/components/Skeleton/{Skeleton.module.js → Skeleton.module.scss.js} +0 -0
  134. /package/components/Spinner/{Spinner.module.js → Spinner.module.scss.js} +0 -0
  135. /package/components/SplitButton/{SplitButton.module.js → SplitButton.module.scss.js} +0 -0
  136. /package/components/SplitPane/{SplitPane.module.js → SplitPane.module.scss.js} +0 -0
  137. /package/components/StatCard/{StatCard.module.js → StatCard.module.scss.js} +0 -0
  138. /package/components/StatusDot/{StatusDot.module.js → StatusDot.module.scss.js} +0 -0
  139. /package/components/Table/{Table.module.js → Table.module.scss.js} +0 -0
  140. /package/components/Tabs/{Tabs.module.js → Tabs.module.scss.js} +0 -0
  141. /package/components/ThemeToggle/{ThemeToggle.module.js → ThemeToggle.module.scss.js} +0 -0
  142. /package/components/Timeline/{GanttTimeline.module.js → GanttTimeline.module.scss.js} +0 -0
  143. /package/components/Timeline/{HistoryTimeline.module.js → HistoryTimeline.module.scss.js} +0 -0
  144. /package/components/Timeline/{Timeline.module.js → Timeline.module.scss.js} +0 -0
  145. /package/components/Timeline/{TraceTimeline.module.js → TraceTimeline.module.scss.js} +0 -0
  146. /package/components/Timer/{Timer.module.js → Timer.module.scss.js} +0 -0
  147. /package/components/Toast/{Toast.module.js → Toast.module.scss.js} +0 -0
  148. /package/components/ToggleIconButton/{ToggleIconButton.module.js → ToggleIconButton.module.scss.js} +0 -0
  149. /package/components/Tooltip/{Tooltip.module.js → Tooltip.module.scss.js} +0 -0
  150. /package/components/Typography/{Typography.module.js → Typography.module.scss.js} +0 -0
  151. /package/components/inputs/Checkbox/{Checkbox.module.js → Checkbox.module.scss.js} +0 -0
  152. /package/components/inputs/Checkbox/{CheckboxGroup.module.js → CheckboxGroup.module.scss.js} +0 -0
  153. /package/components/inputs/DatePicker/{CalendarPanel.module.js → CalendarPanel.module.scss.js} +0 -0
  154. /package/components/inputs/DatePicker/{DatePicker.module.js → DatePicker.module.scss.js} +0 -0
  155. /package/components/inputs/DateTimePicker/{DateTimePicker.module.js → DateTimePicker.module.scss.js} +0 -0
  156. /package/components/inputs/Input/{Input.module.js → Input.module.scss.js} +0 -0
  157. /package/components/inputs/NumberInput/{NumberInput.module.js → NumberInput.module.scss.js} +0 -0
  158. /package/components/inputs/Radio/{Radio.module.js → Radio.module.scss.js} +0 -0
  159. /package/components/inputs/SearchInput/{SearchInput.module.js → SearchInput.module.scss.js} +0 -0
  160. /package/components/inputs/Slider/{Slider.module.js → Slider.module.scss.js} +0 -0
  161. /package/components/inputs/Textarea/{Textarea.module.js → Textarea.module.scss.js} +0 -0
@@ -1,132 +1,132 @@
1
- import e from "./Timeline.module.js";
2
- import t from "./TraceTimeline.module.js";
3
- import { fmtDur as n, fmtISO as r } from "./timelineCore.js";
4
- import { HighlightText as i } from "./TimelineShared.js";
5
- import { CopyButton as a } from "../ActionButton/CopyButton.js";
6
- import { badgeOf as o, extraFieldsOf as s, isInline as c, isRequestEvent as l, routeOf as u, toText as d } from "./traceEvent.js";
7
- import { forwardRef as f, isValidElement as p } from "react";
8
- import m from "clsx";
1
+ import { forwardRef as e, isValidElement as t } from "react";
2
+ import n from "clsx";
3
+ import r from "./Timeline.module.scss.js";
4
+ import i from "./TraceTimeline.module.scss.js";
5
+ import { fmtDur as a, fmtISO as o } from "./timelineCore.js";
6
+ import { HighlightText as s } from "./TimelineShared.js";
7
+ import { CopyButton as c } from "../ActionButton/CopyButton.js";
8
+ import { badgeOf as l, extraFieldsOf as u, isInline as d, isRequestEvent as f, routeOf as p, toText as m } from "./traceEvent.js";
9
9
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
10
10
  // src/components/Timeline/TraceEventDetails.tsx
11
- function v({ event: e, pending: n, small: r }) {
12
- let i = o(e, n);
13
- return i ? /* @__PURE__ */ g("span", {
14
- className: m(t.statusBadge, r && t.badgeSm, i.tone === "pending" && t.statusPending, i.tone === "warn" && t.statusWarn, i.tone === "error" && t.statusError),
15
- children: i.text
11
+ function v({ event: e, pending: t, small: r }) {
12
+ let a = l(e, t);
13
+ return a ? /* @__PURE__ */ g("span", {
14
+ className: n(i.statusBadge, r && i.badgeSm, a.tone === "pending" && i.statusPending, a.tone === "warn" && i.statusWarn, a.tone === "error" && i.statusError),
15
+ children: a.text
16
16
  }) : null;
17
17
  }
18
- function y({ field: n, query: r, className: o }) {
19
- let { label: s, value: l, mono: u = !0, copy: f } = n, h = c(l) || l == null || p(l), v = /* @__PURE__ */ g(a, {
18
+ function y({ field: e, query: a, className: o }) {
19
+ let { label: l, value: u, mono: f = !0, copy: p } = e, h = d(u) || u == null || t(u), v = /* @__PURE__ */ g(c, {
20
20
  size: "sm",
21
- className: t.payloadCopy,
22
- value: () => d(l),
23
- "aria-label": `Copy ${s}`
21
+ className: i.payloadCopy,
22
+ value: () => m(u),
23
+ "aria-label": `Copy ${l}`
24
24
  });
25
25
  return /* @__PURE__ */ _("div", {
26
- className: m(t.field, !h && t.fieldBlock, o),
27
- children: [f || !h ? /* @__PURE__ */ _("div", {
28
- className: t.bodyHead,
26
+ className: n(i.field, !h && i.fieldBlock, o),
27
+ children: [p || !h ? /* @__PURE__ */ _("div", {
28
+ className: i.bodyHead,
29
29
  children: [/* @__PURE__ */ g("span", {
30
- className: t.fieldLabel,
31
- children: s
30
+ className: i.fieldLabel,
31
+ children: l
32
32
  }), v]
33
33
  }) : /* @__PURE__ */ g("span", {
34
- className: t.fieldLabel,
35
- children: s
34
+ className: i.fieldLabel,
35
+ children: l
36
36
  }), h ? /* @__PURE__ */ g("div", {
37
- className: m(t.fieldValue, u && t.fieldMono),
38
- children: p(l) ? l : l == null || l === "" ? "—" : /* @__PURE__ */ g(i, {
39
- text: String(l),
40
- query: r
37
+ className: n(i.fieldValue, f && i.fieldMono),
38
+ children: t(u) ? u : u == null || u === "" ? "—" : /* @__PURE__ */ g(s, {
39
+ text: String(u),
40
+ query: a
41
41
  })
42
42
  }) : /* @__PURE__ */ g("pre", {
43
- className: m(e.asideRaw, t.fieldPre),
44
- children: d(l)
43
+ className: n(r.asideRaw, i.fieldPre),
44
+ children: m(u)
45
45
  })]
46
46
  });
47
47
  }
48
- function b({ label: n, value: r, copyLabel: i, section: o }) {
48
+ function b({ label: e, value: t, copyLabel: a, section: o }) {
49
49
  return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
50
- className: t.bodyHead,
50
+ className: i.bodyHead,
51
51
  children: [/* @__PURE__ */ g("span", {
52
- className: m(o ? t.drawerSection : e.asideSection, t.bodyLabel),
53
- children: n
54
- }), r != null && /* @__PURE__ */ g(a, {
52
+ className: n(o ? i.drawerSection : r.asideSection, i.bodyLabel),
53
+ children: e
54
+ }), t != null && /* @__PURE__ */ g(c, {
55
55
  size: "sm",
56
- className: t.payloadCopy,
57
- value: () => d(r),
58
- "aria-label": i
56
+ className: i.payloadCopy,
57
+ value: () => m(t),
58
+ "aria-label": a
59
59
  })]
60
60
  }), /* @__PURE__ */ g("pre", {
61
- className: e.asideRaw,
62
- children: r == null ? "(empty)" : d(r)
61
+ className: r.asideRaw,
62
+ children: t == null ? "(empty)" : m(t)
63
63
  })] });
64
64
  }
65
65
  var x = (e) => Object.entries(e || {}).map(([e, t]) => ({
66
66
  k: e,
67
67
  v: String(t)
68
- })), S = f(function(i, a) {
69
- let { event: o, now: c = Date.now(), highlight: d, showExtraFields: f = !0, hiddenFields: p, onClose: S, classes: C, className: w, style: T } = i, E = (d || "").trim(), D = o.end == null, O = l(o), k = f ? s(o, p) : [], A = !!Object.keys(o.query || {}).length, j = !!Object.keys(o.reqHeaders || {}).length, M = !!Object.keys(o.resHeaders || {}).length, N = [], P = o.reqHeaders && o.reqHeaders["x-request-id"] || o.requestId;
70
- o.op && N.push({
68
+ })), S = e(function(e, t) {
69
+ let { event: s, now: c = Date.now(), highlight: l, showExtraFields: d = !0, hiddenFields: m, onClose: S, classes: C, className: w, style: T } = e, E = (l || "").trim(), D = s.end == null, O = f(s), k = d ? u(s, m) : [], A = !!Object.keys(s.query || {}).length, j = !!Object.keys(s.reqHeaders || {}).length, M = !!Object.keys(s.resHeaders || {}).length, N = [], P = s.reqHeaders && s.reqHeaders["x-request-id"] || s.requestId;
70
+ s.op && N.push({
71
71
  label: "Operation",
72
- value: o.op
73
- }), o.url ? N.push({
72
+ value: s.op
73
+ }), s.url ? N.push({
74
74
  label: "URL",
75
- value: o.url
76
- }) : o.label && N.push({
75
+ value: s.url
76
+ }) : s.label && N.push({
77
77
  label: "Label",
78
- value: o.label
78
+ value: s.label
79
79
  }), N.push({
80
80
  label: "Event id",
81
- value: o.id
81
+ value: s.id
82
82
  }), P && N.push({
83
83
  label: "Request id",
84
84
  value: P
85
85
  }), N.push({
86
86
  label: "Started",
87
- value: r(o.start, !0)
87
+ value: o(s.start, !0)
88
88
  }), D ? N.push({
89
89
  label: "Duration",
90
- value: n(c - o.start) + " so far"
91
- }) : o.end === o.start ? N.push({
90
+ value: a(c - s.start) + " so far"
91
+ }) : s.end === s.start ? N.push({
92
92
  label: "Duration",
93
93
  value: "instant"
94
94
  }) : (N.push({
95
95
  label: "Ended",
96
- value: r(o.end, !0)
96
+ value: o(s.end, !0)
97
97
  }), N.push({
98
98
  label: "Duration",
99
- value: n(o.end - o.start)
99
+ value: a(s.end - s.start)
100
100
  }));
101
- let F = !O && !o.message && !o.details?.length && o.payload == null && !k.length, I = (e) => /* @__PURE__ */ g("div", {
102
- className: m(t.drawerSection, C?.section),
101
+ let F = !O && !s.message && !s.details?.length && s.payload == null && !k.length, I = (e) => /* @__PURE__ */ g("div", {
102
+ className: n(i.drawerSection, C?.section),
103
103
  children: e
104
104
  });
105
105
  return /* @__PURE__ */ _("div", {
106
- ref: a,
107
- className: m(C?.root, w),
106
+ ref: t,
107
+ className: n(C?.root, w),
108
108
  style: T,
109
109
  children: [/* @__PURE__ */ g("div", {
110
- className: m(t.drawerHead, C?.head),
110
+ className: n(i.drawerHead, C?.head),
111
111
  children: /* @__PURE__ */ _("div", {
112
- className: t.drawerHeadRow,
112
+ className: i.drawerHeadRow,
113
113
  children: [
114
- o.method && /* @__PURE__ */ g("span", {
115
- className: t.methodBadge,
116
- children: o.method
114
+ s.method && /* @__PURE__ */ g("span", {
115
+ className: i.methodBadge,
116
+ children: s.method
117
117
  }),
118
118
  /* @__PURE__ */ g(v, {
119
- event: o,
119
+ event: s,
120
120
  pending: D
121
121
  }),
122
122
  /* @__PURE__ */ g("span", {
123
- className: t.drawerRoute,
124
- children: u(o)
123
+ className: i.drawerRoute,
124
+ children: p(s)
125
125
  }),
126
- /* @__PURE__ */ g("div", { className: t.drawerSpacer }),
126
+ /* @__PURE__ */ g("div", { className: i.drawerSpacer }),
127
127
  S && /* @__PURE__ */ g("button", {
128
128
  type: "button",
129
- className: e.asideClose,
129
+ className: r.asideClose,
130
130
  "aria-label": "Close details",
131
131
  onClick: S,
132
132
  children: "✕"
@@ -134,103 +134,103 @@ var x = (e) => Object.entries(e || {}).map(([e, t]) => ({
134
134
  ]
135
135
  })
136
136
  }), /* @__PURE__ */ _("div", {
137
- className: m(t.drawerBody, C?.body),
137
+ className: n(i.drawerBody, C?.body),
138
138
  children: [
139
139
  /* @__PURE__ */ g("div", {
140
- className: m(t.fieldList, t.headFields),
140
+ className: n(i.fieldList, i.headFields),
141
141
  children: N.map((e) => /* @__PURE__ */ g(y, {
142
142
  field: e,
143
143
  query: E,
144
144
  className: C?.field
145
145
  }, e.label))
146
146
  }),
147
- o.message && /* @__PURE__ */ g("div", {
148
- className: t.fieldList,
147
+ s.message && /* @__PURE__ */ g("div", {
148
+ className: i.fieldList,
149
149
  children: /* @__PURE__ */ g(y, {
150
150
  field: {
151
151
  label: "Message",
152
- value: o.message,
152
+ value: s.message,
153
153
  mono: !1
154
154
  },
155
155
  query: E,
156
156
  className: C?.field
157
157
  })
158
158
  }),
159
- !!o.details?.length && /* @__PURE__ */ _(h, { children: [I("Details"), /* @__PURE__ */ g("div", {
160
- className: t.fieldList,
161
- children: o.details.map((e, t) => /* @__PURE__ */ g(y, {
159
+ !!s.details?.length && /* @__PURE__ */ _(h, { children: [I("Details"), /* @__PURE__ */ g("div", {
160
+ className: i.fieldList,
161
+ children: s.details.map((e, t) => /* @__PURE__ */ g(y, {
162
162
  field: e,
163
163
  query: E,
164
164
  className: C?.field
165
165
  }, e.label + t))
166
166
  })] }),
167
- o.payload != null && /* @__PURE__ */ g(b, {
167
+ s.payload != null && /* @__PURE__ */ g(b, {
168
168
  section: !0,
169
169
  label: "Payload",
170
- value: o.payload,
170
+ value: s.payload,
171
171
  copyLabel: "Copy payload"
172
172
  }),
173
173
  O && /* @__PURE__ */ _(h, { children: [
174
174
  I("Request"),
175
175
  A && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
176
- className: e.asideSection,
176
+ className: r.asideSection,
177
177
  children: "Query parameters"
178
- }), x(o.query).map((e) => /* @__PURE__ */ _("div", {
179
- className: t.kvRow,
178
+ }), x(s.query).map((e) => /* @__PURE__ */ _("div", {
179
+ className: i.kvRow,
180
180
  children: [/* @__PURE__ */ g("span", {
181
- className: m(t.kvKey, t.kvKeyQuery),
181
+ className: n(i.kvKey, i.kvKeyQuery),
182
182
  children: e.k
183
183
  }), /* @__PURE__ */ g("span", {
184
- className: t.kvVal,
184
+ className: i.kvVal,
185
185
  children: e.v
186
186
  })]
187
187
  }, e.k))] }),
188
188
  j && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
189
- className: e.asideSection,
189
+ className: r.asideSection,
190
190
  children: "Headers"
191
- }), x(o.reqHeaders).map((e) => /* @__PURE__ */ _("div", {
192
- className: t.kvRow,
191
+ }), x(s.reqHeaders).map((e) => /* @__PURE__ */ _("div", {
192
+ className: i.kvRow,
193
193
  children: [/* @__PURE__ */ g("span", {
194
- className: t.kvKey,
194
+ className: i.kvKey,
195
195
  children: e.k
196
196
  }), /* @__PURE__ */ g("span", {
197
- className: t.kvVal,
197
+ className: i.kvVal,
198
198
  children: e.v
199
199
  })]
200
200
  }, e.k))] }),
201
- o.reqBody != null && /* @__PURE__ */ g(b, {
201
+ s.reqBody != null && /* @__PURE__ */ g(b, {
202
202
  label: "Body",
203
- value: o.reqBody,
203
+ value: s.reqBody,
204
204
  copyLabel: "Copy request payload"
205
205
  }),
206
- !A && !j && o.reqBody == null && /* @__PURE__ */ g("div", {
207
- className: t.emptyNote,
206
+ !A && !j && s.reqBody == null && /* @__PURE__ */ g("div", {
207
+ className: i.emptyNote,
208
208
  children: "No request data captured."
209
209
  }),
210
210
  I("Response"),
211
211
  D ? /* @__PURE__ */ _("div", {
212
- className: t.awaiting,
213
- children: [/* @__PURE__ */ g("span", { className: m(e.pulseDot, t.awaitingDot) }), "Awaiting response…"]
212
+ className: i.awaiting,
213
+ children: [/* @__PURE__ */ g("span", { className: n(r.pulseDot, i.awaitingDot) }), "Awaiting response…"]
214
214
  }) : /* @__PURE__ */ _(h, { children: [M && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
215
- className: e.asideSection,
215
+ className: r.asideSection,
216
216
  children: "Headers"
217
- }), x(o.resHeaders).map((e) => /* @__PURE__ */ _("div", {
218
- className: t.kvRow,
217
+ }), x(s.resHeaders).map((e) => /* @__PURE__ */ _("div", {
218
+ className: i.kvRow,
219
219
  children: [/* @__PURE__ */ g("span", {
220
- className: t.kvKey,
220
+ className: i.kvKey,
221
221
  children: e.k
222
222
  }), /* @__PURE__ */ g("span", {
223
- className: t.kvVal,
223
+ className: i.kvVal,
224
224
  children: e.v
225
225
  })]
226
226
  }, e.k))] }), /* @__PURE__ */ g(b, {
227
227
  label: "Body",
228
- value: o.resBody,
228
+ value: s.resBody,
229
229
  copyLabel: "Copy response payload"
230
230
  })] })
231
231
  ] }),
232
232
  !!k.length && /* @__PURE__ */ _(h, { children: [I("Other fields"), /* @__PURE__ */ g("div", {
233
- className: t.fieldList,
233
+ className: i.fieldList,
234
234
  children: k.map((e) => /* @__PURE__ */ g(y, {
235
235
  field: e,
236
236
  query: E,
@@ -238,7 +238,7 @@ var x = (e) => Object.entries(e || {}).map(([e, t]) => ({
238
238
  }, e.label))
239
239
  })] }),
240
240
  F && /* @__PURE__ */ g("div", {
241
- className: t.emptyNote,
241
+ className: i.emptyNote,
242
242
  children: "No further details for this event."
243
243
  })
244
244
  ]