@marigold/components 14.0.0 → 14.1.1
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 +154 -77
- package/dist/index.d.ts +154 -77
- package/dist/index.js +1432 -1238
- package/dist/index.mjs +1010 -812
- package/package.json +30 -29
package/dist/index.mjs
CHANGED
|
@@ -392,9 +392,9 @@ var require_hoist_non_react_statics_cjs = __commonJS({
|
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
|
|
395
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
395
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/extends.js
|
|
396
396
|
var require_extends = __commonJS({
|
|
397
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
397
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
398
398
|
"use strict";
|
|
399
399
|
function _extends2() {
|
|
400
400
|
return module.exports = _extends2 = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -409,9 +409,9 @@ var require_extends = __commonJS({
|
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
412
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/typeof.js
|
|
413
413
|
var require_typeof = __commonJS({
|
|
414
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
414
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/typeof.js"(exports, module) {
|
|
415
415
|
"use strict";
|
|
416
416
|
function _typeof2(o) {
|
|
417
417
|
"@babel/helpers - typeof";
|
|
@@ -425,9 +425,9 @@ var require_typeof = __commonJS({
|
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
427
|
|
|
428
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
428
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
429
429
|
var require_toPrimitive = __commonJS({
|
|
430
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
430
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPrimitive.js"(exports, module) {
|
|
431
431
|
"use strict";
|
|
432
432
|
var _typeof2 = require_typeof()["default"];
|
|
433
433
|
function toPrimitive2(t, r) {
|
|
@@ -444,9 +444,9 @@ var require_toPrimitive = __commonJS({
|
|
|
444
444
|
}
|
|
445
445
|
});
|
|
446
446
|
|
|
447
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
447
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
448
448
|
var require_toPropertyKey = __commonJS({
|
|
449
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
449
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports, module) {
|
|
450
450
|
"use strict";
|
|
451
451
|
var _typeof2 = require_typeof()["default"];
|
|
452
452
|
var toPrimitive2 = require_toPrimitive();
|
|
@@ -458,9 +458,9 @@ var require_toPropertyKey = __commonJS({
|
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
|
|
461
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
461
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
462
462
|
var require_defineProperty = __commonJS({
|
|
463
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
463
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
464
464
|
"use strict";
|
|
465
465
|
var toPropertyKey2 = require_toPropertyKey();
|
|
466
466
|
function _defineProperty2(e, r, t) {
|
|
@@ -475,9 +475,9 @@ var require_defineProperty = __commonJS({
|
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
477
|
|
|
478
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
478
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
479
479
|
var require_objectSpread2 = __commonJS({
|
|
480
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
480
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectSpread2.js"(exports, module) {
|
|
481
481
|
"use strict";
|
|
482
482
|
var defineProperty = require_defineProperty();
|
|
483
483
|
function ownKeys2(e, r) {
|
|
@@ -505,9 +505,9 @@ var require_objectSpread2 = __commonJS({
|
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
507
|
|
|
508
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
508
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithHoles.js
|
|
509
509
|
var require_arrayWithHoles = __commonJS({
|
|
510
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
510
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithHoles.js"(exports, module) {
|
|
511
511
|
"use strict";
|
|
512
512
|
function _arrayWithHoles2(r) {
|
|
513
513
|
if (Array.isArray(r)) return r;
|
|
@@ -516,9 +516,9 @@ var require_arrayWithHoles = __commonJS({
|
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
|
|
519
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
519
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
|
|
520
520
|
var require_iterableToArrayLimit = __commonJS({
|
|
521
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
521
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(exports, module) {
|
|
522
522
|
"use strict";
|
|
523
523
|
function _iterableToArrayLimit2(r, l) {
|
|
524
524
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -545,9 +545,9 @@ var require_iterableToArrayLimit = __commonJS({
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
|
|
548
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
548
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayLikeToArray.js
|
|
549
549
|
var require_arrayLikeToArray = __commonJS({
|
|
550
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
550
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports, module) {
|
|
551
551
|
"use strict";
|
|
552
552
|
function _arrayLikeToArray2(r, a) {
|
|
553
553
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -558,9 +558,9 @@ var require_arrayLikeToArray = __commonJS({
|
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
560
|
|
|
561
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
561
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
|
|
562
562
|
var require_unsupportedIterableToArray = __commonJS({
|
|
563
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
563
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports, module) {
|
|
564
564
|
"use strict";
|
|
565
565
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
566
566
|
function _unsupportedIterableToArray2(r, a) {
|
|
@@ -574,9 +574,9 @@ var require_unsupportedIterableToArray = __commonJS({
|
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
576
|
|
|
577
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
577
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableRest.js
|
|
578
578
|
var require_nonIterableRest = __commonJS({
|
|
579
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
579
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableRest.js"(exports, module) {
|
|
580
580
|
"use strict";
|
|
581
581
|
function _nonIterableRest2() {
|
|
582
582
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -585,9 +585,9 @@ var require_nonIterableRest = __commonJS({
|
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
|
|
588
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
588
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
589
589
|
var require_slicedToArray = __commonJS({
|
|
590
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
590
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/slicedToArray.js"(exports, module) {
|
|
591
591
|
"use strict";
|
|
592
592
|
var arrayWithHoles = require_arrayWithHoles();
|
|
593
593
|
var iterableToArrayLimit = require_iterableToArrayLimit();
|
|
@@ -600,9 +600,9 @@ var require_slicedToArray = __commonJS({
|
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
602
|
|
|
603
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
603
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
604
604
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
605
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
605
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
606
606
|
"use strict";
|
|
607
607
|
function _objectWithoutPropertiesLoose2(r, e) {
|
|
608
608
|
if (null == r) return {};
|
|
@@ -617,9 +617,9 @@ var require_objectWithoutPropertiesLoose = __commonJS({
|
|
|
617
617
|
}
|
|
618
618
|
});
|
|
619
619
|
|
|
620
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
620
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
621
621
|
var require_objectWithoutProperties = __commonJS({
|
|
622
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
622
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
623
623
|
"use strict";
|
|
624
624
|
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
625
625
|
function _objectWithoutProperties2(e, t) {
|
|
@@ -635,9 +635,9 @@ var require_objectWithoutProperties = __commonJS({
|
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
637
|
|
|
638
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
638
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
639
639
|
var require_classCallCheck = __commonJS({
|
|
640
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
640
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/classCallCheck.js"(exports, module) {
|
|
641
641
|
"use strict";
|
|
642
642
|
function _classCallCheck2(a, n) {
|
|
643
643
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -646,9 +646,9 @@ var require_classCallCheck = __commonJS({
|
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
648
|
|
|
649
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
649
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createClass.js
|
|
650
650
|
var require_createClass = __commonJS({
|
|
651
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
651
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createClass.js"(exports, module) {
|
|
652
652
|
"use strict";
|
|
653
653
|
var toPropertyKey2 = require_toPropertyKey();
|
|
654
654
|
function _defineProperties2(e, r) {
|
|
@@ -666,9 +666,9 @@ var require_createClass = __commonJS({
|
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
|
|
669
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
669
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
|
670
670
|
var require_setPrototypeOf = __commonJS({
|
|
671
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
671
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports, module) {
|
|
672
672
|
"use strict";
|
|
673
673
|
function _setPrototypeOf2(t, e) {
|
|
674
674
|
return module.exports = _setPrototypeOf2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
@@ -679,9 +679,9 @@ var require_setPrototypeOf = __commonJS({
|
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
681
|
|
|
682
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
682
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/inherits.js
|
|
683
683
|
var require_inherits = __commonJS({
|
|
684
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
684
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/inherits.js"(exports, module) {
|
|
685
685
|
"use strict";
|
|
686
686
|
var setPrototypeOf = require_setPrototypeOf();
|
|
687
687
|
function _inherits2(t, e) {
|
|
@@ -700,9 +700,9 @@ var require_inherits = __commonJS({
|
|
|
700
700
|
}
|
|
701
701
|
});
|
|
702
702
|
|
|
703
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
703
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
704
704
|
var require_getPrototypeOf = __commonJS({
|
|
705
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
705
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports, module) {
|
|
706
706
|
"use strict";
|
|
707
707
|
function _getPrototypeOf2(t) {
|
|
708
708
|
return module.exports = _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
@@ -713,9 +713,9 @@ var require_getPrototypeOf = __commonJS({
|
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
715
|
|
|
716
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
716
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
|
|
717
717
|
var require_isNativeReflectConstruct = __commonJS({
|
|
718
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
718
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"(exports, module) {
|
|
719
719
|
"use strict";
|
|
720
720
|
function _isNativeReflectConstruct2() {
|
|
721
721
|
try {
|
|
@@ -731,9 +731,9 @@ var require_isNativeReflectConstruct = __commonJS({
|
|
|
731
731
|
}
|
|
732
732
|
});
|
|
733
733
|
|
|
734
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
734
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/assertThisInitialized.js
|
|
735
735
|
var require_assertThisInitialized = __commonJS({
|
|
736
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
736
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports, module) {
|
|
737
737
|
"use strict";
|
|
738
738
|
function _assertThisInitialized2(e) {
|
|
739
739
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -743,9 +743,9 @@ var require_assertThisInitialized = __commonJS({
|
|
|
743
743
|
}
|
|
744
744
|
});
|
|
745
745
|
|
|
746
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
746
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
747
747
|
var require_possibleConstructorReturn = __commonJS({
|
|
748
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
748
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports, module) {
|
|
749
749
|
"use strict";
|
|
750
750
|
var _typeof2 = require_typeof()["default"];
|
|
751
751
|
var assertThisInitialized = require_assertThisInitialized();
|
|
@@ -758,9 +758,9 @@ var require_possibleConstructorReturn = __commonJS({
|
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
760
|
|
|
761
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
761
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createSuper.js
|
|
762
762
|
var require_createSuper = __commonJS({
|
|
763
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
763
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createSuper.js"(exports, module) {
|
|
764
764
|
"use strict";
|
|
765
765
|
var getPrototypeOf = require_getPrototypeOf();
|
|
766
766
|
var isNativeReflectConstruct = require_isNativeReflectConstruct();
|
|
@@ -780,9 +780,9 @@ var require_createSuper = __commonJS({
|
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
|
|
783
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
783
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
|
|
784
784
|
var require_arrayWithoutHoles = __commonJS({
|
|
785
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
785
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(exports, module) {
|
|
786
786
|
"use strict";
|
|
787
787
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
788
788
|
function _arrayWithoutHoles2(r) {
|
|
@@ -792,9 +792,9 @@ var require_arrayWithoutHoles = __commonJS({
|
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
794
|
|
|
795
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
795
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArray.js
|
|
796
796
|
var require_iterableToArray = __commonJS({
|
|
797
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
797
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArray.js"(exports, module) {
|
|
798
798
|
"use strict";
|
|
799
799
|
function _iterableToArray2(r) {
|
|
800
800
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
@@ -803,9 +803,9 @@ var require_iterableToArray = __commonJS({
|
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
806
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableSpread.js
|
|
807
807
|
var require_nonIterableSpread = __commonJS({
|
|
808
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
808
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableSpread.js"(exports, module) {
|
|
809
809
|
"use strict";
|
|
810
810
|
function _nonIterableSpread2() {
|
|
811
811
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -814,9 +814,9 @@ var require_nonIterableSpread = __commonJS({
|
|
|
814
814
|
}
|
|
815
815
|
});
|
|
816
816
|
|
|
817
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
817
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
818
818
|
var require_toConsumableArray = __commonJS({
|
|
819
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
819
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toConsumableArray.js"(exports, module) {
|
|
820
820
|
"use strict";
|
|
821
821
|
var arrayWithoutHoles = require_arrayWithoutHoles();
|
|
822
822
|
var iterableToArray = require_iterableToArray();
|
|
@@ -829,9 +829,9 @@ var require_toConsumableArray = __commonJS({
|
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
831
|
|
|
832
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
832
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
|
|
833
833
|
var require_taggedTemplateLiteral = __commonJS({
|
|
834
|
-
"../../node_modules/.pnpm/@babel+runtime@7.
|
|
834
|
+
"../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"(exports, module) {
|
|
835
835
|
"use strict";
|
|
836
836
|
function _taggedTemplateLiteral2(e, t) {
|
|
837
837
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
@@ -1120,14 +1120,13 @@ var _FieldBase = (props, ref) => {
|
|
|
1120
1120
|
"flex flex-col",
|
|
1121
1121
|
twWidth[width],
|
|
1122
1122
|
classNames3,
|
|
1123
|
-
className
|
|
1124
|
-
!label && `gap-x-0`
|
|
1123
|
+
className
|
|
1125
1124
|
),
|
|
1126
1125
|
"data-required": props.isRequired ? true : void 0,
|
|
1127
1126
|
"data-error": props.isInvalid ? true : void 0,
|
|
1128
1127
|
...rest,
|
|
1129
1128
|
children: [
|
|
1130
|
-
label ? /* @__PURE__ */ jsx10(_Label, { variant, size: size2, children: label }) :
|
|
1129
|
+
label ? /* @__PURE__ */ jsx10(_Label, { variant, size: size2, children: label }) : null,
|
|
1131
1130
|
children,
|
|
1132
1131
|
/* @__PURE__ */ jsx10(
|
|
1133
1132
|
HelpText,
|
|
@@ -1360,43 +1359,12 @@ _ListBox.Section = _Section;
|
|
|
1360
1359
|
// src/Overlay/Popover.tsx
|
|
1361
1360
|
import { forwardRef as forwardRef6 } from "react";
|
|
1362
1361
|
import { Popover } from "react-aria-components";
|
|
1363
|
-
import { UNSAFE_PortalProvider as UNSAFE_PortalProvider2 } from "@react-aria/overlays";
|
|
1364
1362
|
import { cn as cn12, useClassNames as useClassNames8, useSmallScreen } from "@marigold/system";
|
|
1365
1363
|
|
|
1366
|
-
// src/Provider/OverlayContainerProvider.tsx
|
|
1367
|
-
import { createContext as createContext3, useContext as useContext5 } from "react";
|
|
1368
|
-
import { useIsSSR } from "@react-aria/ssr";
|
|
1369
|
-
var OverlayContainerContext = createContext3(void 0);
|
|
1370
|
-
var OverlayContainerProvider = OverlayContainerContext.Provider;
|
|
1371
|
-
var usePortalContainer = () => {
|
|
1372
|
-
const portalContainer = useContext5(OverlayContainerContext);
|
|
1373
|
-
const isSSR = useIsSSR();
|
|
1374
|
-
const portal = isSSR ? void 0 : portalContainer ? document.getElementById(portalContainer) || void 0 : document.body;
|
|
1375
|
-
return portal;
|
|
1376
|
-
};
|
|
1377
|
-
|
|
1378
1364
|
// src/Overlay/Underlay.tsx
|
|
1379
1365
|
import { ModalOverlay } from "react-aria-components";
|
|
1380
|
-
import { UNSAFE_PortalProvider } from "@react-aria/overlays";
|
|
1381
1366
|
import { cn as cn11, useClassNames as useClassNames7 } from "@marigold/system";
|
|
1382
|
-
|
|
1383
|
-
// src/Provider/index.ts
|
|
1384
|
-
import { useTheme, ThemeProvider as ThemeProvider2 } from "@marigold/system";
|
|
1385
|
-
import { I18nProvider } from "@react-aria/i18n";
|
|
1386
|
-
|
|
1387
|
-
// src/Provider/MarigoldProvider.tsx
|
|
1388
|
-
import { ThemeProvider } from "@marigold/system";
|
|
1389
1367
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1390
|
-
function MarigoldProvider({
|
|
1391
|
-
children,
|
|
1392
|
-
className,
|
|
1393
|
-
theme
|
|
1394
|
-
}) {
|
|
1395
|
-
return /* @__PURE__ */ jsx16(ThemeProvider, { theme, className, children });
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
// src/Overlay/Underlay.tsx
|
|
1399
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1400
1368
|
var Underlay = ({
|
|
1401
1369
|
size: size2,
|
|
1402
1370
|
variant,
|
|
@@ -1412,8 +1380,7 @@ var Underlay = ({
|
|
|
1412
1380
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
1413
1381
|
...rest
|
|
1414
1382
|
};
|
|
1415
|
-
|
|
1416
|
-
return /* @__PURE__ */ jsx17(UNSAFE_PortalProvider, { getContainer: () => portal, children: /* @__PURE__ */ jsx17(
|
|
1383
|
+
return /* @__PURE__ */ jsx16(
|
|
1417
1384
|
ModalOverlay,
|
|
1418
1385
|
{
|
|
1419
1386
|
className: ({ isEntering, isExiting }) => cn11(
|
|
@@ -1426,13 +1393,13 @@ var Underlay = ({
|
|
|
1426
1393
|
"data-testid": "underlay-id",
|
|
1427
1394
|
children: props.children
|
|
1428
1395
|
}
|
|
1429
|
-
)
|
|
1396
|
+
);
|
|
1430
1397
|
};
|
|
1431
1398
|
|
|
1432
1399
|
// src/Overlay/Popover.tsx
|
|
1433
|
-
import { Fragment, jsx as
|
|
1400
|
+
import { Fragment, jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1434
1401
|
var _Popover = forwardRef6(
|
|
1435
|
-
({ keyboardDismissDisabled, placement, open, children,
|
|
1402
|
+
({ keyboardDismissDisabled, placement, open, children, ...rest }, ref) => {
|
|
1436
1403
|
const props = {
|
|
1437
1404
|
isKeyboardDismissDisabled: keyboardDismissDisabled,
|
|
1438
1405
|
isOpen: open,
|
|
@@ -1446,49 +1413,36 @@ var _Popover = forwardRef6(
|
|
|
1446
1413
|
className: "min-w-(--trigger-width)"
|
|
1447
1414
|
});
|
|
1448
1415
|
const isSmallScreen = useSmallScreen();
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
UNSAFE_PortalProvider2,
|
|
1416
|
+
return /* @__PURE__ */ jsx17(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsxs9(
|
|
1417
|
+
Popover,
|
|
1452
1418
|
{
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
children: [
|
|
1464
|
-
children,
|
|
1465
|
-
/* @__PURE__ */ jsx18(Underlay, { open })
|
|
1466
|
-
]
|
|
1467
|
-
}
|
|
1468
|
-
)
|
|
1419
|
+
ref,
|
|
1420
|
+
...props,
|
|
1421
|
+
className: cn12(
|
|
1422
|
+
"fixed! top-auto! bottom-0! left-0! max-h-fit! w-full",
|
|
1423
|
+
classNames3
|
|
1424
|
+
),
|
|
1425
|
+
children: [
|
|
1426
|
+
children,
|
|
1427
|
+
/* @__PURE__ */ jsx17(Underlay, { open })
|
|
1428
|
+
]
|
|
1469
1429
|
}
|
|
1470
|
-
) : /* @__PURE__ */
|
|
1471
|
-
|
|
1430
|
+
) : /* @__PURE__ */ jsx17(
|
|
1431
|
+
Popover,
|
|
1472
1432
|
{
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
className: classNames3,
|
|
1480
|
-
placement,
|
|
1481
|
-
offset: 0,
|
|
1482
|
-
children
|
|
1483
|
-
}
|
|
1484
|
-
)
|
|
1433
|
+
ref,
|
|
1434
|
+
...props,
|
|
1435
|
+
className: classNames3,
|
|
1436
|
+
placement,
|
|
1437
|
+
offset: 0,
|
|
1438
|
+
children
|
|
1485
1439
|
}
|
|
1486
1440
|
) });
|
|
1487
1441
|
}
|
|
1488
1442
|
);
|
|
1489
1443
|
|
|
1490
1444
|
// src/Autocomplete/Autocomplete.tsx
|
|
1491
|
-
import { jsx as
|
|
1445
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1492
1446
|
var AutocompleteInput = ({
|
|
1493
1447
|
onSubmit,
|
|
1494
1448
|
onClear,
|
|
@@ -1496,7 +1450,7 @@ var AutocompleteInput = ({
|
|
|
1496
1450
|
}) => {
|
|
1497
1451
|
const state = React.useContext(ComboBoxStateContext);
|
|
1498
1452
|
const classNames3 = useClassNames9({ component: "ComboBox" });
|
|
1499
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ jsx18(
|
|
1500
1454
|
SearchInput,
|
|
1501
1455
|
{
|
|
1502
1456
|
ref,
|
|
@@ -1551,8 +1505,8 @@ var _Autocomplete = forwardRef7(
|
|
|
1551
1505
|
...rest
|
|
1552
1506
|
};
|
|
1553
1507
|
return /* @__PURE__ */ jsxs10(FieldBase, { as: ComboBox, ref, ...props, children: [
|
|
1554
|
-
/* @__PURE__ */
|
|
1555
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ jsx18(AutocompleteInput, { onSubmit, onClear, ref }),
|
|
1509
|
+
/* @__PURE__ */ jsx18(_Popover, { children: /* @__PURE__ */ jsx18(_ListBox, { children }) })
|
|
1556
1510
|
] });
|
|
1557
1511
|
}
|
|
1558
1512
|
);
|
|
@@ -1567,7 +1521,7 @@ import { useClassNames as useClassNames11 } from "@marigold/system";
|
|
|
1567
1521
|
// src/IconButton/IconButton.tsx
|
|
1568
1522
|
import { Button as Button3 } from "react-aria-components";
|
|
1569
1523
|
import { cn as cn14, useClassNames as useClassNames10 } from "@marigold/system";
|
|
1570
|
-
import { jsx as
|
|
1524
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1571
1525
|
var IconButton = ({
|
|
1572
1526
|
className,
|
|
1573
1527
|
children,
|
|
@@ -1580,7 +1534,7 @@ var IconButton = ({
|
|
|
1580
1534
|
variant,
|
|
1581
1535
|
size: size2
|
|
1582
1536
|
});
|
|
1583
|
-
return /* @__PURE__ */
|
|
1537
|
+
return /* @__PURE__ */ jsx19(
|
|
1584
1538
|
Button3,
|
|
1585
1539
|
{
|
|
1586
1540
|
className: cn14("shrink-0 cursor-pointer outline-0", classNames3, className),
|
|
@@ -1593,33 +1547,33 @@ var IconButton = ({
|
|
|
1593
1547
|
// src/icons/ChevronRight.tsx
|
|
1594
1548
|
import { forwardRef as forwardRef8 } from "react";
|
|
1595
1549
|
import { SVG as SVG3 } from "@marigold/system";
|
|
1596
|
-
import { jsx as
|
|
1550
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1597
1551
|
var ChevronRight = forwardRef8(
|
|
1598
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1552
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx20(SVG3, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx20("path", { d: "M7.125 18.0244L13.1363 12L7.125 5.97563L8.97563 4.125L16.8506 12L8.97563 19.875L7.125 18.0244Z" }) })
|
|
1599
1553
|
);
|
|
1600
1554
|
|
|
1601
1555
|
// src/icons/ChevronLeft.tsx
|
|
1602
1556
|
import { forwardRef as forwardRef9 } from "react";
|
|
1603
1557
|
import { SVG as SVG4 } from "@marigold/system";
|
|
1604
|
-
import { jsx as
|
|
1558
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1605
1559
|
var ChevronLeft = forwardRef9(
|
|
1606
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1560
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx21(SVG4, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx21("path", { d: "M16.8506 18.0244L10.8394 12L16.8506 5.97563L15 4.125L7.125 12L15 19.875L16.8506 18.0244Z" }) })
|
|
1607
1561
|
);
|
|
1608
1562
|
|
|
1609
1563
|
// src/icons/SortDown.tsx
|
|
1610
1564
|
import { forwardRef as forwardRef10 } from "react";
|
|
1611
1565
|
import { SVG as SVG5 } from "@marigold/system";
|
|
1612
|
-
import { jsx as
|
|
1613
|
-
var SortDown = forwardRef10((props, ref) => /* @__PURE__ */
|
|
1566
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1567
|
+
var SortDown = forwardRef10((props, ref) => /* @__PURE__ */ jsx22(SVG5, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx22("path", { d: "M17.3962 10.0496L12.5042 14.9416C12.3731 15.0727 12.1984 15.1492 12.0128 15.1492C11.8272 15.1492 11.6524 15.0727 11.5214 14.9416L6.62934 10.0496C6.49827 9.91854 6.42188 9.7439 6.42188 9.55816C6.42188 9.17606 6.73856 8.85938 7.12078 8.85938H16.9048C17.287 8.85938 17.6037 9.17606 17.6037 9.55816C17.6037 9.7439 17.5273 9.91854 17.3962 10.0496Z" }) }));
|
|
1614
1568
|
|
|
1615
1569
|
// src/icons/SortUp.tsx
|
|
1616
1570
|
import { forwardRef as forwardRef11 } from "react";
|
|
1617
1571
|
import { SVG as SVG6 } from "@marigold/system";
|
|
1618
|
-
import { jsx as
|
|
1619
|
-
var SortUp = forwardRef11((props, ref) => /* @__PURE__ */
|
|
1572
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1573
|
+
var SortUp = forwardRef11((props, ref) => /* @__PURE__ */ jsx23(SVG6, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx23("path", { d: "M16.9048 15.1491H7.12078C6.73856 15.1491 6.42188 14.8324 6.42188 14.4503C6.42188 14.2645 6.49827 14.0899 6.62934 13.9588L11.5214 9.06684C11.6524 8.93577 11.8272 8.85938 12.0128 8.85938C12.1984 8.85938 12.3731 8.93577 12.5042 9.06684L17.3962 13.9588C17.5273 14.0899 17.6037 14.2645 17.6037 14.4503C17.6037 14.8324 17.287 15.1491 16.9048 15.1491Z" }) }));
|
|
1620
1574
|
|
|
1621
1575
|
// src/ComboBox/ComboBox.tsx
|
|
1622
|
-
import { jsx as
|
|
1576
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1623
1577
|
var _ComboBox = forwardRef12(
|
|
1624
1578
|
({
|
|
1625
1579
|
variant,
|
|
@@ -1646,13 +1600,13 @@ var _ComboBox = forwardRef12(
|
|
|
1646
1600
|
};
|
|
1647
1601
|
const classNames3 = useClassNames11({ component: "ComboBox", variant, size: size2 });
|
|
1648
1602
|
return /* @__PURE__ */ jsxs11(FieldBase, { as: ComboBox2, ref, ...props, children: [
|
|
1649
|
-
/* @__PURE__ */
|
|
1603
|
+
/* @__PURE__ */ jsx24(
|
|
1650
1604
|
_Input,
|
|
1651
1605
|
{
|
|
1652
|
-
action: /* @__PURE__ */
|
|
1606
|
+
action: /* @__PURE__ */ jsx24(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx24(ChevronDown, { className: "size-4" }) })
|
|
1653
1607
|
}
|
|
1654
1608
|
),
|
|
1655
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ jsx24(_Popover, { children: /* @__PURE__ */ jsx24(_ListBox, { children }) })
|
|
1656
1610
|
] });
|
|
1657
1611
|
}
|
|
1658
1612
|
);
|
|
@@ -1661,24 +1615,24 @@ _ComboBox.Section = _ListBox.Section;
|
|
|
1661
1615
|
|
|
1662
1616
|
// src/Badge/Badge.tsx
|
|
1663
1617
|
import { useClassNames as useClassNames12 } from "@marigold/system";
|
|
1664
|
-
import { jsx as
|
|
1618
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1665
1619
|
var Badge = ({ variant, size: size2, children, ...props }) => {
|
|
1666
1620
|
const classNames3 = useClassNames12({ component: "Badge", variant, size: size2 });
|
|
1667
|
-
return /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ jsx25("div", { className: classNames3, ...props, children });
|
|
1668
1622
|
};
|
|
1669
1623
|
|
|
1670
1624
|
// src/Breakout/Breakout.tsx
|
|
1671
|
-
import { jsx as
|
|
1625
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1672
1626
|
var Breakout = ({ children }) => {
|
|
1673
|
-
return /* @__PURE__ */
|
|
1627
|
+
return /* @__PURE__ */ jsx26("div", { className: "![grid-column:1/-1]", children });
|
|
1674
1628
|
};
|
|
1675
1629
|
|
|
1676
1630
|
// src/Body/Body.tsx
|
|
1677
1631
|
import { useClassNames as useClassNames13 } from "@marigold/system";
|
|
1678
|
-
import { jsx as
|
|
1632
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1679
1633
|
var Body = ({ children, variant, size: size2, ...props }) => {
|
|
1680
1634
|
const classNames3 = useClassNames13({ component: "Body", variant, size: size2 });
|
|
1681
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ jsx27("section", { ...props, className: classNames3, children });
|
|
1682
1636
|
};
|
|
1683
1637
|
|
|
1684
1638
|
// src/Button/Button.tsx
|
|
@@ -1689,7 +1643,7 @@ import { cn as cn16, useClassNames as useClassNames15 } from "@marigold/system";
|
|
|
1689
1643
|
// src/ProgressCycle/ProgressCycle.tsx
|
|
1690
1644
|
import { ProgressBar } from "react-aria-components";
|
|
1691
1645
|
import { SVG as SVG7, cn as cn15, useClassNames as useClassNames14 } from "@marigold/system";
|
|
1692
|
-
import { jsx as
|
|
1646
|
+
import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1693
1647
|
var ProgressCycle = ({
|
|
1694
1648
|
size: size2 = "16",
|
|
1695
1649
|
...props
|
|
@@ -1702,7 +1656,7 @@ var ProgressCycle = ({
|
|
|
1702
1656
|
}
|
|
1703
1657
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|
|
1704
1658
|
const classNames3 = useClassNames14({ component: "ProgressCycle" });
|
|
1705
|
-
return /* @__PURE__ */
|
|
1659
|
+
return /* @__PURE__ */ jsx28(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ jsxs12(
|
|
1706
1660
|
SVG7,
|
|
1707
1661
|
{
|
|
1708
1662
|
className: "animate-rotate-spinner origin-center fill-none",
|
|
@@ -1710,7 +1664,7 @@ var ProgressCycle = ({
|
|
|
1710
1664
|
"aria-hidden": "true",
|
|
1711
1665
|
role: "img",
|
|
1712
1666
|
children: [
|
|
1713
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ jsx28(
|
|
1714
1668
|
"circle",
|
|
1715
1669
|
{
|
|
1716
1670
|
cx: "50%",
|
|
@@ -1720,7 +1674,7 @@ var ProgressCycle = ({
|
|
|
1720
1674
|
className: "stroke-transparent"
|
|
1721
1675
|
}
|
|
1722
1676
|
),
|
|
1723
|
-
/* @__PURE__ */
|
|
1677
|
+
/* @__PURE__ */ jsx28(
|
|
1724
1678
|
"circle",
|
|
1725
1679
|
{
|
|
1726
1680
|
cx: "50%",
|
|
@@ -1743,7 +1697,7 @@ var ProgressCycle = ({
|
|
|
1743
1697
|
};
|
|
1744
1698
|
|
|
1745
1699
|
// src/Button/Button.tsx
|
|
1746
|
-
import { Fragment as Fragment2, jsx as
|
|
1700
|
+
import { Fragment as Fragment2, jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1747
1701
|
var _Button = forwardRef13(
|
|
1748
1702
|
({ children, variant, size: size2, disabled, loading, fullWidth, ...props }, ref) => {
|
|
1749
1703
|
const classNames3 = useClassNames15({
|
|
@@ -1751,7 +1705,7 @@ var _Button = forwardRef13(
|
|
|
1751
1705
|
variant,
|
|
1752
1706
|
size: size2
|
|
1753
1707
|
});
|
|
1754
|
-
return /* @__PURE__ */
|
|
1708
|
+
return /* @__PURE__ */ jsx29(
|
|
1755
1709
|
Button4,
|
|
1756
1710
|
{
|
|
1757
1711
|
...props,
|
|
@@ -1765,8 +1719,8 @@ var _Button = forwardRef13(
|
|
|
1765
1719
|
isPending: loading,
|
|
1766
1720
|
isDisabled: disabled,
|
|
1767
1721
|
children: loading ? /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1722
|
+
/* @__PURE__ */ jsx29("span", { className: "absolute", children: /* @__PURE__ */ jsx29(ProgressCycle, {}) }),
|
|
1723
|
+
/* @__PURE__ */ jsx29("span", { className: "invisible flex gap-[inherit]", children })
|
|
1770
1724
|
] }) : children
|
|
1771
1725
|
}
|
|
1772
1726
|
);
|
|
@@ -1786,7 +1740,7 @@ import {
|
|
|
1786
1740
|
paddingTop,
|
|
1787
1741
|
useClassNames as useClassNames16
|
|
1788
1742
|
} from "@marigold/system";
|
|
1789
|
-
import { jsx as
|
|
1743
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1790
1744
|
var Card = ({
|
|
1791
1745
|
children,
|
|
1792
1746
|
variant,
|
|
@@ -1802,7 +1756,7 @@ var Card = ({
|
|
|
1802
1756
|
...props
|
|
1803
1757
|
}) => {
|
|
1804
1758
|
const classNames3 = useClassNames16({ component: "Card", variant, size: size2 });
|
|
1805
|
-
return /* @__PURE__ */
|
|
1759
|
+
return /* @__PURE__ */ jsx30(
|
|
1806
1760
|
"div",
|
|
1807
1761
|
{
|
|
1808
1762
|
...props,
|
|
@@ -1825,14 +1779,14 @@ var Card = ({
|
|
|
1825
1779
|
|
|
1826
1780
|
// src/Center/Center.tsx
|
|
1827
1781
|
import { cn as cn18, createVar as createVar3, gapSpace as gapSpace3 } from "@marigold/system";
|
|
1828
|
-
import { jsx as
|
|
1782
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1829
1783
|
var Center = ({
|
|
1830
1784
|
maxWidth = "100%",
|
|
1831
1785
|
space = 0,
|
|
1832
1786
|
children,
|
|
1833
1787
|
...props
|
|
1834
1788
|
}) => {
|
|
1835
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ jsx31(
|
|
1836
1790
|
"div",
|
|
1837
1791
|
{
|
|
1838
1792
|
...props,
|
|
@@ -1857,12 +1811,12 @@ import { CheckboxGroup } from "react-aria-components";
|
|
|
1857
1811
|
import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
|
|
1858
1812
|
|
|
1859
1813
|
// src/Checkbox/Context.tsx
|
|
1860
|
-
import { createContext as
|
|
1861
|
-
var CheckboxGroupContext =
|
|
1862
|
-
var useCheckboxGroupContext = () =>
|
|
1814
|
+
import { createContext as createContext3, useContext as useContext5 } from "react";
|
|
1815
|
+
var CheckboxGroupContext = createContext3(null);
|
|
1816
|
+
var useCheckboxGroupContext = () => useContext5(CheckboxGroupContext);
|
|
1863
1817
|
|
|
1864
1818
|
// src/Checkbox/CheckboxGroup.tsx
|
|
1865
|
-
import { jsx as
|
|
1819
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1866
1820
|
var _CheckboxGroup = ({
|
|
1867
1821
|
children,
|
|
1868
1822
|
variant,
|
|
@@ -1889,7 +1843,7 @@ var _CheckboxGroup = ({
|
|
|
1889
1843
|
isInvalid: error,
|
|
1890
1844
|
...rest
|
|
1891
1845
|
};
|
|
1892
|
-
return /* @__PURE__ */
|
|
1846
|
+
return /* @__PURE__ */ jsx32(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx32(
|
|
1893
1847
|
"div",
|
|
1894
1848
|
{
|
|
1895
1849
|
role: "presentation",
|
|
@@ -1900,14 +1854,14 @@ var _CheckboxGroup = ({
|
|
|
1900
1854
|
"group/checkboxgroup flex items-start",
|
|
1901
1855
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
1902
1856
|
),
|
|
1903
|
-
children: /* @__PURE__ */
|
|
1857
|
+
children: /* @__PURE__ */ jsx32(CheckboxGroupContext.Provider, { value: { width, variant, size: size2 }, children })
|
|
1904
1858
|
}
|
|
1905
1859
|
) });
|
|
1906
1860
|
};
|
|
1907
1861
|
|
|
1908
1862
|
// src/Checkbox/Checkbox.tsx
|
|
1909
|
-
import { Fragment as Fragment3, jsx as
|
|
1910
|
-
var CheckMark2 = () => /* @__PURE__ */
|
|
1863
|
+
import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1864
|
+
var CheckMark2 = () => /* @__PURE__ */ jsx33("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx33(
|
|
1911
1865
|
"path",
|
|
1912
1866
|
{
|
|
1913
1867
|
fill: "currentColor",
|
|
@@ -1915,7 +1869,7 @@ var CheckMark2 = () => /* @__PURE__ */ jsx34("svg", { width: "12px", height: "10
|
|
|
1915
1869
|
d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
|
|
1916
1870
|
}
|
|
1917
1871
|
) });
|
|
1918
|
-
var IndeterminateMark = () => /* @__PURE__ */
|
|
1872
|
+
var IndeterminateMark = () => /* @__PURE__ */ jsx33("svg", { width: "12px", height: "3px", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx33(
|
|
1919
1873
|
"path",
|
|
1920
1874
|
{
|
|
1921
1875
|
fill: "currentColor",
|
|
@@ -1924,7 +1878,7 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx34("svg", { width: "12px", heig
|
|
|
1924
1878
|
}
|
|
1925
1879
|
) });
|
|
1926
1880
|
var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
1927
|
-
return /* @__PURE__ */
|
|
1881
|
+
return /* @__PURE__ */ jsx33(
|
|
1928
1882
|
"div",
|
|
1929
1883
|
{
|
|
1930
1884
|
"aria-hidden": "true",
|
|
@@ -1936,7 +1890,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
|
1936
1890
|
className
|
|
1937
1891
|
),
|
|
1938
1892
|
...props,
|
|
1939
|
-
children: indeterminate ? /* @__PURE__ */
|
|
1893
|
+
children: indeterminate ? /* @__PURE__ */ jsx33(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx33(CheckMark2, {}) : null
|
|
1940
1894
|
}
|
|
1941
1895
|
);
|
|
1942
1896
|
};
|
|
@@ -1970,7 +1924,7 @@ var _Checkbox = forwardRef14(
|
|
|
1970
1924
|
variant: variant || (group == null ? void 0 : group.variant),
|
|
1971
1925
|
size: size2 || (group == null ? void 0 : group.size)
|
|
1972
1926
|
});
|
|
1973
|
-
return /* @__PURE__ */
|
|
1927
|
+
return /* @__PURE__ */ jsx33(
|
|
1974
1928
|
Checkbox,
|
|
1975
1929
|
{
|
|
1976
1930
|
ref,
|
|
@@ -1981,7 +1935,7 @@ var _Checkbox = forwardRef14(
|
|
|
1981
1935
|
),
|
|
1982
1936
|
...props,
|
|
1983
1937
|
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs14(Fragment3, { children: [
|
|
1984
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ jsx33(
|
|
1985
1939
|
Icon2,
|
|
1986
1940
|
{
|
|
1987
1941
|
checked: isSelected,
|
|
@@ -1989,7 +1943,7 @@ var _Checkbox = forwardRef14(
|
|
|
1989
1943
|
className: classNames3.checkbox
|
|
1990
1944
|
}
|
|
1991
1945
|
),
|
|
1992
|
-
label && /* @__PURE__ */
|
|
1946
|
+
label && /* @__PURE__ */ jsx33("div", { className: classNames3.label, children: label })
|
|
1993
1947
|
] })
|
|
1994
1948
|
}
|
|
1995
1949
|
);
|
|
@@ -2000,7 +1954,7 @@ _Checkbox.Group = _CheckboxGroup;
|
|
|
2000
1954
|
// src/Columns/Columns.tsx
|
|
2001
1955
|
import { Children as Children2 } from "react";
|
|
2002
1956
|
import { cn as cn21, createVar as createVar4, gapSpace as gapSpace4 } from "@marigold/system";
|
|
2003
|
-
import { jsx as
|
|
1957
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2004
1958
|
var Columns = ({
|
|
2005
1959
|
space = 0,
|
|
2006
1960
|
columns,
|
|
@@ -2016,7 +1970,7 @@ var Columns = ({
|
|
|
2016
1970
|
)}`
|
|
2017
1971
|
);
|
|
2018
1972
|
}
|
|
2019
|
-
return /* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ jsx34(
|
|
2020
1974
|
"div",
|
|
2021
1975
|
{
|
|
2022
1976
|
className: cn21(
|
|
@@ -2025,7 +1979,7 @@ var Columns = ({
|
|
|
2025
1979
|
gapSpace4[space]
|
|
2026
1980
|
),
|
|
2027
1981
|
...props,
|
|
2028
|
-
children: Children2.map(children, (child, idx) => /* @__PURE__ */
|
|
1982
|
+
children: Children2.map(children, (child, idx) => /* @__PURE__ */ jsx34(
|
|
2029
1983
|
"div",
|
|
2030
1984
|
{
|
|
2031
1985
|
className: cn21(
|
|
@@ -2045,7 +1999,7 @@ var Columns = ({
|
|
|
2045
1999
|
|
|
2046
2000
|
// src/Container/Container.tsx
|
|
2047
2001
|
import { cn as cn22, createVar as createVar5, gapSpace as gapSpace5, placeItems } from "@marigold/system";
|
|
2048
|
-
import { jsx as
|
|
2002
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2049
2003
|
var containerTextLength = {
|
|
2050
2004
|
short: "40ch",
|
|
2051
2005
|
default: "60ch",
|
|
@@ -2073,7 +2027,7 @@ var Container = ({
|
|
|
2073
2027
|
space = 0,
|
|
2074
2028
|
children,
|
|
2075
2029
|
...props
|
|
2076
|
-
}) => /* @__PURE__ */
|
|
2030
|
+
}) => /* @__PURE__ */ jsx35(
|
|
2077
2031
|
"div",
|
|
2078
2032
|
{
|
|
2079
2033
|
...props,
|
|
@@ -2106,7 +2060,7 @@ import { useClassNames as useClassNames21 } from "@marigold/system";
|
|
|
2106
2060
|
|
|
2107
2061
|
// src/ContextualHelp/ContextualHelpContent.tsx
|
|
2108
2062
|
import { useClassNames as useClassNames19 } from "@marigold/system";
|
|
2109
|
-
import { jsx as
|
|
2063
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2110
2064
|
var ContextualHelpContent = ({
|
|
2111
2065
|
children,
|
|
2112
2066
|
variant,
|
|
@@ -2117,13 +2071,13 @@ var ContextualHelpContent = ({
|
|
|
2117
2071
|
variant,
|
|
2118
2072
|
size: size2
|
|
2119
2073
|
});
|
|
2120
|
-
return /* @__PURE__ */
|
|
2074
|
+
return /* @__PURE__ */ jsx36("div", { className: classNames3.content, children });
|
|
2121
2075
|
};
|
|
2122
2076
|
|
|
2123
2077
|
// src/ContextualHelp/ContextualHelpTitle.tsx
|
|
2124
2078
|
import { Heading as Heading2 } from "react-aria-components";
|
|
2125
2079
|
import { useClassNames as useClassNames20 } from "@marigold/system";
|
|
2126
|
-
import { jsx as
|
|
2080
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2127
2081
|
var ContextualHelpTitle = ({
|
|
2128
2082
|
children,
|
|
2129
2083
|
variant,
|
|
@@ -2134,11 +2088,11 @@ var ContextualHelpTitle = ({
|
|
|
2134
2088
|
variant,
|
|
2135
2089
|
size: size2
|
|
2136
2090
|
});
|
|
2137
|
-
return /* @__PURE__ */
|
|
2091
|
+
return /* @__PURE__ */ jsx37(Heading2, { className: classNames3.title, children });
|
|
2138
2092
|
};
|
|
2139
2093
|
|
|
2140
2094
|
// src/ContextualHelp/ContextualHelp.tsx
|
|
2141
|
-
import { jsx as
|
|
2095
|
+
import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2142
2096
|
var icons = {
|
|
2143
2097
|
help: () => /* @__PURE__ */ jsxs15(
|
|
2144
2098
|
"svg",
|
|
@@ -2152,11 +2106,11 @@ var icons = {
|
|
|
2152
2106
|
strokeWidth: "2",
|
|
2153
2107
|
strokeLinecap: "round",
|
|
2154
2108
|
strokeLinejoin: "round",
|
|
2155
|
-
className: "
|
|
2109
|
+
className: "size-5",
|
|
2156
2110
|
children: [
|
|
2157
|
-
/* @__PURE__ */
|
|
2158
|
-
/* @__PURE__ */
|
|
2159
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ jsx38("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2112
|
+
/* @__PURE__ */ jsx38("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2113
|
+
/* @__PURE__ */ jsx38("path", { d: "M12 17h.01" })
|
|
2160
2114
|
]
|
|
2161
2115
|
}
|
|
2162
2116
|
),
|
|
@@ -2172,16 +2126,16 @@ var icons = {
|
|
|
2172
2126
|
strokeWidth: "2",
|
|
2173
2127
|
strokeLinecap: "round",
|
|
2174
2128
|
strokeLinejoin: "round",
|
|
2175
|
-
className: "
|
|
2129
|
+
className: "size-5",
|
|
2176
2130
|
children: [
|
|
2177
|
-
/* @__PURE__ */
|
|
2178
|
-
/* @__PURE__ */
|
|
2179
|
-
/* @__PURE__ */
|
|
2131
|
+
/* @__PURE__ */ jsx38("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2132
|
+
/* @__PURE__ */ jsx38("path", { d: "M12 16v-4" }),
|
|
2133
|
+
/* @__PURE__ */ jsx38("path", { d: "M12 8h.01" })
|
|
2180
2134
|
]
|
|
2181
2135
|
}
|
|
2182
2136
|
)
|
|
2183
2137
|
};
|
|
2184
|
-
var DialogTrigger = ({ open, ...rest }) => /* @__PURE__ */
|
|
2138
|
+
var DialogTrigger = ({ open, ...rest }) => /* @__PURE__ */ jsx38(RACDialogTrigger, { isOpen: open, ...rest });
|
|
2185
2139
|
var _ContextualHelp = forwardRef15(
|
|
2186
2140
|
({
|
|
2187
2141
|
children,
|
|
@@ -2208,7 +2162,7 @@ var _ContextualHelp = forwardRef15(
|
|
|
2208
2162
|
open,
|
|
2209
2163
|
onOpenChange,
|
|
2210
2164
|
children: [
|
|
2211
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ jsx38(
|
|
2212
2166
|
Button5,
|
|
2213
2167
|
{
|
|
2214
2168
|
ref,
|
|
@@ -2217,7 +2171,7 @@ var _ContextualHelp = forwardRef15(
|
|
|
2217
2171
|
children: icon
|
|
2218
2172
|
}
|
|
2219
2173
|
),
|
|
2220
|
-
/* @__PURE__ */
|
|
2174
|
+
/* @__PURE__ */ jsx38(
|
|
2221
2175
|
Popover2,
|
|
2222
2176
|
{
|
|
2223
2177
|
placement,
|
|
@@ -2226,7 +2180,7 @@ var _ContextualHelp = forwardRef15(
|
|
|
2226
2180
|
...{
|
|
2227
2181
|
[`data-${width != null ? width : "medium"}`]: true
|
|
2228
2182
|
},
|
|
2229
|
-
children: /* @__PURE__ */
|
|
2183
|
+
children: /* @__PURE__ */ jsx38(Dialog, { className: (classNames3.dialog, "prose"), children })
|
|
2230
2184
|
}
|
|
2231
2185
|
)
|
|
2232
2186
|
]
|
|
@@ -2240,7 +2194,7 @@ _ContextualHelp.Content = ContextualHelpContent;
|
|
|
2240
2194
|
// src/Dialog/Dialog.tsx
|
|
2241
2195
|
import {
|
|
2242
2196
|
forwardRef as forwardRef19,
|
|
2243
|
-
useContext as
|
|
2197
|
+
useContext as useContext7
|
|
2244
2198
|
} from "react";
|
|
2245
2199
|
import { Dialog as Dialog2, OverlayTriggerStateContext as OverlayTriggerStateContext2 } from "react-aria-components";
|
|
2246
2200
|
import { cn as cn26, useClassNames as useClassNames27 } from "@marigold/system";
|
|
@@ -2249,7 +2203,7 @@ import { cn as cn26, useClassNames as useClassNames27 } from "@marigold/system";
|
|
|
2249
2203
|
import { forwardRef as forwardRef16 } from "react";
|
|
2250
2204
|
import { Button as Button6 } from "react-aria-components";
|
|
2251
2205
|
import { useClassNames as useClassNames22 } from "@marigold/system";
|
|
2252
|
-
import { jsx as
|
|
2206
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2253
2207
|
var CloseButton = forwardRef16(
|
|
2254
2208
|
({ className, size: size2, variant, ...props }, ref) => {
|
|
2255
2209
|
const classNames3 = useClassNames22({
|
|
@@ -2258,7 +2212,7 @@ var CloseButton = forwardRef16(
|
|
|
2258
2212
|
size: size2,
|
|
2259
2213
|
variant
|
|
2260
2214
|
});
|
|
2261
|
-
return /* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsx39(Button6, { ref, className: classNames3, ...props, children: /* @__PURE__ */ jsx39("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx39("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" }) }) });
|
|
2262
2216
|
}
|
|
2263
2217
|
);
|
|
2264
2218
|
|
|
@@ -2266,7 +2220,7 @@ var CloseButton = forwardRef16(
|
|
|
2266
2220
|
import { forwardRef as forwardRef17 } from "react";
|
|
2267
2221
|
import { Modal } from "react-aria-components";
|
|
2268
2222
|
import { useClassNames as useClassNames23 } from "@marigold/system";
|
|
2269
|
-
import { jsx as
|
|
2223
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2270
2224
|
var _Modal = forwardRef17(({ size: size2, open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2271
2225
|
const props = {
|
|
2272
2226
|
isOpen: open,
|
|
@@ -2275,19 +2229,19 @@ var _Modal = forwardRef17(({ size: size2, open, dismissable, keyboardDismissable
|
|
|
2275
2229
|
...rest
|
|
2276
2230
|
};
|
|
2277
2231
|
const className = useClassNames23({ component: "Modal", size: size2 });
|
|
2278
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx40(
|
|
2279
2233
|
Underlay,
|
|
2280
2234
|
{
|
|
2281
2235
|
dismissable,
|
|
2282
2236
|
keyboardDismissable,
|
|
2283
2237
|
open,
|
|
2284
|
-
children: /* @__PURE__ */
|
|
2238
|
+
children: /* @__PURE__ */ jsx40(Modal, { ...props, className, ref, children: props.children })
|
|
2285
2239
|
}
|
|
2286
2240
|
);
|
|
2287
2241
|
});
|
|
2288
2242
|
|
|
2289
2243
|
// src/Overlay/NonModal.tsx
|
|
2290
|
-
import { forwardRef as forwardRef18, useContext as
|
|
2244
|
+
import { forwardRef as forwardRef18, useContext as useContext6 } from "react";
|
|
2291
2245
|
import {
|
|
2292
2246
|
OverlayTriggerStateContext,
|
|
2293
2247
|
Provider
|
|
@@ -2297,7 +2251,7 @@ import {
|
|
|
2297
2251
|
} from "react-stately";
|
|
2298
2252
|
import { FocusScope } from "@react-aria/focus";
|
|
2299
2253
|
import { DismissButton, Overlay } from "@react-aria/overlays";
|
|
2300
|
-
import { useIsSSR
|
|
2254
|
+
import { useIsSSR } from "@react-aria/ssr";
|
|
2301
2255
|
import {
|
|
2302
2256
|
filterDOMProps,
|
|
2303
2257
|
mergeProps,
|
|
@@ -2376,11 +2330,10 @@ var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
|
2376
2330
|
};
|
|
2377
2331
|
|
|
2378
2332
|
// src/Overlay/NonModal.tsx
|
|
2379
|
-
import { jsx as
|
|
2333
|
+
import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2380
2334
|
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
2381
2335
|
const { nonModalProps } = useNonModal(props, state);
|
|
2382
2336
|
const ref = props.nonModalRef;
|
|
2383
|
-
const portalContainer = usePortalContainer();
|
|
2384
2337
|
const isEntering = useEnterAnimation(ref) || props.isEntering || false;
|
|
2385
2338
|
const renderProps = useRenderProps({
|
|
2386
2339
|
...props,
|
|
@@ -2411,19 +2364,11 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
|
2411
2364
|
"data-exiting": isExiting || void 0,
|
|
2412
2365
|
children: [
|
|
2413
2366
|
renderProps.children,
|
|
2414
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ jsx41(DismissButton, { onDismiss: state.close })
|
|
2415
2368
|
]
|
|
2416
2369
|
}
|
|
2417
2370
|
);
|
|
2418
|
-
return /* @__PURE__ */
|
|
2419
|
-
Overlay,
|
|
2420
|
-
{
|
|
2421
|
-
isExiting,
|
|
2422
|
-
portalContainer,
|
|
2423
|
-
disableFocusManagement: true,
|
|
2424
|
-
children: /* @__PURE__ */ jsx42(FocusScope, { restoreFocus: true, children: /* @__PURE__ */ jsx42(Provider, { values: [[OverlayTriggerStateContext, state]], children: overlay }) })
|
|
2425
|
-
}
|
|
2426
|
-
);
|
|
2371
|
+
return /* @__PURE__ */ jsx41(Overlay, { isExiting, disableFocusManagement: true, children: /* @__PURE__ */ jsx41(FocusScope, { restoreFocus: true, children: /* @__PURE__ */ jsx41(Provider, { values: [[OverlayTriggerStateContext, state]], children: overlay }) }) });
|
|
2427
2372
|
};
|
|
2428
2373
|
var NonModal = forwardRef18(
|
|
2429
2374
|
({ open, ...rest }, ref) => {
|
|
@@ -2432,15 +2377,15 @@ var NonModal = forwardRef18(
|
|
|
2432
2377
|
...rest
|
|
2433
2378
|
};
|
|
2434
2379
|
ref = useObjectRef(ref);
|
|
2435
|
-
const contextState =
|
|
2380
|
+
const contextState = useContext6(OverlayTriggerStateContext);
|
|
2436
2381
|
const localState = useOverlayTriggerState(props);
|
|
2437
2382
|
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
2438
2383
|
const isExiting = useExitAnimation(ref, state.isOpen) || props.isExiting || false;
|
|
2439
|
-
const isSSR =
|
|
2384
|
+
const isSSR = useIsSSR();
|
|
2440
2385
|
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
2441
2386
|
return null;
|
|
2442
2387
|
}
|
|
2443
|
-
return /* @__PURE__ */
|
|
2388
|
+
return /* @__PURE__ */ jsx41(
|
|
2444
2389
|
NonModalInner,
|
|
2445
2390
|
{
|
|
2446
2391
|
...props,
|
|
@@ -2454,43 +2399,43 @@ var NonModal = forwardRef18(
|
|
|
2454
2399
|
|
|
2455
2400
|
// src/Dialog/DialogActions.tsx
|
|
2456
2401
|
import { cn as cn23, useClassNames as useClassNames24 } from "@marigold/system";
|
|
2457
|
-
import { jsx as
|
|
2402
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2458
2403
|
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2459
2404
|
const classNames3 = useClassNames24({ component: "Dialog", variant, size: size2 });
|
|
2460
|
-
return /* @__PURE__ */
|
|
2405
|
+
return /* @__PURE__ */ jsx42("div", { className: cn23("[grid-area:actions]", classNames3.actions), children });
|
|
2461
2406
|
};
|
|
2462
2407
|
|
|
2463
2408
|
// src/Dialog/DialogContent.tsx
|
|
2464
2409
|
import { cn as cn24, useClassNames as useClassNames25 } from "@marigold/system";
|
|
2465
|
-
import { jsx as
|
|
2410
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2466
2411
|
var DialogContent = ({
|
|
2467
2412
|
variant,
|
|
2468
2413
|
size: size2,
|
|
2469
2414
|
children
|
|
2470
2415
|
}) => {
|
|
2471
2416
|
const classNames3 = useClassNames25({ component: "Dialog", variant, size: size2 });
|
|
2472
|
-
return /* @__PURE__ */
|
|
2417
|
+
return /* @__PURE__ */ jsx43("div", { className: cn24("[grid-area:content]", classNames3.content), children });
|
|
2473
2418
|
};
|
|
2474
2419
|
|
|
2475
2420
|
// src/Dialog/DialogTitle.tsx
|
|
2476
2421
|
import { Header as Header2, Heading as Heading3 } from "react-aria-components";
|
|
2477
2422
|
import { cn as cn25, useClassNames as useClassNames26 } from "@marigold/system";
|
|
2478
|
-
import { jsx as
|
|
2423
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2479
2424
|
var DialogTitle = ({ variant, size: size2, children }) => {
|
|
2480
2425
|
const classNames3 = useClassNames26({
|
|
2481
2426
|
component: "Dialog",
|
|
2482
2427
|
variant,
|
|
2483
2428
|
size: size2
|
|
2484
2429
|
});
|
|
2485
|
-
return /* @__PURE__ */
|
|
2430
|
+
return /* @__PURE__ */ jsx44(Header2, { className: cn25("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ jsx44(Heading3, { slot: "title", className: classNames3.title, children }) });
|
|
2486
2431
|
};
|
|
2487
2432
|
|
|
2488
2433
|
// src/Dialog/DialogTrigger.tsx
|
|
2489
|
-
import { createContext as
|
|
2434
|
+
import { createContext as createContext4 } from "react";
|
|
2490
2435
|
import { DialogTrigger as DialogTrigger2 } from "react-aria-components";
|
|
2491
2436
|
import { PressResponder } from "@react-aria/interactions";
|
|
2492
|
-
import { jsx as
|
|
2493
|
-
var DialogContext =
|
|
2437
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2438
|
+
var DialogContext = createContext4({});
|
|
2494
2439
|
var _DialogTrigger = ({
|
|
2495
2440
|
open,
|
|
2496
2441
|
dismissable,
|
|
@@ -2503,11 +2448,11 @@ var _DialogTrigger = ({
|
|
|
2503
2448
|
isKeyboardDismissDisabled: !keyboardDismissable,
|
|
2504
2449
|
...rest
|
|
2505
2450
|
};
|
|
2506
|
-
return /* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ jsx45(DialogContext.Provider, { value: props, children: /* @__PURE__ */ jsx45(DialogTrigger2, { ...props, children: /* @__PURE__ */ jsx45(PressResponder, { isPressed: false, children: props.children }) }) });
|
|
2507
2452
|
};
|
|
2508
2453
|
|
|
2509
2454
|
// src/Dialog/Dialog.tsx
|
|
2510
|
-
import { jsx as
|
|
2455
|
+
import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2511
2456
|
var _Dialog = forwardRef19(
|
|
2512
2457
|
({ variant, size: size2, ...props }, ref) => {
|
|
2513
2458
|
var _a;
|
|
@@ -2516,13 +2461,13 @@ var _Dialog = forwardRef19(
|
|
|
2516
2461
|
variant,
|
|
2517
2462
|
size: size2
|
|
2518
2463
|
});
|
|
2519
|
-
const { isDismissable, isKeyboardDismissDisabled, isOpen } =
|
|
2520
|
-
const state =
|
|
2464
|
+
const { isDismissable, isKeyboardDismissDisabled, isOpen } = useContext7(DialogContext);
|
|
2465
|
+
const state = useContext7(OverlayTriggerStateContext2);
|
|
2521
2466
|
const children = typeof props.children === "function" ? props.children({
|
|
2522
2467
|
close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
|
|
2523
2468
|
}
|
|
2524
2469
|
}) : props.children;
|
|
2525
|
-
return /* @__PURE__ */
|
|
2470
|
+
return /* @__PURE__ */ jsx46(
|
|
2526
2471
|
_Modal,
|
|
2527
2472
|
{
|
|
2528
2473
|
dismissable: isDismissable,
|
|
@@ -2540,7 +2485,7 @@ var _Dialog = forwardRef19(
|
|
|
2540
2485
|
classNames3.container
|
|
2541
2486
|
),
|
|
2542
2487
|
children: [
|
|
2543
|
-
props.closeButton && /* @__PURE__ */
|
|
2488
|
+
props.closeButton && /* @__PURE__ */ jsx46(
|
|
2544
2489
|
CloseButton,
|
|
2545
2490
|
{
|
|
2546
2491
|
className: classNames3.closeButton,
|
|
@@ -2563,29 +2508,29 @@ _Dialog.Actions = DialogActions;
|
|
|
2563
2508
|
// src/Divider/Divider.tsx
|
|
2564
2509
|
import { Separator } from "react-aria-components";
|
|
2565
2510
|
import { cn as cn27, useClassNames as useClassNames28 } from "@marigold/system";
|
|
2566
|
-
import { jsx as
|
|
2511
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2567
2512
|
var _Divider = ({ variant, ...props }) => {
|
|
2568
2513
|
const classNames3 = useClassNames28({ component: "Divider", variant });
|
|
2569
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ jsx47(Separator, { className: cn27("border-none", classNames3), ...props });
|
|
2570
2515
|
};
|
|
2571
2516
|
|
|
2572
2517
|
// src/Drawer/Drawer.tsx
|
|
2573
|
-
import { useContext as
|
|
2518
|
+
import { useContext as useContext9, useRef } from "react";
|
|
2574
2519
|
import { Dialog as Dialog3, OverlayTriggerStateContext as OverlayTriggerStateContext3 } from "react-aria-components";
|
|
2575
2520
|
import { useLandmark } from "@react-aria/landmark";
|
|
2576
2521
|
import { cn as cn32, useClassNames as useClassNames32, useSmallScreen as useSmallScreen3 } from "@marigold/system";
|
|
2577
2522
|
|
|
2578
2523
|
// src/Drawer/Context.tsx
|
|
2579
|
-
import { createContext as
|
|
2580
|
-
var DrawerContext =
|
|
2524
|
+
import { createContext as createContext5, useContext as useContext8 } from "react";
|
|
2525
|
+
var DrawerContext = createContext5({
|
|
2581
2526
|
variant: void 0,
|
|
2582
2527
|
size: void 0
|
|
2583
2528
|
});
|
|
2584
|
-
var useDrawerContext = () =>
|
|
2529
|
+
var useDrawerContext = () => useContext8(DrawerContext);
|
|
2585
2530
|
|
|
2586
2531
|
// src/Drawer/DrawerActions.tsx
|
|
2587
2532
|
import { cn as cn28, useClassNames as useClassNames29 } from "@marigold/system";
|
|
2588
|
-
import { jsx as
|
|
2533
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2589
2534
|
var DrawerActions = ({ variant, size: size2, children }) => {
|
|
2590
2535
|
const ctx = useDrawerContext();
|
|
2591
2536
|
const classNames3 = useClassNames29({
|
|
@@ -2593,7 +2538,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
|
|
|
2593
2538
|
variant: variant != null ? variant : ctx.variant,
|
|
2594
2539
|
size: size2 != null ? size2 : ctx.size
|
|
2595
2540
|
});
|
|
2596
|
-
return /* @__PURE__ */
|
|
2541
|
+
return /* @__PURE__ */ jsx48(
|
|
2597
2542
|
"div",
|
|
2598
2543
|
{
|
|
2599
2544
|
className: cn28("[grid-area:actions]", classNames3.actions),
|
|
@@ -2605,7 +2550,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
|
|
|
2605
2550
|
|
|
2606
2551
|
// src/Drawer/DrawerContent.tsx
|
|
2607
2552
|
import { cn as cn29, useClassNames as useClassNames30 } from "@marigold/system";
|
|
2608
|
-
import { jsx as
|
|
2553
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2609
2554
|
var DrawerContent = ({
|
|
2610
2555
|
variant,
|
|
2611
2556
|
size: size2,
|
|
@@ -2617,7 +2562,7 @@ var DrawerContent = ({
|
|
|
2617
2562
|
variant: variant != null ? variant : ctx.variant,
|
|
2618
2563
|
size: size2 != null ? size2 : ctx.size
|
|
2619
2564
|
});
|
|
2620
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsx49(
|
|
2621
2566
|
"div",
|
|
2622
2567
|
{
|
|
2623
2568
|
className: cn29("[grid-area:content]", classNames3.content),
|
|
@@ -2628,15 +2573,24 @@ var DrawerContent = ({
|
|
|
2628
2573
|
};
|
|
2629
2574
|
|
|
2630
2575
|
// src/Drawer/DrawerModal.tsx
|
|
2576
|
+
import { Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
|
|
2631
2577
|
import { cn as cn30, useSmallScreen as useSmallScreen2 } from "@marigold/system";
|
|
2632
|
-
import { jsx as
|
|
2578
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2579
|
+
var MobileModal = ({ children, ...props }) => /* @__PURE__ */ jsx50(
|
|
2580
|
+
ModalOverlay2,
|
|
2581
|
+
{
|
|
2582
|
+
...props,
|
|
2583
|
+
className: "fixed inset-0 z-40 h-(--visual-viewport-height)",
|
|
2584
|
+
children: /* @__PURE__ */ jsx50(Modal2, { className: "flex *:flex-1", children })
|
|
2585
|
+
}
|
|
2586
|
+
);
|
|
2633
2587
|
var DrawerModal = ({
|
|
2634
2588
|
children,
|
|
2635
2589
|
className,
|
|
2636
2590
|
...props
|
|
2637
2591
|
}) => {
|
|
2638
2592
|
const isSmallScreen = useSmallScreen2();
|
|
2639
|
-
return isSmallScreen ? /* @__PURE__ */
|
|
2593
|
+
return isSmallScreen ? /* @__PURE__ */ jsx50(MobileModal, { children }) : /* @__PURE__ */ jsx50(
|
|
2640
2594
|
NonModal,
|
|
2641
2595
|
{
|
|
2642
2596
|
...props,
|
|
@@ -2649,7 +2603,7 @@ var DrawerModal = ({
|
|
|
2649
2603
|
// src/Drawer/DrawerTitle.tsx
|
|
2650
2604
|
import { Header as Header3, Heading as Heading4 } from "react-aria-components";
|
|
2651
2605
|
import { cn as cn31, useClassNames as useClassNames31 } from "@marigold/system";
|
|
2652
|
-
import { jsx as
|
|
2606
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2653
2607
|
var DrawerTitle = ({ variant, size: size2, children }) => {
|
|
2654
2608
|
const classNames3 = useClassNames31({
|
|
2655
2609
|
component: "Drawer",
|
|
@@ -2657,27 +2611,27 @@ var DrawerTitle = ({ variant, size: size2, children }) => {
|
|
|
2657
2611
|
variant,
|
|
2658
2612
|
context: DrawerContext
|
|
2659
2613
|
});
|
|
2660
|
-
return /* @__PURE__ */
|
|
2614
|
+
return /* @__PURE__ */ jsx51(
|
|
2661
2615
|
Header3,
|
|
2662
2616
|
{
|
|
2663
2617
|
className: cn31("[grid-area:title]", classNames3.header),
|
|
2664
2618
|
style: { "--i": 0 },
|
|
2665
|
-
children: /* @__PURE__ */
|
|
2619
|
+
children: /* @__PURE__ */ jsx51(Heading4, { slot: "title", level: 2, className: classNames3.title, children })
|
|
2666
2620
|
}
|
|
2667
2621
|
);
|
|
2668
2622
|
};
|
|
2669
2623
|
|
|
2670
2624
|
// src/Drawer/DrawerTrigger.tsx
|
|
2671
2625
|
import { DialogTrigger as DialogTrigger3 } from "react-aria-components";
|
|
2672
|
-
import { jsx as
|
|
2626
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2673
2627
|
var DrawerTrigger = ({
|
|
2674
2628
|
open,
|
|
2675
2629
|
children,
|
|
2676
2630
|
...props
|
|
2677
|
-
}) => /* @__PURE__ */
|
|
2631
|
+
}) => /* @__PURE__ */ jsx52(DialogTrigger3, { isOpen: open, ...props, children });
|
|
2678
2632
|
|
|
2679
2633
|
// src/Drawer/Drawer.tsx
|
|
2680
|
-
import { jsx as
|
|
2634
|
+
import { jsx as jsx53, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2681
2635
|
var Drawer = ({
|
|
2682
2636
|
children,
|
|
2683
2637
|
variant,
|
|
@@ -2690,17 +2644,17 @@ var Drawer = ({
|
|
|
2690
2644
|
}) => {
|
|
2691
2645
|
const ref = useRef(null);
|
|
2692
2646
|
const classNames3 = useClassNames32({ component: "Drawer", variant, size: size2 });
|
|
2693
|
-
const ctx =
|
|
2647
|
+
const ctx = useContext9(OverlayTriggerStateContext3);
|
|
2694
2648
|
const isSmallScreen = useSmallScreen3();
|
|
2695
2649
|
const landmarkAria = useLandmark({ ...props, role }, ref);
|
|
2696
2650
|
const landmarkProps = isSmallScreen ? {} : landmarkAria.landmarkProps;
|
|
2697
|
-
return /* @__PURE__ */
|
|
2651
|
+
return /* @__PURE__ */ jsx53(
|
|
2698
2652
|
DrawerModal,
|
|
2699
2653
|
{
|
|
2700
2654
|
className: classNames3.overlay,
|
|
2701
2655
|
open,
|
|
2702
2656
|
keyboardDismissable,
|
|
2703
|
-
children: /* @__PURE__ */
|
|
2657
|
+
children: /* @__PURE__ */ jsx53(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ jsxs18(
|
|
2704
2658
|
Dialog3,
|
|
2705
2659
|
{
|
|
2706
2660
|
...props,
|
|
@@ -2711,7 +2665,7 @@ var Drawer = ({
|
|
|
2711
2665
|
classNames3.container
|
|
2712
2666
|
),
|
|
2713
2667
|
children: [
|
|
2714
|
-
closeButton && /* @__PURE__ */
|
|
2668
|
+
closeButton && /* @__PURE__ */ jsx53(
|
|
2715
2669
|
CloseButton,
|
|
2716
2670
|
{
|
|
2717
2671
|
"aria-label": "dismiss drawer",
|
|
@@ -2734,17 +2688,17 @@ Drawer.Actions = DrawerActions;
|
|
|
2734
2688
|
|
|
2735
2689
|
// src/Footer/Footer.tsx
|
|
2736
2690
|
import { useClassNames as useClassNames33 } from "@marigold/system";
|
|
2737
|
-
import { jsx as
|
|
2691
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
2738
2692
|
var Footer = ({ children, variant, size: size2, ...props }) => {
|
|
2739
2693
|
const classNames3 = useClassNames33({ component: "Footer", variant, size: size2 });
|
|
2740
|
-
return /* @__PURE__ */
|
|
2694
|
+
return /* @__PURE__ */ jsx54("footer", { ...props, className: classNames3, children });
|
|
2741
2695
|
};
|
|
2742
2696
|
|
|
2743
2697
|
// src/Form/Form.tsx
|
|
2744
2698
|
import { Form } from "react-aria-components";
|
|
2745
2699
|
import { cn as cn33, maxWidth as twMaxWidth } from "@marigold/system";
|
|
2746
|
-
import { jsx as
|
|
2747
|
-
var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */
|
|
2700
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
2701
|
+
var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx55(
|
|
2748
2702
|
Form,
|
|
2749
2703
|
{
|
|
2750
2704
|
...props,
|
|
@@ -2756,11 +2710,11 @@ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx56
|
|
|
2756
2710
|
import { alignment, cn as cn34, gapSpace as gapSpace6, height as twHeight } from "@marigold/system";
|
|
2757
2711
|
|
|
2758
2712
|
// src/Grid/GridArea.tsx
|
|
2759
|
-
import { jsx as
|
|
2760
|
-
var GridArea = ({ name, children }) => /* @__PURE__ */
|
|
2713
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
2714
|
+
var GridArea = ({ name, children }) => /* @__PURE__ */ jsx56("div", { style: { gridArea: name }, children });
|
|
2761
2715
|
|
|
2762
2716
|
// src/Grid/Grid.tsx
|
|
2763
|
-
import { jsx as
|
|
2717
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
2764
2718
|
var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
|
|
2765
2719
|
var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
|
|
2766
2720
|
var Grid = ({
|
|
@@ -2775,7 +2729,7 @@ var Grid = ({
|
|
|
2775
2729
|
...props
|
|
2776
2730
|
}) => {
|
|
2777
2731
|
var _a, _b, _c, _d;
|
|
2778
|
-
return /* @__PURE__ */
|
|
2732
|
+
return /* @__PURE__ */ jsx57(
|
|
2779
2733
|
"div",
|
|
2780
2734
|
{
|
|
2781
2735
|
className: cn34(
|
|
@@ -2800,14 +2754,14 @@ Grid.Area = GridArea;
|
|
|
2800
2754
|
// src/Header/Header.tsx
|
|
2801
2755
|
import { Header as Header4 } from "react-aria-components";
|
|
2802
2756
|
import { useClassNames as useClassNames34 } from "@marigold/system";
|
|
2803
|
-
import { jsx as
|
|
2757
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2804
2758
|
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2805
2759
|
const classNames3 = useClassNames34({
|
|
2806
2760
|
component: "Header",
|
|
2807
2761
|
variant,
|
|
2808
2762
|
size: size2
|
|
2809
2763
|
});
|
|
2810
|
-
return /* @__PURE__ */
|
|
2764
|
+
return /* @__PURE__ */ jsx58(Header4, { className: classNames3, ...props, children: props.children });
|
|
2811
2765
|
};
|
|
2812
2766
|
|
|
2813
2767
|
// src/Headline/Headline.tsx
|
|
@@ -2818,7 +2772,7 @@ import {
|
|
|
2818
2772
|
textAlign,
|
|
2819
2773
|
useClassNames as useClassNames35
|
|
2820
2774
|
} from "@marigold/system";
|
|
2821
|
-
import { jsx as
|
|
2775
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2822
2776
|
var _Headline = ({
|
|
2823
2777
|
variant,
|
|
2824
2778
|
size: size2,
|
|
@@ -2833,7 +2787,7 @@ var _Headline = ({
|
|
|
2833
2787
|
variant,
|
|
2834
2788
|
size: size2 != null ? size2 : `level-${level}`
|
|
2835
2789
|
});
|
|
2836
|
-
return /* @__PURE__ */
|
|
2790
|
+
return /* @__PURE__ */ jsx59(
|
|
2837
2791
|
Heading5,
|
|
2838
2792
|
{
|
|
2839
2793
|
level: Number(level),
|
|
@@ -2857,7 +2811,7 @@ import {
|
|
|
2857
2811
|
objectPosition,
|
|
2858
2812
|
useClassNames as useClassNames36
|
|
2859
2813
|
} from "@marigold/system";
|
|
2860
|
-
import { jsx as
|
|
2814
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
2861
2815
|
var Image = ({
|
|
2862
2816
|
variant,
|
|
2863
2817
|
size: size2,
|
|
@@ -2866,7 +2820,7 @@ var Image = ({
|
|
|
2866
2820
|
...props
|
|
2867
2821
|
}) => {
|
|
2868
2822
|
const classNames3 = useClassNames36({ component: "Image", variant, size: size2 });
|
|
2869
|
-
return /* @__PURE__ */
|
|
2823
|
+
return /* @__PURE__ */ jsx60(
|
|
2870
2824
|
"img",
|
|
2871
2825
|
{
|
|
2872
2826
|
...props,
|
|
@@ -2883,7 +2837,7 @@ var Image = ({
|
|
|
2883
2837
|
|
|
2884
2838
|
// src/Inline/Inline.tsx
|
|
2885
2839
|
import { alignment as alignment2, cn as cn37, gapSpace as gapSpace7 } from "@marigold/system";
|
|
2886
|
-
import { jsx as
|
|
2840
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2887
2841
|
var Inline = ({
|
|
2888
2842
|
space = 0,
|
|
2889
2843
|
alignX,
|
|
@@ -2892,7 +2846,7 @@ var Inline = ({
|
|
|
2892
2846
|
...props
|
|
2893
2847
|
}) => {
|
|
2894
2848
|
var _a, _b, _c, _d;
|
|
2895
|
-
return /* @__PURE__ */
|
|
2849
|
+
return /* @__PURE__ */ jsx61(
|
|
2896
2850
|
"div",
|
|
2897
2851
|
{
|
|
2898
2852
|
...props,
|
|
@@ -2919,9 +2873,9 @@ import { useClassNames as useClassNames37 } from "@marigold/system";
|
|
|
2919
2873
|
// src/DateField/DateSegment.tsx
|
|
2920
2874
|
import { DateSegment } from "react-aria-components";
|
|
2921
2875
|
import { cn as cn38 } from "@marigold/system";
|
|
2922
|
-
import { Fragment as Fragment4, jsx as
|
|
2876
|
+
import { Fragment as Fragment4, jsx as jsx62, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2923
2877
|
var _DateSegment = ({ segment, ...props }) => {
|
|
2924
|
-
return /* @__PURE__ */
|
|
2878
|
+
return /* @__PURE__ */ jsx62(
|
|
2925
2879
|
DateSegment,
|
|
2926
2880
|
{
|
|
2927
2881
|
...props,
|
|
@@ -2930,7 +2884,7 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2930
2884
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
2931
2885
|
},
|
|
2932
2886
|
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs19(Fragment4, { children: [
|
|
2933
|
-
/* @__PURE__ */
|
|
2887
|
+
/* @__PURE__ */ jsx62(
|
|
2934
2888
|
"span",
|
|
2935
2889
|
{
|
|
2936
2890
|
"aria-hidden": "true",
|
|
@@ -2941,24 +2895,24 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2941
2895
|
children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
|
|
2942
2896
|
}
|
|
2943
2897
|
),
|
|
2944
|
-
/* @__PURE__ */
|
|
2898
|
+
/* @__PURE__ */ jsx62("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
|
|
2945
2899
|
] })
|
|
2946
2900
|
}
|
|
2947
2901
|
);
|
|
2948
2902
|
};
|
|
2949
2903
|
|
|
2950
2904
|
// src/DateField/DateInput.tsx
|
|
2951
|
-
import { jsx as
|
|
2905
|
+
import { jsx as jsx63, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2952
2906
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2953
2907
|
const classNames3 = useClassNames37({ component: "DateField", variant, size: size2 });
|
|
2954
2908
|
return /* @__PURE__ */ jsxs20(Group, { className: classNames3.field, children: [
|
|
2955
|
-
/* @__PURE__ */
|
|
2909
|
+
/* @__PURE__ */ jsx63(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx63(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2956
2910
|
action ? action : null
|
|
2957
2911
|
] });
|
|
2958
2912
|
};
|
|
2959
2913
|
|
|
2960
2914
|
// src/DateField/DateField.tsx
|
|
2961
|
-
import { jsx as
|
|
2915
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2962
2916
|
var _DateField = forwardRef20(
|
|
2963
2917
|
({
|
|
2964
2918
|
variant,
|
|
@@ -2977,7 +2931,7 @@ var _DateField = forwardRef20(
|
|
|
2977
2931
|
isRequired: required,
|
|
2978
2932
|
...rest
|
|
2979
2933
|
};
|
|
2980
|
-
return /* @__PURE__ */
|
|
2934
|
+
return /* @__PURE__ */ jsx64(
|
|
2981
2935
|
FieldBase,
|
|
2982
2936
|
{
|
|
2983
2937
|
as: DateField,
|
|
@@ -2985,7 +2939,7 @@ var _DateField = forwardRef20(
|
|
|
2985
2939
|
size: size2,
|
|
2986
2940
|
ref,
|
|
2987
2941
|
...props,
|
|
2988
|
-
children: /* @__PURE__ */
|
|
2942
|
+
children: /* @__PURE__ */ jsx64(_DateInput, { action })
|
|
2989
2943
|
}
|
|
2990
2944
|
);
|
|
2991
2945
|
}
|
|
@@ -3010,14 +2964,14 @@ import { cn as cn39, useClassNames as useClassNames39 } from "@marigold/system";
|
|
|
3010
2964
|
|
|
3011
2965
|
// src/Calendar/CalendarGridHeader.tsx
|
|
3012
2966
|
import { startOfWeek, today } from "@internationalized/date";
|
|
3013
|
-
import { useContext as
|
|
2967
|
+
import { useContext as useContext10, useMemo as useMemo2 } from "react";
|
|
3014
2968
|
import { CalendarStateContext } from "react-aria-components";
|
|
3015
2969
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
3016
2970
|
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
3017
2971
|
import { useClassNames as useClassNames38 } from "@marigold/system";
|
|
3018
|
-
import { jsx as
|
|
2972
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
3019
2973
|
function CalendarGridHeader(props) {
|
|
3020
|
-
const state =
|
|
2974
|
+
const state = useContext10(CalendarStateContext);
|
|
3021
2975
|
const { headerProps } = useCalendarGrid(props, state);
|
|
3022
2976
|
const { locale } = useLocale();
|
|
3023
2977
|
const dayFormatter = useDateFormatter({
|
|
@@ -3033,16 +2987,16 @@ function CalendarGridHeader(props) {
|
|
|
3033
2987
|
});
|
|
3034
2988
|
}, [locale, state.timeZone, dayFormatter]);
|
|
3035
2989
|
const classNames3 = useClassNames38({ component: "Calendar" });
|
|
3036
|
-
return /* @__PURE__ */
|
|
2990
|
+
return /* @__PURE__ */ jsx65("thead", { ...headerProps, children: /* @__PURE__ */ jsx65("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx65("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
|
|
3037
2991
|
}
|
|
3038
2992
|
|
|
3039
2993
|
// src/Calendar/CalendarGrid.tsx
|
|
3040
|
-
import { jsx as
|
|
2994
|
+
import { jsx as jsx66, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3041
2995
|
var _CalendarGrid = () => {
|
|
3042
2996
|
const classNames3 = useClassNames39({ component: "Calendar" });
|
|
3043
2997
|
return /* @__PURE__ */ jsxs21(CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
3044
|
-
/* @__PURE__ */
|
|
3045
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ jsx66(CalendarGridHeader, {}),
|
|
2999
|
+
/* @__PURE__ */ jsx66(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx66(
|
|
3046
3000
|
CalendarCell,
|
|
3047
3001
|
{
|
|
3048
3002
|
date,
|
|
@@ -3056,14 +3010,14 @@ var _CalendarGrid = () => {
|
|
|
3056
3010
|
};
|
|
3057
3011
|
|
|
3058
3012
|
// src/Calendar/CalendarListBox.tsx
|
|
3059
|
-
import { useContext as
|
|
3013
|
+
import { useContext as useContext12 } from "react";
|
|
3060
3014
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
3061
3015
|
import { cn as cn40 } from "@marigold/system";
|
|
3062
3016
|
|
|
3063
3017
|
// src/Calendar/Context.tsx
|
|
3064
|
-
import { createContext as
|
|
3065
|
-
var CalendarContext =
|
|
3066
|
-
var useCalendarContext = () =>
|
|
3018
|
+
import { createContext as createContext6, useContext as useContext11 } from "react";
|
|
3019
|
+
var CalendarContext = createContext6({});
|
|
3020
|
+
var useCalendarContext = () => useContext11(CalendarContext);
|
|
3067
3021
|
|
|
3068
3022
|
// src/Calendar/useFormattedMonths.tsx
|
|
3069
3023
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -3082,13 +3036,13 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
3082
3036
|
}
|
|
3083
3037
|
|
|
3084
3038
|
// src/Calendar/CalendarListBox.tsx
|
|
3085
|
-
import { jsx as
|
|
3039
|
+
import { jsx as jsx67, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3086
3040
|
function CalendarListBox({
|
|
3087
3041
|
type,
|
|
3088
3042
|
isDisabled,
|
|
3089
3043
|
setSelectedDropdown
|
|
3090
3044
|
}) {
|
|
3091
|
-
const state =
|
|
3045
|
+
const state = useContext12(CalendarStateContext2);
|
|
3092
3046
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
3093
3047
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
3094
3048
|
const { classNames: classNames3 } = useCalendarContext();
|
|
@@ -3101,7 +3055,7 @@ function CalendarListBox({
|
|
|
3101
3055
|
"data-testid": type,
|
|
3102
3056
|
children: [
|
|
3103
3057
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
3104
|
-
/* @__PURE__ */
|
|
3058
|
+
/* @__PURE__ */ jsx67(ChevronDown, {})
|
|
3105
3059
|
]
|
|
3106
3060
|
}
|
|
3107
3061
|
);
|
|
@@ -3109,7 +3063,7 @@ function CalendarListBox({
|
|
|
3109
3063
|
|
|
3110
3064
|
// src/Calendar/MonthControls.tsx
|
|
3111
3065
|
import { cn as cn41, useClassNames as useClassNames40 } from "@marigold/system";
|
|
3112
|
-
import { jsx as
|
|
3066
|
+
import { jsx as jsx68, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3113
3067
|
function MonthControls() {
|
|
3114
3068
|
const classNames3 = useClassNames40({ component: "Calendar" });
|
|
3115
3069
|
return /* @__PURE__ */ jsxs23(
|
|
@@ -3120,22 +3074,22 @@ function MonthControls() {
|
|
|
3120
3074
|
classNames3.calendarControllers
|
|
3121
3075
|
),
|
|
3122
3076
|
children: [
|
|
3123
|
-
/* @__PURE__ */
|
|
3077
|
+
/* @__PURE__ */ jsx68(
|
|
3124
3078
|
IconButton,
|
|
3125
3079
|
{
|
|
3126
3080
|
className: cn41("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
3127
3081
|
variant: "navigation",
|
|
3128
3082
|
slot: "previous",
|
|
3129
|
-
children: /* @__PURE__ */
|
|
3083
|
+
children: /* @__PURE__ */ jsx68(ChevronLeft, {})
|
|
3130
3084
|
}
|
|
3131
3085
|
),
|
|
3132
|
-
/* @__PURE__ */
|
|
3086
|
+
/* @__PURE__ */ jsx68(
|
|
3133
3087
|
IconButton,
|
|
3134
3088
|
{
|
|
3135
3089
|
className: cn41("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
3136
3090
|
variant: "navigation",
|
|
3137
3091
|
slot: "next",
|
|
3138
|
-
children: /* @__PURE__ */
|
|
3092
|
+
children: /* @__PURE__ */ jsx68(ChevronRight, {})
|
|
3139
3093
|
}
|
|
3140
3094
|
)
|
|
3141
3095
|
]
|
|
@@ -3145,35 +3099,32 @@ function MonthControls() {
|
|
|
3145
3099
|
var MonthControls_default = MonthControls;
|
|
3146
3100
|
|
|
3147
3101
|
// src/Calendar/MonthListBox.tsx
|
|
3148
|
-
import { useContext as
|
|
3102
|
+
import { useContext as useContext13 } from "react";
|
|
3149
3103
|
import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
|
|
3150
3104
|
import { Button as Button7 } from "react-aria-components";
|
|
3151
3105
|
import { cn as cn42 } from "@marigold/system";
|
|
3152
|
-
import { jsx as
|
|
3106
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
3153
3107
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
3154
|
-
const state =
|
|
3108
|
+
const state = useContext13(CalendarStateContext3);
|
|
3155
3109
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
let date = state.focusedDate.set({ month: value });
|
|
3110
|
+
const onPress = (index2) => {
|
|
3111
|
+
const date = state.focusedDate.set({ month: Number(index2) + 1 });
|
|
3159
3112
|
state.setFocusedDate(date);
|
|
3113
|
+
setSelectedDropdown(void 0);
|
|
3160
3114
|
};
|
|
3161
3115
|
const { classNames: classNames3 } = useCalendarContext();
|
|
3162
|
-
return /* @__PURE__ */
|
|
3116
|
+
return /* @__PURE__ */ jsx69(
|
|
3163
3117
|
"ul",
|
|
3164
3118
|
{
|
|
3165
3119
|
"data-testid": "monthOptions",
|
|
3166
3120
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 p-2",
|
|
3167
3121
|
children: months.map((month, index2) => {
|
|
3168
3122
|
const isSelected = index2 === state.focusedDate.month - 1;
|
|
3169
|
-
return /* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ jsx69("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx69(
|
|
3170
3124
|
Button7,
|
|
3171
3125
|
{
|
|
3172
3126
|
slot: "previous",
|
|
3173
|
-
onPress: () =>
|
|
3174
|
-
onChange2(index2);
|
|
3175
|
-
setSelectedDropdown(void 0);
|
|
3176
|
-
},
|
|
3127
|
+
onPress: () => onPress(index2),
|
|
3177
3128
|
"aria-current": isSelected,
|
|
3178
3129
|
className: cn42(
|
|
3179
3130
|
classNames3.calendarListboxButton,
|
|
@@ -3191,16 +3142,16 @@ var MonthListBox_default = MonthListBox;
|
|
|
3191
3142
|
|
|
3192
3143
|
// src/Calendar/YearListBox.tsx
|
|
3193
3144
|
import {
|
|
3194
|
-
useContext as
|
|
3145
|
+
useContext as useContext14,
|
|
3195
3146
|
useEffect,
|
|
3196
3147
|
useRef as useRef2
|
|
3197
3148
|
} from "react";
|
|
3198
3149
|
import { Button as Button8, CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
3199
3150
|
import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
|
|
3200
3151
|
import { cn as cn43 } from "@marigold/system";
|
|
3201
|
-
import { jsx as
|
|
3152
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
3202
3153
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
3203
|
-
const state =
|
|
3154
|
+
const state = useContext14(CalendarStateContext4);
|
|
3204
3155
|
const { classNames: classNames3 } = useCalendarContext();
|
|
3205
3156
|
const years = [];
|
|
3206
3157
|
let formatter = useDateFormatter3({
|
|
@@ -3224,24 +3175,24 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3224
3175
|
});
|
|
3225
3176
|
}
|
|
3226
3177
|
}, [state.focusedDate]);
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3178
|
+
const onChange2 = (key) => {
|
|
3179
|
+
const index2 = Number(key);
|
|
3180
|
+
const date = years[index2].value;
|
|
3230
3181
|
state.setFocusedDate(date);
|
|
3231
3182
|
};
|
|
3232
|
-
return /* @__PURE__ */
|
|
3183
|
+
return /* @__PURE__ */ jsx70(
|
|
3233
3184
|
"ul",
|
|
3234
3185
|
{
|
|
3235
3186
|
"data-testid": "yearOptions",
|
|
3236
3187
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
3237
3188
|
children: years.map((year, index2) => {
|
|
3238
3189
|
const isSelected = +year.formatted === state.focusedDate.year;
|
|
3239
|
-
return /* @__PURE__ */
|
|
3190
|
+
return /* @__PURE__ */ jsx70("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx70(
|
|
3240
3191
|
"div",
|
|
3241
3192
|
{
|
|
3242
3193
|
ref: isSelected ? activeButtonRef : null,
|
|
3243
3194
|
className: "flex size-full justify-center",
|
|
3244
|
-
children: /* @__PURE__ */
|
|
3195
|
+
children: /* @__PURE__ */ jsx70(
|
|
3245
3196
|
Button8,
|
|
3246
3197
|
{
|
|
3247
3198
|
slot: "previous",
|
|
@@ -3268,7 +3219,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3268
3219
|
var YearListBox_default = YearListBox;
|
|
3269
3220
|
|
|
3270
3221
|
// src/Calendar/Calendar.tsx
|
|
3271
|
-
import { jsx as
|
|
3222
|
+
import { jsx as jsx71, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3272
3223
|
var _Calendar = ({
|
|
3273
3224
|
disabled,
|
|
3274
3225
|
readOnly,
|
|
@@ -3287,10 +3238,10 @@ var _Calendar = ({
|
|
|
3287
3238
|
const classNames3 = useClassNames41({ component: "Calendar", size: size2, variant });
|
|
3288
3239
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
3289
3240
|
const ViewMap = {
|
|
3290
|
-
month: /* @__PURE__ */
|
|
3291
|
-
year: /* @__PURE__ */
|
|
3241
|
+
month: /* @__PURE__ */ jsx71(MonthListBox_default, { setSelectedDropdown }),
|
|
3242
|
+
year: /* @__PURE__ */ jsx71(YearListBox_default, { setSelectedDropdown })
|
|
3292
3243
|
};
|
|
3293
|
-
return /* @__PURE__ */
|
|
3244
|
+
return /* @__PURE__ */ jsx71(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs24(
|
|
3294
3245
|
Calendar,
|
|
3295
3246
|
{
|
|
3296
3247
|
className: cn44(
|
|
@@ -3300,7 +3251,7 @@ var _Calendar = ({
|
|
|
3300
3251
|
),
|
|
3301
3252
|
...props,
|
|
3302
3253
|
children: [
|
|
3303
|
-
/* @__PURE__ */
|
|
3254
|
+
/* @__PURE__ */ jsx71(
|
|
3304
3255
|
"div",
|
|
3305
3256
|
{
|
|
3306
3257
|
className: cn44(
|
|
@@ -3319,7 +3270,7 @@ var _Calendar = ({
|
|
|
3319
3270
|
),
|
|
3320
3271
|
children: [
|
|
3321
3272
|
/* @__PURE__ */ jsxs24("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
3322
|
-
/* @__PURE__ */
|
|
3273
|
+
/* @__PURE__ */ jsx71("div", { className: "flex w-fit gap-4", children: ["month", "year"].map((dateType) => /* @__PURE__ */ jsx71(
|
|
3323
3274
|
CalendarListBox,
|
|
3324
3275
|
{
|
|
3325
3276
|
type: dateType,
|
|
@@ -3328,9 +3279,9 @@ var _Calendar = ({
|
|
|
3328
3279
|
},
|
|
3329
3280
|
dateType
|
|
3330
3281
|
)) }),
|
|
3331
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ jsx71(MonthControls_default, {})
|
|
3332
3283
|
] }),
|
|
3333
|
-
/* @__PURE__ */
|
|
3284
|
+
/* @__PURE__ */ jsx71(_CalendarGrid, {})
|
|
3334
3285
|
]
|
|
3335
3286
|
}
|
|
3336
3287
|
)
|
|
@@ -3343,7 +3294,7 @@ var _Calendar = ({
|
|
|
3343
3294
|
import React6 from "react";
|
|
3344
3295
|
import { DatePicker, Dialog as Dialog4 } from "react-aria-components";
|
|
3345
3296
|
import { useClassNames as useClassNames42 } from "@marigold/system";
|
|
3346
|
-
import { jsx as
|
|
3297
|
+
import { jsx as jsx72, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3347
3298
|
var _DatePicker = React6.forwardRef(
|
|
3348
3299
|
({
|
|
3349
3300
|
dateUnavailable,
|
|
@@ -3381,10 +3332,10 @@ var _DatePicker = React6.forwardRef(
|
|
|
3381
3332
|
...props,
|
|
3382
3333
|
ref,
|
|
3383
3334
|
children: [
|
|
3384
|
-
/* @__PURE__ */
|
|
3335
|
+
/* @__PURE__ */ jsx72(
|
|
3385
3336
|
_DateInput,
|
|
3386
3337
|
{
|
|
3387
|
-
action: /* @__PURE__ */
|
|
3338
|
+
action: /* @__PURE__ */ jsx72(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx72(
|
|
3388
3339
|
"svg",
|
|
3389
3340
|
{
|
|
3390
3341
|
"data-testid": "action",
|
|
@@ -3392,12 +3343,12 @@ var _DatePicker = React6.forwardRef(
|
|
|
3392
3343
|
width: 24,
|
|
3393
3344
|
height: 24,
|
|
3394
3345
|
fill: "currentColor",
|
|
3395
|
-
children: /* @__PURE__ */
|
|
3346
|
+
children: /* @__PURE__ */ jsx72("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
|
|
3396
3347
|
}
|
|
3397
3348
|
) })
|
|
3398
3349
|
}
|
|
3399
3350
|
),
|
|
3400
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ jsx72(_Popover, { children: /* @__PURE__ */ jsx72(Dialog4, { children: /* @__PURE__ */ jsx72(_Calendar, { disabled }) }) })
|
|
3401
3352
|
]
|
|
3402
3353
|
}
|
|
3403
3354
|
);
|
|
@@ -3411,8 +3362,8 @@ import {
|
|
|
3411
3362
|
paddingSpaceX as paddingSpaceX2,
|
|
3412
3363
|
paddingSpaceY as paddingSpaceY2
|
|
3413
3364
|
} from "@marigold/system";
|
|
3414
|
-
import { jsx as
|
|
3415
|
-
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */
|
|
3365
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
3366
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx73(
|
|
3416
3367
|
"div",
|
|
3417
3368
|
{
|
|
3418
3369
|
className: cn45(
|
|
@@ -3428,7 +3379,7 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx74(
|
|
|
3428
3379
|
import { forwardRef as forwardRef21 } from "react";
|
|
3429
3380
|
import { Link } from "react-aria-components";
|
|
3430
3381
|
import { useClassNames as useClassNames43 } from "@marigold/system";
|
|
3431
|
-
import { jsx as
|
|
3382
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3432
3383
|
var _Link = forwardRef21(
|
|
3433
3384
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
3434
3385
|
const classNames3 = useClassNames43({
|
|
@@ -3436,7 +3387,7 @@ var _Link = forwardRef21(
|
|
|
3436
3387
|
variant,
|
|
3437
3388
|
size: size2
|
|
3438
3389
|
});
|
|
3439
|
-
return /* @__PURE__ */
|
|
3390
|
+
return /* @__PURE__ */ jsx74(Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
|
|
3440
3391
|
}
|
|
3441
3392
|
);
|
|
3442
3393
|
|
|
@@ -3444,19 +3395,19 @@ var _Link = forwardRef21(
|
|
|
3444
3395
|
import { useClassNames as useClassNames44 } from "@marigold/system";
|
|
3445
3396
|
|
|
3446
3397
|
// src/List/Context.ts
|
|
3447
|
-
import { createContext as
|
|
3448
|
-
var ListContext =
|
|
3449
|
-
var useListContext = () =>
|
|
3398
|
+
import { createContext as createContext7, useContext as useContext15 } from "react";
|
|
3399
|
+
var ListContext = createContext7({});
|
|
3400
|
+
var useListContext = () => useContext15(ListContext);
|
|
3450
3401
|
|
|
3451
3402
|
// src/List/ListItem.tsx
|
|
3452
|
-
import { jsx as
|
|
3403
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
3453
3404
|
var ListItem = ({ children, ...props }) => {
|
|
3454
3405
|
const { classNames: classNames3 } = useListContext();
|
|
3455
|
-
return /* @__PURE__ */
|
|
3406
|
+
return /* @__PURE__ */ jsx75("li", { ...props, className: classNames3, children });
|
|
3456
3407
|
};
|
|
3457
3408
|
|
|
3458
3409
|
// src/List/List.tsx
|
|
3459
|
-
import { jsx as
|
|
3410
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3460
3411
|
var List = ({
|
|
3461
3412
|
as = "ul",
|
|
3462
3413
|
children,
|
|
@@ -3466,7 +3417,7 @@ var List = ({
|
|
|
3466
3417
|
}) => {
|
|
3467
3418
|
const Component2 = as;
|
|
3468
3419
|
const classNames3 = useClassNames44({ component: "List", variant, size: size2 });
|
|
3469
|
-
return /* @__PURE__ */
|
|
3420
|
+
return /* @__PURE__ */ jsx76(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx76(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
3470
3421
|
};
|
|
3471
3422
|
List.Item = ListItem;
|
|
3472
3423
|
|
|
@@ -3477,26 +3428,26 @@ import { useClassNames as useClassNames47 } from "@marigold/system";
|
|
|
3477
3428
|
// src/Menu/MenuItem.tsx
|
|
3478
3429
|
import { MenuItem } from "react-aria-components";
|
|
3479
3430
|
import { useClassNames as useClassNames45 } from "@marigold/system";
|
|
3480
|
-
import { jsx as
|
|
3431
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3481
3432
|
var _MenuItem = ({ children, ...props }) => {
|
|
3482
3433
|
const classNames3 = useClassNames45({ component: "Menu" });
|
|
3483
|
-
return /* @__PURE__ */
|
|
3434
|
+
return /* @__PURE__ */ jsx77(MenuItem, { ...props, className: classNames3.item, children });
|
|
3484
3435
|
};
|
|
3485
3436
|
|
|
3486
3437
|
// src/Menu/MenuSection.tsx
|
|
3487
3438
|
import { MenuSection } from "react-aria-components";
|
|
3488
3439
|
import { useClassNames as useClassNames46 } from "@marigold/system";
|
|
3489
|
-
import { jsx as
|
|
3440
|
+
import { jsx as jsx78, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3490
3441
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
3491
3442
|
const className = useClassNames46({ component: "Menu" });
|
|
3492
3443
|
return /* @__PURE__ */ jsxs26(MenuSection, { ...props, children: [
|
|
3493
|
-
/* @__PURE__ */
|
|
3444
|
+
/* @__PURE__ */ jsx78(_Header, { className: className.section, children: title }),
|
|
3494
3445
|
children
|
|
3495
3446
|
] });
|
|
3496
3447
|
};
|
|
3497
3448
|
|
|
3498
3449
|
// src/Menu/Menu.tsx
|
|
3499
|
-
import { jsx as
|
|
3450
|
+
import { jsx as jsx79, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3500
3451
|
var _Menu = ({
|
|
3501
3452
|
children,
|
|
3502
3453
|
label,
|
|
@@ -3510,7 +3461,7 @@ var _Menu = ({
|
|
|
3510
3461
|
}) => {
|
|
3511
3462
|
const classNames3 = useClassNames47({ component: "Menu", variant, size: size2 });
|
|
3512
3463
|
return /* @__PURE__ */ jsxs27(MenuTrigger, { ...props, children: [
|
|
3513
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsx79(
|
|
3514
3465
|
Button9,
|
|
3515
3466
|
{
|
|
3516
3467
|
className: classNames3.button,
|
|
@@ -3519,25 +3470,19 @@ var _Menu = ({
|
|
|
3519
3470
|
children: label
|
|
3520
3471
|
}
|
|
3521
3472
|
),
|
|
3522
|
-
/* @__PURE__ */
|
|
3473
|
+
/* @__PURE__ */ jsx79(_Popover, { open, placement, children: /* @__PURE__ */ jsx79(Menu, { ...props, className: classNames3.container, children }) })
|
|
3523
3474
|
] });
|
|
3524
3475
|
};
|
|
3525
3476
|
_Menu.Item = _MenuItem;
|
|
3526
3477
|
_Menu.Section = _MenuSection;
|
|
3527
3478
|
|
|
3528
3479
|
// src/Menu/ActionMenu.tsx
|
|
3529
|
-
import {
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
disabled,
|
|
3536
|
-
...props
|
|
3537
|
-
}) => {
|
|
3538
|
-
const classNames3 = useClassNames48({ component: "Menu", variant, size: size2 });
|
|
3539
|
-
return /* @__PURE__ */ jsxs28(MenuTrigger2, { children: [
|
|
3540
|
-
/* @__PURE__ */ jsx81(Button10, { className: classNames3.button, isDisabled: disabled, children: /* @__PURE__ */ jsxs28(
|
|
3480
|
+
import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3481
|
+
var ActionMenu = ({ children, ...props }) => /* @__PURE__ */ jsx80(
|
|
3482
|
+
_Menu,
|
|
3483
|
+
{
|
|
3484
|
+
...props,
|
|
3485
|
+
label: /* @__PURE__ */ jsxs28(
|
|
3541
3486
|
"svg",
|
|
3542
3487
|
{
|
|
3543
3488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3548,54 +3493,56 @@ var ActionMenu = ({
|
|
|
3548
3493
|
strokeLinecap: "round",
|
|
3549
3494
|
strokeLinejoin: "round",
|
|
3550
3495
|
children: [
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
/* @__PURE__ */
|
|
3553
|
-
/* @__PURE__ */
|
|
3496
|
+
/* @__PURE__ */ jsx80("circle", { cx: 12, cy: 12, r: 1 }),
|
|
3497
|
+
/* @__PURE__ */ jsx80("circle", { cx: 12, cy: 5, r: 1 }),
|
|
3498
|
+
/* @__PURE__ */ jsx80("circle", { cx: 12, cy: 19, r: 1 })
|
|
3554
3499
|
]
|
|
3555
3500
|
}
|
|
3556
|
-
)
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3501
|
+
),
|
|
3502
|
+
children
|
|
3503
|
+
}
|
|
3504
|
+
);
|
|
3505
|
+
ActionMenu.Item = _Menu.Item;
|
|
3506
|
+
ActionMenu.Section = _Menu.Section;
|
|
3560
3507
|
|
|
3561
3508
|
// src/SectionMessage/SectionMessage.tsx
|
|
3562
3509
|
import { useRef as useRef3, useState as useState2 } from "react";
|
|
3563
3510
|
import { useButton } from "@react-aria/button";
|
|
3564
|
-
import { cn as cn48, useClassNames as
|
|
3511
|
+
import { cn as cn48, useClassNames as useClassNames48 } from "@marigold/system";
|
|
3565
3512
|
|
|
3566
3513
|
// src/SectionMessage/Context.tsx
|
|
3567
|
-
import { createContext as
|
|
3568
|
-
var SectionMessageContext =
|
|
3569
|
-
var useSectionMessageContext = () =>
|
|
3514
|
+
import { createContext as createContext8, useContext as useContext16 } from "react";
|
|
3515
|
+
var SectionMessageContext = createContext8({});
|
|
3516
|
+
var useSectionMessageContext = () => useContext16(SectionMessageContext);
|
|
3570
3517
|
|
|
3571
3518
|
// src/SectionMessage/SectionMessageContent.tsx
|
|
3572
3519
|
import { cn as cn46 } from "@marigold/system";
|
|
3573
|
-
import { jsx as
|
|
3520
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3574
3521
|
var SectionMessageContent = ({
|
|
3575
3522
|
children
|
|
3576
3523
|
}) => {
|
|
3577
3524
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3578
|
-
return /* @__PURE__ */
|
|
3525
|
+
return /* @__PURE__ */ jsx81("div", { className: cn46("[grid-area:content]", classNames3.content), children });
|
|
3579
3526
|
};
|
|
3580
3527
|
|
|
3581
3528
|
// src/SectionMessage/SectionMessageTitle.tsx
|
|
3582
3529
|
import { cn as cn47 } from "@marigold/system";
|
|
3583
|
-
import { jsx as
|
|
3530
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3584
3531
|
var SectionMessageTitle = ({ children }) => {
|
|
3585
3532
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3586
|
-
return /* @__PURE__ */
|
|
3533
|
+
return /* @__PURE__ */ jsx82("div", { className: cn47("[grid-area:title]", classNames3.title), children });
|
|
3587
3534
|
};
|
|
3588
3535
|
|
|
3589
3536
|
// src/SectionMessage/SectionMessage.tsx
|
|
3590
|
-
import { jsx as
|
|
3537
|
+
import { jsx as jsx83, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3591
3538
|
var icons2 = {
|
|
3592
|
-
success: () => /* @__PURE__ */
|
|
3539
|
+
success: () => /* @__PURE__ */ jsx83(
|
|
3593
3540
|
"svg",
|
|
3594
3541
|
{
|
|
3595
3542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3596
3543
|
viewBox: "0 0 24 24",
|
|
3597
3544
|
fill: "currentColor",
|
|
3598
|
-
children: /* @__PURE__ */
|
|
3545
|
+
children: /* @__PURE__ */ jsx83(
|
|
3599
3546
|
"path",
|
|
3600
3547
|
{
|
|
3601
3548
|
fillRule: "evenodd",
|
|
@@ -3605,13 +3552,13 @@ var icons2 = {
|
|
|
3605
3552
|
)
|
|
3606
3553
|
}
|
|
3607
3554
|
),
|
|
3608
|
-
info: () => /* @__PURE__ */
|
|
3555
|
+
info: () => /* @__PURE__ */ jsx83(
|
|
3609
3556
|
"svg",
|
|
3610
3557
|
{
|
|
3611
3558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3612
3559
|
viewBox: "0 0 24 24",
|
|
3613
3560
|
fill: "currentColor",
|
|
3614
|
-
children: /* @__PURE__ */
|
|
3561
|
+
children: /* @__PURE__ */ jsx83(
|
|
3615
3562
|
"path",
|
|
3616
3563
|
{
|
|
3617
3564
|
fillRule: "evenodd",
|
|
@@ -3621,13 +3568,13 @@ var icons2 = {
|
|
|
3621
3568
|
)
|
|
3622
3569
|
}
|
|
3623
3570
|
),
|
|
3624
|
-
warning: () => /* @__PURE__ */
|
|
3571
|
+
warning: () => /* @__PURE__ */ jsx83(
|
|
3625
3572
|
"svg",
|
|
3626
3573
|
{
|
|
3627
3574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3628
3575
|
viewBox: "0 0 24 24",
|
|
3629
3576
|
fill: "currentColor",
|
|
3630
|
-
children: /* @__PURE__ */
|
|
3577
|
+
children: /* @__PURE__ */ jsx83(
|
|
3631
3578
|
"path",
|
|
3632
3579
|
{
|
|
3633
3580
|
fillRule: "evenodd",
|
|
@@ -3637,13 +3584,13 @@ var icons2 = {
|
|
|
3637
3584
|
)
|
|
3638
3585
|
}
|
|
3639
3586
|
),
|
|
3640
|
-
error: () => /* @__PURE__ */
|
|
3587
|
+
error: () => /* @__PURE__ */ jsx83(
|
|
3641
3588
|
"svg",
|
|
3642
3589
|
{
|
|
3643
3590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3644
3591
|
viewBox: "0 0 24 24",
|
|
3645
3592
|
fill: "currentColor",
|
|
3646
|
-
children: /* @__PURE__ */
|
|
3593
|
+
children: /* @__PURE__ */ jsx83(
|
|
3647
3594
|
"path",
|
|
3648
3595
|
{
|
|
3649
3596
|
fillRule: "evenodd",
|
|
@@ -3664,7 +3611,7 @@ var SectionMessage = ({
|
|
|
3664
3611
|
...props
|
|
3665
3612
|
}) => {
|
|
3666
3613
|
const buttonRef = useRef3(null);
|
|
3667
|
-
const classNames3 =
|
|
3614
|
+
const classNames3 = useClassNames48({
|
|
3668
3615
|
component: "SectionMessage",
|
|
3669
3616
|
variant,
|
|
3670
3617
|
size: size2
|
|
@@ -3680,15 +3627,15 @@ var SectionMessage = ({
|
|
|
3680
3627
|
}
|
|
3681
3628
|
};
|
|
3682
3629
|
if (!isCurrentlyVisible) return null;
|
|
3683
|
-
return /* @__PURE__ */
|
|
3630
|
+
return /* @__PURE__ */ jsx83(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs29(
|
|
3684
3631
|
"div",
|
|
3685
3632
|
{
|
|
3686
3633
|
role: variant === "error" ? "alert" : void 0,
|
|
3687
3634
|
...props,
|
|
3688
3635
|
className: cn48("grid auto-rows-min", classNames3.container),
|
|
3689
3636
|
children: [
|
|
3690
|
-
/* @__PURE__ */
|
|
3691
|
-
closeButton && /* @__PURE__ */
|
|
3637
|
+
/* @__PURE__ */ jsx83("div", { className: cn48("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx83(Icon4, {}) }),
|
|
3638
|
+
closeButton && /* @__PURE__ */ jsx83(
|
|
3692
3639
|
CloseButton,
|
|
3693
3640
|
{
|
|
3694
3641
|
...buttonProps,
|
|
@@ -3708,7 +3655,7 @@ SectionMessage.Content = SectionMessageContent;
|
|
|
3708
3655
|
|
|
3709
3656
|
// src/Multiselect/Multiselect.tsx
|
|
3710
3657
|
import {
|
|
3711
|
-
Button as
|
|
3658
|
+
Button as Button10,
|
|
3712
3659
|
ButtonContext,
|
|
3713
3660
|
FieldErrorContext as FieldErrorContext2,
|
|
3714
3661
|
InputContext,
|
|
@@ -3716,7 +3663,7 @@ import {
|
|
|
3716
3663
|
Input as _Input2
|
|
3717
3664
|
} from "react-aria-components";
|
|
3718
3665
|
|
|
3719
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3666
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
3720
3667
|
function _typeof(o) {
|
|
3721
3668
|
"@babel/helpers - typeof";
|
|
3722
3669
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -3726,7 +3673,7 @@ function _typeof(o) {
|
|
|
3726
3673
|
}, _typeof(o);
|
|
3727
3674
|
}
|
|
3728
3675
|
|
|
3729
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3676
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3730
3677
|
function toPrimitive(t, r) {
|
|
3731
3678
|
if ("object" != _typeof(t) || !t) return t;
|
|
3732
3679
|
var e = t[Symbol.toPrimitive];
|
|
@@ -3738,13 +3685,13 @@ function toPrimitive(t, r) {
|
|
|
3738
3685
|
return ("string" === r ? String : Number)(t);
|
|
3739
3686
|
}
|
|
3740
3687
|
|
|
3741
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3688
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
3742
3689
|
function toPropertyKey(t) {
|
|
3743
3690
|
var i = toPrimitive(t, "string");
|
|
3744
3691
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
3745
3692
|
}
|
|
3746
3693
|
|
|
3747
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3694
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3748
3695
|
function _defineProperty(e, r, t) {
|
|
3749
3696
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3750
3697
|
value: t,
|
|
@@ -3754,7 +3701,7 @@ function _defineProperty(e, r, t) {
|
|
|
3754
3701
|
}) : e[r] = t, e;
|
|
3755
3702
|
}
|
|
3756
3703
|
|
|
3757
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3704
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3758
3705
|
function ownKeys(e, r) {
|
|
3759
3706
|
var t = Object.keys(e);
|
|
3760
3707
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3777,12 +3724,12 @@ function _objectSpread2(e) {
|
|
|
3777
3724
|
return e;
|
|
3778
3725
|
}
|
|
3779
3726
|
|
|
3780
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3727
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
3781
3728
|
function _arrayWithHoles(r) {
|
|
3782
3729
|
if (Array.isArray(r)) return r;
|
|
3783
3730
|
}
|
|
3784
3731
|
|
|
3785
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3732
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
3786
3733
|
function _iterableToArrayLimit(r, l) {
|
|
3787
3734
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3788
3735
|
if (null != t) {
|
|
@@ -3805,14 +3752,14 @@ function _iterableToArrayLimit(r, l) {
|
|
|
3805
3752
|
}
|
|
3806
3753
|
}
|
|
3807
3754
|
|
|
3808
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3755
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
3809
3756
|
function _arrayLikeToArray(r, a) {
|
|
3810
3757
|
(null == a || a > r.length) && (a = r.length);
|
|
3811
3758
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3812
3759
|
return n;
|
|
3813
3760
|
}
|
|
3814
3761
|
|
|
3815
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3762
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3816
3763
|
function _unsupportedIterableToArray(r, a) {
|
|
3817
3764
|
if (r) {
|
|
3818
3765
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -3821,17 +3768,17 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
3821
3768
|
}
|
|
3822
3769
|
}
|
|
3823
3770
|
|
|
3824
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3771
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
3825
3772
|
function _nonIterableRest() {
|
|
3826
3773
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3827
3774
|
}
|
|
3828
3775
|
|
|
3829
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3776
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
3830
3777
|
function _slicedToArray(r, e) {
|
|
3831
3778
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
3832
3779
|
}
|
|
3833
3780
|
|
|
3834
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3781
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
3835
3782
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3836
3783
|
if (null == r) return {};
|
|
3837
3784
|
var t = {};
|
|
@@ -3842,7 +3789,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
3842
3789
|
return t;
|
|
3843
3790
|
}
|
|
3844
3791
|
|
|
3845
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3792
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
3846
3793
|
function _objectWithoutProperties(e, t) {
|
|
3847
3794
|
if (null == e) return {};
|
|
3848
3795
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -3853,7 +3800,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
3853
3800
|
return i;
|
|
3854
3801
|
}
|
|
3855
3802
|
|
|
3856
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
3803
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3857
3804
|
import { useState as useState3, useCallback } from "react";
|
|
3858
3805
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3859
3806
|
function useStateManager(_ref3) {
|
|
@@ -3900,7 +3847,7 @@ function useStateManager(_ref3) {
|
|
|
3900
3847
|
});
|
|
3901
3848
|
}
|
|
3902
3849
|
|
|
3903
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3850
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3904
3851
|
function _extends() {
|
|
3905
3852
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3906
3853
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3911,16 +3858,16 @@ function _extends() {
|
|
|
3911
3858
|
}, _extends.apply(null, arguments);
|
|
3912
3859
|
}
|
|
3913
3860
|
|
|
3914
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
3861
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/react-select.esm.js
|
|
3915
3862
|
import * as React11 from "react";
|
|
3916
3863
|
import { forwardRef as forwardRef24, useMemo as useMemo5 } from "react";
|
|
3917
3864
|
|
|
3918
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3865
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3919
3866
|
function _classCallCheck(a, n) {
|
|
3920
3867
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3921
3868
|
}
|
|
3922
3869
|
|
|
3923
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3870
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
3924
3871
|
function _defineProperties(e, r) {
|
|
3925
3872
|
for (var t = 0; t < r.length; t++) {
|
|
3926
3873
|
var o = r[t];
|
|
@@ -3933,14 +3880,14 @@ function _createClass(e, r, t) {
|
|
|
3933
3880
|
}), e;
|
|
3934
3881
|
}
|
|
3935
3882
|
|
|
3936
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3883
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
3937
3884
|
function _setPrototypeOf(t, e) {
|
|
3938
3885
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3939
3886
|
return t2.__proto__ = e2, t2;
|
|
3940
3887
|
}, _setPrototypeOf(t, e);
|
|
3941
3888
|
}
|
|
3942
3889
|
|
|
3943
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3890
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
3944
3891
|
function _inherits(t, e) {
|
|
3945
3892
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
3946
3893
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -3954,14 +3901,14 @@ function _inherits(t, e) {
|
|
|
3954
3901
|
}), e && _setPrototypeOf(t, e);
|
|
3955
3902
|
}
|
|
3956
3903
|
|
|
3957
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3904
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
3958
3905
|
function _getPrototypeOf(t) {
|
|
3959
3906
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
3960
3907
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
3961
3908
|
}, _getPrototypeOf(t);
|
|
3962
3909
|
}
|
|
3963
3910
|
|
|
3964
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3911
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
3965
3912
|
function _isNativeReflectConstruct() {
|
|
3966
3913
|
try {
|
|
3967
3914
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -3973,20 +3920,20 @@ function _isNativeReflectConstruct() {
|
|
|
3973
3920
|
})();
|
|
3974
3921
|
}
|
|
3975
3922
|
|
|
3976
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3923
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
3977
3924
|
function _assertThisInitialized(e) {
|
|
3978
3925
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3979
3926
|
return e;
|
|
3980
3927
|
}
|
|
3981
3928
|
|
|
3982
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3929
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
3983
3930
|
function _possibleConstructorReturn(t, e) {
|
|
3984
3931
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
3985
3932
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3986
3933
|
return _assertThisInitialized(t);
|
|
3987
3934
|
}
|
|
3988
3935
|
|
|
3989
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3936
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
3990
3937
|
function _createSuper(t) {
|
|
3991
3938
|
var r = _isNativeReflectConstruct();
|
|
3992
3939
|
return function() {
|
|
@@ -3999,33 +3946,33 @@ function _createSuper(t) {
|
|
|
3999
3946
|
};
|
|
4000
3947
|
}
|
|
4001
3948
|
|
|
4002
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3949
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
4003
3950
|
function _arrayWithoutHoles(r) {
|
|
4004
3951
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
4005
3952
|
}
|
|
4006
3953
|
|
|
4007
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3954
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
4008
3955
|
function _iterableToArray(r) {
|
|
4009
3956
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
4010
3957
|
}
|
|
4011
3958
|
|
|
4012
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3959
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
4013
3960
|
function _nonIterableSpread() {
|
|
4014
3961
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4015
3962
|
}
|
|
4016
3963
|
|
|
4017
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
3964
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
4018
3965
|
function _toConsumableArray(r) {
|
|
4019
3966
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
4020
3967
|
}
|
|
4021
3968
|
|
|
4022
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
3969
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/Select-ef7c0426.esm.js
|
|
4023
3970
|
import * as React10 from "react";
|
|
4024
|
-
import { useMemo as useMemo4, Fragment as Fragment7, useRef as useRef6, useCallback as useCallback3, useEffect as
|
|
3971
|
+
import { useMemo as useMemo4, Fragment as Fragment7, useRef as useRef6, useCallback as useCallback3, useEffect as useEffect2, Component } from "react";
|
|
4025
3972
|
|
|
4026
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
3973
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.9_react@19.1.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
4027
3974
|
import * as React8 from "react";
|
|
4028
|
-
import { useContext as
|
|
3975
|
+
import { useContext as useContext18, forwardRef as forwardRef23 } from "react";
|
|
4029
3976
|
|
|
4030
3977
|
// ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
4031
3978
|
var isDevelopment = false;
|
|
@@ -5188,7 +5135,7 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
5188
5135
|
};
|
|
5189
5136
|
}
|
|
5190
5137
|
|
|
5191
|
-
// ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.1.
|
|
5138
|
+
// ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.1.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
|
|
5192
5139
|
import * as React7 from "react";
|
|
5193
5140
|
var isBrowser3 = typeof document !== "undefined";
|
|
5194
5141
|
var syncFallback = function syncFallback2(create) {
|
|
@@ -5197,7 +5144,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
5197
5144
|
var useInsertionEffect2 = React7["useInsertionEffect"] ? React7["useInsertionEffect"] : false;
|
|
5198
5145
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
5199
5146
|
|
|
5200
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5147
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.9_react@19.1.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
5201
5148
|
var isDevelopment3 = false;
|
|
5202
5149
|
var isBrowser4 = typeof document !== "undefined";
|
|
5203
5150
|
var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
@@ -5214,14 +5161,14 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
|
5214
5161
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
5215
5162
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
5216
5163
|
return /* @__PURE__ */ forwardRef23(function(props, ref) {
|
|
5217
|
-
var cache =
|
|
5164
|
+
var cache = useContext18(EmotionCacheContext);
|
|
5218
5165
|
return func(props, cache, ref);
|
|
5219
5166
|
});
|
|
5220
5167
|
};
|
|
5221
5168
|
if (!isBrowser4) {
|
|
5222
5169
|
withEmotionCache = function withEmotionCache3(func) {
|
|
5223
5170
|
return function(props) {
|
|
5224
|
-
var cache =
|
|
5171
|
+
var cache = useContext18(EmotionCacheContext);
|
|
5225
5172
|
if (cache === null) {
|
|
5226
5173
|
cache = createCache({
|
|
5227
5174
|
key: "css"
|
|
@@ -5301,11 +5248,11 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
5301
5248
|
});
|
|
5302
5249
|
var Emotion$1 = Emotion;
|
|
5303
5250
|
|
|
5304
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5251
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.9_react@19.1.1/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
5305
5252
|
import * as React9 from "react";
|
|
5306
5253
|
var import_extends2 = __toESM(require_extends());
|
|
5307
5254
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
5308
|
-
var
|
|
5255
|
+
var jsx84 = function jsx85(type, props) {
|
|
5309
5256
|
var args = arguments;
|
|
5310
5257
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
5311
5258
|
return React9.createElement.apply(void 0, args);
|
|
@@ -5323,7 +5270,7 @@ var jsx85 = function jsx86(type, props) {
|
|
|
5323
5270
|
var JSX2;
|
|
5324
5271
|
/* @__PURE__ */ (function(_JSX) {
|
|
5325
5272
|
})(JSX2 || (JSX2 = _jsx.JSX || (_jsx.JSX = {})));
|
|
5326
|
-
})(
|
|
5273
|
+
})(jsx84 || (jsx84 = {}));
|
|
5327
5274
|
function css() {
|
|
5328
5275
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5329
5276
|
args[_key] = arguments[_key];
|
|
@@ -5343,7 +5290,7 @@ function keyframes() {
|
|
|
5343
5290
|
};
|
|
5344
5291
|
}
|
|
5345
5292
|
|
|
5346
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.
|
|
5293
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
|
|
5347
5294
|
function _taggedTemplateLiteral(e, t) {
|
|
5348
5295
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
5349
5296
|
raw: {
|
|
@@ -5352,11 +5299,11 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
5352
5299
|
}));
|
|
5353
5300
|
}
|
|
5354
5301
|
|
|
5355
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
5356
|
-
import { useContext as
|
|
5302
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5303
|
+
import { useContext as useContext20, useRef as useRef5, useState as useState4, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext10 } from "react";
|
|
5357
5304
|
import { createPortal } from "react-dom";
|
|
5358
5305
|
|
|
5359
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.
|
|
5306
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
5360
5307
|
var min = Math.min;
|
|
5361
5308
|
var max = Math.max;
|
|
5362
5309
|
var round = Math.round;
|
|
@@ -5384,7 +5331,7 @@ function rectToClientRect(rect) {
|
|
|
5384
5331
|
};
|
|
5385
5332
|
}
|
|
5386
5333
|
|
|
5387
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.
|
|
5334
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
5388
5335
|
function hasWindow() {
|
|
5389
5336
|
return typeof window !== "undefined";
|
|
5390
5337
|
}
|
|
@@ -5426,6 +5373,7 @@ function isShadowRoot(value) {
|
|
|
5426
5373
|
}
|
|
5427
5374
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
5428
5375
|
}
|
|
5376
|
+
var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
5429
5377
|
function isOverflowElement(element) {
|
|
5430
5378
|
const {
|
|
5431
5379
|
overflow,
|
|
@@ -5433,14 +5381,15 @@ function isOverflowElement(element) {
|
|
|
5433
5381
|
overflowY,
|
|
5434
5382
|
display
|
|
5435
5383
|
} = getComputedStyle2(element);
|
|
5436
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
5384
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
5437
5385
|
}
|
|
5438
5386
|
function isWebKit() {
|
|
5439
5387
|
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
5440
5388
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
5441
5389
|
}
|
|
5390
|
+
var lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
5442
5391
|
function isLastTraversableNode(node2) {
|
|
5443
|
-
return
|
|
5392
|
+
return lastTraversableNodeNames.has(getNodeName(node2));
|
|
5444
5393
|
}
|
|
5445
5394
|
function getComputedStyle2(element) {
|
|
5446
5395
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -5489,7 +5438,7 @@ function getFrameElement(win) {
|
|
|
5489
5438
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
5490
5439
|
}
|
|
5491
5440
|
|
|
5492
|
-
// ../../node_modules/.pnpm/@floating-ui+dom@1.
|
|
5441
|
+
// ../../node_modules/.pnpm/@floating-ui+dom@1.7.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5493
5442
|
function getCssDimensions(element) {
|
|
5494
5443
|
const css5 = getComputedStyle2(element);
|
|
5495
5444
|
let width = parseFloat(css5.width) || 0;
|
|
@@ -5676,7 +5625,7 @@ function observeMove(element, onMove) {
|
|
|
5676
5625
|
// Handle <iframe>s
|
|
5677
5626
|
root: root.ownerDocument
|
|
5678
5627
|
});
|
|
5679
|
-
} catch (
|
|
5628
|
+
} catch (_e) {
|
|
5680
5629
|
io = new IntersectionObserver(handleObserve, options2);
|
|
5681
5630
|
}
|
|
5682
5631
|
io.observe(element);
|
|
@@ -5753,14 +5702,16 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
5753
5702
|
};
|
|
5754
5703
|
}
|
|
5755
5704
|
|
|
5756
|
-
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.
|
|
5757
|
-
import { useLayoutEffect as useLayoutEffect2
|
|
5705
|
+
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.1.9_react@19.1.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
5706
|
+
import { useLayoutEffect as useLayoutEffect2 } from "react";
|
|
5758
5707
|
var isClient = typeof document !== "undefined";
|
|
5759
|
-
var
|
|
5708
|
+
var noop = function noop2() {
|
|
5709
|
+
};
|
|
5710
|
+
var index = isClient ? useLayoutEffect2 : noop;
|
|
5760
5711
|
|
|
5761
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
5712
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5762
5713
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5763
|
-
var
|
|
5714
|
+
var noop3 = function noop4() {
|
|
5764
5715
|
};
|
|
5765
5716
|
function applyPrefixToName(prefix2, name) {
|
|
5766
5717
|
if (!name) {
|
|
@@ -5862,7 +5813,7 @@ function easeOutCubic(t, b, c, d) {
|
|
|
5862
5813
|
}
|
|
5863
5814
|
function animatedScrollTo(element, to) {
|
|
5864
5815
|
var duration = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200;
|
|
5865
|
-
var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
5816
|
+
var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : noop3;
|
|
5866
5817
|
var start = getScrollTop(element);
|
|
5867
5818
|
var change = to - start;
|
|
5868
5819
|
var increment = 10;
|
|
@@ -5923,8 +5874,8 @@ var options = {
|
|
|
5923
5874
|
};
|
|
5924
5875
|
var w = typeof window !== "undefined" ? window : {};
|
|
5925
5876
|
if (w.addEventListener && w.removeEventListener) {
|
|
5926
|
-
w.addEventListener("p",
|
|
5927
|
-
w.removeEventListener("p",
|
|
5877
|
+
w.addEventListener("p", noop3, options);
|
|
5878
|
+
w.removeEventListener("p", noop3, false);
|
|
5928
5879
|
}
|
|
5929
5880
|
var supportsPassiveEvents = passiveOptionAccessed;
|
|
5930
5881
|
function notNullish(item) {
|
|
@@ -6090,10 +6041,10 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
|
|
|
6090
6041
|
marginTop: spacing2.menuGutter
|
|
6091
6042
|
});
|
|
6092
6043
|
};
|
|
6093
|
-
var PortalPlacementContext = /* @__PURE__ */
|
|
6044
|
+
var PortalPlacementContext = /* @__PURE__ */ createContext10(null);
|
|
6094
6045
|
var MenuPlacer = function MenuPlacer2(props) {
|
|
6095
6046
|
var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
|
|
6096
|
-
var _ref3 =
|
|
6047
|
+
var _ref3 = useContext20(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
|
|
6097
6048
|
var ref = useRef5(null);
|
|
6098
6049
|
var _useState = useState4(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
|
|
6099
6050
|
var _useState3 = useState4(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
|
|
@@ -6124,15 +6075,15 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
6124
6075
|
})
|
|
6125
6076
|
});
|
|
6126
6077
|
};
|
|
6127
|
-
var
|
|
6078
|
+
var Menu2 = function Menu3(props) {
|
|
6128
6079
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
6129
|
-
return
|
|
6080
|
+
return jsx84("div", _extends({}, getStyleProps(props, "menu", {
|
|
6130
6081
|
menu: true
|
|
6131
6082
|
}), {
|
|
6132
6083
|
ref: innerRef
|
|
6133
6084
|
}, innerProps), children);
|
|
6134
6085
|
};
|
|
6135
|
-
var Menu$1 =
|
|
6086
|
+
var Menu$1 = Menu2;
|
|
6136
6087
|
var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
6137
6088
|
var maxHeight = _ref4.maxHeight, baseUnit2 = _ref4.theme.spacing.baseUnit;
|
|
6138
6089
|
return _objectSpread2({
|
|
@@ -6148,7 +6099,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
6148
6099
|
};
|
|
6149
6100
|
var MenuList = function MenuList2(props) {
|
|
6150
6101
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
6151
|
-
return
|
|
6102
|
+
return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
|
|
6152
6103
|
"menu-list": true,
|
|
6153
6104
|
"menu-list--is-multi": isMulti
|
|
6154
6105
|
}), {
|
|
@@ -6168,7 +6119,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
6168
6119
|
var loadingMessageCSS = noticeCSS;
|
|
6169
6120
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
6170
6121
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
6171
|
-
return
|
|
6122
|
+
return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6172
6123
|
children,
|
|
6173
6124
|
innerProps
|
|
6174
6125
|
}), "noOptionsMessage", {
|
|
@@ -6178,7 +6129,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
6178
6129
|
};
|
|
6179
6130
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
6180
6131
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
6181
|
-
return
|
|
6132
|
+
return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6182
6133
|
children,
|
|
6183
6134
|
innerProps
|
|
6184
6135
|
}), "loadingMessage", {
|
|
@@ -6241,7 +6192,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
6241
6192
|
runAutoUpdate();
|
|
6242
6193
|
}, [runAutoUpdate]);
|
|
6243
6194
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
6244
|
-
var menuWrapper =
|
|
6195
|
+
var menuWrapper = jsx84("div", _extends({
|
|
6245
6196
|
ref: setMenuPortalElement
|
|
6246
6197
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
6247
6198
|
offset: computedPosition.offset,
|
|
@@ -6250,7 +6201,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
6250
6201
|
}), "menuPortal", {
|
|
6251
6202
|
"menu-portal": true
|
|
6252
6203
|
}), innerProps), children);
|
|
6253
|
-
return
|
|
6204
|
+
return jsx84(PortalPlacementContext.Provider, {
|
|
6254
6205
|
value: portalPlacementContext
|
|
6255
6206
|
}, appendTo ? /* @__PURE__ */ createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
6256
6207
|
};
|
|
@@ -6266,7 +6217,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
6266
6217
|
};
|
|
6267
6218
|
var SelectContainer = function SelectContainer2(props) {
|
|
6268
6219
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
6269
|
-
return
|
|
6220
|
+
return jsx84("div", _extends({}, getStyleProps(props, "container", {
|
|
6270
6221
|
"--is-disabled": isDisabled,
|
|
6271
6222
|
"--is-rtl": isRtl
|
|
6272
6223
|
}), innerProps), children);
|
|
@@ -6287,7 +6238,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
6287
6238
|
};
|
|
6288
6239
|
var ValueContainer = function ValueContainer2(props) {
|
|
6289
6240
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
6290
|
-
return
|
|
6241
|
+
return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
6291
6242
|
"value-container": true,
|
|
6292
6243
|
"value-container--is-multi": isMulti,
|
|
6293
6244
|
"value-container--has-value": hasValue
|
|
@@ -6303,7 +6254,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
6303
6254
|
};
|
|
6304
6255
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
6305
6256
|
var children = props.children, innerProps = props.innerProps;
|
|
6306
|
-
return
|
|
6257
|
+
return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
6307
6258
|
indicators: true
|
|
6308
6259
|
}), innerProps), children);
|
|
6309
6260
|
};
|
|
@@ -6324,7 +6275,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
6324
6275
|
};
|
|
6325
6276
|
var Svg = function Svg2(_ref3) {
|
|
6326
6277
|
var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
6327
|
-
return
|
|
6278
|
+
return jsx84("svg", _extends({
|
|
6328
6279
|
height: size2,
|
|
6329
6280
|
width: size2,
|
|
6330
6281
|
viewBox: "0 0 20 20",
|
|
@@ -6334,16 +6285,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
6334
6285
|
}, props));
|
|
6335
6286
|
};
|
|
6336
6287
|
var CrossIcon = function CrossIcon2(props) {
|
|
6337
|
-
return
|
|
6288
|
+
return jsx84(Svg, _extends({
|
|
6338
6289
|
size: 20
|
|
6339
|
-
}, props),
|
|
6290
|
+
}, props), jsx84("path", {
|
|
6340
6291
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
6341
6292
|
}));
|
|
6342
6293
|
};
|
|
6343
6294
|
var DownChevron = function DownChevron2(props) {
|
|
6344
|
-
return
|
|
6295
|
+
return jsx84(Svg, _extends({
|
|
6345
6296
|
size: 20
|
|
6346
|
-
}, props),
|
|
6297
|
+
}, props), jsx84("path", {
|
|
6347
6298
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
6348
6299
|
}));
|
|
6349
6300
|
};
|
|
@@ -6364,18 +6315,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
6364
6315
|
var dropdownIndicatorCSS = baseCSS;
|
|
6365
6316
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
6366
6317
|
var children = props.children, innerProps = props.innerProps;
|
|
6367
|
-
return
|
|
6318
|
+
return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
6368
6319
|
indicator: true,
|
|
6369
6320
|
"dropdown-indicator": true
|
|
6370
|
-
}), innerProps), children ||
|
|
6321
|
+
}), innerProps), children || jsx84(DownChevron, null));
|
|
6371
6322
|
};
|
|
6372
6323
|
var clearIndicatorCSS = baseCSS;
|
|
6373
6324
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
6374
6325
|
var children = props.children, innerProps = props.innerProps;
|
|
6375
|
-
return
|
|
6326
|
+
return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
6376
6327
|
indicator: true,
|
|
6377
6328
|
"clear-indicator": true
|
|
6378
|
-
}), innerProps), children ||
|
|
6329
|
+
}), innerProps), children || jsx84(CrossIcon, null));
|
|
6379
6330
|
};
|
|
6380
6331
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
6381
6332
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -6391,7 +6342,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
6391
6342
|
};
|
|
6392
6343
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
6393
6344
|
var innerProps = props.innerProps;
|
|
6394
|
-
return
|
|
6345
|
+
return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
6395
6346
|
"indicator-separator": true
|
|
6396
6347
|
})));
|
|
6397
6348
|
};
|
|
@@ -6415,7 +6366,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
6415
6366
|
};
|
|
6416
6367
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
6417
6368
|
var delay = _ref6.delay, offset2 = _ref6.offset;
|
|
6418
|
-
return
|
|
6369
|
+
return jsx84("span", {
|
|
6419
6370
|
css: /* @__PURE__ */ css({
|
|
6420
6371
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
6421
6372
|
backgroundColor: "currentColor",
|
|
@@ -6430,20 +6381,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
6430
6381
|
};
|
|
6431
6382
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
6432
6383
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
6433
|
-
return
|
|
6384
|
+
return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6434
6385
|
innerProps,
|
|
6435
6386
|
isRtl,
|
|
6436
6387
|
size: size2
|
|
6437
6388
|
}), "loadingIndicator", {
|
|
6438
6389
|
indicator: true,
|
|
6439
6390
|
"loading-indicator": true
|
|
6440
|
-
}), innerProps),
|
|
6391
|
+
}), innerProps), jsx84(LoadingDot, {
|
|
6441
6392
|
delay: 0,
|
|
6442
6393
|
offset: isRtl
|
|
6443
|
-
}),
|
|
6394
|
+
}), jsx84(LoadingDot, {
|
|
6444
6395
|
delay: 160,
|
|
6445
6396
|
offset: true
|
|
6446
|
-
}),
|
|
6397
|
+
}), jsx84(LoadingDot, {
|
|
6447
6398
|
delay: 320,
|
|
6448
6399
|
offset: !isRtl
|
|
6449
6400
|
}));
|
|
@@ -6475,7 +6426,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
6475
6426
|
};
|
|
6476
6427
|
var Control = function Control2(props) {
|
|
6477
6428
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
6478
|
-
return
|
|
6429
|
+
return jsx84("div", _extends({
|
|
6479
6430
|
ref: innerRef
|
|
6480
6431
|
}, getStyleProps(props, "control", {
|
|
6481
6432
|
control: true,
|
|
@@ -6497,15 +6448,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
6497
6448
|
};
|
|
6498
6449
|
var Group2 = function Group3(props) {
|
|
6499
6450
|
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading6 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
6500
|
-
return
|
|
6451
|
+
return jsx84("div", _extends({}, getStyleProps(props, "group", {
|
|
6501
6452
|
group: true
|
|
6502
|
-
}), innerProps),
|
|
6453
|
+
}), innerProps), jsx84(Heading6, _extends({}, headingProps, {
|
|
6503
6454
|
selectProps,
|
|
6504
6455
|
theme,
|
|
6505
6456
|
getStyles,
|
|
6506
6457
|
getClassNames: getClassNames2,
|
|
6507
6458
|
cx
|
|
6508
|
-
}), label),
|
|
6459
|
+
}), label), jsx84("div", null, children));
|
|
6509
6460
|
};
|
|
6510
6461
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
6511
6462
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -6527,7 +6478,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
6527
6478
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
6528
6479
|
_cleanCommonProps.data;
|
|
6529
6480
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
6530
|
-
return
|
|
6481
|
+
return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
6531
6482
|
"group-heading": true
|
|
6532
6483
|
}), innerProps));
|
|
6533
6484
|
};
|
|
@@ -6579,11 +6530,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
6579
6530
|
var Input2 = function Input3(props) {
|
|
6580
6531
|
var cx = props.cx, value = props.value;
|
|
6581
6532
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
6582
|
-
return
|
|
6533
|
+
return jsx84("div", _extends({}, getStyleProps(props, "input", {
|
|
6583
6534
|
"input-container": true
|
|
6584
6535
|
}), {
|
|
6585
6536
|
"data-value": value || ""
|
|
6586
|
-
}),
|
|
6537
|
+
}), jsx84("input", _extends({
|
|
6587
6538
|
className: cx({
|
|
6588
6539
|
input: true
|
|
6589
6540
|
}, inputClassName),
|
|
@@ -6637,35 +6588,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
6637
6588
|
};
|
|
6638
6589
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
6639
6590
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
6640
|
-
return
|
|
6591
|
+
return jsx84("div", innerProps, children);
|
|
6641
6592
|
};
|
|
6642
6593
|
var MultiValueContainer = MultiValueGeneric;
|
|
6643
6594
|
var MultiValueLabel = MultiValueGeneric;
|
|
6644
6595
|
function MultiValueRemove(_ref5) {
|
|
6645
6596
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
6646
|
-
return
|
|
6597
|
+
return jsx84("div", _extends({
|
|
6647
6598
|
role: "button"
|
|
6648
|
-
}, innerProps), children ||
|
|
6599
|
+
}, innerProps), children || jsx84(CrossIcon, {
|
|
6649
6600
|
size: 14
|
|
6650
6601
|
}));
|
|
6651
6602
|
}
|
|
6652
6603
|
var MultiValue = function MultiValue2(props) {
|
|
6653
6604
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
6654
6605
|
var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
|
|
6655
|
-
return
|
|
6606
|
+
return jsx84(Container2, {
|
|
6656
6607
|
data,
|
|
6657
6608
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
6658
6609
|
"multi-value": true,
|
|
6659
6610
|
"multi-value--is-disabled": isDisabled
|
|
6660
6611
|
})), innerProps),
|
|
6661
6612
|
selectProps
|
|
6662
|
-
},
|
|
6613
|
+
}, jsx84(Label3, {
|
|
6663
6614
|
data,
|
|
6664
6615
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
6665
6616
|
"multi-value__label": true
|
|
6666
6617
|
})),
|
|
6667
6618
|
selectProps
|
|
6668
|
-
}, children),
|
|
6619
|
+
}, children), jsx84(Remove, {
|
|
6669
6620
|
data,
|
|
6670
6621
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
6671
6622
|
"multi-value__remove": true
|
|
@@ -6698,7 +6649,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
6698
6649
|
};
|
|
6699
6650
|
var Option = function Option2(props) {
|
|
6700
6651
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
6701
|
-
return
|
|
6652
|
+
return jsx84("div", _extends({}, getStyleProps(props, "option", {
|
|
6702
6653
|
option: true,
|
|
6703
6654
|
"option--is-disabled": isDisabled,
|
|
6704
6655
|
"option--is-focused": isFocused,
|
|
@@ -6722,7 +6673,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
6722
6673
|
};
|
|
6723
6674
|
var Placeholder = function Placeholder2(props) {
|
|
6724
6675
|
var children = props.children, innerProps = props.innerProps;
|
|
6725
|
-
return
|
|
6676
|
+
return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
6726
6677
|
placeholder: true
|
|
6727
6678
|
}), innerProps), children);
|
|
6728
6679
|
};
|
|
@@ -6744,7 +6695,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
6744
6695
|
};
|
|
6745
6696
|
var SingleValue = function SingleValue2(props) {
|
|
6746
6697
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
6747
|
-
return
|
|
6698
|
+
return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
6748
6699
|
"single-value": true,
|
|
6749
6700
|
"single-value--is-disabled": isDisabled
|
|
6750
6701
|
}), innerProps), children);
|
|
@@ -6832,7 +6783,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6832
6783
|
return memoized;
|
|
6833
6784
|
}
|
|
6834
6785
|
|
|
6835
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
6786
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/Select-ef7c0426.esm.js
|
|
6836
6787
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6837
6788
|
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).";
|
|
6838
6789
|
}
|
|
@@ -6846,7 +6797,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
6846
6797
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
6847
6798
|
};
|
|
6848
6799
|
var A11yText = function A11yText2(props) {
|
|
6849
|
-
return
|
|
6800
|
+
return jsx84("span", _extends({
|
|
6850
6801
|
css: _ref
|
|
6851
6802
|
}, props));
|
|
6852
6803
|
};
|
|
@@ -6981,18 +6932,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6981
6932
|
}
|
|
6982
6933
|
return guidanceMsg;
|
|
6983
6934
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
6984
|
-
var ScreenReaderText =
|
|
6935
|
+
var ScreenReaderText = jsx84(Fragment7, null, jsx84("span", {
|
|
6985
6936
|
id: "aria-selection"
|
|
6986
|
-
}, ariaSelected),
|
|
6937
|
+
}, ariaSelected), jsx84("span", {
|
|
6987
6938
|
id: "aria-focused"
|
|
6988
|
-
}, ariaFocused),
|
|
6939
|
+
}, ariaFocused), jsx84("span", {
|
|
6989
6940
|
id: "aria-results"
|
|
6990
|
-
}, ariaResults),
|
|
6941
|
+
}, ariaResults), jsx84("span", {
|
|
6991
6942
|
id: "aria-guidance"
|
|
6992
6943
|
}, ariaGuidance));
|
|
6993
|
-
return
|
|
6944
|
+
return jsx84(Fragment7, null, jsx84(A11yText$1, {
|
|
6994
6945
|
id
|
|
6995
|
-
}, isInitialFocus && ScreenReaderText),
|
|
6946
|
+
}, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
|
|
6996
6947
|
"aria-live": ariaLive,
|
|
6997
6948
|
"aria-atomic": "false",
|
|
6998
6949
|
"aria-relevant": "additions text",
|
|
@@ -7305,7 +7256,7 @@ var _excluded4 = ["innerRef"];
|
|
|
7305
7256
|
function DummyInput(_ref3) {
|
|
7306
7257
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
7307
7258
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
7308
|
-
return
|
|
7259
|
+
return jsx84("input", _extends({
|
|
7309
7260
|
ref: innerRef
|
|
7310
7261
|
}, filteredProps, {
|
|
7311
7262
|
css: /* @__PURE__ */ css({
|
|
@@ -7400,7 +7351,7 @@ function useScrollCapture(_ref3) {
|
|
|
7400
7351
|
el.removeEventListener("touchstart", onTouchStart, false);
|
|
7401
7352
|
el.removeEventListener("touchmove", onTouchMove, false);
|
|
7402
7353
|
}, [onTouchMove, onTouchStart, onWheel]);
|
|
7403
|
-
|
|
7354
|
+
useEffect2(function() {
|
|
7404
7355
|
if (!isEnabled) return;
|
|
7405
7356
|
var element = scrollTarget.current;
|
|
7406
7357
|
startListening(element);
|
|
@@ -7503,7 +7454,7 @@ function useScrollLock(_ref3) {
|
|
|
7503
7454
|
}
|
|
7504
7455
|
}
|
|
7505
7456
|
}, [accountForScrollbars]);
|
|
7506
|
-
|
|
7457
|
+
useEffect2(function() {
|
|
7507
7458
|
if (!isEnabled) return;
|
|
7508
7459
|
var element = scrollTarget.current;
|
|
7509
7460
|
addScrollLock(element);
|
|
@@ -7547,7 +7498,7 @@ function ScrollManager(_ref3) {
|
|
|
7547
7498
|
setScrollCaptureTarget(element);
|
|
7548
7499
|
setScrollLockTarget(element);
|
|
7549
7500
|
};
|
|
7550
|
-
return
|
|
7501
|
+
return jsx84(Fragment7, null, lockEnabled && jsx84("div", {
|
|
7551
7502
|
onClick: blurSelectInput,
|
|
7552
7503
|
css: _ref2$1
|
|
7553
7504
|
}), children(targetRef));
|
|
@@ -7566,7 +7517,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
7566
7517
|
};
|
|
7567
7518
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
7568
7519
|
var name = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
7569
|
-
return
|
|
7520
|
+
return jsx84("input", {
|
|
7570
7521
|
required: true,
|
|
7571
7522
|
name,
|
|
7572
7523
|
tabIndex: -1,
|
|
@@ -7864,7 +7815,8 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
7864
7815
|
prevWasFocused: false,
|
|
7865
7816
|
inputIsHiddenAfterUpdate: void 0,
|
|
7866
7817
|
prevProps: void 0,
|
|
7867
|
-
instancePrefix: ""
|
|
7818
|
+
instancePrefix: "",
|
|
7819
|
+
isAppleDevice: false
|
|
7868
7820
|
};
|
|
7869
7821
|
_this.blockOptionHover = false;
|
|
7870
7822
|
_this.isComposing = false;
|
|
@@ -7874,7 +7826,6 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
7874
7826
|
_this.openAfterFocus = false;
|
|
7875
7827
|
_this.scrollToFocusedOptionOnUpdate = false;
|
|
7876
7828
|
_this.userIsDragging = void 0;
|
|
7877
|
-
_this.isAppleDevice = isAppleDevice();
|
|
7878
7829
|
_this.controlRef = null;
|
|
7879
7830
|
_this.getControlRef = function(ref) {
|
|
7880
7831
|
_this.controlRef = ref;
|
|
@@ -8367,6 +8318,11 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8367
8318
|
if (this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef) {
|
|
8368
8319
|
scrollIntoView(this.menuListRef, this.focusedOptionRef);
|
|
8369
8320
|
}
|
|
8321
|
+
if (isAppleDevice()) {
|
|
8322
|
+
this.setState({
|
|
8323
|
+
isAppleDevice: true
|
|
8324
|
+
});
|
|
8325
|
+
}
|
|
8370
8326
|
}
|
|
8371
8327
|
}, {
|
|
8372
8328
|
key: "componentDidUpdate",
|
|
@@ -8691,7 +8647,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8691
8647
|
"aria-labelledby": this.props["aria-labelledby"],
|
|
8692
8648
|
"aria-required": required,
|
|
8693
8649
|
role: "combobox",
|
|
8694
|
-
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
8650
|
+
"aria-activedescendant": this.state.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
8695
8651
|
}, menuIsOpen && {
|
|
8696
8652
|
"aria-controls": this.getElementId("listbox")
|
|
8697
8653
|
}), !isSearchable && {
|
|
@@ -8706,7 +8662,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8706
8662
|
id,
|
|
8707
8663
|
innerRef: this.getInputRef,
|
|
8708
8664
|
onBlur: this.onInputBlur,
|
|
8709
|
-
onChange:
|
|
8665
|
+
onChange: noop3,
|
|
8710
8666
|
onFocus: this.onInputFocus,
|
|
8711
8667
|
disabled: isDisabled,
|
|
8712
8668
|
tabIndex,
|
|
@@ -8885,7 +8841,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8885
8841
|
onMouseOver: onHover,
|
|
8886
8842
|
tabIndex: -1,
|
|
8887
8843
|
role: "option",
|
|
8888
|
-
"aria-selected": _this4.isAppleDevice ? void 0 : isSelected
|
|
8844
|
+
"aria-selected": _this4.state.isAppleDevice ? void 0 : isSelected
|
|
8889
8845
|
// is not supported on Apple devices
|
|
8890
8846
|
};
|
|
8891
8847
|
return /* @__PURE__ */ React10.createElement(Option3, _extends({}, commonProps, {
|
|
@@ -9045,7 +9001,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
9045
9001
|
isFocused,
|
|
9046
9002
|
selectValue,
|
|
9047
9003
|
focusableOptions,
|
|
9048
|
-
isAppleDevice: this.isAppleDevice
|
|
9004
|
+
isAppleDevice: this.state.isAppleDevice
|
|
9049
9005
|
}));
|
|
9050
9006
|
}
|
|
9051
9007
|
}, {
|
|
@@ -9128,7 +9084,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
9128
9084
|
}(Component);
|
|
9129
9085
|
Select.defaultProps = defaultProps;
|
|
9130
9086
|
|
|
9131
|
-
// ../../node_modules/.pnpm/react-select@5.10.
|
|
9087
|
+
// ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.1.9_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-select/dist/react-select.esm.js
|
|
9132
9088
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
9133
9089
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
9134
9090
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -9149,72 +9105,11 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef24(function(props, ref) {
|
|
|
9149
9105
|
});
|
|
9150
9106
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
9151
9107
|
|
|
9152
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.19_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
9153
|
-
import { useId as $83Elw$useId, useLabels as $83Elw$useLabels } from "@react-aria/utils";
|
|
9154
|
-
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
9155
|
-
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
9156
|
-
id = (0, $83Elw$useId)(id);
|
|
9157
|
-
let labelId = (0, $83Elw$useId)();
|
|
9158
|
-
let labelProps = {};
|
|
9159
|
-
if (label) {
|
|
9160
|
-
ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;
|
|
9161
|
-
labelProps = {
|
|
9162
|
-
id: labelId,
|
|
9163
|
-
htmlFor: labelElementType === "label" ? id : void 0
|
|
9164
|
-
};
|
|
9165
|
-
} else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== "production") console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
|
|
9166
|
-
let fieldProps = (0, $83Elw$useLabels)({
|
|
9167
|
-
id,
|
|
9168
|
-
"aria-label": ariaLabel,
|
|
9169
|
-
"aria-labelledby": ariaLabelledby
|
|
9170
|
-
});
|
|
9171
|
-
return {
|
|
9172
|
-
labelProps,
|
|
9173
|
-
fieldProps
|
|
9174
|
-
};
|
|
9175
|
-
}
|
|
9176
|
-
|
|
9177
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.19_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
|
|
9178
|
-
import { useSlotId as $2kC82$useSlotId, mergeProps as $2kC82$mergeProps } from "@react-aria/utils";
|
|
9179
|
-
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
9180
|
-
let { description, errorMessage, isInvalid, validationState } = props;
|
|
9181
|
-
let { labelProps, fieldProps } = (0, $d191a55c9702f145$export$8467354a121f1b9f)(props);
|
|
9182
|
-
let descriptionId = (0, $2kC82$useSlotId)([
|
|
9183
|
-
Boolean(description),
|
|
9184
|
-
Boolean(errorMessage),
|
|
9185
|
-
isInvalid,
|
|
9186
|
-
validationState
|
|
9187
|
-
]);
|
|
9188
|
-
let errorMessageId = (0, $2kC82$useSlotId)([
|
|
9189
|
-
Boolean(description),
|
|
9190
|
-
Boolean(errorMessage),
|
|
9191
|
-
isInvalid,
|
|
9192
|
-
validationState
|
|
9193
|
-
]);
|
|
9194
|
-
fieldProps = (0, $2kC82$mergeProps)(fieldProps, {
|
|
9195
|
-
"aria-describedby": [
|
|
9196
|
-
descriptionId,
|
|
9197
|
-
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
9198
|
-
errorMessageId,
|
|
9199
|
-
props["aria-describedby"]
|
|
9200
|
-
].filter(Boolean).join(" ") || void 0
|
|
9201
|
-
});
|
|
9202
|
-
return {
|
|
9203
|
-
labelProps,
|
|
9204
|
-
fieldProps,
|
|
9205
|
-
descriptionProps: {
|
|
9206
|
-
id: descriptionId
|
|
9207
|
-
},
|
|
9208
|
-
errorMessageProps: {
|
|
9209
|
-
id: errorMessageId
|
|
9210
|
-
}
|
|
9211
|
-
};
|
|
9212
|
-
}
|
|
9213
|
-
|
|
9214
9108
|
// src/Multiselect/Multiselect.tsx
|
|
9109
|
+
import { useField } from "@react-aria/label";
|
|
9215
9110
|
import { useId } from "@react-aria/utils";
|
|
9216
|
-
import { cn as cn49, useClassNames as
|
|
9217
|
-
import { jsx as
|
|
9111
|
+
import { cn as cn49, useClassNames as useClassNames49 } from "@marigold/system";
|
|
9112
|
+
import { jsx as jsx86, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9218
9113
|
var propsToBeRemoved = [
|
|
9219
9114
|
"clearValue",
|
|
9220
9115
|
"getStyles",
|
|
@@ -9240,7 +9135,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
9240
9135
|
},
|
|
9241
9136
|
{}
|
|
9242
9137
|
);
|
|
9243
|
-
return /* @__PURE__ */
|
|
9138
|
+
return /* @__PURE__ */ jsx86(
|
|
9244
9139
|
_Input2,
|
|
9245
9140
|
{
|
|
9246
9141
|
disabled: props.isDisabled,
|
|
@@ -9251,7 +9146,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
9251
9146
|
);
|
|
9252
9147
|
};
|
|
9253
9148
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
9254
|
-
return /* @__PURE__ */
|
|
9149
|
+
return /* @__PURE__ */ jsx86(Button10, { slot: "remove", ...innerProps, children: /* @__PURE__ */ jsx86("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx86("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" }) }) });
|
|
9255
9150
|
};
|
|
9256
9151
|
var getClassNames = (classNames3) => ({
|
|
9257
9152
|
control: () => cn49(
|
|
@@ -9286,7 +9181,7 @@ var Multiselect = ({
|
|
|
9286
9181
|
width,
|
|
9287
9182
|
...rest
|
|
9288
9183
|
}) => {
|
|
9289
|
-
const classNames3 =
|
|
9184
|
+
const classNames3 = useClassNames49({
|
|
9290
9185
|
component: "MultiSelect",
|
|
9291
9186
|
size: size2,
|
|
9292
9187
|
variant
|
|
@@ -9300,11 +9195,11 @@ var Multiselect = ({
|
|
|
9300
9195
|
onChange: onSelectionChange,
|
|
9301
9196
|
...rest
|
|
9302
9197
|
};
|
|
9303
|
-
let { labelProps, fieldProps } =
|
|
9198
|
+
let { labelProps, fieldProps } = useField({
|
|
9304
9199
|
label: props.label,
|
|
9305
9200
|
errorMessage
|
|
9306
9201
|
});
|
|
9307
|
-
return /* @__PURE__ */
|
|
9202
|
+
return /* @__PURE__ */ jsx86(
|
|
9308
9203
|
Provider2,
|
|
9309
9204
|
{
|
|
9310
9205
|
values: [
|
|
@@ -9342,8 +9237,8 @@ var Multiselect = ({
|
|
|
9342
9237
|
"data-invalid": error,
|
|
9343
9238
|
"data-readonly": readOnly,
|
|
9344
9239
|
children: [
|
|
9345
|
-
props.label && /* @__PURE__ */
|
|
9346
|
-
/* @__PURE__ */
|
|
9240
|
+
props.label && /* @__PURE__ */ jsx86(_Label, { ...labelProps, children: props.label }),
|
|
9241
|
+
/* @__PURE__ */ jsx86(
|
|
9347
9242
|
StateManagedSelect$1,
|
|
9348
9243
|
{
|
|
9349
9244
|
...props,
|
|
@@ -9379,19 +9274,19 @@ var Multiselect = ({
|
|
|
9379
9274
|
Input: Input4,
|
|
9380
9275
|
MultiValueRemove: MultiValueRemove2,
|
|
9381
9276
|
// eslint-disable-next-line react/prop-types
|
|
9382
|
-
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */
|
|
9277
|
+
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx86(
|
|
9383
9278
|
"button",
|
|
9384
9279
|
{
|
|
9385
9280
|
...innerProps,
|
|
9386
9281
|
disabled: isDisabled,
|
|
9387
9282
|
className: classNames3.icon,
|
|
9388
|
-
children: /* @__PURE__ */
|
|
9283
|
+
children: /* @__PURE__ */ jsx86(ChevronDown, { className: "size-4" })
|
|
9389
9284
|
}
|
|
9390
9285
|
)
|
|
9391
9286
|
}
|
|
9392
9287
|
}
|
|
9393
9288
|
),
|
|
9394
|
-
/* @__PURE__ */
|
|
9289
|
+
/* @__PURE__ */ jsx86(HelpText, { description, errorMessage })
|
|
9395
9290
|
]
|
|
9396
9291
|
}
|
|
9397
9292
|
)
|
|
@@ -9402,13 +9297,13 @@ var Multiselect = ({
|
|
|
9402
9297
|
// src/NumberField/NumberField.tsx
|
|
9403
9298
|
import { forwardRef as forwardRef25 } from "react";
|
|
9404
9299
|
import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
|
|
9405
|
-
import { cn as cn51, useClassNames as
|
|
9300
|
+
import { cn as cn51, useClassNames as useClassNames50 } from "@marigold/system";
|
|
9406
9301
|
|
|
9407
9302
|
// src/NumberField/StepButton.tsx
|
|
9408
|
-
import { Button as
|
|
9303
|
+
import { Button as Button11 } from "react-aria-components";
|
|
9409
9304
|
import { cn as cn50 } from "@marigold/system";
|
|
9410
|
-
import { jsx as
|
|
9411
|
-
var Plus = () => /* @__PURE__ */
|
|
9305
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
9306
|
+
var Plus = () => /* @__PURE__ */ jsx87("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx87(
|
|
9412
9307
|
"path",
|
|
9413
9308
|
{
|
|
9414
9309
|
fillRule: "evenodd",
|
|
@@ -9416,7 +9311,7 @@ var Plus = () => /* @__PURE__ */ jsx88("svg", { width: 16, height: 16, viewBox:
|
|
|
9416
9311
|
d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
|
|
9417
9312
|
}
|
|
9418
9313
|
) });
|
|
9419
|
-
var Minus = () => /* @__PURE__ */
|
|
9314
|
+
var Minus = () => /* @__PURE__ */ jsx87("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx87(
|
|
9420
9315
|
"path",
|
|
9421
9316
|
{
|
|
9422
9317
|
fillRule: "evenodd",
|
|
@@ -9426,8 +9321,8 @@ var Minus = () => /* @__PURE__ */ jsx88("svg", { width: 16, height: 16, viewBox:
|
|
|
9426
9321
|
) });
|
|
9427
9322
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
9428
9323
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
9429
|
-
return /* @__PURE__ */
|
|
9430
|
-
|
|
9324
|
+
return /* @__PURE__ */ jsx87(
|
|
9325
|
+
Button11,
|
|
9431
9326
|
{
|
|
9432
9327
|
className: cn50(
|
|
9433
9328
|
[
|
|
@@ -9437,13 +9332,13 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
9437
9332
|
className
|
|
9438
9333
|
),
|
|
9439
9334
|
...props,
|
|
9440
|
-
children: /* @__PURE__ */
|
|
9335
|
+
children: /* @__PURE__ */ jsx87(Icon4, {})
|
|
9441
9336
|
}
|
|
9442
9337
|
);
|
|
9443
9338
|
};
|
|
9444
9339
|
|
|
9445
9340
|
// src/NumberField/NumberField.tsx
|
|
9446
|
-
import { jsx as
|
|
9341
|
+
import { jsx as jsx88, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9447
9342
|
var _NumberField = forwardRef25(
|
|
9448
9343
|
({
|
|
9449
9344
|
variant,
|
|
@@ -9455,7 +9350,7 @@ var _NumberField = forwardRef25(
|
|
|
9455
9350
|
hideStepper,
|
|
9456
9351
|
...rest
|
|
9457
9352
|
}, ref) => {
|
|
9458
|
-
const classNames3 =
|
|
9353
|
+
const classNames3 = useClassNames50({
|
|
9459
9354
|
component: "NumberField",
|
|
9460
9355
|
size: size2,
|
|
9461
9356
|
variant
|
|
@@ -9468,7 +9363,7 @@ var _NumberField = forwardRef25(
|
|
|
9468
9363
|
...rest
|
|
9469
9364
|
};
|
|
9470
9365
|
const showStepper = !hideStepper && !readOnly;
|
|
9471
|
-
return /* @__PURE__ */
|
|
9366
|
+
return /* @__PURE__ */ jsx88(
|
|
9472
9367
|
FieldBase,
|
|
9473
9368
|
{
|
|
9474
9369
|
as: NumberField,
|
|
@@ -9476,7 +9371,7 @@ var _NumberField = forwardRef25(
|
|
|
9476
9371
|
"data-readonly": readOnly ? "true" : void 0,
|
|
9477
9372
|
"data-stepper": showStepper ? "true" : void 0,
|
|
9478
9373
|
children: /* @__PURE__ */ jsxs31(Group4, { className: cn51("flex items-stretch", classNames3.group), children: [
|
|
9479
|
-
showStepper && /* @__PURE__ */
|
|
9374
|
+
showStepper && /* @__PURE__ */ jsx88(
|
|
9480
9375
|
_StepButton,
|
|
9481
9376
|
{
|
|
9482
9377
|
className: classNames3.stepper,
|
|
@@ -9484,14 +9379,14 @@ var _NumberField = forwardRef25(
|
|
|
9484
9379
|
slot: "decrement"
|
|
9485
9380
|
}
|
|
9486
9381
|
),
|
|
9487
|
-
/* @__PURE__ */
|
|
9382
|
+
/* @__PURE__ */ jsx88(
|
|
9488
9383
|
Input5,
|
|
9489
9384
|
{
|
|
9490
9385
|
ref,
|
|
9491
9386
|
className: cn51("h-full flex-1 outline-none", classNames3.input)
|
|
9492
9387
|
}
|
|
9493
9388
|
),
|
|
9494
|
-
showStepper && /* @__PURE__ */
|
|
9389
|
+
showStepper && /* @__PURE__ */ jsx88(
|
|
9495
9390
|
_StepButton,
|
|
9496
9391
|
{
|
|
9497
9392
|
className: classNames3.stepper,
|
|
@@ -9506,21 +9401,18 @@ var _NumberField = forwardRef25(
|
|
|
9506
9401
|
);
|
|
9507
9402
|
|
|
9508
9403
|
// src/Pagination/Pagination.tsx
|
|
9509
|
-
import { useEffect as
|
|
9404
|
+
import { useEffect as useEffect3, useRef as useRef9, useState as useState5 } from "react";
|
|
9510
9405
|
import { FocusScope as FocusScope2, useFocusManager } from "@react-aria/focus";
|
|
9511
9406
|
import { useClassNames as useClassNames54 } from "@marigold/system";
|
|
9512
9407
|
|
|
9513
9408
|
// src/Pagination/Ellipsis.tsx
|
|
9514
|
-
import {
|
|
9409
|
+
import { useClassNames as useClassNames51 } from "@marigold/system";
|
|
9410
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
9515
9411
|
var Ellipsis = () => {
|
|
9516
|
-
|
|
9517
|
-
"
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
"aria-label": "These pages are hidden",
|
|
9521
|
-
children: "\u2026"
|
|
9522
|
-
}
|
|
9523
|
-
);
|
|
9412
|
+
const { ellipsis } = useClassNames51({
|
|
9413
|
+
component: "Pagination"
|
|
9414
|
+
});
|
|
9415
|
+
return /* @__PURE__ */ jsx89("span", { className: ellipsis, "aria-label": "These pages are hidden", children: "\u2026" });
|
|
9524
9416
|
};
|
|
9525
9417
|
|
|
9526
9418
|
// src/Pagination/NavigationButton.tsx
|
|
@@ -9530,7 +9422,7 @@ import { cn as cn52, useClassNames as useClassNames52 } from "@marigold/system";
|
|
|
9530
9422
|
import { jsxs as jsxs32 } from "react/jsx-runtime";
|
|
9531
9423
|
var NavigationButton = (props) => {
|
|
9532
9424
|
const ref = useRef7(null);
|
|
9533
|
-
const
|
|
9425
|
+
const { navigationButton } = useClassNames52({
|
|
9534
9426
|
component: "Pagination"
|
|
9535
9427
|
});
|
|
9536
9428
|
let { buttonProps } = useButton2(props, ref);
|
|
@@ -9550,7 +9442,7 @@ var NavigationButton = (props) => {
|
|
|
9550
9442
|
...buttonProps,
|
|
9551
9443
|
...rest,
|
|
9552
9444
|
disabled: isDisabled,
|
|
9553
|
-
className: cn52(
|
|
9445
|
+
className: cn52(navigationButton, controlLabel && "w-24 px-2"),
|
|
9554
9446
|
"data-selected": isSelected,
|
|
9555
9447
|
children: [
|
|
9556
9448
|
position2 === "left" && children,
|
|
@@ -9565,22 +9457,22 @@ var NavigationButton = (props) => {
|
|
|
9565
9457
|
import { useRef as useRef8 } from "react";
|
|
9566
9458
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
9567
9459
|
import { useClassNames as useClassNames53 } from "@marigold/system";
|
|
9568
|
-
import { jsx as
|
|
9460
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
9569
9461
|
var PageButton = (props) => {
|
|
9570
9462
|
const ref = useRef8(null);
|
|
9571
|
-
const
|
|
9463
|
+
const { pageButton } = useClassNames53({
|
|
9572
9464
|
component: "Pagination"
|
|
9573
9465
|
});
|
|
9574
9466
|
let { buttonProps } = useButton3(props, ref);
|
|
9575
9467
|
let { page, selected, isDisabled } = props;
|
|
9576
|
-
return /* @__PURE__ */
|
|
9468
|
+
return /* @__PURE__ */ jsx90(
|
|
9577
9469
|
"button",
|
|
9578
9470
|
{
|
|
9579
9471
|
ref,
|
|
9580
9472
|
...buttonProps,
|
|
9581
9473
|
"aria-label": `Page ${page}`,
|
|
9582
9474
|
"aria-current": selected ? "page" : void 0,
|
|
9583
|
-
className:
|
|
9475
|
+
className: pageButton,
|
|
9584
9476
|
"data-selected": selected,
|
|
9585
9477
|
disabled: isDisabled,
|
|
9586
9478
|
tabIndex: selected === true ? 0 : -1,
|
|
@@ -9620,7 +9512,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9620
9512
|
};
|
|
9621
9513
|
|
|
9622
9514
|
// src/Pagination/Pagination.tsx
|
|
9623
|
-
import { Fragment as Fragment8, jsx as
|
|
9515
|
+
import { Fragment as Fragment8, jsx as jsx91, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
9624
9516
|
var InnerPagination = ({
|
|
9625
9517
|
currentPage,
|
|
9626
9518
|
pageSize,
|
|
@@ -9634,7 +9526,7 @@ var InnerPagination = ({
|
|
|
9634
9526
|
const isFirstPage = currentPage === 1;
|
|
9635
9527
|
const isLastPage = currentPage === totalPages || totalPages === 0;
|
|
9636
9528
|
const isFirstRender = useRef9(true);
|
|
9637
|
-
|
|
9529
|
+
useEffect3(() => {
|
|
9638
9530
|
if (isFirstRender.current) {
|
|
9639
9531
|
isFirstRender.current = false;
|
|
9640
9532
|
return;
|
|
@@ -9647,7 +9539,9 @@ var InnerPagination = ({
|
|
|
9647
9539
|
onChange2(newPage);
|
|
9648
9540
|
}
|
|
9649
9541
|
};
|
|
9650
|
-
const
|
|
9542
|
+
const { icon, container } = useClassNames54({
|
|
9543
|
+
component: "Pagination"
|
|
9544
|
+
});
|
|
9651
9545
|
const handleKeyDown = (onEnter) => (e) => {
|
|
9652
9546
|
if (e.key === "ArrowRight") {
|
|
9653
9547
|
e.preventDefault();
|
|
@@ -9661,7 +9555,7 @@ var InnerPagination = ({
|
|
|
9661
9555
|
}
|
|
9662
9556
|
};
|
|
9663
9557
|
return /* @__PURE__ */ jsxs33(Fragment8, { children: [
|
|
9664
|
-
/* @__PURE__ */
|
|
9558
|
+
/* @__PURE__ */ jsx91(
|
|
9665
9559
|
NavigationButton,
|
|
9666
9560
|
{
|
|
9667
9561
|
onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
|
|
@@ -9670,11 +9564,11 @@ var InnerPagination = ({
|
|
|
9670
9564
|
controlLabel: controlLabels == null ? void 0 : controlLabels[0],
|
|
9671
9565
|
position: "left",
|
|
9672
9566
|
onKeyDown: handleKeyDown(() => handlePageChange(currentPage - 1)),
|
|
9673
|
-
children: /* @__PURE__ */
|
|
9567
|
+
children: /* @__PURE__ */ jsx91(ChevronLeft, { className: icon })
|
|
9674
9568
|
}
|
|
9675
9569
|
),
|
|
9676
|
-
/* @__PURE__ */
|
|
9677
|
-
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */
|
|
9570
|
+
/* @__PURE__ */ jsx91("div", { className: container, children: totalPages > 0 ? pageRange.map(
|
|
9571
|
+
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ jsx91(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ jsx91(
|
|
9678
9572
|
PageButton,
|
|
9679
9573
|
{
|
|
9680
9574
|
page: pageNumber,
|
|
@@ -9684,8 +9578,8 @@ var InnerPagination = ({
|
|
|
9684
9578
|
},
|
|
9685
9579
|
pageNumber
|
|
9686
9580
|
)
|
|
9687
|
-
) : /* @__PURE__ */
|
|
9688
|
-
/* @__PURE__ */
|
|
9581
|
+
) : /* @__PURE__ */ jsx91(PageButton, { page: 1, isDisabled: true }, 1) }),
|
|
9582
|
+
/* @__PURE__ */ jsx91(
|
|
9689
9583
|
NavigationButton,
|
|
9690
9584
|
{
|
|
9691
9585
|
onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
|
|
@@ -9694,7 +9588,7 @@ var InnerPagination = ({
|
|
|
9694
9588
|
controlLabel: controlLabels == null ? void 0 : controlLabels[1],
|
|
9695
9589
|
position: "right",
|
|
9696
9590
|
onKeyDown: handleKeyDown(() => handlePageChange(currentPage + 1)),
|
|
9697
|
-
children: /* @__PURE__ */
|
|
9591
|
+
children: /* @__PURE__ */ jsx91(ChevronRight, { className: icon })
|
|
9698
9592
|
}
|
|
9699
9593
|
)
|
|
9700
9594
|
] });
|
|
@@ -9709,12 +9603,13 @@ var _Pagination = ({
|
|
|
9709
9603
|
const [currentPage, setCurrentPage] = useState5(page != null ? page : defaultPage);
|
|
9710
9604
|
const totalPages = Math.ceil(totalItems / pageSize);
|
|
9711
9605
|
const pageRange = usePageRange({ currentPage, totalPages });
|
|
9712
|
-
|
|
9606
|
+
const { container } = useClassNames54({ component: "Pagination" });
|
|
9607
|
+
return /* @__PURE__ */ jsx91(
|
|
9713
9608
|
"nav",
|
|
9714
9609
|
{
|
|
9715
|
-
className:
|
|
9610
|
+
className: container,
|
|
9716
9611
|
"aria-label": `Page ${currentPage} of ${totalPages}`,
|
|
9717
|
-
children: /* @__PURE__ */
|
|
9612
|
+
children: /* @__PURE__ */ jsx91(FocusScope2, { restoreFocus: true, children: /* @__PURE__ */ jsx91(
|
|
9718
9613
|
InnerPagination,
|
|
9719
9614
|
{
|
|
9720
9615
|
pageSize,
|
|
@@ -9729,6 +9624,41 @@ var _Pagination = ({
|
|
|
9729
9624
|
);
|
|
9730
9625
|
};
|
|
9731
9626
|
|
|
9627
|
+
// src/Provider/index.ts
|
|
9628
|
+
import { useTheme, ThemeProvider as ThemeProvider2 } from "@marigold/system";
|
|
9629
|
+
import { I18nProvider } from "@react-aria/i18n";
|
|
9630
|
+
|
|
9631
|
+
// src/Provider/MarigoldProvider.tsx
|
|
9632
|
+
import { ThemeProvider } from "@marigold/system";
|
|
9633
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
9634
|
+
function MarigoldProvider({
|
|
9635
|
+
children,
|
|
9636
|
+
className,
|
|
9637
|
+
theme
|
|
9638
|
+
}) {
|
|
9639
|
+
return /* @__PURE__ */ jsx92(ThemeProvider, { theme, className, children });
|
|
9640
|
+
}
|
|
9641
|
+
|
|
9642
|
+
// src/Provider/OverlayContainerProvider.tsx
|
|
9643
|
+
import { UNSAFE_PortalProvider as PortalProvider } from "@react-aria/overlays";
|
|
9644
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
9645
|
+
var getContainer = (container) => () => {
|
|
9646
|
+
if (container) {
|
|
9647
|
+
const element = document.getElementById(container);
|
|
9648
|
+
if (!element) {
|
|
9649
|
+
console.warn(
|
|
9650
|
+
`OverlayContainerProvider: Container with id "${container}" not found.`
|
|
9651
|
+
);
|
|
9652
|
+
}
|
|
9653
|
+
return element;
|
|
9654
|
+
}
|
|
9655
|
+
return null;
|
|
9656
|
+
};
|
|
9657
|
+
var OverlayContainerProvider = ({
|
|
9658
|
+
container,
|
|
9659
|
+
children
|
|
9660
|
+
}) => /* @__PURE__ */ jsx93(PortalProvider, { getContainer: getContainer(container), children });
|
|
9661
|
+
|
|
9732
9662
|
// src/Radio/Radio.tsx
|
|
9733
9663
|
import {
|
|
9734
9664
|
forwardRef as forwardRef26
|
|
@@ -9737,16 +9667,16 @@ import { Radio } from "react-aria-components";
|
|
|
9737
9667
|
import { cn as cn54, useClassNames as useClassNames56 } from "@marigold/system";
|
|
9738
9668
|
|
|
9739
9669
|
// src/Radio/Context.ts
|
|
9740
|
-
import { createContext as
|
|
9741
|
-
var RadioGroupContext =
|
|
9670
|
+
import { createContext as createContext11, useContext as useContext21 } from "react";
|
|
9671
|
+
var RadioGroupContext = createContext11(
|
|
9742
9672
|
null
|
|
9743
9673
|
);
|
|
9744
|
-
var useRadioGroupContext = () =>
|
|
9674
|
+
var useRadioGroupContext = () => useContext21(RadioGroupContext);
|
|
9745
9675
|
|
|
9746
9676
|
// src/Radio/RadioGroup.tsx
|
|
9747
9677
|
import { RadioGroup } from "react-aria-components";
|
|
9748
9678
|
import { cn as cn53, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9749
|
-
import { jsx as
|
|
9679
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
9750
9680
|
var _RadioGroup = ({
|
|
9751
9681
|
variant,
|
|
9752
9682
|
size: size2,
|
|
@@ -9770,7 +9700,7 @@ var _RadioGroup = ({
|
|
|
9770
9700
|
isInvalid: error,
|
|
9771
9701
|
...rest
|
|
9772
9702
|
};
|
|
9773
|
-
return /* @__PURE__ */
|
|
9703
|
+
return /* @__PURE__ */ jsx94(
|
|
9774
9704
|
FieldBase,
|
|
9775
9705
|
{
|
|
9776
9706
|
as: RadioGroup,
|
|
@@ -9781,7 +9711,7 @@ var _RadioGroup = ({
|
|
|
9781
9711
|
variant,
|
|
9782
9712
|
size: size2,
|
|
9783
9713
|
...props,
|
|
9784
|
-
children: /* @__PURE__ */
|
|
9714
|
+
children: /* @__PURE__ */ jsx94(
|
|
9785
9715
|
"div",
|
|
9786
9716
|
{
|
|
9787
9717
|
role: "presentation",
|
|
@@ -9792,7 +9722,7 @@ var _RadioGroup = ({
|
|
|
9792
9722
|
"flex items-start",
|
|
9793
9723
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
9794
9724
|
),
|
|
9795
|
-
children: /* @__PURE__ */
|
|
9725
|
+
children: /* @__PURE__ */ jsx94(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children })
|
|
9796
9726
|
}
|
|
9797
9727
|
)
|
|
9798
9728
|
}
|
|
@@ -9800,9 +9730,9 @@ var _RadioGroup = ({
|
|
|
9800
9730
|
};
|
|
9801
9731
|
|
|
9802
9732
|
// src/Radio/Radio.tsx
|
|
9803
|
-
import { Fragment as Fragment9, jsx as
|
|
9804
|
-
var Dot = () => /* @__PURE__ */
|
|
9805
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */
|
|
9733
|
+
import { Fragment as Fragment9, jsx as jsx95, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9734
|
+
var Dot = () => /* @__PURE__ */ jsx95("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx95("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
9735
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx95(
|
|
9806
9736
|
"div",
|
|
9807
9737
|
{
|
|
9808
9738
|
className: cn54(
|
|
@@ -9811,7 +9741,7 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx94(
|
|
|
9811
9741
|
),
|
|
9812
9742
|
"aria-hidden": "true",
|
|
9813
9743
|
...props,
|
|
9814
|
-
children: checked ? /* @__PURE__ */
|
|
9744
|
+
children: checked ? /* @__PURE__ */ jsx95(Dot, {}) : null
|
|
9815
9745
|
}
|
|
9816
9746
|
);
|
|
9817
9747
|
var _Radio = forwardRef26(
|
|
@@ -9822,7 +9752,7 @@ var _Radio = forwardRef26(
|
|
|
9822
9752
|
variant: variant || props.variant,
|
|
9823
9753
|
size: size2 || props.size
|
|
9824
9754
|
});
|
|
9825
|
-
return /* @__PURE__ */
|
|
9755
|
+
return /* @__PURE__ */ jsx95(
|
|
9826
9756
|
Radio,
|
|
9827
9757
|
{
|
|
9828
9758
|
ref,
|
|
@@ -9836,7 +9766,7 @@ var _Radio = forwardRef26(
|
|
|
9836
9766
|
isDisabled: disabled,
|
|
9837
9767
|
...props,
|
|
9838
9768
|
children: ({ isSelected }) => /* @__PURE__ */ jsxs34(Fragment9, { children: [
|
|
9839
|
-
/* @__PURE__ */
|
|
9769
|
+
/* @__PURE__ */ jsx95(
|
|
9840
9770
|
Icon3,
|
|
9841
9771
|
{
|
|
9842
9772
|
checked: isSelected,
|
|
@@ -9846,7 +9776,7 @@ var _Radio = forwardRef26(
|
|
|
9846
9776
|
)
|
|
9847
9777
|
}
|
|
9848
9778
|
),
|
|
9849
|
-
/* @__PURE__ */
|
|
9779
|
+
/* @__PURE__ */ jsx95("div", { className: classNames3.label, children })
|
|
9850
9780
|
] })
|
|
9851
9781
|
}
|
|
9852
9782
|
);
|
|
@@ -9857,7 +9787,7 @@ _Radio.Group = _RadioGroup;
|
|
|
9857
9787
|
// src/SearchField/SearchField.tsx
|
|
9858
9788
|
import { forwardRef as forwardRef27 } from "react";
|
|
9859
9789
|
import { SearchField } from "react-aria-components";
|
|
9860
|
-
import { jsx as
|
|
9790
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
9861
9791
|
var _SearchField = forwardRef27(
|
|
9862
9792
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
9863
9793
|
const props = {
|
|
@@ -9867,7 +9797,7 @@ var _SearchField = forwardRef27(
|
|
|
9867
9797
|
isReadOnly: readOnly,
|
|
9868
9798
|
isInvalid: error
|
|
9869
9799
|
};
|
|
9870
|
-
return /* @__PURE__ */
|
|
9800
|
+
return /* @__PURE__ */ jsx96(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx96(
|
|
9871
9801
|
SearchInput,
|
|
9872
9802
|
{
|
|
9873
9803
|
ref,
|
|
@@ -9883,7 +9813,7 @@ import {
|
|
|
9883
9813
|
} from "react";
|
|
9884
9814
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9885
9815
|
import { cn as cn55, useClassNames as useClassNames57 } from "@marigold/system";
|
|
9886
|
-
import { jsx as
|
|
9816
|
+
import { jsx as jsx97, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
9887
9817
|
var _Select = forwardRef28(
|
|
9888
9818
|
({
|
|
9889
9819
|
disabled,
|
|
@@ -9914,12 +9844,12 @@ var _Select = forwardRef28(
|
|
|
9914
9844
|
classNames3.select
|
|
9915
9845
|
),
|
|
9916
9846
|
children: [
|
|
9917
|
-
/* @__PURE__ */
|
|
9918
|
-
/* @__PURE__ */
|
|
9847
|
+
/* @__PURE__ */ jsx97(SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
9848
|
+
/* @__PURE__ */ jsx97(ChevronDown, { className: cn55("size-4", classNames3.icon) })
|
|
9919
9849
|
]
|
|
9920
9850
|
}
|
|
9921
9851
|
),
|
|
9922
|
-
/* @__PURE__ */
|
|
9852
|
+
/* @__PURE__ */ jsx97(_Popover, { children: /* @__PURE__ */ jsx97(_ListBox, { items, children: props.children }) })
|
|
9923
9853
|
] });
|
|
9924
9854
|
}
|
|
9925
9855
|
);
|
|
@@ -9934,22 +9864,22 @@ import { GridList as SelectList } from "react-aria-components";
|
|
|
9934
9864
|
import { cn as cn57, useClassNames as useClassNames58 } from "@marigold/system";
|
|
9935
9865
|
|
|
9936
9866
|
// src/SelectList/Context.ts
|
|
9937
|
-
import { createContext as
|
|
9938
|
-
var SelectListContext =
|
|
9867
|
+
import { createContext as createContext12, useContext as useContext22 } from "react";
|
|
9868
|
+
var SelectListContext = createContext12(
|
|
9939
9869
|
{}
|
|
9940
9870
|
);
|
|
9941
|
-
var useSelectListContext = () =>
|
|
9871
|
+
var useSelectListContext = () => useContext22(SelectListContext);
|
|
9942
9872
|
|
|
9943
9873
|
// src/SelectList/SelectListAction.tsx
|
|
9944
|
-
import { jsx as
|
|
9945
|
-
var SelectListAction = ({ children }) => /* @__PURE__ */
|
|
9874
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
9875
|
+
var SelectListAction = ({ children }) => /* @__PURE__ */ jsx98("div", { className: "order-last", children });
|
|
9946
9876
|
|
|
9947
9877
|
// src/SelectList/SelectListItem.tsx
|
|
9948
9878
|
import { forwardRef as forwardRef29 } from "react";
|
|
9949
9879
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
9950
9880
|
import { cn as cn56 } from "@marigold/system";
|
|
9951
|
-
import { jsx as
|
|
9952
|
-
var CheckMark3 = ({ className }) => /* @__PURE__ */
|
|
9881
|
+
import { jsx as jsx99, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9882
|
+
var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx99("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx99(
|
|
9953
9883
|
"path",
|
|
9954
9884
|
{
|
|
9955
9885
|
fill: "currentColor",
|
|
@@ -9960,10 +9890,10 @@ var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx98("svg", { width: "12px"
|
|
|
9960
9890
|
var SelectionIndicator = ({ selectionMode }) => {
|
|
9961
9891
|
switch (selectionMode) {
|
|
9962
9892
|
case "multiple": {
|
|
9963
|
-
return /* @__PURE__ */
|
|
9893
|
+
return /* @__PURE__ */ jsx99(_Checkbox, { slot: "selection" });
|
|
9964
9894
|
}
|
|
9965
9895
|
case "single": {
|
|
9966
|
-
return /* @__PURE__ */
|
|
9896
|
+
return /* @__PURE__ */ jsx99(CheckMark3, { className: "invisible hidden" });
|
|
9967
9897
|
}
|
|
9968
9898
|
}
|
|
9969
9899
|
};
|
|
@@ -9971,7 +9901,7 @@ var _SelectListItem = forwardRef29(
|
|
|
9971
9901
|
({ children, disabled, ...props }, ref) => {
|
|
9972
9902
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9973
9903
|
const { classNames: classNames3 } = useSelectListContext();
|
|
9974
|
-
return /* @__PURE__ */
|
|
9904
|
+
return /* @__PURE__ */ jsx99(
|
|
9975
9905
|
SelectListItem,
|
|
9976
9906
|
{
|
|
9977
9907
|
isDisabled: disabled,
|
|
@@ -9983,7 +9913,7 @@ var _SelectListItem = forwardRef29(
|
|
|
9983
9913
|
),
|
|
9984
9914
|
ref,
|
|
9985
9915
|
children: ({ selectionMode }) => /* @__PURE__ */ jsxs36("div", { className: "selection-indicator contents", children: [
|
|
9986
|
-
/* @__PURE__ */
|
|
9916
|
+
/* @__PURE__ */ jsx99(SelectionIndicator, { selectionMode }),
|
|
9987
9917
|
children
|
|
9988
9918
|
] })
|
|
9989
9919
|
}
|
|
@@ -9992,7 +9922,7 @@ var _SelectListItem = forwardRef29(
|
|
|
9992
9922
|
);
|
|
9993
9923
|
|
|
9994
9924
|
// src/SelectList/SelectList.tsx
|
|
9995
|
-
import { jsx as
|
|
9925
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
9996
9926
|
var _SelectList = forwardRef30(
|
|
9997
9927
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9998
9928
|
const classNames3 = useClassNames58({ component: "ListBox" });
|
|
@@ -10000,7 +9930,7 @@ var _SelectList = forwardRef30(
|
|
|
10000
9930
|
onSelectionChange: onChange2,
|
|
10001
9931
|
...rest
|
|
10002
9932
|
};
|
|
10003
|
-
return /* @__PURE__ */
|
|
9933
|
+
return /* @__PURE__ */ jsx100(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx100("div", { className: classNames3.container, children: /* @__PURE__ */ jsx100(
|
|
10004
9934
|
SelectList,
|
|
10005
9935
|
{
|
|
10006
9936
|
...props,
|
|
@@ -10020,17 +9950,20 @@ _SelectList.Action = SelectListAction;
|
|
|
10020
9950
|
|
|
10021
9951
|
// src/Scrollable/Scrollable.tsx
|
|
10022
9952
|
import { cn as cn58, createVar as createVar6, width as twWidth3 } from "@marigold/system";
|
|
10023
|
-
import { jsx as
|
|
9953
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
10024
9954
|
var Scrollable = ({
|
|
10025
9955
|
children,
|
|
10026
9956
|
width = "full",
|
|
10027
9957
|
height,
|
|
10028
9958
|
...props
|
|
10029
|
-
}) => /* @__PURE__ */
|
|
9959
|
+
}) => /* @__PURE__ */ jsx101(
|
|
10030
9960
|
"div",
|
|
10031
9961
|
{
|
|
10032
9962
|
...props,
|
|
10033
|
-
className: cn58([
|
|
9963
|
+
className: cn58([
|
|
9964
|
+
"sticky h-(--height) overflow-auto overscroll-none",
|
|
9965
|
+
twWidth3[width]
|
|
9966
|
+
]),
|
|
10034
9967
|
style: createVar6({ height }),
|
|
10035
9968
|
children
|
|
10036
9969
|
}
|
|
@@ -10049,7 +9982,7 @@ import {
|
|
|
10049
9982
|
width as twWidth4,
|
|
10050
9983
|
useClassNames as useClassNames59
|
|
10051
9984
|
} from "@marigold/system";
|
|
10052
|
-
import { Fragment as Fragment10, jsx as
|
|
9985
|
+
import { Fragment as Fragment10, jsx as jsx102, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10053
9986
|
var _Slider = forwardRef31(
|
|
10054
9987
|
({
|
|
10055
9988
|
thumbLabels,
|
|
@@ -10081,14 +10014,14 @@ var _Slider = forwardRef31(
|
|
|
10081
10014
|
ref,
|
|
10082
10015
|
...props,
|
|
10083
10016
|
children: [
|
|
10084
|
-
label && /* @__PURE__ */
|
|
10085
|
-
/* @__PURE__ */
|
|
10086
|
-
/* @__PURE__ */
|
|
10017
|
+
label && /* @__PURE__ */ jsx102(_Label, { children: label }),
|
|
10018
|
+
/* @__PURE__ */ jsx102(SliderOutput, { className: cn59("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
10019
|
+
/* @__PURE__ */ jsx102(
|
|
10087
10020
|
SliderTrack,
|
|
10088
10021
|
{
|
|
10089
10022
|
className: cn59("relative col-span-2 h-2 w-full", classNames3.track),
|
|
10090
10023
|
children: ({ state }) => /* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
10091
|
-
/* @__PURE__ */
|
|
10024
|
+
/* @__PURE__ */ jsx102(
|
|
10092
10025
|
"div",
|
|
10093
10026
|
{
|
|
10094
10027
|
className: cn59(
|
|
@@ -10097,7 +10030,7 @@ var _Slider = forwardRef31(
|
|
|
10097
10030
|
)
|
|
10098
10031
|
}
|
|
10099
10032
|
),
|
|
10100
|
-
/* @__PURE__ */
|
|
10033
|
+
/* @__PURE__ */ jsx102(
|
|
10101
10034
|
"div",
|
|
10102
10035
|
{
|
|
10103
10036
|
className: cn59(
|
|
@@ -10110,7 +10043,7 @@ var _Slider = forwardRef31(
|
|
|
10110
10043
|
}
|
|
10111
10044
|
}
|
|
10112
10045
|
),
|
|
10113
|
-
state.values.map((_, i) => /* @__PURE__ */
|
|
10046
|
+
state.values.map((_, i) => /* @__PURE__ */ jsx102(
|
|
10114
10047
|
SliderThumb,
|
|
10115
10048
|
{
|
|
10116
10049
|
className: cn59("top-1/2 cursor-pointer", classNames3.thumb),
|
|
@@ -10130,13 +10063,13 @@ var _Slider = forwardRef31(
|
|
|
10130
10063
|
);
|
|
10131
10064
|
|
|
10132
10065
|
// src/Split/Split.tsx
|
|
10133
|
-
import { jsx as
|
|
10134
|
-
var Split = () => /* @__PURE__ */
|
|
10066
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
10067
|
+
var Split = () => /* @__PURE__ */ jsx103("div", { role: "separator", className: "grow" });
|
|
10135
10068
|
|
|
10136
10069
|
// src/Stack/Stack.tsx
|
|
10137
10070
|
import { Children as Children3 } from "react";
|
|
10138
10071
|
import { alignment as alignment3, cn as cn60, gapSpace as gapSpace8 } from "@marigold/system";
|
|
10139
|
-
import { jsx as
|
|
10072
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
10140
10073
|
var Stack = ({
|
|
10141
10074
|
children,
|
|
10142
10075
|
space = 0,
|
|
@@ -10148,8 +10081,8 @@ var Stack = ({
|
|
|
10148
10081
|
}) => {
|
|
10149
10082
|
var _a, _b, _c, _d;
|
|
10150
10083
|
const Component2 = asList ? "ul" : "div";
|
|
10151
|
-
const stackChildren = asList ? Children3.map(children, (child) => child != null ? /* @__PURE__ */
|
|
10152
|
-
return /* @__PURE__ */
|
|
10084
|
+
const stackChildren = asList ? Children3.map(children, (child) => child != null ? /* @__PURE__ */ jsx104("li", { children: child }) : null) : children;
|
|
10085
|
+
return /* @__PURE__ */ jsx104(
|
|
10153
10086
|
Component2,
|
|
10154
10087
|
{
|
|
10155
10088
|
className: cn60(
|
|
@@ -10173,7 +10106,7 @@ import {
|
|
|
10173
10106
|
width as twWidth5,
|
|
10174
10107
|
useClassNames as useClassNames60
|
|
10175
10108
|
} from "@marigold/system";
|
|
10176
|
-
import { jsx as
|
|
10109
|
+
import { jsx as jsx105, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10177
10110
|
var _Switch = forwardRef32(
|
|
10178
10111
|
({
|
|
10179
10112
|
variant,
|
|
@@ -10204,8 +10137,8 @@ var _Switch = forwardRef32(
|
|
|
10204
10137
|
classNames3.container
|
|
10205
10138
|
),
|
|
10206
10139
|
children: [
|
|
10207
|
-
label && /* @__PURE__ */
|
|
10208
|
-
/* @__PURE__ */
|
|
10140
|
+
label && /* @__PURE__ */ jsx105(_Label, { elementType: "span", children: label }),
|
|
10141
|
+
/* @__PURE__ */ jsx105("div", { className: "relative", children: /* @__PURE__ */ jsx105("div", { className: classNames3.track, children: /* @__PURE__ */ jsx105("div", { className: classNames3.thumb }) }) })
|
|
10209
10142
|
]
|
|
10210
10143
|
}
|
|
10211
10144
|
);
|
|
@@ -10226,13 +10159,13 @@ import {
|
|
|
10226
10159
|
import { cn as cn67, useClassNames as useClassNames62 } from "@marigold/system";
|
|
10227
10160
|
|
|
10228
10161
|
// src/Table/Context.tsx
|
|
10229
|
-
import { createContext as
|
|
10230
|
-
var TableContext =
|
|
10231
|
-
var useTableContext = () =>
|
|
10162
|
+
import { createContext as createContext13, useContext as useContext23 } from "react";
|
|
10163
|
+
var TableContext = createContext13({});
|
|
10164
|
+
var useTableContext = () => useContext23(TableContext);
|
|
10232
10165
|
|
|
10233
10166
|
// src/Table/TableBody.tsx
|
|
10234
10167
|
import { useTableRowGroup } from "@react-aria/table";
|
|
10235
|
-
import { jsx as
|
|
10168
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10236
10169
|
var TableBody = ({
|
|
10237
10170
|
children,
|
|
10238
10171
|
className,
|
|
@@ -10241,7 +10174,7 @@ var TableBody = ({
|
|
|
10241
10174
|
const { rowGroupProps } = useTableRowGroup();
|
|
10242
10175
|
const { state, classNames: classNames3 } = useTableContext();
|
|
10243
10176
|
if (state.collection.size === 0 && emptyState) {
|
|
10244
|
-
return /* @__PURE__ */
|
|
10177
|
+
return /* @__PURE__ */ jsx106("tbody", { className, children: /* @__PURE__ */ jsx106("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", children: /* @__PURE__ */ jsx106(
|
|
10245
10178
|
"td",
|
|
10246
10179
|
{
|
|
10247
10180
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
@@ -10251,7 +10184,7 @@ var TableBody = ({
|
|
|
10251
10184
|
}
|
|
10252
10185
|
) }) });
|
|
10253
10186
|
}
|
|
10254
|
-
return /* @__PURE__ */
|
|
10187
|
+
return /* @__PURE__ */ jsx106("tbody", { ...rowGroupProps, className, children });
|
|
10255
10188
|
};
|
|
10256
10189
|
|
|
10257
10190
|
// src/Table/TableCell.tsx
|
|
@@ -10260,7 +10193,7 @@ import { useFocusRing } from "@react-aria/focus";
|
|
|
10260
10193
|
import { useTableCell } from "@react-aria/table";
|
|
10261
10194
|
import { mergeProps as mergeProps2 } from "@react-aria/utils";
|
|
10262
10195
|
import { useStateProps } from "@marigold/system";
|
|
10263
|
-
import { jsx as
|
|
10196
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
10264
10197
|
var TableCell = ({
|
|
10265
10198
|
cell,
|
|
10266
10199
|
align = "left",
|
|
@@ -10287,7 +10220,7 @@ var TableCell = ({
|
|
|
10287
10220
|
};
|
|
10288
10221
|
const { focusProps, isFocusVisible } = useFocusRing();
|
|
10289
10222
|
const stateProps = useStateProps({ disabled, focusVisible: isFocusVisible });
|
|
10290
|
-
return /* @__PURE__ */
|
|
10223
|
+
return /* @__PURE__ */ jsx107(
|
|
10291
10224
|
"td",
|
|
10292
10225
|
{
|
|
10293
10226
|
ref,
|
|
@@ -10329,7 +10262,7 @@ var mapCheckboxProps = ({
|
|
|
10329
10262
|
};
|
|
10330
10263
|
|
|
10331
10264
|
// src/Table/TableCheckboxCell.tsx
|
|
10332
|
-
import { jsx as
|
|
10265
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
10333
10266
|
var TableCheckboxCell = ({
|
|
10334
10267
|
cell,
|
|
10335
10268
|
alignY = "middle"
|
|
@@ -10349,7 +10282,7 @@ var TableCheckboxCell = ({
|
|
|
10349
10282
|
);
|
|
10350
10283
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
10351
10284
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
10352
|
-
return /* @__PURE__ */
|
|
10285
|
+
return /* @__PURE__ */ jsx108(
|
|
10353
10286
|
"td",
|
|
10354
10287
|
{
|
|
10355
10288
|
ref,
|
|
@@ -10357,7 +10290,7 @@ var TableCheckboxCell = ({
|
|
|
10357
10290
|
...mergeProps3(gridCellProps, focusProps),
|
|
10358
10291
|
...stateProps,
|
|
10359
10292
|
valign: alignY,
|
|
10360
|
-
children: /* @__PURE__ */
|
|
10293
|
+
children: /* @__PURE__ */ jsx108(_Checkbox, { ...checkboxProps })
|
|
10361
10294
|
}
|
|
10362
10295
|
);
|
|
10363
10296
|
};
|
|
@@ -10369,7 +10302,7 @@ import { useHover } from "@react-aria/interactions";
|
|
|
10369
10302
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
10370
10303
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
10371
10304
|
import { cn as cn63, width as twWidth6, useStateProps as useStateProps3 } from "@marigold/system";
|
|
10372
|
-
import { jsx as
|
|
10305
|
+
import { jsx as jsx109, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
10373
10306
|
var TableColumnHeader = ({
|
|
10374
10307
|
column: column2,
|
|
10375
10308
|
width = "auto",
|
|
@@ -10402,7 +10335,7 @@ var TableColumnHeader = ({
|
|
|
10402
10335
|
align,
|
|
10403
10336
|
children: [
|
|
10404
10337
|
column2.rendered,
|
|
10405
|
-
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
10338
|
+
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx109(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx109(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx109("span", { className: "hidden", children: /* @__PURE__ */ jsx109(SortDown, { className: "inline-block" }) }))
|
|
10406
10339
|
]
|
|
10407
10340
|
}
|
|
10408
10341
|
);
|
|
@@ -10411,11 +10344,11 @@ var TableColumnHeader = ({
|
|
|
10411
10344
|
// src/Table/TableHeader.tsx
|
|
10412
10345
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
10413
10346
|
import { cn as cn64 } from "@marigold/system";
|
|
10414
|
-
import { jsx as
|
|
10347
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
10415
10348
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
10416
10349
|
const { rowGroupProps } = useTableRowGroup2();
|
|
10417
10350
|
const { classNames: classNames3 } = useTableContext();
|
|
10418
|
-
return /* @__PURE__ */
|
|
10351
|
+
return /* @__PURE__ */ jsx110(
|
|
10419
10352
|
"thead",
|
|
10420
10353
|
{
|
|
10421
10354
|
...rowGroupProps,
|
|
@@ -10432,7 +10365,7 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
10432
10365
|
// src/Table/TableHeaderRow.tsx
|
|
10433
10366
|
import { useRef as useRef13 } from "react";
|
|
10434
10367
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
10435
|
-
import { jsx as
|
|
10368
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
10436
10369
|
var TableHeaderRow = ({
|
|
10437
10370
|
item,
|
|
10438
10371
|
className,
|
|
@@ -10441,7 +10374,7 @@ var TableHeaderRow = ({
|
|
|
10441
10374
|
const { state } = useTableContext();
|
|
10442
10375
|
const ref = useRef13(null);
|
|
10443
10376
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
10444
|
-
return /* @__PURE__ */
|
|
10377
|
+
return /* @__PURE__ */ jsx111("tr", { ...rowProps, className, ref, children });
|
|
10445
10378
|
};
|
|
10446
10379
|
|
|
10447
10380
|
// src/Table/TableRow.tsx
|
|
@@ -10451,7 +10384,7 @@ import { useHover as useHover2 } from "@react-aria/interactions";
|
|
|
10451
10384
|
import { useTableRow } from "@react-aria/table";
|
|
10452
10385
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10453
10386
|
import { cn as cn65, useClassNames as useClassNames61, useStateProps as useStateProps4 } from "@marigold/system";
|
|
10454
|
-
import { jsx as
|
|
10387
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
10455
10388
|
var TableRow = ({ children, row }) => {
|
|
10456
10389
|
const ref = useRef14(null);
|
|
10457
10390
|
const { interactive, state, ...ctx } = useTableContext();
|
|
@@ -10481,7 +10414,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10481
10414
|
focusVisible: isFocusVisible,
|
|
10482
10415
|
active: isPressed
|
|
10483
10416
|
});
|
|
10484
|
-
return /* @__PURE__ */
|
|
10417
|
+
return /* @__PURE__ */ jsx112(
|
|
10485
10418
|
"tr",
|
|
10486
10419
|
{
|
|
10487
10420
|
ref,
|
|
@@ -10512,7 +10445,7 @@ import {
|
|
|
10512
10445
|
width as twWidth7,
|
|
10513
10446
|
useStateProps as useStateProps5
|
|
10514
10447
|
} from "@marigold/system";
|
|
10515
|
-
import { jsx as
|
|
10448
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
10516
10449
|
var TableSelectAllCell = ({
|
|
10517
10450
|
column: column2,
|
|
10518
10451
|
width = "auto",
|
|
@@ -10534,7 +10467,7 @@ var TableSelectAllCell = ({
|
|
|
10534
10467
|
hover: isHovered,
|
|
10535
10468
|
focusVisible: isFocusVisible
|
|
10536
10469
|
});
|
|
10537
|
-
return /* @__PURE__ */
|
|
10470
|
+
return /* @__PURE__ */ jsx113(
|
|
10538
10471
|
"th",
|
|
10539
10472
|
{
|
|
10540
10473
|
ref,
|
|
@@ -10542,13 +10475,13 @@ var TableSelectAllCell = ({
|
|
|
10542
10475
|
...mergeProps6(columnHeaderProps, hoverProps, focusProps),
|
|
10543
10476
|
...stateProps,
|
|
10544
10477
|
align,
|
|
10545
|
-
children: /* @__PURE__ */
|
|
10478
|
+
children: /* @__PURE__ */ jsx113(_Checkbox, { ...checkboxProps })
|
|
10546
10479
|
}
|
|
10547
10480
|
);
|
|
10548
10481
|
};
|
|
10549
10482
|
|
|
10550
10483
|
// src/Table/Table.tsx
|
|
10551
|
-
import { jsx as
|
|
10484
|
+
import { jsx as jsx114, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10552
10485
|
var Table = ({
|
|
10553
10486
|
variant,
|
|
10554
10487
|
size: size2,
|
|
@@ -10578,7 +10511,7 @@ var Table = ({
|
|
|
10578
10511
|
size: size2
|
|
10579
10512
|
});
|
|
10580
10513
|
const { collection } = state;
|
|
10581
|
-
return /* @__PURE__ */
|
|
10514
|
+
return /* @__PURE__ */ jsx114(
|
|
10582
10515
|
TableContext.Provider,
|
|
10583
10516
|
{
|
|
10584
10517
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
@@ -10587,14 +10520,18 @@ var Table = ({
|
|
|
10587
10520
|
{
|
|
10588
10521
|
ref: tableRef,
|
|
10589
10522
|
className: cn67(
|
|
10590
|
-
"group/table",
|
|
10591
|
-
|
|
10523
|
+
"group/table border-collapse",
|
|
10524
|
+
/**
|
|
10525
|
+
* Prevents wide tables from causing overlays to become scrollable on
|
|
10526
|
+
* small screens, ensuring overlays remain fixed as intended.
|
|
10527
|
+
*/
|
|
10528
|
+
'max-[600px]:[[aria-hidden="true"]_&]:overflow-hidden',
|
|
10592
10529
|
stretch ? "table w-full" : "block",
|
|
10593
10530
|
classNames3.table
|
|
10594
10531
|
),
|
|
10595
10532
|
...gridProps,
|
|
10596
10533
|
children: [
|
|
10597
|
-
/* @__PURE__ */
|
|
10534
|
+
/* @__PURE__ */ jsx114(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx114(
|
|
10598
10535
|
TableHeaderRow,
|
|
10599
10536
|
{
|
|
10600
10537
|
item: headerRow,
|
|
@@ -10602,7 +10539,7 @@ var Table = ({
|
|
|
10602
10539
|
children: [...collection.getChildren(headerRow.key)].map(
|
|
10603
10540
|
(column2) => {
|
|
10604
10541
|
var _a, _b, _c, _d, _e;
|
|
10605
|
-
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
10542
|
+
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx114(
|
|
10606
10543
|
TableSelectAllCell,
|
|
10607
10544
|
{
|
|
10608
10545
|
width: (_b = column2.props) == null ? void 0 : _b.width,
|
|
@@ -10610,7 +10547,7 @@ var Table = ({
|
|
|
10610
10547
|
align: (_c = column2.props) == null ? void 0 : _c.align
|
|
10611
10548
|
},
|
|
10612
10549
|
column2.key
|
|
10613
|
-
) : /* @__PURE__ */
|
|
10550
|
+
) : /* @__PURE__ */ jsx114(
|
|
10614
10551
|
TableColumnHeader,
|
|
10615
10552
|
{
|
|
10616
10553
|
width: (_d = column2.props) == null ? void 0 : _d.width,
|
|
@@ -10626,17 +10563,17 @@ var Table = ({
|
|
|
10626
10563
|
)) }),
|
|
10627
10564
|
/* @__PURE__ */ jsxs40(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10628
10565
|
...collection.rows.map(
|
|
10629
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
10566
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx114(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10630
10567
|
var _a, _b;
|
|
10631
10568
|
const currentColumn = collection.columns[index2];
|
|
10632
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
10569
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx114(
|
|
10633
10570
|
TableCheckboxCell,
|
|
10634
10571
|
{
|
|
10635
10572
|
cell,
|
|
10636
10573
|
alignY
|
|
10637
10574
|
},
|
|
10638
10575
|
cell.key
|
|
10639
|
-
) : /* @__PURE__ */
|
|
10576
|
+
) : /* @__PURE__ */ jsx114(
|
|
10640
10577
|
TableCell,
|
|
10641
10578
|
{
|
|
10642
10579
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -10672,7 +10609,7 @@ import {
|
|
|
10672
10609
|
textStyle,
|
|
10673
10610
|
useClassNames as useClassNames63
|
|
10674
10611
|
} from "@marigold/system";
|
|
10675
|
-
import { jsx as
|
|
10612
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
10676
10613
|
var _Text = ({
|
|
10677
10614
|
variant,
|
|
10678
10615
|
size: size2,
|
|
@@ -10693,7 +10630,7 @@ var _Text = ({
|
|
|
10693
10630
|
});
|
|
10694
10631
|
const Component2 = props.slot ? Text2 : as;
|
|
10695
10632
|
const elementType = props.slot ? { elementType: as } : {};
|
|
10696
|
-
return /* @__PURE__ */
|
|
10633
|
+
return /* @__PURE__ */ jsx115(
|
|
10697
10634
|
Component2,
|
|
10698
10635
|
{
|
|
10699
10636
|
...props,
|
|
@@ -10718,7 +10655,7 @@ var _Text = ({
|
|
|
10718
10655
|
import { forwardRef as forwardRef33 } from "react";
|
|
10719
10656
|
import { TextArea, TextField } from "react-aria-components";
|
|
10720
10657
|
import { useClassNames as useClassNames64 } from "@marigold/system";
|
|
10721
|
-
import { jsx as
|
|
10658
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
10722
10659
|
var _TextArea = forwardRef33(
|
|
10723
10660
|
({
|
|
10724
10661
|
variant,
|
|
@@ -10738,14 +10675,14 @@ var _TextArea = forwardRef33(
|
|
|
10738
10675
|
isRequired: required,
|
|
10739
10676
|
...rest
|
|
10740
10677
|
};
|
|
10741
|
-
return /* @__PURE__ */
|
|
10678
|
+
return /* @__PURE__ */ jsx116(FieldBase, { as: TextField, ...props, variant, size: size2, children: /* @__PURE__ */ jsx116(TextArea, { className: classNames3, ref, rows }) });
|
|
10742
10679
|
}
|
|
10743
10680
|
);
|
|
10744
10681
|
|
|
10745
10682
|
// src/TextField/TextField.tsx
|
|
10746
10683
|
import { forwardRef as forwardRef34 } from "react";
|
|
10747
10684
|
import { TextField as TextField2 } from "react-aria-components";
|
|
10748
|
-
import { jsx as
|
|
10685
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
10749
10686
|
var _TextField = forwardRef34(
|
|
10750
10687
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
10751
10688
|
const props = {
|
|
@@ -10755,13 +10692,13 @@ var _TextField = forwardRef34(
|
|
|
10755
10692
|
isRequired: required,
|
|
10756
10693
|
...rest
|
|
10757
10694
|
};
|
|
10758
|
-
return /* @__PURE__ */
|
|
10695
|
+
return /* @__PURE__ */ jsx117(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx117(_Input, { ref }) });
|
|
10759
10696
|
}
|
|
10760
10697
|
);
|
|
10761
10698
|
|
|
10762
10699
|
// src/Tiles/Tiles.tsx
|
|
10763
10700
|
import { cn as cn69, createVar as createVar7, gapSpace as gapSpace9 } from "@marigold/system";
|
|
10764
|
-
import { jsx as
|
|
10701
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
10765
10702
|
var Tiles = ({
|
|
10766
10703
|
space = 0,
|
|
10767
10704
|
stretch = false,
|
|
@@ -10774,7 +10711,7 @@ var Tiles = ({
|
|
|
10774
10711
|
if (stretch) {
|
|
10775
10712
|
column2 = `minmax(${column2}, 1fr)`;
|
|
10776
10713
|
}
|
|
10777
|
-
return /* @__PURE__ */
|
|
10714
|
+
return /* @__PURE__ */ jsx118(
|
|
10778
10715
|
"div",
|
|
10779
10716
|
{
|
|
10780
10717
|
...props,
|
|
@@ -10792,12 +10729,11 @@ var Tiles = ({
|
|
|
10792
10729
|
|
|
10793
10730
|
// src/Tooltip/Tooltip.tsx
|
|
10794
10731
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
10795
|
-
import { UNSAFE_PortalProvider as UNSAFE_PortalProvider3 } from "@react-aria/overlays";
|
|
10796
10732
|
import { cn as cn70, useClassNames as useClassNames65 } from "@marigold/system";
|
|
10797
10733
|
|
|
10798
10734
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10799
10735
|
import { TooltipTrigger } from "react-aria-components";
|
|
10800
|
-
import { jsx as
|
|
10736
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
10801
10737
|
var _TooltipTrigger = ({
|
|
10802
10738
|
delay = 1e3,
|
|
10803
10739
|
children,
|
|
@@ -10811,49 +10747,196 @@ var _TooltipTrigger = ({
|
|
|
10811
10747
|
isOpen: open,
|
|
10812
10748
|
delay
|
|
10813
10749
|
};
|
|
10814
|
-
return /* @__PURE__ */
|
|
10750
|
+
return /* @__PURE__ */ jsx119(TooltipTrigger, { ...props, children });
|
|
10815
10751
|
};
|
|
10816
10752
|
|
|
10817
10753
|
// src/Tooltip/Tooltip.tsx
|
|
10818
|
-
import { jsx as
|
|
10754
|
+
import { jsx as jsx120, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10819
10755
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10820
10756
|
const props = {
|
|
10821
10757
|
...rest,
|
|
10822
10758
|
isOpen: open
|
|
10823
10759
|
};
|
|
10824
10760
|
const classNames3 = useClassNames65({ component: "Tooltip", variant, size: size2 });
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10761
|
+
return /* @__PURE__ */ jsxs41(Tooltip, { ...props, className: cn70("group/tooltip", classNames3.container), children: [
|
|
10762
|
+
/* @__PURE__ */ jsx120(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx120("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx120("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
10763
|
+
children
|
|
10764
|
+
] });
|
|
10765
|
+
};
|
|
10766
|
+
_Tooltip.Trigger = _TooltipTrigger;
|
|
10767
|
+
|
|
10768
|
+
// src/Toast/ToastProvider.tsx
|
|
10769
|
+
import {
|
|
10770
|
+
UNSTABLE_ToastQueue as ToastQueue,
|
|
10771
|
+
UNSTABLE_ToastRegion as ToastRegion
|
|
10772
|
+
} from "react-aria-components";
|
|
10773
|
+
import { flushSync } from "react-dom";
|
|
10774
|
+
import { useClassNames as useClassNames67 } from "@marigold/system";
|
|
10775
|
+
|
|
10776
|
+
// src/Toast/Toast.tsx
|
|
10777
|
+
import { UNSTABLE_ToastContent as RAC_ToastContent } from "react-aria-components";
|
|
10778
|
+
import { UNSTABLE_Toast as RAC_Toast, Text as Text3 } from "react-aria-components";
|
|
10779
|
+
import { useClassNames as useClassNames66 } from "@marigold/system";
|
|
10780
|
+
import { jsx as jsx121, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
10781
|
+
var icons3 = {
|
|
10782
|
+
success: () => /* @__PURE__ */ jsx121(
|
|
10783
|
+
"svg",
|
|
10828
10784
|
{
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10785
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10786
|
+
viewBox: "0 0 24 24",
|
|
10787
|
+
fill: "currentColor",
|
|
10788
|
+
children: /* @__PURE__ */ jsx121(
|
|
10789
|
+
"path",
|
|
10790
|
+
{
|
|
10791
|
+
fillRule: "evenodd",
|
|
10792
|
+
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",
|
|
10793
|
+
clipRule: "evenodd"
|
|
10794
|
+
}
|
|
10795
|
+
)
|
|
10796
|
+
}
|
|
10797
|
+
),
|
|
10798
|
+
info: () => /* @__PURE__ */ jsx121(
|
|
10799
|
+
"svg",
|
|
10800
|
+
{
|
|
10801
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10802
|
+
viewBox: "0 0 24 24",
|
|
10803
|
+
fill: "currentColor",
|
|
10804
|
+
children: /* @__PURE__ */ jsx121(
|
|
10805
|
+
"path",
|
|
10806
|
+
{
|
|
10807
|
+
fillRule: "evenodd",
|
|
10808
|
+
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",
|
|
10809
|
+
clipRule: "evenodd"
|
|
10810
|
+
}
|
|
10811
|
+
)
|
|
10812
|
+
}
|
|
10813
|
+
),
|
|
10814
|
+
warning: () => /* @__PURE__ */ jsx121(
|
|
10815
|
+
"svg",
|
|
10816
|
+
{
|
|
10817
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10818
|
+
viewBox: "0 0 24 24",
|
|
10819
|
+
fill: "currentColor",
|
|
10820
|
+
children: /* @__PURE__ */ jsx121(
|
|
10821
|
+
"path",
|
|
10822
|
+
{
|
|
10823
|
+
fillRule: "evenodd",
|
|
10824
|
+
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",
|
|
10825
|
+
clipRule: "evenodd"
|
|
10826
|
+
}
|
|
10827
|
+
)
|
|
10828
|
+
}
|
|
10829
|
+
),
|
|
10830
|
+
error: () => /* @__PURE__ */ jsx121(
|
|
10831
|
+
"svg",
|
|
10832
|
+
{
|
|
10833
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10834
|
+
viewBox: "0 0 24 24",
|
|
10835
|
+
fill: "currentColor",
|
|
10836
|
+
children: /* @__PURE__ */ jsx121(
|
|
10837
|
+
"path",
|
|
10838
|
+
{
|
|
10839
|
+
fillRule: "evenodd",
|
|
10840
|
+
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",
|
|
10841
|
+
clipRule: "evenodd"
|
|
10842
|
+
}
|
|
10843
|
+
)
|
|
10844
|
+
}
|
|
10845
|
+
)
|
|
10846
|
+
};
|
|
10847
|
+
var Toast = ({ toast }) => {
|
|
10848
|
+
const classNames3 = useClassNames66({
|
|
10849
|
+
component: "Toast",
|
|
10850
|
+
variant: toast.content.variant
|
|
10851
|
+
});
|
|
10852
|
+
const Icon4 = toast.content.variant ? icons3[toast.content.variant] : null;
|
|
10853
|
+
return /* @__PURE__ */ jsxs42(
|
|
10854
|
+
RAC_Toast,
|
|
10855
|
+
{
|
|
10856
|
+
toast,
|
|
10857
|
+
className: classNames3.toast,
|
|
10858
|
+
style: { viewTransitionName: toast.key },
|
|
10859
|
+
children: [
|
|
10860
|
+
/* @__PURE__ */ jsxs42(RAC_ToastContent, { className: classNames3.content, children: [
|
|
10861
|
+
Icon4 && /* @__PURE__ */ jsx121("div", { className: classNames3.icon, slot: "icon", "data-testid": "toast-icon", children: /* @__PURE__ */ jsx121(Icon4, {}) }),
|
|
10862
|
+
/* @__PURE__ */ jsx121(Text3, { slot: "title", className: classNames3.title, children: toast.content.title }),
|
|
10863
|
+
/* @__PURE__ */ jsx121(Stack, { space: 2 }),
|
|
10864
|
+
/* @__PURE__ */ jsx121(Text3, { slot: "description", className: classNames3.description, children: toast.content.description })
|
|
10865
|
+
] }),
|
|
10866
|
+
/* @__PURE__ */ jsx121(
|
|
10867
|
+
CloseButton,
|
|
10868
|
+
{
|
|
10869
|
+
className: classNames3.closeButton,
|
|
10870
|
+
"aria-label": "Close toast",
|
|
10871
|
+
slot: "close"
|
|
10872
|
+
}
|
|
10873
|
+
)
|
|
10874
|
+
]
|
|
10834
10875
|
}
|
|
10835
10876
|
);
|
|
10836
10877
|
};
|
|
10837
|
-
|
|
10878
|
+
|
|
10879
|
+
// src/Toast/ToastProvider.tsx
|
|
10880
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
10881
|
+
var queue = new ToastQueue({
|
|
10882
|
+
// Wrap state updates in a CSS view transition.
|
|
10883
|
+
wrapUpdate(fn) {
|
|
10884
|
+
if ("startViewTransition" in document) {
|
|
10885
|
+
document.startViewTransition(() => {
|
|
10886
|
+
flushSync(fn);
|
|
10887
|
+
});
|
|
10888
|
+
} else {
|
|
10889
|
+
fn();
|
|
10890
|
+
}
|
|
10891
|
+
}
|
|
10892
|
+
});
|
|
10893
|
+
var ToastProvider = ({ position: position2 = "bottom-right" }) => {
|
|
10894
|
+
const classNames3 = useClassNames67({
|
|
10895
|
+
component: "Toast"
|
|
10896
|
+
});
|
|
10897
|
+
return /* @__PURE__ */ jsx122(ToastRegion, { queue, className: `${classNames3[position2]} z-50 gap-2`, children: ({ toast }) => /* @__PURE__ */ jsx122(Toast, { toast }) });
|
|
10898
|
+
};
|
|
10899
|
+
|
|
10900
|
+
// src/Toast/ToastQueue.ts
|
|
10901
|
+
function useToast() {
|
|
10902
|
+
const MINIMUM_TIMEOUT_MS = 5e3;
|
|
10903
|
+
const addToast = (options2) => {
|
|
10904
|
+
let { title, description, variant, timeout } = options2;
|
|
10905
|
+
if (timeout && timeout < MINIMUM_TIMEOUT_MS) {
|
|
10906
|
+
timeout = MINIMUM_TIMEOUT_MS;
|
|
10907
|
+
}
|
|
10908
|
+
return queue.add(
|
|
10909
|
+
{
|
|
10910
|
+
title,
|
|
10911
|
+
description,
|
|
10912
|
+
variant
|
|
10913
|
+
},
|
|
10914
|
+
{ timeout }
|
|
10915
|
+
);
|
|
10916
|
+
};
|
|
10917
|
+
const clearToasts = () => queue.clear();
|
|
10918
|
+
const removeToast = (key) => queue.close(key);
|
|
10919
|
+
return { addToast, clearToasts, removeToast };
|
|
10920
|
+
}
|
|
10838
10921
|
|
|
10839
10922
|
// src/TagGroup/Tag.tsx
|
|
10840
10923
|
import { Tag } from "react-aria-components";
|
|
10841
|
-
import { cn as cn71, useClassNames as
|
|
10924
|
+
import { cn as cn71, useClassNames as useClassNames69 } from "@marigold/system";
|
|
10842
10925
|
|
|
10843
10926
|
// src/TagGroup/TagGroup.tsx
|
|
10844
10927
|
import { TagGroup, TagList } from "react-aria-components";
|
|
10845
|
-
import { useClassNames as
|
|
10928
|
+
import { useClassNames as useClassNames68 } from "@marigold/system";
|
|
10846
10929
|
|
|
10847
10930
|
// src/TagGroup/TagGroupHiddenInput.tsx
|
|
10848
|
-
import { useContext as
|
|
10931
|
+
import { useContext as useContext24 } from "react";
|
|
10849
10932
|
import { ListStateContext } from "react-aria-components";
|
|
10850
|
-
import { jsx as
|
|
10933
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
10851
10934
|
var TagGroupHiddenInput = ({ name }) => {
|
|
10852
10935
|
var _a;
|
|
10853
|
-
const state =
|
|
10936
|
+
const state = useContext24(ListStateContext);
|
|
10854
10937
|
const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
|
|
10855
10938
|
if (!selectedKeys.length) return null;
|
|
10856
|
-
return /* @__PURE__ */
|
|
10939
|
+
return /* @__PURE__ */ jsx123("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx123(
|
|
10857
10940
|
"input",
|
|
10858
10941
|
{
|
|
10859
10942
|
type: "checkbox",
|
|
@@ -10867,9 +10950,8 @@ var TagGroupHiddenInput = ({ name }) => {
|
|
|
10867
10950
|
};
|
|
10868
10951
|
|
|
10869
10952
|
// src/TagGroup/TagGroup.tsx
|
|
10870
|
-
import { jsx as
|
|
10953
|
+
import { jsx as jsx124, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
10871
10954
|
var _TagGroup = ({
|
|
10872
|
-
width,
|
|
10873
10955
|
items,
|
|
10874
10956
|
children,
|
|
10875
10957
|
emptyState,
|
|
@@ -10878,9 +10960,9 @@ var _TagGroup = ({
|
|
|
10878
10960
|
name,
|
|
10879
10961
|
...rest
|
|
10880
10962
|
}) => {
|
|
10881
|
-
const classNames3 =
|
|
10882
|
-
return /* @__PURE__ */
|
|
10883
|
-
/* @__PURE__ */
|
|
10963
|
+
const classNames3 = useClassNames68({ component: "Tag", variant, size: size2 });
|
|
10964
|
+
return /* @__PURE__ */ jsxs43(FieldBase, { as: TagGroup, ...rest, children: [
|
|
10965
|
+
/* @__PURE__ */ jsx124(
|
|
10884
10966
|
TagList,
|
|
10885
10967
|
{
|
|
10886
10968
|
items,
|
|
@@ -10889,28 +10971,28 @@ var _TagGroup = ({
|
|
|
10889
10971
|
children
|
|
10890
10972
|
}
|
|
10891
10973
|
),
|
|
10892
|
-
name ? /* @__PURE__ */
|
|
10974
|
+
name ? /* @__PURE__ */ jsx124(TagGroupHiddenInput, { name }) : null
|
|
10893
10975
|
] });
|
|
10894
10976
|
};
|
|
10895
10977
|
|
|
10896
10978
|
// src/TagGroup/Tag.tsx
|
|
10897
|
-
import { Fragment as Fragment11, jsx as
|
|
10979
|
+
import { Fragment as Fragment11, jsx as jsx125, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
10898
10980
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10899
10981
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10900
|
-
const classNames3 =
|
|
10982
|
+
const classNames3 = useClassNames69({ component: "Tag", variant, size: size2 });
|
|
10901
10983
|
const props = {
|
|
10902
10984
|
isDisabled: disabled,
|
|
10903
10985
|
...rest
|
|
10904
10986
|
};
|
|
10905
|
-
return /* @__PURE__ */
|
|
10987
|
+
return /* @__PURE__ */ jsx125(
|
|
10906
10988
|
Tag,
|
|
10907
10989
|
{
|
|
10908
10990
|
textValue,
|
|
10909
10991
|
...props,
|
|
10910
10992
|
className: cn71("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10911
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */
|
|
10993
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs44(Fragment11, { children: [
|
|
10912
10994
|
children,
|
|
10913
|
-
allowsRemoving && /* @__PURE__ */
|
|
10995
|
+
allowsRemoving && /* @__PURE__ */ jsx125(CloseButton, { className: classNames3.closeButton, slot: "remove" })
|
|
10914
10996
|
] })
|
|
10915
10997
|
}
|
|
10916
10998
|
);
|
|
@@ -10921,14 +11003,14 @@ _Tag.Group = _TagGroup;
|
|
|
10921
11003
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
10922
11004
|
|
|
10923
11005
|
// src/XLoader/XLoader.tsx
|
|
10924
|
-
import { Dialog as Dialog5, Modal as
|
|
11006
|
+
import { Dialog as Dialog5, Modal as Modal3 } from "react-aria-components";
|
|
10925
11007
|
import { useId as useId2 } from "@react-aria/utils";
|
|
10926
|
-
import { useClassNames as
|
|
11008
|
+
import { useClassNames as useClassNames71 } from "@marigold/system";
|
|
10927
11009
|
|
|
10928
11010
|
// src/XLoader/BaseLoader.tsx
|
|
10929
11011
|
import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
|
|
10930
11012
|
import { useLocalizedStringFormatter as useLocalizedStringFormatter2 } from "@react-aria/i18n";
|
|
10931
|
-
import { useClassNames as
|
|
11013
|
+
import { useClassNames as useClassNames70 } from "@marigold/system";
|
|
10932
11014
|
|
|
10933
11015
|
// src/intl/messages.ts
|
|
10934
11016
|
var intlMessages2 = {
|
|
@@ -10941,7 +11023,7 @@ var intlMessages2 = {
|
|
|
10941
11023
|
};
|
|
10942
11024
|
|
|
10943
11025
|
// src/XLoader/BaseLoader.tsx
|
|
10944
|
-
import { jsx as
|
|
11026
|
+
import { jsx as jsx126, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
10945
11027
|
var BaseLoader = ({
|
|
10946
11028
|
variant,
|
|
10947
11029
|
size: size2,
|
|
@@ -10950,8 +11032,8 @@ var BaseLoader = ({
|
|
|
10950
11032
|
...props
|
|
10951
11033
|
}) => {
|
|
10952
11034
|
const stringFormatter = useLocalizedStringFormatter2(intlMessages2, "marigold");
|
|
10953
|
-
const className =
|
|
10954
|
-
return /* @__PURE__ */
|
|
11035
|
+
const className = useClassNames70({ component: "XLoader", variant, size: size2 });
|
|
11036
|
+
return /* @__PURE__ */ jsxs45(
|
|
10955
11037
|
ProgressBar2,
|
|
10956
11038
|
{
|
|
10957
11039
|
className: className.container,
|
|
@@ -10959,7 +11041,7 @@ var BaseLoader = ({
|
|
|
10959
11041
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10960
11042
|
...props,
|
|
10961
11043
|
children: [
|
|
10962
|
-
/* @__PURE__ */
|
|
11044
|
+
/* @__PURE__ */ jsxs45(
|
|
10963
11045
|
"svg",
|
|
10964
11046
|
{
|
|
10965
11047
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10967,13 +11049,13 @@ var BaseLoader = ({
|
|
|
10967
11049
|
fill: "currentColor",
|
|
10968
11050
|
className: className.loader,
|
|
10969
11051
|
children: [
|
|
10970
|
-
/* @__PURE__ */
|
|
10971
|
-
/* @__PURE__ */
|
|
11052
|
+
/* @__PURE__ */ jsx126("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
11053
|
+
/* @__PURE__ */ jsx126(
|
|
10972
11054
|
"path",
|
|
10973
11055
|
{
|
|
10974
11056
|
id: "XMLID_5_",
|
|
10975
11057
|
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",
|
|
10976
|
-
children: /* @__PURE__ */
|
|
11058
|
+
children: /* @__PURE__ */ jsx126(
|
|
10977
11059
|
"animate",
|
|
10978
11060
|
{
|
|
10979
11061
|
attributeName: "opacity",
|
|
@@ -10986,12 +11068,12 @@ var BaseLoader = ({
|
|
|
10986
11068
|
)
|
|
10987
11069
|
}
|
|
10988
11070
|
),
|
|
10989
|
-
/* @__PURE__ */
|
|
11071
|
+
/* @__PURE__ */ jsx126(
|
|
10990
11072
|
"path",
|
|
10991
11073
|
{
|
|
10992
11074
|
id: "XMLID_18_",
|
|
10993
11075
|
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",
|
|
10994
|
-
children: /* @__PURE__ */
|
|
11076
|
+
children: /* @__PURE__ */ jsx126(
|
|
10995
11077
|
"animate",
|
|
10996
11078
|
{
|
|
10997
11079
|
attributeName: "opacity",
|
|
@@ -11004,12 +11086,12 @@ var BaseLoader = ({
|
|
|
11004
11086
|
)
|
|
11005
11087
|
}
|
|
11006
11088
|
),
|
|
11007
|
-
/* @__PURE__ */
|
|
11089
|
+
/* @__PURE__ */ jsx126(
|
|
11008
11090
|
"path",
|
|
11009
11091
|
{
|
|
11010
11092
|
id: "XMLID_19_",
|
|
11011
11093
|
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",
|
|
11012
|
-
children: /* @__PURE__ */
|
|
11094
|
+
children: /* @__PURE__ */ jsx126(
|
|
11013
11095
|
"animate",
|
|
11014
11096
|
{
|
|
11015
11097
|
attributeName: "opacity",
|
|
@@ -11022,12 +11104,12 @@ var BaseLoader = ({
|
|
|
11022
11104
|
)
|
|
11023
11105
|
}
|
|
11024
11106
|
),
|
|
11025
|
-
/* @__PURE__ */
|
|
11107
|
+
/* @__PURE__ */ jsx126(
|
|
11026
11108
|
"path",
|
|
11027
11109
|
{
|
|
11028
11110
|
id: "XMLID_20_",
|
|
11029
11111
|
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",
|
|
11030
|
-
children: /* @__PURE__ */
|
|
11112
|
+
children: /* @__PURE__ */ jsx126(
|
|
11031
11113
|
"animate",
|
|
11032
11114
|
{
|
|
11033
11115
|
attributeName: "opacity",
|
|
@@ -11040,12 +11122,12 @@ var BaseLoader = ({
|
|
|
11040
11122
|
)
|
|
11041
11123
|
}
|
|
11042
11124
|
),
|
|
11043
|
-
/* @__PURE__ */
|
|
11125
|
+
/* @__PURE__ */ jsx126(
|
|
11044
11126
|
"path",
|
|
11045
11127
|
{
|
|
11046
11128
|
id: "XMLID_21_",
|
|
11047
11129
|
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",
|
|
11048
|
-
children: /* @__PURE__ */
|
|
11130
|
+
children: /* @__PURE__ */ jsx126(
|
|
11049
11131
|
"animate",
|
|
11050
11132
|
{
|
|
11051
11133
|
attributeName: "opacity",
|
|
@@ -11058,12 +11140,12 @@ var BaseLoader = ({
|
|
|
11058
11140
|
)
|
|
11059
11141
|
}
|
|
11060
11142
|
),
|
|
11061
|
-
/* @__PURE__ */
|
|
11143
|
+
/* @__PURE__ */ jsx126(
|
|
11062
11144
|
"path",
|
|
11063
11145
|
{
|
|
11064
11146
|
id: "XMLID_22_",
|
|
11065
11147
|
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",
|
|
11066
|
-
children: /* @__PURE__ */
|
|
11148
|
+
children: /* @__PURE__ */ jsx126(
|
|
11067
11149
|
"animate",
|
|
11068
11150
|
{
|
|
11069
11151
|
attributeName: "opacity",
|
|
@@ -11076,12 +11158,12 @@ var BaseLoader = ({
|
|
|
11076
11158
|
)
|
|
11077
11159
|
}
|
|
11078
11160
|
),
|
|
11079
|
-
/* @__PURE__ */
|
|
11161
|
+
/* @__PURE__ */ jsx126(
|
|
11080
11162
|
"path",
|
|
11081
11163
|
{
|
|
11082
11164
|
id: "XMLID_23_",
|
|
11083
11165
|
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",
|
|
11084
|
-
children: /* @__PURE__ */
|
|
11166
|
+
children: /* @__PURE__ */ jsx126(
|
|
11085
11167
|
"animate",
|
|
11086
11168
|
{
|
|
11087
11169
|
attributeName: "opacity",
|
|
@@ -11094,12 +11176,12 @@ var BaseLoader = ({
|
|
|
11094
11176
|
)
|
|
11095
11177
|
}
|
|
11096
11178
|
),
|
|
11097
|
-
/* @__PURE__ */
|
|
11179
|
+
/* @__PURE__ */ jsx126(
|
|
11098
11180
|
"path",
|
|
11099
11181
|
{
|
|
11100
11182
|
id: "XMLID_24_",
|
|
11101
11183
|
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",
|
|
11102
|
-
children: /* @__PURE__ */
|
|
11184
|
+
children: /* @__PURE__ */ jsx126(
|
|
11103
11185
|
"animate",
|
|
11104
11186
|
{
|
|
11105
11187
|
attributeName: "opacity",
|
|
@@ -11112,12 +11194,12 @@ var BaseLoader = ({
|
|
|
11112
11194
|
)
|
|
11113
11195
|
}
|
|
11114
11196
|
),
|
|
11115
|
-
/* @__PURE__ */
|
|
11197
|
+
/* @__PURE__ */ jsx126(
|
|
11116
11198
|
"path",
|
|
11117
11199
|
{
|
|
11118
11200
|
id: "XMLID_25_",
|
|
11119
11201
|
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",
|
|
11120
|
-
children: /* @__PURE__ */
|
|
11202
|
+
children: /* @__PURE__ */ jsx126(
|
|
11121
11203
|
"animate",
|
|
11122
11204
|
{
|
|
11123
11205
|
attributeName: "opacity",
|
|
@@ -11130,12 +11212,12 @@ var BaseLoader = ({
|
|
|
11130
11212
|
)
|
|
11131
11213
|
}
|
|
11132
11214
|
),
|
|
11133
|
-
/* @__PURE__ */
|
|
11215
|
+
/* @__PURE__ */ jsx126(
|
|
11134
11216
|
"path",
|
|
11135
11217
|
{
|
|
11136
11218
|
id: "XMLID_26_",
|
|
11137
11219
|
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",
|
|
11138
|
-
children: /* @__PURE__ */
|
|
11220
|
+
children: /* @__PURE__ */ jsx126(
|
|
11139
11221
|
"animate",
|
|
11140
11222
|
{
|
|
11141
11223
|
attributeName: "opacity",
|
|
@@ -11148,12 +11230,12 @@ var BaseLoader = ({
|
|
|
11148
11230
|
)
|
|
11149
11231
|
}
|
|
11150
11232
|
),
|
|
11151
|
-
/* @__PURE__ */
|
|
11233
|
+
/* @__PURE__ */ jsx126(
|
|
11152
11234
|
"path",
|
|
11153
11235
|
{
|
|
11154
11236
|
id: "XMLID_27_",
|
|
11155
11237
|
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",
|
|
11156
|
-
children: /* @__PURE__ */
|
|
11238
|
+
children: /* @__PURE__ */ jsx126(
|
|
11157
11239
|
"animate",
|
|
11158
11240
|
{
|
|
11159
11241
|
attributeName: "opacity",
|
|
@@ -11169,44 +11251,44 @@ var BaseLoader = ({
|
|
|
11169
11251
|
]
|
|
11170
11252
|
}
|
|
11171
11253
|
),
|
|
11172
|
-
children ? /* @__PURE__ */
|
|
11254
|
+
children ? /* @__PURE__ */ jsx126(Label2, { className: className.label, children }) : null
|
|
11173
11255
|
]
|
|
11174
11256
|
}
|
|
11175
11257
|
);
|
|
11176
11258
|
};
|
|
11177
11259
|
|
|
11178
11260
|
// src/XLoader/XLoader.tsx
|
|
11179
|
-
import { jsx as
|
|
11261
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
11180
11262
|
var LoaderFullScreen = (props) => {
|
|
11181
11263
|
const id = useId2();
|
|
11182
|
-
return /* @__PURE__ */
|
|
11264
|
+
return /* @__PURE__ */ jsx127(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx127(Modal3, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx127(Dialog5, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx127(BaseLoader, { id, ...props }) }) }) });
|
|
11183
11265
|
};
|
|
11184
11266
|
var LoaderSection = (props) => {
|
|
11185
|
-
const className =
|
|
11267
|
+
const className = useClassNames71({
|
|
11186
11268
|
component: "Underlay",
|
|
11187
11269
|
variant: "modal",
|
|
11188
11270
|
className: "flex size-full items-center justify-center"
|
|
11189
11271
|
});
|
|
11190
|
-
return /* @__PURE__ */
|
|
11272
|
+
return /* @__PURE__ */ jsx127("div", { className, children: /* @__PURE__ */ jsx127(BaseLoader, { ...props }) });
|
|
11191
11273
|
};
|
|
11192
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */
|
|
11274
|
+
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx127(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx127(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx127(BaseLoader, { variant, ...props });
|
|
11193
11275
|
|
|
11194
11276
|
// src/Tabs/Tabs.tsx
|
|
11195
11277
|
import { Tabs } from "react-aria-components";
|
|
11196
|
-
import { useClassNames as
|
|
11278
|
+
import { useClassNames as useClassNames72 } from "@marigold/system";
|
|
11197
11279
|
|
|
11198
11280
|
// src/Tabs/Context.ts
|
|
11199
|
-
import { createContext as
|
|
11200
|
-
var TabContext =
|
|
11201
|
-
var useTabContext = () =>
|
|
11281
|
+
import { createContext as createContext14, useContext as useContext25 } from "react";
|
|
11282
|
+
var TabContext = createContext14({});
|
|
11283
|
+
var useTabContext = () => useContext25(TabContext);
|
|
11202
11284
|
|
|
11203
11285
|
// src/Tabs/Tab.tsx
|
|
11204
11286
|
import { Tab } from "react-aria-components";
|
|
11205
11287
|
import { cn as cn72 } from "@marigold/system";
|
|
11206
|
-
import { jsx as
|
|
11288
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
11207
11289
|
var _Tab = (props) => {
|
|
11208
11290
|
const { classNames: classNames3 } = useTabContext();
|
|
11209
|
-
return /* @__PURE__ */
|
|
11291
|
+
return /* @__PURE__ */ jsx128(
|
|
11210
11292
|
Tab,
|
|
11211
11293
|
{
|
|
11212
11294
|
...props,
|
|
@@ -11222,10 +11304,10 @@ var _Tab = (props) => {
|
|
|
11222
11304
|
// src/Tabs/TabList.tsx
|
|
11223
11305
|
import { TabList } from "react-aria-components";
|
|
11224
11306
|
import { cn as cn73, gapSpace as gapSpace10 } from "@marigold/system";
|
|
11225
|
-
import { jsx as
|
|
11307
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
11226
11308
|
var _TabList = ({ space = 2, ...props }) => {
|
|
11227
11309
|
const { classNames: classNames3 } = useTabContext();
|
|
11228
|
-
return /* @__PURE__ */
|
|
11310
|
+
return /* @__PURE__ */ jsx129(
|
|
11229
11311
|
TabList,
|
|
11230
11312
|
{
|
|
11231
11313
|
...props,
|
|
@@ -11237,25 +11319,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
11237
11319
|
|
|
11238
11320
|
// src/Tabs/TabPanel.tsx
|
|
11239
11321
|
import { TabPanel } from "react-aria-components";
|
|
11240
|
-
import { jsx as
|
|
11322
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
11241
11323
|
var _TabPanel = (props) => {
|
|
11242
11324
|
const { classNames: classNames3 } = useTabContext();
|
|
11243
|
-
return /* @__PURE__ */
|
|
11325
|
+
return /* @__PURE__ */ jsx130(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
11244
11326
|
};
|
|
11245
11327
|
|
|
11246
11328
|
// src/Tabs/Tabs.tsx
|
|
11247
|
-
import { jsx as
|
|
11329
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
11248
11330
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
11249
11331
|
const props = {
|
|
11250
11332
|
isDisabled: disabled,
|
|
11251
11333
|
...rest
|
|
11252
11334
|
};
|
|
11253
|
-
const classNames3 =
|
|
11335
|
+
const classNames3 = useClassNames72({
|
|
11254
11336
|
component: "Tabs",
|
|
11255
11337
|
size: size2,
|
|
11256
11338
|
variant
|
|
11257
11339
|
});
|
|
11258
|
-
return /* @__PURE__ */
|
|
11340
|
+
return /* @__PURE__ */ jsx131(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx131(Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
11259
11341
|
};
|
|
11260
11342
|
_Tabs.List = _TabList;
|
|
11261
11343
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -11267,8 +11349,8 @@ import { RouterProvider } from "react-aria-components";
|
|
|
11267
11349
|
// src/TimeField/TimeField.tsx
|
|
11268
11350
|
import { forwardRef as forwardRef35 } from "react";
|
|
11269
11351
|
import { DateInput as DateInput2, DateSegment as DateSegment2, TimeField } from "react-aria-components";
|
|
11270
|
-
import { useClassNames as
|
|
11271
|
-
import { jsx as
|
|
11352
|
+
import { useClassNames as useClassNames73 } from "@marigold/system";
|
|
11353
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
11272
11354
|
var _TimeField = forwardRef35(
|
|
11273
11355
|
({
|
|
11274
11356
|
required,
|
|
@@ -11280,7 +11362,7 @@ var _TimeField = forwardRef35(
|
|
|
11280
11362
|
width = "full",
|
|
11281
11363
|
...rest
|
|
11282
11364
|
}, ref) => {
|
|
11283
|
-
const classNames3 =
|
|
11365
|
+
const classNames3 = useClassNames73({ component: "DateField", variant, size: size2 });
|
|
11284
11366
|
const props = {
|
|
11285
11367
|
isDisabled: disabled,
|
|
11286
11368
|
isReadOnly: readOnly,
|
|
@@ -11288,7 +11370,7 @@ var _TimeField = forwardRef35(
|
|
|
11288
11370
|
isRequired: required,
|
|
11289
11371
|
...rest
|
|
11290
11372
|
};
|
|
11291
|
-
return /* @__PURE__ */
|
|
11373
|
+
return /* @__PURE__ */ jsx132(
|
|
11292
11374
|
FieldBase,
|
|
11293
11375
|
{
|
|
11294
11376
|
as: TimeField,
|
|
@@ -11297,11 +11379,123 @@ var _TimeField = forwardRef35(
|
|
|
11297
11379
|
width,
|
|
11298
11380
|
...props,
|
|
11299
11381
|
ref,
|
|
11300
|
-
children: /* @__PURE__ */
|
|
11382
|
+
children: /* @__PURE__ */ jsx132(DateInput2, { className: classNames3.field, children: (segment) => /* @__PURE__ */ jsx132(DateSegment2, { className: classNames3.segment, segment }) })
|
|
11383
|
+
}
|
|
11384
|
+
);
|
|
11385
|
+
}
|
|
11386
|
+
);
|
|
11387
|
+
|
|
11388
|
+
// src/Breadcrumbs/Breadcrumbs.tsx
|
|
11389
|
+
import React13, {
|
|
11390
|
+
forwardRef as forwardRef36
|
|
11391
|
+
} from "react";
|
|
11392
|
+
import {
|
|
11393
|
+
Breadcrumb as RACBreadcrumb,
|
|
11394
|
+
Breadcrumbs as RACBreadcrumbs
|
|
11395
|
+
} from "react-aria-components";
|
|
11396
|
+
import { cn as cn74, useClassNames as useClassNames75 } from "@marigold/system";
|
|
11397
|
+
|
|
11398
|
+
// src/Breadcrumbs/BreadcrumbEllipsis.tsx
|
|
11399
|
+
import React12 from "react";
|
|
11400
|
+
import { Button as Button12, Menu as Menu4, MenuItem as MenuItem2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
11401
|
+
import { useClassNames as useClassNames74 } from "@marigold/system";
|
|
11402
|
+
import { jsx as jsx133, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
11403
|
+
var BreadcrumbEllipsis = ({
|
|
11404
|
+
hiddenItems = [],
|
|
11405
|
+
disabled = false
|
|
11406
|
+
}) => {
|
|
11407
|
+
const { container, item: menuItem } = useClassNames74({
|
|
11408
|
+
component: "Menu"
|
|
11409
|
+
});
|
|
11410
|
+
const { item: breadcrumbsItem, link } = useClassNames74({
|
|
11411
|
+
component: "Breadcrumbs"
|
|
11412
|
+
});
|
|
11413
|
+
return /* @__PURE__ */ jsxs46(MenuTrigger2, { children: [
|
|
11414
|
+
/* @__PURE__ */ jsx133(Button12, { type: "button", className: `${breadcrumbsItem} ${link}`, children: "..." }),
|
|
11415
|
+
/* @__PURE__ */ jsx133(_Popover, { children: /* @__PURE__ */ jsx133(Menu4, { className: container, children: hiddenItems.map((item, index2) => {
|
|
11416
|
+
if (!React12.isValidElement(item)) return null;
|
|
11417
|
+
const { href, children: itemChildren } = item.props;
|
|
11418
|
+
return /* @__PURE__ */ jsx133(
|
|
11419
|
+
MenuItem2,
|
|
11420
|
+
{
|
|
11421
|
+
className: menuItem,
|
|
11422
|
+
href,
|
|
11423
|
+
isDisabled: disabled,
|
|
11424
|
+
children: itemChildren
|
|
11425
|
+
},
|
|
11426
|
+
`${href}-${index2}`
|
|
11427
|
+
);
|
|
11428
|
+
}) }) })
|
|
11429
|
+
] });
|
|
11430
|
+
};
|
|
11431
|
+
|
|
11432
|
+
// src/Breadcrumbs/BreadcrumbsItem.tsx
|
|
11433
|
+
var BreadcrumbsItem = (_) => null;
|
|
11434
|
+
|
|
11435
|
+
// src/Breadcrumbs/Breadcrumbs.tsx
|
|
11436
|
+
import { jsx as jsx134, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
11437
|
+
var _Breadcrumbs = forwardRef36(
|
|
11438
|
+
({ children, variant, size: size2, disabled, maxVisibleItems, ...props }, ref) => {
|
|
11439
|
+
const {
|
|
11440
|
+
container,
|
|
11441
|
+
item: breadcrumbsItem,
|
|
11442
|
+
link,
|
|
11443
|
+
current
|
|
11444
|
+
} = useClassNames75({
|
|
11445
|
+
component: "Breadcrumbs",
|
|
11446
|
+
variant,
|
|
11447
|
+
size: size2
|
|
11448
|
+
});
|
|
11449
|
+
const items = React13.Children.toArray(children);
|
|
11450
|
+
const total = items.length;
|
|
11451
|
+
const shouldCollapse = typeof maxVisibleItems === "number" && maxVisibleItems >= 2 && total > maxVisibleItems;
|
|
11452
|
+
const hiddenItems = shouldCollapse ? items.slice(1, -1) : [];
|
|
11453
|
+
const ellipsis = /* @__PURE__ */ jsx134(BreadcrumbsItem, { href: "", children: /* @__PURE__ */ jsx134(BreadcrumbEllipsis, { hiddenItems }) }, "ellipsis");
|
|
11454
|
+
const displayedItems = shouldCollapse ? maxVisibleItems === 2 ? [items[0], ellipsis] : [items[0], ellipsis, items[total - 1]] : items;
|
|
11455
|
+
return /* @__PURE__ */ jsx134(
|
|
11456
|
+
RACBreadcrumbs,
|
|
11457
|
+
{
|
|
11458
|
+
...props,
|
|
11459
|
+
ref,
|
|
11460
|
+
isDisabled: disabled,
|
|
11461
|
+
className: container,
|
|
11462
|
+
children: displayedItems.map((item, index2) => {
|
|
11463
|
+
if (!React13.isValidElement(item)) return null;
|
|
11464
|
+
const isLast = index2 === displayedItems.length - 1;
|
|
11465
|
+
const { href, children: itemChildren, ...ariaProps } = item.props;
|
|
11466
|
+
return /* @__PURE__ */ jsxs47(
|
|
11467
|
+
RACBreadcrumb,
|
|
11468
|
+
{
|
|
11469
|
+
...ariaProps,
|
|
11470
|
+
className: breadcrumbsItem,
|
|
11471
|
+
children: [
|
|
11472
|
+
/* @__PURE__ */ jsx134(
|
|
11473
|
+
"a",
|
|
11474
|
+
{
|
|
11475
|
+
href,
|
|
11476
|
+
className: cn74(link, isLast && current),
|
|
11477
|
+
"aria-current": isLast ? "page" : void 0,
|
|
11478
|
+
children: itemChildren
|
|
11479
|
+
}
|
|
11480
|
+
),
|
|
11481
|
+
!isLast && /* @__PURE__ */ jsx134(
|
|
11482
|
+
ChevronRight,
|
|
11483
|
+
{
|
|
11484
|
+
"aria-hidden": "true",
|
|
11485
|
+
size: 14,
|
|
11486
|
+
"data-testid": "breadcrumb-chevronright"
|
|
11487
|
+
}
|
|
11488
|
+
)
|
|
11489
|
+
]
|
|
11490
|
+
},
|
|
11491
|
+
`${href}-${index2}`
|
|
11492
|
+
);
|
|
11493
|
+
})
|
|
11301
11494
|
}
|
|
11302
11495
|
);
|
|
11303
11496
|
}
|
|
11304
11497
|
);
|
|
11498
|
+
_Breadcrumbs.Item = BreadcrumbsItem;
|
|
11305
11499
|
export {
|
|
11306
11500
|
Accordion,
|
|
11307
11501
|
AccordionItem,
|
|
@@ -11311,6 +11505,7 @@ export {
|
|
|
11311
11505
|
_Autocomplete as Autocomplete,
|
|
11312
11506
|
Badge,
|
|
11313
11507
|
Body,
|
|
11508
|
+
_Breadcrumbs as Breadcrumbs,
|
|
11314
11509
|
Breakout,
|
|
11315
11510
|
_Button as Button,
|
|
11316
11511
|
_Calendar as Calendar,
|
|
@@ -11373,6 +11568,8 @@ export {
|
|
|
11373
11568
|
ThemeProvider2 as ThemeProvider,
|
|
11374
11569
|
Tiles,
|
|
11375
11570
|
_TimeField as TimeField,
|
|
11571
|
+
Toast,
|
|
11572
|
+
ToastProvider,
|
|
11376
11573
|
_Tooltip as Tooltip,
|
|
11377
11574
|
Underlay,
|
|
11378
11575
|
VisuallyHidden,
|
|
@@ -11380,10 +11577,11 @@ export {
|
|
|
11380
11577
|
_ContextualHelp,
|
|
11381
11578
|
gridColsAlign,
|
|
11382
11579
|
gridColumn,
|
|
11580
|
+
queue,
|
|
11383
11581
|
useAsyncList,
|
|
11384
11582
|
useListData,
|
|
11385
|
-
|
|
11386
|
-
|
|
11583
|
+
useTheme,
|
|
11584
|
+
useToast
|
|
11387
11585
|
};
|
|
11388
11586
|
/*! Bundled license information:
|
|
11389
11587
|
|