@marigold/components 12.0.0 → 12.0.2
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +581 -509
- package/dist/index.mjs +464 -391
- package/package.json +25 -25
package/dist/index.mjs
CHANGED
|
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
|
|
|
206
206
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
207
207
|
var Element2 = REACT_ELEMENT_TYPE;
|
|
208
208
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
209
|
-
var
|
|
209
|
+
var Fragment14 = REACT_FRAGMENT_TYPE;
|
|
210
210
|
var Lazy = REACT_LAZY_TYPE;
|
|
211
211
|
var Memo = REACT_MEMO_TYPE;
|
|
212
212
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
|
|
|
265
265
|
exports.ContextProvider = ContextProvider;
|
|
266
266
|
exports.Element = Element2;
|
|
267
267
|
exports.ForwardRef = ForwardRef;
|
|
268
|
-
exports.Fragment =
|
|
268
|
+
exports.Fragment = Fragment14;
|
|
269
269
|
exports.Lazy = Lazy;
|
|
270
270
|
exports.Memo = Memo;
|
|
271
271
|
exports.Portal = Portal;
|
|
@@ -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.27.
|
|
395
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/extends.js
|
|
396
396
|
var require_extends = __commonJS({
|
|
397
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
397
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
412
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/typeof.js
|
|
413
413
|
var require_typeof = __commonJS({
|
|
414
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
414
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
428
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
429
429
|
var require_toPrimitive = __commonJS({
|
|
430
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
430
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
447
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
448
448
|
var require_toPropertyKey = __commonJS({
|
|
449
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
449
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
461
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
462
462
|
var require_defineProperty = __commonJS({
|
|
463
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
463
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
478
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
479
479
|
var require_objectSpread2 = __commonJS({
|
|
480
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
480
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
508
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/arrayWithHoles.js
|
|
509
509
|
var require_arrayWithHoles = __commonJS({
|
|
510
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
510
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
519
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
|
|
520
520
|
var require_iterableToArrayLimit = __commonJS({
|
|
521
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
521
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
548
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/arrayLikeToArray.js
|
|
549
549
|
var require_arrayLikeToArray = __commonJS({
|
|
550
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
550
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
561
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
|
|
562
562
|
var require_unsupportedIterableToArray = __commonJS({
|
|
563
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
563
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
577
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/nonIterableRest.js
|
|
578
578
|
var require_nonIterableRest = __commonJS({
|
|
579
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
579
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
588
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
589
589
|
var require_slicedToArray = __commonJS({
|
|
590
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
590
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
603
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
604
604
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
605
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
605
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
620
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
621
621
|
var require_objectWithoutProperties = __commonJS({
|
|
622
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
622
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
638
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
639
639
|
var require_classCallCheck = __commonJS({
|
|
640
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
640
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
649
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/createClass.js
|
|
650
650
|
var require_createClass = __commonJS({
|
|
651
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
651
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
669
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
|
670
670
|
var require_setPrototypeOf = __commonJS({
|
|
671
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
671
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
682
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/inherits.js
|
|
683
683
|
var require_inherits = __commonJS({
|
|
684
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
684
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
703
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
704
704
|
var require_getPrototypeOf = __commonJS({
|
|
705
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
705
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
716
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
|
|
717
717
|
var require_isNativeReflectConstruct = __commonJS({
|
|
718
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
718
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
734
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/assertThisInitialized.js
|
|
735
735
|
var require_assertThisInitialized = __commonJS({
|
|
736
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
736
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
746
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
747
747
|
var require_possibleConstructorReturn = __commonJS({
|
|
748
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
748
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
761
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/createSuper.js
|
|
762
762
|
var require_createSuper = __commonJS({
|
|
763
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
763
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
783
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
|
|
784
784
|
var require_arrayWithoutHoles = __commonJS({
|
|
785
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
785
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
795
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/iterableToArray.js
|
|
796
796
|
var require_iterableToArray = __commonJS({
|
|
797
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
797
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
806
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/nonIterableSpread.js
|
|
807
807
|
var require_nonIterableSpread = __commonJS({
|
|
808
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
808
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
817
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
818
818
|
var require_toConsumableArray = __commonJS({
|
|
819
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
819
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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.27.
|
|
832
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
|
|
833
833
|
var require_taggedTemplateLiteral = __commonJS({
|
|
834
|
-
"../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
834
|
+
"../../node_modules/.pnpm/@babel+runtime@7.27.1/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, {
|
|
@@ -1307,19 +1307,39 @@ var useListBoxContext = () => useContext5(ListBoxContext);
|
|
|
1307
1307
|
|
|
1308
1308
|
// src/ListBox/ListBoxItem.tsx
|
|
1309
1309
|
import { ListBoxItem } from "react-aria-components";
|
|
1310
|
-
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1310
|
+
import { Fragment, jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1311
|
+
var CheckMark = ({ className }) => /* @__PURE__ */ jsx14("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx14(
|
|
1312
|
+
"path",
|
|
1313
|
+
{
|
|
1314
|
+
fill: "currentColor",
|
|
1315
|
+
stroke: "none",
|
|
1316
|
+
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"
|
|
1317
|
+
}
|
|
1318
|
+
) });
|
|
1311
1319
|
var _ListBoxItem = ({ ...props }) => {
|
|
1320
|
+
var _a;
|
|
1312
1321
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1313
|
-
return /* @__PURE__ */ jsx14(
|
|
1322
|
+
return /* @__PURE__ */ jsx14(
|
|
1323
|
+
ListBoxItem,
|
|
1324
|
+
{
|
|
1325
|
+
...props,
|
|
1326
|
+
className: classNames3.item,
|
|
1327
|
+
textValue: (_a = props.textValue) != null ? _a : String(props.children),
|
|
1328
|
+
children: /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
1329
|
+
/* @__PURE__ */ jsx14(CheckMark, { className: "hidden" }),
|
|
1330
|
+
props.children
|
|
1331
|
+
] })
|
|
1332
|
+
}
|
|
1333
|
+
);
|
|
1314
1334
|
};
|
|
1315
1335
|
|
|
1316
1336
|
// src/ListBox/ListBoxSection.tsx
|
|
1317
1337
|
import { Header, ListBoxSection } from "react-aria-components";
|
|
1318
1338
|
import { cn as cn9 } from "@marigold/system";
|
|
1319
|
-
import { jsx as jsx15, jsxs as
|
|
1339
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1320
1340
|
var _Section = ({ header, children, ...props }) => {
|
|
1321
1341
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1322
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsxs8(
|
|
1323
1343
|
ListBoxSection,
|
|
1324
1344
|
{
|
|
1325
1345
|
...props,
|
|
@@ -1428,7 +1448,7 @@ var Underlay = ({
|
|
|
1428
1448
|
};
|
|
1429
1449
|
|
|
1430
1450
|
// src/Overlay/Popover.tsx
|
|
1431
|
-
import { Fragment, jsx as jsx19, jsxs as
|
|
1451
|
+
import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1432
1452
|
var _Popover = forwardRef6(
|
|
1433
1453
|
({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
|
|
1434
1454
|
const props = {
|
|
@@ -1445,7 +1465,7 @@ var _Popover = forwardRef6(
|
|
|
1445
1465
|
});
|
|
1446
1466
|
const isSmallScreen = useSmallScreen();
|
|
1447
1467
|
const portal = usePortalContainer();
|
|
1448
|
-
return /* @__PURE__ */ jsx19(
|
|
1468
|
+
return /* @__PURE__ */ jsx19(Fragment2, { children: isSmallScreen ? /* @__PURE__ */ jsx19(Fragment2, { children: /* @__PURE__ */ jsxs9(
|
|
1449
1469
|
Popover,
|
|
1450
1470
|
{
|
|
1451
1471
|
ref,
|
|
@@ -1476,7 +1496,7 @@ var _Popover = forwardRef6(
|
|
|
1476
1496
|
);
|
|
1477
1497
|
|
|
1478
1498
|
// src/Autocomplete/Autocomplete.tsx
|
|
1479
|
-
import { jsx as jsx20, jsxs as
|
|
1499
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1480
1500
|
var AutocompleteInput = ({
|
|
1481
1501
|
onSubmit,
|
|
1482
1502
|
onClear,
|
|
@@ -1538,7 +1558,7 @@ var _Autocomplete = forwardRef7(
|
|
|
1538
1558
|
isRequired: required,
|
|
1539
1559
|
...rest
|
|
1540
1560
|
};
|
|
1541
|
-
return /* @__PURE__ */
|
|
1561
|
+
return /* @__PURE__ */ jsxs10(FieldBase, { as: ComboBox, ref, ...props, children: [
|
|
1542
1562
|
/* @__PURE__ */ jsx20(AutocompleteInput, { onSubmit, onClear, ref }),
|
|
1543
1563
|
/* @__PURE__ */ jsx20(_Popover, { children: /* @__PURE__ */ jsx20(_ListBox, { children }) })
|
|
1544
1564
|
] });
|
|
@@ -1607,7 +1627,7 @@ import { jsx as jsx25 } from "react/jsx-runtime";
|
|
|
1607
1627
|
var SortUp = forwardRef11((props, ref) => /* @__PURE__ */ jsx25(SVG6, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx25("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" }) }));
|
|
1608
1628
|
|
|
1609
1629
|
// src/ComboBox/ComboBox.tsx
|
|
1610
|
-
import { jsx as jsx26, jsxs as
|
|
1630
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1611
1631
|
var _ComboBox = forwardRef12(
|
|
1612
1632
|
({
|
|
1613
1633
|
variant,
|
|
@@ -1633,7 +1653,7 @@ var _ComboBox = forwardRef12(
|
|
|
1633
1653
|
...rest
|
|
1634
1654
|
};
|
|
1635
1655
|
const classNames3 = useClassNames11({ component: "ComboBox", variant, size: size2 });
|
|
1636
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ jsxs11(FieldBase, { as: ComboBox2, ref, ...props, children: [
|
|
1637
1657
|
/* @__PURE__ */ jsx26(
|
|
1638
1658
|
_Input,
|
|
1639
1659
|
{
|
|
@@ -1677,7 +1697,7 @@ import { cn as cn16, useClassNames as useClassNames15 } from "@marigold/system";
|
|
|
1677
1697
|
// src/ProgressCycle/ProgressCycle.tsx
|
|
1678
1698
|
import { ProgressBar } from "react-aria-components";
|
|
1679
1699
|
import { SVG as SVG7, cn as cn15, useClassNames as useClassNames14 } from "@marigold/system";
|
|
1680
|
-
import { jsx as jsx30, jsxs as
|
|
1700
|
+
import { jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1681
1701
|
var ProgressCycle = ({
|
|
1682
1702
|
size: size2 = "16",
|
|
1683
1703
|
...props
|
|
@@ -1690,7 +1710,7 @@ var ProgressCycle = ({
|
|
|
1690
1710
|
}
|
|
1691
1711
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|
|
1692
1712
|
const classNames3 = useClassNames14({ component: "ProgressCycle" });
|
|
1693
|
-
return /* @__PURE__ */ jsx30(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */
|
|
1713
|
+
return /* @__PURE__ */ jsx30(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ jsxs12(
|
|
1694
1714
|
SVG7,
|
|
1695
1715
|
{
|
|
1696
1716
|
className: "animate-rotate-spinner origin-center fill-none",
|
|
@@ -1731,7 +1751,7 @@ var ProgressCycle = ({
|
|
|
1731
1751
|
};
|
|
1732
1752
|
|
|
1733
1753
|
// src/Button/Button.tsx
|
|
1734
|
-
import { Fragment as
|
|
1754
|
+
import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1735
1755
|
var _Button = forwardRef13(
|
|
1736
1756
|
({
|
|
1737
1757
|
children,
|
|
@@ -1762,7 +1782,7 @@ var _Button = forwardRef13(
|
|
|
1762
1782
|
),
|
|
1763
1783
|
isPending: loading,
|
|
1764
1784
|
isDisabled: disabled,
|
|
1765
|
-
children: loading ? /* @__PURE__ */
|
|
1785
|
+
children: loading ? /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
1766
1786
|
/* @__PURE__ */ jsx31("span", { className: "absolute", children: /* @__PURE__ */ jsx31(ProgressCycle, {}) }),
|
|
1767
1787
|
/* @__PURE__ */ jsx31("span", { className: "invisible flex gap-[inherit]", children })
|
|
1768
1788
|
] }) : children
|
|
@@ -1852,10 +1872,10 @@ import { cn as cn20, useClassNames as useClassNames19 } from "@marigold/system";
|
|
|
1852
1872
|
|
|
1853
1873
|
// src/Checkbox/CheckBoxField.tsx
|
|
1854
1874
|
import { createVar as createVar5, useClassNames as useClassNames17 } from "@marigold/system";
|
|
1855
|
-
import { jsx as jsx34, jsxs as
|
|
1875
|
+
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1856
1876
|
var CheckboxField = ({ children, labelWidth }) => {
|
|
1857
1877
|
const classNames3 = useClassNames17({ component: "Field" });
|
|
1858
|
-
return /* @__PURE__ */
|
|
1878
|
+
return /* @__PURE__ */ jsxs14("div", { className: classNames3, children: [
|
|
1859
1879
|
/* @__PURE__ */ jsx34("div", { className: "w-(--labelWidth)", style: createVar5({ labelWidth }) }),
|
|
1860
1880
|
children
|
|
1861
1881
|
] });
|
|
@@ -1915,8 +1935,8 @@ var _CheckboxGroup = ({
|
|
|
1915
1935
|
};
|
|
1916
1936
|
|
|
1917
1937
|
// src/Checkbox/Checkbox.tsx
|
|
1918
|
-
import { Fragment as
|
|
1919
|
-
var
|
|
1938
|
+
import { Fragment as Fragment4, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1939
|
+
var CheckMark2 = () => /* @__PURE__ */ jsx36("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx36(
|
|
1920
1940
|
"path",
|
|
1921
1941
|
{
|
|
1922
1942
|
fill: "currentColor",
|
|
@@ -1945,7 +1965,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
|
1945
1965
|
className
|
|
1946
1966
|
),
|
|
1947
1967
|
...props,
|
|
1948
|
-
children: indeterminate ? /* @__PURE__ */ jsx36(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx36(
|
|
1968
|
+
children: indeterminate ? /* @__PURE__ */ jsx36(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx36(CheckMark2, {}) : null
|
|
1949
1969
|
}
|
|
1950
1970
|
);
|
|
1951
1971
|
};
|
|
@@ -1990,7 +2010,7 @@ var _Checkbox = forwardRef14(
|
|
|
1990
2010
|
classNames3.container
|
|
1991
2011
|
),
|
|
1992
2012
|
...props,
|
|
1993
|
-
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */
|
|
2013
|
+
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs15(Fragment4, { children: [
|
|
1994
2014
|
/* @__PURE__ */ jsx36(
|
|
1995
2015
|
Icon2,
|
|
1996
2016
|
{
|
|
@@ -2242,7 +2262,7 @@ var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
|
2242
2262
|
};
|
|
2243
2263
|
|
|
2244
2264
|
// src/Overlay/NonModal.tsx
|
|
2245
|
-
import { jsx as jsx41, jsxs as
|
|
2265
|
+
import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2246
2266
|
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
2247
2267
|
const { nonModalProps } = useNonModal(props, state);
|
|
2248
2268
|
const ref = props.nonModalRef;
|
|
@@ -2262,7 +2282,7 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
|
2262
2282
|
...renderProps.style,
|
|
2263
2283
|
"--visual-viewport-height": viewport.height + "px"
|
|
2264
2284
|
};
|
|
2265
|
-
const overlay = /* @__PURE__ */
|
|
2285
|
+
const overlay = /* @__PURE__ */ jsxs16(
|
|
2266
2286
|
"div",
|
|
2267
2287
|
{
|
|
2268
2288
|
...mergeProps(filterDOMProps(props), nonModalProps),
|
|
@@ -2373,7 +2393,7 @@ var _DialogTrigger = ({
|
|
|
2373
2393
|
};
|
|
2374
2394
|
|
|
2375
2395
|
// src/Dialog/Dialog.tsx
|
|
2376
|
-
import { jsx as jsx46, jsxs as
|
|
2396
|
+
import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2377
2397
|
var _Dialog = forwardRef18(
|
|
2378
2398
|
({ variant, size: size2, ...props }, ref) => {
|
|
2379
2399
|
var _a;
|
|
@@ -2395,7 +2415,7 @@ var _Dialog = forwardRef18(
|
|
|
2395
2415
|
keyboardDismissable: isKeyboardDismissDisabled,
|
|
2396
2416
|
open: isOpen,
|
|
2397
2417
|
size: size2,
|
|
2398
|
-
children: /* @__PURE__ */
|
|
2418
|
+
children: /* @__PURE__ */ jsxs17(
|
|
2399
2419
|
Dialog,
|
|
2400
2420
|
{
|
|
2401
2421
|
...props,
|
|
@@ -2543,7 +2563,7 @@ var DrawerTrigger = ({
|
|
|
2543
2563
|
}) => /* @__PURE__ */ jsx52(DialogTrigger2, { isOpen: open, ...props, children });
|
|
2544
2564
|
|
|
2545
2565
|
// src/Drawer/Drawer.tsx
|
|
2546
|
-
import { jsx as jsx53, jsxs as
|
|
2566
|
+
import { jsx as jsx53, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2547
2567
|
var Drawer = ({
|
|
2548
2568
|
children,
|
|
2549
2569
|
variant,
|
|
@@ -2566,7 +2586,7 @@ var Drawer = ({
|
|
|
2566
2586
|
className: classNames3.overlay,
|
|
2567
2587
|
open,
|
|
2568
2588
|
keyboardDismissable,
|
|
2569
|
-
children: /* @__PURE__ */ jsx53(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */
|
|
2589
|
+
children: /* @__PURE__ */ jsx53(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ jsxs18(
|
|
2570
2590
|
Dialog2,
|
|
2571
2591
|
{
|
|
2572
2592
|
...props,
|
|
@@ -2775,7 +2795,7 @@ import { useClassNames as useClassNames35 } from "@marigold/system";
|
|
|
2775
2795
|
// src/DateField/DateSegment.tsx
|
|
2776
2796
|
import { DateSegment } from "react-aria-components";
|
|
2777
2797
|
import { cn as cn38 } from "@marigold/system";
|
|
2778
|
-
import { Fragment as
|
|
2798
|
+
import { Fragment as Fragment5, jsx as jsx62, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2779
2799
|
var _DateSegment = ({ segment, ...props }) => {
|
|
2780
2800
|
return /* @__PURE__ */ jsx62(
|
|
2781
2801
|
DateSegment,
|
|
@@ -2785,7 +2805,7 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2785
2805
|
style: {
|
|
2786
2806
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
2787
2807
|
},
|
|
2788
|
-
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */
|
|
2808
|
+
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
2789
2809
|
/* @__PURE__ */ jsx62(
|
|
2790
2810
|
"span",
|
|
2791
2811
|
{
|
|
@@ -2804,10 +2824,10 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2804
2824
|
};
|
|
2805
2825
|
|
|
2806
2826
|
// src/DateField/DateInput.tsx
|
|
2807
|
-
import { jsx as jsx63, jsxs as
|
|
2827
|
+
import { jsx as jsx63, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2808
2828
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2809
2829
|
const classNames3 = useClassNames35({ component: "DateField", variant, size: size2 });
|
|
2810
|
-
return /* @__PURE__ */
|
|
2830
|
+
return /* @__PURE__ */ jsxs20(Group, { className: classNames3.field, children: [
|
|
2811
2831
|
/* @__PURE__ */ jsx63(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx63(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2812
2832
|
action ? action : null
|
|
2813
2833
|
] });
|
|
@@ -2850,7 +2870,7 @@ var _DateField = forwardRef19(
|
|
|
2850
2870
|
// src/Calendar/Calendar.tsx
|
|
2851
2871
|
import { useState } from "react";
|
|
2852
2872
|
import { Calendar } from "react-aria-components";
|
|
2853
|
-
import { cn as
|
|
2873
|
+
import { cn as cn44, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2854
2874
|
|
|
2855
2875
|
// src/Calendar/CalendarGrid.tsx
|
|
2856
2876
|
import {
|
|
@@ -2889,10 +2909,10 @@ function CalendarGridHeader(props) {
|
|
|
2889
2909
|
}
|
|
2890
2910
|
|
|
2891
2911
|
// src/Calendar/CalendarGrid.tsx
|
|
2892
|
-
import { jsx as jsx66, jsxs as
|
|
2912
|
+
import { jsx as jsx66, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2893
2913
|
var _CalendarGrid = () => {
|
|
2894
2914
|
const classNames3 = useClassNames37({ component: "Calendar" });
|
|
2895
|
-
return /* @__PURE__ */
|
|
2915
|
+
return /* @__PURE__ */ jsxs21(CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
2896
2916
|
/* @__PURE__ */ jsx66(CalendarGridHeader, {}),
|
|
2897
2917
|
/* @__PURE__ */ jsx66(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx66(
|
|
2898
2918
|
CalendarCell,
|
|
@@ -2908,9 +2928,14 @@ var _CalendarGrid = () => {
|
|
|
2908
2928
|
};
|
|
2909
2929
|
|
|
2910
2930
|
// src/Calendar/CalendarListBox.tsx
|
|
2911
|
-
import { useContext as
|
|
2931
|
+
import { useContext as useContext14 } from "react";
|
|
2912
2932
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
2913
|
-
import { cn as cn40
|
|
2933
|
+
import { cn as cn40 } from "@marigold/system";
|
|
2934
|
+
|
|
2935
|
+
// src/Calendar/Context.tsx
|
|
2936
|
+
import { createContext as createContext8, useContext as useContext13 } from "react";
|
|
2937
|
+
var CalendarContext = createContext8({});
|
|
2938
|
+
var useCalendarContext = () => useContext13(CalendarContext);
|
|
2914
2939
|
|
|
2915
2940
|
// src/Calendar/useFormattedMonths.tsx
|
|
2916
2941
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -2929,22 +2954,22 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
2929
2954
|
}
|
|
2930
2955
|
|
|
2931
2956
|
// src/Calendar/CalendarListBox.tsx
|
|
2932
|
-
import { jsx as jsx67, jsxs as
|
|
2957
|
+
import { jsx as jsx67, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2933
2958
|
function CalendarListBox({
|
|
2934
2959
|
type,
|
|
2935
2960
|
isDisabled,
|
|
2936
2961
|
setSelectedDropdown
|
|
2937
2962
|
}) {
|
|
2938
|
-
const state =
|
|
2963
|
+
const state = useContext14(CalendarStateContext2);
|
|
2939
2964
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2940
2965
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
2941
|
-
const {
|
|
2942
|
-
return /* @__PURE__ */
|
|
2966
|
+
const { classNames: classNames3 } = useCalendarContext();
|
|
2967
|
+
return /* @__PURE__ */ jsxs22(
|
|
2943
2968
|
"button",
|
|
2944
2969
|
{
|
|
2945
2970
|
disabled: isDisabled,
|
|
2946
2971
|
onClick: () => setSelectedDropdown(type),
|
|
2947
|
-
className: cn40(buttonStyles,
|
|
2972
|
+
className: cn40(buttonStyles, classNames3.select),
|
|
2948
2973
|
"data-testid": type,
|
|
2949
2974
|
children: [
|
|
2950
2975
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
@@ -2955,11 +2980,11 @@ function CalendarListBox({
|
|
|
2955
2980
|
}
|
|
2956
2981
|
|
|
2957
2982
|
// src/Calendar/MonthControls.tsx
|
|
2958
|
-
import { cn as cn41, useClassNames as
|
|
2959
|
-
import { jsx as jsx68, jsxs as
|
|
2983
|
+
import { cn as cn41, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2984
|
+
import { jsx as jsx68, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2960
2985
|
function MonthControls() {
|
|
2961
|
-
const classNames3 =
|
|
2962
|
-
return /* @__PURE__ */
|
|
2986
|
+
const classNames3 = useClassNames38({ component: "Calendar" });
|
|
2987
|
+
return /* @__PURE__ */ jsxs23(
|
|
2963
2988
|
"div",
|
|
2964
2989
|
{
|
|
2965
2990
|
className: cn41(
|
|
@@ -2992,33 +3017,40 @@ function MonthControls() {
|
|
|
2992
3017
|
var MonthControls_default = MonthControls;
|
|
2993
3018
|
|
|
2994
3019
|
// src/Calendar/MonthListBox.tsx
|
|
2995
|
-
import { useContext as
|
|
3020
|
+
import { useContext as useContext15 } from "react";
|
|
2996
3021
|
import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
|
|
3022
|
+
import { Button as Button6 } from "react-aria-components";
|
|
3023
|
+
import { cn as cn42 } from "@marigold/system";
|
|
2997
3024
|
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
2998
3025
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
2999
|
-
const state =
|
|
3026
|
+
const state = useContext15(CalendarStateContext3);
|
|
3000
3027
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
3001
3028
|
let onChange2 = (index2) => {
|
|
3002
3029
|
let value = Number(index2) + 1;
|
|
3003
3030
|
let date = state.focusedDate.set({ month: value });
|
|
3004
3031
|
state.setFocusedDate(date);
|
|
3005
3032
|
};
|
|
3033
|
+
const { classNames: classNames3 } = useCalendarContext();
|
|
3006
3034
|
return /* @__PURE__ */ jsx69(
|
|
3007
3035
|
"ul",
|
|
3008
3036
|
{
|
|
3009
3037
|
"data-testid": "monthOptions",
|
|
3010
|
-
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10
|
|
3038
|
+
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 p-2",
|
|
3011
3039
|
children: months.map((month, index2) => {
|
|
3040
|
+
const isSelected = index2 === state.focusedDate.month - 1;
|
|
3012
3041
|
return /* @__PURE__ */ jsx69("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx69(
|
|
3013
|
-
|
|
3042
|
+
Button6,
|
|
3014
3043
|
{
|
|
3015
3044
|
slot: "previous",
|
|
3016
|
-
variant: index2 === state.focusedDate.month - 1 ? "secondary" : "text",
|
|
3017
|
-
size: "small",
|
|
3018
3045
|
onPress: () => {
|
|
3019
3046
|
onChange2(index2);
|
|
3020
3047
|
setSelectedDropdown(void 0);
|
|
3021
3048
|
},
|
|
3049
|
+
"aria-current": isSelected,
|
|
3050
|
+
className: cn42(
|
|
3051
|
+
classNames3.calendarListboxButton,
|
|
3052
|
+
"inline-flex items-center justify-center gap-[0.5ch]"
|
|
3053
|
+
),
|
|
3022
3054
|
children: month.substring(0, 3)
|
|
3023
3055
|
},
|
|
3024
3056
|
index2 + 1
|
|
@@ -3031,15 +3063,17 @@ var MonthListBox_default = MonthListBox;
|
|
|
3031
3063
|
|
|
3032
3064
|
// src/Calendar/YearListBox.tsx
|
|
3033
3065
|
import {
|
|
3034
|
-
useContext as
|
|
3066
|
+
useContext as useContext16,
|
|
3035
3067
|
useEffect,
|
|
3036
3068
|
useRef as useRef2
|
|
3037
3069
|
} from "react";
|
|
3038
|
-
import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
3070
|
+
import { Button as Button7, CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
3039
3071
|
import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
|
|
3072
|
+
import { cn as cn43 } from "@marigold/system";
|
|
3040
3073
|
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
3041
3074
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
3042
|
-
const state =
|
|
3075
|
+
const state = useContext16(CalendarStateContext4);
|
|
3076
|
+
const { classNames: classNames3 } = useCalendarContext();
|
|
3043
3077
|
const years = [];
|
|
3044
3078
|
let formatter = useDateFormatter3({
|
|
3045
3079
|
year: "numeric",
|
|
@@ -3073,24 +3107,26 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3073
3107
|
"data-testid": "yearOptions",
|
|
3074
3108
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
3075
3109
|
children: years.map((year, index2) => {
|
|
3076
|
-
const
|
|
3110
|
+
const isSelected = +year.formatted === state.focusedDate.year;
|
|
3077
3111
|
return /* @__PURE__ */ jsx70("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx70(
|
|
3078
3112
|
"div",
|
|
3079
3113
|
{
|
|
3080
|
-
ref:
|
|
3081
|
-
|
|
3114
|
+
ref: isSelected ? activeButtonRef : null,
|
|
3115
|
+
className: "flex size-full justify-center",
|
|
3082
3116
|
children: /* @__PURE__ */ jsx70(
|
|
3083
|
-
|
|
3117
|
+
Button7,
|
|
3084
3118
|
{
|
|
3085
3119
|
slot: "previous",
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3120
|
+
className: cn43(
|
|
3121
|
+
classNames3.calendarListboxButton,
|
|
3122
|
+
"inline-flex items-center justify-center gap-[0.5ch]"
|
|
3123
|
+
),
|
|
3089
3124
|
onPress: () => {
|
|
3090
3125
|
onChange2(index2);
|
|
3091
3126
|
setSelectedDropdown(void 0);
|
|
3092
3127
|
},
|
|
3093
3128
|
"data-value": year.formatted,
|
|
3129
|
+
"aria-current": isSelected,
|
|
3094
3130
|
children: year.formatted
|
|
3095
3131
|
},
|
|
3096
3132
|
index2
|
|
@@ -3104,7 +3140,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3104
3140
|
var YearListBox_default = YearListBox;
|
|
3105
3141
|
|
|
3106
3142
|
// src/Calendar/Calendar.tsx
|
|
3107
|
-
import {
|
|
3143
|
+
import { jsx as jsx71, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3108
3144
|
var _Calendar = ({
|
|
3109
3145
|
disabled,
|
|
3110
3146
|
readOnly,
|
|
@@ -3119,53 +3155,65 @@ var _Calendar = ({
|
|
|
3119
3155
|
isDateUnavailable: dateUnavailable,
|
|
3120
3156
|
...rest
|
|
3121
3157
|
};
|
|
3122
|
-
const classNames3 =
|
|
3158
|
+
const classNames3 = useClassNames39({ component: "Calendar", size: size2, variant });
|
|
3123
3159
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
3124
3160
|
const ViewMap = {
|
|
3125
3161
|
month: /* @__PURE__ */ jsx71(MonthListBox_default, { setSelectedDropdown }),
|
|
3126
3162
|
year: /* @__PURE__ */ jsx71(YearListBox_default, { setSelectedDropdown })
|
|
3127
3163
|
};
|
|
3128
|
-
return /* @__PURE__ */ jsx71(
|
|
3164
|
+
return /* @__PURE__ */ jsx71(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs24(
|
|
3129
3165
|
Calendar,
|
|
3130
3166
|
{
|
|
3131
|
-
className:
|
|
3132
|
-
"flex min-h-[350px] w-fit flex-col rounded-xs p-4",
|
|
3167
|
+
className: cn44(
|
|
3168
|
+
"relative flex min-h-[350px] w-fit flex-col rounded-xs p-4",
|
|
3133
3169
|
classNames3.calendar
|
|
3134
3170
|
),
|
|
3135
3171
|
...props,
|
|
3136
|
-
children:
|
|
3137
|
-
/* @__PURE__ */
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
isDisabled: props.isDisabled,
|
|
3144
|
-
setSelectedDropdown
|
|
3145
|
-
}
|
|
3172
|
+
children: [
|
|
3173
|
+
/* @__PURE__ */ jsx71(
|
|
3174
|
+
"div",
|
|
3175
|
+
{
|
|
3176
|
+
className: cn44(
|
|
3177
|
+
"pointer-events-none absolute top-1/2 left-0 w-full -translate-y-1/2 opacity-0",
|
|
3178
|
+
selectedDropdown && "pointer-events-auto opacity-100"
|
|
3146
3179
|
),
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3180
|
+
children: ViewMap[selectedDropdown]
|
|
3181
|
+
}
|
|
3182
|
+
),
|
|
3183
|
+
/* @__PURE__ */ jsxs24(
|
|
3184
|
+
"div",
|
|
3185
|
+
{
|
|
3186
|
+
className: cn44(
|
|
3187
|
+
"flex flex-col",
|
|
3188
|
+
selectedDropdown && "pointer-events-none opacity-0"
|
|
3189
|
+
),
|
|
3190
|
+
children: [
|
|
3191
|
+
/* @__PURE__ */ jsxs24("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
3192
|
+
/* @__PURE__ */ jsx71("div", { className: "flex w-fit gap-4", children: ["month", "year"].map((dateType) => /* @__PURE__ */ jsx71(
|
|
3193
|
+
CalendarListBox,
|
|
3194
|
+
{
|
|
3195
|
+
type: dateType,
|
|
3196
|
+
isDisabled: props.isDisabled,
|
|
3197
|
+
setSelectedDropdown
|
|
3198
|
+
},
|
|
3199
|
+
dateType
|
|
3200
|
+
)) }),
|
|
3201
|
+
/* @__PURE__ */ jsx71(MonthControls_default, {})
|
|
3202
|
+
] }),
|
|
3203
|
+
/* @__PURE__ */ jsx71(_CalendarGrid, {})
|
|
3204
|
+
]
|
|
3205
|
+
}
|
|
3206
|
+
)
|
|
3207
|
+
]
|
|
3160
3208
|
}
|
|
3161
|
-
);
|
|
3209
|
+
) });
|
|
3162
3210
|
};
|
|
3163
3211
|
|
|
3164
3212
|
// src/DatePicker/DatePicker.tsx
|
|
3165
3213
|
import React6 from "react";
|
|
3166
3214
|
import { DatePicker, Dialog as Dialog3 } from "react-aria-components";
|
|
3167
|
-
import { useClassNames as
|
|
3168
|
-
import { jsx as jsx72, jsxs as
|
|
3215
|
+
import { useClassNames as useClassNames40 } from "@marigold/system";
|
|
3216
|
+
import { jsx as jsx72, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3169
3217
|
var _DatePicker = React6.forwardRef(
|
|
3170
3218
|
({
|
|
3171
3219
|
dateUnavailable,
|
|
@@ -3189,12 +3237,12 @@ var _DatePicker = React6.forwardRef(
|
|
|
3189
3237
|
granularity,
|
|
3190
3238
|
...rest
|
|
3191
3239
|
};
|
|
3192
|
-
const classNames3 =
|
|
3240
|
+
const classNames3 = useClassNames40({
|
|
3193
3241
|
component: "DatePicker",
|
|
3194
3242
|
size: size2,
|
|
3195
3243
|
variant
|
|
3196
3244
|
});
|
|
3197
|
-
return /* @__PURE__ */
|
|
3245
|
+
return /* @__PURE__ */ jsxs25(
|
|
3198
3246
|
FieldBase,
|
|
3199
3247
|
{
|
|
3200
3248
|
as: DatePicker,
|
|
@@ -3228,7 +3276,7 @@ var _DatePicker = React6.forwardRef(
|
|
|
3228
3276
|
|
|
3229
3277
|
// src/Inset/Inset.tsx
|
|
3230
3278
|
import {
|
|
3231
|
-
cn as
|
|
3279
|
+
cn as cn45,
|
|
3232
3280
|
paddingSpace as paddingSpace2,
|
|
3233
3281
|
paddingSpaceX as paddingSpaceX2,
|
|
3234
3282
|
paddingSpaceY as paddingSpaceY2
|
|
@@ -3237,7 +3285,7 @@ import { jsx as jsx73 } from "react/jsx-runtime";
|
|
|
3237
3285
|
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx73(
|
|
3238
3286
|
"div",
|
|
3239
3287
|
{
|
|
3240
|
-
className:
|
|
3288
|
+
className: cn45(
|
|
3241
3289
|
space && paddingSpace2[space],
|
|
3242
3290
|
!space && spaceX && paddingSpaceX2[spaceX],
|
|
3243
3291
|
!space && spaceY && paddingSpaceY2[spaceY]
|
|
@@ -3249,11 +3297,11 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx73(
|
|
|
3249
3297
|
// src/Link/Link.tsx
|
|
3250
3298
|
import { forwardRef as forwardRef20 } from "react";
|
|
3251
3299
|
import { Link } from "react-aria-components";
|
|
3252
|
-
import { useClassNames as
|
|
3300
|
+
import { useClassNames as useClassNames41 } from "@marigold/system";
|
|
3253
3301
|
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3254
3302
|
var _Link = forwardRef20(
|
|
3255
3303
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
3256
|
-
const classNames3 =
|
|
3304
|
+
const classNames3 = useClassNames41({
|
|
3257
3305
|
component: "Link",
|
|
3258
3306
|
variant,
|
|
3259
3307
|
size: size2
|
|
@@ -3263,12 +3311,12 @@ var _Link = forwardRef20(
|
|
|
3263
3311
|
);
|
|
3264
3312
|
|
|
3265
3313
|
// src/List/List.tsx
|
|
3266
|
-
import { useClassNames as
|
|
3314
|
+
import { useClassNames as useClassNames42 } from "@marigold/system";
|
|
3267
3315
|
|
|
3268
3316
|
// src/List/Context.ts
|
|
3269
|
-
import { createContext as
|
|
3270
|
-
var ListContext =
|
|
3271
|
-
var useListContext = () =>
|
|
3317
|
+
import { createContext as createContext9, useContext as useContext17 } from "react";
|
|
3318
|
+
var ListContext = createContext9({});
|
|
3319
|
+
var useListContext = () => useContext17(ListContext);
|
|
3272
3320
|
|
|
3273
3321
|
// src/List/ListItem.tsx
|
|
3274
3322
|
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
@@ -3287,38 +3335,38 @@ var List = ({
|
|
|
3287
3335
|
...props
|
|
3288
3336
|
}) => {
|
|
3289
3337
|
const Component2 = as;
|
|
3290
|
-
const classNames3 =
|
|
3338
|
+
const classNames3 = useClassNames42({ component: "List", variant, size: size2 });
|
|
3291
3339
|
return /* @__PURE__ */ jsx76(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx76(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
3292
3340
|
};
|
|
3293
3341
|
List.Item = ListItem;
|
|
3294
3342
|
|
|
3295
3343
|
// src/Menu/Menu.tsx
|
|
3296
|
-
import { Menu, MenuTrigger } from "react-aria-components";
|
|
3297
|
-
import { useClassNames as
|
|
3344
|
+
import { Button as Button8, Menu, MenuTrigger } from "react-aria-components";
|
|
3345
|
+
import { useClassNames as useClassNames45 } from "@marigold/system";
|
|
3298
3346
|
|
|
3299
3347
|
// src/Menu/MenuItem.tsx
|
|
3300
3348
|
import { MenuItem } from "react-aria-components";
|
|
3301
|
-
import { useClassNames as
|
|
3349
|
+
import { useClassNames as useClassNames43 } from "@marigold/system";
|
|
3302
3350
|
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3303
3351
|
var _MenuItem = ({ children, ...props }) => {
|
|
3304
|
-
const classNames3 =
|
|
3352
|
+
const classNames3 = useClassNames43({ component: "Menu" });
|
|
3305
3353
|
return /* @__PURE__ */ jsx77(MenuItem, { ...props, className: classNames3.item, children });
|
|
3306
3354
|
};
|
|
3307
3355
|
|
|
3308
3356
|
// src/Menu/MenuSection.tsx
|
|
3309
3357
|
import { MenuSection } from "react-aria-components";
|
|
3310
|
-
import { useClassNames as
|
|
3311
|
-
import { jsx as jsx78, jsxs as
|
|
3358
|
+
import { useClassNames as useClassNames44 } from "@marigold/system";
|
|
3359
|
+
import { jsx as jsx78, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3312
3360
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
3313
|
-
const className =
|
|
3314
|
-
return /* @__PURE__ */
|
|
3361
|
+
const className = useClassNames44({ component: "Menu" });
|
|
3362
|
+
return /* @__PURE__ */ jsxs26(MenuSection, { ...props, children: [
|
|
3315
3363
|
/* @__PURE__ */ jsx78(_Header, { className: className.section, children: title }),
|
|
3316
3364
|
children
|
|
3317
3365
|
] });
|
|
3318
3366
|
};
|
|
3319
3367
|
|
|
3320
3368
|
// src/Menu/Menu.tsx
|
|
3321
|
-
import { jsx as jsx79, jsxs as
|
|
3369
|
+
import { jsx as jsx79, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3322
3370
|
var _Menu = ({
|
|
3323
3371
|
children,
|
|
3324
3372
|
label,
|
|
@@ -3330,9 +3378,17 @@ var _Menu = ({
|
|
|
3330
3378
|
"aria-label": ariaLabel,
|
|
3331
3379
|
...props
|
|
3332
3380
|
}) => {
|
|
3333
|
-
const classNames3 =
|
|
3334
|
-
return /* @__PURE__ */
|
|
3335
|
-
/* @__PURE__ */ jsx79(
|
|
3381
|
+
const classNames3 = useClassNames45({ component: "Menu", variant, size: size2 });
|
|
3382
|
+
return /* @__PURE__ */ jsxs27(MenuTrigger, { ...props, children: [
|
|
3383
|
+
/* @__PURE__ */ jsx79(
|
|
3384
|
+
Button8,
|
|
3385
|
+
{
|
|
3386
|
+
className: classNames3.button,
|
|
3387
|
+
"aria-label": ariaLabel,
|
|
3388
|
+
isDisabled: disabled,
|
|
3389
|
+
children: label
|
|
3390
|
+
}
|
|
3391
|
+
),
|
|
3336
3392
|
/* @__PURE__ */ jsx79(_Popover, { open, placement, children: /* @__PURE__ */ jsx79(Menu, { ...props, className: classNames3.container, children }) })
|
|
3337
3393
|
] });
|
|
3338
3394
|
};
|
|
@@ -3340,18 +3396,18 @@ _Menu.Item = _MenuItem;
|
|
|
3340
3396
|
_Menu.Section = _MenuSection;
|
|
3341
3397
|
|
|
3342
3398
|
// src/Menu/ActionMenu.tsx
|
|
3343
|
-
import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3344
|
-
import { SVG as SVG8, useClassNames as
|
|
3345
|
-
import { jsx as jsx80, jsxs as
|
|
3399
|
+
import { Button as Button9, Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3400
|
+
import { SVG as SVG8, useClassNames as useClassNames46 } from "@marigold/system";
|
|
3401
|
+
import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3346
3402
|
var ActionMenu = ({
|
|
3347
3403
|
variant,
|
|
3348
3404
|
size: size2,
|
|
3349
3405
|
disabled,
|
|
3350
3406
|
...props
|
|
3351
3407
|
}) => {
|
|
3352
|
-
const classNames3 =
|
|
3353
|
-
return /* @__PURE__ */
|
|
3354
|
-
/* @__PURE__ */ jsx80(
|
|
3408
|
+
const classNames3 = useClassNames46({ component: "Menu", variant, size: size2 });
|
|
3409
|
+
return /* @__PURE__ */ jsxs28(MenuTrigger2, { children: [
|
|
3410
|
+
/* @__PURE__ */ jsx80(Button9, { className: classNames3.button, isDisabled: disabled, children: /* @__PURE__ */ jsx80(SVG8, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx80("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
|
|
3355
3411
|
/* @__PURE__ */ jsx80(_Popover, { children: /* @__PURE__ */ jsx80(Menu2, { ...props, className: classNames3.container, children: props.children }) })
|
|
3356
3412
|
] });
|
|
3357
3413
|
};
|
|
@@ -3359,33 +3415,33 @@ var ActionMenu = ({
|
|
|
3359
3415
|
// src/SectionMessage/SectionMessage.tsx
|
|
3360
3416
|
import { useRef as useRef3, useState as useState2 } from "react";
|
|
3361
3417
|
import { useButton } from "@react-aria/button";
|
|
3362
|
-
import { cn as
|
|
3418
|
+
import { cn as cn48, useClassNames as useClassNames47 } from "@marigold/system";
|
|
3363
3419
|
|
|
3364
3420
|
// src/SectionMessage/Context.tsx
|
|
3365
|
-
import { createContext as
|
|
3366
|
-
var SectionMessageContext =
|
|
3367
|
-
var useSectionMessageContext = () =>
|
|
3421
|
+
import { createContext as createContext10, useContext as useContext18 } from "react";
|
|
3422
|
+
var SectionMessageContext = createContext10({});
|
|
3423
|
+
var useSectionMessageContext = () => useContext18(SectionMessageContext);
|
|
3368
3424
|
|
|
3369
3425
|
// src/SectionMessage/SectionMessageContent.tsx
|
|
3370
|
-
import { cn as
|
|
3426
|
+
import { cn as cn46 } from "@marigold/system";
|
|
3371
3427
|
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3372
3428
|
var SectionMessageContent = ({
|
|
3373
3429
|
children
|
|
3374
3430
|
}) => {
|
|
3375
3431
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3376
|
-
return /* @__PURE__ */ jsx81("div", { className:
|
|
3432
|
+
return /* @__PURE__ */ jsx81("div", { className: cn46("[grid-area:content]", classNames3.content), children });
|
|
3377
3433
|
};
|
|
3378
3434
|
|
|
3379
3435
|
// src/SectionMessage/SectionMessageTitle.tsx
|
|
3380
|
-
import { cn as
|
|
3436
|
+
import { cn as cn47 } from "@marigold/system";
|
|
3381
3437
|
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3382
3438
|
var SectionMessageTitle = ({ children }) => {
|
|
3383
3439
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3384
|
-
return /* @__PURE__ */ jsx82("div", { className:
|
|
3440
|
+
return /* @__PURE__ */ jsx82("div", { className: cn47("[grid-area:title]", classNames3.title), children });
|
|
3385
3441
|
};
|
|
3386
3442
|
|
|
3387
3443
|
// src/SectionMessage/SectionMessage.tsx
|
|
3388
|
-
import { jsx as jsx83, jsxs as
|
|
3444
|
+
import { jsx as jsx83, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3389
3445
|
var icons = {
|
|
3390
3446
|
success: () => /* @__PURE__ */ jsx83(
|
|
3391
3447
|
"svg",
|
|
@@ -3462,7 +3518,7 @@ var SectionMessage = ({
|
|
|
3462
3518
|
...props
|
|
3463
3519
|
}) => {
|
|
3464
3520
|
const buttonRef = useRef3(null);
|
|
3465
|
-
const classNames3 =
|
|
3521
|
+
const classNames3 = useClassNames47({
|
|
3466
3522
|
component: "SectionMessage",
|
|
3467
3523
|
variant,
|
|
3468
3524
|
size: size2
|
|
@@ -3478,21 +3534,21 @@ var SectionMessage = ({
|
|
|
3478
3534
|
}
|
|
3479
3535
|
};
|
|
3480
3536
|
if (!isCurrentlyVisible) return null;
|
|
3481
|
-
return /* @__PURE__ */ jsx83(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */
|
|
3537
|
+
return /* @__PURE__ */ jsx83(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs29(
|
|
3482
3538
|
"div",
|
|
3483
3539
|
{
|
|
3484
3540
|
role: variant === "error" ? "alert" : void 0,
|
|
3485
3541
|
...props,
|
|
3486
|
-
className:
|
|
3542
|
+
className: cn48("grid auto-rows-min", classNames3.container),
|
|
3487
3543
|
children: [
|
|
3488
|
-
/* @__PURE__ */ jsx83("div", { className:
|
|
3544
|
+
/* @__PURE__ */ jsx83("div", { className: cn48("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx83(Icon4, {}) }),
|
|
3489
3545
|
closeButton && /* @__PURE__ */ jsx83(
|
|
3490
3546
|
CloseButton,
|
|
3491
3547
|
{
|
|
3492
3548
|
...buttonProps,
|
|
3493
3549
|
ref: buttonRef,
|
|
3494
3550
|
"aria-label": "close",
|
|
3495
|
-
className:
|
|
3551
|
+
className: cn48("[grid-area:close]", classNames3.close),
|
|
3496
3552
|
onPress: handleClose
|
|
3497
3553
|
}
|
|
3498
3554
|
),
|
|
@@ -3506,7 +3562,7 @@ SectionMessage.Content = SectionMessageContent;
|
|
|
3506
3562
|
|
|
3507
3563
|
// src/Multiselect/Multiselect.tsx
|
|
3508
3564
|
import {
|
|
3509
|
-
Button as
|
|
3565
|
+
Button as Button10,
|
|
3510
3566
|
ButtonContext,
|
|
3511
3567
|
FieldErrorContext as FieldErrorContext2,
|
|
3512
3568
|
InputContext,
|
|
@@ -3514,7 +3570,7 @@ import {
|
|
|
3514
3570
|
Input as _Input2
|
|
3515
3571
|
} from "react-aria-components";
|
|
3516
3572
|
|
|
3517
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3573
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
3518
3574
|
function _typeof(o) {
|
|
3519
3575
|
"@babel/helpers - typeof";
|
|
3520
3576
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -3524,7 +3580,7 @@ function _typeof(o) {
|
|
|
3524
3580
|
}, _typeof(o);
|
|
3525
3581
|
}
|
|
3526
3582
|
|
|
3527
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3583
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3528
3584
|
function toPrimitive(t, r) {
|
|
3529
3585
|
if ("object" != _typeof(t) || !t) return t;
|
|
3530
3586
|
var e = t[Symbol.toPrimitive];
|
|
@@ -3536,13 +3592,13 @@ function toPrimitive(t, r) {
|
|
|
3536
3592
|
return ("string" === r ? String : Number)(t);
|
|
3537
3593
|
}
|
|
3538
3594
|
|
|
3539
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3595
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
3540
3596
|
function toPropertyKey(t) {
|
|
3541
3597
|
var i = toPrimitive(t, "string");
|
|
3542
3598
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
3543
3599
|
}
|
|
3544
3600
|
|
|
3545
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3601
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3546
3602
|
function _defineProperty(e, r, t) {
|
|
3547
3603
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3548
3604
|
value: t,
|
|
@@ -3552,7 +3608,7 @@ function _defineProperty(e, r, t) {
|
|
|
3552
3608
|
}) : e[r] = t, e;
|
|
3553
3609
|
}
|
|
3554
3610
|
|
|
3555
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3611
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3556
3612
|
function ownKeys(e, r) {
|
|
3557
3613
|
var t = Object.keys(e);
|
|
3558
3614
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3575,12 +3631,12 @@ function _objectSpread2(e) {
|
|
|
3575
3631
|
return e;
|
|
3576
3632
|
}
|
|
3577
3633
|
|
|
3578
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3634
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
3579
3635
|
function _arrayWithHoles(r) {
|
|
3580
3636
|
if (Array.isArray(r)) return r;
|
|
3581
3637
|
}
|
|
3582
3638
|
|
|
3583
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3639
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
3584
3640
|
function _iterableToArrayLimit(r, l) {
|
|
3585
3641
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3586
3642
|
if (null != t) {
|
|
@@ -3603,14 +3659,14 @@ function _iterableToArrayLimit(r, l) {
|
|
|
3603
3659
|
}
|
|
3604
3660
|
}
|
|
3605
3661
|
|
|
3606
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3662
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
3607
3663
|
function _arrayLikeToArray(r, a) {
|
|
3608
3664
|
(null == a || a > r.length) && (a = r.length);
|
|
3609
3665
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3610
3666
|
return n;
|
|
3611
3667
|
}
|
|
3612
3668
|
|
|
3613
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3669
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3614
3670
|
function _unsupportedIterableToArray(r, a) {
|
|
3615
3671
|
if (r) {
|
|
3616
3672
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -3619,17 +3675,17 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
3619
3675
|
}
|
|
3620
3676
|
}
|
|
3621
3677
|
|
|
3622
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3678
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
3623
3679
|
function _nonIterableRest() {
|
|
3624
3680
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3625
3681
|
}
|
|
3626
3682
|
|
|
3627
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3683
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
3628
3684
|
function _slicedToArray(r, e) {
|
|
3629
3685
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
3630
3686
|
}
|
|
3631
3687
|
|
|
3632
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3688
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
3633
3689
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3634
3690
|
if (null == r) return {};
|
|
3635
3691
|
var t = {};
|
|
@@ -3640,7 +3696,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
3640
3696
|
return t;
|
|
3641
3697
|
}
|
|
3642
3698
|
|
|
3643
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3699
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
3644
3700
|
function _objectWithoutProperties(e, t) {
|
|
3645
3701
|
if (null == e) return {};
|
|
3646
3702
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -3651,7 +3707,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
3651
3707
|
return i;
|
|
3652
3708
|
}
|
|
3653
3709
|
|
|
3654
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3710
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3655
3711
|
import { useState as useState3, useCallback } from "react";
|
|
3656
3712
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3657
3713
|
function useStateManager(_ref3) {
|
|
@@ -3698,7 +3754,7 @@ function useStateManager(_ref3) {
|
|
|
3698
3754
|
});
|
|
3699
3755
|
}
|
|
3700
3756
|
|
|
3701
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3757
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3702
3758
|
function _extends() {
|
|
3703
3759
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3704
3760
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3709,16 +3765,16 @@ function _extends() {
|
|
|
3709
3765
|
}, _extends.apply(null, arguments);
|
|
3710
3766
|
}
|
|
3711
3767
|
|
|
3712
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3768
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
3713
3769
|
import * as React11 from "react";
|
|
3714
3770
|
import { forwardRef as forwardRef23, useMemo as useMemo5 } from "react";
|
|
3715
3771
|
|
|
3716
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3772
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3717
3773
|
function _classCallCheck(a, n) {
|
|
3718
3774
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3719
3775
|
}
|
|
3720
3776
|
|
|
3721
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3777
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
3722
3778
|
function _defineProperties(e, r) {
|
|
3723
3779
|
for (var t = 0; t < r.length; t++) {
|
|
3724
3780
|
var o = r[t];
|
|
@@ -3731,14 +3787,14 @@ function _createClass(e, r, t) {
|
|
|
3731
3787
|
}), e;
|
|
3732
3788
|
}
|
|
3733
3789
|
|
|
3734
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3790
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
3735
3791
|
function _setPrototypeOf(t, e) {
|
|
3736
3792
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3737
3793
|
return t2.__proto__ = e2, t2;
|
|
3738
3794
|
}, _setPrototypeOf(t, e);
|
|
3739
3795
|
}
|
|
3740
3796
|
|
|
3741
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3797
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
3742
3798
|
function _inherits(t, e) {
|
|
3743
3799
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
3744
3800
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -3752,14 +3808,14 @@ function _inherits(t, e) {
|
|
|
3752
3808
|
}), e && _setPrototypeOf(t, e);
|
|
3753
3809
|
}
|
|
3754
3810
|
|
|
3755
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3811
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
3756
3812
|
function _getPrototypeOf(t) {
|
|
3757
3813
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
3758
3814
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
3759
3815
|
}, _getPrototypeOf(t);
|
|
3760
3816
|
}
|
|
3761
3817
|
|
|
3762
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3818
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
3763
3819
|
function _isNativeReflectConstruct() {
|
|
3764
3820
|
try {
|
|
3765
3821
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -3771,20 +3827,20 @@ function _isNativeReflectConstruct() {
|
|
|
3771
3827
|
})();
|
|
3772
3828
|
}
|
|
3773
3829
|
|
|
3774
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3830
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
3775
3831
|
function _assertThisInitialized(e) {
|
|
3776
3832
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3777
3833
|
return e;
|
|
3778
3834
|
}
|
|
3779
3835
|
|
|
3780
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3836
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
3781
3837
|
function _possibleConstructorReturn(t, e) {
|
|
3782
3838
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
3783
3839
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3784
3840
|
return _assertThisInitialized(t);
|
|
3785
3841
|
}
|
|
3786
3842
|
|
|
3787
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3843
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
3788
3844
|
function _createSuper(t) {
|
|
3789
3845
|
var r = _isNativeReflectConstruct();
|
|
3790
3846
|
return function() {
|
|
@@ -3797,33 +3853,33 @@ function _createSuper(t) {
|
|
|
3797
3853
|
};
|
|
3798
3854
|
}
|
|
3799
3855
|
|
|
3800
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3856
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
3801
3857
|
function _arrayWithoutHoles(r) {
|
|
3802
3858
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
3803
3859
|
}
|
|
3804
3860
|
|
|
3805
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3861
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
3806
3862
|
function _iterableToArray(r) {
|
|
3807
3863
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
3808
3864
|
}
|
|
3809
3865
|
|
|
3810
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3866
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
3811
3867
|
function _nonIterableSpread() {
|
|
3812
3868
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3813
3869
|
}
|
|
3814
3870
|
|
|
3815
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3871
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
3816
3872
|
function _toConsumableArray(r) {
|
|
3817
3873
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
3818
3874
|
}
|
|
3819
3875
|
|
|
3820
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3876
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
3821
3877
|
import * as React10 from "react";
|
|
3822
3878
|
import { useMemo as useMemo4, Fragment as Fragment8, useRef as useRef6, useCallback as useCallback3, useEffect as useEffect3, Component } from "react";
|
|
3823
3879
|
|
|
3824
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
3880
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.5_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
3825
3881
|
import * as React8 from "react";
|
|
3826
|
-
import { useContext as
|
|
3882
|
+
import { useContext as useContext20, forwardRef as forwardRef22 } from "react";
|
|
3827
3883
|
|
|
3828
3884
|
// ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
3829
3885
|
var isDevelopment = false;
|
|
@@ -4995,7 +5051,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
4995
5051
|
var useInsertionEffect2 = React7["useInsertionEffect"] ? React7["useInsertionEffect"] : false;
|
|
4996
5052
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
4997
5053
|
|
|
4998
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5054
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.5_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
4999
5055
|
var isDevelopment3 = false;
|
|
5000
5056
|
var isBrowser4 = typeof document !== "undefined";
|
|
5001
5057
|
var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
@@ -5012,14 +5068,14 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
|
5012
5068
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
5013
5069
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
5014
5070
|
return /* @__PURE__ */ forwardRef22(function(props, ref) {
|
|
5015
|
-
var cache =
|
|
5071
|
+
var cache = useContext20(EmotionCacheContext);
|
|
5016
5072
|
return func(props, cache, ref);
|
|
5017
5073
|
});
|
|
5018
5074
|
};
|
|
5019
5075
|
if (!isBrowser4) {
|
|
5020
5076
|
withEmotionCache = function withEmotionCache3(func) {
|
|
5021
5077
|
return function(props) {
|
|
5022
|
-
var cache =
|
|
5078
|
+
var cache = useContext20(EmotionCacheContext);
|
|
5023
5079
|
if (cache === null) {
|
|
5024
5080
|
cache = createCache({
|
|
5025
5081
|
key: "css"
|
|
@@ -5099,7 +5155,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
5099
5155
|
});
|
|
5100
5156
|
var Emotion$1 = Emotion;
|
|
5101
5157
|
|
|
5102
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5158
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.5_react@19.1.0/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
5103
5159
|
import * as React9 from "react";
|
|
5104
5160
|
var import_extends2 = __toESM(require_extends());
|
|
5105
5161
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
@@ -5141,7 +5197,7 @@ function keyframes() {
|
|
|
5141
5197
|
};
|
|
5142
5198
|
}
|
|
5143
5199
|
|
|
5144
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
5200
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
|
|
5145
5201
|
function _taggedTemplateLiteral(e, t) {
|
|
5146
5202
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
5147
5203
|
raw: {
|
|
@@ -5150,8 +5206,8 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
5150
5206
|
}));
|
|
5151
5207
|
}
|
|
5152
5208
|
|
|
5153
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
5154
|
-
import { useContext as
|
|
5209
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5210
|
+
import { useContext as useContext22, useRef as useRef5, useState as useState4, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext12 } from "react";
|
|
5155
5211
|
import { createPortal } from "react-dom";
|
|
5156
5212
|
|
|
5157
5213
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -5551,12 +5607,12 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
5551
5607
|
};
|
|
5552
5608
|
}
|
|
5553
5609
|
|
|
5554
|
-
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.
|
|
5610
|
+
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.5_react@19.1.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
5555
5611
|
import { useLayoutEffect as useLayoutEffect2, useEffect as useEffect2 } from "react";
|
|
5556
5612
|
var isClient = typeof document !== "undefined";
|
|
5557
5613
|
var index = isClient ? useLayoutEffect2 : useEffect2;
|
|
5558
5614
|
|
|
5559
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
5615
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5560
5616
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5561
5617
|
var noop = function noop2() {
|
|
5562
5618
|
};
|
|
@@ -5888,10 +5944,10 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
|
|
|
5888
5944
|
marginTop: spacing2.menuGutter
|
|
5889
5945
|
});
|
|
5890
5946
|
};
|
|
5891
|
-
var PortalPlacementContext = /* @__PURE__ */
|
|
5947
|
+
var PortalPlacementContext = /* @__PURE__ */ createContext12(null);
|
|
5892
5948
|
var MenuPlacer = function MenuPlacer2(props) {
|
|
5893
5949
|
var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
|
|
5894
|
-
var _ref3 =
|
|
5950
|
+
var _ref3 = useContext22(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
|
|
5895
5951
|
var ref = useRef5(null);
|
|
5896
5952
|
var _useState = useState4(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
|
|
5897
5953
|
var _useState3 = useState4(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
|
|
@@ -6630,7 +6686,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6630
6686
|
return memoized;
|
|
6631
6687
|
}
|
|
6632
6688
|
|
|
6633
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
6689
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
6634
6690
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6635
6691
|
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).";
|
|
6636
6692
|
}
|
|
@@ -8926,7 +8982,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8926
8982
|
}(Component);
|
|
8927
8983
|
Select.defaultProps = defaultProps;
|
|
8928
8984
|
|
|
8929
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
8985
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
8930
8986
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
8931
8987
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
8932
8988
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -8947,7 +9003,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef23(function(props, ref) {
|
|
|
8947
9003
|
});
|
|
8948
9004
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
8949
9005
|
|
|
8950
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
9006
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.18_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
8951
9007
|
import { useId as $83Elw$useId, useLabels as $83Elw$useLabels } from "@react-aria/utils";
|
|
8952
9008
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
8953
9009
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
@@ -8972,7 +9028,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
|
8972
9028
|
};
|
|
8973
9029
|
}
|
|
8974
9030
|
|
|
8975
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
9031
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.18_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
|
|
8976
9032
|
import { useSlotId as $2kC82$useSlotId, mergeProps as $2kC82$mergeProps } from "@react-aria/utils";
|
|
8977
9033
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
8978
9034
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
@@ -9011,8 +9067,8 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
9011
9067
|
|
|
9012
9068
|
// src/Multiselect/Multiselect.tsx
|
|
9013
9069
|
import { useId } from "@react-aria/utils";
|
|
9014
|
-
import { cn as
|
|
9015
|
-
import { jsx as jsx86, jsxs as
|
|
9070
|
+
import { cn as cn49, useClassNames as useClassNames48 } from "@marigold/system";
|
|
9071
|
+
import { jsx as jsx86, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9016
9072
|
var propsToBeRemoved = [
|
|
9017
9073
|
"clearValue",
|
|
9018
9074
|
"getStyles",
|
|
@@ -9049,20 +9105,20 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
9049
9105
|
);
|
|
9050
9106
|
};
|
|
9051
9107
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
9052
|
-
return /* @__PURE__ */ jsx86(
|
|
9108
|
+
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" }) }) });
|
|
9053
9109
|
};
|
|
9054
9110
|
var getClassNames = (classNames3) => ({
|
|
9055
|
-
control: () =>
|
|
9111
|
+
control: () => cn49(
|
|
9056
9112
|
"relative flex items-center box-border flex-wrap justify-between",
|
|
9057
9113
|
classNames3.container
|
|
9058
9114
|
),
|
|
9059
9115
|
container: () => "pointer-events-auto",
|
|
9060
9116
|
indicatorSeparator: () => "hidden",
|
|
9061
|
-
menu: () =>
|
|
9062
|
-
menuList: () =>
|
|
9063
|
-
multiValue: () =>
|
|
9117
|
+
menu: () => cn49("b", classNames3.listContainer),
|
|
9118
|
+
menuList: () => cn49("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
|
|
9119
|
+
multiValue: () => cn49(classNames3.tag, "m-0 "),
|
|
9064
9120
|
multiValueLabel: () => "p-0",
|
|
9065
|
-
option: ({ isFocused }) =>
|
|
9121
|
+
option: ({ isFocused }) => cn49(classNames3.option, { isFocused }),
|
|
9066
9122
|
placeholder: () => "hidden",
|
|
9067
9123
|
valueContainer: () => classNames3.valueContainer
|
|
9068
9124
|
});
|
|
@@ -9083,7 +9139,7 @@ var Multiselect = ({
|
|
|
9083
9139
|
onSelectionChange,
|
|
9084
9140
|
...rest
|
|
9085
9141
|
}) => {
|
|
9086
|
-
const classNames3 =
|
|
9142
|
+
const classNames3 = useClassNames48({
|
|
9087
9143
|
component: "MultiSelect",
|
|
9088
9144
|
size: size2,
|
|
9089
9145
|
variant
|
|
@@ -9127,14 +9183,14 @@ var Multiselect = ({
|
|
|
9127
9183
|
// react-select doesn't handle readonly so we had to do it manually here
|
|
9128
9184
|
// keep to the button disabled in read only to prevent menu from opening
|
|
9129
9185
|
isDisabled: disabled || readOnly,
|
|
9130
|
-
className:
|
|
9186
|
+
className: cn49("flex items-center", classNames3.closeButton)
|
|
9131
9187
|
}
|
|
9132
9188
|
]
|
|
9133
9189
|
],
|
|
9134
|
-
children: /* @__PURE__ */
|
|
9190
|
+
children: /* @__PURE__ */ jsxs30(
|
|
9135
9191
|
"div",
|
|
9136
9192
|
{
|
|
9137
|
-
className:
|
|
9193
|
+
className: cn49(classNames3.field, "group/field"),
|
|
9138
9194
|
"data-required": props.required,
|
|
9139
9195
|
"data-invalid": error,
|
|
9140
9196
|
"data-readonly": readOnly,
|
|
@@ -9154,7 +9210,7 @@ var Multiselect = ({
|
|
|
9154
9210
|
zIndex: 1
|
|
9155
9211
|
}),
|
|
9156
9212
|
// Return empty object to reset react-select styles
|
|
9157
|
-
valueContainer: (base) => ({ ...base
|
|
9213
|
+
valueContainer: (base) => ({ ...base }),
|
|
9158
9214
|
container: (base) => ({ ...base, pointerEvents: "auto" }),
|
|
9159
9215
|
menuList: () => ({}),
|
|
9160
9216
|
// eslint-disable-next-line no-empty-pattern
|
|
@@ -9199,11 +9255,11 @@ var Multiselect = ({
|
|
|
9199
9255
|
// src/NumberField/NumberField.tsx
|
|
9200
9256
|
import { forwardRef as forwardRef24 } from "react";
|
|
9201
9257
|
import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
|
|
9202
|
-
import { cn as
|
|
9258
|
+
import { cn as cn51, useClassNames as useClassNames49 } from "@marigold/system";
|
|
9203
9259
|
|
|
9204
9260
|
// src/NumberField/StepButton.tsx
|
|
9205
|
-
import { Button as
|
|
9206
|
-
import { cn as
|
|
9261
|
+
import { Button as Button11 } from "react-aria-components";
|
|
9262
|
+
import { cn as cn50 } from "@marigold/system";
|
|
9207
9263
|
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
9208
9264
|
var Plus = () => /* @__PURE__ */ jsx87("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx87(
|
|
9209
9265
|
"path",
|
|
@@ -9224,9 +9280,9 @@ var Minus = () => /* @__PURE__ */ jsx87("svg", { width: 16, height: 16, viewBox:
|
|
|
9224
9280
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
9225
9281
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
9226
9282
|
return /* @__PURE__ */ jsx87(
|
|
9227
|
-
|
|
9283
|
+
Button11,
|
|
9228
9284
|
{
|
|
9229
|
-
className:
|
|
9285
|
+
className: cn50(
|
|
9230
9286
|
[
|
|
9231
9287
|
"flex items-center justify-center",
|
|
9232
9288
|
"cursor-pointer data-disabled:cursor-not-allowed"
|
|
@@ -9240,7 +9296,7 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
9240
9296
|
};
|
|
9241
9297
|
|
|
9242
9298
|
// src/NumberField/NumberField.tsx
|
|
9243
|
-
import { jsx as jsx88, jsxs as
|
|
9299
|
+
import { jsx as jsx88, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9244
9300
|
var _NumberField = forwardRef24(
|
|
9245
9301
|
({
|
|
9246
9302
|
variant,
|
|
@@ -9252,7 +9308,7 @@ var _NumberField = forwardRef24(
|
|
|
9252
9308
|
hideStepper,
|
|
9253
9309
|
...rest
|
|
9254
9310
|
}, ref) => {
|
|
9255
|
-
const classNames3 =
|
|
9311
|
+
const classNames3 = useClassNames49({
|
|
9256
9312
|
component: "NumberField",
|
|
9257
9313
|
size: size2,
|
|
9258
9314
|
variant
|
|
@@ -9272,7 +9328,7 @@ var _NumberField = forwardRef24(
|
|
|
9272
9328
|
...props,
|
|
9273
9329
|
"data-readonly": readOnly ? "true" : void 0,
|
|
9274
9330
|
"data-stepper": showStepper ? "true" : void 0,
|
|
9275
|
-
children: /* @__PURE__ */
|
|
9331
|
+
children: /* @__PURE__ */ jsxs31(Group4, { className: cn51("flex items-stretch", classNames3.group), children: [
|
|
9276
9332
|
showStepper && /* @__PURE__ */ jsx88(
|
|
9277
9333
|
_StepButton,
|
|
9278
9334
|
{
|
|
@@ -9285,7 +9341,7 @@ var _NumberField = forwardRef24(
|
|
|
9285
9341
|
Input5,
|
|
9286
9342
|
{
|
|
9287
9343
|
ref,
|
|
9288
|
-
className:
|
|
9344
|
+
className: cn51("h-full flex-1 outline-none", classNames3.input)
|
|
9289
9345
|
}
|
|
9290
9346
|
),
|
|
9291
9347
|
showStepper && /* @__PURE__ */ jsx88(
|
|
@@ -9305,7 +9361,7 @@ var _NumberField = forwardRef24(
|
|
|
9305
9361
|
// src/Pagination/Pagination.tsx
|
|
9306
9362
|
import { useEffect as useEffect4, useRef as useRef9, useState as useState5 } from "react";
|
|
9307
9363
|
import { FocusScope as FocusScope2, useFocusManager } from "@react-aria/focus";
|
|
9308
|
-
import { useClassNames as
|
|
9364
|
+
import { useClassNames as useClassNames52 } from "@marigold/system";
|
|
9309
9365
|
|
|
9310
9366
|
// src/Pagination/Ellipsis.tsx
|
|
9311
9367
|
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
@@ -9323,11 +9379,11 @@ var Ellipsis = () => {
|
|
|
9323
9379
|
// src/Pagination/NavigationButton.tsx
|
|
9324
9380
|
import { useRef as useRef7 } from "react";
|
|
9325
9381
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
9326
|
-
import { cn as
|
|
9327
|
-
import { jsxs as
|
|
9382
|
+
import { cn as cn52, useClassNames as useClassNames50 } from "@marigold/system";
|
|
9383
|
+
import { jsxs as jsxs32 } from "react/jsx-runtime";
|
|
9328
9384
|
var NavigationButton = (props) => {
|
|
9329
9385
|
const ref = useRef7(null);
|
|
9330
|
-
const classNames3 =
|
|
9386
|
+
const classNames3 = useClassNames50({
|
|
9331
9387
|
component: "Pagination"
|
|
9332
9388
|
});
|
|
9333
9389
|
let { buttonProps } = useButton2(props, ref);
|
|
@@ -9340,14 +9396,14 @@ var NavigationButton = (props) => {
|
|
|
9340
9396
|
position: position2,
|
|
9341
9397
|
...rest
|
|
9342
9398
|
} = props;
|
|
9343
|
-
return /* @__PURE__ */
|
|
9399
|
+
return /* @__PURE__ */ jsxs32(
|
|
9344
9400
|
"button",
|
|
9345
9401
|
{
|
|
9346
9402
|
ref,
|
|
9347
9403
|
...buttonProps,
|
|
9348
9404
|
...rest,
|
|
9349
9405
|
disabled: isDisabled,
|
|
9350
|
-
className:
|
|
9406
|
+
className: cn52(classNames3.navigationButton, controlLabel && "w-24 px-2"),
|
|
9351
9407
|
"data-selected": isSelected,
|
|
9352
9408
|
children: [
|
|
9353
9409
|
position2 === "left" && children,
|
|
@@ -9361,11 +9417,11 @@ var NavigationButton = (props) => {
|
|
|
9361
9417
|
// src/Pagination/PageButton.tsx
|
|
9362
9418
|
import { useRef as useRef8 } from "react";
|
|
9363
9419
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
9364
|
-
import { useClassNames as
|
|
9420
|
+
import { useClassNames as useClassNames51 } from "@marigold/system";
|
|
9365
9421
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
9366
9422
|
var PageButton = (props) => {
|
|
9367
9423
|
const ref = useRef8(null);
|
|
9368
|
-
const classNames3 =
|
|
9424
|
+
const classNames3 = useClassNames51({
|
|
9369
9425
|
component: "Pagination"
|
|
9370
9426
|
});
|
|
9371
9427
|
let { buttonProps } = useButton3(props, ref);
|
|
@@ -9417,7 +9473,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9417
9473
|
};
|
|
9418
9474
|
|
|
9419
9475
|
// src/Pagination/Pagination.tsx
|
|
9420
|
-
import { Fragment as Fragment9, jsx as jsx91, jsxs as
|
|
9476
|
+
import { Fragment as Fragment9, jsx as jsx91, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
9421
9477
|
var InnerPagination = ({
|
|
9422
9478
|
currentPage,
|
|
9423
9479
|
pageSize,
|
|
@@ -9444,7 +9500,7 @@ var InnerPagination = ({
|
|
|
9444
9500
|
onChange2(newPage);
|
|
9445
9501
|
}
|
|
9446
9502
|
};
|
|
9447
|
-
const classNames3 =
|
|
9503
|
+
const classNames3 = useClassNames52({ component: "Pagination" });
|
|
9448
9504
|
const handleKeyDown = (onEnter) => (e) => {
|
|
9449
9505
|
if (e.key === "ArrowRight") {
|
|
9450
9506
|
e.preventDefault();
|
|
@@ -9457,7 +9513,7 @@ var InnerPagination = ({
|
|
|
9457
9513
|
onEnter();
|
|
9458
9514
|
}
|
|
9459
9515
|
};
|
|
9460
|
-
return /* @__PURE__ */
|
|
9516
|
+
return /* @__PURE__ */ jsxs33(Fragment9, { children: [
|
|
9461
9517
|
/* @__PURE__ */ jsx91(
|
|
9462
9518
|
NavigationButton,
|
|
9463
9519
|
{
|
|
@@ -9531,18 +9587,18 @@ import {
|
|
|
9531
9587
|
forwardRef as forwardRef25
|
|
9532
9588
|
} from "react";
|
|
9533
9589
|
import { Radio } from "react-aria-components";
|
|
9534
|
-
import { cn as
|
|
9590
|
+
import { cn as cn54, useClassNames as useClassNames54 } from "@marigold/system";
|
|
9535
9591
|
|
|
9536
9592
|
// src/Radio/Context.ts
|
|
9537
|
-
import { createContext as
|
|
9538
|
-
var RadioGroupContext =
|
|
9593
|
+
import { createContext as createContext13, useContext as useContext23 } from "react";
|
|
9594
|
+
var RadioGroupContext = createContext13(
|
|
9539
9595
|
null
|
|
9540
9596
|
);
|
|
9541
|
-
var useRadioGroupContext = () =>
|
|
9597
|
+
var useRadioGroupContext = () => useContext23(RadioGroupContext);
|
|
9542
9598
|
|
|
9543
9599
|
// src/Radio/RadioGroup.tsx
|
|
9544
9600
|
import { RadioGroup } from "react-aria-components";
|
|
9545
|
-
import { cn as
|
|
9601
|
+
import { cn as cn53, useClassNames as useClassNames53 } from "@marigold/system";
|
|
9546
9602
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
9547
9603
|
var _RadioGroup = ({
|
|
9548
9604
|
variant,
|
|
@@ -9559,7 +9615,7 @@ var _RadioGroup = ({
|
|
|
9559
9615
|
width,
|
|
9560
9616
|
...rest
|
|
9561
9617
|
}) => {
|
|
9562
|
-
const classNames3 =
|
|
9618
|
+
const classNames3 = useClassNames53({ component: "Radio", variant, size: size2 });
|
|
9563
9619
|
const props = {
|
|
9564
9620
|
isDisabled: disabled,
|
|
9565
9621
|
isReadOnly: readOnly,
|
|
@@ -9584,7 +9640,7 @@ var _RadioGroup = ({
|
|
|
9584
9640
|
role: "presentation",
|
|
9585
9641
|
"data-testid": "group",
|
|
9586
9642
|
"data-orientation": orientation,
|
|
9587
|
-
className:
|
|
9643
|
+
className: cn53(
|
|
9588
9644
|
classNames3.group,
|
|
9589
9645
|
"flex items-start",
|
|
9590
9646
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
@@ -9597,12 +9653,12 @@ var _RadioGroup = ({
|
|
|
9597
9653
|
};
|
|
9598
9654
|
|
|
9599
9655
|
// src/Radio/Radio.tsx
|
|
9600
|
-
import { Fragment as Fragment10, jsx as jsx93, jsxs as
|
|
9656
|
+
import { Fragment as Fragment10, jsx as jsx93, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9601
9657
|
var Dot = () => /* @__PURE__ */ jsx93("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx93("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
9602
9658
|
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx93(
|
|
9603
9659
|
"div",
|
|
9604
9660
|
{
|
|
9605
|
-
className:
|
|
9661
|
+
className: cn54(
|
|
9606
9662
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
9607
9663
|
className
|
|
9608
9664
|
),
|
|
@@ -9614,7 +9670,7 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx93(
|
|
|
9614
9670
|
var _Radio = forwardRef25(
|
|
9615
9671
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9616
9672
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9617
|
-
const classNames3 =
|
|
9673
|
+
const classNames3 = useClassNames54({
|
|
9618
9674
|
component: "Radio",
|
|
9619
9675
|
variant: variant || props.variant,
|
|
9620
9676
|
size: size2 || props.size
|
|
@@ -9623,7 +9679,7 @@ var _Radio = forwardRef25(
|
|
|
9623
9679
|
Radio,
|
|
9624
9680
|
{
|
|
9625
9681
|
ref,
|
|
9626
|
-
className:
|
|
9682
|
+
className: cn54(
|
|
9627
9683
|
"group/radio",
|
|
9628
9684
|
"relative flex items-center gap-[1ch]",
|
|
9629
9685
|
width || groupWidth || "w-full",
|
|
@@ -9632,12 +9688,12 @@ var _Radio = forwardRef25(
|
|
|
9632
9688
|
value,
|
|
9633
9689
|
isDisabled: disabled,
|
|
9634
9690
|
...props,
|
|
9635
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
9691
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9636
9692
|
/* @__PURE__ */ jsx93(
|
|
9637
9693
|
Icon3,
|
|
9638
9694
|
{
|
|
9639
9695
|
checked: isSelected,
|
|
9640
|
-
className:
|
|
9696
|
+
className: cn54(
|
|
9641
9697
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
9642
9698
|
classNames3.radio
|
|
9643
9699
|
)
|
|
@@ -9677,8 +9733,8 @@ var _SearchField = forwardRef26(
|
|
|
9677
9733
|
// src/Select/Select.tsx
|
|
9678
9734
|
import { forwardRef as forwardRef27 } from "react";
|
|
9679
9735
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9680
|
-
import { cn as
|
|
9681
|
-
import { jsx as jsx95, jsxs as
|
|
9736
|
+
import { cn as cn55, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9737
|
+
import { jsx as jsx95, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
9682
9738
|
var _Select = forwardRef27(
|
|
9683
9739
|
({
|
|
9684
9740
|
disabled,
|
|
@@ -9699,18 +9755,18 @@ var _Select = forwardRef27(
|
|
|
9699
9755
|
onSelectionChange: onChange2,
|
|
9700
9756
|
...rest
|
|
9701
9757
|
};
|
|
9702
|
-
const classNames3 =
|
|
9703
|
-
return /* @__PURE__ */
|
|
9704
|
-
/* @__PURE__ */
|
|
9758
|
+
const classNames3 = useClassNames55({ component: "Select", variant, size: size2 });
|
|
9759
|
+
return /* @__PURE__ */ jsxs35(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
|
|
9760
|
+
/* @__PURE__ */ jsxs35(
|
|
9705
9761
|
IconButton,
|
|
9706
9762
|
{
|
|
9707
|
-
className:
|
|
9763
|
+
className: cn55(
|
|
9708
9764
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
9709
9765
|
classNames3.select
|
|
9710
9766
|
),
|
|
9711
9767
|
children: [
|
|
9712
9768
|
/* @__PURE__ */ jsx95(SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
9713
|
-
/* @__PURE__ */ jsx95(ChevronDown, { className:
|
|
9769
|
+
/* @__PURE__ */ jsx95(ChevronDown, { className: cn55("size-4", classNames3.icon) })
|
|
9714
9770
|
]
|
|
9715
9771
|
}
|
|
9716
9772
|
),
|
|
@@ -9726,20 +9782,38 @@ import {
|
|
|
9726
9782
|
forwardRef as forwardRef29
|
|
9727
9783
|
} from "react";
|
|
9728
9784
|
import { GridList as SelectList } from "react-aria-components";
|
|
9729
|
-
import { cn as
|
|
9785
|
+
import { cn as cn57, useClassNames as useClassNames56 } from "@marigold/system";
|
|
9730
9786
|
|
|
9731
9787
|
// src/SelectList/Context.ts
|
|
9732
|
-
import { createContext as
|
|
9733
|
-
var SelectListContext =
|
|
9788
|
+
import { createContext as createContext14, useContext as useContext24 } from "react";
|
|
9789
|
+
var SelectListContext = createContext14(
|
|
9734
9790
|
{}
|
|
9735
9791
|
);
|
|
9736
|
-
var useSelectListContext = () =>
|
|
9792
|
+
var useSelectListContext = () => useContext24(SelectListContext);
|
|
9737
9793
|
|
|
9738
9794
|
// src/SelectList/SelectListItem.tsx
|
|
9739
9795
|
import { forwardRef as forwardRef28 } from "react";
|
|
9740
9796
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
9741
|
-
import { cn as
|
|
9742
|
-
import { jsx as jsx96, jsxs as
|
|
9797
|
+
import { cn as cn56 } from "@marigold/system";
|
|
9798
|
+
import { Fragment as Fragment11, jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9799
|
+
var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx96("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx96(
|
|
9800
|
+
"path",
|
|
9801
|
+
{
|
|
9802
|
+
fill: "currentColor",
|
|
9803
|
+
stroke: "none",
|
|
9804
|
+
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"
|
|
9805
|
+
}
|
|
9806
|
+
) });
|
|
9807
|
+
var SelectionIndicator = ({ selectionMode }) => {
|
|
9808
|
+
switch (selectionMode) {
|
|
9809
|
+
case "multiple": {
|
|
9810
|
+
return /* @__PURE__ */ jsx96(_Checkbox, { slot: "selection" });
|
|
9811
|
+
}
|
|
9812
|
+
case "single": {
|
|
9813
|
+
return /* @__PURE__ */ jsx96(CheckMark3, { className: "invisible hidden" });
|
|
9814
|
+
}
|
|
9815
|
+
}
|
|
9816
|
+
};
|
|
9743
9817
|
var _SelectListItem = forwardRef28(
|
|
9744
9818
|
({ children, ...props }, ref) => {
|
|
9745
9819
|
let textValue = typeof children === "string" ? children : void 0;
|
|
@@ -9749,10 +9823,10 @@ var _SelectListItem = forwardRef28(
|
|
|
9749
9823
|
{
|
|
9750
9824
|
textValue,
|
|
9751
9825
|
...props,
|
|
9752
|
-
className:
|
|
9826
|
+
className: cn56("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.item),
|
|
9753
9827
|
ref,
|
|
9754
|
-
children: ({ selectionMode }) => /* @__PURE__ */
|
|
9755
|
-
|
|
9828
|
+
children: ({ selectionMode }) => /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
9829
|
+
/* @__PURE__ */ jsx96(SelectionIndicator, { selectionMode }),
|
|
9756
9830
|
children
|
|
9757
9831
|
] })
|
|
9758
9832
|
}
|
|
@@ -9764,7 +9838,7 @@ var _SelectListItem = forwardRef28(
|
|
|
9764
9838
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
9765
9839
|
var _SelectList = forwardRef29(
|
|
9766
9840
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9767
|
-
const classNames3 =
|
|
9841
|
+
const classNames3 = useClassNames56({ component: "ListBox" });
|
|
9768
9842
|
const props = {
|
|
9769
9843
|
onSelectionChange: onChange2,
|
|
9770
9844
|
...rest
|
|
@@ -9775,7 +9849,7 @@ var _SelectList = forwardRef29(
|
|
|
9775
9849
|
...props,
|
|
9776
9850
|
layout: "grid",
|
|
9777
9851
|
ref,
|
|
9778
|
-
className:
|
|
9852
|
+
className: cn57(
|
|
9779
9853
|
"group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
9780
9854
|
classNames3.list
|
|
9781
9855
|
),
|
|
@@ -9787,7 +9861,7 @@ var _SelectList = forwardRef29(
|
|
|
9787
9861
|
_SelectList.Item = _SelectListItem;
|
|
9788
9862
|
|
|
9789
9863
|
// src/Scrollable/Scrollable.tsx
|
|
9790
|
-
import { cn as
|
|
9864
|
+
import { cn as cn58, createVar as createVar8, width as twWidth2 } from "@marigold/system";
|
|
9791
9865
|
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
9792
9866
|
var Scrollable = ({
|
|
9793
9867
|
children,
|
|
@@ -9798,7 +9872,7 @@ var Scrollable = ({
|
|
|
9798
9872
|
"div",
|
|
9799
9873
|
{
|
|
9800
9874
|
...props,
|
|
9801
|
-
className:
|
|
9875
|
+
className: cn58(["sticky h-(--height) overflow-auto", twWidth2[width]]),
|
|
9802
9876
|
style: createVar8({ height }),
|
|
9803
9877
|
children
|
|
9804
9878
|
}
|
|
@@ -9813,11 +9887,11 @@ import {
|
|
|
9813
9887
|
SliderTrack
|
|
9814
9888
|
} from "react-aria-components";
|
|
9815
9889
|
import {
|
|
9816
|
-
cn as
|
|
9890
|
+
cn as cn59,
|
|
9817
9891
|
width as twWidth3,
|
|
9818
|
-
useClassNames as
|
|
9892
|
+
useClassNames as useClassNames57
|
|
9819
9893
|
} from "@marigold/system";
|
|
9820
|
-
import { Fragment as
|
|
9894
|
+
import { Fragment as Fragment12, jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
9821
9895
|
var _Slider = forwardRef30(
|
|
9822
9896
|
({
|
|
9823
9897
|
thumbLabels,
|
|
@@ -9828,7 +9902,7 @@ var _Slider = forwardRef30(
|
|
|
9828
9902
|
label,
|
|
9829
9903
|
...rest
|
|
9830
9904
|
}, ref) => {
|
|
9831
|
-
const classNames3 =
|
|
9905
|
+
const classNames3 = useClassNames57({
|
|
9832
9906
|
component: "Slider",
|
|
9833
9907
|
variant,
|
|
9834
9908
|
size: size2
|
|
@@ -9837,11 +9911,11 @@ var _Slider = forwardRef30(
|
|
|
9837
9911
|
isDisabled: disabled,
|
|
9838
9912
|
...rest
|
|
9839
9913
|
};
|
|
9840
|
-
return /* @__PURE__ */
|
|
9914
|
+
return /* @__PURE__ */ jsxs37(
|
|
9841
9915
|
FieldBase,
|
|
9842
9916
|
{
|
|
9843
9917
|
as: Slider,
|
|
9844
|
-
className:
|
|
9918
|
+
className: cn59(
|
|
9845
9919
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
9846
9920
|
classNames3.container,
|
|
9847
9921
|
twWidth3[width]
|
|
@@ -9850,16 +9924,16 @@ var _Slider = forwardRef30(
|
|
|
9850
9924
|
...props,
|
|
9851
9925
|
children: [
|
|
9852
9926
|
label && /* @__PURE__ */ jsx99(_Label, { children: label }),
|
|
9853
|
-
/* @__PURE__ */ jsx99(SliderOutput, { className:
|
|
9927
|
+
/* @__PURE__ */ jsx99(SliderOutput, { className: cn59("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
9854
9928
|
/* @__PURE__ */ jsx99(
|
|
9855
9929
|
SliderTrack,
|
|
9856
9930
|
{
|
|
9857
|
-
className:
|
|
9858
|
-
children: ({ state }) => /* @__PURE__ */
|
|
9931
|
+
className: cn59("relative col-span-2 h-2 w-full", classNames3.track),
|
|
9932
|
+
children: ({ state }) => /* @__PURE__ */ jsxs37(Fragment12, { children: [
|
|
9859
9933
|
/* @__PURE__ */ jsx99(
|
|
9860
9934
|
"div",
|
|
9861
9935
|
{
|
|
9862
|
-
className:
|
|
9936
|
+
className: cn59(
|
|
9863
9937
|
"absolute top-[50%] h-2 w-full translate-y-[-50%]",
|
|
9864
9938
|
classNames3.track
|
|
9865
9939
|
)
|
|
@@ -9868,7 +9942,7 @@ var _Slider = forwardRef30(
|
|
|
9868
9942
|
/* @__PURE__ */ jsx99(
|
|
9869
9943
|
"div",
|
|
9870
9944
|
{
|
|
9871
|
-
className:
|
|
9945
|
+
className: cn59(
|
|
9872
9946
|
"absolute top-[50%] h-2 translate-y-[-50%]",
|
|
9873
9947
|
classNames3.selectedTrack
|
|
9874
9948
|
),
|
|
@@ -9881,7 +9955,7 @@ var _Slider = forwardRef30(
|
|
|
9881
9955
|
state.values.map((_, i) => /* @__PURE__ */ jsx99(
|
|
9882
9956
|
SliderThumb,
|
|
9883
9957
|
{
|
|
9884
|
-
className:
|
|
9958
|
+
className: cn59("top-1/2 cursor-pointer", classNames3.thumb),
|
|
9885
9959
|
index: i,
|
|
9886
9960
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
|
|
9887
9961
|
name: thumbLabels == null ? void 0 : thumbLabels[i]
|
|
@@ -9902,7 +9976,7 @@ import { jsx as jsx100 } from "react/jsx-runtime";
|
|
|
9902
9976
|
var Split = () => /* @__PURE__ */ jsx100("div", { role: "separator", className: "grow" });
|
|
9903
9977
|
|
|
9904
9978
|
// src/Stack/Stack.tsx
|
|
9905
|
-
import { alignment as alignment2, cn as
|
|
9979
|
+
import { alignment as alignment2, cn as cn60, gapSpace as gapSpace8 } from "@marigold/system";
|
|
9906
9980
|
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
9907
9981
|
var Stack = ({
|
|
9908
9982
|
children,
|
|
@@ -9916,7 +9990,7 @@ var Stack = ({
|
|
|
9916
9990
|
return /* @__PURE__ */ jsx101(
|
|
9917
9991
|
"div",
|
|
9918
9992
|
{
|
|
9919
|
-
className:
|
|
9993
|
+
className: cn60(
|
|
9920
9994
|
"flex flex-col",
|
|
9921
9995
|
gapSpace8[space],
|
|
9922
9996
|
alignX && ((_b = (_a = alignment2) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -9933,11 +10007,11 @@ var Stack = ({
|
|
|
9933
10007
|
import { forwardRef as forwardRef31 } from "react";
|
|
9934
10008
|
import { Switch } from "react-aria-components";
|
|
9935
10009
|
import {
|
|
9936
|
-
cn as
|
|
10010
|
+
cn as cn61,
|
|
9937
10011
|
width as twWidth4,
|
|
9938
|
-
useClassNames as
|
|
10012
|
+
useClassNames as useClassNames58
|
|
9939
10013
|
} from "@marigold/system";
|
|
9940
|
-
import { jsx as jsx102, jsxs as
|
|
10014
|
+
import { jsx as jsx102, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
9941
10015
|
var _Switch = forwardRef31(
|
|
9942
10016
|
({
|
|
9943
10017
|
variant,
|
|
@@ -9949,19 +10023,19 @@ var _Switch = forwardRef31(
|
|
|
9949
10023
|
readOnly,
|
|
9950
10024
|
...rest
|
|
9951
10025
|
}, ref) => {
|
|
9952
|
-
const classNames3 =
|
|
10026
|
+
const classNames3 = useClassNames58({ component: "Switch", size: size2, variant });
|
|
9953
10027
|
const props = {
|
|
9954
10028
|
isDisabled: disabled,
|
|
9955
10029
|
isReadOnly: readOnly,
|
|
9956
10030
|
isSelected: selected,
|
|
9957
10031
|
...rest
|
|
9958
10032
|
};
|
|
9959
|
-
return /* @__PURE__ */
|
|
10033
|
+
return /* @__PURE__ */ jsxs38(
|
|
9960
10034
|
Switch,
|
|
9961
10035
|
{
|
|
9962
10036
|
...props,
|
|
9963
10037
|
ref,
|
|
9964
|
-
className:
|
|
10038
|
+
className: cn61(
|
|
9965
10039
|
twWidth4[width],
|
|
9966
10040
|
"group/switch",
|
|
9967
10041
|
"flex items-center gap-[1ch]",
|
|
@@ -9987,12 +10061,12 @@ import {
|
|
|
9987
10061
|
Row,
|
|
9988
10062
|
useTableState
|
|
9989
10063
|
} from "@react-stately/table";
|
|
9990
|
-
import { cn as
|
|
10064
|
+
import { cn as cn68, useClassNames as useClassNames60 } from "@marigold/system";
|
|
9991
10065
|
|
|
9992
10066
|
// src/Table/Context.tsx
|
|
9993
|
-
import { createContext as
|
|
9994
|
-
var TableContext =
|
|
9995
|
-
var useTableContext = () =>
|
|
10067
|
+
import { createContext as createContext15, useContext as useContext25 } from "react";
|
|
10068
|
+
var TableContext = createContext15({});
|
|
10069
|
+
var useTableContext = () => useContext25(TableContext);
|
|
9996
10070
|
|
|
9997
10071
|
// src/Table/TableBody.tsx
|
|
9998
10072
|
import { useTableRowGroup } from "@react-aria/table";
|
|
@@ -10023,7 +10097,7 @@ import { useRef as useRef10 } from "react";
|
|
|
10023
10097
|
import { useFocusRing } from "@react-aria/focus";
|
|
10024
10098
|
import { useTableCell } from "@react-aria/table";
|
|
10025
10099
|
import { mergeProps as mergeProps2 } from "@react-aria/utils";
|
|
10026
|
-
import { cn as
|
|
10100
|
+
import { cn as cn62, useStateProps } from "@marigold/system";
|
|
10027
10101
|
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
10028
10102
|
var TableCell = ({ cell, align = "left" }) => {
|
|
10029
10103
|
const ref = useRef10(null);
|
|
@@ -10051,7 +10125,7 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
10051
10125
|
"td",
|
|
10052
10126
|
{
|
|
10053
10127
|
ref,
|
|
10054
|
-
className:
|
|
10128
|
+
className: cn62(classNames3 == null ? void 0 : classNames3.cell),
|
|
10055
10129
|
...mergeProps2(cellProps, focusProps),
|
|
10056
10130
|
...stateProps,
|
|
10057
10131
|
align,
|
|
@@ -10065,7 +10139,7 @@ import { useRef as useRef11 } from "react";
|
|
|
10065
10139
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
10066
10140
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
10067
10141
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
10068
|
-
import { cn as
|
|
10142
|
+
import { cn as cn63, useStateProps as useStateProps2 } from "@marigold/system";
|
|
10069
10143
|
|
|
10070
10144
|
// src/Table/utils.ts
|
|
10071
10145
|
var mapCheckboxProps = ({
|
|
@@ -10109,7 +10183,7 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
10109
10183
|
"td",
|
|
10110
10184
|
{
|
|
10111
10185
|
ref,
|
|
10112
|
-
className:
|
|
10186
|
+
className: cn63("text-center align-middle leading-none", classNames3 == null ? void 0 : classNames3.cell),
|
|
10113
10187
|
...mergeProps3(gridCellProps, focusProps),
|
|
10114
10188
|
...stateProps,
|
|
10115
10189
|
children: /* @__PURE__ */ jsx105(_Checkbox, { ...checkboxProps })
|
|
@@ -10123,8 +10197,8 @@ import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
|
10123
10197
|
import { useHover } from "@react-aria/interactions";
|
|
10124
10198
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
10125
10199
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
10126
|
-
import { cn as
|
|
10127
|
-
import { jsx as jsx106, jsxs as
|
|
10200
|
+
import { cn as cn64, width as twWidth5, useStateProps as useStateProps3 } from "@marigold/system";
|
|
10201
|
+
import { jsx as jsx106, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
10128
10202
|
var TableColumnHeader = ({
|
|
10129
10203
|
column: column2,
|
|
10130
10204
|
width = "auto",
|
|
@@ -10146,12 +10220,12 @@ var TableColumnHeader = ({
|
|
|
10146
10220
|
hover: isHovered,
|
|
10147
10221
|
focusVisible: isFocusVisible
|
|
10148
10222
|
});
|
|
10149
|
-
return /* @__PURE__ */
|
|
10223
|
+
return /* @__PURE__ */ jsxs39(
|
|
10150
10224
|
"th",
|
|
10151
10225
|
{
|
|
10152
10226
|
colSpan: column2.colspan,
|
|
10153
10227
|
ref,
|
|
10154
|
-
className:
|
|
10228
|
+
className: cn64("cursor-default", twWidth5[width], classNames3 == null ? void 0 : classNames3.header),
|
|
10155
10229
|
...mergeProps4(columnHeaderProps, hoverProps, focusProps),
|
|
10156
10230
|
...stateProps,
|
|
10157
10231
|
align,
|
|
@@ -10165,7 +10239,7 @@ var TableColumnHeader = ({
|
|
|
10165
10239
|
|
|
10166
10240
|
// src/Table/TableHeader.tsx
|
|
10167
10241
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
10168
|
-
import { cn as
|
|
10242
|
+
import { cn as cn65 } from "@marigold/system";
|
|
10169
10243
|
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
10170
10244
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
10171
10245
|
const { rowGroupProps } = useTableRowGroup2();
|
|
@@ -10174,7 +10248,7 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
10174
10248
|
"thead",
|
|
10175
10249
|
{
|
|
10176
10250
|
...rowGroupProps,
|
|
10177
|
-
className:
|
|
10251
|
+
className: cn65(
|
|
10178
10252
|
classNames3 == null ? void 0 : classNames3.thead,
|
|
10179
10253
|
// for sticky header &th needs to be sticky for b2b and core theme
|
|
10180
10254
|
// for rui sticky is applied to thead
|
|
@@ -10206,13 +10280,13 @@ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
|
10206
10280
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
10207
10281
|
import { useTableRow } from "@react-aria/table";
|
|
10208
10282
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10209
|
-
import { cn as
|
|
10283
|
+
import { cn as cn66, useClassNames as useClassNames59, useStateProps as useStateProps4 } from "@marigold/system";
|
|
10210
10284
|
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
10211
10285
|
var TableRow = ({ children, row }) => {
|
|
10212
10286
|
const ref = useRef14(null);
|
|
10213
10287
|
const { interactive, state, ...ctx } = useTableContext();
|
|
10214
10288
|
const { variant, size: size2 } = row.props;
|
|
10215
|
-
const classNames3 =
|
|
10289
|
+
const classNames3 = useClassNames59({
|
|
10216
10290
|
component: "Table",
|
|
10217
10291
|
variant: variant || ctx.variant,
|
|
10218
10292
|
size: size2 || ctx.size
|
|
@@ -10241,7 +10315,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10241
10315
|
"tr",
|
|
10242
10316
|
{
|
|
10243
10317
|
ref,
|
|
10244
|
-
className:
|
|
10318
|
+
className: cn66(
|
|
10245
10319
|
[
|
|
10246
10320
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
10247
10321
|
],
|
|
@@ -10264,7 +10338,7 @@ import {
|
|
|
10264
10338
|
} from "@react-aria/table";
|
|
10265
10339
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
10266
10340
|
import {
|
|
10267
|
-
cn as
|
|
10341
|
+
cn as cn67,
|
|
10268
10342
|
width as twWidth6,
|
|
10269
10343
|
useStateProps as useStateProps5
|
|
10270
10344
|
} from "@marigold/system";
|
|
@@ -10294,7 +10368,7 @@ var TableSelectAllCell = ({
|
|
|
10294
10368
|
"th",
|
|
10295
10369
|
{
|
|
10296
10370
|
ref,
|
|
10297
|
-
className:
|
|
10371
|
+
className: cn67(twWidth6[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
|
|
10298
10372
|
...mergeProps6(columnHeaderProps, hoverProps, focusProps),
|
|
10299
10373
|
...stateProps,
|
|
10300
10374
|
align,
|
|
@@ -10304,7 +10378,7 @@ var TableSelectAllCell = ({
|
|
|
10304
10378
|
};
|
|
10305
10379
|
|
|
10306
10380
|
// src/Table/Table.tsx
|
|
10307
|
-
import { jsx as jsx111, jsxs as
|
|
10381
|
+
import { jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10308
10382
|
var Table = ({
|
|
10309
10383
|
variant,
|
|
10310
10384
|
size: size2,
|
|
@@ -10327,7 +10401,7 @@ var Table = ({
|
|
|
10327
10401
|
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
10328
10402
|
}
|
|
10329
10403
|
const { gridProps } = useTable(props, state, tableRef);
|
|
10330
|
-
const classNames3 =
|
|
10404
|
+
const classNames3 = useClassNames60({
|
|
10331
10405
|
component: "Table",
|
|
10332
10406
|
variant,
|
|
10333
10407
|
size: size2
|
|
@@ -10337,11 +10411,11 @@ var Table = ({
|
|
|
10337
10411
|
TableContext.Provider,
|
|
10338
10412
|
{
|
|
10339
10413
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
10340
|
-
children: /* @__PURE__ */
|
|
10414
|
+
children: /* @__PURE__ */ jsxs40(
|
|
10341
10415
|
"table",
|
|
10342
10416
|
{
|
|
10343
10417
|
ref: tableRef,
|
|
10344
|
-
className:
|
|
10418
|
+
className: cn68(
|
|
10345
10419
|
"group/table",
|
|
10346
10420
|
"border-collapse",
|
|
10347
10421
|
stretch ? "table w-full" : "block",
|
|
@@ -10379,7 +10453,7 @@ var Table = ({
|
|
|
10379
10453
|
},
|
|
10380
10454
|
headerRow.key
|
|
10381
10455
|
)) }),
|
|
10382
|
-
/* @__PURE__ */
|
|
10456
|
+
/* @__PURE__ */ jsxs40(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10383
10457
|
...collection.rows.map(
|
|
10384
10458
|
(row) => row.type === "item" && /* @__PURE__ */ jsx111(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10385
10459
|
var _a, _b;
|
|
@@ -10410,14 +10484,14 @@ Table.Row = Row;
|
|
|
10410
10484
|
// src/Text/Text.tsx
|
|
10411
10485
|
import { Text as Text2 } from "react-aria-components";
|
|
10412
10486
|
import {
|
|
10413
|
-
cn as
|
|
10487
|
+
cn as cn69,
|
|
10414
10488
|
cursorStyle,
|
|
10415
10489
|
ensureCssVar as ensureCssVar2,
|
|
10416
10490
|
fontWeight,
|
|
10417
10491
|
textAlign as textAlign2,
|
|
10418
10492
|
textSize,
|
|
10419
10493
|
textStyle,
|
|
10420
|
-
useClassNames as
|
|
10494
|
+
useClassNames as useClassNames61
|
|
10421
10495
|
} from "@marigold/system";
|
|
10422
10496
|
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
10423
10497
|
var _Text = ({
|
|
@@ -10433,7 +10507,7 @@ var _Text = ({
|
|
|
10433
10507
|
as = "div",
|
|
10434
10508
|
...props
|
|
10435
10509
|
}) => {
|
|
10436
|
-
const classNames3 =
|
|
10510
|
+
const classNames3 = useClassNames61({
|
|
10437
10511
|
component: "Text",
|
|
10438
10512
|
variant,
|
|
10439
10513
|
size: size2
|
|
@@ -10445,7 +10519,7 @@ var _Text = ({
|
|
|
10445
10519
|
{
|
|
10446
10520
|
...props,
|
|
10447
10521
|
...elementType,
|
|
10448
|
-
className:
|
|
10522
|
+
className: cn69(
|
|
10449
10523
|
"max-w-(--maxTextWidth)",
|
|
10450
10524
|
// possibly set by a <Container>
|
|
10451
10525
|
classNames3,
|
|
@@ -10464,7 +10538,7 @@ var _Text = ({
|
|
|
10464
10538
|
// src/TextArea/TextArea.tsx
|
|
10465
10539
|
import { forwardRef as forwardRef32 } from "react";
|
|
10466
10540
|
import { TextArea, TextField } from "react-aria-components";
|
|
10467
|
-
import { useClassNames as
|
|
10541
|
+
import { useClassNames as useClassNames62 } from "@marigold/system";
|
|
10468
10542
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
10469
10543
|
var _TextArea = forwardRef32(
|
|
10470
10544
|
({
|
|
@@ -10477,7 +10551,7 @@ var _TextArea = forwardRef32(
|
|
|
10477
10551
|
rows,
|
|
10478
10552
|
...rest
|
|
10479
10553
|
}, ref) => {
|
|
10480
|
-
const classNames3 =
|
|
10554
|
+
const classNames3 = useClassNames62({ component: "TextArea", variant, size: size2 });
|
|
10481
10555
|
const props = {
|
|
10482
10556
|
isDisabled: disabled,
|
|
10483
10557
|
isReadOnly: readOnly,
|
|
@@ -10507,7 +10581,7 @@ var _TextField = forwardRef33(
|
|
|
10507
10581
|
);
|
|
10508
10582
|
|
|
10509
10583
|
// src/Tiles/Tiles.tsx
|
|
10510
|
-
import { cn as
|
|
10584
|
+
import { cn as cn70, createVar as createVar9, gapSpace as gapSpace9 } from "@marigold/system";
|
|
10511
10585
|
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
10512
10586
|
var Tiles = ({
|
|
10513
10587
|
space = 0,
|
|
@@ -10525,7 +10599,7 @@ var Tiles = ({
|
|
|
10525
10599
|
"div",
|
|
10526
10600
|
{
|
|
10527
10601
|
...props,
|
|
10528
|
-
className:
|
|
10602
|
+
className: cn70(
|
|
10529
10603
|
"grid",
|
|
10530
10604
|
gapSpace9[space],
|
|
10531
10605
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -10539,7 +10613,7 @@ var Tiles = ({
|
|
|
10539
10613
|
|
|
10540
10614
|
// src/Tooltip/Tooltip.tsx
|
|
10541
10615
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
10542
|
-
import { cn as
|
|
10616
|
+
import { cn as cn71, useClassNames as useClassNames63 } from "@marigold/system";
|
|
10543
10617
|
|
|
10544
10618
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10545
10619
|
import { TooltipTrigger } from "react-aria-components";
|
|
@@ -10561,19 +10635,19 @@ var _TooltipTrigger = ({
|
|
|
10561
10635
|
};
|
|
10562
10636
|
|
|
10563
10637
|
// src/Tooltip/Tooltip.tsx
|
|
10564
|
-
import { jsx as jsx117, jsxs as
|
|
10638
|
+
import { jsx as jsx117, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10565
10639
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10566
10640
|
const props = {
|
|
10567
10641
|
...rest,
|
|
10568
10642
|
isOpen: open
|
|
10569
10643
|
};
|
|
10570
|
-
const classNames3 =
|
|
10644
|
+
const classNames3 = useClassNames63({ component: "Tooltip", variant, size: size2 });
|
|
10571
10645
|
const portal = usePortalContainer();
|
|
10572
|
-
return /* @__PURE__ */
|
|
10646
|
+
return /* @__PURE__ */ jsxs41(
|
|
10573
10647
|
Tooltip,
|
|
10574
10648
|
{
|
|
10575
10649
|
...props,
|
|
10576
|
-
className:
|
|
10650
|
+
className: cn71("group/tooltip", classNames3.container),
|
|
10577
10651
|
UNSTABLE_portalContainer: portal,
|
|
10578
10652
|
children: [
|
|
10579
10653
|
/* @__PURE__ */ jsx117(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx117("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx117("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
@@ -10586,19 +10660,19 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10586
10660
|
|
|
10587
10661
|
// src/TagGroup/Tag.tsx
|
|
10588
10662
|
import { Tag } from "react-aria-components";
|
|
10589
|
-
import { cn as
|
|
10663
|
+
import { cn as cn72, useClassNames as useClassNames65 } from "@marigold/system";
|
|
10590
10664
|
|
|
10591
10665
|
// src/TagGroup/TagGroup.tsx
|
|
10592
10666
|
import { TagGroup, TagList } from "react-aria-components";
|
|
10593
|
-
import { useClassNames as
|
|
10667
|
+
import { useClassNames as useClassNames64 } from "@marigold/system";
|
|
10594
10668
|
|
|
10595
10669
|
// src/TagGroup/TagGroupHiddenInput.tsx
|
|
10596
|
-
import { useContext as
|
|
10670
|
+
import { useContext as useContext26 } from "react";
|
|
10597
10671
|
import { ListStateContext } from "react-aria-components";
|
|
10598
10672
|
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
10599
10673
|
var TagGroupHiddenInput = ({ name }) => {
|
|
10600
10674
|
var _a;
|
|
10601
|
-
const state =
|
|
10675
|
+
const state = useContext26(ListStateContext);
|
|
10602
10676
|
const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
|
|
10603
10677
|
if (!selectedKeys.length) return null;
|
|
10604
10678
|
return /* @__PURE__ */ jsx118("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx118(
|
|
@@ -10615,7 +10689,7 @@ var TagGroupHiddenInput = ({ name }) => {
|
|
|
10615
10689
|
};
|
|
10616
10690
|
|
|
10617
10691
|
// src/TagGroup/TagGroup.tsx
|
|
10618
|
-
import { jsx as jsx119, jsxs as
|
|
10692
|
+
import { jsx as jsx119, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
10619
10693
|
var _TagGroup = ({
|
|
10620
10694
|
width,
|
|
10621
10695
|
items,
|
|
@@ -10626,8 +10700,8 @@ var _TagGroup = ({
|
|
|
10626
10700
|
name,
|
|
10627
10701
|
...rest
|
|
10628
10702
|
}) => {
|
|
10629
|
-
const classNames3 =
|
|
10630
|
-
return /* @__PURE__ */
|
|
10703
|
+
const classNames3 = useClassNames64({ component: "Tag", variant, size: size2 });
|
|
10704
|
+
return /* @__PURE__ */ jsxs42(FieldBase, { as: TagGroup, ...rest, children: [
|
|
10631
10705
|
/* @__PURE__ */ jsx119(
|
|
10632
10706
|
TagList,
|
|
10633
10707
|
{
|
|
@@ -10642,10 +10716,10 @@ var _TagGroup = ({
|
|
|
10642
10716
|
};
|
|
10643
10717
|
|
|
10644
10718
|
// src/TagGroup/Tag.tsx
|
|
10645
|
-
import { Fragment as
|
|
10719
|
+
import { Fragment as Fragment13, jsx as jsx120, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
10646
10720
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10647
10721
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10648
|
-
const classNames3 =
|
|
10722
|
+
const classNames3 = useClassNames65({ component: "Tag", variant, size: size2 });
|
|
10649
10723
|
const props = {
|
|
10650
10724
|
isDisabled: disabled,
|
|
10651
10725
|
...rest
|
|
@@ -10655,8 +10729,8 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10655
10729
|
{
|
|
10656
10730
|
textValue,
|
|
10657
10731
|
...props,
|
|
10658
|
-
className:
|
|
10659
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */
|
|
10732
|
+
className: cn72("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10733
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs43(Fragment13, { children: [
|
|
10660
10734
|
children,
|
|
10661
10735
|
allowsRemoving && /* @__PURE__ */ jsx120(CloseButton, { className: classNames3.closeButton, slot: "remove" })
|
|
10662
10736
|
] })
|
|
@@ -10671,12 +10745,12 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
10671
10745
|
// src/XLoader/XLoader.tsx
|
|
10672
10746
|
import { Dialog as Dialog4, Modal as Modal2 } from "react-aria-components";
|
|
10673
10747
|
import { useId as useId2 } from "@react-aria/utils";
|
|
10674
|
-
import { useClassNames as
|
|
10748
|
+
import { useClassNames as useClassNames67 } from "@marigold/system";
|
|
10675
10749
|
|
|
10676
10750
|
// src/XLoader/BaseLoader.tsx
|
|
10677
10751
|
import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
|
|
10678
10752
|
import { useLocalizedStringFormatter as useLocalizedStringFormatter2 } from "@react-aria/i18n";
|
|
10679
|
-
import { useClassNames as
|
|
10753
|
+
import { useClassNames as useClassNames66 } from "@marigold/system";
|
|
10680
10754
|
|
|
10681
10755
|
// src/intl/messages.ts
|
|
10682
10756
|
var intlMessages2 = {
|
|
@@ -10689,7 +10763,7 @@ var intlMessages2 = {
|
|
|
10689
10763
|
};
|
|
10690
10764
|
|
|
10691
10765
|
// src/XLoader/BaseLoader.tsx
|
|
10692
|
-
import { jsx as jsx121, jsxs as
|
|
10766
|
+
import { jsx as jsx121, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
10693
10767
|
var BaseLoader = ({
|
|
10694
10768
|
variant,
|
|
10695
10769
|
size: size2,
|
|
@@ -10698,8 +10772,8 @@ var BaseLoader = ({
|
|
|
10698
10772
|
...props
|
|
10699
10773
|
}) => {
|
|
10700
10774
|
const stringFormatter = useLocalizedStringFormatter2(intlMessages2, "marigold");
|
|
10701
|
-
const className =
|
|
10702
|
-
return /* @__PURE__ */
|
|
10775
|
+
const className = useClassNames66({ component: "XLoader", variant, size: size2 });
|
|
10776
|
+
return /* @__PURE__ */ jsxs44(
|
|
10703
10777
|
ProgressBar2,
|
|
10704
10778
|
{
|
|
10705
10779
|
className: className.container,
|
|
@@ -10707,7 +10781,7 @@ var BaseLoader = ({
|
|
|
10707
10781
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10708
10782
|
...props,
|
|
10709
10783
|
children: [
|
|
10710
|
-
/* @__PURE__ */
|
|
10784
|
+
/* @__PURE__ */ jsxs44(
|
|
10711
10785
|
"svg",
|
|
10712
10786
|
{
|
|
10713
10787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10930,7 +11004,7 @@ var LoaderFullScreen = (props) => {
|
|
|
10930
11004
|
return /* @__PURE__ */ jsx122(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx122(Modal2, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx122(Dialog4, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx122(BaseLoader, { id, ...props }) }) }) });
|
|
10931
11005
|
};
|
|
10932
11006
|
var LoaderSection = (props) => {
|
|
10933
|
-
const className =
|
|
11007
|
+
const className = useClassNames67({
|
|
10934
11008
|
component: "Underlay",
|
|
10935
11009
|
variant: "modal",
|
|
10936
11010
|
className: "flex size-full items-center justify-center"
|
|
@@ -10941,16 +11015,16 @@ var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PUR
|
|
|
10941
11015
|
|
|
10942
11016
|
// src/Tabs/Tabs.tsx
|
|
10943
11017
|
import { Tabs } from "react-aria-components";
|
|
10944
|
-
import { useClassNames as
|
|
11018
|
+
import { useClassNames as useClassNames68 } from "@marigold/system";
|
|
10945
11019
|
|
|
10946
11020
|
// src/Tabs/Context.ts
|
|
10947
|
-
import { createContext as
|
|
10948
|
-
var TabContext =
|
|
10949
|
-
var useTabContext = () =>
|
|
11021
|
+
import { createContext as createContext16, useContext as useContext27 } from "react";
|
|
11022
|
+
var TabContext = createContext16({});
|
|
11023
|
+
var useTabContext = () => useContext27(TabContext);
|
|
10950
11024
|
|
|
10951
11025
|
// src/Tabs/Tab.tsx
|
|
10952
11026
|
import { Tab } from "react-aria-components";
|
|
10953
|
-
import { cn as
|
|
11027
|
+
import { cn as cn73 } from "@marigold/system";
|
|
10954
11028
|
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
10955
11029
|
var _Tab = (props) => {
|
|
10956
11030
|
const { classNames: classNames3 } = useTabContext();
|
|
@@ -10958,7 +11032,7 @@ var _Tab = (props) => {
|
|
|
10958
11032
|
Tab,
|
|
10959
11033
|
{
|
|
10960
11034
|
...props,
|
|
10961
|
-
className:
|
|
11035
|
+
className: cn73(
|
|
10962
11036
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
10963
11037
|
classNames3.tab
|
|
10964
11038
|
),
|
|
@@ -10969,7 +11043,7 @@ var _Tab = (props) => {
|
|
|
10969
11043
|
|
|
10970
11044
|
// src/Tabs/TabList.tsx
|
|
10971
11045
|
import { TabList } from "react-aria-components";
|
|
10972
|
-
import { cn as
|
|
11046
|
+
import { cn as cn74, gapSpace as gapSpace10 } from "@marigold/system";
|
|
10973
11047
|
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
10974
11048
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10975
11049
|
const { classNames: classNames3 } = useTabContext();
|
|
@@ -10977,7 +11051,7 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10977
11051
|
TabList,
|
|
10978
11052
|
{
|
|
10979
11053
|
...props,
|
|
10980
|
-
className:
|
|
11054
|
+
className: cn74("flex", gapSpace10[space], classNames3.tabsList),
|
|
10981
11055
|
children: props.children
|
|
10982
11056
|
}
|
|
10983
11057
|
);
|
|
@@ -10998,7 +11072,7 @@ var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
|
10998
11072
|
isDisabled: disabled,
|
|
10999
11073
|
...rest
|
|
11000
11074
|
};
|
|
11001
|
-
const classNames3 =
|
|
11075
|
+
const classNames3 = useClassNames68({
|
|
11002
11076
|
component: "Tabs",
|
|
11003
11077
|
size: size2,
|
|
11004
11078
|
variant
|
|
@@ -11086,7 +11160,6 @@ export {
|
|
|
11086
11160
|
Underlay,
|
|
11087
11161
|
VisuallyHidden,
|
|
11088
11162
|
XLoader,
|
|
11089
|
-
_Calendar,
|
|
11090
11163
|
gridColsAlign,
|
|
11091
11164
|
gridColumn,
|
|
11092
11165
|
useAsyncList,
|