@aivenio/aquarium 6.5.0 → 6.7.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/atoms.cjs +4 -3
- package/dist/atoms.mjs +4 -3
- package/dist/src/atoms/Navigation/Navigation.js +5 -4
- package/dist/src/molecules/Combobox/Combobox.d.ts +1 -1
- package/dist/src/molecules/Drawer/Drawer.d.ts +6 -1
- package/dist/src/molecules/Drawer/Drawer.js +1 -1
- package/dist/src/molecules/Modal/Modal.d.ts +12 -2
- package/dist/src/molecules/Modal/Modal.js +23 -20
- package/dist/src/molecules/Navigation/Navigation.js +4 -3
- package/dist/styles.css +16 -0
- package/dist/system.cjs +73 -66
- package/dist/system.mjs +73 -66
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/system.mjs
CHANGED
|
@@ -393,235 +393,225 @@ var data7 = {
|
|
|
393
393
|
};
|
|
394
394
|
var calendar_default = data7;
|
|
395
395
|
|
|
396
|
-
// src/icons/caretDownFilled.js
|
|
397
|
-
var data8 = {
|
|
398
|
-
"body": '<path fill="currentColor" d="M6.386 8.532a.5.5 0 01-.772 0l-3.27-3.964a.5.5 0 01.386-.818h6.54a.5.5 0 01.385.818l-3.27 3.964Z"/>',
|
|
399
|
-
"left": 0,
|
|
400
|
-
"top": 0,
|
|
401
|
-
"width": 12,
|
|
402
|
-
"height": 12
|
|
403
|
-
};
|
|
404
|
-
var caretDownFilled_default = data8;
|
|
405
|
-
|
|
406
396
|
// src/icons/caretDown.js
|
|
407
|
-
var
|
|
397
|
+
var data8 = {
|
|
408
398
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5.5 8.25 5.5 5.5 5.5-5.5"/>',
|
|
409
399
|
"left": 0,
|
|
410
400
|
"top": 0,
|
|
411
401
|
"width": 22,
|
|
412
402
|
"height": 22
|
|
413
403
|
};
|
|
414
|
-
var caretDown_default =
|
|
404
|
+
var caretDown_default = data8;
|
|
415
405
|
|
|
416
|
-
// src/icons/
|
|
417
|
-
var
|
|
418
|
-
"body": '<path fill="currentColor"
|
|
406
|
+
// src/icons/caretRight.js
|
|
407
|
+
var data9 = {
|
|
408
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m8.25 16.5 5.5-5.5-5.5-5.5"/>',
|
|
419
409
|
"left": 0,
|
|
420
410
|
"top": 0,
|
|
421
|
-
"width":
|
|
422
|
-
"height":
|
|
411
|
+
"width": 22,
|
|
412
|
+
"height": 22
|
|
423
413
|
};
|
|
424
|
-
var
|
|
414
|
+
var caretRight_default = data9;
|
|
425
415
|
|
|
426
416
|
// src/icons/caretUp.js
|
|
427
|
-
var
|
|
417
|
+
var data10 = {
|
|
428
418
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16.5 13.75 11 8.25l-5.5 5.5"/>',
|
|
429
419
|
"left": 0,
|
|
430
420
|
"top": 0,
|
|
431
421
|
"width": 22,
|
|
432
422
|
"height": 22
|
|
433
423
|
};
|
|
434
|
-
var caretUp_default =
|
|
424
|
+
var caretUp_default = data10;
|
|
435
425
|
|
|
436
426
|
// src/icons/chevronBackward.js
|
|
437
|
-
var
|
|
427
|
+
var data11 = {
|
|
438
428
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 4v14m8-1.25-5.5-5.5 5.5-5.5"/>',
|
|
439
429
|
"left": 0,
|
|
440
430
|
"top": 0,
|
|
441
431
|
"width": 22,
|
|
442
432
|
"height": 22
|
|
443
433
|
};
|
|
444
|
-
var chevronBackward_default =
|
|
434
|
+
var chevronBackward_default = data11;
|
|
445
435
|
|
|
446
436
|
// src/icons/chevronForward.js
|
|
447
|
-
var
|
|
437
|
+
var data12 = {
|
|
448
438
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 4v14m-8-1.25 5.5-5.5L7 5.75"/>',
|
|
449
439
|
"left": 0,
|
|
450
440
|
"top": 0,
|
|
451
441
|
"width": 22,
|
|
452
442
|
"height": 22
|
|
453
443
|
};
|
|
454
|
-
var chevronForward_default =
|
|
444
|
+
var chevronForward_default = data12;
|
|
455
445
|
|
|
456
446
|
// src/icons/chevronLeft.js
|
|
457
|
-
var
|
|
447
|
+
var data13 = {
|
|
458
448
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.75 16.5 8.25 11l5.5-5.5"/>',
|
|
459
449
|
"left": 0,
|
|
460
450
|
"top": 0,
|
|
461
451
|
"width": 22,
|
|
462
452
|
"height": 22
|
|
463
453
|
};
|
|
464
|
-
var chevronLeft_default =
|
|
454
|
+
var chevronLeft_default = data13;
|
|
465
455
|
|
|
466
456
|
// src/icons/chevronRight.js
|
|
467
|
-
var
|
|
457
|
+
var data14 = {
|
|
468
458
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m8.25 16.5 5.5-5.5-5.5-5.5"/>',
|
|
469
459
|
"left": 0,
|
|
470
460
|
"top": 0,
|
|
471
461
|
"width": 22,
|
|
472
462
|
"height": 22
|
|
473
463
|
};
|
|
474
|
-
var chevronRight_default =
|
|
464
|
+
var chevronRight_default = data14;
|
|
475
465
|
|
|
476
466
|
// src/icons/confirm.js
|
|
477
|
-
var
|
|
467
|
+
var data15 = {
|
|
478
468
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20.167 10.162v.843a9.166 9.166 0 11-5.436-8.378m5.436 1.04L11 12.842l-2.75-2.75"/>',
|
|
479
469
|
"left": 0,
|
|
480
470
|
"top": 0,
|
|
481
471
|
"width": 22,
|
|
482
472
|
"height": 22
|
|
483
473
|
};
|
|
484
|
-
var confirm_default =
|
|
474
|
+
var confirm_default = data15;
|
|
485
475
|
|
|
486
476
|
// src/icons/cross.js
|
|
487
|
-
var
|
|
477
|
+
var data16 = {
|
|
488
478
|
"body": '<path fill="currentColor" fill-rule="evenodd" d="m12.293 11 3.932-3.933a.885.885 0 00.275-.65.92.92 0 00-1.568-.651L11 9.707 7.067 5.766a.92.92 0 00-1.302 1.302L9.708 11l-3.932 3.932a.885.885 0 00-.275.651.92.92 0 001.567.651L11 12.292l3.932 3.933a.885.885 0 00.651.275.92.92 0 00.651-1.568L12.292 11Z" clip-rule="evenodd"/>',
|
|
489
479
|
"left": 0,
|
|
490
480
|
"top": 0,
|
|
491
481
|
"width": 22,
|
|
492
482
|
"height": 22
|
|
493
483
|
};
|
|
494
|
-
var cross_default =
|
|
484
|
+
var cross_default = data16;
|
|
495
485
|
|
|
496
486
|
// src/icons/error.js
|
|
497
|
-
var
|
|
487
|
+
var data17 = {
|
|
498
488
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 7.333V11m0 3.667h.01M20.166 11a9.167 9.167 0 11-18.334 0 9.167 9.167 0 0118.334 0Z"/>',
|
|
499
489
|
"left": 0,
|
|
500
490
|
"top": 0,
|
|
501
491
|
"width": 22,
|
|
502
492
|
"height": 22
|
|
503
493
|
};
|
|
504
|
-
var error_default =
|
|
494
|
+
var error_default = data17;
|
|
505
495
|
|
|
506
496
|
// src/icons/infoSign.js
|
|
507
|
-
var
|
|
497
|
+
var data18 = {
|
|
508
498
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 7.333V9m0 7v-4m9.167-1a9.167 9.167 0 11-18.334 0 9.167 9.167 0 0118.334 0Z"/>',
|
|
509
499
|
"left": 0,
|
|
510
500
|
"top": 0,
|
|
511
501
|
"width": 22,
|
|
512
502
|
"height": 22
|
|
513
503
|
};
|
|
514
|
-
var infoSign_default =
|
|
504
|
+
var infoSign_default = data18;
|
|
515
505
|
|
|
516
506
|
// src/icons/loading.js
|
|
517
|
-
var
|
|
507
|
+
var data19 = {
|
|
518
508
|
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="3" transform="translate(1 1)"><circle cx="18" cy="18" r="18" stroke-opacity=".5"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" dur="1s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></path></g>',
|
|
519
509
|
"left": 0,
|
|
520
510
|
"top": 0,
|
|
521
511
|
"width": 38,
|
|
522
512
|
"height": 38
|
|
523
513
|
};
|
|
524
|
-
var loading_default =
|
|
514
|
+
var loading_default = data19;
|
|
525
515
|
|
|
526
516
|
// src/icons/lock.js
|
|
527
|
-
var
|
|
517
|
+
var data20 = {
|
|
528
518
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15.583 9.167V7.333a4.583 4.583 0 10-9.166 0v1.834M11 13.292v1.833M8.067 19.25h5.866c1.54 0 2.31 0 2.899-.3a2.75 2.75 0 001.202-1.201c.3-.589.3-1.359.3-2.899v-1.283c0-1.54 0-2.31-.3-2.899a2.75 2.75 0 00-1.202-1.202c-.588-.3-1.359-.3-2.899-.3H8.067c-1.54 0-2.31 0-2.899.3a2.75 2.75 0 00-1.202 1.202c-.3.588-.3 1.359-.3 2.899v1.283c0 1.54 0 2.31.3 2.899a2.75 2.75 0 001.202 1.201c.588.3 1.359.3 2.899.3Z"/>',
|
|
529
519
|
"left": 0,
|
|
530
520
|
"top": 0,
|
|
531
521
|
"width": 22,
|
|
532
522
|
"height": 22
|
|
533
523
|
};
|
|
534
|
-
var lock_default =
|
|
524
|
+
var lock_default = data20;
|
|
535
525
|
|
|
536
526
|
// src/icons/minus.js
|
|
537
|
-
var
|
|
527
|
+
var data21 = {
|
|
538
528
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.583 11h12.834"/>',
|
|
539
529
|
"left": 0,
|
|
540
530
|
"top": 0,
|
|
541
531
|
"width": 22,
|
|
542
532
|
"height": 22
|
|
543
533
|
};
|
|
544
|
-
var minus_default =
|
|
534
|
+
var minus_default = data21;
|
|
545
535
|
|
|
546
536
|
// src/icons/more.js
|
|
547
|
-
var
|
|
537
|
+
var data22 = {
|
|
548
538
|
"body": '<g fill="none"><path fill="currentColor" d="M11 12a1 1 0 100-2 1 1 0 000 2Zm8 0a1 1 0 100-2 1 1 0 000 2ZM3 12a1 1 0 100-2 1 1 0 000 2Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M11 12a1 1 0 100-2 1 1 0 000 2Zm8 0a1 1 0 100-2 1 1 0 000 2ZM3 12a1 1 0 100-2 1 1 0 000 2Z"/></g>',
|
|
549
539
|
"left": 0,
|
|
550
540
|
"top": 0,
|
|
551
541
|
"width": 22,
|
|
552
542
|
"height": 22
|
|
553
543
|
};
|
|
554
|
-
var more_default =
|
|
544
|
+
var more_default = data22;
|
|
555
545
|
|
|
556
546
|
// src/icons/questionMark.js
|
|
557
|
-
var
|
|
547
|
+
var data23 = {
|
|
558
548
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.332 8.25a2.75 2.75 0 015.345.917c0 1.833-2.75 2.75-2.75 2.75M11 16.5s-.004-1.11 0-1.5m9.167-4a9.167 9.167 0 11-18.334 0 9.167 9.167 0 0118.334 0Z"/>',
|
|
559
549
|
"left": 0,
|
|
560
550
|
"top": 0,
|
|
561
551
|
"width": 22,
|
|
562
552
|
"height": 22
|
|
563
553
|
};
|
|
564
|
-
var questionMark_default =
|
|
554
|
+
var questionMark_default = data23;
|
|
565
555
|
|
|
566
556
|
// src/icons/slash.js
|
|
567
|
-
var
|
|
557
|
+
var data24 = {
|
|
568
558
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m6.417 20.167 9.166-18.334"/>',
|
|
569
559
|
"left": 0,
|
|
570
560
|
"top": 0,
|
|
571
561
|
"width": 22,
|
|
572
562
|
"height": 22
|
|
573
563
|
};
|
|
574
|
-
var slash_default =
|
|
564
|
+
var slash_default = data24;
|
|
575
565
|
|
|
576
566
|
// src/icons/smallCross.js
|
|
577
|
-
var
|
|
567
|
+
var data25 = {
|
|
578
568
|
"body": '<path fill="currentColor" fill-rule="evenodd" d="m12.293 11 3.932-3.933a.885.885 0 00.275-.65.92.92 0 00-1.568-.651L11 9.707 7.067 5.766a.92.92 0 00-1.302 1.302L9.708 11l-3.932 3.932a.885.885 0 00-.275.651.92.92 0 001.567.651L11 12.292l3.932 3.933a.885.885 0 00.651.275.92.92 0 00.651-1.568L12.292 11Z" clip-rule="evenodd"/>',
|
|
579
569
|
"left": 0,
|
|
580
570
|
"top": 0,
|
|
581
571
|
"width": 22,
|
|
582
572
|
"height": 22
|
|
583
573
|
};
|
|
584
|
-
var smallCross_default =
|
|
574
|
+
var smallCross_default = data25;
|
|
585
575
|
|
|
586
576
|
// src/icons/tickCircle.js
|
|
587
|
-
var
|
|
577
|
+
var data26 = {
|
|
588
578
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m6.875 11 2.75 2.75 5.5-5.5M20.167 11a9.167 9.167 0 11-18.334 0 9.167 9.167 0 0118.334 0Z"/>',
|
|
589
579
|
"left": 0,
|
|
590
580
|
"top": 0,
|
|
591
581
|
"width": 22,
|
|
592
582
|
"height": 22
|
|
593
583
|
};
|
|
594
|
-
var tickCircle_default =
|
|
584
|
+
var tickCircle_default = data26;
|
|
595
585
|
|
|
596
586
|
// src/icons/time.js
|
|
597
|
-
var
|
|
587
|
+
var data27 = {
|
|
598
588
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 5.5V11l3.667 1.833m5.5-1.833a9.167 9.167 0 11-18.334 0 9.167 9.167 0 0118.334 0Z"/>',
|
|
599
589
|
"left": 0,
|
|
600
590
|
"top": 0,
|
|
601
591
|
"width": 22,
|
|
602
592
|
"height": 22
|
|
603
593
|
};
|
|
604
|
-
var time_default =
|
|
594
|
+
var time_default = data27;
|
|
605
595
|
|
|
606
596
|
// src/icons/upload.js
|
|
607
|
-
var
|
|
597
|
+
var data28 = {
|
|
608
598
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 13.75v1.1c0 1.54 0 2.31-.3 2.899a2.751 2.751 0 01-1.201 1.201c-.589.3-1.359.3-2.899.3h-7.7c-1.54 0-2.31 0-2.898-.3a2.75 2.75 0 01-1.202-1.2c-.3-.589-.3-1.359-.3-2.899v-1.1m12.833-6.417L11 2.75m0 0L6.417 7.333M11 2.75v11"/>',
|
|
609
599
|
"left": 0,
|
|
610
600
|
"top": 0,
|
|
611
601
|
"width": 22,
|
|
612
602
|
"height": 22
|
|
613
603
|
};
|
|
614
|
-
var upload_default =
|
|
604
|
+
var upload_default = data28;
|
|
615
605
|
|
|
616
606
|
// src/icons/warningSign.js
|
|
617
|
-
var
|
|
607
|
+
var data29 = {
|
|
618
608
|
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.667M11 16l.009-1.5M9.73 3.567 2.191 16.59c-.418.723-.627 1.084-.596 1.38a.917.917 0 00.372.646c.241.176.659.176 1.493.176h15.08c.834 0 1.251 0 1.492-.176a.917.917 0 00.373-.646c.03-.296-.178-.657-.596-1.38l-7.54-13.023c-.417-.72-.625-1.08-.897-1.2a.917.917 0 00-.745 0c-.272.12-.48.48-.897 1.2Z"/>',
|
|
619
609
|
"left": 0,
|
|
620
610
|
"top": 0,
|
|
621
611
|
"width": 22,
|
|
622
612
|
"height": 22
|
|
623
613
|
};
|
|
624
|
-
var warningSign_default =
|
|
614
|
+
var warningSign_default = data29;
|
|
625
615
|
|
|
626
616
|
// src/utils/useMeasure.ts
|
|
627
617
|
import React3 from "react";
|
|
@@ -12613,7 +12603,14 @@ var Modal2 = ({
|
|
|
12613
12603
|
className: clsx32({ "pb-3": isComponentType(children, ModalTabs) })
|
|
12614
12604
|
},
|
|
12615
12605
|
/* @__PURE__ */ React107.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React107.createElement(ModalTitle, { kind: "dialog" }, title), subtitle && /* @__PURE__ */ React107.createElement(Modal.Subtitle, null, subtitle))
|
|
12616
|
-
), hasTabs ? React107.cloneElement(children, { className: "[&>div:first-child]:px-5 grow" }) : /* @__PURE__ */ React107.createElement(Modal.Body, { tabIndex: 0, noFooter: !hasActions, size }, children), hasActions && /* @__PURE__ */ React107.createElement(Modal.Footer, null, /* @__PURE__ */ React107.createElement(Modal.Actions, null, secondaryActions && castArray5(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React107.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React107.createElement(
|
|
12606
|
+
), hasTabs ? React107.cloneElement(children, { className: "[&>div:first-child]:px-5 grow" }) : /* @__PURE__ */ React107.createElement(Modal.Body, { tabIndex: 0, noFooter: !hasActions, size }, children), hasActions && /* @__PURE__ */ React107.createElement(Modal.Footer, null, /* @__PURE__ */ React107.createElement(Modal.Actions, null, secondaryActions && castArray5(secondaryActions).filter(Boolean).map(({ text, actionKey, ...action }) => /* @__PURE__ */ React107.createElement(Button2.Secondary, { key: actionKey ?? text, ...action }, text)), primaryAction && /* @__PURE__ */ React107.createElement(
|
|
12607
|
+
Button2.Primary,
|
|
12608
|
+
{
|
|
12609
|
+
key: primaryAction.actionKey ?? primaryAction.text,
|
|
12610
|
+
...omit12(primaryAction, "text", "actionKey")
|
|
12611
|
+
},
|
|
12612
|
+
primaryAction.text
|
|
12613
|
+
))))))
|
|
12617
12614
|
);
|
|
12618
12615
|
};
|
|
12619
12616
|
var ModalTabs = createTabsComponent(
|
|
@@ -13216,17 +13213,18 @@ var navigationClasses = tv28({
|
|
|
13216
13213
|
slots: {
|
|
13217
13214
|
nav: "bg-body h-full border-r border-muted",
|
|
13218
13215
|
list: "flex flex-col h-full",
|
|
13219
|
-
header: "px-6 py-
|
|
13216
|
+
header: "px-6 py-4",
|
|
13220
13217
|
headerTitle: "uppercase text-muted typography-small",
|
|
13221
13218
|
headerSubtitle: "text-intense",
|
|
13222
13219
|
footer: "px-6 py-5 mt-auto",
|
|
13223
|
-
sectionContainer: "py-
|
|
13220
|
+
sectionContainer: "py-4",
|
|
13224
13221
|
sectionTitle: "py-2 px-6 text-inactive uppercase cursor-default typography-small",
|
|
13225
13222
|
sectionList: "flex flex-col",
|
|
13226
13223
|
divider: "border-t border-muted",
|
|
13227
13224
|
itemContainer: "",
|
|
13228
13225
|
itemAnchor: "py-3 px-6 hover:bg-medium cursor-pointer flex gap-4 items-center typography-default focusable",
|
|
13229
|
-
|
|
13226
|
+
// `[&+&]:pt-0` prevents doubled spacing when two submenu containers are adjacent (flex items don't margin-collapse).
|
|
13227
|
+
submenuContainer: "py-3 [&+&]:pt-0",
|
|
13230
13228
|
submenuAnchor: "py-3 pr-6 pl-3 hover:bg-medium cursor-pointer typography-default focusable flex items-center w-full",
|
|
13231
13229
|
submenuList: "flex flex-col",
|
|
13232
13230
|
submenuItem: "pl-[56px]"
|
|
@@ -13311,13 +13309,22 @@ var Item5 = ({
|
|
|
13311
13309
|
showNotification = false,
|
|
13312
13310
|
...rest
|
|
13313
13311
|
}) => /* @__PURE__ */ React113.createElement(Navigation.Item, { ...rest }, icon && showNotification && /* @__PURE__ */ React113.createElement(Badge.Notification, null, /* @__PURE__ */ React113.createElement(InlineIcon, { icon, width: "20px", height: "20px" })), icon && !showNotification && /* @__PURE__ */ React113.createElement(InlineIcon, { icon, width: "20px", height: "20px" }), children);
|
|
13312
|
+
var DisclosureCaret = ({ open }) => /* @__PURE__ */ React113.createElement(
|
|
13313
|
+
InlineIcon,
|
|
13314
|
+
{
|
|
13315
|
+
icon: caretRight_default,
|
|
13316
|
+
width: "12px",
|
|
13317
|
+
height: "12px",
|
|
13318
|
+
className: clsx35("mr-1 transition-transform duration-200 ease-in-out", open ? "rotate-90" : "rotate-0")
|
|
13319
|
+
}
|
|
13320
|
+
);
|
|
13314
13321
|
var Submenu2 = ({ children, title, icon, defaultOpen = false }) => {
|
|
13315
13322
|
const [open, setOpen] = React113.useState(defaultOpen);
|
|
13316
13323
|
const id = uniqueId2();
|
|
13317
13324
|
return /* @__PURE__ */ React113.createElement(
|
|
13318
13325
|
Navigation.Submenu,
|
|
13319
13326
|
{
|
|
13320
|
-
title: /* @__PURE__ */ React113.createElement(React113.Fragment, null, /* @__PURE__ */ React113.createElement(
|
|
13327
|
+
title: /* @__PURE__ */ React113.createElement(React113.Fragment, null, /* @__PURE__ */ React113.createElement(DisclosureCaret, { open }), /* @__PURE__ */ React113.createElement(Box.Flex, { paddingX: "1", gap: "4" }, icon && /* @__PURE__ */ React113.createElement(InlineIcon, { icon, width: "20px", height: "20px" }), title)),
|
|
13321
13328
|
"aria-expanded": open,
|
|
13322
13329
|
id,
|
|
13323
13330
|
onClick: (e) => {
|
|
@@ -14371,11 +14378,11 @@ var useSortState = (initialSortState) => React136.useState(initialSortState);
|
|
|
14371
14378
|
|
|
14372
14379
|
// src/utils/table/useTableSelect.ts
|
|
14373
14380
|
import React137 from "react";
|
|
14374
|
-
var useTableSelect = (
|
|
14381
|
+
var useTableSelect = (data30, { key }) => {
|
|
14375
14382
|
const [selected, setSelected] = React137.useState([]);
|
|
14376
|
-
const allSelected = selected.length ===
|
|
14383
|
+
const allSelected = selected.length === data30.length;
|
|
14377
14384
|
const isSelected = (dot) => selected.includes(dot[key]);
|
|
14378
|
-
const selectAll = () => setSelected(
|
|
14385
|
+
const selectAll = () => setSelected(data30.map((dot) => dot[key]));
|
|
14379
14386
|
const selectOnlyOne = (dot) => setSelected([dot[key]]);
|
|
14380
14387
|
const unselectAll = () => setSelected([]);
|
|
14381
14388
|
const toggle = (dot) => {
|