@oxide/design-system 1.2.4 → 1.2.5--canary.46.c02a6da.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/index.d.ts +3 -0
- package/components/dist/index.js +659 -665
- package/components/dist/index.js.map +1 -1
- package/icons/react/Access16Icon.tsx +24 -5
- package/icons/react/Access24Icon.tsx +24 -5
- package/icons/react/Action16Icon.tsx +22 -5
- package/icons/react/Action24Icon.tsx +22 -5
- package/icons/react/Add12Icon.tsx +24 -9
- package/icons/react/AddRoundel12Icon.tsx +24 -5
- package/icons/react/AddRoundel16Icon.tsx +24 -5
- package/icons/react/AddRoundel24Icon.tsx +24 -5
- package/icons/react/Calendar16Icon.tsx +24 -5
- package/icons/react/Calendar24Icon.tsx +24 -5
- package/icons/react/Chat16Icon.tsx +24 -9
- package/icons/react/Chat24Icon.tsx +24 -9
- package/icons/react/Checkmark12Icon.tsx +24 -5
- package/icons/react/Clipboard12Icon.tsx +24 -5
- package/icons/react/Clipboard16Icon.tsx +24 -5
- package/icons/react/Clipboard24Icon.tsx +24 -5
- package/icons/react/Close12Icon.tsx +22 -9
- package/icons/react/Close16Icon.tsx +24 -9
- package/icons/react/Close8Icon.tsx +24 -9
- package/icons/react/Cloud16Icon.tsx +24 -9
- package/icons/react/Cloud24Icon.tsx +24 -9
- package/icons/react/Compability16Icon.tsx +24 -5
- package/icons/react/Compatibility24Icon.tsx +24 -5
- package/icons/react/Contrast16Icon.tsx +24 -5
- package/icons/react/Contrast24Icon.tsx +24 -5
- package/icons/react/Cpu16Icon.tsx +24 -9
- package/icons/react/Cpu24Icon.tsx +24 -9
- package/icons/react/Delete16Icon.tsx +24 -5
- package/icons/react/Delete24Icon.tsx +24 -5
- package/icons/react/DirectionDownIcon.tsx +22 -5
- package/icons/react/DirectionLeftIcon.tsx +22 -5
- package/icons/react/DirectionRightIcon.tsx +22 -5
- package/icons/react/DirectionUpIcon.tsx +22 -5
- package/icons/react/Disabled12Icon.tsx +24 -5
- package/icons/react/Dislike16Icon.tsx +24 -5
- package/icons/react/Dislike24Icon.tsx +24 -5
- package/icons/react/Document16Icon.tsx +22 -5
- package/icons/react/Document24Icon.tsx +22 -5
- package/icons/react/Dots16Icon.tsx +24 -9
- package/icons/react/Dots24Icon.tsx +24 -9
- package/icons/react/Download24Icon.tsx +24 -5
- package/icons/react/DownloadRoundel16Icon.tsx +24 -5
- package/icons/react/Edit16Icon.tsx +24 -9
- package/icons/react/Email16Icon.tsx +24 -9
- package/icons/react/Email24Icon.tsx +24 -9
- package/icons/react/Error12Icon.tsx +24 -9
- package/icons/react/Error16Icon.tsx +24 -9
- package/icons/react/Error24Icon.tsx +24 -9
- package/icons/react/Filter12Icon.tsx +24 -5
- package/icons/react/Firewall16Icon.tsx +24 -5
- package/icons/react/Firewall24Icon.tsx +24 -5
- package/icons/react/Folder16Icon.tsx +24 -5
- package/icons/react/Folder24Icon.tsx +24 -5
- package/icons/react/Gateway16Icon.tsx +24 -5
- package/icons/react/Gateway24Icon.tsx +24 -5
- package/icons/react/Heart16Icon.tsx +22 -9
- package/icons/react/Heart24Icon.tsx +22 -9
- package/icons/react/Hide12Icon.tsx +24 -9
- package/icons/react/Hide16Icon.tsx +24 -9
- package/icons/react/Hide24Icon.tsx +24 -9
- package/icons/react/Hourglass16Icon.tsx +24 -5
- package/icons/react/Hourglass24Icon.tsx +24 -5
- package/icons/react/Images16Icon.tsx +21 -5
- package/icons/react/Images24Icon.tsx +24 -5
- package/icons/react/Info16Icon.tsx +24 -9
- package/icons/react/Info24Icon.tsx +24 -9
- package/icons/react/Instances16Icon.tsx +24 -5
- package/icons/react/Instances24Icon.tsx +24 -5
- package/icons/react/Integration16Icon.tsx +24 -5
- package/icons/react/IpGlobal16Icon.tsx +24 -5
- package/icons/react/IpGlobal24Icon.tsx +24 -5
- package/icons/react/IpLocal16Icon.tsx +24 -5
- package/icons/react/IpLocal24Icon.tsx +24 -5
- package/icons/react/Issues16Icon.tsx +24 -5
- package/icons/react/Issues24Icon.tsx +24 -5
- package/icons/react/Key12Icon.tsx +24 -9
- package/icons/react/Key16Icon.tsx +24 -9
- package/icons/react/Key24Icon.tsx +24 -9
- package/icons/react/Like16Icon.tsx +24 -9
- package/icons/react/Like24Icon.tsx +24 -9
- package/icons/react/Link16Icon.tsx +22 -9
- package/icons/react/LoadBalancer16Icon.tsx +24 -5
- package/icons/react/LoadBalancer24Icon.tsx +24 -5
- package/icons/react/Loader12Icon.tsx +25 -5
- package/icons/react/Location24Icon.tsx +24 -5
- package/icons/react/Logs16Icon.tsx +24 -9
- package/icons/react/Logs24Icon.tsx +24 -9
- package/icons/react/Metrics16Icon.tsx +24 -5
- package/icons/react/More12Icon.tsx +24 -9
- package/icons/react/Networking16Icon.tsx +24 -5
- package/icons/react/Networking24Icon.tsx +24 -5
- package/icons/react/NewWindow16Icon.tsx +24 -5
- package/icons/react/NextArrow12Icon.tsx +22 -5
- package/icons/react/Notifications16Icon.tsx +24 -5
- package/icons/react/OpenLink12Icon.tsx +24 -5
- package/icons/react/Organization16Icon.tsx +24 -5
- package/icons/react/Organization24Icon.tsx +21 -5
- package/icons/react/Overview16Icon.tsx +24 -5
- package/icons/react/Overview24Icon.tsx +24 -5
- package/icons/react/Person16Icon.tsx +24 -5
- package/icons/react/Person24Icon.tsx +24 -5
- package/icons/react/PersonGroup16Icon.tsx +24 -5
- package/icons/react/PersonGroup24Icon.tsx +24 -5
- package/icons/react/PrevArrow12Icon.tsx +22 -5
- package/icons/react/Profile16Icon.tsx +24 -5
- package/icons/react/Progress24Icon.tsx +24 -5
- package/icons/react/Prohibited24Icon.tsx +24 -5
- package/icons/react/Question12Icon.tsx +24 -5
- package/icons/react/Racks24Icon.tsx +24 -9
- package/icons/react/Ram16Icon.tsx +24 -9
- package/icons/react/Refresh16Icon.tsx +24 -5
- package/icons/react/Repair12Icon.tsx +24 -5
- package/icons/react/Repair16Icon.tsx +24 -5
- package/icons/react/Resize16Icon.tsx +24 -5
- package/icons/react/Resize24Icon.tsx +24 -5
- package/icons/react/Router16Icon.tsx +24 -5
- package/icons/react/Router24Icon.tsx +24 -5
- package/icons/react/Safety24Icon.tsx +22 -5
- package/icons/react/Search16Icon.tsx +24 -5
- package/icons/react/Security12Icon.tsx +24 -5
- package/icons/react/Security16Icon.tsx +24 -5
- package/icons/react/Security24Icon.tsx +24 -5
- package/icons/react/SelectArrows6Icon.tsx +24 -5
- package/icons/react/Servers16Icon.tsx +24 -5
- package/icons/react/Settings16Icon.tsx +24 -5
- package/icons/react/Settings24Icon.tsx +24 -5
- package/icons/react/Show16Icon.tsx +24 -9
- package/icons/react/Snapshots16Icon.tsx +24 -5
- package/icons/react/Snapshots24Icon.tsx +24 -5
- package/icons/react/SoftwareUpdate16Icon.tsx +24 -5
- package/icons/react/SoftwareUpdate24Icon.tsx +24 -5
- package/icons/react/Speaker24Icon.tsx +24 -5
- package/icons/react/Ssd16Icon.tsx +24 -9
- package/icons/react/Storage16Icon.tsx +24 -5
- package/icons/react/Storage24Icon.tsx +22 -5
- package/icons/react/Subnet16Icon.tsx +24 -5
- package/icons/react/Subnet24Icon.tsx +24 -5
- package/icons/react/Success12Icon.tsx +24 -5
- package/icons/react/Tags16Icon.tsx +24 -9
- package/icons/react/Terminal16Icon.tsx +24 -5
- package/icons/react/Terminal24Icon.tsx +24 -5
- package/icons/react/Time16Icon.tsx +24 -9
- package/icons/react/Transmit16Icon.tsx +24 -5
- package/icons/react/Transmit24Icon.tsx +24 -5
- package/icons/react/Unauthorized12Icon.tsx +24 -5
- package/icons/react/Warning12Icon.tsx +24 -5
- package/icons/react/Wireless24Icon.tsx +22 -5
- package/package.json +4 -3
package/components/dist/index.js
CHANGED
|
@@ -1182,11 +1182,7 @@ var require_Tokenizer = __commonJS({
|
|
|
1182
1182
|
State2[State2["BeforeSpecialS"] = 22] = "BeforeSpecialS";
|
|
1183
1183
|
State2[State2["SpecialStartSequence"] = 23] = "SpecialStartSequence";
|
|
1184
1184
|
State2[State2["InSpecialTag"] = 24] = "InSpecialTag";
|
|
1185
|
-
State2[State2["
|
|
1186
|
-
State2[State2["BeforeNumericEntity"] = 26] = "BeforeNumericEntity";
|
|
1187
|
-
State2[State2["InNamedEntity"] = 27] = "InNamedEntity";
|
|
1188
|
-
State2[State2["InNumericEntity"] = 28] = "InNumericEntity";
|
|
1189
|
-
State2[State2["InHexEntity"] = 29] = "InHexEntity";
|
|
1185
|
+
State2[State2["InEntity"] = 25] = "InEntity";
|
|
1190
1186
|
})(State || (State = {}));
|
|
1191
1187
|
function isWhitespace(c) {
|
|
1192
1188
|
return c === CharCodes.Space || c === CharCodes.NewLine || c === CharCodes.Tab || c === CharCodes.FormFeed || c === CharCodes.CarriageReturn;
|
|
@@ -1194,15 +1190,9 @@ var require_Tokenizer = __commonJS({
|
|
|
1194
1190
|
function isEndOfTagSection(c) {
|
|
1195
1191
|
return c === CharCodes.Slash || c === CharCodes.Gt || isWhitespace(c);
|
|
1196
1192
|
}
|
|
1197
|
-
function isNumber(c) {
|
|
1198
|
-
return c >= CharCodes.Zero && c <= CharCodes.Nine;
|
|
1199
|
-
}
|
|
1200
1193
|
function isASCIIAlpha(c) {
|
|
1201
1194
|
return c >= CharCodes.LowerA && c <= CharCodes.LowerZ || c >= CharCodes.UpperA && c <= CharCodes.UpperZ;
|
|
1202
1195
|
}
|
|
1203
|
-
function isHexDigit(c) {
|
|
1204
|
-
return c >= CharCodes.UpperA && c <= CharCodes.UpperF || c >= CharCodes.LowerA && c <= CharCodes.LowerF;
|
|
1205
|
-
}
|
|
1206
1196
|
var QuoteType;
|
|
1207
1197
|
(function(QuoteType2) {
|
|
1208
1198
|
QuoteType2[QuoteType2["NoValue"] = 0] = "NoValue";
|
|
@@ -1224,24 +1214,24 @@ var require_Tokenizer = __commonJS({
|
|
|
1224
1214
|
function() {
|
|
1225
1215
|
function Tokenizer2(_a, cbs) {
|
|
1226
1216
|
var _b = _a.xmlMode, xmlMode = _b === void 0 ? false : _b, _c = _a.decodeEntities, decodeEntities = _c === void 0 ? true : _c;
|
|
1217
|
+
var _this = this;
|
|
1227
1218
|
this.cbs = cbs;
|
|
1228
1219
|
this.state = State.Text;
|
|
1229
1220
|
this.buffer = "";
|
|
1230
1221
|
this.sectionStart = 0;
|
|
1231
1222
|
this.index = 0;
|
|
1223
|
+
this.entityStart = 0;
|
|
1232
1224
|
this.baseState = State.Text;
|
|
1233
1225
|
this.isSpecial = false;
|
|
1234
1226
|
this.running = true;
|
|
1235
1227
|
this.offset = 0;
|
|
1236
1228
|
this.currentSequence = void 0;
|
|
1237
1229
|
this.sequenceIndex = 0;
|
|
1238
|
-
this.trieIndex = 0;
|
|
1239
|
-
this.trieCurrent = 0;
|
|
1240
|
-
this.entityResult = 0;
|
|
1241
|
-
this.entityExcess = 0;
|
|
1242
1230
|
this.xmlMode = xmlMode;
|
|
1243
1231
|
this.decodeEntities = decodeEntities;
|
|
1244
|
-
this.
|
|
1232
|
+
this.entityDecoder = new decode_js_1.EntityDecoder(xmlMode ? decode_js_1.xmlDecodeTree : decode_js_1.htmlDecodeTree, function(cp, consumed) {
|
|
1233
|
+
return _this.emitCodePoint(cp, consumed);
|
|
1234
|
+
});
|
|
1245
1235
|
}
|
|
1246
1236
|
Tokenizer2.prototype.reset = function() {
|
|
1247
1237
|
this.state = State.Text;
|
|
@@ -1271,12 +1261,6 @@ var require_Tokenizer = __commonJS({
|
|
|
1271
1261
|
this.parse();
|
|
1272
1262
|
}
|
|
1273
1263
|
};
|
|
1274
|
-
Tokenizer2.prototype.getIndex = function() {
|
|
1275
|
-
return this.index;
|
|
1276
|
-
};
|
|
1277
|
-
Tokenizer2.prototype.getSectionStart = function() {
|
|
1278
|
-
return this.sectionStart;
|
|
1279
|
-
};
|
|
1280
1264
|
Tokenizer2.prototype.stateText = function(c) {
|
|
1281
1265
|
if (c === CharCodes.Lt || !this.decodeEntities && this.fastForwardTo(CharCodes.Lt)) {
|
|
1282
1266
|
if (this.index > this.sectionStart) {
|
|
@@ -1285,7 +1269,7 @@ var require_Tokenizer = __commonJS({
|
|
|
1285
1269
|
this.state = State.BeforeTagName;
|
|
1286
1270
|
this.sectionStart = this.index;
|
|
1287
1271
|
} else if (this.decodeEntities && c === CharCodes.Amp) {
|
|
1288
|
-
this.
|
|
1272
|
+
this.startEntity();
|
|
1289
1273
|
}
|
|
1290
1274
|
};
|
|
1291
1275
|
Tokenizer2.prototype.stateSpecialStartSequence = function(c) {
|
|
@@ -1329,7 +1313,7 @@ var require_Tokenizer = __commonJS({
|
|
|
1329
1313
|
} else if (this.sequenceIndex === 0) {
|
|
1330
1314
|
if (this.currentSequence === Sequences.TitleEnd) {
|
|
1331
1315
|
if (this.decodeEntities && c === CharCodes.Amp) {
|
|
1332
|
-
this.
|
|
1316
|
+
this.startEntity();
|
|
1333
1317
|
}
|
|
1334
1318
|
} else if (this.fastForwardTo(CharCodes.Lt)) {
|
|
1335
1319
|
this.sequenceIndex = 1;
|
|
@@ -1440,7 +1424,6 @@ var require_Tokenizer = __commonJS({
|
|
|
1440
1424
|
Tokenizer2.prototype.stateAfterClosingTagName = function(c) {
|
|
1441
1425
|
if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
|
|
1442
1426
|
this.state = State.Text;
|
|
1443
|
-
this.baseState = State.Text;
|
|
1444
1427
|
this.sectionStart = this.index + 1;
|
|
1445
1428
|
}
|
|
1446
1429
|
};
|
|
@@ -1453,7 +1436,6 @@ var require_Tokenizer = __commonJS({
|
|
|
1453
1436
|
} else {
|
|
1454
1437
|
this.state = State.Text;
|
|
1455
1438
|
}
|
|
1456
|
-
this.baseState = this.state;
|
|
1457
1439
|
this.sectionStart = this.index + 1;
|
|
1458
1440
|
} else if (c === CharCodes.Slash) {
|
|
1459
1441
|
this.state = State.InSelfClosingTag;
|
|
@@ -1466,7 +1448,6 @@ var require_Tokenizer = __commonJS({
|
|
|
1466
1448
|
if (c === CharCodes.Gt) {
|
|
1467
1449
|
this.cbs.onselfclosingtag(this.index);
|
|
1468
1450
|
this.state = State.Text;
|
|
1469
|
-
this.baseState = State.Text;
|
|
1470
1451
|
this.sectionStart = this.index + 1;
|
|
1471
1452
|
this.isSpecial = false;
|
|
1472
1453
|
} else if (!isWhitespace(c)) {
|
|
@@ -1515,8 +1496,7 @@ var require_Tokenizer = __commonJS({
|
|
|
1515
1496
|
this.cbs.onattribend(quote === CharCodes.DoubleQuote ? QuoteType.Double : QuoteType.Single, this.index);
|
|
1516
1497
|
this.state = State.BeforeAttributeName;
|
|
1517
1498
|
} else if (this.decodeEntities && c === CharCodes.Amp) {
|
|
1518
|
-
this.
|
|
1519
|
-
this.state = State.BeforeEntity;
|
|
1499
|
+
this.startEntity();
|
|
1520
1500
|
}
|
|
1521
1501
|
};
|
|
1522
1502
|
Tokenizer2.prototype.stateInAttributeValueDoubleQuotes = function(c) {
|
|
@@ -1533,8 +1513,7 @@ var require_Tokenizer = __commonJS({
|
|
|
1533
1513
|
this.state = State.BeforeAttributeName;
|
|
1534
1514
|
this.stateBeforeAttributeName(c);
|
|
1535
1515
|
} else if (this.decodeEntities && c === CharCodes.Amp) {
|
|
1536
|
-
this.
|
|
1537
|
-
this.state = State.BeforeEntity;
|
|
1516
|
+
this.startEntity();
|
|
1538
1517
|
}
|
|
1539
1518
|
};
|
|
1540
1519
|
Tokenizer2.prototype.stateBeforeDeclaration = function(c) {
|
|
@@ -1587,126 +1566,23 @@ var require_Tokenizer = __commonJS({
|
|
|
1587
1566
|
this.stateInTagName(c);
|
|
1588
1567
|
}
|
|
1589
1568
|
};
|
|
1590
|
-
Tokenizer2.prototype.
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
} else if (c === CharCodes.Amp) {
|
|
1596
|
-
} else {
|
|
1597
|
-
this.trieIndex = 0;
|
|
1598
|
-
this.trieCurrent = this.entityTrie[0];
|
|
1599
|
-
this.state = State.InNamedEntity;
|
|
1600
|
-
this.stateInNamedEntity(c);
|
|
1601
|
-
}
|
|
1602
|
-
};
|
|
1603
|
-
Tokenizer2.prototype.stateInNamedEntity = function(c) {
|
|
1604
|
-
this.entityExcess += 1;
|
|
1605
|
-
this.trieIndex = (0, decode_js_1.determineBranch)(this.entityTrie, this.trieCurrent, this.trieIndex + 1, c);
|
|
1606
|
-
if (this.trieIndex < 0) {
|
|
1607
|
-
this.emitNamedEntity();
|
|
1608
|
-
this.index--;
|
|
1609
|
-
return;
|
|
1610
|
-
}
|
|
1611
|
-
this.trieCurrent = this.entityTrie[this.trieIndex];
|
|
1612
|
-
var masked = this.trieCurrent & decode_js_1.BinTrieFlags.VALUE_LENGTH;
|
|
1613
|
-
if (masked) {
|
|
1614
|
-
var valueLength = (masked >> 14) - 1;
|
|
1615
|
-
if (!this.allowLegacyEntity() && c !== CharCodes.Semi) {
|
|
1616
|
-
this.trieIndex += valueLength;
|
|
1617
|
-
} else {
|
|
1618
|
-
var entityStart = this.index - this.entityExcess + 1;
|
|
1619
|
-
if (entityStart > this.sectionStart) {
|
|
1620
|
-
this.emitPartial(this.sectionStart, entityStart);
|
|
1621
|
-
}
|
|
1622
|
-
this.entityResult = this.trieIndex;
|
|
1623
|
-
this.trieIndex += valueLength;
|
|
1624
|
-
this.entityExcess = 0;
|
|
1625
|
-
this.sectionStart = this.index + 1;
|
|
1626
|
-
if (valueLength === 0) {
|
|
1627
|
-
this.emitNamedEntity();
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
Tokenizer2.prototype.emitNamedEntity = function() {
|
|
1633
|
-
this.state = this.baseState;
|
|
1634
|
-
if (this.entityResult === 0) {
|
|
1635
|
-
return;
|
|
1636
|
-
}
|
|
1637
|
-
var valueLength = (this.entityTrie[this.entityResult] & decode_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1638
|
-
switch (valueLength) {
|
|
1639
|
-
case 1: {
|
|
1640
|
-
this.emitCodePoint(this.entityTrie[this.entityResult] & ~decode_js_1.BinTrieFlags.VALUE_LENGTH);
|
|
1641
|
-
break;
|
|
1642
|
-
}
|
|
1643
|
-
case 2: {
|
|
1644
|
-
this.emitCodePoint(this.entityTrie[this.entityResult + 1]);
|
|
1645
|
-
break;
|
|
1646
|
-
}
|
|
1647
|
-
case 3: {
|
|
1648
|
-
this.emitCodePoint(this.entityTrie[this.entityResult + 1]);
|
|
1649
|
-
this.emitCodePoint(this.entityTrie[this.entityResult + 2]);
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
};
|
|
1653
|
-
Tokenizer2.prototype.stateBeforeNumericEntity = function(c) {
|
|
1654
|
-
if ((c | 32) === CharCodes.LowerX) {
|
|
1655
|
-
this.entityExcess++;
|
|
1656
|
-
this.state = State.InHexEntity;
|
|
1657
|
-
} else {
|
|
1658
|
-
this.state = State.InNumericEntity;
|
|
1659
|
-
this.stateInNumericEntity(c);
|
|
1660
|
-
}
|
|
1569
|
+
Tokenizer2.prototype.startEntity = function() {
|
|
1570
|
+
this.baseState = this.state;
|
|
1571
|
+
this.state = State.InEntity;
|
|
1572
|
+
this.entityStart = this.index;
|
|
1573
|
+
this.entityDecoder.startEntity(this.xmlMode ? decode_js_1.DecodingMode.Strict : this.baseState === State.Text || this.baseState === State.InSpecialTag ? decode_js_1.DecodingMode.Legacy : decode_js_1.DecodingMode.Attribute);
|
|
1661
1574
|
};
|
|
1662
|
-
Tokenizer2.prototype.
|
|
1663
|
-
var
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
if (
|
|
1667
|
-
this.
|
|
1575
|
+
Tokenizer2.prototype.stateInEntity = function() {
|
|
1576
|
+
var length = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
|
1577
|
+
if (length >= 0) {
|
|
1578
|
+
this.state = this.baseState;
|
|
1579
|
+
if (length === 0) {
|
|
1580
|
+
this.index = this.entityStart;
|
|
1668
1581
|
}
|
|
1669
|
-
this.sectionStart = this.index + Number(strict);
|
|
1670
|
-
this.emitCodePoint((0, decode_js_1.replaceCodePoint)(this.entityResult));
|
|
1671
|
-
}
|
|
1672
|
-
this.state = this.baseState;
|
|
1673
|
-
};
|
|
1674
|
-
Tokenizer2.prototype.stateInNumericEntity = function(c) {
|
|
1675
|
-
if (c === CharCodes.Semi) {
|
|
1676
|
-
this.emitNumericEntity(true);
|
|
1677
|
-
} else if (isNumber(c)) {
|
|
1678
|
-
this.entityResult = this.entityResult * 10 + (c - CharCodes.Zero);
|
|
1679
|
-
this.entityExcess++;
|
|
1680
1582
|
} else {
|
|
1681
|
-
|
|
1682
|
-
this.emitNumericEntity(false);
|
|
1683
|
-
} else {
|
|
1684
|
-
this.state = this.baseState;
|
|
1685
|
-
}
|
|
1686
|
-
this.index--;
|
|
1583
|
+
this.index = this.offset + this.buffer.length - 1;
|
|
1687
1584
|
}
|
|
1688
1585
|
};
|
|
1689
|
-
Tokenizer2.prototype.stateInHexEntity = function(c) {
|
|
1690
|
-
if (c === CharCodes.Semi) {
|
|
1691
|
-
this.emitNumericEntity(true);
|
|
1692
|
-
} else if (isNumber(c)) {
|
|
1693
|
-
this.entityResult = this.entityResult * 16 + (c - CharCodes.Zero);
|
|
1694
|
-
this.entityExcess++;
|
|
1695
|
-
} else if (isHexDigit(c)) {
|
|
1696
|
-
this.entityResult = this.entityResult * 16 + ((c | 32) - CharCodes.LowerA + 10);
|
|
1697
|
-
this.entityExcess++;
|
|
1698
|
-
} else {
|
|
1699
|
-
if (this.allowLegacyEntity()) {
|
|
1700
|
-
this.emitNumericEntity(false);
|
|
1701
|
-
} else {
|
|
1702
|
-
this.state = this.baseState;
|
|
1703
|
-
}
|
|
1704
|
-
this.index--;
|
|
1705
|
-
}
|
|
1706
|
-
};
|
|
1707
|
-
Tokenizer2.prototype.allowLegacyEntity = function() {
|
|
1708
|
-
return !this.xmlMode && (this.baseState === State.Text || this.baseState === State.InSpecialTag);
|
|
1709
|
-
};
|
|
1710
1586
|
Tokenizer2.prototype.cleanup = function() {
|
|
1711
1587
|
if (this.running && this.sectionStart !== this.index) {
|
|
1712
1588
|
if (this.state === State.Text || this.state === State.InSpecialTag && this.sequenceIndex === 0) {
|
|
@@ -1821,68 +1697,54 @@ var require_Tokenizer = __commonJS({
|
|
|
1821
1697
|
this.stateInProcessingInstruction(c);
|
|
1822
1698
|
break;
|
|
1823
1699
|
}
|
|
1824
|
-
case State.
|
|
1825
|
-
this.
|
|
1700
|
+
case State.InEntity: {
|
|
1701
|
+
this.stateInEntity();
|
|
1826
1702
|
break;
|
|
1827
1703
|
}
|
|
1828
|
-
case State.BeforeEntity: {
|
|
1829
|
-
this.stateBeforeEntity(c);
|
|
1830
|
-
break;
|
|
1831
|
-
}
|
|
1832
|
-
case State.InHexEntity: {
|
|
1833
|
-
this.stateInHexEntity(c);
|
|
1834
|
-
break;
|
|
1835
|
-
}
|
|
1836
|
-
case State.InNumericEntity: {
|
|
1837
|
-
this.stateInNumericEntity(c);
|
|
1838
|
-
break;
|
|
1839
|
-
}
|
|
1840
|
-
default: {
|
|
1841
|
-
this.stateBeforeNumericEntity(c);
|
|
1842
|
-
}
|
|
1843
1704
|
}
|
|
1844
1705
|
this.index++;
|
|
1845
1706
|
}
|
|
1846
1707
|
this.cleanup();
|
|
1847
1708
|
};
|
|
1848
1709
|
Tokenizer2.prototype.finish = function() {
|
|
1849
|
-
if (this.state === State.
|
|
1850
|
-
this.
|
|
1851
|
-
|
|
1852
|
-
if (this.sectionStart < this.index) {
|
|
1853
|
-
this.handleTrailingData();
|
|
1710
|
+
if (this.state === State.InEntity) {
|
|
1711
|
+
this.entityDecoder.end();
|
|
1712
|
+
this.state = this.baseState;
|
|
1854
1713
|
}
|
|
1714
|
+
this.handleTrailingData();
|
|
1855
1715
|
this.cbs.onend();
|
|
1856
1716
|
};
|
|
1857
1717
|
Tokenizer2.prototype.handleTrailingData = function() {
|
|
1858
1718
|
var endIndex = this.buffer.length + this.offset;
|
|
1719
|
+
if (this.sectionStart >= endIndex) {
|
|
1720
|
+
return;
|
|
1721
|
+
}
|
|
1859
1722
|
if (this.state === State.InCommentLike) {
|
|
1860
1723
|
if (this.currentSequence === Sequences.CdataEnd) {
|
|
1861
1724
|
this.cbs.oncdata(this.sectionStart, endIndex, 0);
|
|
1862
1725
|
} else {
|
|
1863
1726
|
this.cbs.oncomment(this.sectionStart, endIndex, 0);
|
|
1864
1727
|
}
|
|
1865
|
-
} else if (this.state === State.InNumericEntity && this.allowLegacyEntity()) {
|
|
1866
|
-
this.emitNumericEntity(false);
|
|
1867
|
-
} else if (this.state === State.InHexEntity && this.allowLegacyEntity()) {
|
|
1868
|
-
this.emitNumericEntity(false);
|
|
1869
1728
|
} else if (this.state === State.InTagName || this.state === State.BeforeAttributeName || this.state === State.BeforeAttributeValue || this.state === State.AfterAttributeName || this.state === State.InAttributeName || this.state === State.InAttributeValueSq || this.state === State.InAttributeValueDq || this.state === State.InAttributeValueNq || this.state === State.InClosingTagName) {
|
|
1870
1729
|
} else {
|
|
1871
1730
|
this.cbs.ontext(this.sectionStart, endIndex);
|
|
1872
1731
|
}
|
|
1873
1732
|
};
|
|
1874
|
-
Tokenizer2.prototype.
|
|
1875
|
-
if (this.baseState !== State.Text && this.baseState !== State.InSpecialTag) {
|
|
1876
|
-
this.cbs.onattribdata(start, endIndex);
|
|
1877
|
-
} else {
|
|
1878
|
-
this.cbs.ontext(start, endIndex);
|
|
1879
|
-
}
|
|
1880
|
-
};
|
|
1881
|
-
Tokenizer2.prototype.emitCodePoint = function(cp) {
|
|
1733
|
+
Tokenizer2.prototype.emitCodePoint = function(cp, consumed) {
|
|
1882
1734
|
if (this.baseState !== State.Text && this.baseState !== State.InSpecialTag) {
|
|
1735
|
+
if (this.sectionStart < this.entityStart) {
|
|
1736
|
+
this.cbs.onattribdata(this.sectionStart, this.entityStart);
|
|
1737
|
+
}
|
|
1738
|
+
this.sectionStart = this.entityStart + consumed;
|
|
1739
|
+
this.index = this.sectionStart - 1;
|
|
1883
1740
|
this.cbs.onattribentity(cp);
|
|
1884
1741
|
} else {
|
|
1885
|
-
this.
|
|
1742
|
+
if (this.sectionStart < this.entityStart) {
|
|
1743
|
+
this.cbs.ontext(this.sectionStart, this.entityStart);
|
|
1744
|
+
}
|
|
1745
|
+
this.sectionStart = this.entityStart + consumed;
|
|
1746
|
+
this.index = this.sectionStart - 1;
|
|
1747
|
+
this.cbs.ontextentity(cp, this.sectionStart);
|
|
1886
1748
|
}
|
|
1887
1749
|
};
|
|
1888
1750
|
return Tokenizer2;
|
|
@@ -2045,15 +1907,16 @@ var require_Parser = __commonJS({
|
|
|
2045
1907
|
this.attribvalue = "";
|
|
2046
1908
|
this.attribs = null;
|
|
2047
1909
|
this.stack = [];
|
|
2048
|
-
this.foreignContext = [];
|
|
2049
1910
|
this.buffers = [];
|
|
2050
1911
|
this.bufferOffset = 0;
|
|
2051
1912
|
this.writeIndex = 0;
|
|
2052
1913
|
this.ended = false;
|
|
2053
1914
|
this.cbs = cbs !== null && cbs !== void 0 ? cbs : {};
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
1915
|
+
this.htmlMode = !this.options.xmlMode;
|
|
1916
|
+
this.lowerCaseTagNames = (_a = options.lowerCaseTags) !== null && _a !== void 0 ? _a : this.htmlMode;
|
|
1917
|
+
this.lowerCaseAttributeNames = (_b = options.lowerCaseAttributeNames) !== null && _b !== void 0 ? _b : this.htmlMode;
|
|
2056
1918
|
this.tokenizer = new ((_c = options.Tokenizer) !== null && _c !== void 0 ? _c : Tokenizer_js_1.default)(this.options, this);
|
|
1919
|
+
this.foreignContext = [!this.htmlMode];
|
|
2057
1920
|
(_e = (_d = this.cbs).onparserinit) === null || _e === void 0 ? void 0 : _e.call(_d, this);
|
|
2058
1921
|
}
|
|
2059
1922
|
Parser2.prototype.ontext = function(start, endIndex) {
|
|
@@ -2063,15 +1926,14 @@ var require_Parser = __commonJS({
|
|
|
2063
1926
|
(_b = (_a = this.cbs).ontext) === null || _b === void 0 ? void 0 : _b.call(_a, data);
|
|
2064
1927
|
this.startIndex = endIndex;
|
|
2065
1928
|
};
|
|
2066
|
-
Parser2.prototype.ontextentity = function(cp) {
|
|
1929
|
+
Parser2.prototype.ontextentity = function(cp, endIndex) {
|
|
2067
1930
|
var _a, _b;
|
|
2068
|
-
|
|
2069
|
-
this.endIndex = index - 1;
|
|
1931
|
+
this.endIndex = endIndex - 1;
|
|
2070
1932
|
(_b = (_a = this.cbs).ontext) === null || _b === void 0 ? void 0 : _b.call(_a, (0, decode_js_1.fromCodePoint)(cp));
|
|
2071
|
-
this.startIndex =
|
|
1933
|
+
this.startIndex = endIndex;
|
|
2072
1934
|
};
|
|
2073
1935
|
Parser2.prototype.isVoidElement = function(name) {
|
|
2074
|
-
return
|
|
1936
|
+
return this.htmlMode && voidElements.has(name);
|
|
2075
1937
|
};
|
|
2076
1938
|
Parser2.prototype.onopentagname = function(start, endIndex) {
|
|
2077
1939
|
this.endIndex = endIndex;
|
|
@@ -2085,19 +1947,21 @@ var require_Parser = __commonJS({
|
|
|
2085
1947
|
var _a, _b, _c, _d;
|
|
2086
1948
|
this.openTagStart = this.startIndex;
|
|
2087
1949
|
this.tagname = name;
|
|
2088
|
-
var impliesClose =
|
|
1950
|
+
var impliesClose = this.htmlMode && openImpliesClose.get(name);
|
|
2089
1951
|
if (impliesClose) {
|
|
2090
|
-
while (this.stack.length > 0 && impliesClose.has(this.stack[
|
|
2091
|
-
var element = this.stack.
|
|
1952
|
+
while (this.stack.length > 0 && impliesClose.has(this.stack[0])) {
|
|
1953
|
+
var element = this.stack.shift();
|
|
2092
1954
|
(_b = (_a = this.cbs).onclosetag) === null || _b === void 0 ? void 0 : _b.call(_a, element, true);
|
|
2093
1955
|
}
|
|
2094
1956
|
}
|
|
2095
1957
|
if (!this.isVoidElement(name)) {
|
|
2096
|
-
this.stack.
|
|
2097
|
-
if (
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
1958
|
+
this.stack.unshift(name);
|
|
1959
|
+
if (this.htmlMode) {
|
|
1960
|
+
if (foreignContextElements.has(name)) {
|
|
1961
|
+
this.foreignContext.unshift(true);
|
|
1962
|
+
} else if (htmlIntegrationElements.has(name)) {
|
|
1963
|
+
this.foreignContext.unshift(false);
|
|
1964
|
+
}
|
|
2101
1965
|
}
|
|
2102
1966
|
}
|
|
2103
1967
|
(_d = (_c = this.cbs).onopentagname) === null || _d === void 0 ? void 0 : _d.call(_c, name);
|
|
@@ -2122,39 +1986,36 @@ var require_Parser = __commonJS({
|
|
|
2122
1986
|
this.startIndex = endIndex + 1;
|
|
2123
1987
|
};
|
|
2124
1988
|
Parser2.prototype.onclosetag = function(start, endIndex) {
|
|
2125
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1989
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2126
1990
|
this.endIndex = endIndex;
|
|
2127
1991
|
var name = this.getSlice(start, endIndex);
|
|
2128
1992
|
if (this.lowerCaseTagNames) {
|
|
2129
1993
|
name = name.toLowerCase();
|
|
2130
1994
|
}
|
|
2131
|
-
if (foreignContextElements.has(name) || htmlIntegrationElements.has(name)) {
|
|
2132
|
-
this.foreignContext.
|
|
1995
|
+
if (this.htmlMode && (foreignContextElements.has(name) || htmlIntegrationElements.has(name))) {
|
|
1996
|
+
this.foreignContext.shift();
|
|
2133
1997
|
}
|
|
2134
1998
|
if (!this.isVoidElement(name)) {
|
|
2135
|
-
var pos = this.stack.
|
|
1999
|
+
var pos = this.stack.indexOf(name);
|
|
2136
2000
|
if (pos !== -1) {
|
|
2137
|
-
|
|
2138
|
-
var
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
} else
|
|
2143
|
-
this.stack.length = pos;
|
|
2144
|
-
} else if (!this.options.xmlMode && name === "p") {
|
|
2001
|
+
for (var index = 0; index <= pos; index++) {
|
|
2002
|
+
var element = this.stack.shift();
|
|
2003
|
+
(_b = (_a = this.cbs).onclosetag) === null || _b === void 0 ? void 0 : _b.call(_a, element, index !== pos);
|
|
2004
|
+
}
|
|
2005
|
+
} else if (this.htmlMode && name === "p") {
|
|
2145
2006
|
this.emitOpenTag("p");
|
|
2146
2007
|
this.closeCurrentTag(true);
|
|
2147
2008
|
}
|
|
2148
|
-
} else if (
|
|
2149
|
-
(
|
|
2150
|
-
(
|
|
2151
|
-
(
|
|
2009
|
+
} else if (this.htmlMode && name === "br") {
|
|
2010
|
+
(_d = (_c = this.cbs).onopentagname) === null || _d === void 0 ? void 0 : _d.call(_c, "br");
|
|
2011
|
+
(_f = (_e = this.cbs).onopentag) === null || _f === void 0 ? void 0 : _f.call(_e, "br", {}, true);
|
|
2012
|
+
(_h = (_g = this.cbs).onclosetag) === null || _h === void 0 ? void 0 : _h.call(_g, "br", false);
|
|
2152
2013
|
}
|
|
2153
2014
|
this.startIndex = endIndex + 1;
|
|
2154
2015
|
};
|
|
2155
2016
|
Parser2.prototype.onselfclosingtag = function(endIndex) {
|
|
2156
2017
|
this.endIndex = endIndex;
|
|
2157
|
-
if (this.options.
|
|
2018
|
+
if (this.options.recognizeSelfClosing || this.foreignContext[0]) {
|
|
2158
2019
|
this.closeCurrentTag(false);
|
|
2159
2020
|
this.startIndex = endIndex + 1;
|
|
2160
2021
|
} else {
|
|
@@ -2165,9 +2026,9 @@ var require_Parser = __commonJS({
|
|
|
2165
2026
|
var _a, _b;
|
|
2166
2027
|
var name = this.tagname;
|
|
2167
2028
|
this.endOpenTag(isOpenImplied);
|
|
2168
|
-
if (this.stack[
|
|
2029
|
+
if (this.stack[0] === name) {
|
|
2169
2030
|
(_b = (_a = this.cbs).onclosetag) === null || _b === void 0 ? void 0 : _b.call(_a, name, !isOpenImplied);
|
|
2170
|
-
this.stack.
|
|
2031
|
+
this.stack.shift();
|
|
2171
2032
|
}
|
|
2172
2033
|
};
|
|
2173
2034
|
Parser2.prototype.onattribname = function(start, endIndex) {
|
|
@@ -2227,7 +2088,7 @@ var require_Parser = __commonJS({
|
|
|
2227
2088
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2228
2089
|
this.endIndex = endIndex;
|
|
2229
2090
|
var value = this.getSlice(start, endIndex - offset2);
|
|
2230
|
-
if (this.
|
|
2091
|
+
if (!this.htmlMode || this.options.recognizeCDATA) {
|
|
2231
2092
|
(_b = (_a = this.cbs).oncdatastart) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2232
2093
|
(_d = (_c = this.cbs).ontext) === null || _d === void 0 ? void 0 : _d.call(_c, value);
|
|
2233
2094
|
(_f = (_e = this.cbs).oncdataend) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
@@ -2241,8 +2102,9 @@ var require_Parser = __commonJS({
|
|
|
2241
2102
|
var _a, _b;
|
|
2242
2103
|
if (this.cbs.onclosetag) {
|
|
2243
2104
|
this.endIndex = this.startIndex;
|
|
2244
|
-
for (var index =
|
|
2245
|
-
;
|
|
2105
|
+
for (var index = 0; index < this.stack.length; index++) {
|
|
2106
|
+
this.cbs.onclosetag(this.stack[index], true);
|
|
2107
|
+
}
|
|
2246
2108
|
}
|
|
2247
2109
|
(_b = (_a = this.cbs).onend) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2248
2110
|
};
|
|
@@ -2258,6 +2120,8 @@ var require_Parser = __commonJS({
|
|
|
2258
2120
|
this.endIndex = 0;
|
|
2259
2121
|
(_d = (_c = this.cbs).onparserinit) === null || _d === void 0 ? void 0 : _d.call(_c, this);
|
|
2260
2122
|
this.buffers.length = 0;
|
|
2123
|
+
this.foreignContext.length = 0;
|
|
2124
|
+
this.foreignContext.unshift(!this.htmlMode);
|
|
2261
2125
|
this.bufferOffset = 0;
|
|
2262
2126
|
this.writeIndex = 0;
|
|
2263
2127
|
this.ended = false;
|
|
@@ -3094,7 +2958,7 @@ var require_lib4 = __commonJS({
|
|
|
3094
2958
|
EncodingMode2[EncodingMode2["Attribute"] = 3] = "Attribute";
|
|
3095
2959
|
EncodingMode2[EncodingMode2["Text"] = 4] = "Text";
|
|
3096
2960
|
})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));
|
|
3097
|
-
function
|
|
2961
|
+
function decode2(data, options) {
|
|
3098
2962
|
if (options === void 0) {
|
|
3099
2963
|
options = EntityLevel.XML;
|
|
3100
2964
|
}
|
|
@@ -3105,7 +2969,7 @@ var require_lib4 = __commonJS({
|
|
|
3105
2969
|
}
|
|
3106
2970
|
return (0, decode_js_1.decodeXML)(data);
|
|
3107
2971
|
}
|
|
3108
|
-
exports.decode =
|
|
2972
|
+
exports.decode = decode2;
|
|
3109
2973
|
function decodeStrict(data, options) {
|
|
3110
2974
|
var _a;
|
|
3111
2975
|
if (options === void 0) {
|
|
@@ -3113,7 +2977,7 @@ var require_lib4 = __commonJS({
|
|
|
3113
2977
|
}
|
|
3114
2978
|
var opts = typeof options === "number" ? { level: options } : options;
|
|
3115
2979
|
(_a = opts.mode) !== null && _a !== void 0 ? _a : opts.mode = decode_js_1.DecodingMode.Strict;
|
|
3116
|
-
return
|
|
2980
|
+
return decode2(data, opts);
|
|
3117
2981
|
}
|
|
3118
2982
|
exports.decodeStrict = decodeStrict;
|
|
3119
2983
|
function encode(data, options) {
|
|
@@ -4284,7 +4148,7 @@ var require_lib7 = __commonJS({
|
|
|
4284
4148
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4285
4149
|
};
|
|
4286
4150
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4287
|
-
exports.DomUtils = exports.parseFeed = exports.getFeed = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.parseDOM = exports.parseDocument = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;
|
|
4151
|
+
exports.DomUtils = exports.parseFeed = exports.getFeed = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.createDocumentStream = exports.parseDOM = exports.parseDocument = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;
|
|
4288
4152
|
var Parser_js_1 = require_Parser();
|
|
4289
4153
|
var Parser_js_2 = require_Parser();
|
|
4290
4154
|
Object.defineProperty(exports, "Parser", { enumerable: true, get: function() {
|
|
@@ -4308,6 +4172,13 @@ var require_lib7 = __commonJS({
|
|
|
4308
4172
|
return parseDocument(data, options).children;
|
|
4309
4173
|
}
|
|
4310
4174
|
exports.parseDOM = parseDOM;
|
|
4175
|
+
function createDocumentStream(callback, options, elementCallback) {
|
|
4176
|
+
var handler = new domhandler_1.DomHandler(function(error) {
|
|
4177
|
+
return callback(error, handler.root);
|
|
4178
|
+
}, options, elementCallback);
|
|
4179
|
+
return new Parser_js_1.Parser(handler, options);
|
|
4180
|
+
}
|
|
4181
|
+
exports.createDocumentStream = createDocumentStream;
|
|
4311
4182
|
function createDomStream(callback, options, elementCallback) {
|
|
4312
4183
|
var handler = new domhandler_1.DomHandler(callback, options, elementCallback);
|
|
4313
4184
|
return new Parser_js_1.Parser(handler, options);
|
|
@@ -6164,7 +6035,7 @@ var require_style_to_object = __commonJS({
|
|
|
6164
6035
|
var require_utilities2 = __commonJS({
|
|
6165
6036
|
"node_modules/style-to-js/cjs/utilities.js"(exports) {
|
|
6166
6037
|
"use strict";
|
|
6167
|
-
exports
|
|
6038
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6168
6039
|
exports.camelCase = void 0;
|
|
6169
6040
|
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
6170
6041
|
var HYPHEN_REGEX = /-([a-z])/g;
|
|
@@ -6206,7 +6077,7 @@ var require_cjs = __commonJS({
|
|
|
6206
6077
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6207
6078
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
6208
6079
|
};
|
|
6209
|
-
exports
|
|
6080
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6210
6081
|
var style_to_object_1 = __importDefault(require_style_to_object());
|
|
6211
6082
|
var utilities_1 = require_utilities2();
|
|
6212
6083
|
function StyleToJS(style, options) {
|
|
@@ -6214,14 +6085,14 @@ var require_cjs = __commonJS({
|
|
|
6214
6085
|
if (!style || typeof style !== "string") {
|
|
6215
6086
|
return output;
|
|
6216
6087
|
}
|
|
6217
|
-
(0, style_to_object_1
|
|
6088
|
+
(0, style_to_object_1.default)(style, function(property, value) {
|
|
6218
6089
|
if (property && value) {
|
|
6219
6090
|
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
6220
6091
|
}
|
|
6221
6092
|
});
|
|
6222
6093
|
return output;
|
|
6223
6094
|
}
|
|
6224
|
-
exports
|
|
6095
|
+
exports.default = StyleToJS;
|
|
6225
6096
|
}
|
|
6226
6097
|
});
|
|
6227
6098
|
|
|
@@ -6235,13 +6106,11 @@ var require_utilities3 = __commonJS({
|
|
|
6235
6106
|
if (!obj || typeof obj !== "object") {
|
|
6236
6107
|
throw new TypeError("First argument must be an object");
|
|
6237
6108
|
}
|
|
6238
|
-
var key;
|
|
6239
|
-
var value;
|
|
6240
6109
|
var isOverridePresent = typeof override === "function";
|
|
6241
6110
|
var overrides = {};
|
|
6242
6111
|
var result = {};
|
|
6243
|
-
for (key in obj) {
|
|
6244
|
-
value = obj[key];
|
|
6112
|
+
for (var key in obj) {
|
|
6113
|
+
var value = obj[key];
|
|
6245
6114
|
if (isOverridePresent) {
|
|
6246
6115
|
overrides = override(key, value);
|
|
6247
6116
|
if (overrides && overrides.length === 2) {
|
|
@@ -6255,37 +6124,38 @@ var require_utilities3 = __commonJS({
|
|
|
6255
6124
|
}
|
|
6256
6125
|
return result;
|
|
6257
6126
|
}
|
|
6127
|
+
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
6128
|
+
"annotation-xml",
|
|
6129
|
+
"color-profile",
|
|
6130
|
+
"font-face",
|
|
6131
|
+
"font-face-src",
|
|
6132
|
+
"font-face-uri",
|
|
6133
|
+
"font-face-format",
|
|
6134
|
+
"font-face-name",
|
|
6135
|
+
"missing-glyph"
|
|
6136
|
+
]);
|
|
6258
6137
|
function isCustomComponent(tagName, props) {
|
|
6259
6138
|
if (tagName.indexOf("-") === -1) {
|
|
6260
6139
|
return props && typeof props.is === "string";
|
|
6261
6140
|
}
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
case "color-profile":
|
|
6265
|
-
case "font-face":
|
|
6266
|
-
case "font-face-src":
|
|
6267
|
-
case "font-face-uri":
|
|
6268
|
-
case "font-face-format":
|
|
6269
|
-
case "font-face-name":
|
|
6270
|
-
case "missing-glyph":
|
|
6271
|
-
return false;
|
|
6272
|
-
default:
|
|
6273
|
-
return true;
|
|
6141
|
+
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName)) {
|
|
6142
|
+
return false;
|
|
6274
6143
|
}
|
|
6144
|
+
return true;
|
|
6275
6145
|
}
|
|
6276
|
-
var
|
|
6146
|
+
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
6277
6147
|
function setStyleProp(style, props) {
|
|
6278
6148
|
if (style === null || style === void 0) {
|
|
6279
6149
|
return;
|
|
6280
6150
|
}
|
|
6281
6151
|
try {
|
|
6282
|
-
props.style = styleToJS(style,
|
|
6152
|
+
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
6283
6153
|
} catch (err) {
|
|
6284
6154
|
props.style = {};
|
|
6285
6155
|
}
|
|
6286
6156
|
}
|
|
6287
6157
|
var PRESERVE_CUSTOM_ATTRIBUTES = React2.version.split(".")[0] >= 16;
|
|
6288
|
-
var
|
|
6158
|
+
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
6289
6159
|
"tr",
|
|
6290
6160
|
"tbody",
|
|
6291
6161
|
"thead",
|
|
@@ -6297,15 +6167,19 @@ var require_utilities3 = __commonJS({
|
|
|
6297
6167
|
"frameset"
|
|
6298
6168
|
]);
|
|
6299
6169
|
function canTextBeChildOfNode(node) {
|
|
6300
|
-
return !
|
|
6170
|
+
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node.name);
|
|
6171
|
+
}
|
|
6172
|
+
function returnFirstArg(arg) {
|
|
6173
|
+
return arg;
|
|
6301
6174
|
}
|
|
6302
6175
|
module2.exports = {
|
|
6303
6176
|
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
6177
|
+
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
6304
6178
|
invertObject,
|
|
6305
6179
|
isCustomComponent,
|
|
6306
6180
|
setStyleProp,
|
|
6307
6181
|
canTextBeChildOfNode,
|
|
6308
|
-
|
|
6182
|
+
returnFirstArg
|
|
6309
6183
|
};
|
|
6310
6184
|
}
|
|
6311
6185
|
});
|
|
@@ -6383,12 +6257,13 @@ var require_dom_to_react = __commonJS({
|
|
|
6383
6257
|
options = options || {};
|
|
6384
6258
|
var library = options.library || React2;
|
|
6385
6259
|
var cloneElement = library.cloneElement;
|
|
6386
|
-
var
|
|
6260
|
+
var createElement2 = library.createElement;
|
|
6387
6261
|
var isValidElement = library.isValidElement;
|
|
6388
6262
|
var result = [];
|
|
6389
6263
|
var node;
|
|
6390
6264
|
var isWhitespace;
|
|
6391
6265
|
var hasReplace = typeof options.replace === "function";
|
|
6266
|
+
var transform = options.transform || utilities.returnFirstArg;
|
|
6392
6267
|
var replaceElement;
|
|
6393
6268
|
var props;
|
|
6394
6269
|
var children;
|
|
@@ -6403,7 +6278,7 @@ var require_dom_to_react = __commonJS({
|
|
|
6403
6278
|
key: replaceElement.key || i
|
|
6404
6279
|
});
|
|
6405
6280
|
}
|
|
6406
|
-
result.push(replaceElement);
|
|
6281
|
+
result.push(transform(replaceElement, node, i));
|
|
6407
6282
|
continue;
|
|
6408
6283
|
}
|
|
6409
6284
|
}
|
|
@@ -6415,7 +6290,7 @@ var require_dom_to_react = __commonJS({
|
|
|
6415
6290
|
if (trim && isWhitespace) {
|
|
6416
6291
|
continue;
|
|
6417
6292
|
}
|
|
6418
|
-
result.push(node.data);
|
|
6293
|
+
result.push(transform(node.data, node, i));
|
|
6419
6294
|
continue;
|
|
6420
6295
|
}
|
|
6421
6296
|
props = node.attribs;
|
|
@@ -6447,7 +6322,7 @@ var require_dom_to_react = __commonJS({
|
|
|
6447
6322
|
if (len > 1) {
|
|
6448
6323
|
props.key = i;
|
|
6449
6324
|
}
|
|
6450
|
-
result.push(
|
|
6325
|
+
result.push(transform(createElement2(node.name, props, children), node, i));
|
|
6451
6326
|
}
|
|
6452
6327
|
return result.length === 1 ? result[0] : result;
|
|
6453
6328
|
}
|
|
@@ -56700,15 +56575,17 @@ var import_lib = __toESM(require_lib10(), 1);
|
|
|
56700
56575
|
var es_default = import_lib.default;
|
|
56701
56576
|
|
|
56702
56577
|
// components/src/asciidoc/Listing.tsx
|
|
56578
|
+
var import_html_entities = require("html-entities");
|
|
56703
56579
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
56704
56580
|
var Listing = ({ node }) => {
|
|
56705
56581
|
const document2 = node.getDocument();
|
|
56706
56582
|
const attrs = node.getAttributes();
|
|
56707
56583
|
const nowrap = node.isOption("nowrap") || !document2.hasAttribute("prewrap");
|
|
56708
56584
|
const content = (0, import_react_asciidoc2.useGetContent)(node);
|
|
56585
|
+
const decodedContent = (0, import_html_entities.decode)(content) || content;
|
|
56709
56586
|
if (node.getStyle() === "source") {
|
|
56710
56587
|
const lang = attrs.language;
|
|
56711
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "listingblock", children: [
|
|
56588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "listingblock", ...(0, import_react_asciidoc2.getLineNumber)(node), children: [
|
|
56712
56589
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_asciidoc2.CaptionedTitle, { node }),
|
|
56713
56590
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "content", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("pre", { className: (0, import_classnames.default)("highlight", nowrap ? " nowrap" : ""), children: lang ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
56714
56591
|
"code",
|
|
@@ -56716,696 +56593,813 @@ var Listing = ({ node }) => {
|
|
|
56716
56593
|
className: lang ? `language-${lang}` : "",
|
|
56717
56594
|
"data-lang": lang,
|
|
56718
56595
|
dangerouslySetInnerHTML: {
|
|
56719
|
-
__html: es_default.getLanguage(lang) ? es_default.highlight(
|
|
56596
|
+
__html: es_default.getLanguage(lang) ? es_default.highlight(decodedContent, { language: lang }).value : decodedContent
|
|
56720
56597
|
}
|
|
56721
56598
|
}
|
|
56722
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("code", { dangerouslySetInnerHTML: { __html:
|
|
56599
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("code", { dangerouslySetInnerHTML: { __html: decodedContent } }) }) })
|
|
56723
56600
|
] });
|
|
56724
56601
|
} else {
|
|
56725
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "listingblock", children: [
|
|
56602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "listingblock", ...(0, import_react_asciidoc2.getLineNumber)(node), children: [
|
|
56726
56603
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_asciidoc2.CaptionedTitle, { node }),
|
|
56727
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "content", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("pre", { className: nowrap ? " nowrap" : "", children:
|
|
56604
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "content", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("pre", { className: nowrap ? " nowrap" : "", children: node.getSource() }) })
|
|
56728
56605
|
] });
|
|
56729
56606
|
}
|
|
56730
56607
|
};
|
|
56731
56608
|
var Listing_default = Listing;
|
|
56732
56609
|
|
|
56733
|
-
//
|
|
56734
|
-
var import_react_asciidoc3 = require("@oxide/react-asciidoc");
|
|
56610
|
+
// icons/react/Access24Icon.tsx
|
|
56735
56611
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
56736
|
-
var Table = ({ node }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "table-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_asciidoc3.Table, { node }) });
|
|
56737
|
-
var Table_default = Table;
|
|
56738
|
-
|
|
56739
|
-
// components/src/asciidoc/index.ts
|
|
56740
|
-
var AsciiDocBlocks = {
|
|
56741
|
-
Admonition: Admonition_default,
|
|
56742
|
-
Listing: Listing_default,
|
|
56743
|
-
Table: Table_default
|
|
56744
|
-
};
|
|
56745
56612
|
|
|
56746
|
-
//
|
|
56747
|
-
var import_classnames2 = __toESM(require_classnames());
|
|
56613
|
+
// icons/react/Action24Icon.tsx
|
|
56748
56614
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
56749
|
-
var badgeColors = {
|
|
56750
|
-
default: {
|
|
56751
|
-
default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
|
|
56752
|
-
destructive: `ring-1 ring-inset bg-destructive-secondary text-destructive ring-[rgba(var(--base-red-800-rgb),0.15)]`,
|
|
56753
|
-
notice: `ring-1 ring-inset bg-notice-secondary text-notice ring-[rgba(var(--base-yellow-800-rgb),0.15)]`,
|
|
56754
|
-
neutral: `ring-1 ring-inset bg-secondary text-secondary ring-[rgba(var(--base-neutral-700-rgb),0.15)]`,
|
|
56755
|
-
purple: `ring-1 ring-inset bg-[var(--base-purple-200)] text-[var(--base-purple-700)] ring-[rgba(var(--base-purple-800-rgb),0.15)]`,
|
|
56756
|
-
blue: `ring-1 ring-inset bg-info-secondary text-info ring-[rgba(var(--base-blue-800-rgb),0.15)]`
|
|
56757
|
-
},
|
|
56758
|
-
solid: {
|
|
56759
|
-
default: "bg-accent text-inverse",
|
|
56760
|
-
destructive: "bg-destructive text-inverse",
|
|
56761
|
-
notice: "bg-notice text-inverse",
|
|
56762
|
-
neutral: "bg-inverse-tertiary text-inverse",
|
|
56763
|
-
purple: "bg-[var(--base-purple-700)] text-inverse",
|
|
56764
|
-
blue: "bg-info text-inverse"
|
|
56765
|
-
}
|
|
56766
|
-
};
|
|
56767
|
-
var Badge = ({
|
|
56768
|
-
className,
|
|
56769
|
-
children,
|
|
56770
|
-
color = "default",
|
|
56771
|
-
variant = "default"
|
|
56772
|
-
}) => {
|
|
56773
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
56774
|
-
"span",
|
|
56775
|
-
{
|
|
56776
|
-
className: (0, import_classnames2.default)(
|
|
56777
|
-
"ox-badge",
|
|
56778
|
-
`variant-${variant}`,
|
|
56779
|
-
"inline-flex h-4 items-center whitespace-nowrap rounded-sm px-[3px] py-[1px] uppercase text-mono-sm",
|
|
56780
|
-
badgeColors[variant][color],
|
|
56781
|
-
className
|
|
56782
|
-
),
|
|
56783
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children })
|
|
56784
|
-
}
|
|
56785
|
-
);
|
|
56786
|
-
};
|
|
56787
56615
|
|
|
56788
|
-
//
|
|
56789
|
-
var import_classnames3 = __toESM(require_classnames());
|
|
56790
|
-
var import_react = require("react");
|
|
56616
|
+
// icons/react/AddRoundel24Icon.tsx
|
|
56791
56617
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
56792
|
-
var buttonSizes = ["sm", "icon", "base"];
|
|
56793
|
-
var variants = ["primary", "secondary", "ghost", "danger"];
|
|
56794
|
-
var sizeStyle = {
|
|
56795
|
-
sm: "h-8 px-3 text-mono-sm svg:w-4",
|
|
56796
|
-
// meant for buttons that only contain a single icon
|
|
56797
|
-
icon: "h-8 w-8 text-mono-sm svg:w-4",
|
|
56798
|
-
base: "h-10 px-4 text-mono-sm svg:w-5"
|
|
56799
|
-
};
|
|
56800
|
-
var buttonStyle = ({
|
|
56801
|
-
size: size2 = "base",
|
|
56802
|
-
variant = "primary"
|
|
56803
|
-
} = {}) => {
|
|
56804
|
-
return (0, import_classnames3.default)(
|
|
56805
|
-
"ox-button inline-flex items-center justify-center rounded align-top elevation-1 disabled:cursor-not-allowed",
|
|
56806
|
-
`btn-${variant}`,
|
|
56807
|
-
sizeStyle[size2],
|
|
56808
|
-
variant === "danger" ? "focus:outline-destructive-secondary" : "focus:outline-accent-secondary"
|
|
56809
|
-
);
|
|
56810
|
-
};
|
|
56811
|
-
var noop = (e) => {
|
|
56812
|
-
e.stopPropagation();
|
|
56813
|
-
e.preventDefault();
|
|
56814
|
-
};
|
|
56815
|
-
var Button = (0, import_react.forwardRef)(
|
|
56816
|
-
({
|
|
56817
|
-
type = "button",
|
|
56818
|
-
children,
|
|
56819
|
-
size: size2,
|
|
56820
|
-
variant,
|
|
56821
|
-
className,
|
|
56822
|
-
loading,
|
|
56823
|
-
innerClassName,
|
|
56824
|
-
disabled,
|
|
56825
|
-
onClick,
|
|
56826
|
-
// needs to be a spread because we sometimes get passed arbitrary <button>
|
|
56827
|
-
// props by the parent
|
|
56828
|
-
...rest
|
|
56829
|
-
}, ref) => {
|
|
56830
|
-
const isDisabled = disabled || loading;
|
|
56831
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
56832
|
-
"button",
|
|
56833
|
-
{
|
|
56834
|
-
className: (0, import_classnames3.default)(buttonStyle({ size: size2, variant }), className, {
|
|
56835
|
-
"visually-disabled": isDisabled
|
|
56836
|
-
}),
|
|
56837
|
-
ref,
|
|
56838
|
-
type,
|
|
56839
|
-
onMouseDown: isDisabled ? noop : void 0,
|
|
56840
|
-
onClick: isDisabled ? noop : onClick,
|
|
56841
|
-
"aria-disabled": isDisabled,
|
|
56842
|
-
...rest,
|
|
56843
|
-
children: [
|
|
56844
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Spinner, { className: "absolute", variant }),
|
|
56845
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: (0, import_classnames3.default)("flex items-center", innerClassName, { invisible: loading }), children })
|
|
56846
|
-
]
|
|
56847
|
-
}
|
|
56848
|
-
);
|
|
56849
|
-
}
|
|
56850
|
-
);
|
|
56851
56618
|
|
|
56852
|
-
//
|
|
56853
|
-
var import_classnames4 = __toESM(require_classnames());
|
|
56854
|
-
var import_react2 = require("react");
|
|
56619
|
+
// icons/react/Calendar24Icon.tsx
|
|
56855
56620
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
56856
|
-
var spinnerSizes = ["base", "lg"];
|
|
56857
|
-
var spinnerVariants = ["primary", "secondary", "ghost", "danger"];
|
|
56858
|
-
var Spinner = ({
|
|
56859
|
-
className,
|
|
56860
|
-
size: size2 = "base",
|
|
56861
|
-
variant = "primary"
|
|
56862
|
-
}) => {
|
|
56863
|
-
const frameSize = size2 === "lg" ? 36 : 12;
|
|
56864
|
-
const center = size2 === "lg" ? 18 : 6;
|
|
56865
|
-
const radius = size2 === "lg" ? 16 : 5;
|
|
56866
|
-
const strokeWidth = size2 === "lg" ? 3 : 2;
|
|
56867
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
56868
|
-
"svg",
|
|
56869
|
-
{
|
|
56870
|
-
width: frameSize,
|
|
56871
|
-
height: frameSize,
|
|
56872
|
-
viewBox: `0 0 ${frameSize + " " + frameSize}`,
|
|
56873
|
-
fill: "none",
|
|
56874
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
56875
|
-
"aria-labelledby": "Spinner",
|
|
56876
|
-
className: (0, import_classnames4.default)("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
|
|
56877
|
-
children: [
|
|
56878
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
56879
|
-
"circle",
|
|
56880
|
-
{
|
|
56881
|
-
fill: "none",
|
|
56882
|
-
className: "bg",
|
|
56883
|
-
strokeWidth,
|
|
56884
|
-
strokeLinecap: "round",
|
|
56885
|
-
cx: center,
|
|
56886
|
-
cy: center,
|
|
56887
|
-
r: radius,
|
|
56888
|
-
strokeOpacity: 0.2
|
|
56889
|
-
}
|
|
56890
|
-
),
|
|
56891
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
56892
|
-
"circle",
|
|
56893
|
-
{
|
|
56894
|
-
className: "path",
|
|
56895
|
-
fill: "none",
|
|
56896
|
-
stroke: "currentColor",
|
|
56897
|
-
strokeWidth,
|
|
56898
|
-
strokeLinecap: "round",
|
|
56899
|
-
cx: center,
|
|
56900
|
-
cy: center,
|
|
56901
|
-
r: radius
|
|
56902
|
-
}
|
|
56903
|
-
)
|
|
56904
|
-
]
|
|
56905
|
-
}
|
|
56906
|
-
);
|
|
56907
|
-
};
|
|
56908
|
-
var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
|
|
56909
|
-
const [isVisible, setIsVisible] = (0, import_react2.useState)(isLoading);
|
|
56910
|
-
const hideTimeout = (0, import_react2.useRef)(null);
|
|
56911
|
-
const loadingStartTime = (0, import_react2.useRef)(0);
|
|
56912
|
-
(0, import_react2.useEffect)(() => {
|
|
56913
|
-
if (isLoading) {
|
|
56914
|
-
setIsVisible(true);
|
|
56915
|
-
loadingStartTime.current = Date.now();
|
|
56916
|
-
} else {
|
|
56917
|
-
if (hideTimeout.current)
|
|
56918
|
-
clearTimeout(hideTimeout.current);
|
|
56919
|
-
const elapsedTime = Date.now() - loadingStartTime.current;
|
|
56920
|
-
const remainingTime = Math.max(0, minTime - elapsedTime);
|
|
56921
|
-
if (remainingTime === 0) {
|
|
56922
|
-
setIsVisible(false);
|
|
56923
|
-
} else {
|
|
56924
|
-
hideTimeout.current = setTimeout(() => setIsVisible(false), remainingTime);
|
|
56925
|
-
}
|
|
56926
|
-
}
|
|
56927
|
-
return () => {
|
|
56928
|
-
if (hideTimeout.current)
|
|
56929
|
-
clearTimeout(hideTimeout.current);
|
|
56930
|
-
};
|
|
56931
|
-
}, [isLoading, minTime]);
|
|
56932
|
-
return isVisible ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, {}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children });
|
|
56933
|
-
};
|
|
56934
56621
|
|
|
56935
|
-
//
|
|
56936
|
-
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
56937
|
-
var import_classnames5 = __toESM(require_classnames());
|
|
56622
|
+
// icons/react/Chat24Icon.tsx
|
|
56938
56623
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
56939
|
-
var Tabs = {
|
|
56940
|
-
Root: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_tabs.Root, { ...props, className: (0, import_classnames5.default)("ox-tabs", className) }),
|
|
56941
|
-
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_tabs.Trigger, { ...props, className: (0, import_classnames5.default)("ox-tab", className), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { children }) }),
|
|
56942
|
-
List: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_tabs.List, { ...props, className: (0, import_classnames5.default)("ox-tabs-list", className) }),
|
|
56943
|
-
Content: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_tabs.Content, { ...props, className: (0, import_classnames5.default)("ox-tabs-panel", className) })
|
|
56944
|
-
};
|
|
56945
56624
|
|
|
56946
|
-
// icons/react/
|
|
56625
|
+
// icons/react/Clipboard24Icon.tsx
|
|
56947
56626
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
56948
56627
|
|
|
56949
|
-
// icons/react/
|
|
56628
|
+
// icons/react/Cloud24Icon.tsx
|
|
56950
56629
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
56951
56630
|
|
|
56952
|
-
// icons/react/
|
|
56631
|
+
// icons/react/Compatibility24Icon.tsx
|
|
56953
56632
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
56954
56633
|
|
|
56955
|
-
// icons/react/
|
|
56634
|
+
// icons/react/Contrast24Icon.tsx
|
|
56956
56635
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
56957
56636
|
|
|
56958
|
-
// icons/react/
|
|
56637
|
+
// icons/react/Cpu24Icon.tsx
|
|
56959
56638
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
56960
56639
|
|
|
56961
|
-
// icons/react/
|
|
56640
|
+
// icons/react/Delete24Icon.tsx
|
|
56962
56641
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
56963
56642
|
|
|
56964
|
-
// icons/react/
|
|
56643
|
+
// icons/react/Dislike24Icon.tsx
|
|
56965
56644
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
56966
56645
|
|
|
56967
|
-
// icons/react/
|
|
56646
|
+
// icons/react/Document24Icon.tsx
|
|
56968
56647
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
56969
56648
|
|
|
56970
|
-
// icons/react/
|
|
56649
|
+
// icons/react/Dots24Icon.tsx
|
|
56971
56650
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
56972
56651
|
|
|
56973
|
-
// icons/react/
|
|
56652
|
+
// icons/react/Download24Icon.tsx
|
|
56974
56653
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
56975
56654
|
|
|
56976
|
-
// icons/react/
|
|
56655
|
+
// icons/react/Email24Icon.tsx
|
|
56977
56656
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
56978
56657
|
|
|
56979
|
-
// icons/react/
|
|
56658
|
+
// icons/react/Error24Icon.tsx
|
|
56980
56659
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
56981
56660
|
|
|
56982
|
-
// icons/react/
|
|
56661
|
+
// icons/react/Firewall24Icon.tsx
|
|
56983
56662
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
56984
56663
|
|
|
56985
|
-
// icons/react/
|
|
56664
|
+
// icons/react/Folder24Icon.tsx
|
|
56986
56665
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
56987
56666
|
|
|
56988
|
-
// icons/react/
|
|
56667
|
+
// icons/react/Gateway24Icon.tsx
|
|
56989
56668
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
56990
56669
|
|
|
56991
|
-
// icons/react/
|
|
56670
|
+
// icons/react/Heart24Icon.tsx
|
|
56992
56671
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
56993
56672
|
|
|
56994
|
-
// icons/react/
|
|
56673
|
+
// icons/react/Hide24Icon.tsx
|
|
56995
56674
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
56996
56675
|
|
|
56997
|
-
// icons/react/
|
|
56676
|
+
// icons/react/Hourglass24Icon.tsx
|
|
56998
56677
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
56999
56678
|
|
|
57000
|
-
// icons/react/
|
|
56679
|
+
// icons/react/Images24Icon.tsx
|
|
57001
56680
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
57002
56681
|
|
|
57003
|
-
// icons/react/
|
|
56682
|
+
// icons/react/Info24Icon.tsx
|
|
57004
56683
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
57005
56684
|
|
|
57006
|
-
// icons/react/
|
|
56685
|
+
// icons/react/Instances24Icon.tsx
|
|
57007
56686
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
57008
56687
|
|
|
57009
|
-
// icons/react/
|
|
56688
|
+
// icons/react/IpGlobal24Icon.tsx
|
|
57010
56689
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
57011
56690
|
|
|
57012
|
-
// icons/react/
|
|
56691
|
+
// icons/react/IpLocal24Icon.tsx
|
|
57013
56692
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
57014
56693
|
|
|
57015
|
-
// icons/react/
|
|
56694
|
+
// icons/react/Issues24Icon.tsx
|
|
57016
56695
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
57017
56696
|
|
|
57018
|
-
// icons/react/
|
|
56697
|
+
// icons/react/Key24Icon.tsx
|
|
57019
56698
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
57020
56699
|
|
|
57021
|
-
// icons/react/
|
|
56700
|
+
// icons/react/Like24Icon.tsx
|
|
57022
56701
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
57023
56702
|
|
|
57024
|
-
// icons/react/
|
|
56703
|
+
// icons/react/LoadBalancer24Icon.tsx
|
|
57025
56704
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
57026
56705
|
|
|
57027
|
-
// icons/react/
|
|
56706
|
+
// icons/react/Location24Icon.tsx
|
|
57028
56707
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
57029
56708
|
|
|
57030
|
-
// icons/react/
|
|
56709
|
+
// icons/react/Logs24Icon.tsx
|
|
57031
56710
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
57032
56711
|
|
|
57033
|
-
// icons/react/
|
|
56712
|
+
// icons/react/Metrics24Icon.tsx
|
|
57034
56713
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
57035
56714
|
|
|
57036
|
-
// icons/react/Like24Icon.tsx
|
|
57037
|
-
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
57038
|
-
|
|
57039
|
-
// icons/react/LoadBalancer24Icon.tsx
|
|
57040
|
-
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
57041
|
-
|
|
57042
|
-
// icons/react/Location24Icon.tsx
|
|
57043
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
57044
|
-
|
|
57045
|
-
// icons/react/Logs24Icon.tsx
|
|
57046
|
-
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
57047
|
-
|
|
57048
56715
|
// icons/react/Networking24Icon.tsx
|
|
57049
|
-
var
|
|
56716
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
57050
56717
|
|
|
57051
56718
|
// icons/react/Organization24Icon.tsx
|
|
57052
|
-
var
|
|
56719
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
57053
56720
|
|
|
57054
56721
|
// icons/react/Overview24Icon.tsx
|
|
57055
|
-
var
|
|
56722
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
57056
56723
|
|
|
57057
56724
|
// icons/react/Person24Icon.tsx
|
|
57058
|
-
var
|
|
56725
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
57059
56726
|
|
|
57060
56727
|
// icons/react/PersonGroup24Icon.tsx
|
|
57061
|
-
var
|
|
56728
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
57062
56729
|
|
|
57063
56730
|
// icons/react/Progress24Icon.tsx
|
|
57064
|
-
var
|
|
56731
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
57065
56732
|
|
|
57066
56733
|
// icons/react/Prohibited24Icon.tsx
|
|
57067
|
-
var
|
|
56734
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
57068
56735
|
|
|
57069
56736
|
// icons/react/Router24Icon.tsx
|
|
57070
|
-
var
|
|
56737
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
57071
56738
|
|
|
57072
56739
|
// icons/react/Safety24Icon.tsx
|
|
57073
|
-
var
|
|
56740
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
57074
56741
|
|
|
57075
56742
|
// icons/react/Security24Icon.tsx
|
|
57076
|
-
var
|
|
56743
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
57077
56744
|
|
|
57078
56745
|
// icons/react/Racks24Icon.tsx
|
|
57079
|
-
var
|
|
56746
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
57080
56747
|
|
|
57081
56748
|
// icons/react/Settings24Icon.tsx
|
|
57082
|
-
var
|
|
56749
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
57083
56750
|
|
|
57084
56751
|
// icons/react/Snapshots24Icon.tsx
|
|
57085
|
-
var
|
|
56752
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
57086
56753
|
|
|
57087
56754
|
// icons/react/SoftwareUpdate24Icon.tsx
|
|
57088
|
-
var
|
|
56755
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
57089
56756
|
|
|
57090
56757
|
// icons/react/Speaker24Icon.tsx
|
|
57091
|
-
var
|
|
56758
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
57092
56759
|
|
|
57093
56760
|
// icons/react/Storage24Icon.tsx
|
|
57094
|
-
var
|
|
56761
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
57095
56762
|
|
|
57096
56763
|
// icons/react/Subnet24Icon.tsx
|
|
57097
|
-
var
|
|
56764
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
57098
56765
|
|
|
57099
56766
|
// icons/react/Resize24Icon.tsx
|
|
57100
|
-
var
|
|
56767
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
57101
56768
|
|
|
57102
56769
|
// icons/react/Terminal24Icon.tsx
|
|
57103
|
-
var
|
|
56770
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
57104
56771
|
|
|
57105
56772
|
// icons/react/Transmit24Icon.tsx
|
|
57106
|
-
var
|
|
56773
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
57107
56774
|
|
|
57108
56775
|
// icons/react/Wireless24Icon.tsx
|
|
57109
|
-
var
|
|
56776
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
57110
56777
|
|
|
57111
56778
|
// icons/react/Access16Icon.tsx
|
|
57112
|
-
var
|
|
56779
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
57113
56780
|
|
|
57114
56781
|
// icons/react/Action16Icon.tsx
|
|
57115
|
-
var
|
|
56782
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
57116
56783
|
|
|
57117
56784
|
// icons/react/AddRoundel16Icon.tsx
|
|
57118
|
-
var
|
|
56785
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
57119
56786
|
|
|
57120
56787
|
// icons/react/Calendar16Icon.tsx
|
|
57121
|
-
var
|
|
56788
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
57122
56789
|
|
|
57123
56790
|
// icons/react/Chat16Icon.tsx
|
|
57124
|
-
var
|
|
56791
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
57125
56792
|
|
|
57126
56793
|
// icons/react/Clipboard16Icon.tsx
|
|
57127
|
-
var
|
|
56794
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
57128
56795
|
|
|
57129
56796
|
// icons/react/Cloud16Icon.tsx
|
|
57130
|
-
var
|
|
56797
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
57131
56798
|
|
|
57132
56799
|
// icons/react/Close16Icon.tsx
|
|
57133
|
-
var
|
|
56800
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
57134
56801
|
|
|
57135
56802
|
// icons/react/Compability16Icon.tsx
|
|
57136
|
-
var
|
|
56803
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
57137
56804
|
|
|
57138
56805
|
// icons/react/Contrast16Icon.tsx
|
|
57139
|
-
var
|
|
56806
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
57140
56807
|
|
|
57141
56808
|
// icons/react/Cpu16Icon.tsx
|
|
57142
|
-
var
|
|
56809
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
57143
56810
|
|
|
57144
56811
|
// icons/react/Delete16Icon.tsx
|
|
57145
|
-
var
|
|
56812
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
57146
56813
|
|
|
57147
56814
|
// icons/react/Dislike16Icon.tsx
|
|
57148
|
-
var
|
|
56815
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
57149
56816
|
|
|
57150
56817
|
// icons/react/Document16Icon.tsx
|
|
57151
|
-
var
|
|
56818
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
57152
56819
|
|
|
57153
56820
|
// icons/react/Dots16Icon.tsx
|
|
57154
|
-
var
|
|
56821
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
57155
56822
|
|
|
57156
56823
|
// icons/react/DownloadRoundel16Icon.tsx
|
|
57157
|
-
var
|
|
56824
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
57158
56825
|
|
|
57159
56826
|
// icons/react/Edit16Icon.tsx
|
|
57160
|
-
var
|
|
56827
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
57161
56828
|
|
|
57162
56829
|
// icons/react/Email16Icon.tsx
|
|
57163
|
-
var
|
|
56830
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
57164
56831
|
|
|
57165
56832
|
// icons/react/Error16Icon.tsx
|
|
57166
|
-
var
|
|
56833
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
57167
56834
|
|
|
57168
56835
|
// icons/react/Firewall16Icon.tsx
|
|
57169
|
-
var
|
|
56836
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
57170
56837
|
|
|
57171
56838
|
// icons/react/Folder16Icon.tsx
|
|
57172
|
-
var
|
|
56839
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
57173
56840
|
|
|
57174
56841
|
// icons/react/Gateway16Icon.tsx
|
|
57175
|
-
var
|
|
56842
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
57176
56843
|
|
|
57177
56844
|
// icons/react/Heart16Icon.tsx
|
|
57178
|
-
var
|
|
56845
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
57179
56846
|
|
|
57180
56847
|
// icons/react/Hide16Icon.tsx
|
|
57181
|
-
var
|
|
56848
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
57182
56849
|
|
|
57183
56850
|
// icons/react/Hourglass16Icon.tsx
|
|
57184
|
-
var
|
|
56851
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
57185
56852
|
|
|
57186
56853
|
// icons/react/Images16Icon.tsx
|
|
57187
|
-
var
|
|
56854
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
57188
56855
|
|
|
57189
56856
|
// icons/react/Info16Icon.tsx
|
|
57190
|
-
var
|
|
56857
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
57191
56858
|
|
|
57192
56859
|
// icons/react/Instances16Icon.tsx
|
|
57193
|
-
var
|
|
56860
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
57194
56861
|
|
|
57195
56862
|
// icons/react/Integration16Icon.tsx
|
|
57196
|
-
var
|
|
56863
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
57197
56864
|
|
|
57198
56865
|
// icons/react/IpGlobal16Icon.tsx
|
|
57199
|
-
var
|
|
56866
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
57200
56867
|
|
|
57201
56868
|
// icons/react/IpLocal16Icon.tsx
|
|
57202
|
-
var
|
|
56869
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
57203
56870
|
|
|
57204
56871
|
// icons/react/Issues16Icon.tsx
|
|
57205
|
-
var
|
|
56872
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
57206
56873
|
|
|
57207
56874
|
// icons/react/Key16Icon.tsx
|
|
57208
|
-
var
|
|
56875
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
57209
56876
|
|
|
57210
56877
|
// icons/react/Like16Icon.tsx
|
|
57211
|
-
var
|
|
56878
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
57212
56879
|
|
|
57213
56880
|
// icons/react/Link16Icon.tsx
|
|
57214
|
-
var
|
|
56881
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
56882
|
+
var Link16Icon = ({ title, titleId, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
56883
|
+
"svg",
|
|
56884
|
+
{
|
|
56885
|
+
width: 16,
|
|
56886
|
+
height: 16,
|
|
56887
|
+
viewBox: "0 0 16 16",
|
|
56888
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
56889
|
+
role: "img",
|
|
56890
|
+
"aria-labelledby": titleId,
|
|
56891
|
+
...props,
|
|
56892
|
+
children: [
|
|
56893
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("title", { id: titleId, children: title }) : null,
|
|
56894
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("g", { fill: "currentColor", children: [
|
|
56895
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", { d: "m6.586 12.243 1.59-1.591a.75.75 0 0 1 1.061 0l.354.353a.75.75 0 0 1 0 1.06L8 13.658A4 4 0 0 1 2.343 8l1.591-1.591a.75.75 0 0 1 1.06 0l.354.354a.75.75 0 0 1 0 1.06l-1.59 1.591a2 2 0 1 0 2.828 2.829ZM12.066 9.591a.75.75 0 0 1-1.06 0l-.354-.354a.75.75 0 0 1 0-1.06l1.59-1.591a2 2 0 1 0-2.828-2.829l-1.59 1.591a.75.75 0 0 1-1.061 0l-.354-.353a.75.75 0 0 1 0-1.06L8 2.342A4 4 0 0 1 13.657 8l-1.591 1.591Z" }),
|
|
56896
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", { d: "M9.945 5.702a.75.75 0 0 0-1.061 0L5.702 8.884a.75.75 0 0 0 0 1.06l.353.354a.75.75 0 0 0 1.061 0l3.182-3.182a.75.75 0 0 0 0-1.06l-.353-.354Z" })
|
|
56897
|
+
] })
|
|
56898
|
+
]
|
|
56899
|
+
}
|
|
56900
|
+
);
|
|
56901
|
+
var Link16Icon_default = Link16Icon;
|
|
57215
56902
|
|
|
57216
56903
|
// icons/react/LoadBalancer16Icon.tsx
|
|
57217
|
-
var
|
|
56904
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
57218
56905
|
|
|
57219
56906
|
// icons/react/Logs16Icon.tsx
|
|
57220
|
-
var
|
|
56907
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
57221
56908
|
|
|
57222
56909
|
// icons/react/Metrics16Icon.tsx
|
|
57223
|
-
var
|
|
56910
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
57224
56911
|
|
|
57225
56912
|
// icons/react/Networking16Icon.tsx
|
|
57226
|
-
var
|
|
56913
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
57227
56914
|
|
|
57228
56915
|
// icons/react/NewWindow16Icon.tsx
|
|
57229
|
-
var
|
|
56916
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
57230
56917
|
|
|
57231
56918
|
// icons/react/Notifications16Icon.tsx
|
|
57232
|
-
var
|
|
56919
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
57233
56920
|
|
|
57234
56921
|
// icons/react/Organization16Icon.tsx
|
|
57235
|
-
var
|
|
56922
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
57236
56923
|
|
|
57237
56924
|
// icons/react/Overview16Icon.tsx
|
|
57238
|
-
var
|
|
56925
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
57239
56926
|
|
|
57240
56927
|
// icons/react/Person16Icon.tsx
|
|
57241
|
-
var
|
|
56928
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
57242
56929
|
|
|
57243
56930
|
// icons/react/PersonGroup16Icon.tsx
|
|
57244
|
-
var
|
|
56931
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
57245
56932
|
|
|
57246
56933
|
// icons/react/Profile16Icon.tsx
|
|
57247
|
-
var
|
|
56934
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
57248
56935
|
|
|
57249
56936
|
// icons/react/Refresh16Icon.tsx
|
|
57250
|
-
var
|
|
56937
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
57251
56938
|
|
|
57252
56939
|
// icons/react/Ram16Icon.tsx
|
|
57253
|
-
var
|
|
56940
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
57254
56941
|
|
|
57255
56942
|
// icons/react/Repair16Icon.tsx
|
|
57256
|
-
var
|
|
56943
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
57257
56944
|
|
|
57258
56945
|
// icons/react/Resize16Icon.tsx
|
|
57259
|
-
var
|
|
56946
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
57260
56947
|
|
|
57261
56948
|
// icons/react/Router16Icon.tsx
|
|
57262
|
-
var
|
|
56949
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
57263
56950
|
|
|
57264
56951
|
// icons/react/Search16Icon.tsx
|
|
57265
|
-
var
|
|
56952
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
57266
56953
|
|
|
57267
56954
|
// icons/react/Security16Icon.tsx
|
|
57268
|
-
var
|
|
56955
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
57269
56956
|
|
|
57270
56957
|
// icons/react/Servers16Icon.tsx
|
|
57271
|
-
var
|
|
56958
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
57272
56959
|
|
|
57273
56960
|
// icons/react/Settings16Icon.tsx
|
|
57274
|
-
var
|
|
56961
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
57275
56962
|
|
|
57276
56963
|
// icons/react/Show16Icon.tsx
|
|
57277
|
-
var
|
|
56964
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
57278
56965
|
|
|
57279
56966
|
// icons/react/Snapshots16Icon.tsx
|
|
57280
|
-
var
|
|
56967
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
57281
56968
|
|
|
57282
56969
|
// icons/react/SoftwareUpdate16Icon.tsx
|
|
57283
|
-
var
|
|
56970
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
57284
56971
|
|
|
57285
56972
|
// icons/react/Ssd16Icon.tsx
|
|
57286
|
-
var
|
|
56973
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
57287
56974
|
|
|
57288
56975
|
// icons/react/Storage16Icon.tsx
|
|
57289
|
-
var
|
|
56976
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
57290
56977
|
|
|
57291
56978
|
// icons/react/Subnet16Icon.tsx
|
|
57292
|
-
var
|
|
56979
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
57293
56980
|
|
|
57294
56981
|
// icons/react/Tags16Icon.tsx
|
|
57295
|
-
var
|
|
56982
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
57296
56983
|
|
|
57297
56984
|
// icons/react/Terminal16Icon.tsx
|
|
57298
|
-
var
|
|
56985
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
57299
56986
|
|
|
57300
56987
|
// icons/react/Time16Icon.tsx
|
|
57301
|
-
var
|
|
56988
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
57302
56989
|
|
|
57303
56990
|
// icons/react/Transmit16Icon.tsx
|
|
57304
|
-
var
|
|
56991
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
57305
56992
|
|
|
57306
56993
|
// icons/react/Add12Icon.tsx
|
|
57307
|
-
var
|
|
56994
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
57308
56995
|
|
|
57309
56996
|
// icons/react/AddRoundel12Icon.tsx
|
|
57310
|
-
var
|
|
56997
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
57311
56998
|
|
|
57312
56999
|
// icons/react/Checkmark12Icon.tsx
|
|
57313
|
-
var
|
|
57000
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
57314
57001
|
var Checkmark12Icon = ({
|
|
57315
57002
|
title,
|
|
57316
57003
|
titleId,
|
|
57317
57004
|
...props
|
|
57318
|
-
}) => /* @__PURE__ */ (0,
|
|
57319
|
-
|
|
57320
|
-
|
|
57321
|
-
|
|
57005
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
57006
|
+
"svg",
|
|
57007
|
+
{
|
|
57008
|
+
width: 12,
|
|
57009
|
+
height: 12,
|
|
57010
|
+
viewBox: "0 0 12 12",
|
|
57011
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57012
|
+
role: "img",
|
|
57013
|
+
"aria-labelledby": titleId,
|
|
57014
|
+
...props,
|
|
57015
|
+
children: [
|
|
57016
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("title", { id: titleId, children: title }) : null,
|
|
57017
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
57018
|
+
"path",
|
|
57019
|
+
{
|
|
57020
|
+
fillRule: "evenodd",
|
|
57021
|
+
clipRule: "evenodd",
|
|
57022
|
+
d: "M10.492 2.651c.28.242.31.665.067.944L5.447 9.463a.667.667 0 0 1-.974.035L1.475 6.516a.667.667 0 0 1 0-.946l.237-.235a.667.667 0 0 1 .94 0l2.24 2.226L9.3 2.501a.667.667 0 0 1 .938-.068l.253.218Z",
|
|
57023
|
+
fill: "currentColor"
|
|
57024
|
+
}
|
|
57025
|
+
)
|
|
57026
|
+
]
|
|
57027
|
+
}
|
|
57028
|
+
);
|
|
57322
57029
|
var Checkmark12Icon_default = Checkmark12Icon;
|
|
57323
57030
|
|
|
57324
57031
|
// icons/react/Close12Icon.tsx
|
|
57325
|
-
var
|
|
57032
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
57326
57033
|
|
|
57327
57034
|
// icons/react/DirectionRightIcon.tsx
|
|
57328
|
-
var
|
|
57035
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
57329
57036
|
|
|
57330
57037
|
// icons/react/DirectionUpIcon.tsx
|
|
57331
|
-
var
|
|
57038
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
57332
57039
|
|
|
57333
57040
|
// icons/react/DirectionDownIcon.tsx
|
|
57334
|
-
var
|
|
57041
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
57335
57042
|
|
|
57336
57043
|
// icons/react/DirectionLeftIcon.tsx
|
|
57337
|
-
var
|
|
57044
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
57338
57045
|
|
|
57339
57046
|
// icons/react/Clipboard12Icon.tsx
|
|
57340
|
-
var
|
|
57047
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
57341
57048
|
|
|
57342
57049
|
// icons/react/Disabled12Icon.tsx
|
|
57343
|
-
var
|
|
57050
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
57344
57051
|
|
|
57345
57052
|
// icons/react/Error12Icon.tsx
|
|
57346
|
-
var
|
|
57053
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
57347
57054
|
|
|
57348
57055
|
// icons/react/Filter12Icon.tsx
|
|
57349
|
-
var
|
|
57056
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
57350
57057
|
|
|
57351
57058
|
// icons/react/Key12Icon.tsx
|
|
57352
|
-
var
|
|
57059
|
+
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
57353
57060
|
|
|
57354
57061
|
// icons/react/Loader12Icon.tsx
|
|
57355
|
-
var
|
|
57062
|
+
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
57356
57063
|
|
|
57357
57064
|
// icons/react/More12Icon.tsx
|
|
57358
|
-
var
|
|
57065
|
+
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
57359
57066
|
|
|
57360
57067
|
// icons/react/NextArrow12Icon.tsx
|
|
57361
|
-
var
|
|
57068
|
+
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
57362
57069
|
|
|
57363
57070
|
// icons/react/PrevArrow12Icon.tsx
|
|
57364
|
-
var
|
|
57071
|
+
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
57365
57072
|
|
|
57366
57073
|
// icons/react/OpenLink12Icon.tsx
|
|
57367
|
-
var
|
|
57074
|
+
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
57368
57075
|
|
|
57369
57076
|
// icons/react/Repair12Icon.tsx
|
|
57370
|
-
var
|
|
57077
|
+
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
57371
57078
|
|
|
57372
57079
|
// icons/react/Security12Icon.tsx
|
|
57373
|
-
var
|
|
57080
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
57374
57081
|
|
|
57375
57082
|
// icons/react/Success12Icon.tsx
|
|
57376
|
-
var
|
|
57083
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
57377
57084
|
|
|
57378
57085
|
// icons/react/Unauthorized12Icon.tsx
|
|
57379
|
-
var
|
|
57086
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
57380
57087
|
|
|
57381
57088
|
// icons/react/Warning12Icon.tsx
|
|
57382
|
-
var
|
|
57089
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
57383
57090
|
|
|
57384
57091
|
// icons/react/Question12Icon.tsx
|
|
57385
|
-
var
|
|
57092
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
57386
57093
|
|
|
57387
57094
|
// icons/react/Hide12Icon.tsx
|
|
57388
|
-
var
|
|
57095
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
57389
57096
|
|
|
57390
57097
|
// icons/react/SelectArrows6Icon.tsx
|
|
57391
|
-
var
|
|
57098
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
57392
57099
|
var SelectArrows6Icon = ({
|
|
57393
57100
|
title,
|
|
57394
57101
|
titleId,
|
|
57395
57102
|
...props
|
|
57396
|
-
}) => /* @__PURE__ */ (0,
|
|
57397
|
-
|
|
57398
|
-
|
|
57399
|
-
|
|
57103
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
|
|
57104
|
+
"svg",
|
|
57105
|
+
{
|
|
57106
|
+
width: 6,
|
|
57107
|
+
height: 14,
|
|
57108
|
+
viewBox: "0 0 6 14",
|
|
57109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57110
|
+
role: "img",
|
|
57111
|
+
"aria-labelledby": titleId,
|
|
57112
|
+
...props,
|
|
57113
|
+
children: [
|
|
57114
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("title", { id: titleId, children: title }) : null,
|
|
57115
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
57116
|
+
"path",
|
|
57117
|
+
{
|
|
57118
|
+
fillRule: "evenodd",
|
|
57119
|
+
clipRule: "evenodd",
|
|
57120
|
+
d: "M3.322.536a.375.375 0 0 0-.644 0L.341 4.432C.19 4.682.37 5 .662 5h4.676a.375.375 0 0 0 .321-.568L3.322.536Zm-.644 12.928a.375.375 0 0 0 .644 0l2.337-3.896A.375.375 0 0 0 5.338 9H.662a.375.375 0 0 0-.321.568l2.337 3.896Z",
|
|
57121
|
+
fill: "currentColor"
|
|
57122
|
+
}
|
|
57123
|
+
)
|
|
57124
|
+
]
|
|
57125
|
+
}
|
|
57126
|
+
);
|
|
57400
57127
|
var SelectArrows6Icon_default = SelectArrows6Icon;
|
|
57401
57128
|
|
|
57402
57129
|
// icons/react/Close8Icon.tsx
|
|
57130
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
57131
|
+
|
|
57132
|
+
// components/src/asciidoc/Section.tsx
|
|
57133
|
+
var import_react_asciidoc3 = require("@oxide/react-asciidoc");
|
|
57134
|
+
var import_classnames2 = __toESM(require_classnames());
|
|
57135
|
+
var import_react2 = require("react");
|
|
57136
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
57137
|
+
var Section = ({ node }) => {
|
|
57138
|
+
const docAttrs = node.getDocument().getAttributes();
|
|
57139
|
+
const level = node.getLevel();
|
|
57140
|
+
let title = "";
|
|
57141
|
+
let sectNum = node.getSectionNumeral();
|
|
57142
|
+
sectNum = sectNum === "." ? "" : sectNum;
|
|
57143
|
+
const sectNumLevels = docAttrs["sectnumlevels"] ? parseInt(docAttrs["sectnumlevels"]) : 3;
|
|
57144
|
+
if (node.getCaption()) {
|
|
57145
|
+
title = node.getCaptionedTitle();
|
|
57146
|
+
} else if (node.isNumbered() && level <= sectNumLevels) {
|
|
57147
|
+
if (level < 2 && node.getDocument().getDoctype() === "book") {
|
|
57148
|
+
const sectionName = node.getSectionName();
|
|
57149
|
+
if (sectionName === "chapter") {
|
|
57150
|
+
const signifier = docAttrs["chapter-signifier"];
|
|
57151
|
+
title = `${signifier || ""} ${sectNum} ${node.getTitle()}`;
|
|
57152
|
+
} else if (sectionName === "part") {
|
|
57153
|
+
const signifier = docAttrs["part-signifier"];
|
|
57154
|
+
title = `${signifier || ""} ${sectNum} ${node.getTitle()}`;
|
|
57155
|
+
} else {
|
|
57156
|
+
title = `${node.getTitle()}`;
|
|
57157
|
+
}
|
|
57158
|
+
} else {
|
|
57159
|
+
title = `${node.getTitle()}`;
|
|
57160
|
+
}
|
|
57161
|
+
} else {
|
|
57162
|
+
title = node.getTitle() || "";
|
|
57163
|
+
}
|
|
57164
|
+
title = /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_jsx_runtime151.Fragment, { children: [
|
|
57165
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("a", { className: "anchor", id: node.getId() || "", "aria-hidden": true }),
|
|
57166
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("a", { className: "link group", href: `#${node.getId()}`, children: [
|
|
57167
|
+
html_react_parser_default(title),
|
|
57168
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Link16Icon_default, { className: "text-accent-secondary hidden group-hover:inline-block ml-2" })
|
|
57169
|
+
] })
|
|
57170
|
+
] });
|
|
57171
|
+
if (level === 0) {
|
|
57172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_jsx_runtime151.Fragment, { children: [
|
|
57173
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("h1", { className: (0, import_classnames2.default)("sect0", (0, import_react_asciidoc3.getRole)(node)), "data-sectnum": sectNum, children: title }),
|
|
57174
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_react_asciidoc3.Content, { blocks: node.getBlocks() })
|
|
57175
|
+
] });
|
|
57176
|
+
} else {
|
|
57177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: (0, import_classnames2.default)(`sect${level}`, (0, import_react_asciidoc3.getRole)(node)), children: [
|
|
57178
|
+
(0, import_react2.createElement)(`h${level + 1}`, { "data-sectnum": sectNum }, title),
|
|
57179
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { className: "sectionbody", children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_react_asciidoc3.Content, { blocks: node.getBlocks() }) })
|
|
57180
|
+
] });
|
|
57181
|
+
}
|
|
57182
|
+
};
|
|
57183
|
+
var Section_default = Section;
|
|
57184
|
+
|
|
57185
|
+
// components/src/asciidoc/Table.tsx
|
|
57186
|
+
var import_react_asciidoc4 = require("@oxide/react-asciidoc");
|
|
57187
|
+
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
57188
|
+
var Table = ({ node }) => /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "table-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(import_react_asciidoc4.Table, { node }) });
|
|
57189
|
+
var Table_default = Table;
|
|
57190
|
+
|
|
57191
|
+
// components/src/asciidoc/index.ts
|
|
57192
|
+
var AsciiDocBlocks = {
|
|
57193
|
+
Admonition: Admonition_default,
|
|
57194
|
+
Listing: Listing_default,
|
|
57195
|
+
Table: Table_default,
|
|
57196
|
+
Section: Section_default
|
|
57197
|
+
};
|
|
57198
|
+
|
|
57199
|
+
// components/src/ui/badge/Badge.tsx
|
|
57200
|
+
var import_classnames3 = __toESM(require_classnames());
|
|
57201
|
+
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
57202
|
+
var badgeColors = {
|
|
57203
|
+
default: {
|
|
57204
|
+
default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
|
|
57205
|
+
destructive: `ring-1 ring-inset bg-destructive-secondary text-destructive ring-[rgba(var(--base-red-800-rgb),0.15)]`,
|
|
57206
|
+
notice: `ring-1 ring-inset bg-notice-secondary text-notice ring-[rgba(var(--base-yellow-800-rgb),0.15)]`,
|
|
57207
|
+
neutral: `ring-1 ring-inset bg-secondary text-secondary ring-[rgba(var(--base-neutral-700-rgb),0.15)]`,
|
|
57208
|
+
purple: `ring-1 ring-inset bg-[var(--base-purple-200)] text-[var(--base-purple-700)] ring-[rgba(var(--base-purple-800-rgb),0.15)]`,
|
|
57209
|
+
blue: `ring-1 ring-inset bg-info-secondary text-info ring-[rgba(var(--base-blue-800-rgb),0.15)]`
|
|
57210
|
+
},
|
|
57211
|
+
solid: {
|
|
57212
|
+
default: "bg-accent text-inverse",
|
|
57213
|
+
destructive: "bg-destructive text-inverse",
|
|
57214
|
+
notice: "bg-notice text-inverse",
|
|
57215
|
+
neutral: "bg-inverse-tertiary text-inverse",
|
|
57216
|
+
purple: "bg-[var(--base-purple-700)] text-inverse",
|
|
57217
|
+
blue: "bg-info text-inverse"
|
|
57218
|
+
}
|
|
57219
|
+
};
|
|
57220
|
+
var Badge = ({
|
|
57221
|
+
className,
|
|
57222
|
+
children,
|
|
57223
|
+
color = "default",
|
|
57224
|
+
variant = "default"
|
|
57225
|
+
}) => {
|
|
57226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
|
|
57227
|
+
"span",
|
|
57228
|
+
{
|
|
57229
|
+
className: (0, import_classnames3.default)(
|
|
57230
|
+
"ox-badge",
|
|
57231
|
+
`variant-${variant}`,
|
|
57232
|
+
"inline-flex h-4 items-center whitespace-nowrap rounded-sm px-[3px] py-[1px] uppercase text-mono-sm",
|
|
57233
|
+
badgeColors[variant][color],
|
|
57234
|
+
className
|
|
57235
|
+
),
|
|
57236
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { children })
|
|
57237
|
+
}
|
|
57238
|
+
);
|
|
57239
|
+
};
|
|
57240
|
+
|
|
57241
|
+
// components/src/ui/button/Button.tsx
|
|
57242
|
+
var import_classnames4 = __toESM(require_classnames());
|
|
57243
|
+
var import_react3 = require("react");
|
|
57403
57244
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
57245
|
+
var buttonSizes = ["sm", "icon", "base"];
|
|
57246
|
+
var variants = ["primary", "secondary", "ghost", "danger"];
|
|
57247
|
+
var sizeStyle = {
|
|
57248
|
+
sm: "h-8 px-3 text-mono-sm svg:w-4",
|
|
57249
|
+
// meant for buttons that only contain a single icon
|
|
57250
|
+
icon: "h-8 w-8 text-mono-sm svg:w-4",
|
|
57251
|
+
base: "h-10 px-4 text-mono-sm svg:w-5"
|
|
57252
|
+
};
|
|
57253
|
+
var buttonStyle = ({
|
|
57254
|
+
size: size2 = "base",
|
|
57255
|
+
variant = "primary"
|
|
57256
|
+
} = {}) => {
|
|
57257
|
+
return (0, import_classnames4.default)(
|
|
57258
|
+
"ox-button inline-flex items-center justify-center rounded align-top elevation-1 disabled:cursor-not-allowed",
|
|
57259
|
+
`btn-${variant}`,
|
|
57260
|
+
sizeStyle[size2],
|
|
57261
|
+
variant === "danger" ? "focus:outline-destructive-secondary" : "focus:outline-accent-secondary"
|
|
57262
|
+
);
|
|
57263
|
+
};
|
|
57264
|
+
var noop = (e) => {
|
|
57265
|
+
e.stopPropagation();
|
|
57266
|
+
e.preventDefault();
|
|
57267
|
+
};
|
|
57268
|
+
var Button = (0, import_react3.forwardRef)(
|
|
57269
|
+
({
|
|
57270
|
+
type = "button",
|
|
57271
|
+
children,
|
|
57272
|
+
size: size2,
|
|
57273
|
+
variant,
|
|
57274
|
+
className,
|
|
57275
|
+
loading,
|
|
57276
|
+
innerClassName,
|
|
57277
|
+
disabled,
|
|
57278
|
+
onClick,
|
|
57279
|
+
// needs to be a spread because we sometimes get passed arbitrary <button>
|
|
57280
|
+
// props by the parent
|
|
57281
|
+
...rest
|
|
57282
|
+
}, ref) => {
|
|
57283
|
+
const isDisabled = disabled || loading;
|
|
57284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
|
|
57285
|
+
"button",
|
|
57286
|
+
{
|
|
57287
|
+
className: (0, import_classnames4.default)(buttonStyle({ size: size2, variant }), className, {
|
|
57288
|
+
"visually-disabled": isDisabled
|
|
57289
|
+
}),
|
|
57290
|
+
ref,
|
|
57291
|
+
type,
|
|
57292
|
+
onMouseDown: isDisabled ? noop : void 0,
|
|
57293
|
+
onClick: isDisabled ? noop : onClick,
|
|
57294
|
+
"aria-disabled": isDisabled,
|
|
57295
|
+
...rest,
|
|
57296
|
+
children: [
|
|
57297
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Spinner, { className: "absolute", variant }),
|
|
57298
|
+
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: (0, import_classnames4.default)("flex items-center", innerClassName, { invisible: loading }), children })
|
|
57299
|
+
]
|
|
57300
|
+
}
|
|
57301
|
+
);
|
|
57302
|
+
}
|
|
57303
|
+
);
|
|
57404
57304
|
|
|
57405
|
-
// components/src/ui/
|
|
57406
|
-
var
|
|
57305
|
+
// components/src/ui/spinner/Spinner.tsx
|
|
57306
|
+
var import_classnames5 = __toESM(require_classnames());
|
|
57307
|
+
var import_react4 = require("react");
|
|
57407
57308
|
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
57408
|
-
var
|
|
57309
|
+
var spinnerSizes = ["base", "lg"];
|
|
57310
|
+
var spinnerVariants = ["primary", "secondary", "ghost", "danger"];
|
|
57311
|
+
var Spinner = ({
|
|
57312
|
+
className,
|
|
57313
|
+
size: size2 = "base",
|
|
57314
|
+
variant = "primary"
|
|
57315
|
+
}) => {
|
|
57316
|
+
const frameSize = size2 === "lg" ? 36 : 12;
|
|
57317
|
+
const center = size2 === "lg" ? 18 : 6;
|
|
57318
|
+
const radius = size2 === "lg" ? 16 : 5;
|
|
57319
|
+
const strokeWidth = size2 === "lg" ? 3 : 2;
|
|
57320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(
|
|
57321
|
+
"svg",
|
|
57322
|
+
{
|
|
57323
|
+
width: frameSize,
|
|
57324
|
+
height: frameSize,
|
|
57325
|
+
viewBox: `0 0 ${frameSize + " " + frameSize}`,
|
|
57326
|
+
fill: "none",
|
|
57327
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57328
|
+
"aria-labelledby": "Spinner",
|
|
57329
|
+
className: (0, import_classnames5.default)("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
|
|
57330
|
+
children: [
|
|
57331
|
+
/* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
57332
|
+
"circle",
|
|
57333
|
+
{
|
|
57334
|
+
fill: "none",
|
|
57335
|
+
className: "bg",
|
|
57336
|
+
strokeWidth,
|
|
57337
|
+
strokeLinecap: "round",
|
|
57338
|
+
cx: center,
|
|
57339
|
+
cy: center,
|
|
57340
|
+
r: radius,
|
|
57341
|
+
strokeOpacity: 0.2
|
|
57342
|
+
}
|
|
57343
|
+
),
|
|
57344
|
+
/* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
57345
|
+
"circle",
|
|
57346
|
+
{
|
|
57347
|
+
className: "path",
|
|
57348
|
+
fill: "none",
|
|
57349
|
+
stroke: "currentColor",
|
|
57350
|
+
strokeWidth,
|
|
57351
|
+
strokeLinecap: "round",
|
|
57352
|
+
cx: center,
|
|
57353
|
+
cy: center,
|
|
57354
|
+
r: radius
|
|
57355
|
+
}
|
|
57356
|
+
)
|
|
57357
|
+
]
|
|
57358
|
+
}
|
|
57359
|
+
);
|
|
57360
|
+
};
|
|
57361
|
+
var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
|
|
57362
|
+
const [isVisible, setIsVisible] = (0, import_react4.useState)(isLoading);
|
|
57363
|
+
const hideTimeout = (0, import_react4.useRef)(null);
|
|
57364
|
+
const loadingStartTime = (0, import_react4.useRef)(0);
|
|
57365
|
+
(0, import_react4.useEffect)(() => {
|
|
57366
|
+
if (isLoading) {
|
|
57367
|
+
setIsVisible(true);
|
|
57368
|
+
loadingStartTime.current = Date.now();
|
|
57369
|
+
} else {
|
|
57370
|
+
if (hideTimeout.current)
|
|
57371
|
+
clearTimeout(hideTimeout.current);
|
|
57372
|
+
const elapsedTime = Date.now() - loadingStartTime.current;
|
|
57373
|
+
const remainingTime = Math.max(0, minTime - elapsedTime);
|
|
57374
|
+
if (remainingTime === 0) {
|
|
57375
|
+
setIsVisible(false);
|
|
57376
|
+
} else {
|
|
57377
|
+
hideTimeout.current = setTimeout(() => setIsVisible(false), remainingTime);
|
|
57378
|
+
}
|
|
57379
|
+
}
|
|
57380
|
+
return () => {
|
|
57381
|
+
if (hideTimeout.current)
|
|
57382
|
+
clearTimeout(hideTimeout.current);
|
|
57383
|
+
};
|
|
57384
|
+
}, [isLoading, minTime]);
|
|
57385
|
+
return isVisible ? /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Spinner, {}) : /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_jsx_runtime155.Fragment, { children });
|
|
57386
|
+
};
|
|
57387
|
+
|
|
57388
|
+
// components/src/ui/tabs/Tabs.tsx
|
|
57389
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
57390
|
+
var import_classnames6 = __toESM(require_classnames());
|
|
57391
|
+
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
57392
|
+
var Tabs = {
|
|
57393
|
+
Root: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_tabs.Root, { ...props, className: (0, import_classnames6.default)("ox-tabs", className) }),
|
|
57394
|
+
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_tabs.Trigger, { ...props, className: (0, import_classnames6.default)("ox-tab", className), children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { children }) }),
|
|
57395
|
+
List: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_tabs.List, { ...props, className: (0, import_classnames6.default)("ox-tabs-list", className) }),
|
|
57396
|
+
Content: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_tabs.Content, { ...props, className: (0, import_classnames6.default)("ox-tabs-panel", className) })
|
|
57397
|
+
};
|
|
57398
|
+
|
|
57399
|
+
// components/src/ui/checkbox/Checkbox.tsx
|
|
57400
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
57401
|
+
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
57402
|
+
var Check = () => /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" });
|
|
57409
57403
|
var Indeterminate = classed.div`absolute w-2 h-0.5 left-1 top-[7px] bg-accent pointer-events-none`;
|
|
57410
57404
|
var inputStyle = `
|
|
57411
57405
|
appearance-none border border-default bg-default h-4 w-4 rounded-sm absolute left-0 outline-none
|
|
@@ -57419,48 +57413,48 @@ var Checkbox = ({
|
|
|
57419
57413
|
children,
|
|
57420
57414
|
className,
|
|
57421
57415
|
...inputProps
|
|
57422
|
-
}) => /* @__PURE__ */ (0,
|
|
57423
|
-
/* @__PURE__ */ (0,
|
|
57424
|
-
/* @__PURE__ */ (0,
|
|
57416
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("label", { className: "inline-flex items-center", children: [
|
|
57417
|
+
/* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("span", { className: "relative h-4 w-4", children: [
|
|
57418
|
+
/* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
|
|
57425
57419
|
"input",
|
|
57426
57420
|
{
|
|
57427
|
-
className: (0,
|
|
57421
|
+
className: (0, import_classnames7.default)(inputStyle, className),
|
|
57428
57422
|
type: "checkbox",
|
|
57429
57423
|
ref: (el) => el && (el.indeterminate = !!indeterminate),
|
|
57430
57424
|
...inputProps
|
|
57431
57425
|
}
|
|
57432
57426
|
),
|
|
57433
|
-
inputProps.checked && !indeterminate && /* @__PURE__ */ (0,
|
|
57434
|
-
indeterminate && /* @__PURE__ */ (0,
|
|
57427
|
+
inputProps.checked && !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Check, {}),
|
|
57428
|
+
indeterminate && /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Indeterminate, {})
|
|
57435
57429
|
] }),
|
|
57436
|
-
children && /* @__PURE__ */ (0,
|
|
57430
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { className: "ml-2.5 text-sans-md text-secondary", children })
|
|
57437
57431
|
] });
|
|
57438
57432
|
|
|
57439
57433
|
// components/src/ui/empty-message/EmptyMessage.tsx
|
|
57440
|
-
var
|
|
57434
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
57441
57435
|
var import_react_router_dom = require("react-router-dom");
|
|
57442
|
-
var
|
|
57436
|
+
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
57443
57437
|
var buttonStyleProps = { variant: "ghost", size: "sm", color: "secondary" };
|
|
57444
57438
|
function EmptyMessage(props) {
|
|
57445
57439
|
let button = null;
|
|
57446
57440
|
if (props.buttonText && "buttonTo" in props) {
|
|
57447
|
-
button = /* @__PURE__ */ (0,
|
|
57441
|
+
button = /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_router_dom.Link, { className: (0, import_classnames8.default)("mt-6", buttonStyle(buttonStyleProps)), to: props.buttonTo, children: props.buttonText });
|
|
57448
57442
|
} else if (props.buttonText && "onClick" in props) {
|
|
57449
|
-
button = /* @__PURE__ */ (0,
|
|
57443
|
+
button = /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Button, { ...buttonStyleProps, className: "mt-6", onClick: props.onClick, children: props.buttonText });
|
|
57450
57444
|
}
|
|
57451
|
-
return /* @__PURE__ */ (0,
|
|
57452
|
-
props.icon && /* @__PURE__ */ (0,
|
|
57453
|
-
/* @__PURE__ */ (0,
|
|
57454
|
-
props.body && /* @__PURE__ */ (0,
|
|
57445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { className: "m-4 flex max-w-[14rem] flex-col items-center text-center", children: [
|
|
57446
|
+
props.icon && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { className: "mb-4 rounded p-1 leading-[0] text-accent bg-accent-secondary", children: props.icon }),
|
|
57447
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)("h3", { className: "text-sans-semi-lg", children: props.title }),
|
|
57448
|
+
props.body && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("p", { className: "mt-1 text-sans-md text-secondary", children: props.body }),
|
|
57455
57449
|
button
|
|
57456
57450
|
] });
|
|
57457
57451
|
}
|
|
57458
57452
|
|
|
57459
57453
|
// components/src/ui/listbox/Listbox.tsx
|
|
57460
|
-
var
|
|
57461
|
-
var
|
|
57462
|
-
var
|
|
57463
|
-
var
|
|
57454
|
+
var import_react7 = require("@floating-ui/react");
|
|
57455
|
+
var import_react8 = require("@headlessui/react");
|
|
57456
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
57457
|
+
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
57464
57458
|
var Listbox = ({
|
|
57465
57459
|
name,
|
|
57466
57460
|
selected,
|
|
@@ -57473,11 +57467,11 @@ var Listbox = ({
|
|
|
57473
57467
|
isLoading = false,
|
|
57474
57468
|
...props
|
|
57475
57469
|
}) => {
|
|
57476
|
-
const { refs, floatingStyles } = (0,
|
|
57470
|
+
const { refs, floatingStyles } = (0, import_react7.useFloating)({
|
|
57477
57471
|
middleware: [
|
|
57478
|
-
(0,
|
|
57479
|
-
(0,
|
|
57480
|
-
(0,
|
|
57472
|
+
(0, import_react7.offset)(12),
|
|
57473
|
+
(0, import_react7.flip)(),
|
|
57474
|
+
(0, import_react7.size)({
|
|
57481
57475
|
apply({ rects, elements }) {
|
|
57482
57476
|
Object.assign(elements.floating.style, {
|
|
57483
57477
|
width: `${rects.reference.width}px`
|
|
@@ -57489,19 +57483,19 @@ var Listbox = ({
|
|
|
57489
57483
|
const selectedItem = selected && items.find((i) => i.value === selected);
|
|
57490
57484
|
const noItems = !isLoading && items.length === 0;
|
|
57491
57485
|
const isDisabled = disabled || noItems;
|
|
57492
|
-
return /* @__PURE__ */ (0,
|
|
57493
|
-
|
|
57486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: (0, import_classnames9.default)("relative", className), children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
57487
|
+
import_react8.Listbox,
|
|
57494
57488
|
{
|
|
57495
57489
|
value: selected,
|
|
57496
57490
|
onChange: (val) => val !== null && onChange(val),
|
|
57497
57491
|
disabled: isDisabled || isLoading,
|
|
57498
|
-
children: ({ open }) => /* @__PURE__ */ (0,
|
|
57499
|
-
/* @__PURE__ */ (0,
|
|
57500
|
-
|
|
57492
|
+
children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(import_jsx_runtime159.Fragment, { children: [
|
|
57493
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(
|
|
57494
|
+
import_react8.Listbox.Button,
|
|
57501
57495
|
{
|
|
57502
57496
|
name,
|
|
57503
57497
|
ref: refs.setReference,
|
|
57504
|
-
className: (0,
|
|
57498
|
+
className: (0, import_classnames9.default)(
|
|
57505
57499
|
`flex h-10 w-full items-center justify-between
|
|
57506
57500
|
rounded border text-sans-md`,
|
|
57507
57501
|
hasError ? "focus-error border-error-secondary hover:border-error" : "border-default hover:border-hover",
|
|
@@ -57512,37 +57506,37 @@ var Listbox = ({
|
|
|
57512
57506
|
),
|
|
57513
57507
|
...props,
|
|
57514
57508
|
children: [
|
|
57515
|
-
/* @__PURE__ */ (0,
|
|
57509
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "w-full px-3 text-left", children: selectedItem ? (
|
|
57516
57510
|
// labelString is one line, which is what we need when label is a ReactNode
|
|
57517
57511
|
selectedItem.labelString || selectedItem.label
|
|
57518
|
-
) : /* @__PURE__ */ (0,
|
|
57519
|
-
!isDisabled && /* @__PURE__ */ (0,
|
|
57520
|
-
/* @__PURE__ */ (0,
|
|
57512
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }),
|
|
57513
|
+
!isDisabled && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(SpinnerLoader, { isLoading }),
|
|
57514
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
57521
57515
|
"div",
|
|
57522
57516
|
{
|
|
57523
57517
|
className: "ml-3 flex h-[calc(100%-12px)] items-center border-l px-3 border-secondary",
|
|
57524
57518
|
"aria-hidden": true,
|
|
57525
|
-
children: /* @__PURE__ */ (0,
|
|
57519
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" })
|
|
57526
57520
|
}
|
|
57527
57521
|
)
|
|
57528
57522
|
]
|
|
57529
57523
|
}
|
|
57530
57524
|
),
|
|
57531
|
-
/* @__PURE__ */ (0,
|
|
57532
|
-
|
|
57525
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(import_react7.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
57526
|
+
import_react8.Listbox.Options,
|
|
57533
57527
|
{
|
|
57534
57528
|
ref: refs.setFloating,
|
|
57535
57529
|
style: floatingStyles,
|
|
57536
57530
|
className: "ox-menu pointer-events-auto z-50 overflow-y-auto !outline-none",
|
|
57537
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
57538
|
-
|
|
57531
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
57532
|
+
import_react8.Listbox.Option,
|
|
57539
57533
|
{
|
|
57540
57534
|
value: item.value,
|
|
57541
57535
|
className: "relative border-b border-secondary last:border-0",
|
|
57542
|
-
children: ({ active, selected: selected2 }) => /* @__PURE__ */ (0,
|
|
57536
|
+
children: ({ active, selected: selected2 }) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
57543
57537
|
"div",
|
|
57544
57538
|
{
|
|
57545
|
-
className: (0,
|
|
57539
|
+
className: (0, import_classnames9.default)(
|
|
57546
57540
|
"ox-menu-item text-secondary",
|
|
57547
57541
|
selected2 && "is-selected",
|
|
57548
57542
|
active && "is-highlighted"
|