@tempots/beatui 0.36.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2019-RaU4YQ5c.js → 2019-CGWicU9n.js} +2 -2
- package/dist/{2019-B1QESOSc.cjs → 2019-DxwU2aOm.cjs} +1 -1
- package/dist/{2020-BAomdSE8.js → 2020-BRNvbMGL.js} +2 -2
- package/dist/{2020-BI-SxTSK.cjs → 2020-DHep9dU6.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +2 -2
- package/dist/beatui.css +193 -27
- package/dist/beatui.tailwind.css +193 -27
- package/dist/{index-BzApzJXc.cjs → index-C5-BM51Y.cjs} +1 -1
- package/dist/{index-Dc9UNC8n.js → index-D41aREgo.js} +1 -1
- package/dist/{index-BKjL6RO2.cjs → index-Dtqe3URb.cjs} +2 -2
- package/dist/{index-BS0NyhvV.js → index-i9pAnFtS.js} +4 -4
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2356 -2249
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{modal-CxG-RO9B.js → modal--1g8Y5LH.js} +1 -1
- package/dist/{modal-OMSAbIg1.cjs → modal-mA_AFUCI.cjs} +1 -1
- package/dist/{notice-C7o5d8Jw.js → notice-BuYqG6zM.js} +47 -44
- package/dist/{notice-0Xhzr7qR.cjs → notice-DCuZEAQO.cjs} +2 -2
- package/dist/types/components/data/badge.d.ts +16 -0
- package/dist/types/components/data/index.d.ts +1 -0
- package/dist/types/components/form/use-form.d.ts +1 -1
- package/dist/{utils-BcIRhDH0.cjs → utils-BD6NGV1v.cjs} +1 -1
- package/dist/{utils-C7619Rp3.js → utils-B_QSuN66.js} +1 -1
- package/package.json +1 -1
package/dist/beatui.tailwind.css
CHANGED
|
@@ -1259,6 +1259,138 @@ a:focus-visible {
|
|
|
1259
1259
|
color: var(--color-white);
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
|
+
/* Badge Component */
|
|
1263
|
+
.bc-badge {
|
|
1264
|
+
--badge-bg: transparent;
|
|
1265
|
+
--badge-bg-dark: transparent;
|
|
1266
|
+
--badge-bg-hover: var(--badge-bg);
|
|
1267
|
+
--badge-bg-hover-dark: var(--badge-bg-dark);
|
|
1268
|
+
--badge-text: inherit;
|
|
1269
|
+
--badge-text-dark: inherit;
|
|
1270
|
+
--badge-text-hover: var(--badge-text);
|
|
1271
|
+
--badge-text-hover-dark: var(--badge-text-dark);
|
|
1272
|
+
--badge-border: transparent;
|
|
1273
|
+
--badge-border-dark: transparent;
|
|
1274
|
+
|
|
1275
|
+
display: inline-flex;
|
|
1276
|
+
align-items: center;
|
|
1277
|
+
justify-content: center;
|
|
1278
|
+
border: 1.5px solid var(--badge-border);
|
|
1279
|
+
font-family: var(
|
|
1280
|
+
--default-ui-font-family,
|
|
1281
|
+
var(--font-ui, var(--font-body, var(--font-family-sans)))
|
|
1282
|
+
);
|
|
1283
|
+
font-size: inherit;
|
|
1284
|
+
line-height: 1;
|
|
1285
|
+
border-radius: var(--radius-badge, var(--radius-control, var(--radius-md)));
|
|
1286
|
+
transition: all
|
|
1287
|
+
var(--motion-transition-fast, var(--motion-duration-fast, 0.2s))
|
|
1288
|
+
var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
1289
|
+
background-color: var(--badge-bg);
|
|
1290
|
+
color: var(--badge-text);
|
|
1291
|
+
white-space: nowrap;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.bc-badge__content {
|
|
1295
|
+
display: flex;
|
|
1296
|
+
align-items: center;
|
|
1297
|
+
justify-content: center;
|
|
1298
|
+
gap: var(
|
|
1299
|
+
--badge-gap,
|
|
1300
|
+
var(--spacing-stack-2xs, calc(var(--spacing-base) / 2))
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/* Size variants */
|
|
1305
|
+
.bc-badge--size-xs {
|
|
1306
|
+
font-size: var(--font-size-xs);
|
|
1307
|
+
padding: calc(var(--spacing-base) * 0.5) calc(var(--spacing-base) * 1);
|
|
1308
|
+
--badge-gap: calc(var(--spacing-base) * 0.25);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.bc-badge--size-sm {
|
|
1312
|
+
font-size: var(--font-size-sm);
|
|
1313
|
+
padding: calc(var(--spacing-base) * 0.75) calc(var(--spacing-base) * 1.5);
|
|
1314
|
+
--badge-gap: calc(var(--spacing-base) * 0.5);
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.bc-badge--size-md {
|
|
1318
|
+
font-size: var(--font-size-base);
|
|
1319
|
+
padding: var(--spacing-base) calc(var(--spacing-base) * 2);
|
|
1320
|
+
--badge-gap: calc(var(--spacing-base) * 0.75);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.bc-badge--size-lg {
|
|
1324
|
+
font-size: var(--font-size-lg);
|
|
1325
|
+
padding: calc(var(--spacing-base) * 1.25) calc(var(--spacing-base) * 2.5);
|
|
1326
|
+
--badge-gap: var(--spacing-base);
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.bc-badge--size-xl {
|
|
1330
|
+
font-size: var(--font-size-xl);
|
|
1331
|
+
padding: calc(var(--spacing-base) * 1.5) calc(var(--spacing-base) * 3);
|
|
1332
|
+
--badge-gap: calc(var(--spacing-base) * 1.25);
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/* Circle variant - makes badge circular with equal width/height */
|
|
1336
|
+
.bc-badge--circle {
|
|
1337
|
+
padding-left: 0;
|
|
1338
|
+
padding-right: 0;
|
|
1339
|
+
aspect-ratio: 1;
|
|
1340
|
+
border-radius: 50%;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.bc-badge--circle.bc-badge--size-xs {
|
|
1344
|
+
min-width: calc(var(--font-size-xs) + var(--spacing-base) * 1 + 3px);
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.bc-badge--circle.bc-badge--size-sm {
|
|
1348
|
+
min-width: calc(var(--font-size-sm) + var(--spacing-base) * 1.5 + 3px);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.bc-badge--circle.bc-badge--size-md {
|
|
1352
|
+
min-width: calc(var(--font-size-md) + var(--spacing-base) * 2 + 3px);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.bc-badge--circle.bc-badge--size-lg {
|
|
1356
|
+
min-width: calc(var(--font-size-lg) * 1.2 + var(--spacing-base) * 2.5 + 3px);
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.bc-badge--circle.bc-badge--size-xl {
|
|
1360
|
+
min-width: calc(var(--font-size-xl) * 1.2 + var(--spacing-base) * 3 + 3px);
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/* Full width variant */
|
|
1364
|
+
.bc-badge--full-width {
|
|
1365
|
+
display: flex;
|
|
1366
|
+
width: 100%;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/* Dark mode styles */
|
|
1370
|
+
.b-dark .bc-badge {
|
|
1371
|
+
background-color: var(--badge-bg-dark);
|
|
1372
|
+
color: var(--badge-text-dark);
|
|
1373
|
+
border-color: var(--badge-border-dark);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.b-dark .bc-badge:hover {
|
|
1377
|
+
background-color: var(--badge-bg-hover-dark);
|
|
1378
|
+
color: var(--badge-text-hover-dark);
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
/* Accessibility adjustments */
|
|
1382
|
+
@media (prefers-contrast: high) {
|
|
1383
|
+
.bc-badge {
|
|
1384
|
+
border-width: 2px;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1389
|
+
.bc-badge {
|
|
1390
|
+
transition: none;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1262
1394
|
/* Button Component */
|
|
1263
1395
|
.bc-button {
|
|
1264
1396
|
--button-bg: transparent;
|
|
@@ -6424,15 +6556,15 @@ span.bc-sidebar-link {
|
|
|
6424
6556
|
}
|
|
6425
6557
|
|
|
6426
6558
|
/* Table header */
|
|
6427
|
-
.bc-table thead,
|
|
6428
|
-
.bc-table tfoot {
|
|
6559
|
+
.bc-table > thead,
|
|
6560
|
+
.bc-table > tfoot {
|
|
6429
6561
|
background-color: var(--table-header-bg);
|
|
6430
6562
|
color: var(--table-header-text);
|
|
6431
6563
|
font-weight: var(--font-weight-semibold);
|
|
6432
6564
|
}
|
|
6433
6565
|
|
|
6434
6566
|
/* Sticky header */
|
|
6435
|
-
.bc-table--sticky-header thead {
|
|
6567
|
+
.bc-table--sticky-header > thead {
|
|
6436
6568
|
position: sticky;
|
|
6437
6569
|
top: 0;
|
|
6438
6570
|
z-index: var(--z-index-sticky, 10);
|
|
@@ -6440,7 +6572,7 @@ span.bc-sidebar-link {
|
|
|
6440
6572
|
}
|
|
6441
6573
|
|
|
6442
6574
|
/* Sticky footer */
|
|
6443
|
-
.bc-table--sticky-header tfoot {
|
|
6575
|
+
.bc-table--sticky-header > tfoot {
|
|
6444
6576
|
position: sticky;
|
|
6445
6577
|
bottom: 0;
|
|
6446
6578
|
z-index: var(--z-index-sticky, 10);
|
|
@@ -6448,15 +6580,21 @@ span.bc-sidebar-link {
|
|
|
6448
6580
|
}
|
|
6449
6581
|
|
|
6450
6582
|
/* Table cells */
|
|
6451
|
-
.bc-table th,
|
|
6452
|
-
.bc-table td
|
|
6583
|
+
.bc-table > thead > tr > th,
|
|
6584
|
+
.bc-table > thead > tr > td,
|
|
6585
|
+
.bc-table > tbody > tr > th,
|
|
6586
|
+
.bc-table > tbody > tr > td,
|
|
6587
|
+
.bc-table > tfoot > tr > th,
|
|
6588
|
+
.bc-table > tfoot > tr > td {
|
|
6453
6589
|
text-align: left;
|
|
6454
6590
|
vertical-align: middle;
|
|
6455
6591
|
padding: var(--spacing-md);
|
|
6456
6592
|
border: none;
|
|
6457
6593
|
}
|
|
6458
6594
|
|
|
6459
|
-
.bc-table th
|
|
6595
|
+
.bc-table > thead > tr > th,
|
|
6596
|
+
.bc-table > tbody > tr > th,
|
|
6597
|
+
.bc-table > tfoot > tr > th {
|
|
6460
6598
|
font-weight: var(--font-weight-semibold);
|
|
6461
6599
|
white-space: nowrap;
|
|
6462
6600
|
}
|
|
@@ -6467,68 +6605,96 @@ span.bc-sidebar-link {
|
|
|
6467
6605
|
}
|
|
6468
6606
|
|
|
6469
6607
|
/* With row borders */
|
|
6470
|
-
.bc-table--with-row-borders th,
|
|
6471
|
-
.bc-table--with-row-borders td
|
|
6608
|
+
.bc-table--with-row-borders > thead > tr > th,
|
|
6609
|
+
.bc-table--with-row-borders > thead > tr > td,
|
|
6610
|
+
.bc-table--with-row-borders > tbody > tr > th,
|
|
6611
|
+
.bc-table--with-row-borders > tbody > tr > td,
|
|
6612
|
+
.bc-table--with-row-borders > tfoot > tr > th,
|
|
6613
|
+
.bc-table--with-row-borders > tfoot > tr > td {
|
|
6472
6614
|
border-bottom: 1px solid var(--table-border);
|
|
6473
6615
|
}
|
|
6474
6616
|
|
|
6475
6617
|
/* With column borders */
|
|
6476
|
-
.bc-table--with-column-borders th,
|
|
6477
|
-
.bc-table--with-column-borders td
|
|
6618
|
+
.bc-table--with-column-borders > thead > tr > th,
|
|
6619
|
+
.bc-table--with-column-borders > thead > tr > td,
|
|
6620
|
+
.bc-table--with-column-borders > tbody > tr > th,
|
|
6621
|
+
.bc-table--with-column-borders > tbody > tr > td,
|
|
6622
|
+
.bc-table--with-column-borders > tfoot > tr > th,
|
|
6623
|
+
.bc-table--with-column-borders > tfoot > tr > td {
|
|
6478
6624
|
border-right: 1px solid var(--table-border);
|
|
6479
6625
|
}
|
|
6480
6626
|
|
|
6481
|
-
.bc-table--with-column-borders th:last-child,
|
|
6482
|
-
.bc-table--with-column-borders td:last-child
|
|
6627
|
+
.bc-table--with-column-borders > thead > tr > th:last-child,
|
|
6628
|
+
.bc-table--with-column-borders > thead > tr > td:last-child,
|
|
6629
|
+
.bc-table--with-column-borders > tbody > tr > th:last-child,
|
|
6630
|
+
.bc-table--with-column-borders > tbody > tr > td:last-child,
|
|
6631
|
+
.bc-table--with-column-borders > tfoot > tr > th:last-child,
|
|
6632
|
+
.bc-table--with-column-borders > tfoot > tr > td:last-child {
|
|
6483
6633
|
border-right: none;
|
|
6484
6634
|
}
|
|
6485
6635
|
|
|
6486
6636
|
/* With striped rows */
|
|
6487
|
-
.bc-table--with-striped-rows tbody tr:nth-child(even) {
|
|
6637
|
+
.bc-table--with-striped-rows > tbody > tr:nth-child(even) {
|
|
6488
6638
|
background-color: var(--table-stripe-bg);
|
|
6489
6639
|
}
|
|
6490
6640
|
|
|
6491
6641
|
/* Hoverable striped rows - darker stripe on hover */
|
|
6492
6642
|
.bc-table--hoverable.bc-table--with-striped-rows
|
|
6493
|
-
tbody
|
|
6494
|
-
tr:nth-child(even):hover {
|
|
6643
|
+
> tbody
|
|
6644
|
+
> tr:nth-child(even):hover {
|
|
6495
6645
|
background-color: var(--table-hover-bg);
|
|
6496
6646
|
filter: brightness(0.95);
|
|
6497
6647
|
}
|
|
6498
6648
|
|
|
6499
6649
|
/* Size variants */
|
|
6500
|
-
.bc-table--size-xs th,
|
|
6501
|
-
.bc-table--size-xs td
|
|
6650
|
+
.bc-table--size-xs > thead > tr > th,
|
|
6651
|
+
.bc-table--size-xs > thead > tr > td,
|
|
6652
|
+
.bc-table--size-xs > tbody > tr > th,
|
|
6653
|
+
.bc-table--size-xs > tbody > tr > td,
|
|
6654
|
+
.bc-table--size-xs > tfoot > tr > th,
|
|
6655
|
+
.bc-table--size-xs > tfoot > tr > td {
|
|
6502
6656
|
padding: var(--spacing-xs);
|
|
6503
6657
|
font-size: var(--font-size-sm);
|
|
6504
6658
|
}
|
|
6505
6659
|
|
|
6506
|
-
.bc-table--size-sm th,
|
|
6507
|
-
.bc-table--size-sm td
|
|
6660
|
+
.bc-table--size-sm > thead > tr > th,
|
|
6661
|
+
.bc-table--size-sm > thead > tr > td,
|
|
6662
|
+
.bc-table--size-sm > tbody > tr > th,
|
|
6663
|
+
.bc-table--size-sm > tbody > tr > td,
|
|
6664
|
+
.bc-table--size-sm > tfoot > tr > th,
|
|
6665
|
+
.bc-table--size-sm > tfoot > tr > td {
|
|
6508
6666
|
padding: calc(var(--spacing-base) * 1.5);
|
|
6509
6667
|
font-size: var(--font-size-sm);
|
|
6510
6668
|
}
|
|
6511
6669
|
|
|
6512
|
-
.bc-table--size-lg th,
|
|
6513
|
-
.bc-table--size-lg td
|
|
6670
|
+
.bc-table--size-lg > thead > tr > th,
|
|
6671
|
+
.bc-table--size-lg > thead > tr > td,
|
|
6672
|
+
.bc-table--size-lg > tbody > tr > th,
|
|
6673
|
+
.bc-table--size-lg > tbody > tr > td,
|
|
6674
|
+
.bc-table--size-lg > tfoot > tr > th,
|
|
6675
|
+
.bc-table--size-lg > tfoot > tr > td {
|
|
6514
6676
|
padding: var(--spacing-lg);
|
|
6515
6677
|
}
|
|
6516
6678
|
|
|
6517
|
-
.bc-table--size-xl th,
|
|
6518
|
-
.bc-table--size-xl td
|
|
6679
|
+
.bc-table--size-xl > thead > tr > th,
|
|
6680
|
+
.bc-table--size-xl > thead > tr > td,
|
|
6681
|
+
.bc-table--size-xl > tbody > tr > th,
|
|
6682
|
+
.bc-table--size-xl > tbody > tr > td,
|
|
6683
|
+
.bc-table--size-xl > tfoot > tr > th,
|
|
6684
|
+
.bc-table--size-xl > tfoot > tr > td {
|
|
6519
6685
|
padding: calc(var(--spacing-base) * 5);
|
|
6520
6686
|
font-size: var(--font-size-lg);
|
|
6521
6687
|
}
|
|
6522
6688
|
|
|
6523
6689
|
/* Hoverable rows */
|
|
6524
|
-
.bc-table--hoverable tbody tr {
|
|
6690
|
+
.bc-table--hoverable > tbody > tr {
|
|
6525
6691
|
transition: background-color
|
|
6526
6692
|
var(--motion-transition-fast, var(--motion-duration-fast, 0.2s))
|
|
6527
6693
|
var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
6528
6694
|
cursor: pointer;
|
|
6529
6695
|
}
|
|
6530
6696
|
|
|
6531
|
-
.bc-table--hoverable tbody tr:hover {
|
|
6697
|
+
.bc-table--hoverable > tbody > tr:hover {
|
|
6532
6698
|
background-color: var(--table-hover-bg);
|
|
6533
6699
|
}
|
|
6534
6700
|
|
|
@@ -6552,7 +6718,7 @@ span.bc-sidebar-link {
|
|
|
6552
6718
|
|
|
6553
6719
|
/* Accessibility */
|
|
6554
6720
|
@media (prefers-reduced-motion: reduce) {
|
|
6555
|
-
.bc-table--hoverable tbody tr {
|
|
6721
|
+
.bc-table--hoverable > tbody > tr {
|
|
6556
6722
|
transition: none;
|
|
6557
6723
|
}
|
|
6558
6724
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./index-
|
|
1
|
+
"use strict";const m=require("./index-Dtqe3URb.cjs");var R={},_={},O;function H(){if(O)return _;O=1,Object.defineProperty(_,"__esModule",{value:!0}),_.dynamicAnchor=void 0;const e=m.requireCodegen(),r=m.requireNames(),n=m.requireCompile(),l=m.requireRef(),o={keyword:"$dynamicAnchor",schemaType:"string",code:i=>t(i,i.schema)};function t(i,v){const{gen:s,it:d}=i;d.schemaEnv.root.dynamicAnchors[v]=!0;const y=(0,e._)`${r.default.dynamicAnchors}${(0,e.getProperty)(v)}`,a=d.errSchemaPath==="#"?d.validateName:u(i);s.if((0,e._)`!${y}`,()=>s.assign(y,a))}_.dynamicAnchor=t;function u(i){const{schemaEnv:v,schema:s,self:d}=i.it,{root:y,baseId:a,localRefs:f,meta:p}=v.root,{schemaId:S}=d.opts,c=new n.SchemaEnv({schema:s,schemaId:S,root:y,baseId:a,localRefs:f,meta:p});return n.compileSchema.call(d,c),(0,l.getValidate)(i,c)}return _.default=o,_}var q={},C;function J(){if(C)return q;C=1,Object.defineProperty(q,"__esModule",{value:!0}),q.dynamicRef=void 0;const e=m.requireCodegen(),r=m.requireNames(),n=m.requireRef(),l={keyword:"$dynamicRef",schemaType:"string",code:t=>o(t,t.schema)};function o(t,u){const{gen:i,keyword:v,it:s}=t;if(u[0]!=="#")throw new Error(`"${v}" only supports hash fragment reference`);const d=u.slice(1);if(s.allErrors)y();else{const f=i.let("valid",!1);y(f),t.ok(f)}function y(f){if(s.schemaEnv.root.dynamicAnchors[d]){const p=i.let("_v",(0,e._)`${r.default.dynamicAnchors}${(0,e.getProperty)(d)}`);i.if(p,a(p,f),a(s.validateName,f))}else a(s.validateName,f)()}function a(f,p){return p?()=>i.block(()=>{(0,n.callRef)(t,f),i.let(p,!0)}):()=>(0,n.callRef)(t,f)}}return q.dynamicRef=o,q.default=l,q}var $={},N;function K(){if(N)return $;N=1,Object.defineProperty($,"__esModule",{value:!0});const e=H(),r=m.requireUtil(),n={keyword:"$recursiveAnchor",schemaType:"boolean",code(l){l.schema?(0,e.dynamicAnchor)(l,""):(0,r.checkStrictMode)(l.it,"$recursiveAnchor: false is ignored")}};return $.default=n,$}var b={},I;function Q(){if(I)return b;I=1,Object.defineProperty(b,"__esModule",{value:!0});const e=J(),r={keyword:"$recursiveRef",schemaType:"string",code:n=>(0,e.dynamicRef)(n,n.schema)};return b.default=r,b}var U;function W(){if(U)return R;U=1,Object.defineProperty(R,"__esModule",{value:!0});const e=H(),r=J(),n=K(),l=Q(),o=[e.default,r.default,n.default,l.default];return R.default=o,R}var P={},g={},E;function X(){if(E)return g;E=1,Object.defineProperty(g,"__esModule",{value:!0});const e=m.requireDependencies(),r={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:n=>(0,e.validatePropertyDeps)(n)};return g.default=r,g}var j={},V;function Y(){if(V)return j;V=1,Object.defineProperty(j,"__esModule",{value:!0});const e=m.requireDependencies(),r={keyword:"dependentSchemas",type:"object",schemaType:"object",code:n=>(0,e.validateSchemaDeps)(n)};return j.default=r,j}var k={},L;function Z(){if(L)return k;L=1,Object.defineProperty(k,"__esModule",{value:!0});const e=m.requireUtil(),r={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:n,parentSchema:l,it:o}){l.contains===void 0&&(0,e.checkStrictMode)(o,`"${n}" without "contains" is ignored`)}};return k.default=r,k}var z;function x(){if(z)return P;z=1,Object.defineProperty(P,"__esModule",{value:!0});const e=X(),r=Y(),n=Z(),l=[e.default,r.default,n.default];return P.default=l,P}var w={},A={},B;function ee(){if(B)return A;B=1,Object.defineProperty(A,"__esModule",{value:!0});const e=m.requireCodegen(),r=m.requireUtil(),n=m.requireNames(),o={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:t})=>(0,e._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`},code(t){const{gen:u,schema:i,data:v,errsCount:s,it:d}=t;if(!s)throw new Error("ajv implementation error");const{allErrors:y,props:a}=d;a instanceof e.Name?u.if((0,e._)`${a} !== true`,()=>u.forIn("key",v,c=>u.if(p(a,c),()=>f(c)))):a!==!0&&u.forIn("key",v,c=>a===void 0?f(c):u.if(S(a,c),()=>f(c))),d.props=!0,t.ok((0,e._)`${s} === ${n.default.errors}`);function f(c){if(i===!1){t.setParams({unevaluatedProperty:c}),t.error(),y||u.break();return}if(!(0,r.alwaysValidSchema)(d,i)){const h=u.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:c,dataPropType:r.Type.Str},h),y||u.if((0,e.not)(h),()=>u.break())}}function p(c,h){return(0,e._)`!${c} || !${c}[${h}]`}function S(c,h){const T=[];for(const M in c)c[M]===!0&&T.push((0,e._)`${h} !== ${M}`);return(0,e.and)(...T)}}};return A.default=o,A}var D={},F;function re(){if(F)return D;F=1,Object.defineProperty(D,"__esModule",{value:!0});const e=m.requireCodegen(),r=m.requireUtil(),l={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{gen:t,schema:u,data:i,it:v}=o,s=v.items||0;if(s===!0)return;const d=t.const("len",(0,e._)`${i}.length`);if(u===!1)o.setParams({len:s}),o.fail((0,e._)`${d} > ${s}`);else if(typeof u=="object"&&!(0,r.alwaysValidSchema)(v,u)){const a=t.var("valid",(0,e._)`${d} <= ${s}`);t.if((0,e.not)(a),()=>y(a,s)),o.ok(a)}v.items=!0;function y(a,f){t.forRange("i",f,d,p=>{o.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:r.Type.Num},a),v.allErrors||t.if((0,e.not)(a),()=>t.break())})}}};return D.default=l,D}var G;function ne(){if(G)return w;G=1,Object.defineProperty(w,"__esModule",{value:!0});const e=ee(),r=re(),n=[e.default,r.default];return w.default=n,w}exports.requireDynamic=W;exports.requireNext=x;exports.requireUnevaluated=ne;
|