@octaviaflow/core 3.0.12 → 3.0.13
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/components/AuthCard/AuthCard.d.ts +35 -2
- package/dist/components/AuthCard/AuthCard.d.ts.map +1 -1
- package/dist/index.cjs +78 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +153 -88
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -196,30 +196,95 @@ function AgentCard({
|
|
|
196
196
|
|
|
197
197
|
// src/components/AuthCard/AuthCard.tsx
|
|
198
198
|
import { useId, useRef as useRef2, useState } from "react";
|
|
199
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
199
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
200
200
|
function AuthCard({
|
|
201
201
|
logo,
|
|
202
202
|
title,
|
|
203
203
|
description,
|
|
204
204
|
scope,
|
|
205
|
+
header,
|
|
206
|
+
headerExtra,
|
|
207
|
+
error,
|
|
208
|
+
success,
|
|
209
|
+
align = "center",
|
|
210
|
+
width,
|
|
205
211
|
children,
|
|
206
212
|
divider,
|
|
207
213
|
footer,
|
|
208
214
|
className
|
|
209
215
|
}) {
|
|
210
|
-
return /* @__PURE__ */ jsxs3(
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
216
|
+
return /* @__PURE__ */ jsxs3(
|
|
217
|
+
"div",
|
|
218
|
+
{
|
|
219
|
+
className: cn(
|
|
220
|
+
"ods-auth-card",
|
|
221
|
+
align === "left" && "ods-auth-card--left",
|
|
222
|
+
className
|
|
223
|
+
),
|
|
224
|
+
style: width != null ? { width: typeof width === "number" ? `${width}px` : width } : void 0,
|
|
225
|
+
children: [
|
|
226
|
+
header ?? /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
227
|
+
logo && /* @__PURE__ */ jsx3("div", { className: "ods-auth-card__logo", children: logo }),
|
|
228
|
+
(title || description || scope) && /* @__PURE__ */ jsxs3("div", { className: "ods-auth-card__head", children: [
|
|
229
|
+
(title || scope) && /* @__PURE__ */ jsxs3("div", { className: "ods-auth-card__title-row", children: [
|
|
230
|
+
title && /* @__PURE__ */ jsx3("h1", { className: "ods-auth-card__title", children: title }),
|
|
231
|
+
scope && /* @__PURE__ */ jsx3("span", { className: "ods-auth-card__scope", children: scope })
|
|
232
|
+
] }),
|
|
233
|
+
description && /* @__PURE__ */ jsx3("p", { className: "ods-auth-card__desc", children: description })
|
|
234
|
+
] })
|
|
235
|
+
] }),
|
|
236
|
+
headerExtra && /* @__PURE__ */ jsx3("div", { className: "ods-auth-card__header-extra", children: headerExtra }),
|
|
237
|
+
(error || success) && /* @__PURE__ */ jsxs3(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
className: "ods-auth-card__messages",
|
|
241
|
+
style: {
|
|
242
|
+
display: "flex",
|
|
243
|
+
flexDirection: "column",
|
|
244
|
+
gap: "var(--ods-space-2)"
|
|
245
|
+
},
|
|
246
|
+
children: [
|
|
247
|
+
error && /* @__PURE__ */ jsx3(AutoBanner, { variant: "error", children: error }),
|
|
248
|
+
success && /* @__PURE__ */ jsx3(AutoBanner, { variant: "success", children: success })
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
/* @__PURE__ */ jsx3("div", { className: "ods-auth-card__body", children }),
|
|
253
|
+
divider && /* @__PURE__ */ jsx3("div", { className: "ods-auth-card__divider", children: divider }),
|
|
254
|
+
footer && /* @__PURE__ */ jsx3("div", { className: "ods-auth-card__footer", children: footer })
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
function AutoBanner({
|
|
260
|
+
variant,
|
|
261
|
+
children
|
|
262
|
+
}) {
|
|
263
|
+
const tone = variant === "error" ? {
|
|
264
|
+
bg: "var(--ods-status-error-bg)",
|
|
265
|
+
fg: "var(--ods-status-error-fg)",
|
|
266
|
+
bd: "var(--ods-status-error-bd)"
|
|
267
|
+
} : {
|
|
268
|
+
bg: "var(--ods-status-success-bg)",
|
|
269
|
+
fg: "var(--ods-status-success-fg)",
|
|
270
|
+
bd: "var(--ods-status-success-bd)"
|
|
271
|
+
};
|
|
272
|
+
return /* @__PURE__ */ jsx3(
|
|
273
|
+
"div",
|
|
274
|
+
{
|
|
275
|
+
role: variant === "error" ? "alert" : "status",
|
|
276
|
+
style: {
|
|
277
|
+
padding: "10px 12px",
|
|
278
|
+
background: tone.bg,
|
|
279
|
+
color: tone.fg,
|
|
280
|
+
border: `1px solid ${tone.bd}`,
|
|
281
|
+
borderRadius: "var(--ods-radius-1)",
|
|
282
|
+
fontSize: 13,
|
|
283
|
+
lineHeight: 1.45
|
|
284
|
+
},
|
|
285
|
+
children
|
|
286
|
+
}
|
|
287
|
+
);
|
|
223
288
|
}
|
|
224
289
|
function AuthDivider({ children = "OR", className }) {
|
|
225
290
|
return /* @__PURE__ */ jsxs3("div", { className: cn("ods-auth-divider", className), children: [
|
|
@@ -585,14 +650,14 @@ function BlogCard({
|
|
|
585
650
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
586
651
|
import { useRef as useRef3 } from "react";
|
|
587
652
|
import { useBreadcrumbItem, useBreadcrumbs } from "react-aria";
|
|
588
|
-
import { Fragment, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
653
|
+
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
589
654
|
function BreadcrumbItem({ item, isCurrent }) {
|
|
590
655
|
const ref = useRef3(null);
|
|
591
656
|
const { itemProps } = useBreadcrumbItem(
|
|
592
657
|
{ children: item.label, isCurrent, elementType: item.href ? "a" : "span" },
|
|
593
658
|
ref
|
|
594
659
|
);
|
|
595
|
-
const content = /* @__PURE__ */ jsxs9(
|
|
660
|
+
const content = /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
596
661
|
item.icon && /* @__PURE__ */ jsx9("span", { className: "ods-breadcrumb__icon", children: item.icon }),
|
|
597
662
|
/* @__PURE__ */ jsx9("span", { children: item.label })
|
|
598
663
|
] });
|
|
@@ -2749,7 +2814,7 @@ function ChoiceCard({
|
|
|
2749
2814
|
|
|
2750
2815
|
// src/components/CodeEditor/CodeEditor.tsx
|
|
2751
2816
|
import { useEffect, useMemo as useMemo3, useRef as useRef6, useState as useState3 } from "react";
|
|
2752
|
-
import { Fragment as
|
|
2817
|
+
import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2753
2818
|
var COMMENT_PREFIX = {
|
|
2754
2819
|
sql: "-- ",
|
|
2755
2820
|
json: "// ",
|
|
@@ -3263,7 +3328,7 @@ ${indent}`;
|
|
|
3263
3328
|
/* @__PURE__ */ jsxs17("span", { className: "ods-code-editor__pos", children: [
|
|
3264
3329
|
"Ln ",
|
|
3265
3330
|
activeLine,
|
|
3266
|
-
selectionLen > 0 && /* @__PURE__ */ jsxs17(
|
|
3331
|
+
selectionLen > 0 && /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
3267
3332
|
" ",
|
|
3268
3333
|
"\xB7 ",
|
|
3269
3334
|
selectionLen,
|
|
@@ -3281,7 +3346,7 @@ ${indent}`;
|
|
|
3281
3346
|
/* @__PURE__ */ jsx18("span", { className: "ods-code-editor__sep", children: "\xB7" }),
|
|
3282
3347
|
/* @__PURE__ */ jsx18("kbd", { className: "ods-code-editor__kbd", children: "\u2325\u2191\u2193" }),
|
|
3283
3348
|
" move",
|
|
3284
|
-
searchable && /* @__PURE__ */ jsxs17(
|
|
3349
|
+
searchable && /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
3285
3350
|
/* @__PURE__ */ jsx18("span", { className: "ods-code-editor__sep", children: "\xB7" }),
|
|
3286
3351
|
/* @__PURE__ */ jsx18("kbd", { className: "ods-code-editor__kbd", children: "\u2318F" }),
|
|
3287
3352
|
" find"
|
|
@@ -3826,7 +3891,7 @@ import {
|
|
|
3826
3891
|
useRef as useRef9,
|
|
3827
3892
|
useState as useState6
|
|
3828
3893
|
} from "react";
|
|
3829
|
-
import { Fragment as
|
|
3894
|
+
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3830
3895
|
var TYPE_CLASSES = {
|
|
3831
3896
|
string: "string",
|
|
3832
3897
|
integer: "integer",
|
|
@@ -4381,7 +4446,7 @@ function DataMapper({
|
|
|
4381
4446
|
" mapped"
|
|
4382
4447
|
] })
|
|
4383
4448
|
] }),
|
|
4384
|
-
requiredUnmapped > 0 && /* @__PURE__ */ jsxs21(
|
|
4449
|
+
requiredUnmapped > 0 && /* @__PURE__ */ jsxs21(Fragment4, { children: [
|
|
4385
4450
|
/* @__PURE__ */ jsx22("span", { className: "ods-data-mapper__stat-sep", children: "\xB7" }),
|
|
4386
4451
|
/* @__PURE__ */ jsxs21("span", { className: "ods-data-mapper__stat ods-data-mapper__stat--warn", children: [
|
|
4387
4452
|
/* @__PURE__ */ jsx22("span", { className: "ods-data-mapper__stat-value", children: requiredUnmapped }),
|
|
@@ -5148,7 +5213,7 @@ import {
|
|
|
5148
5213
|
useRef as useRef10,
|
|
5149
5214
|
useState as useState7
|
|
5150
5215
|
} from "react";
|
|
5151
|
-
import { Fragment as
|
|
5216
|
+
import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5152
5217
|
function readValue(row, col) {
|
|
5153
5218
|
if (typeof col.accessor === "function") return col.accessor(row);
|
|
5154
5219
|
const k = col.accessor ?? col.key;
|
|
@@ -5429,7 +5494,7 @@ function DataTable(props) {
|
|
|
5429
5494
|
className
|
|
5430
5495
|
);
|
|
5431
5496
|
return /* @__PURE__ */ jsxs22("div", { className: wrapperClass, role: "region", "aria-label": "Data table", children: [
|
|
5432
|
-
/* @__PURE__ */ jsx23("div", { className: "ods-datatable__toolbar", children: showBulkBar ? /* @__PURE__ */ jsxs22(
|
|
5497
|
+
/* @__PURE__ */ jsx23("div", { className: "ods-datatable__toolbar", children: showBulkBar ? /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
5433
5498
|
/* @__PURE__ */ jsxs22("div", { className: "ods-datatable__bulk-summary", children: [
|
|
5434
5499
|
/* @__PURE__ */ jsx23("span", { className: "ods-datatable__bulk-count", children: selectedCount }),
|
|
5435
5500
|
/* @__PURE__ */ jsx23("span", { children: "selected" }),
|
|
@@ -5463,7 +5528,7 @@ function DataTable(props) {
|
|
|
5463
5528
|
},
|
|
5464
5529
|
i
|
|
5465
5530
|
)) })
|
|
5466
|
-
] }) : /* @__PURE__ */ jsxs22(
|
|
5531
|
+
] }) : /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
5467
5532
|
/* @__PURE__ */ jsxs22("div", { className: "ods-datatable__title-block", children: [
|
|
5468
5533
|
title && /* @__PURE__ */ jsxs22("h2", { className: "ods-datatable__title", children: [
|
|
5469
5534
|
title,
|
|
@@ -5806,7 +5871,7 @@ function Row({
|
|
|
5806
5871
|
document.addEventListener("mousedown", close);
|
|
5807
5872
|
return () => document.removeEventListener("mousedown", close);
|
|
5808
5873
|
}, [menuOpen]);
|
|
5809
|
-
return /* @__PURE__ */ jsxs22(
|
|
5874
|
+
return /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
5810
5875
|
/* @__PURE__ */ jsxs22(
|
|
5811
5876
|
"tr",
|
|
5812
5877
|
{
|
|
@@ -6224,7 +6289,7 @@ function Dialog(props) {
|
|
|
6224
6289
|
}
|
|
6225
6290
|
|
|
6226
6291
|
// src/components/DonutChart/DonutChart.tsx
|
|
6227
|
-
import { Fragment as
|
|
6292
|
+
import { Fragment as Fragment6, jsx as jsx27, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6228
6293
|
function DonutChart({
|
|
6229
6294
|
data,
|
|
6230
6295
|
size = 160,
|
|
@@ -6275,7 +6340,7 @@ function DonutChart({
|
|
|
6275
6340
|
i
|
|
6276
6341
|
)) })
|
|
6277
6342
|
] }),
|
|
6278
|
-
/* @__PURE__ */ jsx27("div", { className: "ods-donut__center", children: centerLabel ?? /* @__PURE__ */ jsxs26(
|
|
6343
|
+
/* @__PURE__ */ jsx27("div", { className: "ods-donut__center", children: centerLabel ?? /* @__PURE__ */ jsxs26(Fragment6, { children: [
|
|
6279
6344
|
/* @__PURE__ */ jsx27("div", { className: "ods-donut__value", children: total }),
|
|
6280
6345
|
/* @__PURE__ */ jsx27("div", { className: "ods-donut__small", children: "total" })
|
|
6281
6346
|
] }) })
|
|
@@ -6346,7 +6411,7 @@ import { AnimatePresence as AnimatePresence4, motion as motion6 } from "framer-m
|
|
|
6346
6411
|
import { useEffect as useEffect6, useRef as useRef13 } from "react";
|
|
6347
6412
|
import { useButton as useButton3, useMenu, useMenuItem, useMenuTrigger } from "react-aria";
|
|
6348
6413
|
import { createPortal as createPortal2 } from "react-dom";
|
|
6349
|
-
import { Fragment as
|
|
6414
|
+
import { Fragment as Fragment7, jsx as jsx29, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6350
6415
|
function MenuItemComponent({ item, state, onAction }) {
|
|
6351
6416
|
const ref = useRef13(null);
|
|
6352
6417
|
const { menuItemProps } = useMenuItem({ key: item.key, onAction }, state, ref);
|
|
@@ -6503,7 +6568,7 @@ function DropdownMenu({
|
|
|
6503
6568
|
triggerRef
|
|
6504
6569
|
);
|
|
6505
6570
|
const { onDrag, onDragStart, onDragEnd, onAnimationStart, ...safeTriggerProps } = buttonProps;
|
|
6506
|
-
return /* @__PURE__ */ jsxs28(
|
|
6571
|
+
return /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
6507
6572
|
/* @__PURE__ */ jsx29(
|
|
6508
6573
|
"button",
|
|
6509
6574
|
{
|
|
@@ -6542,7 +6607,7 @@ function EmptyState({ icon, title, description, action, className }) {
|
|
|
6542
6607
|
// src/components/ExecutionConsole/ExecutionConsole.tsx
|
|
6543
6608
|
import { motion as motion7 } from "framer-motion";
|
|
6544
6609
|
import { useEffect as useEffect7, useRef as useRef14 } from "react";
|
|
6545
|
-
import { Fragment as
|
|
6610
|
+
import { Fragment as Fragment8, jsx as jsx31, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6546
6611
|
var iconProps = {
|
|
6547
6612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6548
6613
|
viewBox: "0 0 24 24",
|
|
@@ -6683,7 +6748,7 @@ function ExecutionConsole({
|
|
|
6683
6748
|
children: /* @__PURE__ */ jsx31(TrashIcon2, {})
|
|
6684
6749
|
}
|
|
6685
6750
|
),
|
|
6686
|
-
toolbar && /* @__PURE__ */ jsxs30(
|
|
6751
|
+
toolbar && /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
6687
6752
|
/* @__PURE__ */ jsx31("span", { className: "ods-console__action-separator", "aria-hidden": "true" }),
|
|
6688
6753
|
toolbar
|
|
6689
6754
|
] })
|
|
@@ -6826,7 +6891,7 @@ function sanitizeHref(url) {
|
|
|
6826
6891
|
}
|
|
6827
6892
|
|
|
6828
6893
|
// src/components/FileDropzone/FileDropzone.tsx
|
|
6829
|
-
import { Fragment as
|
|
6894
|
+
import { Fragment as Fragment9, jsx as jsx33, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6830
6895
|
var UPLOAD_ICON = /* @__PURE__ */ jsx33("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx33(
|
|
6831
6896
|
"path",
|
|
6832
6897
|
{
|
|
@@ -7146,7 +7211,7 @@ function FileDropzone({
|
|
|
7146
7211
|
children: CHECK_ICON
|
|
7147
7212
|
}
|
|
7148
7213
|
),
|
|
7149
|
-
status === "error" && /* @__PURE__ */ jsxs32(
|
|
7214
|
+
status === "error" && /* @__PURE__ */ jsxs32(Fragment9, { children: [
|
|
7150
7215
|
/* @__PURE__ */ jsx33(
|
|
7151
7216
|
"span",
|
|
7152
7217
|
{
|
|
@@ -7854,7 +7919,7 @@ function FlowMinimap({
|
|
|
7854
7919
|
}
|
|
7855
7920
|
|
|
7856
7921
|
// src/components/FlowToolbar/FlowToolbar.tsx
|
|
7857
|
-
import { Fragment as
|
|
7922
|
+
import { Fragment as Fragment10, jsx as jsx38, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7858
7923
|
function FlowToolbar({ children, placement = "left", className }) {
|
|
7859
7924
|
return /* @__PURE__ */ jsx38(
|
|
7860
7925
|
"div",
|
|
@@ -7914,7 +7979,7 @@ var SVG_BASE = {
|
|
|
7914
7979
|
var mkIcon = (children) => /* @__PURE__ */ jsx38("svg", { ...SVG_BASE, width: "16", height: "16", children });
|
|
7915
7980
|
var FlowToolbarIcons = {
|
|
7916
7981
|
save: mkIcon(
|
|
7917
|
-
/* @__PURE__ */ jsxs37(
|
|
7982
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7918
7983
|
/* @__PURE__ */ jsx38("path", { d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" }),
|
|
7919
7984
|
/* @__PURE__ */ jsx38("polyline", { points: "17 21 17 13 7 13 7 21" }),
|
|
7920
7985
|
/* @__PURE__ */ jsx38("polyline", { points: "7 3 7 8 15 8" })
|
|
@@ -7923,70 +7988,70 @@ var FlowToolbarIcons = {
|
|
|
7923
7988
|
run: mkIcon(/* @__PURE__ */ jsx38("polygon", { points: "6 4 20 12 6 20 6 4", fill: "currentColor", stroke: "none" })),
|
|
7924
7989
|
stop: mkIcon(/* @__PURE__ */ jsx38("rect", { x: "6", y: "6", width: "12", height: "12", rx: "1" })),
|
|
7925
7990
|
lock: mkIcon(
|
|
7926
|
-
/* @__PURE__ */ jsxs37(
|
|
7991
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7927
7992
|
/* @__PURE__ */ jsx38("rect", { x: "4", y: "11", width: "16", height: "10", rx: "2" }),
|
|
7928
7993
|
/* @__PURE__ */ jsx38("path", { d: "M8 11V7a4 4 0 0 1 8 0v4" })
|
|
7929
7994
|
] })
|
|
7930
7995
|
),
|
|
7931
7996
|
unlock: mkIcon(
|
|
7932
|
-
/* @__PURE__ */ jsxs37(
|
|
7997
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7933
7998
|
/* @__PURE__ */ jsx38("rect", { x: "4", y: "11", width: "16", height: "10", rx: "2" }),
|
|
7934
7999
|
/* @__PURE__ */ jsx38("path", { d: "M8 11V7a4 4 0 0 1 8 0" })
|
|
7935
8000
|
] })
|
|
7936
8001
|
),
|
|
7937
8002
|
reset: mkIcon(
|
|
7938
|
-
/* @__PURE__ */ jsxs37(
|
|
8003
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7939
8004
|
/* @__PURE__ */ jsx38("polyline", { points: "1 4 1 10 7 10" }),
|
|
7940
8005
|
/* @__PURE__ */ jsx38("path", { d: "M3.51 15a9 9 0 1 0 2.13-9.36L1 10" })
|
|
7941
8006
|
] })
|
|
7942
8007
|
),
|
|
7943
8008
|
undo: mkIcon(
|
|
7944
|
-
/* @__PURE__ */ jsxs37(
|
|
8009
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7945
8010
|
/* @__PURE__ */ jsx38("path", { d: "M3 7v6h6" }),
|
|
7946
8011
|
/* @__PURE__ */ jsx38("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-7.07 3.43L3 13" })
|
|
7947
8012
|
] })
|
|
7948
8013
|
),
|
|
7949
8014
|
redo: mkIcon(
|
|
7950
|
-
/* @__PURE__ */ jsxs37(
|
|
8015
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7951
8016
|
/* @__PURE__ */ jsx38("path", { d: "M21 7v6h-6" }),
|
|
7952
8017
|
/* @__PURE__ */ jsx38("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 7.07 3.43L21 13" })
|
|
7953
8018
|
] })
|
|
7954
8019
|
),
|
|
7955
8020
|
drawerOpen: mkIcon(
|
|
7956
|
-
/* @__PURE__ */ jsxs37(
|
|
8021
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7957
8022
|
/* @__PURE__ */ jsx38("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
7958
8023
|
/* @__PURE__ */ jsx38("line", { x1: "9", y1: "3", x2: "9", y2: "21" }),
|
|
7959
8024
|
/* @__PURE__ */ jsx38("polyline", { points: "13 9 16 12 13 15" })
|
|
7960
8025
|
] })
|
|
7961
8026
|
),
|
|
7962
8027
|
drawerClose: mkIcon(
|
|
7963
|
-
/* @__PURE__ */ jsxs37(
|
|
8028
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7964
8029
|
/* @__PURE__ */ jsx38("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
7965
8030
|
/* @__PURE__ */ jsx38("line", { x1: "9", y1: "3", x2: "9", y2: "21" }),
|
|
7966
8031
|
/* @__PURE__ */ jsx38("polyline", { points: "16 9 13 12 16 15" })
|
|
7967
8032
|
] })
|
|
7968
8033
|
),
|
|
7969
8034
|
settings: mkIcon(
|
|
7970
|
-
/* @__PURE__ */ jsxs37(
|
|
8035
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7971
8036
|
/* @__PURE__ */ jsx38("circle", { cx: "12", cy: "12", r: "3" }),
|
|
7972
8037
|
/* @__PURE__ */ jsx38("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
7973
8038
|
] })
|
|
7974
8039
|
),
|
|
7975
8040
|
history: mkIcon(
|
|
7976
|
-
/* @__PURE__ */ jsxs37(
|
|
8041
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7977
8042
|
/* @__PURE__ */ jsx38("path", { d: "M22 12A10 10 0 1 1 12 2" }),
|
|
7978
8043
|
/* @__PURE__ */ jsx38("polyline", { points: "22 2 22 8 16 8" }),
|
|
7979
8044
|
/* @__PURE__ */ jsx38("polyline", { points: "12 7 12 12 15 15" })
|
|
7980
8045
|
] })
|
|
7981
8046
|
),
|
|
7982
8047
|
debug: mkIcon(
|
|
7983
|
-
/* @__PURE__ */ jsxs37(
|
|
8048
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7984
8049
|
/* @__PURE__ */ jsx38("polyline", { points: "4 17 10 11 4 5" }),
|
|
7985
8050
|
/* @__PURE__ */ jsx38("line", { x1: "12", y1: "19", x2: "20", y2: "19" })
|
|
7986
8051
|
] })
|
|
7987
8052
|
),
|
|
7988
8053
|
zoomIn: mkIcon(
|
|
7989
|
-
/* @__PURE__ */ jsxs37(
|
|
8054
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7990
8055
|
/* @__PURE__ */ jsx38("circle", { cx: "11", cy: "11", r: "7" }),
|
|
7991
8056
|
/* @__PURE__ */ jsx38("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }),
|
|
7992
8057
|
/* @__PURE__ */ jsx38("line", { x1: "11", y1: "8", x2: "11", y2: "14" }),
|
|
@@ -7994,14 +8059,14 @@ var FlowToolbarIcons = {
|
|
|
7994
8059
|
] })
|
|
7995
8060
|
),
|
|
7996
8061
|
zoomOut: mkIcon(
|
|
7997
|
-
/* @__PURE__ */ jsxs37(
|
|
8062
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7998
8063
|
/* @__PURE__ */ jsx38("circle", { cx: "11", cy: "11", r: "7" }),
|
|
7999
8064
|
/* @__PURE__ */ jsx38("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }),
|
|
8000
8065
|
/* @__PURE__ */ jsx38("line", { x1: "8", y1: "11", x2: "14", y2: "11" })
|
|
8001
8066
|
] })
|
|
8002
8067
|
),
|
|
8003
8068
|
zoomReset: mkIcon(
|
|
8004
|
-
/* @__PURE__ */ jsxs37(
|
|
8069
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
8005
8070
|
/* @__PURE__ */ jsx38("circle", { cx: "11", cy: "11", r: "7" }),
|
|
8006
8071
|
/* @__PURE__ */ jsx38("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }),
|
|
8007
8072
|
/* @__PURE__ */ jsx38("polyline", { points: "8 9 8 13 12 13" }),
|
|
@@ -8009,7 +8074,7 @@ var FlowToolbarIcons = {
|
|
|
8009
8074
|
] })
|
|
8010
8075
|
),
|
|
8011
8076
|
fit: mkIcon(
|
|
8012
|
-
/* @__PURE__ */ jsxs37(
|
|
8077
|
+
/* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
8013
8078
|
/* @__PURE__ */ jsx38("path", { d: "M3 7V5a2 2 0 0 1 2-2h2" }),
|
|
8014
8079
|
/* @__PURE__ */ jsx38("path", { d: "M17 3h2a2 2 0 0 1 2 2v2" }),
|
|
8015
8080
|
/* @__PURE__ */ jsx38("path", { d: "M21 17v2a2 2 0 0 1-2 2h-2" }),
|
|
@@ -8101,7 +8166,7 @@ function FormSection({
|
|
|
8101
8166
|
// src/components/HoverCard/HoverCard.tsx
|
|
8102
8167
|
import { useCallback as useCallback8, useEffect as useEffect10, useLayoutEffect, useRef as useRef18, useState as useState11 } from "react";
|
|
8103
8168
|
import { createPortal as createPortal3 } from "react-dom";
|
|
8104
|
-
import { Fragment as
|
|
8169
|
+
import { Fragment as Fragment11, jsx as jsx40, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8105
8170
|
function computePosition(rect, panelRect, placement, offset) {
|
|
8106
8171
|
const cx = rect.left + rect.width / 2;
|
|
8107
8172
|
const cy = rect.top + rect.height / 2;
|
|
@@ -8206,7 +8271,7 @@ function HoverCard({
|
|
|
8206
8271
|
),
|
|
8207
8272
|
document.body
|
|
8208
8273
|
) : null;
|
|
8209
|
-
return /* @__PURE__ */ jsxs39(
|
|
8274
|
+
return /* @__PURE__ */ jsxs39(Fragment11, { children: [
|
|
8210
8275
|
triggerEl,
|
|
8211
8276
|
portal
|
|
8212
8277
|
] });
|
|
@@ -8365,7 +8430,7 @@ Input.displayName = "Input";
|
|
|
8365
8430
|
|
|
8366
8431
|
// src/components/JsonViewer/JsonViewer.tsx
|
|
8367
8432
|
import { useMemo as useMemo8, useState as useState12 } from "react";
|
|
8368
|
-
import { Fragment as
|
|
8433
|
+
import { Fragment as Fragment12, jsx as jsx43, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
8369
8434
|
var VARIANT = {
|
|
8370
8435
|
string: "string",
|
|
8371
8436
|
number: "number",
|
|
@@ -8467,7 +8532,7 @@ function JsonNode({
|
|
|
8467
8532
|
renderKey,
|
|
8468
8533
|
renderKey != null && /* @__PURE__ */ jsx43("span", { className: "ods-json-viewer__colon", children: ":" }),
|
|
8469
8534
|
/* @__PURE__ */ jsx43("span", { className: "ods-json-viewer__bracket", children: openBracket }),
|
|
8470
|
-
!open && /* @__PURE__ */ jsxs42(
|
|
8535
|
+
!open && /* @__PURE__ */ jsxs42(Fragment12, { children: [
|
|
8471
8536
|
/* @__PURE__ */ jsx43("span", { className: "ods-json-viewer__preview", children: isArray ? entries.length === 0 ? "" : `${entries.length} item${entries.length === 1 ? "" : "s"}` : entries.length === 0 ? "" : `${entries.length} key${entries.length === 1 ? "" : "s"}` }),
|
|
8472
8537
|
/* @__PURE__ */ jsx43("span", { className: "ods-json-viewer__bracket", children: closeBracket })
|
|
8473
8538
|
] }),
|
|
@@ -8475,7 +8540,7 @@ function JsonNode({
|
|
|
8475
8540
|
]
|
|
8476
8541
|
}
|
|
8477
8542
|
),
|
|
8478
|
-
open && /* @__PURE__ */ jsxs42(
|
|
8543
|
+
open && /* @__PURE__ */ jsxs42(Fragment12, { children: [
|
|
8479
8544
|
entries.map(([k, v], i) => /* @__PURE__ */ jsx43(
|
|
8480
8545
|
JsonNode,
|
|
8481
8546
|
{
|
|
@@ -9576,7 +9641,7 @@ function PhoneInput({
|
|
|
9576
9641
|
// src/components/Popover/Popover.tsx
|
|
9577
9642
|
import { useCallback as useCallback12, useEffect as useEffect12, useLayoutEffect as useLayoutEffect3, useRef as useRef22, useState as useState16 } from "react";
|
|
9578
9643
|
import { createPortal as createPortal5 } from "react-dom";
|
|
9579
|
-
import { Fragment as
|
|
9644
|
+
import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
9580
9645
|
function computePosition2(rect, popRect, placement, offset) {
|
|
9581
9646
|
const cx = rect.left + rect.width / 2;
|
|
9582
9647
|
const cy = rect.top + rect.height / 2;
|
|
@@ -9694,7 +9759,7 @@ function Popover({
|
|
|
9694
9759
|
),
|
|
9695
9760
|
document.body
|
|
9696
9761
|
) : null;
|
|
9697
|
-
return /* @__PURE__ */ jsxs53(
|
|
9762
|
+
return /* @__PURE__ */ jsxs53(Fragment13, { children: [
|
|
9698
9763
|
triggerEl,
|
|
9699
9764
|
portal
|
|
9700
9765
|
] });
|
|
@@ -10830,7 +10895,7 @@ import { AnimatePresence as AnimatePresence7, motion as motion10 } from "framer-
|
|
|
10830
10895
|
import { useCallback as useCallback15, useEffect as useEffect15, useMemo as useMemo10, useRef as useRef27, useState as useState20 } from "react";
|
|
10831
10896
|
import { HiddenSelect, useButton as useButton4, useListBox, useOption, useSelect } from "react-aria";
|
|
10832
10897
|
import { createPortal as createPortal6 } from "react-dom";
|
|
10833
|
-
import { Fragment as
|
|
10898
|
+
import { Fragment as Fragment14, jsx as jsx66, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
10834
10899
|
function ListBox(props) {
|
|
10835
10900
|
const ref = useRef27(null);
|
|
10836
10901
|
const { listBoxRef = ref, state } = props;
|
|
@@ -11027,7 +11092,7 @@ function Select({
|
|
|
11027
11092
|
"aria-required": required || void 0,
|
|
11028
11093
|
className: cn("ods-select__trigger", state.isOpen && "ods-select__trigger--open"),
|
|
11029
11094
|
children: [
|
|
11030
|
-
/* @__PURE__ */ jsx66("span", { className: "ods-select__value", children: selectedOption ? /* @__PURE__ */ jsxs65(
|
|
11095
|
+
/* @__PURE__ */ jsx66("span", { className: "ods-select__value", children: selectedOption ? /* @__PURE__ */ jsxs65(Fragment14, { children: [
|
|
11031
11096
|
selectedOption.icon && /* @__PURE__ */ jsx66("span", { className: "ods-select__value-icon", children: selectedOption.icon }),
|
|
11032
11097
|
selectedOption.label
|
|
11033
11098
|
] }) : /* @__PURE__ */ jsx66("span", { className: "ods-select__placeholder", children: placeholder }) }),
|
|
@@ -11110,7 +11175,7 @@ function SettingsRow({
|
|
|
11110
11175
|
import { AnimatePresence as AnimatePresence8, motion as motion11 } from "framer-motion";
|
|
11111
11176
|
import { useEffect as useEffect16 } from "react";
|
|
11112
11177
|
import { createPortal as createPortal7 } from "react-dom";
|
|
11113
|
-
import { Fragment as
|
|
11178
|
+
import { Fragment as Fragment15, jsx as jsx68, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11114
11179
|
var slideVariants = {
|
|
11115
11180
|
top: { initial: { y: "-100%" }, animate: { y: 0 }, exit: { y: "-100%" } },
|
|
11116
11181
|
bottom: { initial: { y: "100%" }, animate: { y: 0 }, exit: { y: "100%" } },
|
|
@@ -11154,7 +11219,7 @@ function Sheet({
|
|
|
11154
11219
|
const variant = slideVariants[side];
|
|
11155
11220
|
const resolved = resolveSize(side, size);
|
|
11156
11221
|
const isVertical = side === "left" || side === "right";
|
|
11157
|
-
const content = /* @__PURE__ */ jsx68(AnimatePresence8, { children: open && /* @__PURE__ */ jsxs67(
|
|
11222
|
+
const content = /* @__PURE__ */ jsx68(AnimatePresence8, { children: open && /* @__PURE__ */ jsxs67(Fragment15, { children: [
|
|
11158
11223
|
/* @__PURE__ */ jsx68(
|
|
11159
11224
|
motion11.div,
|
|
11160
11225
|
{
|
|
@@ -11196,7 +11261,7 @@ function Sheet({
|
|
|
11196
11261
|
|
|
11197
11262
|
// src/components/Sidebar/Sidebar.tsx
|
|
11198
11263
|
import { useCallback as useCallback16, useEffect as useEffect17, useRef as useRef28, useState as useState21 } from "react";
|
|
11199
|
-
import { Fragment as
|
|
11264
|
+
import { Fragment as Fragment16, jsx as jsx69, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
11200
11265
|
function Sidebar({
|
|
11201
11266
|
variant = "expanded",
|
|
11202
11267
|
brand,
|
|
@@ -11341,7 +11406,7 @@ function RailLayout({
|
|
|
11341
11406
|
tooltipDelay,
|
|
11342
11407
|
suppressTooltips
|
|
11343
11408
|
}) {
|
|
11344
|
-
return /* @__PURE__ */ jsxs68(
|
|
11409
|
+
return /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
11345
11410
|
logo && /* @__PURE__ */ jsx69("div", { className: "ods-sidebar__logo-rail", children: logo }),
|
|
11346
11411
|
onToggle && /* @__PURE__ */ jsx69(
|
|
11347
11412
|
"button",
|
|
@@ -11510,7 +11575,7 @@ function ExpandedLayout({
|
|
|
11510
11575
|
pinned,
|
|
11511
11576
|
onPinToggle
|
|
11512
11577
|
}) {
|
|
11513
|
-
return /* @__PURE__ */ jsxs68(
|
|
11578
|
+
return /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
11514
11579
|
/* @__PURE__ */ jsxs68("div", { className: "ods-sidebar__header", children: [
|
|
11515
11580
|
logo && /* @__PURE__ */ jsx69("div", { className: "ods-sidebar__logo", children: logo }),
|
|
11516
11581
|
brand && /* @__PURE__ */ jsxs68("div", { className: "ods-sidebar__brand", children: [
|
|
@@ -11573,7 +11638,7 @@ function ExpandedItem({ item, level }) {
|
|
|
11573
11638
|
item.defaultExpanded ?? (hasChildren && hasActiveDescendant(item))
|
|
11574
11639
|
);
|
|
11575
11640
|
if (hasChildren) {
|
|
11576
|
-
return /* @__PURE__ */ jsxs68(
|
|
11641
|
+
return /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
11577
11642
|
/* @__PURE__ */ jsxs68(
|
|
11578
11643
|
"button",
|
|
11579
11644
|
{
|
|
@@ -11655,7 +11720,7 @@ function ExpandedItem({ item, level }) {
|
|
|
11655
11720
|
}
|
|
11656
11721
|
function SidebarUserCard({ user }) {
|
|
11657
11722
|
const labelText = typeof user.name === "string" ? user.name : "User";
|
|
11658
|
-
const body = /* @__PURE__ */ jsxs68(
|
|
11723
|
+
const body = /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
11659
11724
|
/* @__PURE__ */ jsx69("span", { className: "ods-sidebar__user-avatar", children: user.avatar ?? /* @__PURE__ */ jsx69("span", { children: user.initial ?? (typeof user.name === "string" ? user.name.charAt(0).toUpperCase() : "?") }) }),
|
|
11660
11725
|
/* @__PURE__ */ jsxs68("span", { className: "ods-sidebar__user-info", children: [
|
|
11661
11726
|
/* @__PURE__ */ jsx69("span", { className: "ods-sidebar__user-name", children: user.name }),
|
|
@@ -11727,7 +11792,7 @@ import { AnimatePresence as AnimatePresence9, motion as motion12 } from "framer-
|
|
|
11727
11792
|
import { useRef as useRef29 } from "react";
|
|
11728
11793
|
import { FocusScope as FocusScope2, OverlayProvider as OverlayProvider2, useDialog as useDialog2, useModal as useModal2, useOverlay as useOverlay2 } from "react-aria";
|
|
11729
11794
|
import { createPortal as createPortal8 } from "react-dom";
|
|
11730
|
-
import { Fragment as
|
|
11795
|
+
import { Fragment as Fragment17, jsx as jsx71, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
11731
11796
|
var slideVariants2 = {
|
|
11732
11797
|
left: {
|
|
11733
11798
|
initial: { x: "-100%" },
|
|
@@ -11765,7 +11830,7 @@ function SlideoutContent({
|
|
|
11765
11830
|
const { onDrag, onDragStart, onDragEnd, onAnimationStart, ...safeOverlayProps } = overlayProps;
|
|
11766
11831
|
const variant = slideVariants2[position];
|
|
11767
11832
|
const panelWidth = typeof width === "number" ? `${width}px` : width;
|
|
11768
|
-
return /* @__PURE__ */ jsx71(AnimatePresence9, { children: open && /* @__PURE__ */ jsxs69(
|
|
11833
|
+
return /* @__PURE__ */ jsx71(AnimatePresence9, { children: open && /* @__PURE__ */ jsxs69(Fragment17, { children: [
|
|
11769
11834
|
/* @__PURE__ */ jsx71(
|
|
11770
11835
|
motion12.div,
|
|
11771
11836
|
{
|
|
@@ -12465,7 +12530,7 @@ function Switch({
|
|
|
12465
12530
|
|
|
12466
12531
|
// src/components/Table/Table.tsx
|
|
12467
12532
|
import { useCallback as useCallback18, useState as useState23 } from "react";
|
|
12468
|
-
import { Fragment as
|
|
12533
|
+
import { Fragment as Fragment18, jsx as jsx79, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
12469
12534
|
function Table({
|
|
12470
12535
|
columns,
|
|
12471
12536
|
data,
|
|
@@ -12588,7 +12653,7 @@ function TableRow({
|
|
|
12588
12653
|
}) {
|
|
12589
12654
|
const isSelected = selectedRows?.has(rowIndex) ?? false;
|
|
12590
12655
|
const [expanded, setExpanded] = useState23(false);
|
|
12591
|
-
return /* @__PURE__ */ jsxs76(
|
|
12656
|
+
return /* @__PURE__ */ jsxs76(Fragment18, { children: [
|
|
12592
12657
|
/* @__PURE__ */ jsxs76(
|
|
12593
12658
|
"tr",
|
|
12594
12659
|
{
|
|
@@ -12965,13 +13030,13 @@ function Timeline({ items, size = "md", className }) {
|
|
|
12965
13030
|
|
|
12966
13031
|
// src/components/TimePicker/TimePicker.tsx
|
|
12967
13032
|
import {
|
|
12968
|
-
Fragment as
|
|
13033
|
+
Fragment as Fragment19,
|
|
12969
13034
|
useCallback as useCallback19,
|
|
12970
13035
|
useEffect as useEffect19,
|
|
12971
13036
|
useRef as useRef34,
|
|
12972
13037
|
useState as useState27
|
|
12973
13038
|
} from "react";
|
|
12974
|
-
import { Fragment as
|
|
13039
|
+
import { Fragment as Fragment20, jsx as jsx85, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
12975
13040
|
var pad = (n) => n.toString().padStart(2, "0");
|
|
12976
13041
|
function format(v, use24h, showSeconds) {
|
|
12977
13042
|
const base = `${pad(v.hours)}:${pad(v.minutes)}${showSeconds ? `:${pad(v.seconds ?? 0)}` : ""}`;
|
|
@@ -13180,7 +13245,7 @@ function TimePicker({
|
|
|
13180
13245
|
segButton("hours", value.hours),
|
|
13181
13246
|
/* @__PURE__ */ jsx85("span", { className: "ods-timepicker__display-sep", children: ":" }),
|
|
13182
13247
|
segButton("minutes", value.minutes),
|
|
13183
|
-
showSeconds && /* @__PURE__ */ jsxs82(
|
|
13248
|
+
showSeconds && /* @__PURE__ */ jsxs82(Fragment20, { children: [
|
|
13184
13249
|
/* @__PURE__ */ jsx85("span", { className: "ods-timepicker__display-sep", children: ":" }),
|
|
13185
13250
|
segButton("seconds", value.seconds ?? 0)
|
|
13186
13251
|
] })
|
|
@@ -13212,7 +13277,7 @@ function TimePicker({
|
|
|
13212
13277
|
)
|
|
13213
13278
|
] })
|
|
13214
13279
|
] }),
|
|
13215
|
-
/* @__PURE__ */ jsx85("div", { className: "ods-timepicker__body", children: segOrder().map((seg, i, arr) => /* @__PURE__ */ jsxs82(
|
|
13280
|
+
/* @__PURE__ */ jsx85("div", { className: "ods-timepicker__body", children: segOrder().map((seg, i, arr) => /* @__PURE__ */ jsxs82(Fragment19, { children: [
|
|
13216
13281
|
/* @__PURE__ */ jsxs82("div", { className: "ods-timepicker__col", children: [
|
|
13217
13282
|
/* @__PURE__ */ jsx85("span", { className: "ods-timepicker__col-lbl", children: seg === "hours" ? "HOUR" : seg === "minutes" ? "MIN" : "SEC" }),
|
|
13218
13283
|
/* @__PURE__ */ jsx85(
|
|
@@ -13268,7 +13333,7 @@ function TimePicker({
|
|
|
13268
13333
|
|
|
13269
13334
|
// src/components/TimezonePicker/TimezonePicker.tsx
|
|
13270
13335
|
import { useEffect as useEffect20, useMemo as useMemo12, useRef as useRef35, useState as useState28 } from "react";
|
|
13271
|
-
import { Fragment as
|
|
13336
|
+
import { Fragment as Fragment21, jsx as jsx86, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
13272
13337
|
var DEFAULT_TZS = [
|
|
13273
13338
|
{ iana: "America/Los_Angeles", label: "Pacific Time", offset: "UTC\u22128" },
|
|
13274
13339
|
{ iana: "America/Denver", label: "Mountain Time", offset: "UTC\u22127" },
|
|
@@ -13361,7 +13426,7 @@ function TimezonePicker({
|
|
|
13361
13426
|
}
|
|
13362
13427
|
)
|
|
13363
13428
|
] }),
|
|
13364
|
-
/* @__PURE__ */ jsx86("span", { className: "ods-tzpicker__info", children: selected ? /* @__PURE__ */ jsxs83(
|
|
13429
|
+
/* @__PURE__ */ jsx86("span", { className: "ods-tzpicker__info", children: selected ? /* @__PURE__ */ jsxs83(Fragment21, { children: [
|
|
13365
13430
|
/* @__PURE__ */ jsx86("span", { className: "ods-tzpicker__name", children: selected.label }),
|
|
13366
13431
|
/* @__PURE__ */ jsxs83("span", { className: "ods-tzpicker__meta", children: [
|
|
13367
13432
|
selected.iana.split("/").pop()?.replace(/_/g, " "),
|
|
@@ -13480,7 +13545,7 @@ import {
|
|
|
13480
13545
|
useState as useState29
|
|
13481
13546
|
} from "react";
|
|
13482
13547
|
import { createPortal as createPortal9 } from "react-dom";
|
|
13483
|
-
import { Fragment as
|
|
13548
|
+
import { Fragment as Fragment22, jsx as jsx87, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
13484
13549
|
var defaultIcons = {
|
|
13485
13550
|
success: /* @__PURE__ */ jsxs84("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
|
|
13486
13551
|
/* @__PURE__ */ jsx87("circle", { cx: "8", cy: "8", r: "7", fill: "var(--ods-status-success-bg)", stroke: "var(--ods-status-success-bd)" }),
|
|
@@ -13535,9 +13600,9 @@ var defaultIcons = {
|
|
|
13535
13600
|
var ToastContext = createContext2(null);
|
|
13536
13601
|
function ToastBody({ item, onDismiss }) {
|
|
13537
13602
|
const dismiss = () => onDismiss(item.id);
|
|
13538
|
-
if (item.render) return /* @__PURE__ */ jsx87(
|
|
13603
|
+
if (item.render) return /* @__PURE__ */ jsx87(Fragment22, { children: item.render({ id: item.id, dismiss }) });
|
|
13539
13604
|
const title = item.title ?? item.message;
|
|
13540
|
-
return /* @__PURE__ */ jsxs84(
|
|
13605
|
+
return /* @__PURE__ */ jsxs84(Fragment22, { children: [
|
|
13541
13606
|
/* @__PURE__ */ jsx87("span", { className: "ods-toast__icon", "aria-hidden": "true", children: item.icon ?? defaultIcons[item.variant] }),
|
|
13542
13607
|
/* @__PURE__ */ jsxs84("div", { className: "ods-toast__body", children: [
|
|
13543
13608
|
title && /* @__PURE__ */ jsx87("div", { className: "ods-toast__title", children: title }),
|
|
@@ -13733,7 +13798,7 @@ function ToastProvider({
|
|
|
13733
13798
|
return out;
|
|
13734
13799
|
}, [toasts]);
|
|
13735
13800
|
const ctx = { toast, dismiss, dismissAll };
|
|
13736
|
-
const containers = /* @__PURE__ */ jsx87(
|
|
13801
|
+
const containers = /* @__PURE__ */ jsx87(Fragment22, { children: POSITIONS.map((pos) => {
|
|
13737
13802
|
const list = groups[pos];
|
|
13738
13803
|
if (list.length === 0) return null;
|
|
13739
13804
|
return /* @__PURE__ */ jsx87(
|
|
@@ -13946,7 +14011,7 @@ import {
|
|
|
13946
14011
|
} from "react";
|
|
13947
14012
|
import { useTooltip, useTooltipTrigger } from "react-aria";
|
|
13948
14013
|
import { createPortal as createPortal10 } from "react-dom";
|
|
13949
|
-
import { Fragment as
|
|
14014
|
+
import { Fragment as Fragment23, jsx as jsx91, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
13950
14015
|
function computePosition3(rect, tipRect, position, offset) {
|
|
13951
14016
|
const cx = rect.left + rect.width / 2;
|
|
13952
14017
|
const cy = rect.top + rect.height / 2;
|
|
@@ -14049,7 +14114,7 @@ function Tooltip({
|
|
|
14049
14114
|
const triggerRef = useRef37(null);
|
|
14050
14115
|
const state = $3834487504f4fc00$export$4d40659c25ecb50b({ delay });
|
|
14051
14116
|
const { triggerProps } = useTooltipTrigger({ delay }, state, triggerRef);
|
|
14052
|
-
return /* @__PURE__ */ jsxs88(
|
|
14117
|
+
return /* @__PURE__ */ jsxs88(Fragment23, { children: [
|
|
14053
14118
|
cloneElement(children, {
|
|
14054
14119
|
...triggerProps,
|
|
14055
14120
|
ref: triggerRef
|
|
@@ -15319,7 +15384,7 @@ function DefaultEmptyState() {
|
|
|
15319
15384
|
|
|
15320
15385
|
// src/components/XmlViewer/XmlViewer.tsx
|
|
15321
15386
|
import { useMemo as useMemo16, useState as useState33 } from "react";
|
|
15322
|
-
import { Fragment as
|
|
15387
|
+
import { Fragment as Fragment24, jsx as jsx96, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
15323
15388
|
function parseXml(src) {
|
|
15324
15389
|
if (typeof window !== "undefined" && typeof window.DOMParser !== "undefined") {
|
|
15325
15390
|
try {
|
|
@@ -15460,9 +15525,9 @@ function XmlNodeRow({
|
|
|
15460
15525
|
/* @__PURE__ */ jsx96("span", { className: "ods-xml-viewer__attr-eq", children: "=" }),
|
|
15461
15526
|
/* @__PURE__ */ jsx96("span", { className: "ods-xml-viewer__attr-value", children: `"${v}"` })
|
|
15462
15527
|
] }, k)),
|
|
15463
|
-
isSelfClosing ? /* @__PURE__ */ jsx96("span", { className: "ods-xml-viewer__bracket", children: " />" }) : /* @__PURE__ */ jsxs93(
|
|
15528
|
+
isSelfClosing ? /* @__PURE__ */ jsx96("span", { className: "ods-xml-viewer__bracket", children: " />" }) : /* @__PURE__ */ jsxs93(Fragment24, { children: [
|
|
15464
15529
|
/* @__PURE__ */ jsx96("span", { className: "ods-xml-viewer__bracket", children: ">" }),
|
|
15465
|
-
!open && /* @__PURE__ */ jsxs93(
|
|
15530
|
+
!open && /* @__PURE__ */ jsxs93(Fragment24, { children: [
|
|
15466
15531
|
/* @__PURE__ */ jsxs93("span", { className: "ods-xml-viewer__preview", children: [
|
|
15467
15532
|
children.length,
|
|
15468
15533
|
" child",
|
|
@@ -15476,7 +15541,7 @@ function XmlNodeRow({
|
|
|
15476
15541
|
]
|
|
15477
15542
|
}
|
|
15478
15543
|
),
|
|
15479
|
-
!isSelfClosing && open && /* @__PURE__ */ jsxs93(
|
|
15544
|
+
!isSelfClosing && open && /* @__PURE__ */ jsxs93(Fragment24, { children: [
|
|
15480
15545
|
children.map((c, i) => /* @__PURE__ */ jsx96(
|
|
15481
15546
|
XmlNodeRow,
|
|
15482
15547
|
{
|
|
@@ -15500,7 +15565,7 @@ function XmlNodeRow({
|
|
|
15500
15565
|
|
|
15501
15566
|
// src/components/YamlViewer/YamlViewer.tsx
|
|
15502
15567
|
import { useMemo as useMemo17, useState as useState34 } from "react";
|
|
15503
|
-
import { Fragment as
|
|
15568
|
+
import { Fragment as Fragment25, jsx as jsx97, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
15504
15569
|
function toYaml(value, indent = 0) {
|
|
15505
15570
|
const pad2 = " ".repeat(indent);
|
|
15506
15571
|
if (value === null) return "null";
|
|
@@ -15717,7 +15782,7 @@ function YamlViewer({
|
|
|
15717
15782
|
}
|
|
15718
15783
|
) : /* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__caret-spacer" }),
|
|
15719
15784
|
t.kind === "comment" && /* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__comment", children: t.raw.trim() }),
|
|
15720
|
-
t.kind === "key" && /* @__PURE__ */ jsxs94(
|
|
15785
|
+
t.kind === "key" && /* @__PURE__ */ jsxs94(Fragment25, { children: [
|
|
15721
15786
|
t.raw.trim().startsWith("-") && /* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__dash", children: "- " }),
|
|
15722
15787
|
/* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__key", children: t.key }),
|
|
15723
15788
|
/* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__colon", children: ":" }),
|
|
@@ -15736,7 +15801,7 @@ function YamlViewer({
|
|
|
15736
15801
|
),
|
|
15737
15802
|
isCollapsed && /* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__preview", children: " \u2026" })
|
|
15738
15803
|
] }),
|
|
15739
|
-
t.kind === "sequence" && /* @__PURE__ */ jsxs94(
|
|
15804
|
+
t.kind === "sequence" && /* @__PURE__ */ jsxs94(Fragment25, { children: [
|
|
15740
15805
|
/* @__PURE__ */ jsx97("span", { className: "ods-yaml-viewer__dash", children: "- " }),
|
|
15741
15806
|
/* @__PURE__ */ jsx97(
|
|
15742
15807
|
"span",
|