@marigold/components 11.2.2 → 11.3.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 +87 -7
- package/dist/index.d.ts +87 -7
- package/dist/index.js +630 -433
- package/dist/index.mjs +560 -350
- package/package.json +24 -12
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
|
|
|
@@ -2337,7 +2338,7 @@ var _DialogTrigger = ({
|
|
|
2337
2338
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2338
2339
|
var CloseButton = ({ className }) => {
|
|
2339
2340
|
const ctx = (0, import_react26.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
|
|
2340
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2341
2342
|
"button",
|
|
2342
2343
|
{
|
|
2343
2344
|
className: (0, import_system40.cn)(
|
|
@@ -2355,7 +2356,7 @@ var CloseButton = ({ className }) => {
|
|
|
2355
2356
|
}
|
|
2356
2357
|
) })
|
|
2357
2358
|
}
|
|
2358
|
-
)
|
|
2359
|
+
);
|
|
2359
2360
|
};
|
|
2360
2361
|
var _Dialog = ({
|
|
2361
2362
|
variant,
|
|
@@ -3114,36 +3115,64 @@ var icons = {
|
|
|
3114
3115
|
"svg",
|
|
3115
3116
|
{
|
|
3116
3117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3117
|
-
viewBox: "0
|
|
3118
|
+
viewBox: "0 0 24 24",
|
|
3118
3119
|
fill: "currentColor",
|
|
3119
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3120
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3121
|
+
"path",
|
|
3122
|
+
{
|
|
3123
|
+
fillRule: "evenodd",
|
|
3124
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",
|
|
3125
|
+
clipRule: "evenodd"
|
|
3126
|
+
}
|
|
3127
|
+
)
|
|
3120
3128
|
}
|
|
3121
3129
|
),
|
|
3122
3130
|
info: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3123
3131
|
"svg",
|
|
3124
3132
|
{
|
|
3125
3133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3126
|
-
viewBox: "0
|
|
3134
|
+
viewBox: "0 0 24 24",
|
|
3127
3135
|
fill: "currentColor",
|
|
3128
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3137
|
+
"path",
|
|
3138
|
+
{
|
|
3139
|
+
fillRule: "evenodd",
|
|
3140
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3141
|
+
clipRule: "evenodd"
|
|
3142
|
+
}
|
|
3143
|
+
)
|
|
3129
3144
|
}
|
|
3130
3145
|
),
|
|
3131
3146
|
warning: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3132
3147
|
"svg",
|
|
3133
3148
|
{
|
|
3134
3149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3135
|
-
viewBox: "0
|
|
3150
|
+
viewBox: "0 0 24 24",
|
|
3136
3151
|
fill: "currentColor",
|
|
3137
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3152
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3153
|
+
"path",
|
|
3154
|
+
{
|
|
3155
|
+
fillRule: "evenodd",
|
|
3156
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3157
|
+
clipRule: "evenodd"
|
|
3158
|
+
}
|
|
3159
|
+
)
|
|
3138
3160
|
}
|
|
3139
3161
|
),
|
|
3140
3162
|
error: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3141
3163
|
"svg",
|
|
3142
3164
|
{
|
|
3143
3165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3144
|
-
viewBox: "0
|
|
3166
|
+
viewBox: "0 0 24 24",
|
|
3145
3167
|
fill: "currentColor",
|
|
3146
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3169
|
+
"path",
|
|
3170
|
+
{
|
|
3171
|
+
fillRule: "evenodd",
|
|
3172
|
+
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3173
|
+
clipRule: "evenodd"
|
|
3174
|
+
}
|
|
3175
|
+
)
|
|
3147
3176
|
}
|
|
3148
3177
|
)
|
|
3149
3178
|
};
|
|
@@ -3181,7 +3210,7 @@ var SectionMessage = ({
|
|
|
3181
3210
|
className: (0, import_system63.cn)("grid auto-rows-min", classNames3.container),
|
|
3182
3211
|
children: [
|
|
3183
3212
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_system63.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon4, {}) }),
|
|
3184
|
-
closeButton && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3213
|
+
closeButton && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3185
3214
|
"button",
|
|
3186
3215
|
{
|
|
3187
3216
|
...buttonProps,
|
|
@@ -3198,7 +3227,7 @@ var SectionMessage = ({
|
|
|
3198
3227
|
}
|
|
3199
3228
|
) })
|
|
3200
3229
|
}
|
|
3201
|
-
)
|
|
3230
|
+
),
|
|
3202
3231
|
children
|
|
3203
3232
|
]
|
|
3204
3233
|
}
|
|
@@ -3208,11 +3237,9 @@ SectionMessage.Title = SectionMessageTitle;
|
|
|
3208
3237
|
SectionMessage.Content = SectionMessageContent;
|
|
3209
3238
|
|
|
3210
3239
|
// src/Multiselect/Multiselect.tsx
|
|
3211
|
-
var import_react46 = require("react");
|
|
3212
3240
|
var import_react_aria_components43 = require("react-aria-components");
|
|
3213
|
-
var import_react_aria_components44 = require("react-aria-components");
|
|
3214
3241
|
|
|
3215
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3242
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
3216
3243
|
function _typeof(o) {
|
|
3217
3244
|
"@babel/helpers - typeof";
|
|
3218
3245
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -3222,7 +3249,7 @@ function _typeof(o) {
|
|
|
3222
3249
|
}, _typeof(o);
|
|
3223
3250
|
}
|
|
3224
3251
|
|
|
3225
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3252
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3226
3253
|
function toPrimitive(t, r) {
|
|
3227
3254
|
if ("object" != _typeof(t) || !t) return t;
|
|
3228
3255
|
var e = t[Symbol.toPrimitive];
|
|
@@ -3234,13 +3261,13 @@ function toPrimitive(t, r) {
|
|
|
3234
3261
|
return ("string" === r ? String : Number)(t);
|
|
3235
3262
|
}
|
|
3236
3263
|
|
|
3237
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3264
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
3238
3265
|
function toPropertyKey(t) {
|
|
3239
3266
|
var i = toPrimitive(t, "string");
|
|
3240
3267
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
3241
3268
|
}
|
|
3242
3269
|
|
|
3243
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3270
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3244
3271
|
function _defineProperty(e, r, t) {
|
|
3245
3272
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3246
3273
|
value: t,
|
|
@@ -3250,7 +3277,7 @@ function _defineProperty(e, r, t) {
|
|
|
3250
3277
|
}) : e[r] = t, e;
|
|
3251
3278
|
}
|
|
3252
3279
|
|
|
3253
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3280
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3254
3281
|
function ownKeys(e, r) {
|
|
3255
3282
|
var t = Object.keys(e);
|
|
3256
3283
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3273,12 +3300,12 @@ function _objectSpread2(e) {
|
|
|
3273
3300
|
return e;
|
|
3274
3301
|
}
|
|
3275
3302
|
|
|
3276
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3303
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
3277
3304
|
function _arrayWithHoles(r) {
|
|
3278
3305
|
if (Array.isArray(r)) return r;
|
|
3279
3306
|
}
|
|
3280
3307
|
|
|
3281
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3308
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
3282
3309
|
function _iterableToArrayLimit(r, l) {
|
|
3283
3310
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3284
3311
|
if (null != t) {
|
|
@@ -3301,14 +3328,14 @@ function _iterableToArrayLimit(r, l) {
|
|
|
3301
3328
|
}
|
|
3302
3329
|
}
|
|
3303
3330
|
|
|
3304
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3331
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
3305
3332
|
function _arrayLikeToArray(r, a) {
|
|
3306
3333
|
(null == a || a > r.length) && (a = r.length);
|
|
3307
3334
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3308
3335
|
return n;
|
|
3309
3336
|
}
|
|
3310
3337
|
|
|
3311
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3338
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3312
3339
|
function _unsupportedIterableToArray(r, a) {
|
|
3313
3340
|
if (r) {
|
|
3314
3341
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -3317,39 +3344,39 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
3317
3344
|
}
|
|
3318
3345
|
}
|
|
3319
3346
|
|
|
3320
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3347
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
3321
3348
|
function _nonIterableRest() {
|
|
3322
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.");
|
|
3323
3350
|
}
|
|
3324
3351
|
|
|
3325
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3352
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
3326
3353
|
function _slicedToArray(r, e) {
|
|
3327
3354
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
3328
3355
|
}
|
|
3329
3356
|
|
|
3330
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3357
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
3331
3358
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3332
3359
|
if (null == r) return {};
|
|
3333
3360
|
var t = {};
|
|
3334
3361
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3335
|
-
if (e.
|
|
3362
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
3336
3363
|
t[n] = r[n];
|
|
3337
3364
|
}
|
|
3338
3365
|
return t;
|
|
3339
3366
|
}
|
|
3340
3367
|
|
|
3341
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3368
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
3342
3369
|
function _objectWithoutProperties(e, t) {
|
|
3343
3370
|
if (null == e) return {};
|
|
3344
3371
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
3345
3372
|
if (Object.getOwnPropertySymbols) {
|
|
3346
|
-
var
|
|
3347
|
-
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]);
|
|
3348
3375
|
}
|
|
3349
3376
|
return i;
|
|
3350
3377
|
}
|
|
3351
3378
|
|
|
3352
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
3379
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3353
3380
|
var import_react38 = require("react");
|
|
3354
3381
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3355
3382
|
function useStateManager(_ref3) {
|
|
@@ -3396,7 +3423,7 @@ function useStateManager(_ref3) {
|
|
|
3396
3423
|
});
|
|
3397
3424
|
}
|
|
3398
3425
|
|
|
3399
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3426
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3400
3427
|
function _extends() {
|
|
3401
3428
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3402
3429
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3407,16 +3434,16 @@ function _extends() {
|
|
|
3407
3434
|
}, _extends.apply(null, arguments);
|
|
3408
3435
|
}
|
|
3409
3436
|
|
|
3410
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
3437
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/react-select.esm.js
|
|
3411
3438
|
var React11 = __toESM(require("react"));
|
|
3412
3439
|
var import_react45 = require("react");
|
|
3413
3440
|
|
|
3414
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3441
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3415
3442
|
function _classCallCheck(a, n) {
|
|
3416
3443
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3417
3444
|
}
|
|
3418
3445
|
|
|
3419
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3446
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
3420
3447
|
function _defineProperties(e, r) {
|
|
3421
3448
|
for (var t = 0; t < r.length; t++) {
|
|
3422
3449
|
var o = r[t];
|
|
@@ -3429,14 +3456,14 @@ function _createClass(e, r, t) {
|
|
|
3429
3456
|
}), e;
|
|
3430
3457
|
}
|
|
3431
3458
|
|
|
3432
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3459
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
3433
3460
|
function _setPrototypeOf(t, e) {
|
|
3434
3461
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3435
3462
|
return t2.__proto__ = e2, t2;
|
|
3436
3463
|
}, _setPrototypeOf(t, e);
|
|
3437
3464
|
}
|
|
3438
3465
|
|
|
3439
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3466
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
3440
3467
|
function _inherits(t, e) {
|
|
3441
3468
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
3442
3469
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -3450,14 +3477,14 @@ function _inherits(t, e) {
|
|
|
3450
3477
|
}), e && _setPrototypeOf(t, e);
|
|
3451
3478
|
}
|
|
3452
3479
|
|
|
3453
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3480
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
3454
3481
|
function _getPrototypeOf(t) {
|
|
3455
3482
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
3456
3483
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
3457
3484
|
}, _getPrototypeOf(t);
|
|
3458
3485
|
}
|
|
3459
3486
|
|
|
3460
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3487
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
3461
3488
|
function _isNativeReflectConstruct() {
|
|
3462
3489
|
try {
|
|
3463
3490
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -3469,20 +3496,20 @@ function _isNativeReflectConstruct() {
|
|
|
3469
3496
|
})();
|
|
3470
3497
|
}
|
|
3471
3498
|
|
|
3472
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3499
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
3473
3500
|
function _assertThisInitialized(e) {
|
|
3474
3501
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3475
3502
|
return e;
|
|
3476
3503
|
}
|
|
3477
3504
|
|
|
3478
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3505
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
3479
3506
|
function _possibleConstructorReturn(t, e) {
|
|
3480
3507
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
3481
3508
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3482
3509
|
return _assertThisInitialized(t);
|
|
3483
3510
|
}
|
|
3484
3511
|
|
|
3485
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3512
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
3486
3513
|
function _createSuper(t) {
|
|
3487
3514
|
var r = _isNativeReflectConstruct();
|
|
3488
3515
|
return function() {
|
|
@@ -3495,27 +3522,27 @@ function _createSuper(t) {
|
|
|
3495
3522
|
};
|
|
3496
3523
|
}
|
|
3497
3524
|
|
|
3498
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3525
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
3499
3526
|
function _arrayWithoutHoles(r) {
|
|
3500
3527
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
3501
3528
|
}
|
|
3502
3529
|
|
|
3503
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3530
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
3504
3531
|
function _iterableToArray(r) {
|
|
3505
3532
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
3506
3533
|
}
|
|
3507
3534
|
|
|
3508
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3535
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
3509
3536
|
function _nonIterableSpread() {
|
|
3510
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.");
|
|
3511
3538
|
}
|
|
3512
3539
|
|
|
3513
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3540
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
3514
3541
|
function _toConsumableArray(r) {
|
|
3515
3542
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
3516
3543
|
}
|
|
3517
3544
|
|
|
3518
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
3545
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
3519
3546
|
var React10 = __toESM(require("react"));
|
|
3520
3547
|
var import_react43 = require("react");
|
|
3521
3548
|
|
|
@@ -4839,7 +4866,7 @@ function keyframes() {
|
|
|
4839
4866
|
};
|
|
4840
4867
|
}
|
|
4841
4868
|
|
|
4842
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
4869
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
|
|
4843
4870
|
function _taggedTemplateLiteral(e, t) {
|
|
4844
4871
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
4845
4872
|
raw: {
|
|
@@ -4848,7 +4875,7 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
4848
4875
|
}));
|
|
4849
4876
|
}
|
|
4850
4877
|
|
|
4851
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
4878
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
4852
4879
|
var import_react42 = require("react");
|
|
4853
4880
|
var import_react_dom = require("react-dom");
|
|
4854
4881
|
|
|
@@ -5254,7 +5281,7 @@ var import_react40 = require("react");
|
|
|
5254
5281
|
var isClient = typeof document !== "undefined";
|
|
5255
5282
|
var index = isClient ? import_react40.useLayoutEffect : import_react40.useEffect;
|
|
5256
5283
|
|
|
5257
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
5284
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5258
5285
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5259
5286
|
var noop = function noop2() {
|
|
5260
5287
|
};
|
|
@@ -6328,7 +6355,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6328
6355
|
return memoized;
|
|
6329
6356
|
}
|
|
6330
6357
|
|
|
6331
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
6358
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
6332
6359
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6333
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).";
|
|
6334
6361
|
}
|
|
@@ -8173,7 +8200,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8173
8200
|
// ==============================
|
|
8174
8201
|
function renderInput() {
|
|
8175
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;
|
|
8176
|
-
var _this$getComponents = this.getComponents(),
|
|
8203
|
+
var _this$getComponents = this.getComponents(), Input6 = _this$getComponents.Input;
|
|
8177
8204
|
var _this$state4 = this.state, inputIsHidden = _this$state4.inputIsHidden, ariaSelection = _this$state4.ariaSelection;
|
|
8178
8205
|
var commonProps = this.commonProps;
|
|
8179
8206
|
var id = inputId || this.getElementId("input");
|
|
@@ -8211,7 +8238,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8211
8238
|
value: ""
|
|
8212
8239
|
}, ariaAttributes));
|
|
8213
8240
|
}
|
|
8214
|
-
return /* @__PURE__ */ React10.createElement(
|
|
8241
|
+
return /* @__PURE__ */ React10.createElement(Input6, _extends({}, commonProps, {
|
|
8215
8242
|
autoCapitalize: "none",
|
|
8216
8243
|
autoComplete: "off",
|
|
8217
8244
|
autoCorrect: "off",
|
|
@@ -8624,7 +8651,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8624
8651
|
}(import_react43.Component);
|
|
8625
8652
|
Select.defaultProps = defaultProps;
|
|
8626
8653
|
|
|
8627
|
-
// ../../node_modules/.pnpm/react-select@5.
|
|
8654
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/react-select/dist/react-select.esm.js
|
|
8628
8655
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
8629
8656
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
8630
8657
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -8645,7 +8672,7 @@ var StateManagedSelect = /* @__PURE__ */ (0, import_react45.forwardRef)(function
|
|
|
8645
8672
|
});
|
|
8646
8673
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
8647
8674
|
|
|
8648
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
8675
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
8649
8676
|
var import_utils5 = require("@react-aria/utils");
|
|
8650
8677
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
8651
8678
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
@@ -8670,7 +8697,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
|
8670
8697
|
};
|
|
8671
8698
|
}
|
|
8672
8699
|
|
|
8673
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
8700
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-aria/label/dist/useField.mjs
|
|
8674
8701
|
var import_utils6 = require("@react-aria/utils");
|
|
8675
8702
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
8676
8703
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
@@ -8708,6 +8735,7 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
8708
8735
|
}
|
|
8709
8736
|
|
|
8710
8737
|
// src/Multiselect/Multiselect.tsx
|
|
8738
|
+
var import_utils7 = require("@react-aria/utils");
|
|
8711
8739
|
var import_system64 = require("@marigold/system");
|
|
8712
8740
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
8713
8741
|
var propsToBeRemoved = [
|
|
@@ -8736,7 +8764,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8736
8764
|
{}
|
|
8737
8765
|
);
|
|
8738
8766
|
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
8739
|
-
|
|
8767
|
+
import_react_aria_components43.Input,
|
|
8740
8768
|
{
|
|
8741
8769
|
disabled: props.isDisabled,
|
|
8742
8770
|
ref: innerRef,
|
|
@@ -8746,7 +8774,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8746
8774
|
);
|
|
8747
8775
|
};
|
|
8748
8776
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
8749
|
-
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" }) }) });
|
|
8750
8778
|
};
|
|
8751
8779
|
var getClassNames = (classNames3) => ({
|
|
8752
8780
|
control: () => (0, import_system64.cn)(
|
|
@@ -8859,7 +8887,7 @@ var Multiselect = ({
|
|
|
8859
8887
|
inputId: fieldProps.id,
|
|
8860
8888
|
"aria-invalid": error,
|
|
8861
8889
|
isClearable: false,
|
|
8862
|
-
instanceId: (0,
|
|
8890
|
+
instanceId: (0, import_utils7.useId)(),
|
|
8863
8891
|
isSearchable: !readOnly,
|
|
8864
8892
|
isMulti: true,
|
|
8865
8893
|
closeMenuOnSelect: false,
|
|
@@ -8890,12 +8918,12 @@ var Multiselect = ({
|
|
|
8890
8918
|
};
|
|
8891
8919
|
|
|
8892
8920
|
// src/NumberField/NumberField.tsx
|
|
8893
|
-
var
|
|
8894
|
-
var
|
|
8921
|
+
var import_react46 = require("react");
|
|
8922
|
+
var import_react_aria_components45 = require("react-aria-components");
|
|
8895
8923
|
var import_system66 = require("@marigold/system");
|
|
8896
8924
|
|
|
8897
8925
|
// src/NumberField/StepButton.tsx
|
|
8898
|
-
var
|
|
8926
|
+
var import_react_aria_components44 = require("react-aria-components");
|
|
8899
8927
|
var import_system65 = require("@marigold/system");
|
|
8900
8928
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
8901
8929
|
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)(
|
|
@@ -8917,7 +8945,7 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width:
|
|
|
8917
8945
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
8918
8946
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
8919
8947
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8920
|
-
|
|
8948
|
+
import_react_aria_components44.Button,
|
|
8921
8949
|
{
|
|
8922
8950
|
className: (0, import_system65.cn)(
|
|
8923
8951
|
[
|
|
@@ -8934,7 +8962,7 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
8934
8962
|
|
|
8935
8963
|
// src/NumberField/NumberField.tsx
|
|
8936
8964
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
8937
|
-
var _NumberField = (0,
|
|
8965
|
+
var _NumberField = (0, import_react46.forwardRef)(
|
|
8938
8966
|
({
|
|
8939
8967
|
variant,
|
|
8940
8968
|
size: size2,
|
|
@@ -8957,45 +8985,206 @@ var _NumberField = (0, import_react47.forwardRef)(
|
|
|
8957
8985
|
isRequired: required,
|
|
8958
8986
|
...rest
|
|
8959
8987
|
};
|
|
8960
|
-
const showStepper = !hideStepper;
|
|
8961
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
+
const showStepper = !hideStepper && !readOnly;
|
|
8989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8990
|
+
FieldBase,
|
|
8991
|
+
{
|
|
8992
|
+
as: import_react_aria_components45.NumberField,
|
|
8993
|
+
...props,
|
|
8994
|
+
"data-readonly": readOnly ? "true" : void 0,
|
|
8995
|
+
"data-stepper": showStepper ? "true" : void 0,
|
|
8996
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react_aria_components45.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames3.group), children: [
|
|
8997
|
+
showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8998
|
+
_StepButton,
|
|
8999
|
+
{
|
|
9000
|
+
className: classNames3.stepper,
|
|
9001
|
+
direction: "down",
|
|
9002
|
+
slot: "decrement"
|
|
9003
|
+
}
|
|
9004
|
+
),
|
|
9005
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9006
|
+
import_react_aria_components45.Input,
|
|
9007
|
+
{
|
|
9008
|
+
ref,
|
|
9009
|
+
className: (0, import_system66.cn)("h-full flex-1 outline-none", classNames3.input)
|
|
9010
|
+
}
|
|
9011
|
+
),
|
|
9012
|
+
showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9013
|
+
_StepButton,
|
|
9014
|
+
{
|
|
9015
|
+
className: classNames3.stepper,
|
|
9016
|
+
direction: "up",
|
|
9017
|
+
slot: "increment"
|
|
9018
|
+
}
|
|
9019
|
+
)
|
|
9020
|
+
] })
|
|
9021
|
+
}
|
|
9022
|
+
);
|
|
9023
|
+
}
|
|
9024
|
+
);
|
|
9025
|
+
|
|
9026
|
+
// src/Overlay/NonModal.tsx
|
|
9027
|
+
var import_react48 = require("react");
|
|
9028
|
+
var import_react_aria_components46 = require("react-aria-components");
|
|
9029
|
+
var import_react_stately = require("react-stately");
|
|
9030
|
+
var import_focus = require("@react-aria/focus");
|
|
9031
|
+
var import_overlays2 = require("@react-aria/overlays");
|
|
9032
|
+
var import_ssr2 = require("@react-aria/ssr");
|
|
9033
|
+
var import_utils8 = require("@react-aria/utils");
|
|
9034
|
+
|
|
9035
|
+
// src/utils/useRenderProps.tsx
|
|
9036
|
+
var import_react47 = require("react");
|
|
9037
|
+
function useRenderProps(props) {
|
|
9038
|
+
let {
|
|
9039
|
+
className,
|
|
9040
|
+
style,
|
|
9041
|
+
children,
|
|
9042
|
+
defaultClassName = void 0,
|
|
9043
|
+
defaultChildren = void 0,
|
|
9044
|
+
defaultStyle,
|
|
9045
|
+
values
|
|
9046
|
+
} = props;
|
|
9047
|
+
return (0, import_react47.useMemo)(() => {
|
|
9048
|
+
let computedClassName;
|
|
9049
|
+
let computedStyle;
|
|
9050
|
+
let computedChildren;
|
|
9051
|
+
if (typeof className === "function") {
|
|
9052
|
+
computedClassName = className({ ...values, defaultClassName });
|
|
9053
|
+
} else {
|
|
9054
|
+
computedClassName = className;
|
|
9055
|
+
}
|
|
9056
|
+
if (typeof style === "function") {
|
|
9057
|
+
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
9058
|
+
} else {
|
|
9059
|
+
computedStyle = style;
|
|
9060
|
+
}
|
|
9061
|
+
if (typeof children === "function") {
|
|
9062
|
+
computedChildren = children({ ...values, defaultChildren });
|
|
9063
|
+
} else if (children == null) {
|
|
9064
|
+
computedChildren = defaultChildren;
|
|
9065
|
+
} else {
|
|
9066
|
+
computedChildren = children;
|
|
9067
|
+
}
|
|
9068
|
+
return {
|
|
9069
|
+
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
9070
|
+
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
9071
|
+
children: computedChildren != null ? computedChildren : defaultChildren,
|
|
9072
|
+
"data-rac": ""
|
|
9073
|
+
};
|
|
9074
|
+
}, [
|
|
9075
|
+
className,
|
|
9076
|
+
style,
|
|
9077
|
+
children,
|
|
9078
|
+
defaultClassName,
|
|
9079
|
+
defaultChildren,
|
|
9080
|
+
defaultStyle,
|
|
9081
|
+
values
|
|
9082
|
+
]);
|
|
9083
|
+
}
|
|
9084
|
+
|
|
9085
|
+
// src/Overlay/useNonModal.ts
|
|
9086
|
+
var import_overlays = require("@react-aria/overlays");
|
|
9087
|
+
var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
9088
|
+
let { overlayProps } = (0, import_overlays.useOverlay)(
|
|
9089
|
+
{
|
|
9090
|
+
isOpen: state.isOpen,
|
|
9091
|
+
onClose: state.close,
|
|
9092
|
+
shouldCloseOnBlur: false,
|
|
9093
|
+
isDismissable: false,
|
|
9094
|
+
isKeyboardDismissDisabled: keyboardDismissable ? false : true
|
|
9095
|
+
},
|
|
9096
|
+
nonModalRef
|
|
9097
|
+
);
|
|
9098
|
+
return {
|
|
9099
|
+
nonModalProps: overlayProps
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
|
|
9103
|
+
// src/Overlay/NonModal.tsx
|
|
9104
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
9105
|
+
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
9106
|
+
const { nonModalProps } = useNonModal(props, state);
|
|
9107
|
+
const ref = props.nonModalRef;
|
|
9108
|
+
const portalContainer = usePortalContainer();
|
|
9109
|
+
const isEntering = (0, import_utils8.useEnterAnimation)(ref) || props.isEntering || false;
|
|
9110
|
+
const renderProps = useRenderProps({
|
|
9111
|
+
...props,
|
|
9112
|
+
defaultClassName: "react-aria-NonModalOverlay",
|
|
9113
|
+
values: {
|
|
9114
|
+
isEntering,
|
|
9115
|
+
isExiting,
|
|
9116
|
+
state
|
|
9117
|
+
}
|
|
9118
|
+
});
|
|
9119
|
+
const viewport = (0, import_utils8.useViewportSize)();
|
|
9120
|
+
const style = {
|
|
9121
|
+
...renderProps.style,
|
|
9122
|
+
"--visual-viewport-height": viewport.height + "px"
|
|
9123
|
+
};
|
|
9124
|
+
const overlay = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
9125
|
+
"div",
|
|
9126
|
+
{
|
|
9127
|
+
...(0, import_utils8.mergeProps)((0, import_utils8.filterDOMProps)(props), nonModalProps),
|
|
9128
|
+
...renderProps,
|
|
9129
|
+
tabIndex: -1,
|
|
9130
|
+
"aria-label": props["aria-label"],
|
|
9131
|
+
"aria-labelledby": props["aria-labelledby"],
|
|
9132
|
+
ref,
|
|
9133
|
+
slot: props.slot || void 0,
|
|
9134
|
+
style,
|
|
9135
|
+
"data-entering": isEntering || void 0,
|
|
9136
|
+
"data-exiting": isExiting || void 0,
|
|
9137
|
+
children: [
|
|
9138
|
+
renderProps.children,
|
|
9139
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
|
|
9140
|
+
]
|
|
9141
|
+
}
|
|
9142
|
+
);
|
|
9143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9144
|
+
import_overlays2.Overlay,
|
|
9145
|
+
{
|
|
9146
|
+
isExiting,
|
|
9147
|
+
portalContainer,
|
|
9148
|
+
disableFocusManagement: true,
|
|
9149
|
+
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 }) })
|
|
9150
|
+
}
|
|
9151
|
+
);
|
|
9152
|
+
};
|
|
9153
|
+
var NonModal = (0, import_react48.forwardRef)(
|
|
9154
|
+
({ open, ...rest }, ref) => {
|
|
9155
|
+
const props = {
|
|
9156
|
+
isOpen: open,
|
|
9157
|
+
...rest
|
|
9158
|
+
};
|
|
9159
|
+
ref = (0, import_utils8.useObjectRef)(ref);
|
|
9160
|
+
const contextState = (0, import_react48.useContext)(import_react_aria_components46.OverlayTriggerStateContext);
|
|
9161
|
+
const localState = (0, import_react_stately.useOverlayTriggerState)(props);
|
|
9162
|
+
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
9163
|
+
const isExiting = (0, import_utils8.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
|
|
9164
|
+
const isSSR = (0, import_ssr2.useIsSSR)();
|
|
9165
|
+
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
9166
|
+
return null;
|
|
9167
|
+
}
|
|
9168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9169
|
+
NonModalInner,
|
|
9170
|
+
{
|
|
9171
|
+
...props,
|
|
9172
|
+
nonModalRef: ref,
|
|
9173
|
+
state,
|
|
9174
|
+
isExiting
|
|
9175
|
+
}
|
|
9176
|
+
);
|
|
8988
9177
|
}
|
|
8989
9178
|
);
|
|
8990
9179
|
|
|
8991
9180
|
// src/Pagination/Pagination.tsx
|
|
8992
|
-
var
|
|
9181
|
+
var import_react52 = require("react");
|
|
8993
9182
|
var import_system69 = require("@marigold/system");
|
|
8994
9183
|
|
|
8995
9184
|
// src/Pagination/Ellipsis.tsx
|
|
8996
|
-
var
|
|
9185
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
8997
9186
|
var Ellipsis = () => {
|
|
8998
|
-
return /* @__PURE__ */ (0,
|
|
9187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
8999
9188
|
"span",
|
|
9000
9189
|
{
|
|
9001
9190
|
className: "text-text-base flex h-8 w-8 items-center justify-center",
|
|
@@ -9006,12 +9195,12 @@ var Ellipsis = () => {
|
|
|
9006
9195
|
};
|
|
9007
9196
|
|
|
9008
9197
|
// src/Pagination/NavigationButton.tsx
|
|
9009
|
-
var
|
|
9198
|
+
var import_react49 = __toESM(require("react"));
|
|
9010
9199
|
var import_button2 = require("@react-aria/button");
|
|
9011
9200
|
var import_system67 = require("@marigold/system");
|
|
9012
|
-
var
|
|
9201
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
9013
9202
|
var NavigationButton = (props) => {
|
|
9014
|
-
const ref =
|
|
9203
|
+
const ref = import_react49.default.useRef(null);
|
|
9015
9204
|
const classNames3 = (0, import_system67.useClassNames)({
|
|
9016
9205
|
component: "Pagination"
|
|
9017
9206
|
});
|
|
@@ -9025,13 +9214,13 @@ var NavigationButton = (props) => {
|
|
|
9025
9214
|
position: position2,
|
|
9026
9215
|
...rest
|
|
9027
9216
|
} = props;
|
|
9028
|
-
(0,
|
|
9217
|
+
(0, import_react49.useEffect)(() => {
|
|
9029
9218
|
if (registerRef) {
|
|
9030
9219
|
registerRef(ref.current);
|
|
9031
9220
|
return () => registerRef(null);
|
|
9032
9221
|
}
|
|
9033
9222
|
}, [registerRef]);
|
|
9034
|
-
return /* @__PURE__ */ (0,
|
|
9223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
9035
9224
|
"button",
|
|
9036
9225
|
{
|
|
9037
9226
|
ref,
|
|
@@ -9050,24 +9239,24 @@ var NavigationButton = (props) => {
|
|
|
9050
9239
|
};
|
|
9051
9240
|
|
|
9052
9241
|
// src/Pagination/PageButton.tsx
|
|
9053
|
-
var
|
|
9242
|
+
var import_react50 = require("react");
|
|
9054
9243
|
var import_button3 = require("@react-aria/button");
|
|
9055
9244
|
var import_system68 = require("@marigold/system");
|
|
9056
|
-
var
|
|
9245
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
9057
9246
|
var PageButton = (props) => {
|
|
9058
|
-
const ref = (0,
|
|
9247
|
+
const ref = (0, import_react50.useRef)(null);
|
|
9059
9248
|
const classNames3 = (0, import_system68.useClassNames)({
|
|
9060
9249
|
component: "Pagination"
|
|
9061
9250
|
});
|
|
9062
9251
|
let { buttonProps } = (0, import_button3.useButton)(props, ref);
|
|
9063
9252
|
let { page, selected, registerRef, isDisabled } = props;
|
|
9064
|
-
(0,
|
|
9253
|
+
(0, import_react50.useEffect)(() => {
|
|
9065
9254
|
if (registerRef) {
|
|
9066
9255
|
registerRef(ref.current);
|
|
9067
9256
|
return () => registerRef(null);
|
|
9068
9257
|
}
|
|
9069
9258
|
}, [registerRef]);
|
|
9070
|
-
return /* @__PURE__ */ (0,
|
|
9259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9071
9260
|
"button",
|
|
9072
9261
|
{
|
|
9073
9262
|
ref,
|
|
@@ -9084,7 +9273,7 @@ var PageButton = (props) => {
|
|
|
9084
9273
|
};
|
|
9085
9274
|
|
|
9086
9275
|
// src/Pagination/useKeyboardNavigation.tsx
|
|
9087
|
-
var
|
|
9276
|
+
var import_react51 = require("react");
|
|
9088
9277
|
var import_interactions = require("@react-aria/interactions");
|
|
9089
9278
|
var NavigationTypes = {
|
|
9090
9279
|
Prev: "prev",
|
|
@@ -9098,14 +9287,14 @@ var useKeyboardNavigation = ({
|
|
|
9098
9287
|
onChange: onChange2 = () => {
|
|
9099
9288
|
}
|
|
9100
9289
|
}) => {
|
|
9101
|
-
const containerRef = (0,
|
|
9102
|
-
const [focusedItem, setFocusedItem] = (0,
|
|
9290
|
+
const containerRef = (0, import_react51.useRef)(null);
|
|
9291
|
+
const [focusedItem, setFocusedItem] = (0, import_react51.useState)({
|
|
9103
9292
|
type: "page",
|
|
9104
9293
|
value: page
|
|
9105
9294
|
});
|
|
9106
|
-
const navigationItems = (0,
|
|
9107
|
-
const buttonRefs = (0,
|
|
9108
|
-
const isItemDisabled = (0,
|
|
9295
|
+
const navigationItems = (0, import_react51.useRef)([]);
|
|
9296
|
+
const buttonRefs = (0, import_react51.useRef)(/* @__PURE__ */ new Map());
|
|
9297
|
+
const isItemDisabled = (0, import_react51.useCallback)(
|
|
9109
9298
|
(item) => {
|
|
9110
9299
|
if (item.type === NavigationTypes.Prev) return page <= 1;
|
|
9111
9300
|
if (item.type === NavigationTypes.Next) return page >= totalPages;
|
|
@@ -9113,7 +9302,7 @@ var useKeyboardNavigation = ({
|
|
|
9113
9302
|
},
|
|
9114
9303
|
[page, totalPages]
|
|
9115
9304
|
);
|
|
9116
|
-
const findNextFocusableItem = (0,
|
|
9305
|
+
const findNextFocusableItem = (0, import_react51.useCallback)(
|
|
9117
9306
|
(current, direction) => {
|
|
9118
9307
|
const items = navigationItems.current.filter(
|
|
9119
9308
|
(item) => !isItemDisabled(item)
|
|
@@ -9129,7 +9318,7 @@ var useKeyboardNavigation = ({
|
|
|
9129
9318
|
},
|
|
9130
9319
|
[isItemDisabled, page]
|
|
9131
9320
|
);
|
|
9132
|
-
const focusItem = (0,
|
|
9321
|
+
const focusItem = (0, import_react51.useCallback)(
|
|
9133
9322
|
(item) => {
|
|
9134
9323
|
if (isItemDisabled(item)) return;
|
|
9135
9324
|
const key = `${item.type}-${item.value}`;
|
|
@@ -9176,7 +9365,7 @@ var useKeyboardNavigation = ({
|
|
|
9176
9365
|
}
|
|
9177
9366
|
}
|
|
9178
9367
|
});
|
|
9179
|
-
const registerRef = (0,
|
|
9368
|
+
const registerRef = (0, import_react51.useCallback)(
|
|
9180
9369
|
(type, value, ref) => {
|
|
9181
9370
|
const key = `${type}-${value}`;
|
|
9182
9371
|
if (ref) {
|
|
@@ -9187,7 +9376,7 @@ var useKeyboardNavigation = ({
|
|
|
9187
9376
|
},
|
|
9188
9377
|
[]
|
|
9189
9378
|
);
|
|
9190
|
-
const setNavigationItems = (0,
|
|
9379
|
+
const setNavigationItems = (0, import_react51.useCallback)((items) => {
|
|
9191
9380
|
navigationItems.current = items;
|
|
9192
9381
|
}, []);
|
|
9193
9382
|
return {
|
|
@@ -9230,7 +9419,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9230
9419
|
};
|
|
9231
9420
|
|
|
9232
9421
|
// src/Pagination/Pagination.tsx
|
|
9233
|
-
var
|
|
9422
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
9234
9423
|
var _Pagination = ({
|
|
9235
9424
|
defaultPage = 1,
|
|
9236
9425
|
page,
|
|
@@ -9240,13 +9429,13 @@ var _Pagination = ({
|
|
|
9240
9429
|
},
|
|
9241
9430
|
controlLabels
|
|
9242
9431
|
}) => {
|
|
9243
|
-
const [currentPage, setCurrentPage] = (0,
|
|
9432
|
+
const [currentPage, setCurrentPage] = (0, import_react52.useState)(page != null ? page : defaultPage);
|
|
9244
9433
|
const totalPages = Math.ceil(totalItems / pageSize);
|
|
9245
|
-
const isFirstRender = (0,
|
|
9434
|
+
const isFirstRender = (0, import_react52.useRef)(true);
|
|
9246
9435
|
const classNames3 = (0, import_system69.useClassNames)({
|
|
9247
9436
|
component: "Pagination"
|
|
9248
9437
|
});
|
|
9249
|
-
(0,
|
|
9438
|
+
(0, import_react52.useEffect)(() => {
|
|
9250
9439
|
if (isFirstRender.current) {
|
|
9251
9440
|
isFirstRender.current = false;
|
|
9252
9441
|
return;
|
|
@@ -9263,7 +9452,7 @@ var _Pagination = ({
|
|
|
9263
9452
|
onChange: handlePageChange
|
|
9264
9453
|
});
|
|
9265
9454
|
const pageRange = usePageRange({ currentPage, totalPages });
|
|
9266
|
-
(0,
|
|
9455
|
+
(0, import_react52.useEffect)(() => {
|
|
9267
9456
|
const items = [
|
|
9268
9457
|
{ type: NavigationTypes.Prev, value: currentPage - 1 },
|
|
9269
9458
|
...pageRange.map((value) => ({
|
|
@@ -9274,19 +9463,19 @@ var _Pagination = ({
|
|
|
9274
9463
|
];
|
|
9275
9464
|
setNavigationItems(items);
|
|
9276
9465
|
}, [pageRange, currentPage, setNavigationItems]);
|
|
9277
|
-
(0,
|
|
9466
|
+
(0, import_react52.useEffect)(() => {
|
|
9278
9467
|
setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
|
|
9279
9468
|
}, [currentPage, setFocusedItem]);
|
|
9280
9469
|
const isFirstPage = currentPage === 1;
|
|
9281
9470
|
const isLastPage = currentPage === totalPages || totalPages === 0;
|
|
9282
|
-
return /* @__PURE__ */ (0,
|
|
9471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
9283
9472
|
"nav",
|
|
9284
9473
|
{
|
|
9285
9474
|
className: "flex items-center justify-center space-x-2",
|
|
9286
9475
|
"aria-label": `Page ${currentPage} of ${totalPages}`,
|
|
9287
9476
|
...keyboardProps,
|
|
9288
9477
|
children: [
|
|
9289
|
-
/* @__PURE__ */ (0,
|
|
9478
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
9290
9479
|
NavigationButton,
|
|
9291
9480
|
{
|
|
9292
9481
|
onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
|
|
@@ -9295,11 +9484,11 @@ var _Pagination = ({
|
|
|
9295
9484
|
registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
|
|
9296
9485
|
controlLabel: controlLabels == null ? void 0 : controlLabels[0],
|
|
9297
9486
|
position: "left",
|
|
9298
|
-
children: /* @__PURE__ */ (0,
|
|
9487
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronLeft, { className: (0, import_system69.cn)(classNames3.icon) })
|
|
9299
9488
|
}
|
|
9300
9489
|
),
|
|
9301
|
-
/* @__PURE__ */ (0,
|
|
9302
|
-
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0,
|
|
9490
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
|
|
9491
|
+
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
9303
9492
|
PageButton,
|
|
9304
9493
|
{
|
|
9305
9494
|
page: pageNumber,
|
|
@@ -9309,8 +9498,8 @@ var _Pagination = ({
|
|
|
9309
9498
|
},
|
|
9310
9499
|
pageNumber
|
|
9311
9500
|
)
|
|
9312
|
-
) : /* @__PURE__ */ (0,
|
|
9313
|
-
/* @__PURE__ */ (0,
|
|
9501
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
|
|
9502
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
9314
9503
|
NavigationButton,
|
|
9315
9504
|
{
|
|
9316
9505
|
onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
|
|
@@ -9319,7 +9508,7 @@ var _Pagination = ({
|
|
|
9319
9508
|
registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
|
|
9320
9509
|
controlLabel: controlLabels == null ? void 0 : controlLabels[1],
|
|
9321
9510
|
position: "right",
|
|
9322
|
-
children: /* @__PURE__ */ (0,
|
|
9511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronRight, { className: (0, import_system69.cn)(classNames3.icon) })
|
|
9323
9512
|
}
|
|
9324
9513
|
)
|
|
9325
9514
|
]
|
|
@@ -9328,21 +9517,21 @@ var _Pagination = ({
|
|
|
9328
9517
|
};
|
|
9329
9518
|
|
|
9330
9519
|
// src/Radio/Radio.tsx
|
|
9331
|
-
var
|
|
9520
|
+
var import_react54 = require("react");
|
|
9332
9521
|
var import_react_aria_components48 = require("react-aria-components");
|
|
9333
9522
|
var import_system71 = require("@marigold/system");
|
|
9334
9523
|
|
|
9335
9524
|
// src/Radio/Context.ts
|
|
9336
|
-
var
|
|
9337
|
-
var RadioGroupContext = (0,
|
|
9525
|
+
var import_react53 = require("react");
|
|
9526
|
+
var RadioGroupContext = (0, import_react53.createContext)(
|
|
9338
9527
|
null
|
|
9339
9528
|
);
|
|
9340
|
-
var useRadioGroupContext = () => (0,
|
|
9529
|
+
var useRadioGroupContext = () => (0, import_react53.useContext)(RadioGroupContext);
|
|
9341
9530
|
|
|
9342
9531
|
// src/Radio/RadioGroup.tsx
|
|
9343
9532
|
var import_react_aria_components47 = require("react-aria-components");
|
|
9344
9533
|
var import_system70 = require("@marigold/system");
|
|
9345
|
-
var
|
|
9534
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
9346
9535
|
var _RadioGroup = ({
|
|
9347
9536
|
variant,
|
|
9348
9537
|
size: size2,
|
|
@@ -9366,7 +9555,7 @@ var _RadioGroup = ({
|
|
|
9366
9555
|
isInvalid: error,
|
|
9367
9556
|
...rest
|
|
9368
9557
|
};
|
|
9369
|
-
return /* @__PURE__ */ (0,
|
|
9558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9370
9559
|
FieldBase,
|
|
9371
9560
|
{
|
|
9372
9561
|
as: import_react_aria_components47.RadioGroup,
|
|
@@ -9377,7 +9566,7 @@ var _RadioGroup = ({
|
|
|
9377
9566
|
variant,
|
|
9378
9567
|
size: size2,
|
|
9379
9568
|
...props,
|
|
9380
|
-
children: /* @__PURE__ */ (0,
|
|
9569
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9381
9570
|
"div",
|
|
9382
9571
|
{
|
|
9383
9572
|
role: "presentation",
|
|
@@ -9388,7 +9577,7 @@ var _RadioGroup = ({
|
|
|
9388
9577
|
"flex items-start",
|
|
9389
9578
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
9390
9579
|
),
|
|
9391
|
-
children: /* @__PURE__ */ (0,
|
|
9580
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children })
|
|
9392
9581
|
}
|
|
9393
9582
|
)
|
|
9394
9583
|
}
|
|
@@ -9396,9 +9585,9 @@ var _RadioGroup = ({
|
|
|
9396
9585
|
};
|
|
9397
9586
|
|
|
9398
9587
|
// src/Radio/Radio.tsx
|
|
9399
|
-
var
|
|
9400
|
-
var Dot = () => /* @__PURE__ */ (0,
|
|
9401
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0,
|
|
9588
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
9589
|
+
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" }) });
|
|
9590
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9402
9591
|
"div",
|
|
9403
9592
|
{
|
|
9404
9593
|
className: (0, import_system71.cn)(
|
|
@@ -9407,10 +9596,10 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx
|
|
|
9407
9596
|
),
|
|
9408
9597
|
"aria-hidden": "true",
|
|
9409
9598
|
...props,
|
|
9410
|
-
children: checked ? /* @__PURE__ */ (0,
|
|
9599
|
+
children: checked ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dot, {}) : null
|
|
9411
9600
|
}
|
|
9412
9601
|
);
|
|
9413
|
-
var _Radio = (0,
|
|
9602
|
+
var _Radio = (0, import_react54.forwardRef)(
|
|
9414
9603
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9415
9604
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9416
9605
|
const classNames3 = (0, import_system71.useClassNames)({
|
|
@@ -9418,7 +9607,7 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9418
9607
|
variant: variant || props.variant,
|
|
9419
9608
|
size: size2 || props.size
|
|
9420
9609
|
});
|
|
9421
|
-
return /* @__PURE__ */ (0,
|
|
9610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9422
9611
|
import_react_aria_components48.Radio,
|
|
9423
9612
|
{
|
|
9424
9613
|
ref,
|
|
@@ -9431,8 +9620,8 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9431
9620
|
value,
|
|
9432
9621
|
isDisabled: disabled,
|
|
9433
9622
|
...props,
|
|
9434
|
-
children: ({ isSelected }) => /* @__PURE__ */ (0,
|
|
9435
|
-
/* @__PURE__ */ (0,
|
|
9623
|
+
children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
9624
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9436
9625
|
Icon3,
|
|
9437
9626
|
{
|
|
9438
9627
|
checked: isSelected,
|
|
@@ -9442,7 +9631,7 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9442
9631
|
)
|
|
9443
9632
|
}
|
|
9444
9633
|
),
|
|
9445
|
-
/* @__PURE__ */ (0,
|
|
9634
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: classNames3.label, children })
|
|
9446
9635
|
] })
|
|
9447
9636
|
}
|
|
9448
9637
|
);
|
|
@@ -9451,10 +9640,10 @@ var _Radio = (0, import_react53.forwardRef)(
|
|
|
9451
9640
|
_Radio.Group = _RadioGroup;
|
|
9452
9641
|
|
|
9453
9642
|
// src/SearchField/SearchField.tsx
|
|
9454
|
-
var
|
|
9643
|
+
var import_react55 = require("react");
|
|
9455
9644
|
var import_react_aria_components49 = require("react-aria-components");
|
|
9456
|
-
var
|
|
9457
|
-
var _SearchField = (0,
|
|
9645
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
9646
|
+
var _SearchField = (0, import_react55.forwardRef)(
|
|
9458
9647
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
9459
9648
|
const props = {
|
|
9460
9649
|
...rest,
|
|
@@ -9463,7 +9652,7 @@ var _SearchField = (0, import_react54.forwardRef)(
|
|
|
9463
9652
|
isReadOnly: readOnly,
|
|
9464
9653
|
isInvalid: error
|
|
9465
9654
|
};
|
|
9466
|
-
return /* @__PURE__ */ (0,
|
|
9655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components49.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
9467
9656
|
SearchInput,
|
|
9468
9657
|
{
|
|
9469
9658
|
ref,
|
|
@@ -9474,11 +9663,11 @@ var _SearchField = (0, import_react54.forwardRef)(
|
|
|
9474
9663
|
);
|
|
9475
9664
|
|
|
9476
9665
|
// src/Select/Select.tsx
|
|
9477
|
-
var
|
|
9666
|
+
var import_react56 = require("react");
|
|
9478
9667
|
var import_react_aria_components50 = require("react-aria-components");
|
|
9479
9668
|
var import_system72 = require("@marigold/system");
|
|
9480
|
-
var
|
|
9481
|
-
var _Select = (0,
|
|
9669
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
9670
|
+
var _Select = (0, import_react56.forwardRef)(
|
|
9482
9671
|
({
|
|
9483
9672
|
disabled,
|
|
9484
9673
|
required,
|
|
@@ -9499,8 +9688,8 @@ var _Select = (0, import_react55.forwardRef)(
|
|
|
9499
9688
|
...rest
|
|
9500
9689
|
};
|
|
9501
9690
|
const classNames3 = (0, import_system72.useClassNames)({ component: "Select", variant, size: size2 });
|
|
9502
|
-
return /* @__PURE__ */ (0,
|
|
9503
|
-
/* @__PURE__ */ (0,
|
|
9691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as: import_react_aria_components50.Select, ref, variant, size: size2, ...props, children: [
|
|
9692
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
9504
9693
|
IconButton,
|
|
9505
9694
|
{
|
|
9506
9695
|
className: (0, import_system72.cn)(
|
|
@@ -9508,12 +9697,12 @@ var _Select = (0, import_react55.forwardRef)(
|
|
|
9508
9697
|
classNames3.select
|
|
9509
9698
|
),
|
|
9510
9699
|
children: [
|
|
9511
|
-
/* @__PURE__ */ (0,
|
|
9512
|
-
/* @__PURE__ */ (0,
|
|
9700
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components50.SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
9701
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronDown, { className: (0, import_system72.cn)("size-4", classNames3.icon) })
|
|
9513
9702
|
]
|
|
9514
9703
|
}
|
|
9515
9704
|
),
|
|
9516
|
-
/* @__PURE__ */ (0,
|
|
9705
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_ListBox, { items, children: props.children }) })
|
|
9517
9706
|
] });
|
|
9518
9707
|
}
|
|
9519
9708
|
);
|
|
@@ -9521,35 +9710,35 @@ _Select.Option = _ListBox.Item;
|
|
|
9521
9710
|
_Select.Section = _ListBox.Section;
|
|
9522
9711
|
|
|
9523
9712
|
// src/SelectList/SelectList.tsx
|
|
9524
|
-
var
|
|
9713
|
+
var import_react59 = require("react");
|
|
9525
9714
|
var import_react_aria_components52 = require("react-aria-components");
|
|
9526
9715
|
var import_system74 = require("@marigold/system");
|
|
9527
9716
|
|
|
9528
9717
|
// src/SelectList/Context.ts
|
|
9529
|
-
var
|
|
9530
|
-
var SelectListContext = (0,
|
|
9718
|
+
var import_react57 = require("react");
|
|
9719
|
+
var SelectListContext = (0, import_react57.createContext)(
|
|
9531
9720
|
{}
|
|
9532
9721
|
);
|
|
9533
|
-
var useSelectListContext = () => (0,
|
|
9722
|
+
var useSelectListContext = () => (0, import_react57.useContext)(SelectListContext);
|
|
9534
9723
|
|
|
9535
9724
|
// src/SelectList/SelectListItem.tsx
|
|
9536
|
-
var
|
|
9725
|
+
var import_react58 = require("react");
|
|
9537
9726
|
var import_react_aria_components51 = require("react-aria-components");
|
|
9538
9727
|
var import_system73 = require("@marigold/system");
|
|
9539
|
-
var
|
|
9540
|
-
var _SelectListItem = (0,
|
|
9728
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
9729
|
+
var _SelectListItem = (0, import_react58.forwardRef)(
|
|
9541
9730
|
({ children, ...props }, ref) => {
|
|
9542
9731
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9543
9732
|
const { classNames: classNames3 } = useSelectListContext();
|
|
9544
|
-
return /* @__PURE__ */ (0,
|
|
9733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9545
9734
|
import_react_aria_components51.GridListItem,
|
|
9546
9735
|
{
|
|
9547
9736
|
textValue,
|
|
9548
9737
|
...props,
|
|
9549
9738
|
className: (0, import_system73.cn)("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.option),
|
|
9550
9739
|
ref,
|
|
9551
|
-
children: ({ selectionMode }) => /* @__PURE__ */ (0,
|
|
9552
|
-
selectionMode === "multiple" && /* @__PURE__ */ (0,
|
|
9740
|
+
children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex gap-2", children: [
|
|
9741
|
+
selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(_Checkbox, { slot: "selection" }),
|
|
9553
9742
|
children
|
|
9554
9743
|
] })
|
|
9555
9744
|
}
|
|
@@ -9558,15 +9747,15 @@ var _SelectListItem = (0, import_react57.forwardRef)(
|
|
|
9558
9747
|
);
|
|
9559
9748
|
|
|
9560
9749
|
// src/SelectList/SelectList.tsx
|
|
9561
|
-
var
|
|
9562
|
-
var _SelectList = (0,
|
|
9750
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
9751
|
+
var _SelectList = (0, import_react59.forwardRef)(
|
|
9563
9752
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9564
9753
|
const classNames3 = (0, import_system74.useClassNames)({ component: "ListBox" });
|
|
9565
9754
|
const props = {
|
|
9566
9755
|
onSelectionChange: onChange2,
|
|
9567
9756
|
...rest
|
|
9568
9757
|
};
|
|
9569
|
-
return /* @__PURE__ */ (0,
|
|
9758
|
+
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)(
|
|
9570
9759
|
import_react_aria_components52.GridList,
|
|
9571
9760
|
{
|
|
9572
9761
|
...props,
|
|
@@ -9585,13 +9774,13 @@ _SelectList.Item = _SelectListItem;
|
|
|
9585
9774
|
|
|
9586
9775
|
// src/Scrollable/Scrollable.tsx
|
|
9587
9776
|
var import_system75 = require("@marigold/system");
|
|
9588
|
-
var
|
|
9777
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
9589
9778
|
var Scrollable = ({
|
|
9590
9779
|
children,
|
|
9591
9780
|
width = "full",
|
|
9592
9781
|
height,
|
|
9593
9782
|
...props
|
|
9594
|
-
}) => /* @__PURE__ */ (0,
|
|
9783
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9595
9784
|
"div",
|
|
9596
9785
|
{
|
|
9597
9786
|
...props,
|
|
@@ -9602,11 +9791,11 @@ var Scrollable = ({
|
|
|
9602
9791
|
);
|
|
9603
9792
|
|
|
9604
9793
|
// src/Slider/Slider.tsx
|
|
9605
|
-
var
|
|
9794
|
+
var import_react60 = require("react");
|
|
9606
9795
|
var import_react_aria_components53 = require("react-aria-components");
|
|
9607
9796
|
var import_system76 = require("@marigold/system");
|
|
9608
|
-
var
|
|
9609
|
-
var _Slider = (0,
|
|
9797
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
9798
|
+
var _Slider = (0, import_react60.forwardRef)(
|
|
9610
9799
|
({
|
|
9611
9800
|
thumbLabels,
|
|
9612
9801
|
variant,
|
|
@@ -9625,7 +9814,7 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9625
9814
|
isDisabled: disabled,
|
|
9626
9815
|
...rest
|
|
9627
9816
|
};
|
|
9628
|
-
return /* @__PURE__ */ (0,
|
|
9817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
9629
9818
|
FieldBase,
|
|
9630
9819
|
{
|
|
9631
9820
|
as: import_react_aria_components53.Slider,
|
|
@@ -9637,14 +9826,14 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9637
9826
|
ref,
|
|
9638
9827
|
...props,
|
|
9639
9828
|
children: [
|
|
9640
|
-
/* @__PURE__ */ (0,
|
|
9641
|
-
/* @__PURE__ */ (0,
|
|
9642
|
-
/* @__PURE__ */ (0,
|
|
9829
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(_Label, { children: props.children && props.children || label && label }),
|
|
9830
|
+
/* @__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 ") }),
|
|
9831
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9643
9832
|
import_react_aria_components53.SliderTrack,
|
|
9644
9833
|
{
|
|
9645
9834
|
className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames3.track),
|
|
9646
|
-
children: ({ state }) => /* @__PURE__ */ (0,
|
|
9647
|
-
/* @__PURE__ */ (0,
|
|
9835
|
+
children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
|
|
9836
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9648
9837
|
"div",
|
|
9649
9838
|
{
|
|
9650
9839
|
className: (0, import_system76.cn)(
|
|
@@ -9653,7 +9842,7 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9653
9842
|
)
|
|
9654
9843
|
}
|
|
9655
9844
|
),
|
|
9656
|
-
/* @__PURE__ */ (0,
|
|
9845
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9657
9846
|
"div",
|
|
9658
9847
|
{
|
|
9659
9848
|
className: (0, import_system76.cn)(
|
|
@@ -9666,7 +9855,7 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9666
9855
|
}
|
|
9667
9856
|
}
|
|
9668
9857
|
),
|
|
9669
|
-
state.values.map((_, i) => /* @__PURE__ */ (0,
|
|
9858
|
+
state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9670
9859
|
import_react_aria_components53.SliderThumb,
|
|
9671
9860
|
{
|
|
9672
9861
|
className: (0, import_system76.cn)("top-1/2 cursor-pointer", classNames3.thumb),
|
|
@@ -9686,12 +9875,12 @@ var _Slider = (0, import_react59.forwardRef)(
|
|
|
9686
9875
|
);
|
|
9687
9876
|
|
|
9688
9877
|
// src/Split/Split.tsx
|
|
9689
|
-
var
|
|
9690
|
-
var Split = () => /* @__PURE__ */ (0,
|
|
9878
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
9879
|
+
var Split = () => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { role: "separator", className: "grow" });
|
|
9691
9880
|
|
|
9692
9881
|
// src/Stack/Stack.tsx
|
|
9693
9882
|
var import_system77 = require("@marigold/system");
|
|
9694
|
-
var
|
|
9883
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
9695
9884
|
var Stack = ({
|
|
9696
9885
|
children,
|
|
9697
9886
|
space = 0,
|
|
@@ -9701,7 +9890,7 @@ var Stack = ({
|
|
|
9701
9890
|
...props
|
|
9702
9891
|
}) => {
|
|
9703
9892
|
var _a, _b, _c, _d;
|
|
9704
|
-
return /* @__PURE__ */ (0,
|
|
9893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
9705
9894
|
"div",
|
|
9706
9895
|
{
|
|
9707
9896
|
className: (0, import_system77.cn)(
|
|
@@ -9718,11 +9907,11 @@ var Stack = ({
|
|
|
9718
9907
|
};
|
|
9719
9908
|
|
|
9720
9909
|
// src/Switch/Switch.tsx
|
|
9721
|
-
var
|
|
9910
|
+
var import_react61 = require("react");
|
|
9722
9911
|
var import_react_aria_components54 = require("react-aria-components");
|
|
9723
9912
|
var import_system78 = require("@marigold/system");
|
|
9724
|
-
var
|
|
9725
|
-
var _Switch = (0,
|
|
9913
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9914
|
+
var _Switch = (0, import_react61.forwardRef)(
|
|
9726
9915
|
({
|
|
9727
9916
|
variant,
|
|
9728
9917
|
size: size2,
|
|
@@ -9740,7 +9929,7 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9740
9929
|
isSelected: selected,
|
|
9741
9930
|
...rest
|
|
9742
9931
|
};
|
|
9743
|
-
return /* @__PURE__ */ (0,
|
|
9932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
9744
9933
|
import_react_aria_components54.Switch,
|
|
9745
9934
|
{
|
|
9746
9935
|
...props,
|
|
@@ -9752,8 +9941,8 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9752
9941
|
classNames3.container
|
|
9753
9942
|
),
|
|
9754
9943
|
children: [
|
|
9755
|
-
/* @__PURE__ */ (0,
|
|
9756
|
-
/* @__PURE__ */ (0,
|
|
9944
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(_Label, { elementType: "span", children }),
|
|
9945
|
+
/* @__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 }) }) })
|
|
9757
9946
|
]
|
|
9758
9947
|
}
|
|
9759
9948
|
);
|
|
@@ -9761,19 +9950,19 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9761
9950
|
);
|
|
9762
9951
|
|
|
9763
9952
|
// src/Table/Table.tsx
|
|
9764
|
-
var
|
|
9953
|
+
var import_react69 = require("react");
|
|
9765
9954
|
var import_table9 = require("@react-aria/table");
|
|
9766
9955
|
var import_table10 = require("@react-stately/table");
|
|
9767
|
-
var
|
|
9956
|
+
var import_system85 = require("@marigold/system");
|
|
9768
9957
|
|
|
9769
9958
|
// src/Table/Context.tsx
|
|
9770
|
-
var
|
|
9771
|
-
var TableContext = (0,
|
|
9772
|
-
var useTableContext = () => (0,
|
|
9959
|
+
var import_react62 = require("react");
|
|
9960
|
+
var TableContext = (0, import_react62.createContext)({});
|
|
9961
|
+
var useTableContext = () => (0, import_react62.useContext)(TableContext);
|
|
9773
9962
|
|
|
9774
9963
|
// src/Table/TableBody.tsx
|
|
9775
9964
|
var import_table = require("@react-aria/table");
|
|
9776
|
-
var
|
|
9965
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
9777
9966
|
var TableBody = ({
|
|
9778
9967
|
children,
|
|
9779
9968
|
className,
|
|
@@ -9782,7 +9971,7 @@ var TableBody = ({
|
|
|
9782
9971
|
const { rowGroupProps } = (0, import_table.useTableRowGroup)();
|
|
9783
9972
|
const { state, classNames: classNames3 } = useTableContext();
|
|
9784
9973
|
if (state.collection.size === 0 && emptyState) {
|
|
9785
|
-
return /* @__PURE__ */ (0,
|
|
9974
|
+
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)(
|
|
9786
9975
|
"td",
|
|
9787
9976
|
{
|
|
9788
9977
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
@@ -9792,18 +9981,18 @@ var TableBody = ({
|
|
|
9792
9981
|
}
|
|
9793
9982
|
) }) });
|
|
9794
9983
|
}
|
|
9795
|
-
return /* @__PURE__ */ (0,
|
|
9984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { ...rowGroupProps, className, children });
|
|
9796
9985
|
};
|
|
9797
9986
|
|
|
9798
9987
|
// src/Table/TableCell.tsx
|
|
9799
|
-
var
|
|
9800
|
-
var
|
|
9988
|
+
var import_react63 = require("react");
|
|
9989
|
+
var import_focus2 = require("@react-aria/focus");
|
|
9801
9990
|
var import_table2 = require("@react-aria/table");
|
|
9802
|
-
var
|
|
9991
|
+
var import_utils9 = require("@react-aria/utils");
|
|
9803
9992
|
var import_system79 = require("@marigold/system");
|
|
9804
|
-
var
|
|
9993
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
9805
9994
|
var TableCell = ({ cell, align = "left" }) => {
|
|
9806
|
-
const ref = (0,
|
|
9995
|
+
const ref = (0, import_react63.useRef)(null);
|
|
9807
9996
|
const { interactive, state, classNames: classNames3 } = useTableContext();
|
|
9808
9997
|
const disabled = state.disabledKeys.has(cell.parentKey);
|
|
9809
9998
|
const { gridCellProps } = (0, import_table2.useTableCell)(
|
|
@@ -9822,14 +10011,14 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
9822
10011
|
onMouseDown: (e) => e.stopPropagation(),
|
|
9823
10012
|
onPointerDown: (e) => e.stopPropagation()
|
|
9824
10013
|
};
|
|
9825
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10014
|
+
const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
|
|
9826
10015
|
const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
|
|
9827
|
-
return /* @__PURE__ */ (0,
|
|
10016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9828
10017
|
"td",
|
|
9829
10018
|
{
|
|
9830
10019
|
ref,
|
|
9831
10020
|
className: (0, import_system79.cn)(classNames3 == null ? void 0 : classNames3.cell),
|
|
9832
|
-
...(0,
|
|
10021
|
+
...(0, import_utils9.mergeProps)(cellProps, focusProps),
|
|
9833
10022
|
...stateProps,
|
|
9834
10023
|
align,
|
|
9835
10024
|
children: cell.rendered
|
|
@@ -9838,10 +10027,10 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
9838
10027
|
};
|
|
9839
10028
|
|
|
9840
10029
|
// src/Table/TableCheckboxCell.tsx
|
|
9841
|
-
var
|
|
9842
|
-
var
|
|
10030
|
+
var import_react64 = require("react");
|
|
10031
|
+
var import_focus3 = require("@react-aria/focus");
|
|
9843
10032
|
var import_table3 = require("@react-aria/table");
|
|
9844
|
-
var
|
|
10033
|
+
var import_utils10 = require("@react-aria/utils");
|
|
9845
10034
|
var import_system80 = require("@marigold/system");
|
|
9846
10035
|
|
|
9847
10036
|
// src/Table/utils.ts
|
|
@@ -9865,9 +10054,9 @@ var mapCheckboxProps = ({
|
|
|
9865
10054
|
};
|
|
9866
10055
|
|
|
9867
10056
|
// src/Table/TableCheckboxCell.tsx
|
|
9868
|
-
var
|
|
10057
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
9869
10058
|
var TableCheckboxCell = ({ cell }) => {
|
|
9870
|
-
const ref = (0,
|
|
10059
|
+
const ref = (0, import_react64.useRef)(null);
|
|
9871
10060
|
const { state, classNames: classNames3 } = useTableContext();
|
|
9872
10061
|
const disabled = state.disabledKeys.has(cell.parentKey);
|
|
9873
10062
|
const { gridCellProps } = (0, import_table3.useTableCell)(
|
|
@@ -9880,35 +10069,35 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
9880
10069
|
const { checkboxProps } = mapCheckboxProps(
|
|
9881
10070
|
(0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
|
|
9882
10071
|
);
|
|
9883
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10072
|
+
const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
|
|
9884
10073
|
const stateProps = (0, import_system80.useStateProps)({ disabled, focusVisible: isFocusVisible });
|
|
9885
|
-
return /* @__PURE__ */ (0,
|
|
10074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9886
10075
|
"td",
|
|
9887
10076
|
{
|
|
9888
10077
|
ref,
|
|
9889
10078
|
className: (0, import_system80.cn)("text-center align-middle leading-none", classNames3 == null ? void 0 : classNames3.cell),
|
|
9890
|
-
...(0,
|
|
10079
|
+
...(0, import_utils10.mergeProps)(gridCellProps, focusProps),
|
|
9891
10080
|
...stateProps,
|
|
9892
|
-
children: /* @__PURE__ */ (0,
|
|
10081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(_Checkbox, { ...checkboxProps })
|
|
9893
10082
|
}
|
|
9894
10083
|
);
|
|
9895
10084
|
};
|
|
9896
10085
|
|
|
9897
10086
|
// src/Table/TableColumnHeader.tsx
|
|
9898
|
-
var
|
|
9899
|
-
var
|
|
10087
|
+
var import_react65 = require("react");
|
|
10088
|
+
var import_focus4 = require("@react-aria/focus");
|
|
9900
10089
|
var import_interactions2 = require("@react-aria/interactions");
|
|
9901
10090
|
var import_table4 = require("@react-aria/table");
|
|
9902
|
-
var
|
|
10091
|
+
var import_utils12 = require("@react-aria/utils");
|
|
9903
10092
|
var import_system81 = require("@marigold/system");
|
|
9904
|
-
var
|
|
10093
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
9905
10094
|
var TableColumnHeader = ({
|
|
9906
10095
|
column: column2,
|
|
9907
10096
|
width = "auto",
|
|
9908
10097
|
align = "left"
|
|
9909
10098
|
}) => {
|
|
9910
10099
|
var _a, _b;
|
|
9911
|
-
const ref = (0,
|
|
10100
|
+
const ref = (0, import_react65.useRef)(null);
|
|
9912
10101
|
const { state, classNames: classNames3 } = useTableContext();
|
|
9913
10102
|
const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
|
|
9914
10103
|
{
|
|
@@ -9918,23 +10107,23 @@ var TableColumnHeader = ({
|
|
|
9918
10107
|
ref
|
|
9919
10108
|
);
|
|
9920
10109
|
const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
|
|
9921
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10110
|
+
const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
|
|
9922
10111
|
const stateProps = (0, import_system81.useStateProps)({
|
|
9923
10112
|
hover: isHovered,
|
|
9924
10113
|
focusVisible: isFocusVisible
|
|
9925
10114
|
});
|
|
9926
|
-
return /* @__PURE__ */ (0,
|
|
10115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
9927
10116
|
"th",
|
|
9928
10117
|
{
|
|
9929
10118
|
colSpan: column2.colspan,
|
|
9930
10119
|
ref,
|
|
9931
10120
|
className: (0, import_system81.cn)("cursor-default", import_system81.width[width], classNames3 == null ? void 0 : classNames3.header),
|
|
9932
|
-
...(0,
|
|
10121
|
+
...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
|
|
9933
10122
|
...stateProps,
|
|
9934
10123
|
align,
|
|
9935
10124
|
children: [
|
|
9936
10125
|
column2.rendered,
|
|
9937
|
-
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0,
|
|
10126
|
+
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" }) }))
|
|
9938
10127
|
]
|
|
9939
10128
|
}
|
|
9940
10129
|
);
|
|
@@ -9942,47 +10131,54 @@ var TableColumnHeader = ({
|
|
|
9942
10131
|
|
|
9943
10132
|
// src/Table/TableHeader.tsx
|
|
9944
10133
|
var import_table5 = require("@react-aria/table");
|
|
9945
|
-
var
|
|
10134
|
+
var import_system82 = require("@marigold/system");
|
|
10135
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
9946
10136
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
9947
10137
|
const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
|
|
9948
|
-
|
|
10138
|
+
const { classNames: classNames3 } = useTableContext();
|
|
10139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9949
10140
|
"thead",
|
|
9950
10141
|
{
|
|
9951
10142
|
...rowGroupProps,
|
|
9952
|
-
className:
|
|
10143
|
+
className: (0, import_system82.cn)(
|
|
10144
|
+
classNames3 == null ? void 0 : classNames3.thead,
|
|
10145
|
+
// for sticky header &th needs to be sticky for b2b and core theme
|
|
10146
|
+
// for rui sticky is applied to thead
|
|
10147
|
+
stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""
|
|
10148
|
+
),
|
|
9953
10149
|
children
|
|
9954
10150
|
}
|
|
9955
10151
|
);
|
|
9956
10152
|
};
|
|
9957
10153
|
|
|
9958
10154
|
// src/Table/TableHeaderRow.tsx
|
|
9959
|
-
var
|
|
10155
|
+
var import_react66 = require("react");
|
|
9960
10156
|
var import_table6 = require("@react-aria/table");
|
|
9961
|
-
var
|
|
10157
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
9962
10158
|
var TableHeaderRow = ({
|
|
9963
10159
|
item,
|
|
9964
10160
|
className,
|
|
9965
10161
|
children
|
|
9966
10162
|
}) => {
|
|
9967
10163
|
const { state } = useTableContext();
|
|
9968
|
-
const ref = (0,
|
|
10164
|
+
const ref = (0, import_react66.useRef)(null);
|
|
9969
10165
|
const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
|
|
9970
|
-
return /* @__PURE__ */ (0,
|
|
10166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("tr", { ...rowProps, className, ref, children });
|
|
9971
10167
|
};
|
|
9972
10168
|
|
|
9973
10169
|
// src/Table/TableRow.tsx
|
|
9974
|
-
var
|
|
9975
|
-
var
|
|
10170
|
+
var import_react67 = require("react");
|
|
10171
|
+
var import_focus5 = require("@react-aria/focus");
|
|
9976
10172
|
var import_interactions3 = require("@react-aria/interactions");
|
|
9977
10173
|
var import_table7 = require("@react-aria/table");
|
|
9978
|
-
var
|
|
9979
|
-
var
|
|
9980
|
-
var
|
|
10174
|
+
var import_utils13 = require("@react-aria/utils");
|
|
10175
|
+
var import_system83 = require("@marigold/system");
|
|
10176
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
9981
10177
|
var TableRow = ({ children, row }) => {
|
|
9982
|
-
const ref = (0,
|
|
10178
|
+
const ref = (0, import_react67.useRef)(null);
|
|
9983
10179
|
const { interactive, state, ...ctx } = useTableContext();
|
|
9984
10180
|
const { variant, size: size2 } = row.props;
|
|
9985
|
-
const classNames3 = (0,
|
|
10181
|
+
const classNames3 = (0, import_system83.useClassNames)({
|
|
9986
10182
|
component: "Table",
|
|
9987
10183
|
variant: variant || ctx.variant,
|
|
9988
10184
|
size: size2 || ctx.size
|
|
@@ -9996,28 +10192,28 @@ var TableRow = ({ children, row }) => {
|
|
|
9996
10192
|
);
|
|
9997
10193
|
const disabled = state.disabledKeys.has(row.key);
|
|
9998
10194
|
const selected = state.selectionManager.isSelected(row.key);
|
|
9999
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10195
|
+
const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
|
|
10000
10196
|
const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
|
|
10001
10197
|
isDisabled: disabled || !interactive
|
|
10002
10198
|
});
|
|
10003
|
-
const stateProps = (0,
|
|
10199
|
+
const stateProps = (0, import_system83.useStateProps)({
|
|
10004
10200
|
disabled,
|
|
10005
10201
|
selected,
|
|
10006
10202
|
hover: isHovered,
|
|
10007
10203
|
focusVisible: isFocusVisible,
|
|
10008
10204
|
active: isPressed
|
|
10009
10205
|
});
|
|
10010
|
-
return /* @__PURE__ */ (0,
|
|
10206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10011
10207
|
"tr",
|
|
10012
10208
|
{
|
|
10013
10209
|
ref,
|
|
10014
|
-
className: (0,
|
|
10210
|
+
className: (0, import_system83.cn)(
|
|
10015
10211
|
[
|
|
10016
10212
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
10017
10213
|
],
|
|
10018
10214
|
classNames3 == null ? void 0 : classNames3.row
|
|
10019
10215
|
),
|
|
10020
|
-
...(0,
|
|
10216
|
+
...(0, import_utils13.mergeProps)(rowProps, focusProps, hoverProps),
|
|
10021
10217
|
...stateProps,
|
|
10022
10218
|
children
|
|
10023
10219
|
}
|
|
@@ -10025,19 +10221,19 @@ var TableRow = ({ children, row }) => {
|
|
|
10025
10221
|
};
|
|
10026
10222
|
|
|
10027
10223
|
// src/Table/TableSelectAllCell.tsx
|
|
10028
|
-
var
|
|
10029
|
-
var
|
|
10224
|
+
var import_react68 = require("react");
|
|
10225
|
+
var import_focus6 = require("@react-aria/focus");
|
|
10030
10226
|
var import_interactions4 = require("@react-aria/interactions");
|
|
10031
10227
|
var import_table8 = require("@react-aria/table");
|
|
10032
|
-
var
|
|
10033
|
-
var
|
|
10034
|
-
var
|
|
10228
|
+
var import_utils14 = require("@react-aria/utils");
|
|
10229
|
+
var import_system84 = require("@marigold/system");
|
|
10230
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
10035
10231
|
var TableSelectAllCell = ({
|
|
10036
10232
|
column: column2,
|
|
10037
10233
|
width = "auto",
|
|
10038
10234
|
align = "left"
|
|
10039
10235
|
}) => {
|
|
10040
|
-
const ref = (0,
|
|
10236
|
+
const ref = (0, import_react68.useRef)(null);
|
|
10041
10237
|
const { state, classNames: classNames3 } = useTableContext();
|
|
10042
10238
|
const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
|
|
10043
10239
|
{
|
|
@@ -10048,26 +10244,26 @@ var TableSelectAllCell = ({
|
|
|
10048
10244
|
);
|
|
10049
10245
|
const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
|
|
10050
10246
|
const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
|
|
10051
|
-
const { focusProps, isFocusVisible } = (0,
|
|
10052
|
-
const stateProps = (0,
|
|
10247
|
+
const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
|
|
10248
|
+
const stateProps = (0, import_system84.useStateProps)({
|
|
10053
10249
|
hover: isHovered,
|
|
10054
10250
|
focusVisible: isFocusVisible
|
|
10055
10251
|
});
|
|
10056
|
-
return /* @__PURE__ */ (0,
|
|
10252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
10057
10253
|
"th",
|
|
10058
10254
|
{
|
|
10059
10255
|
ref,
|
|
10060
|
-
className: (0,
|
|
10061
|
-
...(0,
|
|
10256
|
+
className: (0, import_system84.cn)(import_system84.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
|
|
10257
|
+
...(0, import_utils14.mergeProps)(columnHeaderProps, hoverProps, focusProps),
|
|
10062
10258
|
...stateProps,
|
|
10063
10259
|
align,
|
|
10064
|
-
children: /* @__PURE__ */ (0,
|
|
10260
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Checkbox, { ...checkboxProps })
|
|
10065
10261
|
}
|
|
10066
10262
|
);
|
|
10067
10263
|
};
|
|
10068
10264
|
|
|
10069
10265
|
// src/Table/Table.tsx
|
|
10070
|
-
var
|
|
10266
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
10071
10267
|
var Table = ({
|
|
10072
10268
|
variant,
|
|
10073
10269
|
size: size2,
|
|
@@ -10079,7 +10275,7 @@ var Table = ({
|
|
|
10079
10275
|
...props
|
|
10080
10276
|
}) => {
|
|
10081
10277
|
const interactive = selectionMode !== "none";
|
|
10082
|
-
const tableRef = (0,
|
|
10278
|
+
const tableRef = (0, import_react69.useRef)(null);
|
|
10083
10279
|
const state = (0, import_table10.useTableState)({
|
|
10084
10280
|
...props,
|
|
10085
10281
|
selectionMode,
|
|
@@ -10090,21 +10286,21 @@ var Table = ({
|
|
|
10090
10286
|
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
10091
10287
|
}
|
|
10092
10288
|
const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
|
|
10093
|
-
const classNames3 = (0,
|
|
10289
|
+
const classNames3 = (0, import_system85.useClassNames)({
|
|
10094
10290
|
component: "Table",
|
|
10095
10291
|
variant,
|
|
10096
10292
|
size: size2
|
|
10097
10293
|
});
|
|
10098
10294
|
const { collection } = state;
|
|
10099
|
-
return /* @__PURE__ */ (0,
|
|
10295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10100
10296
|
TableContext.Provider,
|
|
10101
10297
|
{
|
|
10102
10298
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
10103
|
-
children: /* @__PURE__ */ (0,
|
|
10299
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
10104
10300
|
"table",
|
|
10105
10301
|
{
|
|
10106
10302
|
ref: tableRef,
|
|
10107
|
-
className: (0,
|
|
10303
|
+
className: (0, import_system85.cn)(
|
|
10108
10304
|
"group/table",
|
|
10109
10305
|
"border-collapse",
|
|
10110
10306
|
stretch ? "table w-full" : "block",
|
|
@@ -10112,7 +10308,7 @@ var Table = ({
|
|
|
10112
10308
|
),
|
|
10113
10309
|
...gridProps,
|
|
10114
10310
|
children: [
|
|
10115
|
-
/* @__PURE__ */ (0,
|
|
10311
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10116
10312
|
TableHeaderRow,
|
|
10117
10313
|
{
|
|
10118
10314
|
item: headerRow,
|
|
@@ -10120,7 +10316,7 @@ var Table = ({
|
|
|
10120
10316
|
children: [...collection.getChildren(headerRow.key)].map(
|
|
10121
10317
|
(column2) => {
|
|
10122
10318
|
var _a, _b, _c, _d, _e;
|
|
10123
|
-
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0,
|
|
10319
|
+
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10124
10320
|
TableSelectAllCell,
|
|
10125
10321
|
{
|
|
10126
10322
|
width: (_b = column2.props) == null ? void 0 : _b.width,
|
|
@@ -10128,7 +10324,7 @@ var Table = ({
|
|
|
10128
10324
|
align: (_c = column2.props) == null ? void 0 : _c.align
|
|
10129
10325
|
},
|
|
10130
10326
|
column2.key
|
|
10131
|
-
) : /* @__PURE__ */ (0,
|
|
10327
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10132
10328
|
TableColumnHeader,
|
|
10133
10329
|
{
|
|
10134
10330
|
width: (_d = column2.props) == null ? void 0 : _d.width,
|
|
@@ -10142,12 +10338,12 @@ var Table = ({
|
|
|
10142
10338
|
},
|
|
10143
10339
|
headerRow.key
|
|
10144
10340
|
)) }),
|
|
10145
|
-
/* @__PURE__ */ (0,
|
|
10341
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10146
10342
|
...collection.rows.map(
|
|
10147
|
-
(row) => row.type === "item" && /* @__PURE__ */ (0,
|
|
10343
|
+
(row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10148
10344
|
var _a, _b;
|
|
10149
10345
|
const currentColumn = collection.columns[index2];
|
|
10150
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0,
|
|
10346
|
+
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)(
|
|
10151
10347
|
TableCell,
|
|
10152
10348
|
{
|
|
10153
10349
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -10172,8 +10368,8 @@ Table.Row = import_table10.Row;
|
|
|
10172
10368
|
|
|
10173
10369
|
// src/Text/Text.tsx
|
|
10174
10370
|
var import_react_aria_components55 = require("react-aria-components");
|
|
10175
|
-
var
|
|
10176
|
-
var
|
|
10371
|
+
var import_system86 = require("@marigold/system");
|
|
10372
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
10177
10373
|
var _Text = ({
|
|
10178
10374
|
variant,
|
|
10179
10375
|
size: size2,
|
|
@@ -10187,40 +10383,40 @@ var _Text = ({
|
|
|
10187
10383
|
as = "div",
|
|
10188
10384
|
...props
|
|
10189
10385
|
}) => {
|
|
10190
|
-
const classNames3 = (0,
|
|
10386
|
+
const classNames3 = (0, import_system86.useClassNames)({
|
|
10191
10387
|
component: "Text",
|
|
10192
10388
|
variant,
|
|
10193
10389
|
size: size2
|
|
10194
10390
|
});
|
|
10195
10391
|
const Component2 = props.slot ? import_react_aria_components55.Text : as;
|
|
10196
10392
|
const elementType = props.slot ? { elementType: as } : {};
|
|
10197
|
-
return /* @__PURE__ */ (0,
|
|
10393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
10198
10394
|
Component2,
|
|
10199
10395
|
{
|
|
10200
10396
|
...props,
|
|
10201
10397
|
...elementType,
|
|
10202
|
-
className: (0,
|
|
10398
|
+
className: (0, import_system86.cn)(
|
|
10203
10399
|
"max-w-(--maxTextWidth)",
|
|
10204
10400
|
// possibly set by a <Container>
|
|
10205
10401
|
classNames3,
|
|
10206
|
-
fontStyle &&
|
|
10207
|
-
align &&
|
|
10208
|
-
cursor2 &&
|
|
10209
|
-
weight &&
|
|
10210
|
-
fontSize &&
|
|
10402
|
+
fontStyle && import_system86.textStyle[fontStyle],
|
|
10403
|
+
align && import_system86.textAlign[align],
|
|
10404
|
+
cursor2 && import_system86.cursorStyle[cursor2],
|
|
10405
|
+
weight && import_system86.fontWeight[weight],
|
|
10406
|
+
fontSize && import_system86.textSize[fontSize]
|
|
10211
10407
|
),
|
|
10212
|
-
style: { color: color && (0,
|
|
10408
|
+
style: { color: color && (0, import_system86.ensureCssVar)(color, "color") },
|
|
10213
10409
|
children
|
|
10214
10410
|
}
|
|
10215
10411
|
);
|
|
10216
10412
|
};
|
|
10217
10413
|
|
|
10218
10414
|
// src/TextArea/TextArea.tsx
|
|
10219
|
-
var
|
|
10415
|
+
var import_react70 = require("react");
|
|
10220
10416
|
var import_react_aria_components56 = require("react-aria-components");
|
|
10221
|
-
var
|
|
10222
|
-
var
|
|
10223
|
-
var _TextArea = (0,
|
|
10417
|
+
var import_system87 = require("@marigold/system");
|
|
10418
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
10419
|
+
var _TextArea = (0, import_react70.forwardRef)(
|
|
10224
10420
|
({
|
|
10225
10421
|
variant,
|
|
10226
10422
|
size: size2,
|
|
@@ -10231,7 +10427,7 @@ var _TextArea = (0, import_react69.forwardRef)(
|
|
|
10231
10427
|
rows,
|
|
10232
10428
|
...rest
|
|
10233
10429
|
}, ref) => {
|
|
10234
|
-
const classNames3 = (0,
|
|
10430
|
+
const classNames3 = (0, import_system87.useClassNames)({ component: "TextArea", variant, size: size2 });
|
|
10235
10431
|
const props = {
|
|
10236
10432
|
isDisabled: disabled,
|
|
10237
10433
|
isReadOnly: readOnly,
|
|
@@ -10239,15 +10435,15 @@ var _TextArea = (0, import_react69.forwardRef)(
|
|
|
10239
10435
|
isRequired: required,
|
|
10240
10436
|
...rest
|
|
10241
10437
|
};
|
|
10242
|
-
return /* @__PURE__ */ (0,
|
|
10438
|
+
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 }) });
|
|
10243
10439
|
}
|
|
10244
10440
|
);
|
|
10245
10441
|
|
|
10246
10442
|
// src/TextField/TextField.tsx
|
|
10247
|
-
var
|
|
10443
|
+
var import_react71 = require("react");
|
|
10248
10444
|
var import_react_aria_components57 = require("react-aria-components");
|
|
10249
|
-
var
|
|
10250
|
-
var _TextField = (0,
|
|
10445
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
10446
|
+
var _TextField = (0, import_react71.forwardRef)(
|
|
10251
10447
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
10252
10448
|
const props = {
|
|
10253
10449
|
isDisabled: disabled,
|
|
@@ -10256,13 +10452,13 @@ var _TextField = (0, import_react70.forwardRef)(
|
|
|
10256
10452
|
isRequired: required,
|
|
10257
10453
|
...rest
|
|
10258
10454
|
};
|
|
10259
|
-
return /* @__PURE__ */ (0,
|
|
10455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as: import_react_aria_components57.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(_Input, { ref }) });
|
|
10260
10456
|
}
|
|
10261
10457
|
);
|
|
10262
10458
|
|
|
10263
10459
|
// src/Tiles/Tiles.tsx
|
|
10264
|
-
var
|
|
10265
|
-
var
|
|
10460
|
+
var import_system88 = require("@marigold/system");
|
|
10461
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
10266
10462
|
var Tiles = ({
|
|
10267
10463
|
space = 0,
|
|
10268
10464
|
stretch = false,
|
|
@@ -10275,17 +10471,17 @@ var Tiles = ({
|
|
|
10275
10471
|
if (stretch) {
|
|
10276
10472
|
column2 = `minmax(${column2}, 1fr)`;
|
|
10277
10473
|
}
|
|
10278
|
-
return /* @__PURE__ */ (0,
|
|
10474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
10279
10475
|
"div",
|
|
10280
10476
|
{
|
|
10281
10477
|
...props,
|
|
10282
|
-
className: (0,
|
|
10478
|
+
className: (0, import_system88.cn)(
|
|
10283
10479
|
"grid",
|
|
10284
|
-
|
|
10480
|
+
import_system88.gapSpace[space],
|
|
10285
10481
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
10286
10482
|
equalHeight && "auto-rows-[1fr]"
|
|
10287
10483
|
),
|
|
10288
|
-
style: (0,
|
|
10484
|
+
style: (0, import_system88.createVar)({ column: column2, tilesWidth }),
|
|
10289
10485
|
children
|
|
10290
10486
|
}
|
|
10291
10487
|
);
|
|
@@ -10293,11 +10489,11 @@ var Tiles = ({
|
|
|
10293
10489
|
|
|
10294
10490
|
// src/Tooltip/Tooltip.tsx
|
|
10295
10491
|
var import_react_aria_components59 = require("react-aria-components");
|
|
10296
|
-
var
|
|
10492
|
+
var import_system89 = require("@marigold/system");
|
|
10297
10493
|
|
|
10298
10494
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10299
10495
|
var import_react_aria_components58 = require("react-aria-components");
|
|
10300
|
-
var
|
|
10496
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
10301
10497
|
var _TooltipTrigger = ({
|
|
10302
10498
|
delay = 1e3,
|
|
10303
10499
|
children,
|
|
@@ -10311,26 +10507,26 @@ var _TooltipTrigger = ({
|
|
|
10311
10507
|
isOpen: open,
|
|
10312
10508
|
delay
|
|
10313
10509
|
};
|
|
10314
|
-
return /* @__PURE__ */ (0,
|
|
10510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components58.TooltipTrigger, { ...props, children });
|
|
10315
10511
|
};
|
|
10316
10512
|
|
|
10317
10513
|
// src/Tooltip/Tooltip.tsx
|
|
10318
|
-
var
|
|
10514
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
10319
10515
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10320
10516
|
const props = {
|
|
10321
10517
|
...rest,
|
|
10322
10518
|
isOpen: open
|
|
10323
10519
|
};
|
|
10324
|
-
const classNames3 = (0,
|
|
10520
|
+
const classNames3 = (0, import_system89.useClassNames)({ component: "Tooltip", variant, size: size2 });
|
|
10325
10521
|
const portal = usePortalContainer();
|
|
10326
|
-
return /* @__PURE__ */ (0,
|
|
10522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
10327
10523
|
import_react_aria_components59.Tooltip,
|
|
10328
10524
|
{
|
|
10329
10525
|
...props,
|
|
10330
|
-
className: (0,
|
|
10526
|
+
className: (0, import_system89.cn)("group/tooltip", classNames3.container),
|
|
10331
10527
|
UNSTABLE_portalContainer: portal,
|
|
10332
10528
|
children: [
|
|
10333
|
-
/* @__PURE__ */ (0,
|
|
10529
|
+
/* @__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" }) }) }),
|
|
10334
10530
|
children
|
|
10335
10531
|
]
|
|
10336
10532
|
}
|
|
@@ -10340,12 +10536,12 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10340
10536
|
|
|
10341
10537
|
// src/TagGroup/Tag.tsx
|
|
10342
10538
|
var import_react_aria_components61 = require("react-aria-components");
|
|
10343
|
-
var
|
|
10539
|
+
var import_system91 = require("@marigold/system");
|
|
10344
10540
|
|
|
10345
10541
|
// src/TagGroup/TagGroup.tsx
|
|
10346
10542
|
var import_react_aria_components60 = require("react-aria-components");
|
|
10347
|
-
var
|
|
10348
|
-
var
|
|
10543
|
+
var import_system90 = require("@marigold/system");
|
|
10544
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
10349
10545
|
var _TagGroup = ({
|
|
10350
10546
|
width,
|
|
10351
10547
|
items,
|
|
@@ -10355,8 +10551,8 @@ var _TagGroup = ({
|
|
|
10355
10551
|
size: size2,
|
|
10356
10552
|
...rest
|
|
10357
10553
|
}) => {
|
|
10358
|
-
const classNames3 = (0,
|
|
10359
|
-
return /* @__PURE__ */ (0,
|
|
10554
|
+
const classNames3 = (0, import_system90.useClassNames)({ component: "Tag", variant, size: size2 });
|
|
10555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(FieldBase, { as: import_react_aria_components60.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
10360
10556
|
import_react_aria_components60.TagList,
|
|
10361
10557
|
{
|
|
10362
10558
|
items,
|
|
@@ -10368,29 +10564,29 @@ var _TagGroup = ({
|
|
|
10368
10564
|
};
|
|
10369
10565
|
|
|
10370
10566
|
// src/TagGroup/Tag.tsx
|
|
10371
|
-
var
|
|
10567
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
10372
10568
|
var CloseButton2 = ({ className }) => {
|
|
10373
|
-
return /* @__PURE__ */ (0,
|
|
10569
|
+
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" }) }) });
|
|
10374
10570
|
};
|
|
10375
10571
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10376
10572
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10377
|
-
const classNames3 = (0,
|
|
10573
|
+
const classNames3 = (0, import_system91.useClassNames)({ component: "Tag", variant, size: size2 });
|
|
10378
10574
|
const props = {
|
|
10379
10575
|
isDisabled: disabled,
|
|
10380
10576
|
...rest
|
|
10381
10577
|
};
|
|
10382
|
-
return /* @__PURE__ */ (0,
|
|
10578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10383
10579
|
import_react_aria_components61.Tag,
|
|
10384
10580
|
{
|
|
10385
10581
|
textValue,
|
|
10386
10582
|
...props,
|
|
10387
|
-
className: (0,
|
|
10388
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */ (0,
|
|
10583
|
+
className: (0, import_system91.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10584
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
10389
10585
|
children,
|
|
10390
|
-
allowsRemoving && /* @__PURE__ */ (0,
|
|
10586
|
+
allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10391
10587
|
CloseButton2,
|
|
10392
10588
|
{
|
|
10393
|
-
className: (0,
|
|
10589
|
+
className: (0, import_system91.cn)("flex items-center", classNames3.closeButton)
|
|
10394
10590
|
}
|
|
10395
10591
|
)
|
|
10396
10592
|
] })
|
|
@@ -10404,13 +10600,13 @@ var import_visually_hidden = require("@react-aria/visually-hidden");
|
|
|
10404
10600
|
|
|
10405
10601
|
// src/XLoader/XLoader.tsx
|
|
10406
10602
|
var import_react_aria_components63 = require("react-aria-components");
|
|
10407
|
-
var
|
|
10408
|
-
var
|
|
10603
|
+
var import_utils16 = require("@react-aria/utils");
|
|
10604
|
+
var import_system93 = require("@marigold/system");
|
|
10409
10605
|
|
|
10410
10606
|
// src/XLoader/BaseLoader.tsx
|
|
10411
10607
|
var import_react_aria_components62 = require("react-aria-components");
|
|
10412
10608
|
var import_i18n6 = require("@react-aria/i18n");
|
|
10413
|
-
var
|
|
10609
|
+
var import_system92 = require("@marigold/system");
|
|
10414
10610
|
|
|
10415
10611
|
// src/intl/messages.ts
|
|
10416
10612
|
var intlMessages2 = {
|
|
@@ -10423,7 +10619,7 @@ var intlMessages2 = {
|
|
|
10423
10619
|
};
|
|
10424
10620
|
|
|
10425
10621
|
// src/XLoader/BaseLoader.tsx
|
|
10426
|
-
var
|
|
10622
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
10427
10623
|
var BaseLoader = ({
|
|
10428
10624
|
variant,
|
|
10429
10625
|
size: size2,
|
|
@@ -10432,8 +10628,8 @@ var BaseLoader = ({
|
|
|
10432
10628
|
...props
|
|
10433
10629
|
}) => {
|
|
10434
10630
|
const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
|
|
10435
|
-
const className = (0,
|
|
10436
|
-
return /* @__PURE__ */ (0,
|
|
10631
|
+
const className = (0, import_system92.useClassNames)({ component: "XLoader", variant, size: size2 });
|
|
10632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
10437
10633
|
import_react_aria_components62.ProgressBar,
|
|
10438
10634
|
{
|
|
10439
10635
|
className: className.container,
|
|
@@ -10441,7 +10637,7 @@ var BaseLoader = ({
|
|
|
10441
10637
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10442
10638
|
...props,
|
|
10443
10639
|
children: [
|
|
10444
|
-
/* @__PURE__ */ (0,
|
|
10640
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
10445
10641
|
"svg",
|
|
10446
10642
|
{
|
|
10447
10643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10449,13 +10645,13 @@ var BaseLoader = ({
|
|
|
10449
10645
|
fill: "currentColor",
|
|
10450
10646
|
className: className.loader,
|
|
10451
10647
|
children: [
|
|
10452
|
-
/* @__PURE__ */ (0,
|
|
10453
|
-
/* @__PURE__ */ (0,
|
|
10648
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
10649
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10454
10650
|
"path",
|
|
10455
10651
|
{
|
|
10456
10652
|
id: "XMLID_5_",
|
|
10457
10653
|
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",
|
|
10458
|
-
children: /* @__PURE__ */ (0,
|
|
10654
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10459
10655
|
"animate",
|
|
10460
10656
|
{
|
|
10461
10657
|
attributeName: "opacity",
|
|
@@ -10468,12 +10664,12 @@ var BaseLoader = ({
|
|
|
10468
10664
|
)
|
|
10469
10665
|
}
|
|
10470
10666
|
),
|
|
10471
|
-
/* @__PURE__ */ (0,
|
|
10667
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10472
10668
|
"path",
|
|
10473
10669
|
{
|
|
10474
10670
|
id: "XMLID_18_",
|
|
10475
10671
|
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",
|
|
10476
|
-
children: /* @__PURE__ */ (0,
|
|
10672
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10477
10673
|
"animate",
|
|
10478
10674
|
{
|
|
10479
10675
|
attributeName: "opacity",
|
|
@@ -10486,12 +10682,12 @@ var BaseLoader = ({
|
|
|
10486
10682
|
)
|
|
10487
10683
|
}
|
|
10488
10684
|
),
|
|
10489
|
-
/* @__PURE__ */ (0,
|
|
10685
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10490
10686
|
"path",
|
|
10491
10687
|
{
|
|
10492
10688
|
id: "XMLID_19_",
|
|
10493
10689
|
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",
|
|
10494
|
-
children: /* @__PURE__ */ (0,
|
|
10690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10495
10691
|
"animate",
|
|
10496
10692
|
{
|
|
10497
10693
|
attributeName: "opacity",
|
|
@@ -10504,12 +10700,12 @@ var BaseLoader = ({
|
|
|
10504
10700
|
)
|
|
10505
10701
|
}
|
|
10506
10702
|
),
|
|
10507
|
-
/* @__PURE__ */ (0,
|
|
10703
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10508
10704
|
"path",
|
|
10509
10705
|
{
|
|
10510
10706
|
id: "XMLID_20_",
|
|
10511
10707
|
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",
|
|
10512
|
-
children: /* @__PURE__ */ (0,
|
|
10708
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10513
10709
|
"animate",
|
|
10514
10710
|
{
|
|
10515
10711
|
attributeName: "opacity",
|
|
@@ -10522,12 +10718,12 @@ var BaseLoader = ({
|
|
|
10522
10718
|
)
|
|
10523
10719
|
}
|
|
10524
10720
|
),
|
|
10525
|
-
/* @__PURE__ */ (0,
|
|
10721
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10526
10722
|
"path",
|
|
10527
10723
|
{
|
|
10528
10724
|
id: "XMLID_21_",
|
|
10529
10725
|
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",
|
|
10530
|
-
children: /* @__PURE__ */ (0,
|
|
10726
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10531
10727
|
"animate",
|
|
10532
10728
|
{
|
|
10533
10729
|
attributeName: "opacity",
|
|
@@ -10540,12 +10736,12 @@ var BaseLoader = ({
|
|
|
10540
10736
|
)
|
|
10541
10737
|
}
|
|
10542
10738
|
),
|
|
10543
|
-
/* @__PURE__ */ (0,
|
|
10739
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10544
10740
|
"path",
|
|
10545
10741
|
{
|
|
10546
10742
|
id: "XMLID_22_",
|
|
10547
10743
|
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",
|
|
10548
|
-
children: /* @__PURE__ */ (0,
|
|
10744
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10549
10745
|
"animate",
|
|
10550
10746
|
{
|
|
10551
10747
|
attributeName: "opacity",
|
|
@@ -10558,12 +10754,12 @@ var BaseLoader = ({
|
|
|
10558
10754
|
)
|
|
10559
10755
|
}
|
|
10560
10756
|
),
|
|
10561
|
-
/* @__PURE__ */ (0,
|
|
10757
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10562
10758
|
"path",
|
|
10563
10759
|
{
|
|
10564
10760
|
id: "XMLID_23_",
|
|
10565
10761
|
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",
|
|
10566
|
-
children: /* @__PURE__ */ (0,
|
|
10762
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10567
10763
|
"animate",
|
|
10568
10764
|
{
|
|
10569
10765
|
attributeName: "opacity",
|
|
@@ -10576,12 +10772,12 @@ var BaseLoader = ({
|
|
|
10576
10772
|
)
|
|
10577
10773
|
}
|
|
10578
10774
|
),
|
|
10579
|
-
/* @__PURE__ */ (0,
|
|
10775
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10580
10776
|
"path",
|
|
10581
10777
|
{
|
|
10582
10778
|
id: "XMLID_24_",
|
|
10583
10779
|
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",
|
|
10584
|
-
children: /* @__PURE__ */ (0,
|
|
10780
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10585
10781
|
"animate",
|
|
10586
10782
|
{
|
|
10587
10783
|
attributeName: "opacity",
|
|
@@ -10594,12 +10790,12 @@ var BaseLoader = ({
|
|
|
10594
10790
|
)
|
|
10595
10791
|
}
|
|
10596
10792
|
),
|
|
10597
|
-
/* @__PURE__ */ (0,
|
|
10793
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10598
10794
|
"path",
|
|
10599
10795
|
{
|
|
10600
10796
|
id: "XMLID_25_",
|
|
10601
10797
|
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",
|
|
10602
|
-
children: /* @__PURE__ */ (0,
|
|
10798
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10603
10799
|
"animate",
|
|
10604
10800
|
{
|
|
10605
10801
|
attributeName: "opacity",
|
|
@@ -10612,12 +10808,12 @@ var BaseLoader = ({
|
|
|
10612
10808
|
)
|
|
10613
10809
|
}
|
|
10614
10810
|
),
|
|
10615
|
-
/* @__PURE__ */ (0,
|
|
10811
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10616
10812
|
"path",
|
|
10617
10813
|
{
|
|
10618
10814
|
id: "XMLID_26_",
|
|
10619
10815
|
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",
|
|
10620
|
-
children: /* @__PURE__ */ (0,
|
|
10816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10621
10817
|
"animate",
|
|
10622
10818
|
{
|
|
10623
10819
|
attributeName: "opacity",
|
|
@@ -10630,12 +10826,12 @@ var BaseLoader = ({
|
|
|
10630
10826
|
)
|
|
10631
10827
|
}
|
|
10632
10828
|
),
|
|
10633
|
-
/* @__PURE__ */ (0,
|
|
10829
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10634
10830
|
"path",
|
|
10635
10831
|
{
|
|
10636
10832
|
id: "XMLID_27_",
|
|
10637
10833
|
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",
|
|
10638
|
-
children: /* @__PURE__ */ (0,
|
|
10834
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10639
10835
|
"animate",
|
|
10640
10836
|
{
|
|
10641
10837
|
attributeName: "opacity",
|
|
@@ -10651,48 +10847,48 @@ var BaseLoader = ({
|
|
|
10651
10847
|
]
|
|
10652
10848
|
}
|
|
10653
10849
|
),
|
|
10654
|
-
children ? /* @__PURE__ */ (0,
|
|
10850
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components62.Label, { className: className.label, children }) : null
|
|
10655
10851
|
]
|
|
10656
10852
|
}
|
|
10657
10853
|
);
|
|
10658
10854
|
};
|
|
10659
10855
|
|
|
10660
10856
|
// src/XLoader/XLoader.tsx
|
|
10661
|
-
var
|
|
10857
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
10662
10858
|
var LoaderFullScreen = (props) => {
|
|
10663
|
-
const id = (0,
|
|
10664
|
-
return /* @__PURE__ */ (0,
|
|
10859
|
+
const id = (0, import_utils16.useId)();
|
|
10860
|
+
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 }) }) }) });
|
|
10665
10861
|
};
|
|
10666
10862
|
var LoaderSection = (props) => {
|
|
10667
|
-
const className = (0,
|
|
10863
|
+
const className = (0, import_system93.useClassNames)({
|
|
10668
10864
|
component: "Underlay",
|
|
10669
10865
|
variant: "modal",
|
|
10670
10866
|
className: "flex size-full items-center justify-center"
|
|
10671
10867
|
});
|
|
10672
|
-
return /* @__PURE__ */ (0,
|
|
10868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { ...props }) });
|
|
10673
10869
|
};
|
|
10674
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0,
|
|
10870
|
+
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 });
|
|
10675
10871
|
|
|
10676
10872
|
// src/Tabs/Tabs.tsx
|
|
10677
10873
|
var import_react_aria_components67 = require("react-aria-components");
|
|
10678
|
-
var
|
|
10874
|
+
var import_system96 = require("@marigold/system");
|
|
10679
10875
|
|
|
10680
10876
|
// src/Tabs/Context.ts
|
|
10681
|
-
var
|
|
10682
|
-
var TabContext = (0,
|
|
10683
|
-
var useTabContext = () => (0,
|
|
10877
|
+
var import_react72 = require("react");
|
|
10878
|
+
var TabContext = (0, import_react72.createContext)({});
|
|
10879
|
+
var useTabContext = () => (0, import_react72.useContext)(TabContext);
|
|
10684
10880
|
|
|
10685
10881
|
// src/Tabs/Tab.tsx
|
|
10686
10882
|
var import_react_aria_components64 = require("react-aria-components");
|
|
10687
|
-
var
|
|
10688
|
-
var
|
|
10883
|
+
var import_system94 = require("@marigold/system");
|
|
10884
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
10689
10885
|
var _Tab = (props) => {
|
|
10690
10886
|
const { classNames: classNames3 } = useTabContext();
|
|
10691
|
-
return /* @__PURE__ */ (0,
|
|
10887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
10692
10888
|
import_react_aria_components64.Tab,
|
|
10693
10889
|
{
|
|
10694
10890
|
...props,
|
|
10695
|
-
className: (0,
|
|
10891
|
+
className: (0, import_system94.cn)(
|
|
10696
10892
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
10697
10893
|
classNames3.tab
|
|
10698
10894
|
),
|
|
@@ -10703,15 +10899,15 @@ var _Tab = (props) => {
|
|
|
10703
10899
|
|
|
10704
10900
|
// src/Tabs/TabList.tsx
|
|
10705
10901
|
var import_react_aria_components65 = require("react-aria-components");
|
|
10706
|
-
var
|
|
10707
|
-
var
|
|
10902
|
+
var import_system95 = require("@marigold/system");
|
|
10903
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
10708
10904
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10709
10905
|
const { classNames: classNames3 } = useTabContext();
|
|
10710
|
-
return /* @__PURE__ */ (0,
|
|
10906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
10711
10907
|
import_react_aria_components65.TabList,
|
|
10712
10908
|
{
|
|
10713
10909
|
...props,
|
|
10714
|
-
className: (0,
|
|
10910
|
+
className: (0, import_system95.cn)("flex", import_system95.gapSpace[space], classNames3.tabsList),
|
|
10715
10911
|
children: props.children
|
|
10716
10912
|
}
|
|
10717
10913
|
);
|
|
@@ -10719,25 +10915,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10719
10915
|
|
|
10720
10916
|
// src/Tabs/TabPanel.tsx
|
|
10721
10917
|
var import_react_aria_components66 = require("react-aria-components");
|
|
10722
|
-
var
|
|
10918
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
10723
10919
|
var _TabPanel = (props) => {
|
|
10724
10920
|
const { classNames: classNames3 } = useTabContext();
|
|
10725
|
-
return /* @__PURE__ */ (0,
|
|
10921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components66.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
10726
10922
|
};
|
|
10727
10923
|
|
|
10728
10924
|
// src/Tabs/Tabs.tsx
|
|
10729
|
-
var
|
|
10925
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
10730
10926
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
10731
10927
|
const props = {
|
|
10732
10928
|
isDisabled: disabled,
|
|
10733
10929
|
...rest
|
|
10734
10930
|
};
|
|
10735
|
-
const classNames3 = (0,
|
|
10931
|
+
const classNames3 = (0, import_system96.useClassNames)({
|
|
10736
10932
|
component: "Tabs",
|
|
10737
10933
|
size: size2,
|
|
10738
10934
|
variant
|
|
10739
10935
|
});
|
|
10740
|
-
return /* @__PURE__ */ (0,
|
|
10936
|
+
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 }) });
|
|
10741
10937
|
};
|
|
10742
10938
|
_Tabs.List = _TabList;
|
|
10743
10939
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -10790,6 +10986,7 @@ var import_react_aria_components68 = require("react-aria-components");
|
|
|
10790
10986
|
Menu,
|
|
10791
10987
|
Modal,
|
|
10792
10988
|
Multiselect,
|
|
10989
|
+
NonModal,
|
|
10793
10990
|
NumberField,
|
|
10794
10991
|
OverlayContainerProvider,
|
|
10795
10992
|
Pagination,
|