@marigold/components 11.2.3 → 11.4.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/index.d.mts +89 -8
- package/dist/index.d.ts +89 -8
- package/dist/index.js +518 -362
- package/dist/index.mjs +471 -302
- package/package.json +28 -16
package/dist/index.js
CHANGED
|
@@ -398,9 +398,9 @@ var require_hoist_non_react_statics_cjs = __commonJS({
|
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
|
|
401
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
401
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/extends.js
|
|
402
402
|
var require_extends = __commonJS({
|
|
403
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
403
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/extends.js"(exports2, module2) {
|
|
404
404
|
"use strict";
|
|
405
405
|
function _extends2() {
|
|
406
406
|
return module2.exports = _extends2 = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -415,9 +415,9 @@ var require_extends = __commonJS({
|
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
|
|
418
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
418
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/typeof.js
|
|
419
419
|
var require_typeof = __commonJS({
|
|
420
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
420
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/typeof.js"(exports2, module2) {
|
|
421
421
|
"use strict";
|
|
422
422
|
function _typeof2(o) {
|
|
423
423
|
"@babel/helpers - typeof";
|
|
@@ -431,9 +431,9 @@ var require_typeof = __commonJS({
|
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
|
|
434
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
434
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
435
435
|
var require_toPrimitive = __commonJS({
|
|
436
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
436
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/toPrimitive.js"(exports2, module2) {
|
|
437
437
|
"use strict";
|
|
438
438
|
var _typeof2 = require_typeof()["default"];
|
|
439
439
|
function toPrimitive2(t, r) {
|
|
@@ -450,9 +450,9 @@ var require_toPrimitive = __commonJS({
|
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
|
|
453
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
453
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
454
454
|
var require_toPropertyKey = __commonJS({
|
|
455
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
455
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports2, module2) {
|
|
456
456
|
"use strict";
|
|
457
457
|
var _typeof2 = require_typeof()["default"];
|
|
458
458
|
var toPrimitive2 = require_toPrimitive();
|
|
@@ -464,9 +464,9 @@ var require_toPropertyKey = __commonJS({
|
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
|
|
467
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
467
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
468
468
|
var require_defineProperty = __commonJS({
|
|
469
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
469
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/defineProperty.js"(exports2, module2) {
|
|
470
470
|
"use strict";
|
|
471
471
|
var toPropertyKey2 = require_toPropertyKey();
|
|
472
472
|
function _defineProperty2(e, r, t) {
|
|
@@ -481,9 +481,9 @@ var require_defineProperty = __commonJS({
|
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
|
|
484
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
484
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
485
485
|
var require_objectSpread2 = __commonJS({
|
|
486
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
486
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/objectSpread2.js"(exports2, module2) {
|
|
487
487
|
"use strict";
|
|
488
488
|
var defineProperty = require_defineProperty();
|
|
489
489
|
function ownKeys2(e, r) {
|
|
@@ -511,9 +511,9 @@ var require_objectSpread2 = __commonJS({
|
|
|
511
511
|
}
|
|
512
512
|
});
|
|
513
513
|
|
|
514
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
514
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js
|
|
515
515
|
var require_arrayWithHoles = __commonJS({
|
|
516
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
516
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js"(exports2, module2) {
|
|
517
517
|
"use strict";
|
|
518
518
|
function _arrayWithHoles2(r) {
|
|
519
519
|
if (Array.isArray(r)) return r;
|
|
@@ -522,9 +522,9 @@ var require_arrayWithHoles = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
|
|
525
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
525
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
|
|
526
526
|
var require_iterableToArrayLimit = __commonJS({
|
|
527
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
527
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(exports2, module2) {
|
|
528
528
|
"use strict";
|
|
529
529
|
function _iterableToArrayLimit2(r, l) {
|
|
530
530
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -551,9 +551,9 @@ var require_iterableToArrayLimit = __commonJS({
|
|
|
551
551
|
}
|
|
552
552
|
});
|
|
553
553
|
|
|
554
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
554
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js
|
|
555
555
|
var require_arrayLikeToArray = __commonJS({
|
|
556
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
556
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports2, module2) {
|
|
557
557
|
"use strict";
|
|
558
558
|
function _arrayLikeToArray2(r, a) {
|
|
559
559
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -564,9 +564,9 @@ var require_arrayLikeToArray = __commonJS({
|
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
|
|
567
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
567
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
|
|
568
568
|
var require_unsupportedIterableToArray = __commonJS({
|
|
569
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
569
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports2, module2) {
|
|
570
570
|
"use strict";
|
|
571
571
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
572
572
|
function _unsupportedIterableToArray2(r, a) {
|
|
@@ -580,9 +580,9 @@ var require_unsupportedIterableToArray = __commonJS({
|
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
|
|
583
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
583
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/nonIterableRest.js
|
|
584
584
|
var require_nonIterableRest = __commonJS({
|
|
585
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
585
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/nonIterableRest.js"(exports2, module2) {
|
|
586
586
|
"use strict";
|
|
587
587
|
function _nonIterableRest2() {
|
|
588
588
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -591,9 +591,9 @@ var require_nonIterableRest = __commonJS({
|
|
|
591
591
|
}
|
|
592
592
|
});
|
|
593
593
|
|
|
594
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
594
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
595
595
|
var require_slicedToArray = __commonJS({
|
|
596
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
596
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/slicedToArray.js"(exports2, module2) {
|
|
597
597
|
"use strict";
|
|
598
598
|
var arrayWithHoles = require_arrayWithHoles();
|
|
599
599
|
var iterableToArrayLimit = require_iterableToArrayLimit();
|
|
@@ -606,15 +606,15 @@ var require_slicedToArray = __commonJS({
|
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
608
|
|
|
609
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
609
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
610
610
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
611
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
611
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports2, module2) {
|
|
612
612
|
"use strict";
|
|
613
613
|
function _objectWithoutPropertiesLoose2(r, e) {
|
|
614
614
|
if (null == r) return {};
|
|
615
615
|
var t = {};
|
|
616
616
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
617
|
-
if (e.
|
|
617
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
618
618
|
t[n] = r[n];
|
|
619
619
|
}
|
|
620
620
|
return t;
|
|
@@ -623,17 +623,17 @@ var require_objectWithoutPropertiesLoose = __commonJS({
|
|
|
623
623
|
}
|
|
624
624
|
});
|
|
625
625
|
|
|
626
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
626
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
627
627
|
var require_objectWithoutProperties = __commonJS({
|
|
628
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
628
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports2, module2) {
|
|
629
629
|
"use strict";
|
|
630
630
|
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
631
631
|
function _objectWithoutProperties2(e, t) {
|
|
632
632
|
if (null == e) return {};
|
|
633
633
|
var o, r, i = objectWithoutPropertiesLoose(e, t);
|
|
634
634
|
if (Object.getOwnPropertySymbols) {
|
|
635
|
-
var
|
|
636
|
-
for (r = 0; r <
|
|
635
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
636
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
637
637
|
}
|
|
638
638
|
return i;
|
|
639
639
|
}
|
|
@@ -641,9 +641,9 @@ var require_objectWithoutProperties = __commonJS({
|
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
643
|
|
|
644
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
644
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
645
645
|
var require_classCallCheck = __commonJS({
|
|
646
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
646
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/classCallCheck.js"(exports2, module2) {
|
|
647
647
|
"use strict";
|
|
648
648
|
function _classCallCheck2(a, n) {
|
|
649
649
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -652,9 +652,9 @@ var require_classCallCheck = __commonJS({
|
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
|
|
655
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
655
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/createClass.js
|
|
656
656
|
var require_createClass = __commonJS({
|
|
657
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
657
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/createClass.js"(exports2, module2) {
|
|
658
658
|
"use strict";
|
|
659
659
|
var toPropertyKey2 = require_toPropertyKey();
|
|
660
660
|
function _defineProperties2(e, r) {
|
|
@@ -672,9 +672,9 @@ var require_createClass = __commonJS({
|
|
|
672
672
|
}
|
|
673
673
|
});
|
|
674
674
|
|
|
675
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
675
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
|
676
676
|
var require_setPrototypeOf = __commonJS({
|
|
677
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
677
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports2, module2) {
|
|
678
678
|
"use strict";
|
|
679
679
|
function _setPrototypeOf2(t, e) {
|
|
680
680
|
return module2.exports = _setPrototypeOf2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
@@ -685,9 +685,9 @@ var require_setPrototypeOf = __commonJS({
|
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
|
|
688
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
688
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/inherits.js
|
|
689
689
|
var require_inherits = __commonJS({
|
|
690
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
690
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/inherits.js"(exports2, module2) {
|
|
691
691
|
"use strict";
|
|
692
692
|
var setPrototypeOf = require_setPrototypeOf();
|
|
693
693
|
function _inherits2(t, e) {
|
|
@@ -706,9 +706,9 @@ var require_inherits = __commonJS({
|
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
709
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
710
710
|
var require_getPrototypeOf = __commonJS({
|
|
711
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
711
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports2, module2) {
|
|
712
712
|
"use strict";
|
|
713
713
|
function _getPrototypeOf2(t) {
|
|
714
714
|
return module2.exports = _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
@@ -719,9 +719,9 @@ var require_getPrototypeOf = __commonJS({
|
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
722
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
|
|
723
723
|
var require_isNativeReflectConstruct = __commonJS({
|
|
724
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
724
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"(exports2, module2) {
|
|
725
725
|
"use strict";
|
|
726
726
|
function _isNativeReflectConstruct2() {
|
|
727
727
|
try {
|
|
@@ -737,9 +737,9 @@ var require_isNativeReflectConstruct = __commonJS({
|
|
|
737
737
|
}
|
|
738
738
|
});
|
|
739
739
|
|
|
740
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
740
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js
|
|
741
741
|
var require_assertThisInitialized = __commonJS({
|
|
742
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
742
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports2, module2) {
|
|
743
743
|
"use strict";
|
|
744
744
|
function _assertThisInitialized2(e) {
|
|
745
745
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -749,9 +749,9 @@ var require_assertThisInitialized = __commonJS({
|
|
|
749
749
|
}
|
|
750
750
|
});
|
|
751
751
|
|
|
752
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
752
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
753
753
|
var require_possibleConstructorReturn = __commonJS({
|
|
754
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
754
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports2, module2) {
|
|
755
755
|
"use strict";
|
|
756
756
|
var _typeof2 = require_typeof()["default"];
|
|
757
757
|
var assertThisInitialized = require_assertThisInitialized();
|
|
@@ -764,9 +764,9 @@ var require_possibleConstructorReturn = __commonJS({
|
|
|
764
764
|
}
|
|
765
765
|
});
|
|
766
766
|
|
|
767
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
767
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/createSuper.js
|
|
768
768
|
var require_createSuper = __commonJS({
|
|
769
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
769
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/createSuper.js"(exports2, module2) {
|
|
770
770
|
"use strict";
|
|
771
771
|
var getPrototypeOf = require_getPrototypeOf();
|
|
772
772
|
var isNativeReflectConstruct = require_isNativeReflectConstruct();
|
|
@@ -786,9 +786,9 @@ var require_createSuper = __commonJS({
|
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
788
|
|
|
789
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
789
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
|
|
790
790
|
var require_arrayWithoutHoles = __commonJS({
|
|
791
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
791
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(exports2, module2) {
|
|
792
792
|
"use strict";
|
|
793
793
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
794
794
|
function _arrayWithoutHoles2(r) {
|
|
@@ -798,9 +798,9 @@ var require_arrayWithoutHoles = __commonJS({
|
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
|
|
801
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
801
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/iterableToArray.js
|
|
802
802
|
var require_iterableToArray = __commonJS({
|
|
803
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
803
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/iterableToArray.js"(exports2, module2) {
|
|
804
804
|
"use strict";
|
|
805
805
|
function _iterableToArray2(r) {
|
|
806
806
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
@@ -809,9 +809,9 @@ var require_iterableToArray = __commonJS({
|
|
|
809
809
|
}
|
|
810
810
|
});
|
|
811
811
|
|
|
812
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
812
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/nonIterableSpread.js
|
|
813
813
|
var require_nonIterableSpread = __commonJS({
|
|
814
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
814
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/nonIterableSpread.js"(exports2, module2) {
|
|
815
815
|
"use strict";
|
|
816
816
|
function _nonIterableSpread2() {
|
|
817
817
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -820,9 +820,9 @@ var require_nonIterableSpread = __commonJS({
|
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
822
|
|
|
823
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
823
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
824
824
|
var require_toConsumableArray = __commonJS({
|
|
825
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
825
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/toConsumableArray.js"(exports2, module2) {
|
|
826
826
|
"use strict";
|
|
827
827
|
var arrayWithoutHoles = require_arrayWithoutHoles();
|
|
828
828
|
var iterableToArray = require_iterableToArray();
|
|
@@ -835,9 +835,9 @@ var require_toConsumableArray = __commonJS({
|
|
|
835
835
|
}
|
|
836
836
|
});
|
|
837
837
|
|
|
838
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
838
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
|
|
839
839
|
var require_taggedTemplateLiteral = __commonJS({
|
|
840
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
840
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"(exports2, module2) {
|
|
841
841
|
"use strict";
|
|
842
842
|
function _taggedTemplateLiteral2(e, t) {
|
|
843
843
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
@@ -896,6 +896,7 @@ __export(index_exports, {
|
|
|
896
896
|
Menu: () => _Menu,
|
|
897
897
|
Modal: () => _Modal,
|
|
898
898
|
Multiselect: () => Multiselect,
|
|
899
|
+
NonModal: () => NonModal,
|
|
899
900
|
NumberField: () => _NumberField,
|
|
900
901
|
OverlayContainerProvider: () => OverlayContainerProvider,
|
|
901
902
|
Pagination: () => _Pagination,
|
|
@@ -1455,7 +1456,7 @@ var OverlayContainerProvider = OverlayContainerContext.Provider;
|
|
|
1455
1456
|
var usePortalContainer = () => {
|
|
1456
1457
|
const portalContainer = (0, import_react12.useContext)(OverlayContainerContext);
|
|
1457
1458
|
const isSSR = (0, import_ssr.useIsSSR)();
|
|
1458
|
-
const portal = isSSR ?
|
|
1459
|
+
const portal = isSSR ? void 0 : portalContainer ? document.getElementById(portalContainer) || void 0 : document.body;
|
|
1459
1460
|
return portal;
|
|
1460
1461
|
};
|
|
1461
1462
|
|
|
@@ -3236,11 +3237,9 @@ SectionMessage.Title = SectionMessageTitle;
|
|
|
3236
3237
|
SectionMessage.Content = SectionMessageContent;
|
|
3237
3238
|
|
|
3238
3239
|
// src/Multiselect/Multiselect.tsx
|
|
3239
|
-
var import_react46 = require("react");
|
|
3240
3240
|
var import_react_aria_components43 = require("react-aria-components");
|
|
3241
|
-
var import_react_aria_components44 = require("react-aria-components");
|
|
3242
3241
|
|
|
3243
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3242
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
3244
3243
|
function _typeof(o) {
|
|
3245
3244
|
"@babel/helpers - typeof";
|
|
3246
3245
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -3250,7 +3249,7 @@ function _typeof(o) {
|
|
|
3250
3249
|
}, _typeof(o);
|
|
3251
3250
|
}
|
|
3252
3251
|
|
|
3253
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3252
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3254
3253
|
function toPrimitive(t, r) {
|
|
3255
3254
|
if ("object" != _typeof(t) || !t) return t;
|
|
3256
3255
|
var e = t[Symbol.toPrimitive];
|
|
@@ -3262,13 +3261,13 @@ function toPrimitive(t, r) {
|
|
|
3262
3261
|
return ("string" === r ? String : Number)(t);
|
|
3263
3262
|
}
|
|
3264
3263
|
|
|
3265
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3264
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
3266
3265
|
function toPropertyKey(t) {
|
|
3267
3266
|
var i = toPrimitive(t, "string");
|
|
3268
3267
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
3269
3268
|
}
|
|
3270
3269
|
|
|
3271
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3270
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3272
3271
|
function _defineProperty(e, r, t) {
|
|
3273
3272
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3274
3273
|
value: t,
|
|
@@ -3278,7 +3277,7 @@ function _defineProperty(e, r, t) {
|
|
|
3278
3277
|
}) : e[r] = t, e;
|
|
3279
3278
|
}
|
|
3280
3279
|
|
|
3281
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3280
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3282
3281
|
function ownKeys(e, r) {
|
|
3283
3282
|
var t = Object.keys(e);
|
|
3284
3283
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3301,12 +3300,12 @@ function _objectSpread2(e) {
|
|
|
3301
3300
|
return e;
|
|
3302
3301
|
}
|
|
3303
3302
|
|
|
3304
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3303
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
3305
3304
|
function _arrayWithHoles(r) {
|
|
3306
3305
|
if (Array.isArray(r)) return r;
|
|
3307
3306
|
}
|
|
3308
3307
|
|
|
3309
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3308
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
3310
3309
|
function _iterableToArrayLimit(r, l) {
|
|
3311
3310
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3312
3311
|
if (null != t) {
|
|
@@ -3329,14 +3328,14 @@ function _iterableToArrayLimit(r, l) {
|
|
|
3329
3328
|
}
|
|
3330
3329
|
}
|
|
3331
3330
|
|
|
3332
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3331
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
3333
3332
|
function _arrayLikeToArray(r, a) {
|
|
3334
3333
|
(null == a || a > r.length) && (a = r.length);
|
|
3335
3334
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3336
3335
|
return n;
|
|
3337
3336
|
}
|
|
3338
3337
|
|
|
3339
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3338
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3340
3339
|
function _unsupportedIterableToArray(r, a) {
|
|
3341
3340
|
if (r) {
|
|
3342
3341
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -3345,39 +3344,39 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
3345
3344
|
}
|
|
3346
3345
|
}
|
|
3347
3346
|
|
|
3348
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3347
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
3349
3348
|
function _nonIterableRest() {
|
|
3350
3349
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3351
3350
|
}
|
|
3352
3351
|
|
|
3353
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3352
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
3354
3353
|
function _slicedToArray(r, e) {
|
|
3355
3354
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
3356
3355
|
}
|
|
3357
3356
|
|
|
3358
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3357
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
3359
3358
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3360
3359
|
if (null == r) return {};
|
|
3361
3360
|
var t = {};
|
|
3362
3361
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3363
|
-
if (e.
|
|
3362
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
3364
3363
|
t[n] = r[n];
|
|
3365
3364
|
}
|
|
3366
3365
|
return t;
|
|
3367
3366
|
}
|
|
3368
3367
|
|
|
3369
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3368
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
3370
3369
|
function _objectWithoutProperties(e, t) {
|
|
3371
3370
|
if (null == e) return {};
|
|
3372
3371
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
3373
3372
|
if (Object.getOwnPropertySymbols) {
|
|
3374
|
-
var
|
|
3375
|
-
for (r = 0; r <
|
|
3373
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3374
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
3376
3375
|
}
|
|
3377
3376
|
return i;
|
|
3378
3377
|
}
|
|
3379
3378
|
|
|
3380
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
3379
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3381
3380
|
var import_react38 = require("react");
|
|
3382
3381
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3383
3382
|
function useStateManager(_ref3) {
|
|
@@ -3424,7 +3423,7 @@ function useStateManager(_ref3) {
|
|
|
3424
3423
|
});
|
|
3425
3424
|
}
|
|
3426
3425
|
|
|
3427
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3426
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3428
3427
|
function _extends() {
|
|
3429
3428
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3430
3429
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3435,16 +3434,16 @@ function _extends() {
|
|
|
3435
3434
|
}, _extends.apply(null, arguments);
|
|
3436
3435
|
}
|
|
3437
3436
|
|
|
3438
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
3437
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
3439
3438
|
var React11 = __toESM(require("react"));
|
|
3440
3439
|
var import_react45 = require("react");
|
|
3441
3440
|
|
|
3442
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3441
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3443
3442
|
function _classCallCheck(a, n) {
|
|
3444
3443
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3445
3444
|
}
|
|
3446
3445
|
|
|
3447
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3446
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
3448
3447
|
function _defineProperties(e, r) {
|
|
3449
3448
|
for (var t = 0; t < r.length; t++) {
|
|
3450
3449
|
var o = r[t];
|
|
@@ -3457,14 +3456,14 @@ function _createClass(e, r, t) {
|
|
|
3457
3456
|
}), e;
|
|
3458
3457
|
}
|
|
3459
3458
|
|
|
3460
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3459
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
3461
3460
|
function _setPrototypeOf(t, e) {
|
|
3462
3461
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3463
3462
|
return t2.__proto__ = e2, t2;
|
|
3464
3463
|
}, _setPrototypeOf(t, e);
|
|
3465
3464
|
}
|
|
3466
3465
|
|
|
3467
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3466
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
3468
3467
|
function _inherits(t, e) {
|
|
3469
3468
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
3470
3469
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -3478,14 +3477,14 @@ function _inherits(t, e) {
|
|
|
3478
3477
|
}), e && _setPrototypeOf(t, e);
|
|
3479
3478
|
}
|
|
3480
3479
|
|
|
3481
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3480
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
3482
3481
|
function _getPrototypeOf(t) {
|
|
3483
3482
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
3484
3483
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
3485
3484
|
}, _getPrototypeOf(t);
|
|
3486
3485
|
}
|
|
3487
3486
|
|
|
3488
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3487
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
3489
3488
|
function _isNativeReflectConstruct() {
|
|
3490
3489
|
try {
|
|
3491
3490
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -3497,20 +3496,20 @@ function _isNativeReflectConstruct() {
|
|
|
3497
3496
|
})();
|
|
3498
3497
|
}
|
|
3499
3498
|
|
|
3500
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3499
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
3501
3500
|
function _assertThisInitialized(e) {
|
|
3502
3501
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3503
3502
|
return e;
|
|
3504
3503
|
}
|
|
3505
3504
|
|
|
3506
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3505
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
3507
3506
|
function _possibleConstructorReturn(t, e) {
|
|
3508
3507
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
3509
3508
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3510
3509
|
return _assertThisInitialized(t);
|
|
3511
3510
|
}
|
|
3512
3511
|
|
|
3513
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3512
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
3514
3513
|
function _createSuper(t) {
|
|
3515
3514
|
var r = _isNativeReflectConstruct();
|
|
3516
3515
|
return function() {
|
|
@@ -3523,31 +3522,31 @@ function _createSuper(t) {
|
|
|
3523
3522
|
};
|
|
3524
3523
|
}
|
|
3525
3524
|
|
|
3526
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3525
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
3527
3526
|
function _arrayWithoutHoles(r) {
|
|
3528
3527
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
3529
3528
|
}
|
|
3530
3529
|
|
|
3531
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3530
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
3532
3531
|
function _iterableToArray(r) {
|
|
3533
3532
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
3534
3533
|
}
|
|
3535
3534
|
|
|
3536
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3535
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
3537
3536
|
function _nonIterableSpread() {
|
|
3538
3537
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3539
3538
|
}
|
|
3540
3539
|
|
|
3541
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3540
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
3542
3541
|
function _toConsumableArray(r) {
|
|
3543
3542
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
3544
3543
|
}
|
|
3545
3544
|
|
|
3546
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
3545
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
3547
3546
|
var React10 = __toESM(require("react"));
|
|
3548
3547
|
var import_react43 = require("react");
|
|
3549
3548
|
|
|
3550
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.
|
|
3549
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
3551
3550
|
var React8 = __toESM(require("react"));
|
|
3552
3551
|
var import_react39 = require("react");
|
|
3553
3552
|
|
|
@@ -4712,7 +4711,7 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
4712
4711
|
};
|
|
4713
4712
|
}
|
|
4714
4713
|
|
|
4715
|
-
// ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.
|
|
4714
|
+
// ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.1.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
|
|
4716
4715
|
var React7 = __toESM(require("react"));
|
|
4717
4716
|
var isBrowser3 = typeof document !== "undefined";
|
|
4718
4717
|
var syncFallback = function syncFallback2(create) {
|
|
@@ -4721,7 +4720,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
4721
4720
|
var useInsertionEffect2 = React7["useInsertionEffect"] ? React7["useInsertionEffect"] : false;
|
|
4722
4721
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
4723
4722
|
|
|
4724
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.
|
|
4723
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
4725
4724
|
var isDevelopment3 = false;
|
|
4726
4725
|
var isBrowser4 = typeof document !== "undefined";
|
|
4727
4726
|
var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
@@ -4825,7 +4824,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
4825
4824
|
});
|
|
4826
4825
|
var Emotion$1 = Emotion;
|
|
4827
4826
|
|
|
4828
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.
|
|
4827
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
4829
4828
|
var React9 = __toESM(require("react"));
|
|
4830
4829
|
var import_extends2 = __toESM(require_extends());
|
|
4831
4830
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
@@ -4867,7 +4866,7 @@ function keyframes() {
|
|
|
4867
4866
|
};
|
|
4868
4867
|
}
|
|
4869
4868
|
|
|
4870
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
4869
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
|
|
4871
4870
|
function _taggedTemplateLiteral(e, t) {
|
|
4872
4871
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
4873
4872
|
raw: {
|
|
@@ -4876,7 +4875,7 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
4876
4875
|
}));
|
|
4877
4876
|
}
|
|
4878
4877
|
|
|
4879
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
4878
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
4880
4879
|
var import_react42 = require("react");
|
|
4881
4880
|
var import_react_dom = require("react-dom");
|
|
4882
4881
|
|
|
@@ -5277,12 +5276,12 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
5277
5276
|
};
|
|
5278
5277
|
}
|
|
5279
5278
|
|
|
5280
|
-
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.
|
|
5279
|
+
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.0_react@19.1.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
5281
5280
|
var import_react40 = require("react");
|
|
5282
5281
|
var isClient = typeof document !== "undefined";
|
|
5283
5282
|
var index = isClient ? import_react40.useLayoutEffect : import_react40.useEffect;
|
|
5284
5283
|
|
|
5285
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
5284
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5286
5285
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5287
5286
|
var noop = function noop2() {
|
|
5288
5287
|
};
|
|
@@ -6356,7 +6355,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6356
6355
|
return memoized;
|
|
6357
6356
|
}
|
|
6358
6357
|
|
|
6359
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
6358
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
6360
6359
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6361
6360
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
6362
6361
|
}
|
|
@@ -8201,7 +8200,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8201
8200
|
// ==============================
|
|
8202
8201
|
function renderInput() {
|
|
8203
8202
|
var _this$props8 = this.props, isDisabled = _this$props8.isDisabled, isSearchable = _this$props8.isSearchable, inputId = _this$props8.inputId, inputValue = _this$props8.inputValue, tabIndex = _this$props8.tabIndex, form = _this$props8.form, menuIsOpen = _this$props8.menuIsOpen, required = _this$props8.required;
|
|
8204
|
-
var _this$getComponents = this.getComponents(),
|
|
8203
|
+
var _this$getComponents = this.getComponents(), Input6 = _this$getComponents.Input;
|
|
8205
8204
|
var _this$state4 = this.state, inputIsHidden = _this$state4.inputIsHidden, ariaSelection = _this$state4.ariaSelection;
|
|
8206
8205
|
var commonProps = this.commonProps;
|
|
8207
8206
|
var id = inputId || this.getElementId("input");
|
|
@@ -8239,7 +8238,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8239
8238
|
value: ""
|
|
8240
8239
|
}, ariaAttributes));
|
|
8241
8240
|
}
|
|
8242
|
-
return /* @__PURE__ */ React10.createElement(
|
|
8241
|
+
return /* @__PURE__ */ React10.createElement(Input6, _extends({}, commonProps, {
|
|
8243
8242
|
autoCapitalize: "none",
|
|
8244
8243
|
autoComplete: "off",
|
|
8245
8244
|
autoCorrect: "off",
|
|
@@ -8652,7 +8651,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8652
8651
|
}(import_react43.Component);
|
|
8653
8652
|
Select.defaultProps = defaultProps;
|
|
8654
8653
|
|
|
8655
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
8654
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
8656
8655
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
8657
8656
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
8658
8657
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -8673,7 +8672,7 @@ var StateManagedSelect = /* @__PURE__ */ (0, import_react45.forwardRef)(function
|
|
|
8673
8672
|
});
|
|
8674
8673
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
8675
8674
|
|
|
8676
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
8675
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
8677
8676
|
var import_utils5 = require("@react-aria/utils");
|
|
8678
8677
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
8679
8678
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
@@ -8698,7 +8697,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
|
8698
8697
|
};
|
|
8699
8698
|
}
|
|
8700
8699
|
|
|
8701
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
8700
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
|
|
8702
8701
|
var import_utils6 = require("@react-aria/utils");
|
|
8703
8702
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
8704
8703
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
@@ -8736,6 +8735,7 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
8736
8735
|
}
|
|
8737
8736
|
|
|
8738
8737
|
// src/Multiselect/Multiselect.tsx
|
|
8738
|
+
var import_utils7 = require("@react-aria/utils");
|
|
8739
8739
|
var import_system64 = require("@marigold/system");
|
|
8740
8740
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
8741
8741
|
var propsToBeRemoved = [
|
|
@@ -8764,7 +8764,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8764
8764
|
{}
|
|
8765
8765
|
);
|
|
8766
8766
|
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
8767
|
-
|
|
8767
|
+
import_react_aria_components43.Input,
|
|
8768
8768
|
{
|
|
8769
8769
|
disabled: props.isDisabled,
|
|
8770
8770
|
ref: innerRef,
|
|
@@ -8774,11 +8774,11 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8774
8774
|
);
|
|
8775
8775
|
};
|
|
8776
8776
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
8777
|
-
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
8777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_aria_components43.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
|
|
8778
8778
|
};
|
|
8779
8779
|
var getClassNames = (classNames3) => ({
|
|
8780
8780
|
control: () => (0, import_system64.cn)(
|
|
8781
|
-
"relative flex items-center box-border flex-wrap justify-between
|
|
8781
|
+
"relative flex items-center box-border flex-wrap justify-between ",
|
|
8782
8782
|
classNames3.container
|
|
8783
8783
|
),
|
|
8784
8784
|
container: () => "pointer-events-auto",
|
|
@@ -8795,6 +8795,7 @@ var Multiselect = ({
|
|
|
8795
8795
|
disabled,
|
|
8796
8796
|
readOnly = false,
|
|
8797
8797
|
items,
|
|
8798
|
+
selectedItems,
|
|
8798
8799
|
defaultSelectedItems,
|
|
8799
8800
|
defaultValue,
|
|
8800
8801
|
error,
|
|
@@ -8816,6 +8817,7 @@ var Multiselect = ({
|
|
|
8816
8817
|
options: items,
|
|
8817
8818
|
defaultInputValue: defaultValue,
|
|
8818
8819
|
defaultValue: defaultSelectedItems,
|
|
8820
|
+
value: selectedItems,
|
|
8819
8821
|
onInputChange: onChange2,
|
|
8820
8822
|
onChange: onSelectionChange,
|
|
8821
8823
|
...rest
|
|
@@ -8887,7 +8889,7 @@ var Multiselect = ({
|
|
|
8887
8889
|
inputId: fieldProps.id,
|
|
8888
8890
|
"aria-invalid": error,
|
|
8889
8891
|
isClearable: false,
|
|
8890
|
-
instanceId: (0,
|
|
8892
|
+
instanceId: (0, import_utils7.useId)(),
|
|
8891
8893
|
isSearchable: !readOnly,
|
|
8892
8894
|
isMulti: true,
|
|
8893
8895
|
closeMenuOnSelect: false,
|
|
@@ -8918,12 +8920,12 @@ var Multiselect = ({
|
|
|
8918
8920
|
};
|
|
8919
8921
|
|
|
8920
8922
|
// src/NumberField/NumberField.tsx
|
|
8921
|
-
var
|
|
8922
|
-
var
|
|
8923
|
+
var import_react46 = require("react");
|
|
8924
|
+
var import_react_aria_components45 = require("react-aria-components");
|
|
8923
8925
|
var import_system66 = require("@marigold/system");
|
|
8924
8926
|
|
|
8925
8927
|
// src/NumberField/StepButton.tsx
|
|
8926
|
-
var
|
|
8928
|
+
var import_react_aria_components44 = require("react-aria-components");
|
|
8927
8929
|
var import_system65 = require("@marigold/system");
|
|
8928
8930
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
8929
8931
|
var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
@@ -8945,7 +8947,7 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width:
|
|
|
8945
8947
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
8946
8948
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
8947
8949
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8948
|
-
|
|
8950
|
+
import_react_aria_components44.Button,
|
|
8949
8951
|
{
|
|
8950
8952
|
className: (0, import_system65.cn)(
|
|
8951
8953
|
[
|
|
@@ -8962,7 +8964,7 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
8962
8964
|
|
|
8963
8965
|
// src/NumberField/NumberField.tsx
|
|
8964
8966
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
8965
|
-
var _NumberField = (0,
|
|
8967
|
+
var _NumberField = (0, import_react46.forwardRef)(
|
|
8966
8968
|
({
|
|
8967
8969
|
variant,
|
|
8968
8970
|
size: size2,
|
|
@@ -8989,10 +8991,11 @@ var _NumberField = (0, import_react47.forwardRef)(
|
|
|
8989
8991
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8990
8992
|
FieldBase,
|
|
8991
8993
|
{
|
|
8992
|
-
as:
|
|
8994
|
+
as: import_react_aria_components45.NumberField,
|
|
8993
8995
|
...props,
|
|
8994
8996
|
"data-readonly": readOnly ? "true" : void 0,
|
|
8995
|
-
|
|
8997
|
+
"data-stepper": showStepper ? "true" : void 0,
|
|
8998
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react_aria_components45.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames3.group), children: [
|
|
8996
8999
|
showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8997
9000
|
_StepButton,
|
|
8998
9001
|
{
|
|
@@ -9001,15 +9004,13 @@ var _NumberField = (0, import_react47.forwardRef)(
|
|
|
9001
9004
|
slot: "decrement"
|
|
9002
9005
|
}
|
|
9003
9006
|
),
|
|
9004
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9005
|
-
|
|
9007
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9008
|
+
import_react_aria_components45.Input,
|
|
9006
9009
|
{
|
|
9007
9010
|
ref,
|
|
9008
|
-
|
|
9009
|
-
size: size2,
|
|
9010
|
-
className: classNames3.input
|
|
9011
|
+
className: (0, import_system66.cn)("h-full flex-1 outline-none", classNames3.input)
|
|
9011
9012
|
}
|
|
9012
|
-
)
|
|
9013
|
+
),
|
|
9013
9014
|
showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9014
9015
|
_StepButton,
|
|
9015
9016
|
{
|
|
@@ -9024,14 +9025,168 @@ var _NumberField = (0, import_react47.forwardRef)(
|
|
|
9024
9025
|
}
|
|
9025
9026
|
);
|
|
9026
9027
|
|
|
9028
|
+
// src/Overlay/NonModal.tsx
|
|
9029
|
+
var import_react48 = require("react");
|
|
9030
|
+
var import_react_aria_components46 = require("react-aria-components");
|
|
9031
|
+
var import_react_stately = require("react-stately");
|
|
9032
|
+
var import_focus = require("@react-aria/focus");
|
|
9033
|
+
var import_overlays2 = require("@react-aria/overlays");
|
|
9034
|
+
var import_ssr2 = require("@react-aria/ssr");
|
|
9035
|
+
var import_utils8 = require("@react-aria/utils");
|
|
9036
|
+
|
|
9037
|
+
// src/utils/useRenderProps.tsx
|
|
9038
|
+
var import_react47 = require("react");
|
|
9039
|
+
function useRenderProps(props) {
|
|
9040
|
+
let {
|
|
9041
|
+
className,
|
|
9042
|
+
style,
|
|
9043
|
+
children,
|
|
9044
|
+
defaultClassName = void 0,
|
|
9045
|
+
defaultChildren = void 0,
|
|
9046
|
+
defaultStyle,
|
|
9047
|
+
values
|
|
9048
|
+
} = props;
|
|
9049
|
+
return (0, import_react47.useMemo)(() => {
|
|
9050
|
+
let computedClassName;
|
|
9051
|
+
let computedStyle;
|
|
9052
|
+
let computedChildren;
|
|
9053
|
+
if (typeof className === "function") {
|
|
9054
|
+
computedClassName = className({ ...values, defaultClassName });
|
|
9055
|
+
} else {
|
|
9056
|
+
computedClassName = className;
|
|
9057
|
+
}
|
|
9058
|
+
if (typeof style === "function") {
|
|
9059
|
+
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
9060
|
+
} else {
|
|
9061
|
+
computedStyle = style;
|
|
9062
|
+
}
|
|
9063
|
+
if (typeof children === "function") {
|
|
9064
|
+
computedChildren = children({ ...values, defaultChildren });
|
|
9065
|
+
} else if (children == null) {
|
|
9066
|
+
computedChildren = defaultChildren;
|
|
9067
|
+
} else {
|
|
9068
|
+
computedChildren = children;
|
|
9069
|
+
}
|
|
9070
|
+
return {
|
|
9071
|
+
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
9072
|
+
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
9073
|
+
children: computedChildren != null ? computedChildren : defaultChildren,
|
|
9074
|
+
"data-rac": ""
|
|
9075
|
+
};
|
|
9076
|
+
}, [
|
|
9077
|
+
className,
|
|
9078
|
+
style,
|
|
9079
|
+
children,
|
|
9080
|
+
defaultClassName,
|
|
9081
|
+
defaultChildren,
|
|
9082
|
+
defaultStyle,
|
|
9083
|
+
values
|
|
9084
|
+
]);
|
|
9085
|
+
}
|
|
9086
|
+
|
|
9087
|
+
// src/Overlay/useNonModal.ts
|
|
9088
|
+
var import_overlays = require("@react-aria/overlays");
|
|
9089
|
+
var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
9090
|
+
let { overlayProps } = (0, import_overlays.useOverlay)(
|
|
9091
|
+
{
|
|
9092
|
+
isOpen: state.isOpen,
|
|
9093
|
+
onClose: state.close,
|
|
9094
|
+
shouldCloseOnBlur: false,
|
|
9095
|
+
isDismissable: false,
|
|
9096
|
+
isKeyboardDismissDisabled: keyboardDismissable ? false : true
|
|
9097
|
+
},
|
|
9098
|
+
nonModalRef
|
|
9099
|
+
);
|
|
9100
|
+
return {
|
|
9101
|
+
nonModalProps: overlayProps
|
|
9102
|
+
};
|
|
9103
|
+
};
|
|
9104
|
+
|
|
9105
|
+
// src/Overlay/NonModal.tsx
|
|
9106
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
9107
|
+
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
9108
|
+
const { nonModalProps } = useNonModal(props, state);
|
|
9109
|
+
const ref = props.nonModalRef;
|
|
9110
|
+
const portalContainer = usePortalContainer();
|
|
9111
|
+
const isEntering = (0, import_utils8.useEnterAnimation)(ref) || props.isEntering || false;
|
|
9112
|
+
const renderProps = useRenderProps({
|
|
9113
|
+
...props,
|
|
9114
|
+
defaultClassName: "react-aria-NonModalOverlay",
|
|
9115
|
+
values: {
|
|
9116
|
+
isEntering,
|
|
9117
|
+
isExiting,
|
|
9118
|
+
state
|
|
9119
|
+
}
|
|
9120
|
+
});
|
|
9121
|
+
const viewport = (0, import_utils8.useViewportSize)();
|
|
9122
|
+
const style = {
|
|
9123
|
+
...renderProps.style,
|
|
9124
|
+
"--visual-viewport-height": viewport.height + "px"
|
|
9125
|
+
};
|
|
9126
|
+
const overlay = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
9127
|
+
"div",
|
|
9128
|
+
{
|
|
9129
|
+
...(0, import_utils8.mergeProps)((0, import_utils8.filterDOMProps)(props), nonModalProps),
|
|
9130
|
+
...renderProps,
|
|
9131
|
+
tabIndex: -1,
|
|
9132
|
+
"aria-label": props["aria-label"],
|
|
9133
|
+
"aria-labelledby": props["aria-labelledby"],
|
|
9134
|
+
ref,
|
|
9135
|
+
slot: props.slot || void 0,
|
|
9136
|
+
style,
|
|
9137
|
+
"data-entering": isEntering || void 0,
|
|
9138
|
+
"data-exiting": isExiting || void 0,
|
|
9139
|
+
children: [
|
|
9140
|
+
renderProps.children,
|
|
9141
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
|
|
9142
|
+
]
|
|
9143
|
+
}
|
|
9144
|
+
);
|
|
9145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9146
|
+
import_overlays2.Overlay,
|
|
9147
|
+
{
|
|
9148
|
+
isExiting,
|
|
9149
|
+
portalContainer,
|
|
9150
|
+
disableFocusManagement: true,
|
|
9151
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_focus.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_aria_components46.Provider, { values: [[import_react_aria_components46.OverlayTriggerStateContext, state]], children: overlay }) })
|
|
9152
|
+
}
|
|
9153
|
+
);
|
|
9154
|
+
};
|
|
9155
|
+
var NonModal = (0, import_react48.forwardRef)(
|
|
9156
|
+
({ open, ...rest }, ref) => {
|
|
9157
|
+
const props = {
|
|
9158
|
+
isOpen: open,
|
|
9159
|
+
...rest
|
|
9160
|
+
};
|
|
9161
|
+
ref = (0, import_utils8.useObjectRef)(ref);
|
|
9162
|
+
const contextState = (0, import_react48.useContext)(import_react_aria_components46.OverlayTriggerStateContext);
|
|
9163
|
+
const localState = (0, import_react_stately.useOverlayTriggerState)(props);
|
|
9164
|
+
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
9165
|
+
const isExiting = (0, import_utils8.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
|
|
9166
|
+
const isSSR = (0, import_ssr2.useIsSSR)();
|
|
9167
|
+
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
9168
|
+
return null;
|
|
9169
|
+
}
|
|
9170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9171
|
+
NonModalInner,
|
|
9172
|
+
{
|
|
9173
|
+
...props,
|
|
9174
|
+
nonModalRef: ref,
|
|
9175
|
+
state,
|
|
9176
|
+
isExiting
|
|
9177
|
+
}
|
|
9178
|
+
);
|
|
9179
|
+
}
|
|
9180
|
+
);
|
|
9181
|
+
|
|
9027
9182
|
// src/Pagination/Pagination.tsx
|
|
9028
|
-
var
|
|
9183
|
+
var import_react52 = require("react");
|
|
9029
9184
|
var import_system69 = require("@marigold/system");
|
|
9030
9185
|
|
|
9031
9186
|
// src/Pagination/Ellipsis.tsx
|
|
9032
|
-
var
|
|
9187
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
9033
9188
|
var Ellipsis = () => {
|
|
9034
|
-
return /* @__PURE__ */ (0,
|
|
9189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
9035
9190
|
"span",
|
|
9036
9191
|
{
|
|
9037
9192
|
className: "text-text-base flex h-8 w-8 items-center justify-center",
|
|
@@ -9042,12 +9197,12 @@ var Ellipsis = () => {
|
|
|
9042
9197
|
};
|
|
9043
9198
|
|
|
9044
9199
|
// src/Pagination/NavigationButton.tsx
|
|
9045
|
-
var
|
|
9200
|
+
var import_react49 = __toESM(require("react"));
|
|
9046
9201
|
var import_button2 = require("@react-aria/button");
|
|
9047
9202
|
var import_system67 = require("@marigold/system");
|
|
9048
|
-
var
|
|
9203
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
9049
9204
|
var NavigationButton = (props) => {
|
|
9050
|
-
const ref =
|
|
9205
|
+
const ref = import_react49.default.useRef(null);
|
|
9051
9206
|
const classNames3 = (0, import_system67.useClassNames)({
|
|
9052
9207
|
component: "Pagination"
|
|
9053
9208
|
});
|
|
@@ -9061,13 +9216,13 @@ var NavigationButton = (props) => {
|
|
|
9061
9216
|
position: position2,
|
|
9062
9217
|
...rest
|
|
9063
9218
|
} = props;
|
|
9064
|
-
(0,
|
|
9219
|
+
(0, import_react49.useEffect)(() => {
|
|
9065
9220
|
if (registerRef) {
|
|
9066
9221
|
registerRef(ref.current);
|
|
9067
9222
|
return () => registerRef(null);
|
|
9068
9223
|
}
|
|
9069
9224
|
}, [registerRef]);
|
|
9070
|
-
return /* @__PURE__ */ (0,
|
|
9225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
9071
9226
|
"button",
|
|
9072
9227
|
{
|
|
9073
9228
|
ref,
|
|
@@ -9086,24 +9241,24 @@ var NavigationButton = (props) => {
|
|
|
9086
9241
|
};
|
|
9087
9242
|
|
|
9088
9243
|
// src/Pagination/PageButton.tsx
|
|
9089
|
-
var
|
|
9244
|
+
var import_react50 = require("react");
|
|
9090
9245
|
var import_button3 = require("@react-aria/button");
|
|
9091
9246
|
var import_system68 = require("@marigold/system");
|
|
9092
|
-
var
|
|
9247
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
9093
9248
|
var PageButton = (props) => {
|
|
9094
|
-
const ref = (0,
|
|
9249
|
+
const ref = (0, import_react50.useRef)(null);
|
|
9095
9250
|
const classNames3 = (0, import_system68.useClassNames)({
|
|
9096
9251
|
component: "Pagination"
|
|
9097
9252
|
});
|
|
9098
9253
|
let { buttonProps } = (0, import_button3.useButton)(props, ref);
|
|
9099
9254
|
let { page, selected, registerRef, isDisabled } = props;
|
|
9100
|
-
(0,
|
|
9255
|
+
(0, import_react50.useEffect)(() => {
|
|
9101
9256
|
if (registerRef) {
|
|
9102
9257
|
registerRef(ref.current);
|
|
9103
9258
|
return () => registerRef(null);
|
|
9104
9259
|
}
|
|
9105
9260
|
}, [registerRef]);
|
|
9106
|
-
return /* @__PURE__ */ (0,
|
|
9261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9107
9262
|
"button",
|
|
9108
9263
|
{
|
|
9109
9264
|
ref,
|
|
@@ -9120,7 +9275,7 @@ var PageButton = (props) => {
|
|
|
9120
9275
|
};
|
|
9121
9276
|
|
|
9122
9277
|
// src/Pagination/useKeyboardNavigation.tsx
|
|
9123
|
-
var
|
|
9278
|
+
var import_react51 = require("react");
|
|
9124
9279
|
var import_interactions = require("@react-aria/interactions");
|
|
9125
9280
|
var NavigationTypes = {
|
|
9126
9281
|
Prev: "prev",
|
|
@@ -9134,14 +9289,14 @@ var useKeyboardNavigation = ({
|
|
|
9134
9289
|
onChange: onChange2 = () => {
|
|
9135
9290
|
}
|
|
9136
9291
|
}) => {
|
|
9137
|
-
const containerRef = (0,
|
|
9138
|
-
const [focusedItem, setFocusedItem] = (0,
|
|
9292
|
+
const containerRef = (0, import_react51.useRef)(null);
|
|
9293
|
+
const [focusedItem, setFocusedItem] = (0, import_react51.useState)({
|
|
9139
9294
|
type: "page",
|
|
9140
9295
|
value: page
|
|
9141
9296
|
});
|
|
9142
|
-
const navigationItems = (0,
|
|
9143
|
-
const buttonRefs = (0,
|
|
9144
|
-
const isItemDisabled = (0,
|
|
9297
|
+
const navigationItems = (0, import_react51.useRef)([]);
|
|
9298
|
+
const buttonRefs = (0, import_react51.useRef)(/* @__PURE__ */ new Map());
|
|
9299
|
+
const isItemDisabled = (0, import_react51.useCallback)(
|
|
9145
9300
|
(item) => {
|
|
9146
9301
|
if (item.type === NavigationTypes.Prev) return page <= 1;
|
|
9147
9302
|
if (item.type === NavigationTypes.Next) return page >= totalPages;
|
|
@@ -9149,7 +9304,7 @@ var useKeyboardNavigation = ({
|
|
|
9149
9304
|
},
|
|
9150
9305
|
[page, totalPages]
|
|
9151
9306
|
);
|
|
9152
|
-
const findNextFocusableItem = (0,
|
|
9307
|
+
const findNextFocusableItem = (0, import_react51.useCallback)(
|
|
9153
9308
|
(current, direction) => {
|
|
9154
9309
|
const items = navigationItems.current.filter(
|
|
9155
9310
|
(item) => !isItemDisabled(item)
|
|
@@ -9165,7 +9320,7 @@ var useKeyboardNavigation = ({
|
|
|
9165
9320
|
},
|
|
9166
9321
|
[isItemDisabled, page]
|
|
9167
9322
|
);
|
|
9168
|
-
const focusItem = (0,
|
|
9323
|
+
const focusItem = (0, import_react51.useCallback)(
|
|
9169
9324
|
(item) => {
|
|
9170
9325
|
if (isItemDisabled(item)) return;
|
|
9171
9326
|
const key = `${item.type}-${item.value}`;
|
|
@@ -9212,7 +9367,7 @@ var useKeyboardNavigation = ({
|
|
|
9212
9367
|
}
|
|
9213
9368
|
}
|
|
9214
9369
|
});
|
|
9215
|
-
const registerRef = (0,
|
|
9370
|
+
const registerRef = (0, import_react51.useCallback)(
|
|
9216
9371
|
(type, value, ref) => {
|
|
9217
9372
|
const key = `${type}-${value}`;
|
|
9218
9373
|
if (ref) {
|
|
@@ -9223,7 +9378,7 @@ var useKeyboardNavigation = ({
|
|
|
9223
9378
|
},
|
|
9224
9379
|
[]
|
|
9225
9380
|
);
|
|
9226
|
-
const setNavigationItems = (0,
|
|
9381
|
+
const setNavigationItems = (0, import_react51.useCallback)((items) => {
|
|
9227
9382
|
navigationItems.current = items;
|
|
9228
9383
|
}, []);
|
|
9229
9384
|
return {
|
|
@@ -9266,7 +9421,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9266
9421
|
};
|
|
9267
9422
|
|
|
9268
9423
|
// src/Pagination/Pagination.tsx
|
|
9269
|
-
var
|
|
9424
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
9270
9425
|
var _Pagination = ({
|
|
9271
9426
|
defaultPage = 1,
|
|
9272
9427
|
page,
|
|
@@ -9276,13 +9431,13 @@ var _Pagination = ({
|
|
|
9276
9431
|
},
|
|
9277
9432
|
controlLabels
|
|
9278
9433
|
}) => {
|
|
9279
|
-
const [currentPage, setCurrentPage] = (0,
|
|
9434
|
+
const [currentPage, setCurrentPage] = (0, import_react52.useState)(page != null ? page : defaultPage);
|
|
9280
9435
|
const totalPages = Math.ceil(totalItems / pageSize);
|
|
9281
|
-
const isFirstRender = (0,
|
|
9436
|
+
const isFirstRender = (0, import_react52.useRef)(true);
|
|
9282
9437
|
const classNames3 = (0, import_system69.useClassNames)({
|
|
9283
9438
|
component: "Pagination"
|
|
9284
9439
|
});
|
|
9285
|
-
(0,
|
|
9440
|
+
(0, import_react52.useEffect)(() => {
|
|
9286
9441
|
if (isFirstRender.current) {
|
|
9287
9442
|
isFirstRender.current = false;
|
|
9288
9443
|
return;
|
|
@@ -9299,7 +9454,7 @@ var _Pagination = ({
|
|
|
9299
9454
|
onChange: handlePageChange
|
|
9300
9455
|
});
|
|
9301
9456
|
const pageRange = usePageRange({ currentPage, totalPages });
|
|
9302
|
-
(0,
|
|
9457
|
+
(0, import_react52.useEffect)(() => {
|
|
9303
9458
|
const items = [
|
|
9304
9459
|
{ type: NavigationTypes.Prev, value: currentPage - 1 },
|
|
9305
9460
|
...pageRange.map((value) => ({
|
|
@@ -9310,19 +9465,19 @@ var _Pagination = ({
|
|
|
9310
9465
|
];
|
|
9311
9466
|
setNavigationItems(items);
|
|
9312
9467
|
}, [pageRange, currentPage, setNavigationItems]);
|
|
9313
|
-
(0,
|
|
9468
|
+
(0, import_react52.useEffect)(() => {
|
|
9314
9469
|
setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
|
|
9315
9470
|
}, [currentPage, setFocusedItem]);
|
|
9316
9471
|
const isFirstPage = currentPage === 1;
|
|
9317
9472
|
const isLastPage = currentPage === totalPages || totalPages === 0;
|
|
9318
|
-
return /* @__PURE__ */ (0,
|
|
9473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
9319
9474
|
"nav",
|
|
9320
9475
|
{
|
|
9321
9476
|
className: "flex items-center justify-center space-x-2",
|
|
9322
9477
|
"aria-label": `Page ${currentPage} of ${totalPages}`,
|
|
9323
9478
|
...keyboardProps,
|
|
9324
9479
|
children: [
|
|
9325
|
-
/* @__PURE__ */ (0,
|
|
9480
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
9326
9481
|
NavigationButton,
|
|
9327
9482
|
{
|
|
9328
9483
|
onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
|
|
@@ -9331,11 +9486,11 @@ var _Pagination = ({
|
|
|
9331
9486
|
registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
|
|
9332
9487
|
controlLabel: controlLabels == null ? void 0 : controlLabels[0],
|
|
9333
9488
|
position: "left",
|
|
9334
|
-
children: /* @__PURE__ */ (0,
|
|
9489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronLeft, { className: (0, import_system69.cn)(classNames3.icon) })
|
|
9335
9490
|
}
|
|
9336
9491
|
),
|
|
9337
|
-
/* @__PURE__ */ (0,
|
|
9338
|
-
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0,
|
|
9492
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
|
|
9493
|
+
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
9339
9494
|
PageButton,
|
|
9340
9495
|
{
|
|
9341
9496
|
page: pageNumber,
|
|
@@ -9345,8 +9500,8 @@ var _Pagination = ({
|
|
|
9345
9500
|
},
|
|
9346
9501
|
pageNumber
|
|
9347
9502
|
)
|
|
9348
|
-
) : /* @__PURE__ */ (0,
|
|
9349
|
-
/* @__PURE__ */ (0,
|
|
9503
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
|
|
9504
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
9350
9505
|
NavigationButton,
|
|
9351
9506
|
{
|
|
9352
9507
|
onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
|
|
@@ -9355,7 +9510,7 @@ var _Pagination = ({
|
|
|
9355
9510
|
registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
|
|
9356
9511
|
controlLabel: controlLabels == null ? void 0 : controlLabels[1],
|
|
9357
9512
|
position: "right",
|
|
9358
|
-
children: /* @__PURE__ */ (0,
|
|
9513
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronRight, { className: (0, import_system69.cn)(classNames3.icon) })
|
|
9359
9514
|
}
|
|
9360
9515
|
)
|
|
9361
9516
|
]
|
|
@@ -9364,21 +9519,21 @@ var _Pagination = ({
|
|
|
9364
9519
|
};
|
|
9365
9520
|
|
|
9366
9521
|
// src/Radio/Radio.tsx
|
|
9367
|
-
var
|
|
9522
|
+
var import_react54 = require("react");
|
|
9368
9523
|
var import_react_aria_components48 = require("react-aria-components");
|
|
9369
9524
|
var import_system71 = require("@marigold/system");
|
|
9370
9525
|
|
|
9371
9526
|
// src/Radio/Context.ts
|
|
9372
|
-
var
|
|
9373
|
-
var RadioGroupContext = (0,
|
|
9527
|
+
var import_react53 = require("react");
|
|
9528
|
+
var RadioGroupContext = (0, import_react53.createContext)(
|
|
9374
9529
|
null
|
|
9375
9530
|
);
|
|
9376
|
-
var useRadioGroupContext = () => (0,
|
|
9531
|
+
var useRadioGroupContext = () => (0, import_react53.useContext)(RadioGroupContext);
|
|
9377
9532
|
|
|
9378
9533
|
// src/Radio/RadioGroup.tsx
|
|
9379
9534
|
var import_react_aria_components47 = require("react-aria-components");
|
|
9380
9535
|
var import_system70 = require("@marigold/system");
|
|
9381
|
-
var
|
|
9536
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
9382
9537
|
var _RadioGroup = ({
|
|
9383
9538
|
variant,
|
|
9384
9539
|
size: size2,
|
|
@@ -9402,7 +9557,7 @@ var _RadioGroup = ({
|
|
|
9402
9557
|
isInvalid: error,
|
|
9403
9558
|
...rest
|
|
9404
9559
|
};
|
|
9405
|
-
return /* @__PURE__ */ (0,
|
|
9560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9406
9561
|
FieldBase,
|
|
9407
9562
|
{
|
|
9408
9563
|
as: import_react_aria_components47.RadioGroup,
|
|
@@ -9413,7 +9568,7 @@ var _RadioGroup = ({
|
|
|
9413
9568
|
variant,
|
|
9414
9569
|
size: size2,
|
|
9415
9570
|
...props,
|
|
9416
|
-
children: /* @__PURE__ */ (0,
|
|
9571
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9417
9572
|
"div",
|
|
9418
9573
|
{
|
|
9419
9574
|
role: "presentation",
|
|
@@ -9424,7 +9579,7 @@ var _RadioGroup = ({
|
|
|
9424
9579
|
"flex items-start",
|
|
9425
9580
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
9426
9581
|
),
|
|
9427
|
-
children: /* @__PURE__ */ (0,
|
|
9582
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children })
|
|
9428
9583
|
}
|
|
9429
9584
|
)
|
|
9430
9585
|
}
|
|
@@ -9432,9 +9587,9 @@ var _RadioGroup = ({
|
|
|
9432
9587
|
};
|
|
9433
9588
|
|
|
9434
9589
|
// src/Radio/Radio.tsx
|
|
9435
|
-
var
|
|
9436
|
-
var Dot = () => /* @__PURE__ */ (0,
|
|
9437
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0,
|
|
9590
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
9591
|
+
var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
9592
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9438
9593
|
"div",
|
|
9439
9594
|
{
|
|
9440
9595
|
className: (0, import_system71.cn)(
|
|
@@ -9443,10 +9598,10 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx
|
|
|
9443
9598
|
),
|
|
9444
9599
|
"aria-hidden": "true",
|
|
9445
9600
|
...props,
|
|
9446
|
-
children: checked ? /* @__PURE__ */ (0,
|
|
9601
|
+
children: checked ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dot, {}) : null
|
|
9447
9602
|
}
|
|
9448
9603
|
);
|
|
9449
|
-
var _Radio = (0,
|
|
9604
|
+
var _Radio = (0, import_react54.forwardRef)(
|
|
9450
9605
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9451
9606
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9452
9607
|
const classNames3 = (0, import_system71.useClassNames)({
|
|
@@ -9454,7 +9609,7 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9454
9609
|
variant: variant || props.variant,
|
|
9455
9610
|
size: size2 || props.size
|
|
9456
9611
|
});
|
|
9457
|
-
return /* @__PURE__ */ (0,
|
|
9612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9458
9613
|
import_react_aria_components48.Radio,
|
|
9459
9614
|
{
|
|
9460
9615
|
ref,
|
|
@@ -9467,8 +9622,8 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9467
9622
|
value,
|
|
9468
9623
|
isDisabled: disabled,
|
|
9469
9624
|
...props,
|
|
9470
|
-
children: ({ isSelected }) => /* @__PURE__ */ (0,
|
|
9471
|
-
/* @__PURE__ */ (0,
|
|
9625
|
+
children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
9626
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9472
9627
|
Icon3,
|
|
9473
9628
|
{
|
|
9474
9629
|
checked: isSelected,
|
|
@@ -9478,7 +9633,7 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9478
9633
|
)
|
|
9479
9634
|
}
|
|
9480
9635
|
),
|
|
9481
|
-
/* @__PURE__ */ (0,
|
|
9636
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: classNames3.label, children })
|
|
9482
9637
|
] })
|
|
9483
9638
|
}
|
|
9484
9639
|
);
|
|
@@ -9487,10 +9642,10 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9487
9642
|
_Radio.Group = _RadioGroup;
|
|
9488
9643
|
|
|
9489
9644
|
// src/SearchField/SearchField.tsx
|
|
9490
|
-
var
|
|
9645
|
+
var import_react55 = require("react");
|
|
9491
9646
|
var import_react_aria_components49 = require("react-aria-components");
|
|
9492
|
-
var
|
|
9493
|
-
var _SearchField = (0,
|
|
9647
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
9648
|
+
var _SearchField = (0, import_react55.forwardRef)(
|
|
9494
9649
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
9495
9650
|
const props = {
|
|
9496
9651
|
...rest,
|
|
@@ -9499,7 +9654,7 @@ var _SearchField = (0, import_react54.forwardRef)(
|
|
|
9499
9654
|
isReadOnly: readOnly,
|
|
9500
9655
|
isInvalid: error
|
|
9501
9656
|
};
|
|
9502
|
-
return /* @__PURE__ */ (0,
|
|
9657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components49.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
9503
9658
|
SearchInput,
|
|
9504
9659
|
{
|
|
9505
9660
|
ref,
|
|
@@ -9510,11 +9665,11 @@ var _SearchField = (0, import_react54.forwardRef)(
|
|
|
9510
9665
|
);
|
|
9511
9666
|
|
|
9512
9667
|
// src/Select/Select.tsx
|
|
9513
|
-
var
|
|
9668
|
+
var import_react56 = require("react");
|
|
9514
9669
|
var import_react_aria_components50 = require("react-aria-components");
|
|
9515
9670
|
var import_system72 = require("@marigold/system");
|
|
9516
|
-
var
|
|
9517
|
-
var _Select = (0,
|
|
9671
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
9672
|
+
var _Select = (0, import_react56.forwardRef)(
|
|
9518
9673
|
({
|
|
9519
9674
|
disabled,
|
|
9520
9675
|
required,
|
|
@@ -9535,8 +9690,8 @@ var _Select = (0, import_react55.forwardRef)(
|
|
|
9535
9690
|
...rest
|
|
9536
9691
|
};
|
|
9537
9692
|
const classNames3 = (0, import_system72.useClassNames)({ component: "Select", variant, size: size2 });
|
|
9538
|
-
return /* @__PURE__ */ (0,
|
|
9539
|
-
/* @__PURE__ */ (0,
|
|
9693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as: import_react_aria_components50.Select, ref, variant, size: size2, ...props, children: [
|
|
9694
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
9540
9695
|
IconButton,
|
|
9541
9696
|
{
|
|
9542
9697
|
className: (0, import_system72.cn)(
|
|
@@ -9544,12 +9699,12 @@ var _Select = (0, import_react55.forwardRef)(
|
|
|
9544
9699
|
classNames3.select
|
|
9545
9700
|
),
|
|
9546
9701
|
children: [
|
|
9547
|
-
/* @__PURE__ */ (0,
|
|
9548
|
-
/* @__PURE__ */ (0,
|
|
9702
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components50.SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
9703
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronDown, { className: (0, import_system72.cn)("size-4", classNames3.icon) })
|
|
9549
9704
|
]
|
|
9550
9705
|
}
|
|
9551
9706
|
),
|
|
9552
|
-
/* @__PURE__ */ (0,
|
|
9707
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_ListBox, { items, children: props.children }) })
|
|
9553
9708
|
] });
|
|
9554
9709
|
}
|
|
9555
9710
|
);
|
|
@@ -9557,35 +9712,35 @@ _Select.Option = _ListBox.Item;
|
|
|
9557
9712
|
_Select.Section = _ListBox.Section;
|
|
9558
9713
|
|
|
9559
9714
|
// src/SelectList/SelectList.tsx
|
|
9560
|
-
var
|
|
9715
|
+
var import_react59 = require("react");
|
|
9561
9716
|
var import_react_aria_components52 = require("react-aria-components");
|
|
9562
9717
|
var import_system74 = require("@marigold/system");
|
|
9563
9718
|
|
|
9564
9719
|
// src/SelectList/Context.ts
|
|
9565
|
-
var
|
|
9566
|
-
var SelectListContext = (0,
|
|
9720
|
+
var import_react57 = require("react");
|
|
9721
|
+
var SelectListContext = (0, import_react57.createContext)(
|
|
9567
9722
|
{}
|
|
9568
9723
|
);
|
|
9569
|
-
var useSelectListContext = () => (0,
|
|
9724
|
+
var useSelectListContext = () => (0, import_react57.useContext)(SelectListContext);
|
|
9570
9725
|
|
|
9571
9726
|
// src/SelectList/SelectListItem.tsx
|
|
9572
|
-
var
|
|
9727
|
+
var import_react58 = require("react");
|
|
9573
9728
|
var import_react_aria_components51 = require("react-aria-components");
|
|
9574
9729
|
var import_system73 = require("@marigold/system");
|
|
9575
|
-
var
|
|
9576
|
-
var _SelectListItem = (0,
|
|
9730
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
9731
|
+
var _SelectListItem = (0, import_react58.forwardRef)(
|
|
9577
9732
|
({ children, ...props }, ref) => {
|
|
9578
9733
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9579
9734
|
const { classNames: classNames3 } = useSelectListContext();
|
|
9580
|
-
return /* @__PURE__ */ (0,
|
|
9735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9581
9736
|
import_react_aria_components51.GridListItem,
|
|
9582
9737
|
{
|
|
9583
9738
|
textValue,
|
|
9584
9739
|
...props,
|
|
9585
9740
|
className: (0, import_system73.cn)("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.option),
|
|
9586
9741
|
ref,
|
|
9587
|
-
children: ({ selectionMode }) => /* @__PURE__ */ (0,
|
|
9588
|
-
selectionMode === "multiple" && /* @__PURE__ */ (0,
|
|
9742
|
+
children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex gap-2", children: [
|
|
9743
|
+
selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(_Checkbox, { slot: "selection" }),
|
|
9589
9744
|
children
|
|
9590
9745
|
] })
|
|
9591
9746
|
}
|
|
@@ -9594,15 +9749,15 @@ var _SelectListItem = (0, import_react57.forwardRef)(
|
|
|
9594
9749
|
);
|
|
9595
9750
|
|
|
9596
9751
|
// src/SelectList/SelectList.tsx
|
|
9597
|
-
var
|
|
9598
|
-
var _SelectList = (0,
|
|
9752
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
9753
|
+
var _SelectList = (0, import_react59.forwardRef)(
|
|
9599
9754
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9600
9755
|
const classNames3 = (0, import_system74.useClassNames)({ component: "ListBox" });
|
|
9601
9756
|
const props = {
|
|
9602
9757
|
onSelectionChange: onChange2,
|
|
9603
9758
|
...rest
|
|
9604
9759
|
};
|
|
9605
|
-
return /* @__PURE__ */ (0,
|
|
9760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: classNames3.container, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9606
9761
|
import_react_aria_components52.GridList,
|
|
9607
9762
|
{
|
|
9608
9763
|
...props,
|
|
@@ -9621,13 +9776,13 @@ _SelectList.Item = _SelectListItem;
|
|
|
9621
9776
|
|
|
9622
9777
|
// src/Scrollable/Scrollable.tsx
|
|
9623
9778
|
var import_system75 = require("@marigold/system");
|
|
9624
|
-
var
|
|
9779
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
9625
9780
|
var Scrollable = ({
|
|
9626
9781
|
children,
|
|
9627
9782
|
width = "full",
|
|
9628
9783
|
height,
|
|
9629
9784
|
...props
|
|
9630
|
-
}) => /* @__PURE__ */ (0,
|
|
9785
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9631
9786
|
"div",
|
|
9632
9787
|
{
|
|
9633
9788
|
...props,
|
|
@@ -9638,11 +9793,11 @@ var Scrollable = ({
|
|
|
9638
9793
|
);
|
|
9639
9794
|
|
|
9640
9795
|
// src/Slider/Slider.tsx
|
|
9641
|
-
var
|
|
9796
|
+
var import_react60 = require("react");
|
|
9642
9797
|
var import_react_aria_components53 = require("react-aria-components");
|
|
9643
9798
|
var import_system76 = require("@marigold/system");
|
|
9644
|
-
var
|
|
9645
|
-
var _Slider = (0,
|
|
9799
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
9800
|
+
var _Slider = (0, import_react60.forwardRef)(
|
|
9646
9801
|
({
|
|
9647
9802
|
thumbLabels,
|
|
9648
9803
|
variant,
|
|
@@ -9661,7 +9816,7 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9661
9816
|
isDisabled: disabled,
|
|
9662
9817
|
...rest
|
|
9663
9818
|
};
|
|
9664
|
-
return /* @__PURE__ */ (0,
|
|
9819
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
9665
9820
|
FieldBase,
|
|
9666
9821
|
{
|
|
9667
9822
|
as: import_react_aria_components53.Slider,
|
|
@@ -9673,14 +9828,14 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9673
9828
|
ref,
|
|
9674
9829
|
...props,
|
|
9675
9830
|
children: [
|
|
9676
|
-
/* @__PURE__ */ (0,
|
|
9677
|
-
/* @__PURE__ */ (0,
|
|
9678
|
-
/* @__PURE__ */ (0,
|
|
9831
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(_Label, { children: props.children && props.children || label && label }),
|
|
9832
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components53.SliderOutput, { className: (0, import_system76.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
9833
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9679
9834
|
import_react_aria_components53.SliderTrack,
|
|
9680
9835
|
{
|
|
9681
9836
|
className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames3.track),
|
|
9682
|
-
children: ({ state }) => /* @__PURE__ */ (0,
|
|
9683
|
-
/* @__PURE__ */ (0,
|
|
9837
|
+
children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
|
|
9838
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9684
9839
|
"div",
|
|
9685
9840
|
{
|
|
9686
9841
|
className: (0, import_system76.cn)(
|
|
@@ -9689,7 +9844,7 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9689
9844
|
)
|
|
9690
9845
|
}
|
|
9691
9846
|
),
|
|
9692
|
-
/* @__PURE__ */ (0,
|
|
9847
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9693
9848
|
"div",
|
|
9694
9849
|
{
|
|
9695
9850
|
className: (0, import_system76.cn)(
|
|
@@ -9702,7 +9857,7 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9702
9857
|
}
|
|
9703
9858
|
}
|
|
9704
9859
|
),
|
|
9705
|
-
state.values.map((_, i) => /* @__PURE__ */ (0,
|
|
9860
|
+
state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9706
9861
|
import_react_aria_components53.SliderThumb,
|
|
9707
9862
|
{
|
|
9708
9863
|
className: (0, import_system76.cn)("top-1/2 cursor-pointer", classNames3.thumb),
|
|
@@ -9722,12 +9877,12 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9722
9877
|
);
|
|
9723
9878
|
|
|
9724
9879
|
// src/Split/Split.tsx
|
|
9725
|
-
var
|
|
9726
|
-
var Split = () => /* @__PURE__ */ (0,
|
|
9880
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
9881
|
+
var Split = () => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { role: "separator", className: "grow" });
|
|
9727
9882
|
|
|
9728
9883
|
// src/Stack/Stack.tsx
|
|
9729
9884
|
var import_system77 = require("@marigold/system");
|
|
9730
|
-
var
|
|
9885
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
9731
9886
|
var Stack = ({
|
|
9732
9887
|
children,
|
|
9733
9888
|
space = 0,
|
|
@@ -9737,7 +9892,7 @@ var Stack = ({
|
|
|
9737
9892
|
...props
|
|
9738
9893
|
}) => {
|
|
9739
9894
|
var _a, _b, _c, _d;
|
|
9740
|
-
return /* @__PURE__ */ (0,
|
|
9895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
9741
9896
|
"div",
|
|
9742
9897
|
{
|
|
9743
9898
|
className: (0, import_system77.cn)(
|
|
@@ -9754,11 +9909,11 @@ var Stack = ({
|
|
|
9754
9909
|
};
|
|
9755
9910
|
|
|
9756
9911
|
// src/Switch/Switch.tsx
|
|
9757
|
-
var
|
|
9912
|
+
var import_react61 = require("react");
|
|
9758
9913
|
var import_react_aria_components54 = require("react-aria-components");
|
|
9759
9914
|
var import_system78 = require("@marigold/system");
|
|
9760
|
-
var
|
|
9761
|
-
var _Switch = (0,
|
|
9915
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9916
|
+
var _Switch = (0, import_react61.forwardRef)(
|
|
9762
9917
|
({
|
|
9763
9918
|
variant,
|
|
9764
9919
|
size: size2,
|
|
@@ -9776,7 +9931,7 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9776
9931
|
isSelected: selected,
|
|
9777
9932
|
...rest
|
|
9778
9933
|
};
|
|
9779
|
-
return /* @__PURE__ */ (0,
|
|
9934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
9780
9935
|
import_react_aria_components54.Switch,
|
|
9781
9936
|
{
|
|
9782
9937
|
...props,
|
|
@@ -9788,8 +9943,8 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9788
9943
|
classNames3.container
|
|
9789
9944
|
),
|
|
9790
9945
|
children: [
|
|
9791
|
-
/* @__PURE__ */ (0,
|
|
9792
|
-
/* @__PURE__ */ (0,
|
|
9946
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(_Label, { elementType: "span", children }),
|
|
9947
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: classNames3.track, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: classNames3.thumb }) }) })
|
|
9793
9948
|
]
|
|
9794
9949
|
}
|
|
9795
9950
|
);
|
|
@@ -9797,19 +9952,19 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9797
9952
|
);
|
|
9798
9953
|
|
|
9799
9954
|
// src/Table/Table.tsx
|
|
9800
|
-
var
|
|
9955
|
+
var import_react69 = require("react");
|
|
9801
9956
|
var import_table9 = require("@react-aria/table");
|
|
9802
9957
|
var import_table10 = require("@react-stately/table");
|
|
9803
9958
|
var import_system85 = require("@marigold/system");
|
|
9804
9959
|
|
|
9805
9960
|
// src/Table/Context.tsx
|
|
9806
|
-
var
|
|
9807
|
-
var TableContext = (0,
|
|
9808
|
-
var useTableContext = () => (0,
|
|
9961
|
+
var import_react62 = require("react");
|
|
9962
|
+
var TableContext = (0, import_react62.createContext)({});
|
|
9963
|
+
var useTableContext = () => (0, import_react62.useContext)(TableContext);
|
|
9809
9964
|
|
|
9810
9965
|
// src/Table/TableBody.tsx
|
|
9811
9966
|
var import_table = require("@react-aria/table");
|
|
9812
|
-
var
|
|
9967
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
9813
9968
|
var TableBody = ({
|
|
9814
9969
|
children,
|
|
9815
9970
|
className,
|
|
@@ -9818,7 +9973,7 @@ var TableBody = ({
|
|
|
9818
9973
|
const { rowGroupProps } = (0, import_table.useTableRowGroup)();
|
|
9819
9974
|
const { state, classNames: classNames3 } = useTableContext();
|
|
9820
9975
|
if (state.collection.size === 0 && emptyState) {
|
|
9821
|
-
return /* @__PURE__ */ (0,
|
|
9976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { className, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9822
9977
|
"td",
|
|
9823
9978
|
{
|
|
9824
9979
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
@@ -9828,18 +9983,18 @@ var TableBody = ({
|
|
|
9828
9983
|
}
|
|
9829
9984
|
) }) });
|
|
9830
9985
|
}
|
|
9831
|
-
return /* @__PURE__ */ (0,
|
|
9986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { ...rowGroupProps, className, children });
|
|
9832
9987
|
};
|
|
9833
9988
|
|
|
9834
9989
|
// src/Table/TableCell.tsx
|
|
9835
|
-
var
|
|
9836
|
-
var
|
|
9990
|
+
var import_react63 = require("react");
|
|
9991
|
+
var import_focus2 = require("@react-aria/focus");
|
|
9837
9992
|
var import_table2 = require("@react-aria/table");
|
|
9838
|
-
var
|
|
9993
|
+
var import_utils9 = require("@react-aria/utils");
|
|
9839
9994
|
var import_system79 = require("@marigold/system");
|
|
9840
|
-
var
|
|
9995
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
9841
9996
|
var TableCell = ({ cell, align = "left" }) => {
|
|
9842
|
-
const ref = (0,
|
|
9997
|
+
const ref = (0, import_react63.useRef)(null);
|
|
9843
9998
|
const { interactive, state, classNames: classNames3 } = useTableContext();
|
|
9844
9999
|
const disabled = state.disabledKeys.has(cell.parentKey);
|
|
9845
10000
|
const { gridCellProps } = (0, import_table2.useTableCell)(
|
|
@@ -9858,14 +10013,14 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
9858
10013
|
onMouseDown: (e) => e.stopPropagation(),
|
|
9859
10014
|
onPointerDown: (e) => e.stopPropagation()
|
|
9860
10015
|
};
|
|
9861
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10016
|
+
const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
|
|
9862
10017
|
const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
|
|
9863
|
-
return /* @__PURE__ */ (0,
|
|
10018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9864
10019
|
"td",
|
|
9865
10020
|
{
|
|
9866
10021
|
ref,
|
|
9867
10022
|
className: (0, import_system79.cn)(classNames3 == null ? void 0 : classNames3.cell),
|
|
9868
|
-
...(0,
|
|
10023
|
+
...(0, import_utils9.mergeProps)(cellProps, focusProps),
|
|
9869
10024
|
...stateProps,
|
|
9870
10025
|
align,
|
|
9871
10026
|
children: cell.rendered
|
|
@@ -9874,10 +10029,10 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
9874
10029
|
};
|
|
9875
10030
|
|
|
9876
10031
|
// src/Table/TableCheckboxCell.tsx
|
|
9877
|
-
var
|
|
9878
|
-
var
|
|
10032
|
+
var import_react64 = require("react");
|
|
10033
|
+
var import_focus3 = require("@react-aria/focus");
|
|
9879
10034
|
var import_table3 = require("@react-aria/table");
|
|
9880
|
-
var
|
|
10035
|
+
var import_utils10 = require("@react-aria/utils");
|
|
9881
10036
|
var import_system80 = require("@marigold/system");
|
|
9882
10037
|
|
|
9883
10038
|
// src/Table/utils.ts
|
|
@@ -9901,9 +10056,9 @@ var mapCheckboxProps = ({
|
|
|
9901
10056
|
};
|
|
9902
10057
|
|
|
9903
10058
|
// src/Table/TableCheckboxCell.tsx
|
|
9904
|
-
var
|
|
10059
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
9905
10060
|
var TableCheckboxCell = ({ cell }) => {
|
|
9906
|
-
const ref = (0,
|
|
10061
|
+
const ref = (0, import_react64.useRef)(null);
|
|
9907
10062
|
const { state, classNames: classNames3 } = useTableContext();
|
|
9908
10063
|
const disabled = state.disabledKeys.has(cell.parentKey);
|
|
9909
10064
|
const { gridCellProps } = (0, import_table3.useTableCell)(
|
|
@@ -9916,35 +10071,35 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
9916
10071
|
const { checkboxProps } = mapCheckboxProps(
|
|
9917
10072
|
(0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
|
|
9918
10073
|
);
|
|
9919
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10074
|
+
const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
|
|
9920
10075
|
const stateProps = (0, import_system80.useStateProps)({ disabled, focusVisible: isFocusVisible });
|
|
9921
|
-
return /* @__PURE__ */ (0,
|
|
10076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9922
10077
|
"td",
|
|
9923
10078
|
{
|
|
9924
10079
|
ref,
|
|
9925
10080
|
className: (0, import_system80.cn)("text-center align-middle leading-none", classNames3 == null ? void 0 : classNames3.cell),
|
|
9926
|
-
...(0,
|
|
10081
|
+
...(0, import_utils10.mergeProps)(gridCellProps, focusProps),
|
|
9927
10082
|
...stateProps,
|
|
9928
|
-
children: /* @__PURE__ */ (0,
|
|
10083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(_Checkbox, { ...checkboxProps })
|
|
9929
10084
|
}
|
|
9930
10085
|
);
|
|
9931
10086
|
};
|
|
9932
10087
|
|
|
9933
10088
|
// src/Table/TableColumnHeader.tsx
|
|
9934
|
-
var
|
|
9935
|
-
var
|
|
10089
|
+
var import_react65 = require("react");
|
|
10090
|
+
var import_focus4 = require("@react-aria/focus");
|
|
9936
10091
|
var import_interactions2 = require("@react-aria/interactions");
|
|
9937
10092
|
var import_table4 = require("@react-aria/table");
|
|
9938
|
-
var
|
|
10093
|
+
var import_utils12 = require("@react-aria/utils");
|
|
9939
10094
|
var import_system81 = require("@marigold/system");
|
|
9940
|
-
var
|
|
10095
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
9941
10096
|
var TableColumnHeader = ({
|
|
9942
10097
|
column: column2,
|
|
9943
10098
|
width = "auto",
|
|
9944
10099
|
align = "left"
|
|
9945
10100
|
}) => {
|
|
9946
10101
|
var _a, _b;
|
|
9947
|
-
const ref = (0,
|
|
10102
|
+
const ref = (0, import_react65.useRef)(null);
|
|
9948
10103
|
const { state, classNames: classNames3 } = useTableContext();
|
|
9949
10104
|
const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
|
|
9950
10105
|
{
|
|
@@ -9954,23 +10109,23 @@ var TableColumnHeader = ({
|
|
|
9954
10109
|
ref
|
|
9955
10110
|
);
|
|
9956
10111
|
const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
|
|
9957
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10112
|
+
const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
|
|
9958
10113
|
const stateProps = (0, import_system81.useStateProps)({
|
|
9959
10114
|
hover: isHovered,
|
|
9960
10115
|
focusVisible: isFocusVisible
|
|
9961
10116
|
});
|
|
9962
|
-
return /* @__PURE__ */ (0,
|
|
10117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
9963
10118
|
"th",
|
|
9964
10119
|
{
|
|
9965
10120
|
colSpan: column2.colspan,
|
|
9966
10121
|
ref,
|
|
9967
10122
|
className: (0, import_system81.cn)("cursor-default", import_system81.width[width], classNames3 == null ? void 0 : classNames3.header),
|
|
9968
|
-
...(0,
|
|
10123
|
+
...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
|
|
9969
10124
|
...stateProps,
|
|
9970
10125
|
align,
|
|
9971
10126
|
children: [
|
|
9972
10127
|
column2.rendered,
|
|
9973
|
-
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0,
|
|
10128
|
+
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortDown, { className: "inline-block" }) }))
|
|
9974
10129
|
]
|
|
9975
10130
|
}
|
|
9976
10131
|
);
|
|
@@ -9979,11 +10134,11 @@ var TableColumnHeader = ({
|
|
|
9979
10134
|
// src/Table/TableHeader.tsx
|
|
9980
10135
|
var import_table5 = require("@react-aria/table");
|
|
9981
10136
|
var import_system82 = require("@marigold/system");
|
|
9982
|
-
var
|
|
10137
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
9983
10138
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
9984
10139
|
const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
|
|
9985
10140
|
const { classNames: classNames3 } = useTableContext();
|
|
9986
|
-
return /* @__PURE__ */ (0,
|
|
10141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9987
10142
|
"thead",
|
|
9988
10143
|
{
|
|
9989
10144
|
...rowGroupProps,
|
|
@@ -9999,30 +10154,30 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
9999
10154
|
};
|
|
10000
10155
|
|
|
10001
10156
|
// src/Table/TableHeaderRow.tsx
|
|
10002
|
-
var
|
|
10157
|
+
var import_react66 = require("react");
|
|
10003
10158
|
var import_table6 = require("@react-aria/table");
|
|
10004
|
-
var
|
|
10159
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
10005
10160
|
var TableHeaderRow = ({
|
|
10006
10161
|
item,
|
|
10007
10162
|
className,
|
|
10008
10163
|
children
|
|
10009
10164
|
}) => {
|
|
10010
10165
|
const { state } = useTableContext();
|
|
10011
|
-
const ref = (0,
|
|
10166
|
+
const ref = (0, import_react66.useRef)(null);
|
|
10012
10167
|
const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
|
|
10013
|
-
return /* @__PURE__ */ (0,
|
|
10168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("tr", { ...rowProps, className, ref, children });
|
|
10014
10169
|
};
|
|
10015
10170
|
|
|
10016
10171
|
// src/Table/TableRow.tsx
|
|
10017
|
-
var
|
|
10018
|
-
var
|
|
10172
|
+
var import_react67 = require("react");
|
|
10173
|
+
var import_focus5 = require("@react-aria/focus");
|
|
10019
10174
|
var import_interactions3 = require("@react-aria/interactions");
|
|
10020
10175
|
var import_table7 = require("@react-aria/table");
|
|
10021
|
-
var
|
|
10176
|
+
var import_utils13 = require("@react-aria/utils");
|
|
10022
10177
|
var import_system83 = require("@marigold/system");
|
|
10023
|
-
var
|
|
10178
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
10024
10179
|
var TableRow = ({ children, row }) => {
|
|
10025
|
-
const ref = (0,
|
|
10180
|
+
const ref = (0, import_react67.useRef)(null);
|
|
10026
10181
|
const { interactive, state, ...ctx } = useTableContext();
|
|
10027
10182
|
const { variant, size: size2 } = row.props;
|
|
10028
10183
|
const classNames3 = (0, import_system83.useClassNames)({
|
|
@@ -10039,7 +10194,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10039
10194
|
);
|
|
10040
10195
|
const disabled = state.disabledKeys.has(row.key);
|
|
10041
10196
|
const selected = state.selectionManager.isSelected(row.key);
|
|
10042
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10197
|
+
const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
|
|
10043
10198
|
const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
|
|
10044
10199
|
isDisabled: disabled || !interactive
|
|
10045
10200
|
});
|
|
@@ -10050,7 +10205,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10050
10205
|
focusVisible: isFocusVisible,
|
|
10051
10206
|
active: isPressed
|
|
10052
10207
|
});
|
|
10053
|
-
return /* @__PURE__ */ (0,
|
|
10208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10054
10209
|
"tr",
|
|
10055
10210
|
{
|
|
10056
10211
|
ref,
|
|
@@ -10060,7 +10215,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10060
10215
|
],
|
|
10061
10216
|
classNames3 == null ? void 0 : classNames3.row
|
|
10062
10217
|
),
|
|
10063
|
-
...(0,
|
|
10218
|
+
...(0, import_utils13.mergeProps)(rowProps, focusProps, hoverProps),
|
|
10064
10219
|
...stateProps,
|
|
10065
10220
|
children
|
|
10066
10221
|
}
|
|
@@ -10068,19 +10223,19 @@ var TableRow = ({ children, row }) => {
|
|
|
10068
10223
|
};
|
|
10069
10224
|
|
|
10070
10225
|
// src/Table/TableSelectAllCell.tsx
|
|
10071
|
-
var
|
|
10072
|
-
var
|
|
10226
|
+
var import_react68 = require("react");
|
|
10227
|
+
var import_focus6 = require("@react-aria/focus");
|
|
10073
10228
|
var import_interactions4 = require("@react-aria/interactions");
|
|
10074
10229
|
var import_table8 = require("@react-aria/table");
|
|
10075
|
-
var
|
|
10230
|
+
var import_utils14 = require("@react-aria/utils");
|
|
10076
10231
|
var import_system84 = require("@marigold/system");
|
|
10077
|
-
var
|
|
10232
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
10078
10233
|
var TableSelectAllCell = ({
|
|
10079
10234
|
column: column2,
|
|
10080
10235
|
width = "auto",
|
|
10081
10236
|
align = "left"
|
|
10082
10237
|
}) => {
|
|
10083
|
-
const ref = (0,
|
|
10238
|
+
const ref = (0, import_react68.useRef)(null);
|
|
10084
10239
|
const { state, classNames: classNames3 } = useTableContext();
|
|
10085
10240
|
const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
|
|
10086
10241
|
{
|
|
@@ -10091,26 +10246,26 @@ var TableSelectAllCell = ({
|
|
|
10091
10246
|
);
|
|
10092
10247
|
const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
|
|
10093
10248
|
const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
|
|
10094
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10249
|
+
const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
|
|
10095
10250
|
const stateProps = (0, import_system84.useStateProps)({
|
|
10096
10251
|
hover: isHovered,
|
|
10097
10252
|
focusVisible: isFocusVisible
|
|
10098
10253
|
});
|
|
10099
|
-
return /* @__PURE__ */ (0,
|
|
10254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
10100
10255
|
"th",
|
|
10101
10256
|
{
|
|
10102
10257
|
ref,
|
|
10103
10258
|
className: (0, import_system84.cn)(import_system84.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
|
|
10104
|
-
...(0,
|
|
10259
|
+
...(0, import_utils14.mergeProps)(columnHeaderProps, hoverProps, focusProps),
|
|
10105
10260
|
...stateProps,
|
|
10106
10261
|
align,
|
|
10107
|
-
children: /* @__PURE__ */ (0,
|
|
10262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Checkbox, { ...checkboxProps })
|
|
10108
10263
|
}
|
|
10109
10264
|
);
|
|
10110
10265
|
};
|
|
10111
10266
|
|
|
10112
10267
|
// src/Table/Table.tsx
|
|
10113
|
-
var
|
|
10268
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
10114
10269
|
var Table = ({
|
|
10115
10270
|
variant,
|
|
10116
10271
|
size: size2,
|
|
@@ -10122,7 +10277,7 @@ var Table = ({
|
|
|
10122
10277
|
...props
|
|
10123
10278
|
}) => {
|
|
10124
10279
|
const interactive = selectionMode !== "none";
|
|
10125
|
-
const tableRef = (0,
|
|
10280
|
+
const tableRef = (0, import_react69.useRef)(null);
|
|
10126
10281
|
const state = (0, import_table10.useTableState)({
|
|
10127
10282
|
...props,
|
|
10128
10283
|
selectionMode,
|
|
@@ -10139,11 +10294,11 @@ var Table = ({
|
|
|
10139
10294
|
size: size2
|
|
10140
10295
|
});
|
|
10141
10296
|
const { collection } = state;
|
|
10142
|
-
return /* @__PURE__ */ (0,
|
|
10297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10143
10298
|
TableContext.Provider,
|
|
10144
10299
|
{
|
|
10145
10300
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
10146
|
-
children: /* @__PURE__ */ (0,
|
|
10301
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
10147
10302
|
"table",
|
|
10148
10303
|
{
|
|
10149
10304
|
ref: tableRef,
|
|
@@ -10155,7 +10310,7 @@ var Table = ({
|
|
|
10155
10310
|
),
|
|
10156
10311
|
...gridProps,
|
|
10157
10312
|
children: [
|
|
10158
|
-
/* @__PURE__ */ (0,
|
|
10313
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10159
10314
|
TableHeaderRow,
|
|
10160
10315
|
{
|
|
10161
10316
|
item: headerRow,
|
|
@@ -10163,7 +10318,7 @@ var Table = ({
|
|
|
10163
10318
|
children: [...collection.getChildren(headerRow.key)].map(
|
|
10164
10319
|
(column2) => {
|
|
10165
10320
|
var _a, _b, _c, _d, _e;
|
|
10166
|
-
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0,
|
|
10321
|
+
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10167
10322
|
TableSelectAllCell,
|
|
10168
10323
|
{
|
|
10169
10324
|
width: (_b = column2.props) == null ? void 0 : _b.width,
|
|
@@ -10171,7 +10326,7 @@ var Table = ({
|
|
|
10171
10326
|
align: (_c = column2.props) == null ? void 0 : _c.align
|
|
10172
10327
|
},
|
|
10173
10328
|
column2.key
|
|
10174
|
-
) : /* @__PURE__ */ (0,
|
|
10329
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10175
10330
|
TableColumnHeader,
|
|
10176
10331
|
{
|
|
10177
10332
|
width: (_d = column2.props) == null ? void 0 : _d.width,
|
|
@@ -10185,12 +10340,12 @@ var Table = ({
|
|
|
10185
10340
|
},
|
|
10186
10341
|
headerRow.key
|
|
10187
10342
|
)) }),
|
|
10188
|
-
/* @__PURE__ */ (0,
|
|
10343
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10189
10344
|
...collection.rows.map(
|
|
10190
|
-
(row) => row.type === "item" && /* @__PURE__ */ (0,
|
|
10345
|
+
(row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10191
10346
|
var _a, _b;
|
|
10192
10347
|
const currentColumn = collection.columns[index2];
|
|
10193
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0,
|
|
10348
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10194
10349
|
TableCell,
|
|
10195
10350
|
{
|
|
10196
10351
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -10216,7 +10371,7 @@ Table.Row = import_table10.Row;
|
|
|
10216
10371
|
// src/Text/Text.tsx
|
|
10217
10372
|
var import_react_aria_components55 = require("react-aria-components");
|
|
10218
10373
|
var import_system86 = require("@marigold/system");
|
|
10219
|
-
var
|
|
10374
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
10220
10375
|
var _Text = ({
|
|
10221
10376
|
variant,
|
|
10222
10377
|
size: size2,
|
|
@@ -10237,7 +10392,7 @@ var _Text = ({
|
|
|
10237
10392
|
});
|
|
10238
10393
|
const Component2 = props.slot ? import_react_aria_components55.Text : as;
|
|
10239
10394
|
const elementType = props.slot ? { elementType: as } : {};
|
|
10240
|
-
return /* @__PURE__ */ (0,
|
|
10395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
10241
10396
|
Component2,
|
|
10242
10397
|
{
|
|
10243
10398
|
...props,
|
|
@@ -10259,11 +10414,11 @@ var _Text = ({
|
|
|
10259
10414
|
};
|
|
10260
10415
|
|
|
10261
10416
|
// src/TextArea/TextArea.tsx
|
|
10262
|
-
var
|
|
10417
|
+
var import_react70 = require("react");
|
|
10263
10418
|
var import_react_aria_components56 = require("react-aria-components");
|
|
10264
10419
|
var import_system87 = require("@marigold/system");
|
|
10265
|
-
var
|
|
10266
|
-
var _TextArea = (0,
|
|
10420
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
10421
|
+
var _TextArea = (0, import_react70.forwardRef)(
|
|
10267
10422
|
({
|
|
10268
10423
|
variant,
|
|
10269
10424
|
size: size2,
|
|
@@ -10282,15 +10437,15 @@ var _TextArea = (0, import_react69.forwardRef)(
|
|
|
10282
10437
|
isRequired: required,
|
|
10283
10438
|
...rest
|
|
10284
10439
|
};
|
|
10285
|
-
return /* @__PURE__ */ (0,
|
|
10440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components56.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components56.TextArea, { className: classNames3, ref, rows }) });
|
|
10286
10441
|
}
|
|
10287
10442
|
);
|
|
10288
10443
|
|
|
10289
10444
|
// src/TextField/TextField.tsx
|
|
10290
|
-
var
|
|
10445
|
+
var import_react71 = require("react");
|
|
10291
10446
|
var import_react_aria_components57 = require("react-aria-components");
|
|
10292
|
-
var
|
|
10293
|
-
var _TextField = (0,
|
|
10447
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
10448
|
+
var _TextField = (0, import_react71.forwardRef)(
|
|
10294
10449
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
10295
10450
|
const props = {
|
|
10296
10451
|
isDisabled: disabled,
|
|
@@ -10299,13 +10454,13 @@ var _TextField = (0, import_react70.forwardRef)(
|
|
|
10299
10454
|
isRequired: required,
|
|
10300
10455
|
...rest
|
|
10301
10456
|
};
|
|
10302
|
-
return /* @__PURE__ */ (0,
|
|
10457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as: import_react_aria_components57.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(_Input, { ref }) });
|
|
10303
10458
|
}
|
|
10304
10459
|
);
|
|
10305
10460
|
|
|
10306
10461
|
// src/Tiles/Tiles.tsx
|
|
10307
10462
|
var import_system88 = require("@marigold/system");
|
|
10308
|
-
var
|
|
10463
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
10309
10464
|
var Tiles = ({
|
|
10310
10465
|
space = 0,
|
|
10311
10466
|
stretch = false,
|
|
@@ -10318,7 +10473,7 @@ var Tiles = ({
|
|
|
10318
10473
|
if (stretch) {
|
|
10319
10474
|
column2 = `minmax(${column2}, 1fr)`;
|
|
10320
10475
|
}
|
|
10321
|
-
return /* @__PURE__ */ (0,
|
|
10476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
10322
10477
|
"div",
|
|
10323
10478
|
{
|
|
10324
10479
|
...props,
|
|
@@ -10340,7 +10495,7 @@ var import_system89 = require("@marigold/system");
|
|
|
10340
10495
|
|
|
10341
10496
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10342
10497
|
var import_react_aria_components58 = require("react-aria-components");
|
|
10343
|
-
var
|
|
10498
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
10344
10499
|
var _TooltipTrigger = ({
|
|
10345
10500
|
delay = 1e3,
|
|
10346
10501
|
children,
|
|
@@ -10354,11 +10509,11 @@ var _TooltipTrigger = ({
|
|
|
10354
10509
|
isOpen: open,
|
|
10355
10510
|
delay
|
|
10356
10511
|
};
|
|
10357
|
-
return /* @__PURE__ */ (0,
|
|
10512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components58.TooltipTrigger, { ...props, children });
|
|
10358
10513
|
};
|
|
10359
10514
|
|
|
10360
10515
|
// src/Tooltip/Tooltip.tsx
|
|
10361
|
-
var
|
|
10516
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
10362
10517
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10363
10518
|
const props = {
|
|
10364
10519
|
...rest,
|
|
@@ -10366,14 +10521,14 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10366
10521
|
};
|
|
10367
10522
|
const classNames3 = (0, import_system89.useClassNames)({ component: "Tooltip", variant, size: size2 });
|
|
10368
10523
|
const portal = usePortalContainer();
|
|
10369
|
-
return /* @__PURE__ */ (0,
|
|
10524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
10370
10525
|
import_react_aria_components59.Tooltip,
|
|
10371
10526
|
{
|
|
10372
10527
|
...props,
|
|
10373
10528
|
className: (0, import_system89.cn)("group/tooltip", classNames3.container),
|
|
10374
10529
|
UNSTABLE_portalContainer: portal,
|
|
10375
10530
|
children: [
|
|
10376
|
-
/* @__PURE__ */ (0,
|
|
10531
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components59.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
10377
10532
|
children
|
|
10378
10533
|
]
|
|
10379
10534
|
}
|
|
@@ -10388,7 +10543,7 @@ var import_system91 = require("@marigold/system");
|
|
|
10388
10543
|
// src/TagGroup/TagGroup.tsx
|
|
10389
10544
|
var import_react_aria_components60 = require("react-aria-components");
|
|
10390
10545
|
var import_system90 = require("@marigold/system");
|
|
10391
|
-
var
|
|
10546
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
10392
10547
|
var _TagGroup = ({
|
|
10393
10548
|
width,
|
|
10394
10549
|
items,
|
|
@@ -10399,7 +10554,7 @@ var _TagGroup = ({
|
|
|
10399
10554
|
...rest
|
|
10400
10555
|
}) => {
|
|
10401
10556
|
const classNames3 = (0, import_system90.useClassNames)({ component: "Tag", variant, size: size2 });
|
|
10402
|
-
return /* @__PURE__ */ (0,
|
|
10557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(FieldBase, { as: import_react_aria_components60.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
10403
10558
|
import_react_aria_components60.TagList,
|
|
10404
10559
|
{
|
|
10405
10560
|
items,
|
|
@@ -10411,9 +10566,9 @@ var _TagGroup = ({
|
|
|
10411
10566
|
};
|
|
10412
10567
|
|
|
10413
10568
|
// src/TagGroup/Tag.tsx
|
|
10414
|
-
var
|
|
10569
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
10415
10570
|
var CloseButton2 = ({ className }) => {
|
|
10416
|
-
return /* @__PURE__ */ (0,
|
|
10571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components61.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
|
|
10417
10572
|
};
|
|
10418
10573
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10419
10574
|
let textValue = typeof children === "string" ? children : void 0;
|
|
@@ -10422,15 +10577,15 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10422
10577
|
isDisabled: disabled,
|
|
10423
10578
|
...rest
|
|
10424
10579
|
};
|
|
10425
|
-
return /* @__PURE__ */ (0,
|
|
10580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10426
10581
|
import_react_aria_components61.Tag,
|
|
10427
10582
|
{
|
|
10428
10583
|
textValue,
|
|
10429
10584
|
...props,
|
|
10430
10585
|
className: (0, import_system91.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10431
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */ (0,
|
|
10586
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
10432
10587
|
children,
|
|
10433
|
-
allowsRemoving && /* @__PURE__ */ (0,
|
|
10588
|
+
allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10434
10589
|
CloseButton2,
|
|
10435
10590
|
{
|
|
10436
10591
|
className: (0, import_system91.cn)("flex items-center", classNames3.closeButton)
|
|
@@ -10447,7 +10602,7 @@ var import_visually_hidden = require("@react-aria/visually-hidden");
|
|
|
10447
10602
|
|
|
10448
10603
|
// src/XLoader/XLoader.tsx
|
|
10449
10604
|
var import_react_aria_components63 = require("react-aria-components");
|
|
10450
|
-
var
|
|
10605
|
+
var import_utils16 = require("@react-aria/utils");
|
|
10451
10606
|
var import_system93 = require("@marigold/system");
|
|
10452
10607
|
|
|
10453
10608
|
// src/XLoader/BaseLoader.tsx
|
|
@@ -10466,7 +10621,7 @@ var intlMessages2 = {
|
|
|
10466
10621
|
};
|
|
10467
10622
|
|
|
10468
10623
|
// src/XLoader/BaseLoader.tsx
|
|
10469
|
-
var
|
|
10624
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
10470
10625
|
var BaseLoader = ({
|
|
10471
10626
|
variant,
|
|
10472
10627
|
size: size2,
|
|
@@ -10476,7 +10631,7 @@ var BaseLoader = ({
|
|
|
10476
10631
|
}) => {
|
|
10477
10632
|
const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
|
|
10478
10633
|
const className = (0, import_system92.useClassNames)({ component: "XLoader", variant, size: size2 });
|
|
10479
|
-
return /* @__PURE__ */ (0,
|
|
10634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
10480
10635
|
import_react_aria_components62.ProgressBar,
|
|
10481
10636
|
{
|
|
10482
10637
|
className: className.container,
|
|
@@ -10484,7 +10639,7 @@ var BaseLoader = ({
|
|
|
10484
10639
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10485
10640
|
...props,
|
|
10486
10641
|
children: [
|
|
10487
|
-
/* @__PURE__ */ (0,
|
|
10642
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
10488
10643
|
"svg",
|
|
10489
10644
|
{
|
|
10490
10645
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10492,13 +10647,13 @@ var BaseLoader = ({
|
|
|
10492
10647
|
fill: "currentColor",
|
|
10493
10648
|
className: className.loader,
|
|
10494
10649
|
children: [
|
|
10495
|
-
/* @__PURE__ */ (0,
|
|
10496
|
-
/* @__PURE__ */ (0,
|
|
10650
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
10651
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10497
10652
|
"path",
|
|
10498
10653
|
{
|
|
10499
10654
|
id: "XMLID_5_",
|
|
10500
10655
|
d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10501
|
-
children: /* @__PURE__ */ (0,
|
|
10656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10502
10657
|
"animate",
|
|
10503
10658
|
{
|
|
10504
10659
|
attributeName: "opacity",
|
|
@@ -10511,12 +10666,12 @@ var BaseLoader = ({
|
|
|
10511
10666
|
)
|
|
10512
10667
|
}
|
|
10513
10668
|
),
|
|
10514
|
-
/* @__PURE__ */ (0,
|
|
10669
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10515
10670
|
"path",
|
|
10516
10671
|
{
|
|
10517
10672
|
id: "XMLID_18_",
|
|
10518
10673
|
d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10519
|
-
children: /* @__PURE__ */ (0,
|
|
10674
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10520
10675
|
"animate",
|
|
10521
10676
|
{
|
|
10522
10677
|
attributeName: "opacity",
|
|
@@ -10529,12 +10684,12 @@ var BaseLoader = ({
|
|
|
10529
10684
|
)
|
|
10530
10685
|
}
|
|
10531
10686
|
),
|
|
10532
|
-
/* @__PURE__ */ (0,
|
|
10687
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10533
10688
|
"path",
|
|
10534
10689
|
{
|
|
10535
10690
|
id: "XMLID_19_",
|
|
10536
10691
|
d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10537
|
-
children: /* @__PURE__ */ (0,
|
|
10692
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10538
10693
|
"animate",
|
|
10539
10694
|
{
|
|
10540
10695
|
attributeName: "opacity",
|
|
@@ -10547,12 +10702,12 @@ var BaseLoader = ({
|
|
|
10547
10702
|
)
|
|
10548
10703
|
}
|
|
10549
10704
|
),
|
|
10550
|
-
/* @__PURE__ */ (0,
|
|
10705
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10551
10706
|
"path",
|
|
10552
10707
|
{
|
|
10553
10708
|
id: "XMLID_20_",
|
|
10554
10709
|
d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10555
|
-
children: /* @__PURE__ */ (0,
|
|
10710
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10556
10711
|
"animate",
|
|
10557
10712
|
{
|
|
10558
10713
|
attributeName: "opacity",
|
|
@@ -10565,12 +10720,12 @@ var BaseLoader = ({
|
|
|
10565
10720
|
)
|
|
10566
10721
|
}
|
|
10567
10722
|
),
|
|
10568
|
-
/* @__PURE__ */ (0,
|
|
10723
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10569
10724
|
"path",
|
|
10570
10725
|
{
|
|
10571
10726
|
id: "XMLID_21_",
|
|
10572
10727
|
d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
|
|
10573
|
-
children: /* @__PURE__ */ (0,
|
|
10728
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10574
10729
|
"animate",
|
|
10575
10730
|
{
|
|
10576
10731
|
attributeName: "opacity",
|
|
@@ -10583,12 +10738,12 @@ var BaseLoader = ({
|
|
|
10583
10738
|
)
|
|
10584
10739
|
}
|
|
10585
10740
|
),
|
|
10586
|
-
/* @__PURE__ */ (0,
|
|
10741
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10587
10742
|
"path",
|
|
10588
10743
|
{
|
|
10589
10744
|
id: "XMLID_22_",
|
|
10590
10745
|
d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
|
|
10591
|
-
children: /* @__PURE__ */ (0,
|
|
10746
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10592
10747
|
"animate",
|
|
10593
10748
|
{
|
|
10594
10749
|
attributeName: "opacity",
|
|
@@ -10601,12 +10756,12 @@ var BaseLoader = ({
|
|
|
10601
10756
|
)
|
|
10602
10757
|
}
|
|
10603
10758
|
),
|
|
10604
|
-
/* @__PURE__ */ (0,
|
|
10759
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10605
10760
|
"path",
|
|
10606
10761
|
{
|
|
10607
10762
|
id: "XMLID_23_",
|
|
10608
10763
|
d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10609
|
-
children: /* @__PURE__ */ (0,
|
|
10764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10610
10765
|
"animate",
|
|
10611
10766
|
{
|
|
10612
10767
|
attributeName: "opacity",
|
|
@@ -10619,12 +10774,12 @@ var BaseLoader = ({
|
|
|
10619
10774
|
)
|
|
10620
10775
|
}
|
|
10621
10776
|
),
|
|
10622
|
-
/* @__PURE__ */ (0,
|
|
10777
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10623
10778
|
"path",
|
|
10624
10779
|
{
|
|
10625
10780
|
id: "XMLID_24_",
|
|
10626
10781
|
d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
|
|
10627
|
-
children: /* @__PURE__ */ (0,
|
|
10782
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10628
10783
|
"animate",
|
|
10629
10784
|
{
|
|
10630
10785
|
attributeName: "opacity",
|
|
@@ -10637,12 +10792,12 @@ var BaseLoader = ({
|
|
|
10637
10792
|
)
|
|
10638
10793
|
}
|
|
10639
10794
|
),
|
|
10640
|
-
/* @__PURE__ */ (0,
|
|
10795
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10641
10796
|
"path",
|
|
10642
10797
|
{
|
|
10643
10798
|
id: "XMLID_25_",
|
|
10644
10799
|
d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
|
|
10645
|
-
children: /* @__PURE__ */ (0,
|
|
10800
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10646
10801
|
"animate",
|
|
10647
10802
|
{
|
|
10648
10803
|
attributeName: "opacity",
|
|
@@ -10655,12 +10810,12 @@ var BaseLoader = ({
|
|
|
10655
10810
|
)
|
|
10656
10811
|
}
|
|
10657
10812
|
),
|
|
10658
|
-
/* @__PURE__ */ (0,
|
|
10813
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10659
10814
|
"path",
|
|
10660
10815
|
{
|
|
10661
10816
|
id: "XMLID_26_",
|
|
10662
10817
|
d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
|
|
10663
|
-
children: /* @__PURE__ */ (0,
|
|
10818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10664
10819
|
"animate",
|
|
10665
10820
|
{
|
|
10666
10821
|
attributeName: "opacity",
|
|
@@ -10673,12 +10828,12 @@ var BaseLoader = ({
|
|
|
10673
10828
|
)
|
|
10674
10829
|
}
|
|
10675
10830
|
),
|
|
10676
|
-
/* @__PURE__ */ (0,
|
|
10831
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10677
10832
|
"path",
|
|
10678
10833
|
{
|
|
10679
10834
|
id: "XMLID_27_",
|
|
10680
10835
|
d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
|
|
10681
|
-
children: /* @__PURE__ */ (0,
|
|
10836
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10682
10837
|
"animate",
|
|
10683
10838
|
{
|
|
10684
10839
|
attributeName: "opacity",
|
|
@@ -10694,17 +10849,17 @@ var BaseLoader = ({
|
|
|
10694
10849
|
]
|
|
10695
10850
|
}
|
|
10696
10851
|
),
|
|
10697
|
-
children ? /* @__PURE__ */ (0,
|
|
10852
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components62.Label, { className: className.label, children }) : null
|
|
10698
10853
|
]
|
|
10699
10854
|
}
|
|
10700
10855
|
);
|
|
10701
10856
|
};
|
|
10702
10857
|
|
|
10703
10858
|
// src/XLoader/XLoader.tsx
|
|
10704
|
-
var
|
|
10859
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
10705
10860
|
var LoaderFullScreen = (props) => {
|
|
10706
|
-
const id = (0,
|
|
10707
|
-
return /* @__PURE__ */ (0,
|
|
10861
|
+
const id = (0, import_utils16.useId)();
|
|
10862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components63.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components63.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { id, ...props }) }) }) });
|
|
10708
10863
|
};
|
|
10709
10864
|
var LoaderSection = (props) => {
|
|
10710
10865
|
const className = (0, import_system93.useClassNames)({
|
|
@@ -10712,26 +10867,26 @@ var LoaderSection = (props) => {
|
|
|
10712
10867
|
variant: "modal",
|
|
10713
10868
|
className: "flex size-full items-center justify-center"
|
|
10714
10869
|
});
|
|
10715
|
-
return /* @__PURE__ */ (0,
|
|
10870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { ...props }) });
|
|
10716
10871
|
};
|
|
10717
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0,
|
|
10872
|
+
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { variant, ...props });
|
|
10718
10873
|
|
|
10719
10874
|
// src/Tabs/Tabs.tsx
|
|
10720
10875
|
var import_react_aria_components67 = require("react-aria-components");
|
|
10721
10876
|
var import_system96 = require("@marigold/system");
|
|
10722
10877
|
|
|
10723
10878
|
// src/Tabs/Context.ts
|
|
10724
|
-
var
|
|
10725
|
-
var TabContext = (0,
|
|
10726
|
-
var useTabContext = () => (0,
|
|
10879
|
+
var import_react72 = require("react");
|
|
10880
|
+
var TabContext = (0, import_react72.createContext)({});
|
|
10881
|
+
var useTabContext = () => (0, import_react72.useContext)(TabContext);
|
|
10727
10882
|
|
|
10728
10883
|
// src/Tabs/Tab.tsx
|
|
10729
10884
|
var import_react_aria_components64 = require("react-aria-components");
|
|
10730
10885
|
var import_system94 = require("@marigold/system");
|
|
10731
|
-
var
|
|
10886
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
10732
10887
|
var _Tab = (props) => {
|
|
10733
10888
|
const { classNames: classNames3 } = useTabContext();
|
|
10734
|
-
return /* @__PURE__ */ (0,
|
|
10889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
10735
10890
|
import_react_aria_components64.Tab,
|
|
10736
10891
|
{
|
|
10737
10892
|
...props,
|
|
@@ -10747,10 +10902,10 @@ var _Tab = (props) => {
|
|
|
10747
10902
|
// src/Tabs/TabList.tsx
|
|
10748
10903
|
var import_react_aria_components65 = require("react-aria-components");
|
|
10749
10904
|
var import_system95 = require("@marigold/system");
|
|
10750
|
-
var
|
|
10905
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
10751
10906
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10752
10907
|
const { classNames: classNames3 } = useTabContext();
|
|
10753
|
-
return /* @__PURE__ */ (0,
|
|
10908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
10754
10909
|
import_react_aria_components65.TabList,
|
|
10755
10910
|
{
|
|
10756
10911
|
...props,
|
|
@@ -10762,14 +10917,14 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10762
10917
|
|
|
10763
10918
|
// src/Tabs/TabPanel.tsx
|
|
10764
10919
|
var import_react_aria_components66 = require("react-aria-components");
|
|
10765
|
-
var
|
|
10920
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
10766
10921
|
var _TabPanel = (props) => {
|
|
10767
10922
|
const { classNames: classNames3 } = useTabContext();
|
|
10768
|
-
return /* @__PURE__ */ (0,
|
|
10923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components66.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
10769
10924
|
};
|
|
10770
10925
|
|
|
10771
10926
|
// src/Tabs/Tabs.tsx
|
|
10772
|
-
var
|
|
10927
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
10773
10928
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
10774
10929
|
const props = {
|
|
10775
10930
|
isDisabled: disabled,
|
|
@@ -10780,7 +10935,7 @@ var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
|
10780
10935
|
size: size2,
|
|
10781
10936
|
variant
|
|
10782
10937
|
});
|
|
10783
|
-
return /* @__PURE__ */ (0,
|
|
10938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react_aria_components67.Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
10784
10939
|
};
|
|
10785
10940
|
_Tabs.List = _TabList;
|
|
10786
10941
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -10833,6 +10988,7 @@ var import_react_aria_components68 = require("react-aria-components");
|
|
|
10833
10988
|
Menu,
|
|
10834
10989
|
Modal,
|
|
10835
10990
|
Multiselect,
|
|
10991
|
+
NonModal,
|
|
10836
10992
|
NumberField,
|
|
10837
10993
|
OverlayContainerProvider,
|
|
10838
10994
|
Pagination,
|