@oxide/design-system 1.5.1 → 1.5.2--canary.e50939f.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/components/dist/asciidoc.css +5 -113
- package/components/dist/index.js +111 -663
- package/components/dist/index.js.map +1 -1
- package/package.json +18 -4
package/components/dist/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
9
15
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
16
|
};
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
17
|
var __copyProps = (to, from, except, desc) => {
|
|
16
18
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
19
|
for (let key of __getOwnPropNames(from))
|
|
@@ -28,7 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
31
|
mod
|
|
30
32
|
));
|
|
31
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
33
|
|
|
33
34
|
// node_modules/domelementtype/lib/index.js
|
|
34
35
|
var require_lib = __commonJS({
|
|
@@ -5300,7 +5301,7 @@ var require_lib9 = __commonJS({
|
|
|
5300
5301
|
|
|
5301
5302
|
// node_modules/inline-style-parser/index.js
|
|
5302
5303
|
var require_inline_style_parser = __commonJS({
|
|
5303
|
-
"node_modules/inline-style-parser/index.js"(exports,
|
|
5304
|
+
"node_modules/inline-style-parser/index.js"(exports, module) {
|
|
5304
5305
|
"use strict";
|
|
5305
5306
|
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
5306
5307
|
var NEWLINE_REGEX = /\n/g;
|
|
@@ -5316,7 +5317,7 @@ var require_inline_style_parser = __commonJS({
|
|
|
5316
5317
|
var EMPTY_STRING = "";
|
|
5317
5318
|
var TYPE_COMMENT = "comment";
|
|
5318
5319
|
var TYPE_DECLARATION = "declaration";
|
|
5319
|
-
|
|
5320
|
+
module.exports = function(style, options) {
|
|
5320
5321
|
if (typeof style !== "string") {
|
|
5321
5322
|
throw new TypeError("First argument must be a string");
|
|
5322
5323
|
}
|
|
@@ -5519,7 +5520,7 @@ var require_utilities2 = __commonJS({
|
|
|
5519
5520
|
|
|
5520
5521
|
// node_modules/style-to-js/cjs/index.js
|
|
5521
5522
|
var require_cjs2 = __commonJS({
|
|
5522
|
-
"node_modules/style-to-js/cjs/index.js"(exports,
|
|
5523
|
+
"node_modules/style-to-js/cjs/index.js"(exports, module) {
|
|
5523
5524
|
"use strict";
|
|
5524
5525
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
5525
5526
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -5539,7 +5540,7 @@ var require_cjs2 = __commonJS({
|
|
|
5539
5540
|
return output;
|
|
5540
5541
|
}
|
|
5541
5542
|
StyleToJS.default = StyleToJS;
|
|
5542
|
-
|
|
5543
|
+
module.exports = StyleToJS;
|
|
5543
5544
|
}
|
|
5544
5545
|
});
|
|
5545
5546
|
|
|
@@ -5554,7 +5555,7 @@ var require_utilities3 = __commonJS({
|
|
|
5554
5555
|
exports.returnFirstArg = exports.canTextBeChildOfNode = exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports.PRESERVE_CUSTOM_ATTRIBUTES = void 0;
|
|
5555
5556
|
exports.isCustomComponent = isCustomComponent;
|
|
5556
5557
|
exports.setStyleProp = setStyleProp;
|
|
5557
|
-
var react_1 =
|
|
5558
|
+
var react_1 = __require("react");
|
|
5558
5559
|
var style_to_js_1 = __importDefault(require_cjs2());
|
|
5559
5560
|
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
5560
5561
|
"annotation-xml",
|
|
@@ -5683,7 +5684,7 @@ var require_dom_to_react = __commonJS({
|
|
|
5683
5684
|
};
|
|
5684
5685
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5685
5686
|
exports.default = domToReact2;
|
|
5686
|
-
var react_1 =
|
|
5687
|
+
var react_1 = __require("react");
|
|
5687
5688
|
var attributes_to_props_1 = __importDefault(require_attributes_to_props());
|
|
5688
5689
|
var utilities_1 = require_utilities3();
|
|
5689
5690
|
var React2 = {
|
|
@@ -6408,80 +6409,8 @@ var require_lib11 = __commonJS({
|
|
|
6408
6409
|
}
|
|
6409
6410
|
});
|
|
6410
6411
|
|
|
6411
|
-
// node_modules/classnames/index.js
|
|
6412
|
-
var require_classnames = __commonJS({
|
|
6413
|
-
"node_modules/classnames/index.js"(exports, module2) {
|
|
6414
|
-
"use strict";
|
|
6415
|
-
(function() {
|
|
6416
|
-
"use strict";
|
|
6417
|
-
var hasOwn = {}.hasOwnProperty;
|
|
6418
|
-
var nativeCodeString = "[native code]";
|
|
6419
|
-
function classNames() {
|
|
6420
|
-
var classes = [];
|
|
6421
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
6422
|
-
var arg = arguments[i];
|
|
6423
|
-
if (!arg)
|
|
6424
|
-
continue;
|
|
6425
|
-
var argType = typeof arg;
|
|
6426
|
-
if (argType === "string" || argType === "number") {
|
|
6427
|
-
classes.push(arg);
|
|
6428
|
-
} else if (Array.isArray(arg)) {
|
|
6429
|
-
if (arg.length) {
|
|
6430
|
-
var inner = classNames.apply(null, arg);
|
|
6431
|
-
if (inner) {
|
|
6432
|
-
classes.push(inner);
|
|
6433
|
-
}
|
|
6434
|
-
}
|
|
6435
|
-
} else if (argType === "object") {
|
|
6436
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
6437
|
-
classes.push(arg.toString());
|
|
6438
|
-
continue;
|
|
6439
|
-
}
|
|
6440
|
-
for (var key in arg) {
|
|
6441
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
6442
|
-
classes.push(key);
|
|
6443
|
-
}
|
|
6444
|
-
}
|
|
6445
|
-
}
|
|
6446
|
-
}
|
|
6447
|
-
return classes.join(" ");
|
|
6448
|
-
}
|
|
6449
|
-
if (typeof module2 !== "undefined" && module2.exports) {
|
|
6450
|
-
classNames.default = classNames;
|
|
6451
|
-
module2.exports = classNames;
|
|
6452
|
-
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
6453
|
-
define("classnames", [], function() {
|
|
6454
|
-
return classNames;
|
|
6455
|
-
});
|
|
6456
|
-
} else {
|
|
6457
|
-
window.classNames = classNames;
|
|
6458
|
-
}
|
|
6459
|
-
})();
|
|
6460
|
-
}
|
|
6461
|
-
});
|
|
6462
|
-
|
|
6463
|
-
// components/src/index.ts
|
|
6464
|
-
var src_exports = {};
|
|
6465
|
-
__export(src_exports, {
|
|
6466
|
-
AsciiDocBlocks: () => AsciiDocBlocks,
|
|
6467
|
-
Badge: () => Badge,
|
|
6468
|
-
Button: () => Button,
|
|
6469
|
-
Checkbox: () => Checkbox,
|
|
6470
|
-
Listbox: () => Listbox,
|
|
6471
|
-
Spinner: () => Spinner,
|
|
6472
|
-
SpinnerLoader: () => SpinnerLoader,
|
|
6473
|
-
Tabs: () => Tabs,
|
|
6474
|
-
badgeColors: () => badgeColors,
|
|
6475
|
-
buttonSizes: () => buttonSizes,
|
|
6476
|
-
buttonStyle: () => buttonStyle,
|
|
6477
|
-
spinnerSizes: () => spinnerSizes,
|
|
6478
|
-
spinnerVariants: () => spinnerVariants,
|
|
6479
|
-
variants: () => variants
|
|
6480
|
-
});
|
|
6481
|
-
module.exports = __toCommonJS(src_exports);
|
|
6482
|
-
|
|
6483
6412
|
// components/src/asciidoc/Admonition.tsx
|
|
6484
|
-
|
|
6413
|
+
import { Title } from "@oxide/react-asciidoc";
|
|
6485
6414
|
|
|
6486
6415
|
// node_modules/html-react-parser/esm/index.mjs
|
|
6487
6416
|
var import_lib = __toESM(require_lib11(), 1);
|
|
@@ -6527,30 +6456,30 @@ var classed = {
|
|
|
6527
6456
|
};
|
|
6528
6457
|
|
|
6529
6458
|
// components/src/asciidoc/Admonition.tsx
|
|
6530
|
-
|
|
6459
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6531
6460
|
var Admonition = ({ node }) => {
|
|
6532
6461
|
const attrs = node.attributes;
|
|
6533
6462
|
let icon;
|
|
6534
6463
|
if (attrs.name === "caution") {
|
|
6535
|
-
icon = /* @__PURE__ */
|
|
6464
|
+
icon = /* @__PURE__ */ jsx(Error12, {});
|
|
6536
6465
|
} else if (attrs.name === "warning") {
|
|
6537
|
-
icon = /* @__PURE__ */
|
|
6466
|
+
icon = /* @__PURE__ */ jsx(Warning12, {});
|
|
6538
6467
|
} else {
|
|
6539
|
-
icon = /* @__PURE__ */
|
|
6468
|
+
icon = /* @__PURE__ */ jsx(Error12, { className: "rotate-180" });
|
|
6540
6469
|
}
|
|
6541
|
-
return /* @__PURE__ */
|
|
6542
|
-
/* @__PURE__ */
|
|
6543
|
-
/* @__PURE__ */
|
|
6544
|
-
/* @__PURE__ */
|
|
6545
|
-
/* @__PURE__ */
|
|
6546
|
-
/* @__PURE__ */
|
|
6547
|
-
/* @__PURE__ */
|
|
6470
|
+
return /* @__PURE__ */ jsxs("div", { className: `admonitionblock ${attrs.name}`, children: [
|
|
6471
|
+
/* @__PURE__ */ jsx("div", { className: "admonition-icon", children: icon }),
|
|
6472
|
+
/* @__PURE__ */ jsxs("div", { className: "admonition-content content", children: [
|
|
6473
|
+
/* @__PURE__ */ jsx(Title, { text: node.title }),
|
|
6474
|
+
/* @__PURE__ */ jsx("div", { children: titleCase(attrs.name.toString()) }),
|
|
6475
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
6476
|
+
/* @__PURE__ */ jsx(Title, { text: node.title }),
|
|
6548
6477
|
node.content && esm_default(node.content)
|
|
6549
6478
|
] })
|
|
6550
6479
|
] })
|
|
6551
6480
|
] });
|
|
6552
6481
|
};
|
|
6553
|
-
var Error12 = ({ className }) => /* @__PURE__ */
|
|
6482
|
+
var Error12 = ({ className }) => /* @__PURE__ */ jsx(
|
|
6554
6483
|
"svg",
|
|
6555
6484
|
{
|
|
6556
6485
|
width: "12",
|
|
@@ -6558,7 +6487,7 @@ var Error12 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
|
6558
6487
|
viewBox: "0 0 12 12",
|
|
6559
6488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6560
6489
|
className,
|
|
6561
|
-
children: /* @__PURE__ */
|
|
6490
|
+
children: /* @__PURE__ */ jsx(
|
|
6562
6491
|
"path",
|
|
6563
6492
|
{
|
|
6564
6493
|
fillRule: "evenodd",
|
|
@@ -6569,7 +6498,7 @@ var Error12 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
|
6569
6498
|
)
|
|
6570
6499
|
}
|
|
6571
6500
|
);
|
|
6572
|
-
var Warning12 = ({ className }) => /* @__PURE__ */
|
|
6501
|
+
var Warning12 = ({ className }) => /* @__PURE__ */ jsx(
|
|
6573
6502
|
"svg",
|
|
6574
6503
|
{
|
|
6575
6504
|
width: "12",
|
|
@@ -6577,7 +6506,7 @@ var Warning12 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
|
6577
6506
|
viewBox: "0 0 12 12",
|
|
6578
6507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6579
6508
|
className,
|
|
6580
|
-
children: /* @__PURE__ */
|
|
6509
|
+
children: /* @__PURE__ */ jsx(
|
|
6581
6510
|
"path",
|
|
6582
6511
|
{
|
|
6583
6512
|
fillRule: "evenodd",
|
|
@@ -6591,9 +6520,9 @@ var Warning12 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
|
6591
6520
|
var Admonition_default = Admonition;
|
|
6592
6521
|
|
|
6593
6522
|
// components/src/asciidoc/Table.tsx
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
var Table = ({ node }) => /* @__PURE__ */ (
|
|
6523
|
+
import { Table as InnerTable } from "@oxide/react-asciidoc";
|
|
6524
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
6525
|
+
var Table = ({ node }) => /* @__PURE__ */ jsx2("div", { className: "table-wrapper", children: /* @__PURE__ */ jsx2(InnerTable, { node }) });
|
|
6597
6526
|
var Table_default = Table;
|
|
6598
6527
|
|
|
6599
6528
|
// components/src/asciidoc/index.ts
|
|
@@ -6603,8 +6532,8 @@ var AsciiDocBlocks = {
|
|
|
6603
6532
|
};
|
|
6604
6533
|
|
|
6605
6534
|
// components/src/ui/badge/Badge.tsx
|
|
6606
|
-
|
|
6607
|
-
|
|
6535
|
+
import cn2 from "classnames";
|
|
6536
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
6608
6537
|
var badgeColors = {
|
|
6609
6538
|
default: {
|
|
6610
6539
|
default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
|
|
@@ -6629,25 +6558,25 @@ var Badge = ({
|
|
|
6629
6558
|
color = "default",
|
|
6630
6559
|
variant = "default"
|
|
6631
6560
|
}) => {
|
|
6632
|
-
return /* @__PURE__ */ (
|
|
6561
|
+
return /* @__PURE__ */ jsx3(
|
|
6633
6562
|
"span",
|
|
6634
6563
|
{
|
|
6635
|
-
className: (
|
|
6564
|
+
className: cn2(
|
|
6636
6565
|
"ox-badge",
|
|
6637
6566
|
`variant-${variant}`,
|
|
6638
6567
|
"inline-flex h-4 items-center whitespace-nowrap rounded-sm px-[3px] py-[1px] uppercase text-mono-sm",
|
|
6639
6568
|
badgeColors[variant][color],
|
|
6640
6569
|
className
|
|
6641
6570
|
),
|
|
6642
|
-
children: /* @__PURE__ */ (
|
|
6571
|
+
children: /* @__PURE__ */ jsx3("span", { children })
|
|
6643
6572
|
}
|
|
6644
6573
|
);
|
|
6645
6574
|
};
|
|
6646
6575
|
|
|
6647
6576
|
// components/src/ui/button/Button.tsx
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6577
|
+
import cn3 from "classnames";
|
|
6578
|
+
import { forwardRef } from "react";
|
|
6579
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
6651
6580
|
var buttonSizes = ["sm", "icon", "base"];
|
|
6652
6581
|
var variants = ["primary", "secondary", "ghost", "danger"];
|
|
6653
6582
|
var sizeStyle = {
|
|
@@ -6660,7 +6589,7 @@ var buttonStyle = ({
|
|
|
6660
6589
|
size: size2 = "base",
|
|
6661
6590
|
variant = "primary"
|
|
6662
6591
|
} = {}) => {
|
|
6663
|
-
return (
|
|
6592
|
+
return cn3(
|
|
6664
6593
|
"ox-button inline-flex items-center justify-center rounded align-top elevation-1 disabled:cursor-not-allowed",
|
|
6665
6594
|
`btn-${variant}`,
|
|
6666
6595
|
sizeStyle[size2],
|
|
@@ -6671,7 +6600,7 @@ var noop = (e) => {
|
|
|
6671
6600
|
e.stopPropagation();
|
|
6672
6601
|
e.preventDefault();
|
|
6673
6602
|
};
|
|
6674
|
-
var Button =
|
|
6603
|
+
var Button = forwardRef(
|
|
6675
6604
|
({
|
|
6676
6605
|
type = "button",
|
|
6677
6606
|
children,
|
|
@@ -6687,10 +6616,10 @@ var Button = (0, import_react.forwardRef)(
|
|
|
6687
6616
|
...rest
|
|
6688
6617
|
}, ref) => {
|
|
6689
6618
|
const isDisabled = disabled || loading;
|
|
6690
|
-
return /* @__PURE__ */ (
|
|
6619
|
+
return /* @__PURE__ */ jsxs2(
|
|
6691
6620
|
"button",
|
|
6692
6621
|
{
|
|
6693
|
-
className: (
|
|
6622
|
+
className: cn3(buttonStyle({ size: size2, variant }), className, {
|
|
6694
6623
|
"visually-disabled": isDisabled
|
|
6695
6624
|
}),
|
|
6696
6625
|
ref,
|
|
@@ -6700,8 +6629,8 @@ var Button = (0, import_react.forwardRef)(
|
|
|
6700
6629
|
"aria-disabled": isDisabled,
|
|
6701
6630
|
...rest,
|
|
6702
6631
|
children: [
|
|
6703
|
-
loading && /* @__PURE__ */ (
|
|
6704
|
-
/* @__PURE__ */ (
|
|
6632
|
+
loading && /* @__PURE__ */ jsx4(Spinner, { className: "absolute", variant }),
|
|
6633
|
+
/* @__PURE__ */ jsx4("span", { className: cn3("flex items-center", innerClassName, { invisible: loading }), children })
|
|
6705
6634
|
]
|
|
6706
6635
|
}
|
|
6707
6636
|
);
|
|
@@ -6709,9 +6638,9 @@ var Button = (0, import_react.forwardRef)(
|
|
|
6709
6638
|
);
|
|
6710
6639
|
|
|
6711
6640
|
// components/src/ui/spinner/Spinner.tsx
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6641
|
+
import cn4 from "classnames";
|
|
6642
|
+
import { useEffect, useRef, useState } from "react";
|
|
6643
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
6715
6644
|
var spinnerSizes = ["base", "lg"];
|
|
6716
6645
|
var spinnerVariants = ["primary", "secondary", "ghost", "danger"];
|
|
6717
6646
|
var Spinner = ({
|
|
@@ -6723,7 +6652,7 @@ var Spinner = ({
|
|
|
6723
6652
|
const center = size2 === "lg" ? 18 : 6;
|
|
6724
6653
|
const radius = size2 === "lg" ? 16 : 5;
|
|
6725
6654
|
const strokeWidth = size2 === "lg" ? 3 : 2;
|
|
6726
|
-
return /* @__PURE__ */ (
|
|
6655
|
+
return /* @__PURE__ */ jsxs3(
|
|
6727
6656
|
"svg",
|
|
6728
6657
|
{
|
|
6729
6658
|
width: frameSize,
|
|
@@ -6732,9 +6661,9 @@ var Spinner = ({
|
|
|
6732
6661
|
fill: "none",
|
|
6733
6662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6734
6663
|
"aria-labelledby": "Spinner",
|
|
6735
|
-
className: (
|
|
6664
|
+
className: cn4("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
|
|
6736
6665
|
children: [
|
|
6737
|
-
/* @__PURE__ */ (
|
|
6666
|
+
/* @__PURE__ */ jsx5(
|
|
6738
6667
|
"circle",
|
|
6739
6668
|
{
|
|
6740
6669
|
fill: "none",
|
|
@@ -6747,7 +6676,7 @@ var Spinner = ({
|
|
|
6747
6676
|
strokeOpacity: 0.2
|
|
6748
6677
|
}
|
|
6749
6678
|
),
|
|
6750
|
-
/* @__PURE__ */ (
|
|
6679
|
+
/* @__PURE__ */ jsx5(
|
|
6751
6680
|
"circle",
|
|
6752
6681
|
{
|
|
6753
6682
|
className: "path",
|
|
@@ -6765,10 +6694,10 @@ var Spinner = ({
|
|
|
6765
6694
|
);
|
|
6766
6695
|
};
|
|
6767
6696
|
var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
|
|
6768
|
-
const [isVisible, setIsVisible] =
|
|
6769
|
-
const hideTimeout =
|
|
6770
|
-
const loadingStartTime =
|
|
6771
|
-
|
|
6697
|
+
const [isVisible, setIsVisible] = useState(isLoading);
|
|
6698
|
+
const hideTimeout = useRef(null);
|
|
6699
|
+
const loadingStartTime = useRef(0);
|
|
6700
|
+
useEffect(() => {
|
|
6772
6701
|
if (isLoading) {
|
|
6773
6702
|
setIsVisible(true);
|
|
6774
6703
|
loadingStartTime.current = Date.now();
|
|
@@ -6788,417 +6717,27 @@ var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
|
|
|
6788
6717
|
clearTimeout(hideTimeout.current);
|
|
6789
6718
|
};
|
|
6790
6719
|
}, [isLoading, minTime]);
|
|
6791
|
-
return isVisible ? /* @__PURE__ */ (
|
|
6720
|
+
return isVisible ? /* @__PURE__ */ jsx5(Spinner, {}) : /* @__PURE__ */ jsx5(Fragment, { children });
|
|
6792
6721
|
};
|
|
6793
6722
|
|
|
6794
6723
|
// components/src/ui/tabs/Tabs.tsx
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6724
|
+
import { Content as Content2, List, Root, Trigger } from "@radix-ui/react-tabs";
|
|
6725
|
+
import cn5 from "classnames";
|
|
6726
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
6798
6727
|
var Tabs = {
|
|
6799
|
-
Root: ({ className, ...props }) => /* @__PURE__ */ (
|
|
6800
|
-
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ (
|
|
6801
|
-
List: ({ className, ...props }) => /* @__PURE__ */ (
|
|
6802
|
-
Content: ({ className, ...props }) => /* @__PURE__ */ (
|
|
6728
|
+
Root: ({ className, ...props }) => /* @__PURE__ */ jsx6(Root, { ...props, className: cn5("ox-tabs", className) }),
|
|
6729
|
+
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ jsx6(Trigger, { ...props, className: cn5("ox-tab", className), children: /* @__PURE__ */ jsx6("div", { children }) }),
|
|
6730
|
+
List: ({ className, ...props }) => /* @__PURE__ */ jsx6(List, { ...props, className: cn5("ox-tabs-list", className) }),
|
|
6731
|
+
Content: ({ className, ...props }) => /* @__PURE__ */ jsx6(Content2, { ...props, className: cn5("ox-tabs-panel", className) })
|
|
6803
6732
|
};
|
|
6804
6733
|
|
|
6805
|
-
// icons/react/Access24Icon.tsx
|
|
6806
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
6807
|
-
|
|
6808
|
-
// icons/react/Action24Icon.tsx
|
|
6809
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
6810
|
-
|
|
6811
|
-
// icons/react/AddRoundel24Icon.tsx
|
|
6812
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
6813
|
-
|
|
6814
|
-
// icons/react/Calendar24Icon.tsx
|
|
6815
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
6816
|
-
|
|
6817
|
-
// icons/react/Chat24Icon.tsx
|
|
6818
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
6819
|
-
|
|
6820
|
-
// icons/react/Clipboard24Icon.tsx
|
|
6821
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
6822
|
-
|
|
6823
|
-
// icons/react/Cloud24Icon.tsx
|
|
6824
|
-
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
6825
|
-
|
|
6826
|
-
// icons/react/Compatibility24Icon.tsx
|
|
6827
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
6828
|
-
|
|
6829
|
-
// icons/react/Contrast24Icon.tsx
|
|
6830
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
6831
|
-
|
|
6832
|
-
// icons/react/Cpu24Icon.tsx
|
|
6833
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
6834
|
-
|
|
6835
|
-
// icons/react/Delete24Icon.tsx
|
|
6836
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
6837
|
-
|
|
6838
|
-
// icons/react/Dislike24Icon.tsx
|
|
6839
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
6840
|
-
|
|
6841
|
-
// icons/react/Document24Icon.tsx
|
|
6842
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
6843
|
-
|
|
6844
|
-
// icons/react/Dots24Icon.tsx
|
|
6845
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
6846
|
-
|
|
6847
|
-
// icons/react/Download24Icon.tsx
|
|
6848
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
6849
|
-
|
|
6850
|
-
// icons/react/Email24Icon.tsx
|
|
6851
|
-
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
6852
|
-
|
|
6853
|
-
// icons/react/Error24Icon.tsx
|
|
6854
|
-
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
6855
|
-
|
|
6856
|
-
// icons/react/Firewall24Icon.tsx
|
|
6857
|
-
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
6858
|
-
|
|
6859
|
-
// icons/react/Folder24Icon.tsx
|
|
6860
|
-
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
6861
|
-
|
|
6862
|
-
// icons/react/Gateway24Icon.tsx
|
|
6863
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
6864
|
-
|
|
6865
|
-
// icons/react/Heart24Icon.tsx
|
|
6866
|
-
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
6867
|
-
|
|
6868
|
-
// icons/react/Hide24Icon.tsx
|
|
6869
|
-
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
6870
|
-
|
|
6871
|
-
// icons/react/Hourglass24Icon.tsx
|
|
6872
|
-
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
6873
|
-
|
|
6874
|
-
// icons/react/Images24Icon.tsx
|
|
6875
|
-
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
6876
|
-
|
|
6877
|
-
// icons/react/Info24Icon.tsx
|
|
6878
|
-
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
6879
|
-
|
|
6880
|
-
// icons/react/Instances24Icon.tsx
|
|
6881
|
-
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
6882
|
-
|
|
6883
|
-
// icons/react/IpGlobal24Icon.tsx
|
|
6884
|
-
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
6885
|
-
|
|
6886
|
-
// icons/react/IpLocal24Icon.tsx
|
|
6887
|
-
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
6888
|
-
|
|
6889
|
-
// icons/react/Issues24Icon.tsx
|
|
6890
|
-
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
6891
|
-
|
|
6892
|
-
// icons/react/Key24Icon.tsx
|
|
6893
|
-
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
6894
|
-
|
|
6895
|
-
// icons/react/Like24Icon.tsx
|
|
6896
|
-
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
6897
|
-
|
|
6898
|
-
// icons/react/LoadBalancer24Icon.tsx
|
|
6899
|
-
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
6900
|
-
|
|
6901
|
-
// icons/react/Location24Icon.tsx
|
|
6902
|
-
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6903
|
-
|
|
6904
|
-
// icons/react/Logs24Icon.tsx
|
|
6905
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
6906
|
-
|
|
6907
|
-
// icons/react/Metrics24Icon.tsx
|
|
6908
|
-
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
6909
|
-
|
|
6910
|
-
// icons/react/Monitoring24Icon.tsx
|
|
6911
|
-
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
6912
|
-
|
|
6913
|
-
// icons/react/Networking24Icon.tsx
|
|
6914
|
-
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
6915
|
-
|
|
6916
|
-
// icons/react/Organization24Icon.tsx
|
|
6917
|
-
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
6918
|
-
|
|
6919
|
-
// icons/react/Overview24Icon.tsx
|
|
6920
|
-
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
6921
|
-
|
|
6922
|
-
// icons/react/Person24Icon.tsx
|
|
6923
|
-
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6924
|
-
|
|
6925
|
-
// icons/react/PersonGroup24Icon.tsx
|
|
6926
|
-
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6927
|
-
|
|
6928
|
-
// icons/react/Progress24Icon.tsx
|
|
6929
|
-
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
6930
|
-
|
|
6931
|
-
// icons/react/Prohibited24Icon.tsx
|
|
6932
|
-
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
6933
|
-
|
|
6934
|
-
// icons/react/Router24Icon.tsx
|
|
6935
|
-
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
6936
|
-
|
|
6937
|
-
// icons/react/Safety24Icon.tsx
|
|
6938
|
-
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
6939
|
-
|
|
6940
|
-
// icons/react/Security24Icon.tsx
|
|
6941
|
-
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6942
|
-
|
|
6943
|
-
// icons/react/Servers24Icon.tsx
|
|
6944
|
-
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6945
|
-
|
|
6946
|
-
// icons/react/Settings24Icon.tsx
|
|
6947
|
-
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6948
|
-
|
|
6949
|
-
// icons/react/Snapshots24Icon.tsx
|
|
6950
|
-
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6951
|
-
|
|
6952
|
-
// icons/react/SoftwareUpdate24Icon.tsx
|
|
6953
|
-
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6954
|
-
|
|
6955
|
-
// icons/react/Speaker24Icon.tsx
|
|
6956
|
-
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6957
|
-
|
|
6958
|
-
// icons/react/Storage24Icon.tsx
|
|
6959
|
-
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6960
|
-
|
|
6961
|
-
// icons/react/Subnet24Icon.tsx
|
|
6962
|
-
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6963
|
-
|
|
6964
|
-
// icons/react/Resize24Icon.tsx
|
|
6965
|
-
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
6966
|
-
|
|
6967
|
-
// icons/react/Terminal24Icon.tsx
|
|
6968
|
-
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6969
|
-
|
|
6970
|
-
// icons/react/Transmit24Icon.tsx
|
|
6971
|
-
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6972
|
-
|
|
6973
|
-
// icons/react/Wireless24Icon.tsx
|
|
6974
|
-
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
6975
|
-
|
|
6976
|
-
// icons/react/Question24Icon.tsx
|
|
6977
|
-
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6978
|
-
|
|
6979
|
-
// icons/react/Access16Icon.tsx
|
|
6980
|
-
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6981
|
-
|
|
6982
|
-
// icons/react/Action16Icon.tsx
|
|
6983
|
-
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6984
|
-
|
|
6985
|
-
// icons/react/AddRoundel16Icon.tsx
|
|
6986
|
-
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6987
|
-
|
|
6988
|
-
// icons/react/Calendar16Icon.tsx
|
|
6989
|
-
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6990
|
-
|
|
6991
|
-
// icons/react/Chat16Icon.tsx
|
|
6992
|
-
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6993
|
-
|
|
6994
|
-
// icons/react/Clipboard16Icon.tsx
|
|
6995
|
-
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6996
|
-
|
|
6997
|
-
// icons/react/Cloud16Icon.tsx
|
|
6998
|
-
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6999
|
-
|
|
7000
|
-
// icons/react/Close16Icon.tsx
|
|
7001
|
-
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
7002
|
-
|
|
7003
|
-
// icons/react/Compability16Icon.tsx
|
|
7004
|
-
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
7005
|
-
|
|
7006
|
-
// icons/react/Contrast16Icon.tsx
|
|
7007
|
-
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
7008
|
-
|
|
7009
|
-
// icons/react/Cpu16Icon.tsx
|
|
7010
|
-
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
7011
|
-
|
|
7012
|
-
// icons/react/Delete16Icon.tsx
|
|
7013
|
-
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
7014
|
-
|
|
7015
|
-
// icons/react/Dislike16Icon.tsx
|
|
7016
|
-
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7017
|
-
|
|
7018
|
-
// icons/react/Document16Icon.tsx
|
|
7019
|
-
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
7020
|
-
|
|
7021
|
-
// icons/react/Dots16Icon.tsx
|
|
7022
|
-
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7023
|
-
|
|
7024
|
-
// icons/react/DownloadRoundel16Icon.tsx
|
|
7025
|
-
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7026
|
-
|
|
7027
|
-
// icons/react/Edit16Icon.tsx
|
|
7028
|
-
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7029
|
-
|
|
7030
|
-
// icons/react/Email16Icon.tsx
|
|
7031
|
-
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7032
|
-
|
|
7033
|
-
// icons/react/Error16Icon.tsx
|
|
7034
|
-
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7035
|
-
|
|
7036
|
-
// icons/react/Filter16Icon.tsx
|
|
7037
|
-
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7038
|
-
|
|
7039
|
-
// icons/react/Firewall16Icon.tsx
|
|
7040
|
-
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7041
|
-
|
|
7042
|
-
// icons/react/Folder16Icon.tsx
|
|
7043
|
-
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7044
|
-
|
|
7045
|
-
// icons/react/Gateway16Icon.tsx
|
|
7046
|
-
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7047
|
-
|
|
7048
|
-
// icons/react/Heart16Icon.tsx
|
|
7049
|
-
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7050
|
-
|
|
7051
|
-
// icons/react/Hide16Icon.tsx
|
|
7052
|
-
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7053
|
-
|
|
7054
|
-
// icons/react/Hourglass16Icon.tsx
|
|
7055
|
-
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7056
|
-
|
|
7057
|
-
// icons/react/Images16Icon.tsx
|
|
7058
|
-
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7059
|
-
|
|
7060
|
-
// icons/react/Info16Icon.tsx
|
|
7061
|
-
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7062
|
-
|
|
7063
|
-
// icons/react/Instances16Icon.tsx
|
|
7064
|
-
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7065
|
-
|
|
7066
|
-
// icons/react/Integration16Icon.tsx
|
|
7067
|
-
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7068
|
-
|
|
7069
|
-
// icons/react/IpGlobal16Icon.tsx
|
|
7070
|
-
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7071
|
-
|
|
7072
|
-
// icons/react/IpLocal16Icon.tsx
|
|
7073
|
-
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7074
|
-
|
|
7075
|
-
// icons/react/Issues16Icon.tsx
|
|
7076
|
-
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7077
|
-
|
|
7078
|
-
// icons/react/Key16Icon.tsx
|
|
7079
|
-
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7080
|
-
|
|
7081
|
-
// icons/react/Like16Icon.tsx
|
|
7082
|
-
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7083
|
-
|
|
7084
|
-
// icons/react/Link16Icon.tsx
|
|
7085
|
-
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
7086
|
-
|
|
7087
|
-
// icons/react/LoadBalancer16Icon.tsx
|
|
7088
|
-
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
7089
|
-
|
|
7090
|
-
// icons/react/Logs16Icon.tsx
|
|
7091
|
-
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
7092
|
-
|
|
7093
|
-
// icons/react/Metrics16Icon.tsx
|
|
7094
|
-
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
7095
|
-
|
|
7096
|
-
// icons/react/Monitoring16Icon.tsx
|
|
7097
|
-
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
7098
|
-
|
|
7099
|
-
// icons/react/Networking16Icon.tsx
|
|
7100
|
-
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
7101
|
-
|
|
7102
|
-
// icons/react/NewWindow16Icon.tsx
|
|
7103
|
-
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
7104
|
-
|
|
7105
|
-
// icons/react/Notifications16Icon.tsx
|
|
7106
|
-
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
7107
|
-
|
|
7108
|
-
// icons/react/Organization16Icon.tsx
|
|
7109
|
-
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
7110
|
-
|
|
7111
|
-
// icons/react/Overview16Icon.tsx
|
|
7112
|
-
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
7113
|
-
|
|
7114
|
-
// icons/react/Person16Icon.tsx
|
|
7115
|
-
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
7116
|
-
|
|
7117
|
-
// icons/react/PersonGroup16Icon.tsx
|
|
7118
|
-
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
7119
|
-
|
|
7120
|
-
// icons/react/Profile16Icon.tsx
|
|
7121
|
-
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
7122
|
-
|
|
7123
|
-
// icons/react/Refresh16Icon.tsx
|
|
7124
|
-
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
7125
|
-
|
|
7126
|
-
// icons/react/Ram16Icon.tsx
|
|
7127
|
-
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
7128
|
-
|
|
7129
|
-
// icons/react/Repair16Icon.tsx
|
|
7130
|
-
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
7131
|
-
|
|
7132
|
-
// icons/react/Resize16Icon.tsx
|
|
7133
|
-
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7134
|
-
|
|
7135
|
-
// icons/react/Router16Icon.tsx
|
|
7136
|
-
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7137
|
-
|
|
7138
|
-
// icons/react/Sort16Icon.tsx
|
|
7139
|
-
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7140
|
-
|
|
7141
|
-
// icons/react/Search16Icon.tsx
|
|
7142
|
-
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
7143
|
-
|
|
7144
|
-
// icons/react/Security16Icon.tsx
|
|
7145
|
-
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
7146
|
-
|
|
7147
|
-
// icons/react/Servers16Icon.tsx
|
|
7148
|
-
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
7149
|
-
|
|
7150
|
-
// icons/react/Settings16Icon.tsx
|
|
7151
|
-
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
7152
|
-
|
|
7153
|
-
// icons/react/Show16Icon.tsx
|
|
7154
|
-
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
7155
|
-
|
|
7156
|
-
// icons/react/SignOut16Icon.tsx
|
|
7157
|
-
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
7158
|
-
|
|
7159
|
-
// icons/react/Snapshots16Icon.tsx
|
|
7160
|
-
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
7161
|
-
|
|
7162
|
-
// icons/react/SoftwareUpdate16Icon.tsx
|
|
7163
|
-
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
7164
|
-
|
|
7165
|
-
// icons/react/Ssd16Icon.tsx
|
|
7166
|
-
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
7167
|
-
|
|
7168
|
-
// icons/react/Storage16Icon.tsx
|
|
7169
|
-
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
7170
|
-
|
|
7171
|
-
// icons/react/Subnet16Icon.tsx
|
|
7172
|
-
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
7173
|
-
|
|
7174
|
-
// icons/react/Tags16Icon.tsx
|
|
7175
|
-
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
7176
|
-
|
|
7177
|
-
// icons/react/Terminal16Icon.tsx
|
|
7178
|
-
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
7179
|
-
|
|
7180
|
-
// icons/react/Time16Icon.tsx
|
|
7181
|
-
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
7182
|
-
|
|
7183
|
-
// icons/react/Transmit16Icon.tsx
|
|
7184
|
-
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
7185
|
-
|
|
7186
|
-
// icons/react/Question16Icon.tsx
|
|
7187
|
-
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
7188
|
-
|
|
7189
|
-
// icons/react/Add12Icon.tsx
|
|
7190
|
-
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
7191
|
-
|
|
7192
|
-
// icons/react/AddRoundel12Icon.tsx
|
|
7193
|
-
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
7194
|
-
|
|
7195
6734
|
// icons/react/Checkmark12Icon.tsx
|
|
7196
|
-
|
|
6735
|
+
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
7197
6736
|
var Checkmark12Icon = ({
|
|
7198
6737
|
title,
|
|
7199
6738
|
titleId,
|
|
7200
6739
|
...props
|
|
7201
|
-
}) => /* @__PURE__ */ (
|
|
6740
|
+
}) => /* @__PURE__ */ jsxs4(
|
|
7202
6741
|
"svg",
|
|
7203
6742
|
{
|
|
7204
6743
|
width: 12,
|
|
@@ -7209,8 +6748,8 @@ var Checkmark12Icon = ({
|
|
|
7209
6748
|
"aria-labelledby": titleId,
|
|
7210
6749
|
...props,
|
|
7211
6750
|
children: [
|
|
7212
|
-
title ? /* @__PURE__ */ (
|
|
7213
|
-
/* @__PURE__ */ (
|
|
6751
|
+
title ? /* @__PURE__ */ jsx7("title", { id: titleId, children: title }) : null,
|
|
6752
|
+
/* @__PURE__ */ jsx7(
|
|
7214
6753
|
"path",
|
|
7215
6754
|
{
|
|
7216
6755
|
fillRule: "evenodd",
|
|
@@ -7224,91 +6763,13 @@ var Checkmark12Icon = ({
|
|
|
7224
6763
|
);
|
|
7225
6764
|
var Checkmark12Icon_default = Checkmark12Icon;
|
|
7226
6765
|
|
|
7227
|
-
// icons/react/Close12Icon.tsx
|
|
7228
|
-
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
7229
|
-
|
|
7230
|
-
// icons/react/DirectionRightIcon.tsx
|
|
7231
|
-
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
7232
|
-
|
|
7233
|
-
// icons/react/DirectionUpIcon.tsx
|
|
7234
|
-
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
7235
|
-
|
|
7236
|
-
// icons/react/DirectionDownIcon.tsx
|
|
7237
|
-
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
7238
|
-
|
|
7239
|
-
// icons/react/DirectionLeftIcon.tsx
|
|
7240
|
-
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
7241
|
-
|
|
7242
|
-
// icons/react/Clipboard12Icon.tsx
|
|
7243
|
-
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
7244
|
-
|
|
7245
|
-
// icons/react/Copy12Icon.tsx
|
|
7246
|
-
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
7247
|
-
|
|
7248
|
-
// icons/react/Disabled12Icon.tsx
|
|
7249
|
-
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
7250
|
-
|
|
7251
|
-
// icons/react/Error12Icon.tsx
|
|
7252
|
-
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
7253
|
-
|
|
7254
|
-
// icons/react/Info12Icon.tsx
|
|
7255
|
-
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
7256
|
-
|
|
7257
|
-
// icons/react/Filter12Icon.tsx
|
|
7258
|
-
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
7259
|
-
|
|
7260
|
-
// icons/react/Key12Icon.tsx
|
|
7261
|
-
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
7262
|
-
|
|
7263
|
-
// icons/react/Loader12Icon.tsx
|
|
7264
|
-
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
7265
|
-
|
|
7266
|
-
// icons/react/MenuOpen12Icon.tsx
|
|
7267
|
-
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
7268
|
-
|
|
7269
|
-
// icons/react/MenuClose12Icon.tsx
|
|
7270
|
-
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
7271
|
-
|
|
7272
|
-
// icons/react/More12Icon.tsx
|
|
7273
|
-
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
7274
|
-
|
|
7275
|
-
// icons/react/NextArrow12Icon.tsx
|
|
7276
|
-
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
7277
|
-
|
|
7278
|
-
// icons/react/PrevArrow12Icon.tsx
|
|
7279
|
-
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
7280
|
-
|
|
7281
|
-
// icons/react/OpenLink12Icon.tsx
|
|
7282
|
-
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
7283
|
-
|
|
7284
|
-
// icons/react/Repair12Icon.tsx
|
|
7285
|
-
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
7286
|
-
|
|
7287
|
-
// icons/react/Security12Icon.tsx
|
|
7288
|
-
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
7289
|
-
|
|
7290
|
-
// icons/react/Success12Icon.tsx
|
|
7291
|
-
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
7292
|
-
|
|
7293
|
-
// icons/react/Unauthorized12Icon.tsx
|
|
7294
|
-
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
7295
|
-
|
|
7296
|
-
// icons/react/Warning12Icon.tsx
|
|
7297
|
-
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
7298
|
-
|
|
7299
|
-
// icons/react/Question12Icon.tsx
|
|
7300
|
-
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
7301
|
-
|
|
7302
|
-
// icons/react/Hide12Icon.tsx
|
|
7303
|
-
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
7304
|
-
|
|
7305
6766
|
// icons/react/SelectArrows6Icon.tsx
|
|
7306
|
-
|
|
6767
|
+
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
7307
6768
|
var SelectArrows6Icon = ({
|
|
7308
6769
|
title,
|
|
7309
6770
|
titleId,
|
|
7310
6771
|
...props
|
|
7311
|
-
}) => /* @__PURE__ */ (
|
|
6772
|
+
}) => /* @__PURE__ */ jsxs5(
|
|
7312
6773
|
"svg",
|
|
7313
6774
|
{
|
|
7314
6775
|
width: 6,
|
|
@@ -7319,8 +6780,8 @@ var SelectArrows6Icon = ({
|
|
|
7319
6780
|
"aria-labelledby": titleId,
|
|
7320
6781
|
...props,
|
|
7321
6782
|
children: [
|
|
7322
|
-
title ? /* @__PURE__ */ (
|
|
7323
|
-
/* @__PURE__ */ (
|
|
6783
|
+
title ? /* @__PURE__ */ jsx8("title", { id: titleId, children: title }) : null,
|
|
6784
|
+
/* @__PURE__ */ jsx8(
|
|
7324
6785
|
"path",
|
|
7325
6786
|
{
|
|
7326
6787
|
fillRule: "evenodd",
|
|
@@ -7334,13 +6795,10 @@ var SelectArrows6Icon = ({
|
|
|
7334
6795
|
);
|
|
7335
6796
|
var SelectArrows6Icon_default = SelectArrows6Icon;
|
|
7336
6797
|
|
|
7337
|
-
// icons/react/Close8Icon.tsx
|
|
7338
|
-
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
7339
|
-
|
|
7340
6798
|
// components/src/ui/checkbox/Checkbox.tsx
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
var Check = () => /* @__PURE__ */ (
|
|
6799
|
+
import cn6 from "classnames";
|
|
6800
|
+
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
6801
|
+
var Check = () => /* @__PURE__ */ jsx9(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" });
|
|
7344
6802
|
var Indeterminate = classed.div`absolute w-2 h-0.5 left-1 top-[7px] bg-accent pointer-events-none`;
|
|
7345
6803
|
var inputStyle = `
|
|
7346
6804
|
appearance-none border border-default bg-default h-4 w-4 rounded-sm absolute left-0 outline-none
|
|
@@ -7354,28 +6812,28 @@ var Checkbox = ({
|
|
|
7354
6812
|
children,
|
|
7355
6813
|
className,
|
|
7356
6814
|
...inputProps
|
|
7357
|
-
}) => /* @__PURE__ */ (
|
|
7358
|
-
/* @__PURE__ */ (
|
|
7359
|
-
/* @__PURE__ */ (
|
|
6815
|
+
}) => /* @__PURE__ */ jsxs6("label", { className: "inline-flex items-center", children: [
|
|
6816
|
+
/* @__PURE__ */ jsxs6("span", { className: "relative h-4 w-4", children: [
|
|
6817
|
+
/* @__PURE__ */ jsx9(
|
|
7360
6818
|
"input",
|
|
7361
6819
|
{
|
|
7362
|
-
className: (
|
|
6820
|
+
className: cn6(inputStyle, className),
|
|
7363
6821
|
type: "checkbox",
|
|
7364
6822
|
ref: (el) => el && (el.indeterminate = !!indeterminate),
|
|
7365
6823
|
...inputProps
|
|
7366
6824
|
}
|
|
7367
6825
|
),
|
|
7368
|
-
inputProps.checked && !indeterminate && /* @__PURE__ */ (
|
|
7369
|
-
indeterminate && /* @__PURE__ */ (
|
|
6826
|
+
inputProps.checked && !indeterminate && /* @__PURE__ */ jsx9(Check, {}),
|
|
6827
|
+
indeterminate && /* @__PURE__ */ jsx9(Indeterminate, {})
|
|
7370
6828
|
] }),
|
|
7371
|
-
children && /* @__PURE__ */ (
|
|
6829
|
+
children && /* @__PURE__ */ jsx9("span", { className: "ml-2.5 text-sans-md text-secondary", children })
|
|
7372
6830
|
] });
|
|
7373
6831
|
|
|
7374
6832
|
// components/src/ui/listbox/Listbox.tsx
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
6833
|
+
import { FloatingPortal, flip, offset, size, useFloating } from "@floating-ui/react";
|
|
6834
|
+
import { Listbox as Select } from "@headlessui/react";
|
|
6835
|
+
import cn7 from "classnames";
|
|
6836
|
+
import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
7379
6837
|
var Listbox = ({
|
|
7380
6838
|
name,
|
|
7381
6839
|
selected,
|
|
@@ -7388,11 +6846,11 @@ var Listbox = ({
|
|
|
7388
6846
|
isLoading = false,
|
|
7389
6847
|
...props
|
|
7390
6848
|
}) => {
|
|
7391
|
-
const { refs, floatingStyles } =
|
|
6849
|
+
const { refs, floatingStyles } = useFloating({
|
|
7392
6850
|
middleware: [
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
6851
|
+
offset(12),
|
|
6852
|
+
flip(),
|
|
6853
|
+
size({
|
|
7396
6854
|
apply({ rects, elements }) {
|
|
7397
6855
|
Object.assign(elements.floating.style, {
|
|
7398
6856
|
width: `${rects.reference.width}px`
|
|
@@ -7404,19 +6862,19 @@ var Listbox = ({
|
|
|
7404
6862
|
const selectedItem = selected && items.find((i) => i.value === selected);
|
|
7405
6863
|
const noItems = !isLoading && items.length === 0;
|
|
7406
6864
|
const isDisabled = disabled || noItems;
|
|
7407
|
-
return /* @__PURE__ */ (
|
|
7408
|
-
|
|
6865
|
+
return /* @__PURE__ */ jsx10("div", { className: cn7("relative", className), children: /* @__PURE__ */ jsx10(
|
|
6866
|
+
Select,
|
|
7409
6867
|
{
|
|
7410
6868
|
value: selected,
|
|
7411
6869
|
onChange: (val) => val !== null && onChange(val),
|
|
7412
6870
|
disabled: isDisabled || isLoading,
|
|
7413
|
-
children: ({ open }) => /* @__PURE__ */ (
|
|
7414
|
-
/* @__PURE__ */ (
|
|
7415
|
-
|
|
6871
|
+
children: ({ open }) => /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
6872
|
+
/* @__PURE__ */ jsxs7(
|
|
6873
|
+
Select.Button,
|
|
7416
6874
|
{
|
|
7417
6875
|
name,
|
|
7418
6876
|
ref: refs.setReference,
|
|
7419
|
-
className: (
|
|
6877
|
+
className: cn7(
|
|
7420
6878
|
`flex h-10 w-full items-center justify-between
|
|
7421
6879
|
rounded border text-sans-md`,
|
|
7422
6880
|
hasError ? "focus-error border-error-secondary hover:border-error" : "border-default hover:border-hover",
|
|
@@ -7427,37 +6885,37 @@ var Listbox = ({
|
|
|
7427
6885
|
),
|
|
7428
6886
|
...props,
|
|
7429
6887
|
children: [
|
|
7430
|
-
/* @__PURE__ */ (
|
|
6888
|
+
/* @__PURE__ */ jsx10("div", { className: "w-full px-3 text-left", children: selectedItem ? (
|
|
7431
6889
|
// labelString is one line, which is what we need when label is a ReactNode
|
|
7432
6890
|
selectedItem.labelString || selectedItem.label
|
|
7433
|
-
) : /* @__PURE__ */ (
|
|
7434
|
-
!isDisabled && /* @__PURE__ */ (
|
|
7435
|
-
/* @__PURE__ */ (
|
|
6891
|
+
) : /* @__PURE__ */ jsx10("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }),
|
|
6892
|
+
!isDisabled && /* @__PURE__ */ jsx10(SpinnerLoader, { isLoading }),
|
|
6893
|
+
/* @__PURE__ */ jsx10(
|
|
7436
6894
|
"div",
|
|
7437
6895
|
{
|
|
7438
6896
|
className: "ml-3 flex h-[calc(100%-12px)] items-center border-l px-3 border-secondary",
|
|
7439
6897
|
"aria-hidden": true,
|
|
7440
|
-
children: /* @__PURE__ */ (
|
|
6898
|
+
children: /* @__PURE__ */ jsx10(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" })
|
|
7441
6899
|
}
|
|
7442
6900
|
)
|
|
7443
6901
|
]
|
|
7444
6902
|
}
|
|
7445
6903
|
),
|
|
7446
|
-
/* @__PURE__ */ (
|
|
7447
|
-
|
|
6904
|
+
/* @__PURE__ */ jsx10(FloatingPortal, { children: /* @__PURE__ */ jsx10(
|
|
6905
|
+
Select.Options,
|
|
7448
6906
|
{
|
|
7449
6907
|
ref: refs.setFloating,
|
|
7450
6908
|
style: floatingStyles,
|
|
7451
6909
|
className: "ox-menu pointer-events-auto z-50 overflow-y-auto !outline-none",
|
|
7452
|
-
children: items.map((item) => /* @__PURE__ */ (
|
|
7453
|
-
|
|
6910
|
+
children: items.map((item) => /* @__PURE__ */ jsx10(
|
|
6911
|
+
Select.Option,
|
|
7454
6912
|
{
|
|
7455
6913
|
value: item.value,
|
|
7456
6914
|
className: "relative border-b border-secondary last:border-0",
|
|
7457
|
-
children: ({ active, selected: selected2 }) => /* @__PURE__ */ (
|
|
6915
|
+
children: ({ active, selected: selected2 }) => /* @__PURE__ */ jsx10(
|
|
7458
6916
|
"div",
|
|
7459
6917
|
{
|
|
7460
|
-
className: (
|
|
6918
|
+
className: cn7(
|
|
7461
6919
|
"ox-menu-item text-secondary",
|
|
7462
6920
|
selected2 && "is-selected",
|
|
7463
6921
|
active && "is-highlighted"
|
|
@@ -7474,8 +6932,7 @@ var Listbox = ({
|
|
|
7474
6932
|
}
|
|
7475
6933
|
) });
|
|
7476
6934
|
};
|
|
7477
|
-
|
|
7478
|
-
0 && (module.exports = {
|
|
6935
|
+
export {
|
|
7479
6936
|
AsciiDocBlocks,
|
|
7480
6937
|
Badge,
|
|
7481
6938
|
Button,
|
|
@@ -7490,14 +6947,5 @@ var Listbox = ({
|
|
|
7490
6947
|
spinnerSizes,
|
|
7491
6948
|
spinnerVariants,
|
|
7492
6949
|
variants
|
|
7493
|
-
}
|
|
7494
|
-
/*! Bundled license information:
|
|
7495
|
-
|
|
7496
|
-
classnames/index.js:
|
|
7497
|
-
(*!
|
|
7498
|
-
Copyright (c) 2018 Jed Watson.
|
|
7499
|
-
Licensed under the MIT License (MIT), see
|
|
7500
|
-
http://jedwatson.github.io/classnames
|
|
7501
|
-
*)
|
|
7502
|
-
*/
|
|
6950
|
+
};
|
|
7503
6951
|
//# sourceMappingURL=index.js.map
|