@marigold/components 11.5.0 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -44
- package/dist/index.d.ts +26 -44
- package/dist/index.js +606 -532
- package/dist/index.mjs +438 -366
- package/package.json +4 -4
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 Fragment15 = 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 = Fragment15;
|
|
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, {
|
|
@@ -846,6 +846,7 @@ var require_taggedTemplateLiteral = __commonJS({
|
|
|
846
846
|
|
|
847
847
|
// src/hooks.ts
|
|
848
848
|
import { useAsyncList, useListData } from "@react-stately/data";
|
|
849
|
+
import { DateFormat, NumericFormat } from "@marigold/system";
|
|
849
850
|
|
|
850
851
|
// src/Accordion/Accordion.tsx
|
|
851
852
|
import { DisclosureGroup } from "react-aria-components";
|
|
@@ -1049,7 +1050,7 @@ var HelpText = ({
|
|
|
1049
1050
|
size: size2
|
|
1050
1051
|
});
|
|
1051
1052
|
const ctx = useContext3(FieldErrorContext);
|
|
1052
|
-
if (!description && ctx
|
|
1053
|
+
if (!description && !(ctx == null ? void 0 : ctx.isInvalid)) {
|
|
1053
1054
|
return null;
|
|
1054
1055
|
}
|
|
1055
1056
|
return /* @__PURE__ */ jsxs3("div", { className: cn4(classNames3.container), children: [
|
|
@@ -1306,19 +1307,39 @@ var useListBoxContext = () => useContext5(ListBoxContext);
|
|
|
1306
1307
|
|
|
1307
1308
|
// src/ListBox/ListBoxItem.tsx
|
|
1308
1309
|
import { ListBoxItem } from "react-aria-components";
|
|
1309
|
-
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
|
+
) });
|
|
1310
1319
|
var _ListBoxItem = ({ ...props }) => {
|
|
1320
|
+
var _a;
|
|
1311
1321
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1312
|
-
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
|
+
);
|
|
1313
1334
|
};
|
|
1314
1335
|
|
|
1315
1336
|
// src/ListBox/ListBoxSection.tsx
|
|
1316
1337
|
import { Header, ListBoxSection } from "react-aria-components";
|
|
1317
1338
|
import { cn as cn9 } from "@marigold/system";
|
|
1318
|
-
import { jsx as jsx15, jsxs as
|
|
1339
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1319
1340
|
var _Section = ({ header, children, ...props }) => {
|
|
1320
1341
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1321
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsxs8(
|
|
1322
1343
|
ListBoxSection,
|
|
1323
1344
|
{
|
|
1324
1345
|
...props,
|
|
@@ -1413,7 +1434,7 @@ var Underlay = ({
|
|
|
1413
1434
|
ModalOverlay,
|
|
1414
1435
|
{
|
|
1415
1436
|
className: ({ isEntering, isExiting }) => cn11(
|
|
1416
|
-
"fixed inset-0 z-40
|
|
1437
|
+
"fixed inset-0 z-40 grid place-items-center overflow-y-auto",
|
|
1417
1438
|
isEntering ? "animate-in fade-in duration-300 ease-out" : "",
|
|
1418
1439
|
isExiting ? "animate-out fade-out duration-200 ease-in" : "",
|
|
1419
1440
|
classNames3
|
|
@@ -1427,7 +1448,7 @@ var Underlay = ({
|
|
|
1427
1448
|
};
|
|
1428
1449
|
|
|
1429
1450
|
// src/Overlay/Popover.tsx
|
|
1430
|
-
import { Fragment, jsx as jsx19, jsxs as
|
|
1451
|
+
import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1431
1452
|
var _Popover = forwardRef6(
|
|
1432
1453
|
({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
|
|
1433
1454
|
const props = {
|
|
@@ -1444,7 +1465,7 @@ var _Popover = forwardRef6(
|
|
|
1444
1465
|
});
|
|
1445
1466
|
const isSmallScreen = useSmallScreen();
|
|
1446
1467
|
const portal = usePortalContainer();
|
|
1447
|
-
return /* @__PURE__ */ jsx19(
|
|
1468
|
+
return /* @__PURE__ */ jsx19(Fragment2, { children: isSmallScreen ? /* @__PURE__ */ jsx19(Fragment2, { children: /* @__PURE__ */ jsxs9(
|
|
1448
1469
|
Popover,
|
|
1449
1470
|
{
|
|
1450
1471
|
ref,
|
|
@@ -1456,7 +1477,7 @@ var _Popover = forwardRef6(
|
|
|
1456
1477
|
UNSTABLE_portalContainer: portal,
|
|
1457
1478
|
children: [
|
|
1458
1479
|
children,
|
|
1459
|
-
/* @__PURE__ */ jsx19(Underlay, { open
|
|
1480
|
+
/* @__PURE__ */ jsx19(Underlay, { open })
|
|
1460
1481
|
]
|
|
1461
1482
|
}
|
|
1462
1483
|
) }) : /* @__PURE__ */ jsx19(
|
|
@@ -1475,7 +1496,7 @@ var _Popover = forwardRef6(
|
|
|
1475
1496
|
);
|
|
1476
1497
|
|
|
1477
1498
|
// src/Autocomplete/Autocomplete.tsx
|
|
1478
|
-
import { jsx as jsx20, jsxs as
|
|
1499
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1479
1500
|
var AutocompleteInput = ({
|
|
1480
1501
|
onSubmit,
|
|
1481
1502
|
onClear,
|
|
@@ -1537,7 +1558,7 @@ var _Autocomplete = forwardRef7(
|
|
|
1537
1558
|
isRequired: required,
|
|
1538
1559
|
...rest
|
|
1539
1560
|
};
|
|
1540
|
-
return /* @__PURE__ */
|
|
1561
|
+
return /* @__PURE__ */ jsxs10(FieldBase, { as: ComboBox, ref, ...props, children: [
|
|
1541
1562
|
/* @__PURE__ */ jsx20(AutocompleteInput, { onSubmit, onClear, ref }),
|
|
1542
1563
|
/* @__PURE__ */ jsx20(_Popover, { children: /* @__PURE__ */ jsx20(_ListBox, { children }) })
|
|
1543
1564
|
] });
|
|
@@ -1606,7 +1627,7 @@ import { jsx as jsx25 } from "react/jsx-runtime";
|
|
|
1606
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" }) }));
|
|
1607
1628
|
|
|
1608
1629
|
// src/ComboBox/ComboBox.tsx
|
|
1609
|
-
import { jsx as jsx26, jsxs as
|
|
1630
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1610
1631
|
var _ComboBox = forwardRef12(
|
|
1611
1632
|
({
|
|
1612
1633
|
variant,
|
|
@@ -1632,7 +1653,7 @@ var _ComboBox = forwardRef12(
|
|
|
1632
1653
|
...rest
|
|
1633
1654
|
};
|
|
1634
1655
|
const classNames3 = useClassNames11({ component: "ComboBox", variant, size: size2 });
|
|
1635
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ jsxs11(FieldBase, { as: ComboBox2, ref, ...props, children: [
|
|
1636
1657
|
/* @__PURE__ */ jsx26(
|
|
1637
1658
|
_Input,
|
|
1638
1659
|
{
|
|
@@ -1676,7 +1697,7 @@ import { cn as cn16, useClassNames as useClassNames15 } from "@marigold/system";
|
|
|
1676
1697
|
// src/ProgressCycle/ProgressCycle.tsx
|
|
1677
1698
|
import { ProgressBar } from "react-aria-components";
|
|
1678
1699
|
import { SVG as SVG7, cn as cn15, useClassNames as useClassNames14 } from "@marigold/system";
|
|
1679
|
-
import { jsx as jsx30, jsxs as
|
|
1700
|
+
import { jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1680
1701
|
var ProgressCycle = ({
|
|
1681
1702
|
size: size2 = "16",
|
|
1682
1703
|
...props
|
|
@@ -1689,7 +1710,7 @@ var ProgressCycle = ({
|
|
|
1689
1710
|
}
|
|
1690
1711
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|
|
1691
1712
|
const classNames3 = useClassNames14({ component: "ProgressCycle" });
|
|
1692
|
-
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(
|
|
1693
1714
|
SVG7,
|
|
1694
1715
|
{
|
|
1695
1716
|
className: "animate-rotate-spinner origin-center fill-none",
|
|
@@ -1730,7 +1751,7 @@ var ProgressCycle = ({
|
|
|
1730
1751
|
};
|
|
1731
1752
|
|
|
1732
1753
|
// src/Button/Button.tsx
|
|
1733
|
-
import { Fragment as
|
|
1754
|
+
import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1734
1755
|
var _Button = forwardRef13(
|
|
1735
1756
|
({
|
|
1736
1757
|
children,
|
|
@@ -1761,7 +1782,7 @@ var _Button = forwardRef13(
|
|
|
1761
1782
|
),
|
|
1762
1783
|
isPending: loading,
|
|
1763
1784
|
isDisabled: disabled,
|
|
1764
|
-
children: loading ? /* @__PURE__ */
|
|
1785
|
+
children: loading ? /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
1765
1786
|
/* @__PURE__ */ jsx31("span", { className: "absolute", children: /* @__PURE__ */ jsx31(ProgressCycle, {}) }),
|
|
1766
1787
|
/* @__PURE__ */ jsx31("span", { className: "invisible flex gap-[inherit]", children })
|
|
1767
1788
|
] }) : children
|
|
@@ -1851,10 +1872,10 @@ import { cn as cn20, useClassNames as useClassNames19 } from "@marigold/system";
|
|
|
1851
1872
|
|
|
1852
1873
|
// src/Checkbox/CheckBoxField.tsx
|
|
1853
1874
|
import { createVar as createVar5, useClassNames as useClassNames17 } from "@marigold/system";
|
|
1854
|
-
import { jsx as jsx34, jsxs as
|
|
1875
|
+
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1855
1876
|
var CheckboxField = ({ children, labelWidth }) => {
|
|
1856
1877
|
const classNames3 = useClassNames17({ component: "Field" });
|
|
1857
|
-
return /* @__PURE__ */
|
|
1878
|
+
return /* @__PURE__ */ jsxs14("div", { className: classNames3, children: [
|
|
1858
1879
|
/* @__PURE__ */ jsx34("div", { className: "w-(--labelWidth)", style: createVar5({ labelWidth }) }),
|
|
1859
1880
|
children
|
|
1860
1881
|
] });
|
|
@@ -1914,8 +1935,8 @@ var _CheckboxGroup = ({
|
|
|
1914
1935
|
};
|
|
1915
1936
|
|
|
1916
1937
|
// src/Checkbox/Checkbox.tsx
|
|
1917
|
-
import { Fragment as
|
|
1918
|
-
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(
|
|
1919
1940
|
"path",
|
|
1920
1941
|
{
|
|
1921
1942
|
fill: "currentColor",
|
|
@@ -1944,7 +1965,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
|
1944
1965
|
className
|
|
1945
1966
|
),
|
|
1946
1967
|
...props,
|
|
1947
|
-
children: indeterminate ? /* @__PURE__ */ jsx36(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx36(
|
|
1968
|
+
children: indeterminate ? /* @__PURE__ */ jsx36(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx36(CheckMark2, {}) : null
|
|
1948
1969
|
}
|
|
1949
1970
|
);
|
|
1950
1971
|
};
|
|
@@ -1989,7 +2010,7 @@ var _Checkbox = forwardRef14(
|
|
|
1989
2010
|
classNames3.container
|
|
1990
2011
|
),
|
|
1991
2012
|
...props,
|
|
1992
|
-
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */
|
|
2013
|
+
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs15(Fragment4, { children: [
|
|
1993
2014
|
/* @__PURE__ */ jsx36(
|
|
1994
2015
|
Icon2,
|
|
1995
2016
|
{
|
|
@@ -1998,7 +2019,7 @@ var _Checkbox = forwardRef14(
|
|
|
1998
2019
|
className: classNames3.checkbox
|
|
1999
2020
|
}
|
|
2000
2021
|
),
|
|
2001
|
-
|
|
2022
|
+
label && /* @__PURE__ */ jsx36("div", { className: classNames3.label, children: label })
|
|
2002
2023
|
] })
|
|
2003
2024
|
}
|
|
2004
2025
|
);
|
|
@@ -2108,7 +2129,7 @@ import {
|
|
|
2108
2129
|
useContext as useContext9
|
|
2109
2130
|
} from "react";
|
|
2110
2131
|
import { Dialog, OverlayTriggerStateContext as OverlayTriggerStateContext2 } from "react-aria-components";
|
|
2111
|
-
import { cn as cn26, useClassNames as
|
|
2132
|
+
import { cn as cn26, useClassNames as useClassNames25 } from "@marigold/system";
|
|
2112
2133
|
|
|
2113
2134
|
// src/CloseButton/CloseButton.tsx
|
|
2114
2135
|
import { forwardRef as forwardRef15 } from "react";
|
|
@@ -2130,30 +2151,23 @@ var CloseButton = forwardRef15(
|
|
|
2130
2151
|
// src/Overlay/Modal.tsx
|
|
2131
2152
|
import { forwardRef as forwardRef16 } from "react";
|
|
2132
2153
|
import { Modal } from "react-aria-components";
|
|
2154
|
+
import { useClassNames as useClassNames21 } from "@marigold/system";
|
|
2133
2155
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2134
|
-
var _Modal = forwardRef16(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2156
|
+
var _Modal = forwardRef16(({ size: size2, open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2135
2157
|
const props = {
|
|
2136
2158
|
isOpen: open,
|
|
2137
2159
|
isDismissable: dismissable,
|
|
2138
2160
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
2139
2161
|
...rest
|
|
2140
2162
|
};
|
|
2163
|
+
const className = useClassNames21({ component: "Modal", size: size2 });
|
|
2141
2164
|
return /* @__PURE__ */ jsx40(
|
|
2142
2165
|
Underlay,
|
|
2143
2166
|
{
|
|
2144
2167
|
dismissable,
|
|
2145
2168
|
keyboardDismissable,
|
|
2146
2169
|
open,
|
|
2147
|
-
|
|
2148
|
-
children: /* @__PURE__ */ jsx40(
|
|
2149
|
-
Modal,
|
|
2150
|
-
{
|
|
2151
|
-
ref,
|
|
2152
|
-
className: "relative flex w-full justify-center",
|
|
2153
|
-
...props,
|
|
2154
|
-
children: props.children
|
|
2155
|
-
}
|
|
2156
|
-
)
|
|
2170
|
+
children: /* @__PURE__ */ jsx40(Modal, { ...props, className, ref, children: props.children })
|
|
2157
2171
|
}
|
|
2158
2172
|
);
|
|
2159
2173
|
});
|
|
@@ -2248,7 +2262,7 @@ var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
|
2248
2262
|
};
|
|
2249
2263
|
|
|
2250
2264
|
// src/Overlay/NonModal.tsx
|
|
2251
|
-
import { jsx as jsx41, jsxs as
|
|
2265
|
+
import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2252
2266
|
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
2253
2267
|
const { nonModalProps } = useNonModal(props, state);
|
|
2254
2268
|
const ref = props.nonModalRef;
|
|
@@ -2268,7 +2282,7 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
|
2268
2282
|
...renderProps.style,
|
|
2269
2283
|
"--visual-viewport-height": viewport.height + "px"
|
|
2270
2284
|
};
|
|
2271
|
-
const overlay = /* @__PURE__ */
|
|
2285
|
+
const overlay = /* @__PURE__ */ jsxs16(
|
|
2272
2286
|
"div",
|
|
2273
2287
|
{
|
|
2274
2288
|
...mergeProps(filterDOMProps(props), nonModalProps),
|
|
@@ -2325,31 +2339,31 @@ var NonModal = forwardRef17(
|
|
|
2325
2339
|
);
|
|
2326
2340
|
|
|
2327
2341
|
// src/Dialog/DialogActions.tsx
|
|
2328
|
-
import { cn as cn23, useClassNames as
|
|
2342
|
+
import { cn as cn23, useClassNames as useClassNames22 } from "@marigold/system";
|
|
2329
2343
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2330
2344
|
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2331
|
-
const classNames3 =
|
|
2345
|
+
const classNames3 = useClassNames22({ component: "Dialog", variant, size: size2 });
|
|
2332
2346
|
return /* @__PURE__ */ jsx42("div", { className: cn23("[grid-area:actions]", classNames3.actions), children });
|
|
2333
2347
|
};
|
|
2334
2348
|
|
|
2335
2349
|
// src/Dialog/DialogContent.tsx
|
|
2336
|
-
import { cn as cn24, useClassNames as
|
|
2350
|
+
import { cn as cn24, useClassNames as useClassNames23 } from "@marigold/system";
|
|
2337
2351
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2338
2352
|
var DialogContent = ({
|
|
2339
2353
|
variant,
|
|
2340
2354
|
size: size2,
|
|
2341
2355
|
children
|
|
2342
2356
|
}) => {
|
|
2343
|
-
const classNames3 =
|
|
2357
|
+
const classNames3 = useClassNames23({ component: "Dialog", variant, size: size2 });
|
|
2344
2358
|
return /* @__PURE__ */ jsx43("div", { className: cn24("[grid-area:content]", classNames3.content), children });
|
|
2345
2359
|
};
|
|
2346
2360
|
|
|
2347
2361
|
// src/Dialog/DialogTitle.tsx
|
|
2348
2362
|
import { Header as Header2, Heading as Heading2 } from "react-aria-components";
|
|
2349
|
-
import { cn as cn25, useClassNames as
|
|
2363
|
+
import { cn as cn25, useClassNames as useClassNames24 } from "@marigold/system";
|
|
2350
2364
|
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2351
2365
|
var DialogTitle = ({ variant, size: size2, children }) => {
|
|
2352
|
-
const classNames3 =
|
|
2366
|
+
const classNames3 = useClassNames24({
|
|
2353
2367
|
component: "Dialog",
|
|
2354
2368
|
variant,
|
|
2355
2369
|
size: size2
|
|
@@ -2367,7 +2381,6 @@ var _DialogTrigger = ({
|
|
|
2367
2381
|
open,
|
|
2368
2382
|
dismissable,
|
|
2369
2383
|
keyboardDismissable,
|
|
2370
|
-
size: size2,
|
|
2371
2384
|
...rest
|
|
2372
2385
|
}) => {
|
|
2373
2386
|
const props = {
|
|
@@ -2380,14 +2393,14 @@ var _DialogTrigger = ({
|
|
|
2380
2393
|
};
|
|
2381
2394
|
|
|
2382
2395
|
// src/Dialog/Dialog.tsx
|
|
2383
|
-
import { jsx as jsx46, jsxs as
|
|
2396
|
+
import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2384
2397
|
var _Dialog = forwardRef18(
|
|
2385
|
-
(props, ref) => {
|
|
2398
|
+
({ variant, size: size2, ...props }, ref) => {
|
|
2386
2399
|
var _a;
|
|
2387
|
-
const classNames3 =
|
|
2400
|
+
const classNames3 = useClassNames25({
|
|
2388
2401
|
component: "Dialog",
|
|
2389
|
-
variant
|
|
2390
|
-
size:
|
|
2402
|
+
variant,
|
|
2403
|
+
size: size2
|
|
2391
2404
|
});
|
|
2392
2405
|
const { isDismissable, isKeyboardDismissDisabled, isOpen } = useContext9(DialogContext);
|
|
2393
2406
|
const state = useContext9(OverlayTriggerStateContext2);
|
|
@@ -2401,13 +2414,14 @@ var _Dialog = forwardRef18(
|
|
|
2401
2414
|
dismissable: isDismissable,
|
|
2402
2415
|
keyboardDismissable: isKeyboardDismissDisabled,
|
|
2403
2416
|
open: isOpen,
|
|
2404
|
-
|
|
2417
|
+
size: size2,
|
|
2418
|
+
children: /* @__PURE__ */ jsxs17(
|
|
2405
2419
|
Dialog,
|
|
2406
2420
|
{
|
|
2407
2421
|
...props,
|
|
2408
2422
|
ref,
|
|
2409
2423
|
className: cn26(
|
|
2410
|
-
"relative outline-hidden [&>*:not(:last-child)]:mb-4",
|
|
2424
|
+
"relative mx-auto outline-hidden [&>*:not(:last-child)]:mb-4",
|
|
2411
2425
|
"grid [grid-template-areas:'title'_'content'_'actions']",
|
|
2412
2426
|
classNames3.container
|
|
2413
2427
|
),
|
|
@@ -2434,10 +2448,10 @@ _Dialog.Actions = DialogActions;
|
|
|
2434
2448
|
|
|
2435
2449
|
// src/Divider/Divider.tsx
|
|
2436
2450
|
import { Separator } from "react-aria-components";
|
|
2437
|
-
import { cn as cn27, useClassNames as
|
|
2451
|
+
import { cn as cn27, useClassNames as useClassNames26 } from "@marigold/system";
|
|
2438
2452
|
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2439
2453
|
var _Divider = ({ variant, ...props }) => {
|
|
2440
|
-
const classNames3 =
|
|
2454
|
+
const classNames3 = useClassNames26({ component: "Divider", variant });
|
|
2441
2455
|
return /* @__PURE__ */ jsx47(Separator, { className: cn27("border-none", classNames3), ...props });
|
|
2442
2456
|
};
|
|
2443
2457
|
|
|
@@ -2445,7 +2459,7 @@ var _Divider = ({ variant, ...props }) => {
|
|
|
2445
2459
|
import { useContext as useContext11, useRef } from "react";
|
|
2446
2460
|
import { Dialog as Dialog2, OverlayTriggerStateContext as OverlayTriggerStateContext3 } from "react-aria-components";
|
|
2447
2461
|
import { useLandmark } from "@react-aria/landmark";
|
|
2448
|
-
import { cn as cn32, useClassNames as
|
|
2462
|
+
import { cn as cn32, useClassNames as useClassNames30, useSmallScreen as useSmallScreen3 } from "@marigold/system";
|
|
2449
2463
|
|
|
2450
2464
|
// src/Drawer/Context.tsx
|
|
2451
2465
|
import { createContext as createContext7, useContext as useContext10 } from "react";
|
|
@@ -2456,11 +2470,11 @@ var DrawerContext = createContext7({
|
|
|
2456
2470
|
var useDrawerContext = () => useContext10(DrawerContext);
|
|
2457
2471
|
|
|
2458
2472
|
// src/Drawer/DrawerActions.tsx
|
|
2459
|
-
import { cn as cn28, useClassNames as
|
|
2473
|
+
import { cn as cn28, useClassNames as useClassNames27 } from "@marigold/system";
|
|
2460
2474
|
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2461
2475
|
var DrawerActions = ({ variant, size: size2, children }) => {
|
|
2462
2476
|
const ctx = useDrawerContext();
|
|
2463
|
-
const classNames3 =
|
|
2477
|
+
const classNames3 = useClassNames27({
|
|
2464
2478
|
component: "Drawer",
|
|
2465
2479
|
variant: variant != null ? variant : ctx.variant,
|
|
2466
2480
|
size: size2 != null ? size2 : ctx.size
|
|
@@ -2476,7 +2490,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
|
|
|
2476
2490
|
};
|
|
2477
2491
|
|
|
2478
2492
|
// src/Drawer/DrawerContent.tsx
|
|
2479
|
-
import { cn as cn29, useClassNames as
|
|
2493
|
+
import { cn as cn29, useClassNames as useClassNames28 } from "@marigold/system";
|
|
2480
2494
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2481
2495
|
var DrawerContent = ({
|
|
2482
2496
|
variant,
|
|
@@ -2484,7 +2498,7 @@ var DrawerContent = ({
|
|
|
2484
2498
|
children
|
|
2485
2499
|
}) => {
|
|
2486
2500
|
const ctx = useDrawerContext();
|
|
2487
|
-
const classNames3 =
|
|
2501
|
+
const classNames3 = useClassNames28({
|
|
2488
2502
|
component: "Drawer",
|
|
2489
2503
|
variant: variant != null ? variant : ctx.variant,
|
|
2490
2504
|
size: size2 != null ? size2 : ctx.size
|
|
@@ -2520,14 +2534,14 @@ var DrawerModal = ({
|
|
|
2520
2534
|
|
|
2521
2535
|
// src/Drawer/DrawerTitle.tsx
|
|
2522
2536
|
import { Header as Header3, Heading as Heading3 } from "react-aria-components";
|
|
2523
|
-
import { cn as cn31, useClassNames as
|
|
2537
|
+
import { cn as cn31, useClassNames as useClassNames29 } from "@marigold/system";
|
|
2524
2538
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2525
2539
|
var DrawerTitle = ({ variant, size: size2, children }) => {
|
|
2526
|
-
const
|
|
2527
|
-
const classNames3 = useClassNames28({
|
|
2540
|
+
const classNames3 = useClassNames29({
|
|
2528
2541
|
component: "Drawer",
|
|
2529
|
-
|
|
2530
|
-
|
|
2542
|
+
size: size2,
|
|
2543
|
+
variant,
|
|
2544
|
+
context: DrawerContext
|
|
2531
2545
|
});
|
|
2532
2546
|
return /* @__PURE__ */ jsx51(
|
|
2533
2547
|
Header3,
|
|
@@ -2549,7 +2563,7 @@ var DrawerTrigger = ({
|
|
|
2549
2563
|
}) => /* @__PURE__ */ jsx52(DialogTrigger2, { isOpen: open, ...props, children });
|
|
2550
2564
|
|
|
2551
2565
|
// src/Drawer/Drawer.tsx
|
|
2552
|
-
import { jsx as jsx53, jsxs as
|
|
2566
|
+
import { jsx as jsx53, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2553
2567
|
var Drawer = ({
|
|
2554
2568
|
children,
|
|
2555
2569
|
variant,
|
|
@@ -2561,7 +2575,7 @@ var Drawer = ({
|
|
|
2561
2575
|
...props
|
|
2562
2576
|
}) => {
|
|
2563
2577
|
const ref = useRef(null);
|
|
2564
|
-
const classNames3 =
|
|
2578
|
+
const classNames3 = useClassNames30({ component: "Drawer", variant, size: size2 });
|
|
2565
2579
|
const ctx = useContext11(OverlayTriggerStateContext3);
|
|
2566
2580
|
const isSmallScreen = useSmallScreen3();
|
|
2567
2581
|
const landmarkAria = useLandmark({ ...props, role }, ref);
|
|
@@ -2572,7 +2586,7 @@ var Drawer = ({
|
|
|
2572
2586
|
className: classNames3.overlay,
|
|
2573
2587
|
open,
|
|
2574
2588
|
keyboardDismissable,
|
|
2575
|
-
children: /* @__PURE__ */ jsx53(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */
|
|
2589
|
+
children: /* @__PURE__ */ jsx53(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ jsxs18(
|
|
2576
2590
|
Dialog2,
|
|
2577
2591
|
{
|
|
2578
2592
|
...props,
|
|
@@ -2605,10 +2619,10 @@ Drawer.Content = DrawerContent;
|
|
|
2605
2619
|
Drawer.Actions = DrawerActions;
|
|
2606
2620
|
|
|
2607
2621
|
// src/Footer/Footer.tsx
|
|
2608
|
-
import { useClassNames as
|
|
2622
|
+
import { useClassNames as useClassNames31 } from "@marigold/system";
|
|
2609
2623
|
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
2610
2624
|
var Footer = ({ children, variant, size: size2, ...props }) => {
|
|
2611
|
-
const classNames3 =
|
|
2625
|
+
const classNames3 = useClassNames31({ component: "Footer", variant, size: size2 });
|
|
2612
2626
|
return /* @__PURE__ */ jsx54("footer", { ...props, className: classNames3, children });
|
|
2613
2627
|
};
|
|
2614
2628
|
|
|
@@ -2662,10 +2676,10 @@ Grid.Area = GridArea;
|
|
|
2662
2676
|
|
|
2663
2677
|
// src/Header/Header.tsx
|
|
2664
2678
|
import { Header as Header4 } from "react-aria-components";
|
|
2665
|
-
import { useClassNames as
|
|
2679
|
+
import { useClassNames as useClassNames32 } from "@marigold/system";
|
|
2666
2680
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2667
2681
|
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2668
|
-
const classNames3 =
|
|
2682
|
+
const classNames3 = useClassNames32({
|
|
2669
2683
|
component: "Header",
|
|
2670
2684
|
variant,
|
|
2671
2685
|
size: size2
|
|
@@ -2679,7 +2693,7 @@ import {
|
|
|
2679
2693
|
cn as cn35,
|
|
2680
2694
|
ensureCssVar,
|
|
2681
2695
|
textAlign,
|
|
2682
|
-
useClassNames as
|
|
2696
|
+
useClassNames as useClassNames33
|
|
2683
2697
|
} from "@marigold/system";
|
|
2684
2698
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2685
2699
|
var _Headline = ({
|
|
@@ -2691,7 +2705,7 @@ var _Headline = ({
|
|
|
2691
2705
|
level = "1",
|
|
2692
2706
|
...props
|
|
2693
2707
|
}) => {
|
|
2694
|
-
const classNames3 =
|
|
2708
|
+
const classNames3 = useClassNames33({
|
|
2695
2709
|
component: "Headline",
|
|
2696
2710
|
variant,
|
|
2697
2711
|
size: size2 != null ? size2 : `level-${level}`
|
|
@@ -2718,7 +2732,7 @@ import {
|
|
|
2718
2732
|
cn as cn36,
|
|
2719
2733
|
objectFit,
|
|
2720
2734
|
objectPosition,
|
|
2721
|
-
useClassNames as
|
|
2735
|
+
useClassNames as useClassNames34
|
|
2722
2736
|
} from "@marigold/system";
|
|
2723
2737
|
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
2724
2738
|
var Image = ({
|
|
@@ -2728,7 +2742,7 @@ var Image = ({
|
|
|
2728
2742
|
position: position2 = "none",
|
|
2729
2743
|
...props
|
|
2730
2744
|
}) => {
|
|
2731
|
-
const classNames3 =
|
|
2745
|
+
const classNames3 = useClassNames34({ component: "Image", variant, size: size2 });
|
|
2732
2746
|
return /* @__PURE__ */ jsx60(
|
|
2733
2747
|
"img",
|
|
2734
2748
|
{
|
|
@@ -2776,12 +2790,12 @@ import { DateField } from "react-aria-components";
|
|
|
2776
2790
|
|
|
2777
2791
|
// src/DateField/DateInput.tsx
|
|
2778
2792
|
import { DateInput, Group } from "react-aria-components";
|
|
2779
|
-
import { useClassNames as
|
|
2793
|
+
import { useClassNames as useClassNames35 } from "@marigold/system";
|
|
2780
2794
|
|
|
2781
2795
|
// src/DateField/DateSegment.tsx
|
|
2782
2796
|
import { DateSegment } from "react-aria-components";
|
|
2783
2797
|
import { cn as cn38 } from "@marigold/system";
|
|
2784
|
-
import { Fragment as
|
|
2798
|
+
import { Fragment as Fragment5, jsx as jsx62, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2785
2799
|
var _DateSegment = ({ segment, ...props }) => {
|
|
2786
2800
|
return /* @__PURE__ */ jsx62(
|
|
2787
2801
|
DateSegment,
|
|
@@ -2791,7 +2805,7 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2791
2805
|
style: {
|
|
2792
2806
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
2793
2807
|
},
|
|
2794
|
-
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */
|
|
2808
|
+
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
2795
2809
|
/* @__PURE__ */ jsx62(
|
|
2796
2810
|
"span",
|
|
2797
2811
|
{
|
|
@@ -2810,10 +2824,10 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2810
2824
|
};
|
|
2811
2825
|
|
|
2812
2826
|
// src/DateField/DateInput.tsx
|
|
2813
|
-
import { jsx as jsx63, jsxs as
|
|
2827
|
+
import { jsx as jsx63, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2814
2828
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2815
|
-
const classNames3 =
|
|
2816
|
-
return /* @__PURE__ */
|
|
2829
|
+
const classNames3 = useClassNames35({ component: "DateField", variant, size: size2 });
|
|
2830
|
+
return /* @__PURE__ */ jsxs20(Group, { className: classNames3.field, children: [
|
|
2817
2831
|
/* @__PURE__ */ jsx63(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx63(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2818
2832
|
action ? action : null
|
|
2819
2833
|
] });
|
|
@@ -2856,7 +2870,7 @@ var _DateField = forwardRef19(
|
|
|
2856
2870
|
// src/Calendar/Calendar.tsx
|
|
2857
2871
|
import { useState } from "react";
|
|
2858
2872
|
import { Calendar } from "react-aria-components";
|
|
2859
|
-
import { cn as cn42, useClassNames as
|
|
2873
|
+
import { cn as cn42, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2860
2874
|
|
|
2861
2875
|
// src/Calendar/CalendarGrid.tsx
|
|
2862
2876
|
import {
|
|
@@ -2864,7 +2878,7 @@ import {
|
|
|
2864
2878
|
CalendarGrid,
|
|
2865
2879
|
CalendarGridBody
|
|
2866
2880
|
} from "react-aria-components";
|
|
2867
|
-
import { cn as cn39, useClassNames as
|
|
2881
|
+
import { cn as cn39, useClassNames as useClassNames37 } from "@marigold/system";
|
|
2868
2882
|
|
|
2869
2883
|
// src/Calendar/CalendarGridHeader.tsx
|
|
2870
2884
|
import { startOfWeek, today } from "@internationalized/date";
|
|
@@ -2872,7 +2886,7 @@ import { useContext as useContext12, useMemo as useMemo2 } from "react";
|
|
|
2872
2886
|
import { CalendarStateContext } from "react-aria-components";
|
|
2873
2887
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
2874
2888
|
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
2875
|
-
import { useClassNames as
|
|
2889
|
+
import { useClassNames as useClassNames36 } from "@marigold/system";
|
|
2876
2890
|
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2877
2891
|
function CalendarGridHeader(props) {
|
|
2878
2892
|
const state = useContext12(CalendarStateContext);
|
|
@@ -2890,15 +2904,15 @@ function CalendarGridHeader(props) {
|
|
|
2890
2904
|
return dayFormatter.format(dateDay);
|
|
2891
2905
|
});
|
|
2892
2906
|
}, [locale, state.timeZone, dayFormatter]);
|
|
2893
|
-
const classNames3 =
|
|
2907
|
+
const classNames3 = useClassNames36({ component: "Calendar" });
|
|
2894
2908
|
return /* @__PURE__ */ jsx65("thead", { ...headerProps, children: /* @__PURE__ */ jsx65("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx65("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
|
|
2895
2909
|
}
|
|
2896
2910
|
|
|
2897
2911
|
// src/Calendar/CalendarGrid.tsx
|
|
2898
|
-
import { jsx as jsx66, jsxs as
|
|
2912
|
+
import { jsx as jsx66, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2899
2913
|
var _CalendarGrid = () => {
|
|
2900
|
-
const classNames3 =
|
|
2901
|
-
return /* @__PURE__ */
|
|
2914
|
+
const classNames3 = useClassNames37({ component: "Calendar" });
|
|
2915
|
+
return /* @__PURE__ */ jsxs21(CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
2902
2916
|
/* @__PURE__ */ jsx66(CalendarGridHeader, {}),
|
|
2903
2917
|
/* @__PURE__ */ jsx66(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx66(
|
|
2904
2918
|
CalendarCell,
|
|
@@ -2916,7 +2930,7 @@ var _CalendarGrid = () => {
|
|
|
2916
2930
|
// src/Calendar/CalendarListBox.tsx
|
|
2917
2931
|
import { useContext as useContext13 } from "react";
|
|
2918
2932
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
2919
|
-
import { cn as cn40, useClassNames as
|
|
2933
|
+
import { cn as cn40, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2920
2934
|
|
|
2921
2935
|
// src/Calendar/useFormattedMonths.tsx
|
|
2922
2936
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -2935,7 +2949,7 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
2935
2949
|
}
|
|
2936
2950
|
|
|
2937
2951
|
// src/Calendar/CalendarListBox.tsx
|
|
2938
|
-
import { jsx as jsx67, jsxs as
|
|
2952
|
+
import { jsx as jsx67, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2939
2953
|
function CalendarListBox({
|
|
2940
2954
|
type,
|
|
2941
2955
|
isDisabled,
|
|
@@ -2944,8 +2958,8 @@ function CalendarListBox({
|
|
|
2944
2958
|
const state = useContext13(CalendarStateContext2);
|
|
2945
2959
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2946
2960
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
2947
|
-
const { select: selectClassNames } =
|
|
2948
|
-
return /* @__PURE__ */
|
|
2961
|
+
const { select: selectClassNames } = useClassNames38({ component: "Select" });
|
|
2962
|
+
return /* @__PURE__ */ jsxs22(
|
|
2949
2963
|
"button",
|
|
2950
2964
|
{
|
|
2951
2965
|
disabled: isDisabled,
|
|
@@ -2961,11 +2975,11 @@ function CalendarListBox({
|
|
|
2961
2975
|
}
|
|
2962
2976
|
|
|
2963
2977
|
// src/Calendar/MonthControls.tsx
|
|
2964
|
-
import { cn as cn41, useClassNames as
|
|
2965
|
-
import { jsx as jsx68, jsxs as
|
|
2978
|
+
import { cn as cn41, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2979
|
+
import { jsx as jsx68, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2966
2980
|
function MonthControls() {
|
|
2967
|
-
const classNames3 =
|
|
2968
|
-
return /* @__PURE__ */
|
|
2981
|
+
const classNames3 = useClassNames39({ component: "Calendar" });
|
|
2982
|
+
return /* @__PURE__ */ jsxs23(
|
|
2969
2983
|
"div",
|
|
2970
2984
|
{
|
|
2971
2985
|
className: cn41(
|
|
@@ -3110,7 +3124,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3110
3124
|
var YearListBox_default = YearListBox;
|
|
3111
3125
|
|
|
3112
3126
|
// src/Calendar/Calendar.tsx
|
|
3113
|
-
import { Fragment as
|
|
3127
|
+
import { Fragment as Fragment6, jsx as jsx71, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3114
3128
|
var _Calendar = ({
|
|
3115
3129
|
disabled,
|
|
3116
3130
|
readOnly,
|
|
@@ -3125,7 +3139,7 @@ var _Calendar = ({
|
|
|
3125
3139
|
isDateUnavailable: dateUnavailable,
|
|
3126
3140
|
...rest
|
|
3127
3141
|
};
|
|
3128
|
-
const classNames3 =
|
|
3142
|
+
const classNames3 = useClassNames40({ component: "Calendar" });
|
|
3129
3143
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
3130
3144
|
const ViewMap = {
|
|
3131
3145
|
month: /* @__PURE__ */ jsx71(MonthListBox_default, { setSelectedDropdown }),
|
|
@@ -3139,9 +3153,9 @@ var _Calendar = ({
|
|
|
3139
3153
|
classNames3.calendar
|
|
3140
3154
|
),
|
|
3141
3155
|
...props,
|
|
3142
|
-
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */
|
|
3143
|
-
/* @__PURE__ */
|
|
3144
|
-
/* @__PURE__ */
|
|
3156
|
+
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs24(Fragment6, { children: [
|
|
3157
|
+
/* @__PURE__ */ jsxs24("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
3158
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex w-fit gap-4", children: [
|
|
3145
3159
|
/* @__PURE__ */ jsx71(
|
|
3146
3160
|
CalendarListBox,
|
|
3147
3161
|
{
|
|
@@ -3170,8 +3184,8 @@ var _Calendar = ({
|
|
|
3170
3184
|
// src/DatePicker/DatePicker.tsx
|
|
3171
3185
|
import React6 from "react";
|
|
3172
3186
|
import { DatePicker, Dialog as Dialog3 } from "react-aria-components";
|
|
3173
|
-
import { useClassNames as
|
|
3174
|
-
import { jsx as jsx72, jsxs as
|
|
3187
|
+
import { useClassNames as useClassNames41 } from "@marigold/system";
|
|
3188
|
+
import { jsx as jsx72, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3175
3189
|
var _DatePicker = React6.forwardRef(
|
|
3176
3190
|
({
|
|
3177
3191
|
dateUnavailable,
|
|
@@ -3195,12 +3209,12 @@ var _DatePicker = React6.forwardRef(
|
|
|
3195
3209
|
granularity,
|
|
3196
3210
|
...rest
|
|
3197
3211
|
};
|
|
3198
|
-
const classNames3 =
|
|
3212
|
+
const classNames3 = useClassNames41({
|
|
3199
3213
|
component: "DatePicker",
|
|
3200
3214
|
size: size2,
|
|
3201
3215
|
variant
|
|
3202
3216
|
});
|
|
3203
|
-
return /* @__PURE__ */
|
|
3217
|
+
return /* @__PURE__ */ jsxs25(
|
|
3204
3218
|
FieldBase,
|
|
3205
3219
|
{
|
|
3206
3220
|
as: DatePicker,
|
|
@@ -3255,11 +3269,11 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx73(
|
|
|
3255
3269
|
// src/Link/Link.tsx
|
|
3256
3270
|
import { forwardRef as forwardRef20 } from "react";
|
|
3257
3271
|
import { Link } from "react-aria-components";
|
|
3258
|
-
import { useClassNames as
|
|
3272
|
+
import { useClassNames as useClassNames42 } from "@marigold/system";
|
|
3259
3273
|
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3260
3274
|
var _Link = forwardRef20(
|
|
3261
3275
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
3262
|
-
const classNames3 =
|
|
3276
|
+
const classNames3 = useClassNames42({
|
|
3263
3277
|
component: "Link",
|
|
3264
3278
|
variant,
|
|
3265
3279
|
size: size2
|
|
@@ -3269,7 +3283,7 @@ var _Link = forwardRef20(
|
|
|
3269
3283
|
);
|
|
3270
3284
|
|
|
3271
3285
|
// src/List/List.tsx
|
|
3272
|
-
import { useClassNames as
|
|
3286
|
+
import { useClassNames as useClassNames43 } from "@marigold/system";
|
|
3273
3287
|
|
|
3274
3288
|
// src/List/Context.ts
|
|
3275
3289
|
import { createContext as createContext8, useContext as useContext16 } from "react";
|
|
@@ -3293,38 +3307,38 @@ var List = ({
|
|
|
3293
3307
|
...props
|
|
3294
3308
|
}) => {
|
|
3295
3309
|
const Component2 = as;
|
|
3296
|
-
const classNames3 =
|
|
3310
|
+
const classNames3 = useClassNames43({ component: "List", variant, size: size2 });
|
|
3297
3311
|
return /* @__PURE__ */ jsx76(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx76(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
3298
3312
|
};
|
|
3299
3313
|
List.Item = ListItem;
|
|
3300
3314
|
|
|
3301
3315
|
// src/Menu/Menu.tsx
|
|
3302
|
-
import { Menu, MenuTrigger } from "react-aria-components";
|
|
3303
|
-
import { useClassNames as
|
|
3316
|
+
import { Button as Button6, Menu, MenuTrigger } from "react-aria-components";
|
|
3317
|
+
import { useClassNames as useClassNames46 } from "@marigold/system";
|
|
3304
3318
|
|
|
3305
3319
|
// src/Menu/MenuItem.tsx
|
|
3306
3320
|
import { MenuItem } from "react-aria-components";
|
|
3307
|
-
import { useClassNames as
|
|
3321
|
+
import { useClassNames as useClassNames44 } from "@marigold/system";
|
|
3308
3322
|
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3309
3323
|
var _MenuItem = ({ children, ...props }) => {
|
|
3310
|
-
const classNames3 =
|
|
3324
|
+
const classNames3 = useClassNames44({ component: "Menu" });
|
|
3311
3325
|
return /* @__PURE__ */ jsx77(MenuItem, { ...props, className: classNames3.item, children });
|
|
3312
3326
|
};
|
|
3313
3327
|
|
|
3314
3328
|
// src/Menu/MenuSection.tsx
|
|
3315
3329
|
import { MenuSection } from "react-aria-components";
|
|
3316
|
-
import { useClassNames as
|
|
3317
|
-
import { jsx as jsx78, jsxs as
|
|
3330
|
+
import { useClassNames as useClassNames45 } from "@marigold/system";
|
|
3331
|
+
import { jsx as jsx78, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3318
3332
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
3319
|
-
const className =
|
|
3320
|
-
return /* @__PURE__ */
|
|
3333
|
+
const className = useClassNames45({ component: "Menu" });
|
|
3334
|
+
return /* @__PURE__ */ jsxs26(MenuSection, { ...props, children: [
|
|
3321
3335
|
/* @__PURE__ */ jsx78(_Header, { className: className.section, children: title }),
|
|
3322
3336
|
children
|
|
3323
3337
|
] });
|
|
3324
3338
|
};
|
|
3325
3339
|
|
|
3326
3340
|
// src/Menu/Menu.tsx
|
|
3327
|
-
import { jsx as jsx79, jsxs as
|
|
3341
|
+
import { jsx as jsx79, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3328
3342
|
var _Menu = ({
|
|
3329
3343
|
children,
|
|
3330
3344
|
label,
|
|
@@ -3336,9 +3350,17 @@ var _Menu = ({
|
|
|
3336
3350
|
"aria-label": ariaLabel,
|
|
3337
3351
|
...props
|
|
3338
3352
|
}) => {
|
|
3339
|
-
const classNames3 =
|
|
3340
|
-
return /* @__PURE__ */
|
|
3341
|
-
/* @__PURE__ */ jsx79(
|
|
3353
|
+
const classNames3 = useClassNames46({ component: "Menu", variant, size: size2 });
|
|
3354
|
+
return /* @__PURE__ */ jsxs27(MenuTrigger, { ...props, children: [
|
|
3355
|
+
/* @__PURE__ */ jsx79(
|
|
3356
|
+
Button6,
|
|
3357
|
+
{
|
|
3358
|
+
className: classNames3.button,
|
|
3359
|
+
"aria-label": ariaLabel,
|
|
3360
|
+
isDisabled: disabled,
|
|
3361
|
+
children: label
|
|
3362
|
+
}
|
|
3363
|
+
),
|
|
3342
3364
|
/* @__PURE__ */ jsx79(_Popover, { open, placement, children: /* @__PURE__ */ jsx79(Menu, { ...props, className: classNames3.container, children }) })
|
|
3343
3365
|
] });
|
|
3344
3366
|
};
|
|
@@ -3346,18 +3368,18 @@ _Menu.Item = _MenuItem;
|
|
|
3346
3368
|
_Menu.Section = _MenuSection;
|
|
3347
3369
|
|
|
3348
3370
|
// src/Menu/ActionMenu.tsx
|
|
3349
|
-
import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3350
|
-
import { SVG as SVG8, useClassNames as
|
|
3351
|
-
import { jsx as jsx80, jsxs as
|
|
3371
|
+
import { Button as Button7, Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3372
|
+
import { SVG as SVG8, useClassNames as useClassNames47 } from "@marigold/system";
|
|
3373
|
+
import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3352
3374
|
var ActionMenu = ({
|
|
3353
3375
|
variant,
|
|
3354
3376
|
size: size2,
|
|
3355
3377
|
disabled,
|
|
3356
3378
|
...props
|
|
3357
3379
|
}) => {
|
|
3358
|
-
const classNames3 =
|
|
3359
|
-
return /* @__PURE__ */
|
|
3360
|
-
/* @__PURE__ */ jsx80(
|
|
3380
|
+
const classNames3 = useClassNames47({ component: "Menu", variant, size: size2 });
|
|
3381
|
+
return /* @__PURE__ */ jsxs28(MenuTrigger2, { children: [
|
|
3382
|
+
/* @__PURE__ */ jsx80(Button7, { 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" }) }) }),
|
|
3361
3383
|
/* @__PURE__ */ jsx80(_Popover, { children: /* @__PURE__ */ jsx80(Menu2, { ...props, className: classNames3.container, children: props.children }) })
|
|
3362
3384
|
] });
|
|
3363
3385
|
};
|
|
@@ -3365,7 +3387,7 @@ var ActionMenu = ({
|
|
|
3365
3387
|
// src/SectionMessage/SectionMessage.tsx
|
|
3366
3388
|
import { useRef as useRef3, useState as useState2 } from "react";
|
|
3367
3389
|
import { useButton } from "@react-aria/button";
|
|
3368
|
-
import { cn as cn46, useClassNames as
|
|
3390
|
+
import { cn as cn46, useClassNames as useClassNames48 } from "@marigold/system";
|
|
3369
3391
|
|
|
3370
3392
|
// src/SectionMessage/Context.tsx
|
|
3371
3393
|
import { createContext as createContext9, useContext as useContext17 } from "react";
|
|
@@ -3391,7 +3413,7 @@ var SectionMessageTitle = ({ children }) => {
|
|
|
3391
3413
|
};
|
|
3392
3414
|
|
|
3393
3415
|
// src/SectionMessage/SectionMessage.tsx
|
|
3394
|
-
import { jsx as jsx83, jsxs as
|
|
3416
|
+
import { jsx as jsx83, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3395
3417
|
var icons = {
|
|
3396
3418
|
success: () => /* @__PURE__ */ jsx83(
|
|
3397
3419
|
"svg",
|
|
@@ -3468,7 +3490,7 @@ var SectionMessage = ({
|
|
|
3468
3490
|
...props
|
|
3469
3491
|
}) => {
|
|
3470
3492
|
const buttonRef = useRef3(null);
|
|
3471
|
-
const classNames3 =
|
|
3493
|
+
const classNames3 = useClassNames48({
|
|
3472
3494
|
component: "SectionMessage",
|
|
3473
3495
|
variant,
|
|
3474
3496
|
size: size2
|
|
@@ -3484,7 +3506,7 @@ var SectionMessage = ({
|
|
|
3484
3506
|
}
|
|
3485
3507
|
};
|
|
3486
3508
|
if (!isCurrentlyVisible) return null;
|
|
3487
|
-
return /* @__PURE__ */ jsx83(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx83(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs29(
|
|
3488
3510
|
"div",
|
|
3489
3511
|
{
|
|
3490
3512
|
role: variant === "error" ? "alert" : void 0,
|
|
@@ -3512,7 +3534,7 @@ SectionMessage.Content = SectionMessageContent;
|
|
|
3512
3534
|
|
|
3513
3535
|
// src/Multiselect/Multiselect.tsx
|
|
3514
3536
|
import {
|
|
3515
|
-
Button as
|
|
3537
|
+
Button as Button8,
|
|
3516
3538
|
ButtonContext,
|
|
3517
3539
|
FieldErrorContext as FieldErrorContext2,
|
|
3518
3540
|
InputContext,
|
|
@@ -3520,7 +3542,7 @@ import {
|
|
|
3520
3542
|
Input as _Input2
|
|
3521
3543
|
} from "react-aria-components";
|
|
3522
3544
|
|
|
3523
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3545
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
3524
3546
|
function _typeof(o) {
|
|
3525
3547
|
"@babel/helpers - typeof";
|
|
3526
3548
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -3530,7 +3552,7 @@ function _typeof(o) {
|
|
|
3530
3552
|
}, _typeof(o);
|
|
3531
3553
|
}
|
|
3532
3554
|
|
|
3533
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3555
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3534
3556
|
function toPrimitive(t, r) {
|
|
3535
3557
|
if ("object" != _typeof(t) || !t) return t;
|
|
3536
3558
|
var e = t[Symbol.toPrimitive];
|
|
@@ -3542,13 +3564,13 @@ function toPrimitive(t, r) {
|
|
|
3542
3564
|
return ("string" === r ? String : Number)(t);
|
|
3543
3565
|
}
|
|
3544
3566
|
|
|
3545
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3567
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
3546
3568
|
function toPropertyKey(t) {
|
|
3547
3569
|
var i = toPrimitive(t, "string");
|
|
3548
3570
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
3549
3571
|
}
|
|
3550
3572
|
|
|
3551
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3573
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3552
3574
|
function _defineProperty(e, r, t) {
|
|
3553
3575
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3554
3576
|
value: t,
|
|
@@ -3558,7 +3580,7 @@ function _defineProperty(e, r, t) {
|
|
|
3558
3580
|
}) : e[r] = t, e;
|
|
3559
3581
|
}
|
|
3560
3582
|
|
|
3561
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3583
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3562
3584
|
function ownKeys(e, r) {
|
|
3563
3585
|
var t = Object.keys(e);
|
|
3564
3586
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3581,12 +3603,12 @@ function _objectSpread2(e) {
|
|
|
3581
3603
|
return e;
|
|
3582
3604
|
}
|
|
3583
3605
|
|
|
3584
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3606
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
3585
3607
|
function _arrayWithHoles(r) {
|
|
3586
3608
|
if (Array.isArray(r)) return r;
|
|
3587
3609
|
}
|
|
3588
3610
|
|
|
3589
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3611
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
3590
3612
|
function _iterableToArrayLimit(r, l) {
|
|
3591
3613
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3592
3614
|
if (null != t) {
|
|
@@ -3609,14 +3631,14 @@ function _iterableToArrayLimit(r, l) {
|
|
|
3609
3631
|
}
|
|
3610
3632
|
}
|
|
3611
3633
|
|
|
3612
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3634
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
3613
3635
|
function _arrayLikeToArray(r, a) {
|
|
3614
3636
|
(null == a || a > r.length) && (a = r.length);
|
|
3615
3637
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
3616
3638
|
return n;
|
|
3617
3639
|
}
|
|
3618
3640
|
|
|
3619
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3641
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3620
3642
|
function _unsupportedIterableToArray(r, a) {
|
|
3621
3643
|
if (r) {
|
|
3622
3644
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -3625,17 +3647,17 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
3625
3647
|
}
|
|
3626
3648
|
}
|
|
3627
3649
|
|
|
3628
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3650
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
3629
3651
|
function _nonIterableRest() {
|
|
3630
3652
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3631
3653
|
}
|
|
3632
3654
|
|
|
3633
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3655
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
3634
3656
|
function _slicedToArray(r, e) {
|
|
3635
3657
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
3636
3658
|
}
|
|
3637
3659
|
|
|
3638
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3660
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
3639
3661
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3640
3662
|
if (null == r) return {};
|
|
3641
3663
|
var t = {};
|
|
@@ -3646,7 +3668,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
3646
3668
|
return t;
|
|
3647
3669
|
}
|
|
3648
3670
|
|
|
3649
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3671
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
3650
3672
|
function _objectWithoutProperties(e, t) {
|
|
3651
3673
|
if (null == e) return {};
|
|
3652
3674
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -3657,7 +3679,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
3657
3679
|
return i;
|
|
3658
3680
|
}
|
|
3659
3681
|
|
|
3660
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3682
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3661
3683
|
import { useState as useState3, useCallback } from "react";
|
|
3662
3684
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3663
3685
|
function useStateManager(_ref3) {
|
|
@@ -3704,7 +3726,7 @@ function useStateManager(_ref3) {
|
|
|
3704
3726
|
});
|
|
3705
3727
|
}
|
|
3706
3728
|
|
|
3707
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3729
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3708
3730
|
function _extends() {
|
|
3709
3731
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3710
3732
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3715,16 +3737,16 @@ function _extends() {
|
|
|
3715
3737
|
}, _extends.apply(null, arguments);
|
|
3716
3738
|
}
|
|
3717
3739
|
|
|
3718
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3740
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
3719
3741
|
import * as React11 from "react";
|
|
3720
3742
|
import { forwardRef as forwardRef23, useMemo as useMemo5 } from "react";
|
|
3721
3743
|
|
|
3722
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3744
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3723
3745
|
function _classCallCheck(a, n) {
|
|
3724
3746
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3725
3747
|
}
|
|
3726
3748
|
|
|
3727
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3749
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
3728
3750
|
function _defineProperties(e, r) {
|
|
3729
3751
|
for (var t = 0; t < r.length; t++) {
|
|
3730
3752
|
var o = r[t];
|
|
@@ -3737,14 +3759,14 @@ function _createClass(e, r, t) {
|
|
|
3737
3759
|
}), e;
|
|
3738
3760
|
}
|
|
3739
3761
|
|
|
3740
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3762
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
3741
3763
|
function _setPrototypeOf(t, e) {
|
|
3742
3764
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3743
3765
|
return t2.__proto__ = e2, t2;
|
|
3744
3766
|
}, _setPrototypeOf(t, e);
|
|
3745
3767
|
}
|
|
3746
3768
|
|
|
3747
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3769
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
3748
3770
|
function _inherits(t, e) {
|
|
3749
3771
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
3750
3772
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -3758,14 +3780,14 @@ function _inherits(t, e) {
|
|
|
3758
3780
|
}), e && _setPrototypeOf(t, e);
|
|
3759
3781
|
}
|
|
3760
3782
|
|
|
3761
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3783
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
3762
3784
|
function _getPrototypeOf(t) {
|
|
3763
3785
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
3764
3786
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
3765
3787
|
}, _getPrototypeOf(t);
|
|
3766
3788
|
}
|
|
3767
3789
|
|
|
3768
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3790
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
3769
3791
|
function _isNativeReflectConstruct() {
|
|
3770
3792
|
try {
|
|
3771
3793
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -3777,20 +3799,20 @@ function _isNativeReflectConstruct() {
|
|
|
3777
3799
|
})();
|
|
3778
3800
|
}
|
|
3779
3801
|
|
|
3780
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3802
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
3781
3803
|
function _assertThisInitialized(e) {
|
|
3782
3804
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3783
3805
|
return e;
|
|
3784
3806
|
}
|
|
3785
3807
|
|
|
3786
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3808
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
3787
3809
|
function _possibleConstructorReturn(t, e) {
|
|
3788
3810
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
3789
3811
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3790
3812
|
return _assertThisInitialized(t);
|
|
3791
3813
|
}
|
|
3792
3814
|
|
|
3793
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3815
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
3794
3816
|
function _createSuper(t) {
|
|
3795
3817
|
var r = _isNativeReflectConstruct();
|
|
3796
3818
|
return function() {
|
|
@@ -3803,31 +3825,31 @@ function _createSuper(t) {
|
|
|
3803
3825
|
};
|
|
3804
3826
|
}
|
|
3805
3827
|
|
|
3806
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3828
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
3807
3829
|
function _arrayWithoutHoles(r) {
|
|
3808
3830
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
3809
3831
|
}
|
|
3810
3832
|
|
|
3811
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3833
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
3812
3834
|
function _iterableToArray(r) {
|
|
3813
3835
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
3814
3836
|
}
|
|
3815
3837
|
|
|
3816
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3838
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
3817
3839
|
function _nonIterableSpread() {
|
|
3818
3840
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3819
3841
|
}
|
|
3820
3842
|
|
|
3821
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
3843
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
3822
3844
|
function _toConsumableArray(r) {
|
|
3823
3845
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
3824
3846
|
}
|
|
3825
3847
|
|
|
3826
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3848
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
3827
3849
|
import * as React10 from "react";
|
|
3828
|
-
import { useMemo as useMemo4, Fragment as
|
|
3850
|
+
import { useMemo as useMemo4, Fragment as Fragment9, useRef as useRef6, useCallback as useCallback3, useEffect as useEffect3, Component } from "react";
|
|
3829
3851
|
|
|
3830
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
3852
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.3_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
3831
3853
|
import * as React8 from "react";
|
|
3832
3854
|
import { useContext as useContext19, forwardRef as forwardRef22 } from "react";
|
|
3833
3855
|
|
|
@@ -5001,7 +5023,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
5001
5023
|
var useInsertionEffect2 = React7["useInsertionEffect"] ? React7["useInsertionEffect"] : false;
|
|
5002
5024
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
5003
5025
|
|
|
5004
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5026
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.3_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
5005
5027
|
var isDevelopment3 = false;
|
|
5006
5028
|
var isBrowser4 = typeof document !== "undefined";
|
|
5007
5029
|
var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
@@ -5105,7 +5127,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
5105
5127
|
});
|
|
5106
5128
|
var Emotion$1 = Emotion;
|
|
5107
5129
|
|
|
5108
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5130
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.3_react@19.1.0/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
5109
5131
|
import * as React9 from "react";
|
|
5110
5132
|
var import_extends2 = __toESM(require_extends());
|
|
5111
5133
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
@@ -5147,7 +5169,7 @@ function keyframes() {
|
|
|
5147
5169
|
};
|
|
5148
5170
|
}
|
|
5149
5171
|
|
|
5150
|
-
// ../../node_modules/.pnpm/@babel+runtime@7.27.
|
|
5172
|
+
// ../../node_modules/.pnpm/@babel+runtime@7.27.1/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
|
|
5151
5173
|
function _taggedTemplateLiteral(e, t) {
|
|
5152
5174
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
5153
5175
|
raw: {
|
|
@@ -5156,7 +5178,7 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
5156
5178
|
}));
|
|
5157
5179
|
}
|
|
5158
5180
|
|
|
5159
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
5181
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5160
5182
|
import { useContext as useContext21, useRef as useRef5, useState as useState4, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext11 } from "react";
|
|
5161
5183
|
import { createPortal } from "react-dom";
|
|
5162
5184
|
|
|
@@ -5557,12 +5579,12 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
5557
5579
|
};
|
|
5558
5580
|
}
|
|
5559
5581
|
|
|
5560
|
-
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.
|
|
5582
|
+
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.3_react@19.1.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
5561
5583
|
import { useLayoutEffect as useLayoutEffect2, useEffect as useEffect2 } from "react";
|
|
5562
5584
|
var isClient = typeof document !== "undefined";
|
|
5563
5585
|
var index = isClient ? useLayoutEffect2 : useEffect2;
|
|
5564
5586
|
|
|
5565
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
5587
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5566
5588
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5567
5589
|
var noop = function noop2() {
|
|
5568
5590
|
};
|
|
@@ -6636,7 +6658,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6636
6658
|
return memoized;
|
|
6637
6659
|
}
|
|
6638
6660
|
|
|
6639
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
6661
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
6640
6662
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6641
6663
|
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).";
|
|
6642
6664
|
}
|
|
@@ -6785,7 +6807,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6785
6807
|
}
|
|
6786
6808
|
return guidanceMsg;
|
|
6787
6809
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
6788
|
-
var ScreenReaderText = jsx84(
|
|
6810
|
+
var ScreenReaderText = jsx84(Fragment9, null, jsx84("span", {
|
|
6789
6811
|
id: "aria-selection"
|
|
6790
6812
|
}, ariaSelected), jsx84("span", {
|
|
6791
6813
|
id: "aria-focused"
|
|
@@ -6794,7 +6816,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6794
6816
|
}, ariaResults), jsx84("span", {
|
|
6795
6817
|
id: "aria-guidance"
|
|
6796
6818
|
}, ariaGuidance));
|
|
6797
|
-
return jsx84(
|
|
6819
|
+
return jsx84(Fragment9, null, jsx84(A11yText$1, {
|
|
6798
6820
|
id
|
|
6799
6821
|
}, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
|
|
6800
6822
|
"aria-live": ariaLive,
|
|
@@ -7351,7 +7373,7 @@ function ScrollManager(_ref3) {
|
|
|
7351
7373
|
setScrollCaptureTarget(element);
|
|
7352
7374
|
setScrollLockTarget(element);
|
|
7353
7375
|
};
|
|
7354
|
-
return jsx84(
|
|
7376
|
+
return jsx84(Fragment9, null, lockEnabled && jsx84("div", {
|
|
7355
7377
|
onClick: blurSelectInput,
|
|
7356
7378
|
css: _ref2$1
|
|
7357
7379
|
}), children(targetRef));
|
|
@@ -8932,7 +8954,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8932
8954
|
}(Component);
|
|
8933
8955
|
Select.defaultProps = defaultProps;
|
|
8934
8956
|
|
|
8935
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
8957
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
8936
8958
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
8937
8959
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
8938
8960
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -9017,8 +9039,8 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
9017
9039
|
|
|
9018
9040
|
// src/Multiselect/Multiselect.tsx
|
|
9019
9041
|
import { useId } from "@react-aria/utils";
|
|
9020
|
-
import { cn as cn47, useClassNames as
|
|
9021
|
-
import { jsx as jsx86, jsxs as
|
|
9042
|
+
import { cn as cn47, useClassNames as useClassNames49 } from "@marigold/system";
|
|
9043
|
+
import { jsx as jsx86, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9022
9044
|
var propsToBeRemoved = [
|
|
9023
9045
|
"clearValue",
|
|
9024
9046
|
"getStyles",
|
|
@@ -9055,7 +9077,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
9055
9077
|
);
|
|
9056
9078
|
};
|
|
9057
9079
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
9058
|
-
return /* @__PURE__ */ jsx86(
|
|
9080
|
+
return /* @__PURE__ */ jsx86(Button8, { 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" }) }) });
|
|
9059
9081
|
};
|
|
9060
9082
|
var getClassNames = (classNames3) => ({
|
|
9061
9083
|
control: () => cn47(
|
|
@@ -9089,7 +9111,7 @@ var Multiselect = ({
|
|
|
9089
9111
|
onSelectionChange,
|
|
9090
9112
|
...rest
|
|
9091
9113
|
}) => {
|
|
9092
|
-
const classNames3 =
|
|
9114
|
+
const classNames3 = useClassNames49({
|
|
9093
9115
|
component: "MultiSelect",
|
|
9094
9116
|
size: size2,
|
|
9095
9117
|
variant
|
|
@@ -9137,7 +9159,7 @@ var Multiselect = ({
|
|
|
9137
9159
|
}
|
|
9138
9160
|
]
|
|
9139
9161
|
],
|
|
9140
|
-
children: /* @__PURE__ */
|
|
9162
|
+
children: /* @__PURE__ */ jsxs30(
|
|
9141
9163
|
"div",
|
|
9142
9164
|
{
|
|
9143
9165
|
className: cn47(classNames3.field, "group/field"),
|
|
@@ -9160,9 +9182,10 @@ var Multiselect = ({
|
|
|
9160
9182
|
zIndex: 1
|
|
9161
9183
|
}),
|
|
9162
9184
|
// Return empty object to reset react-select styles
|
|
9163
|
-
valueContainer: (base) => ({ ...base
|
|
9185
|
+
valueContainer: (base) => ({ ...base }),
|
|
9164
9186
|
container: (base) => ({ ...base, pointerEvents: "auto" }),
|
|
9165
9187
|
menuList: () => ({}),
|
|
9188
|
+
// eslint-disable-next-line no-empty-pattern
|
|
9166
9189
|
option: ({}) => ({}),
|
|
9167
9190
|
multiValue: () => ({}),
|
|
9168
9191
|
multiValueLabel: () => ({})
|
|
@@ -9180,6 +9203,7 @@ var Multiselect = ({
|
|
|
9180
9203
|
components: {
|
|
9181
9204
|
Input: Input4,
|
|
9182
9205
|
MultiValueRemove: MultiValueRemove2,
|
|
9206
|
+
// eslint-disable-next-line react/prop-types
|
|
9183
9207
|
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx86(
|
|
9184
9208
|
"button",
|
|
9185
9209
|
{
|
|
@@ -9203,10 +9227,10 @@ var Multiselect = ({
|
|
|
9203
9227
|
// src/NumberField/NumberField.tsx
|
|
9204
9228
|
import { forwardRef as forwardRef24 } from "react";
|
|
9205
9229
|
import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
|
|
9206
|
-
import { cn as cn49, useClassNames as
|
|
9230
|
+
import { cn as cn49, useClassNames as useClassNames50 } from "@marigold/system";
|
|
9207
9231
|
|
|
9208
9232
|
// src/NumberField/StepButton.tsx
|
|
9209
|
-
import { Button as
|
|
9233
|
+
import { Button as Button9 } from "react-aria-components";
|
|
9210
9234
|
import { cn as cn48 } from "@marigold/system";
|
|
9211
9235
|
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
9212
9236
|
var Plus = () => /* @__PURE__ */ jsx87("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx87(
|
|
@@ -9228,7 +9252,7 @@ var Minus = () => /* @__PURE__ */ jsx87("svg", { width: 16, height: 16, viewBox:
|
|
|
9228
9252
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
9229
9253
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
9230
9254
|
return /* @__PURE__ */ jsx87(
|
|
9231
|
-
|
|
9255
|
+
Button9,
|
|
9232
9256
|
{
|
|
9233
9257
|
className: cn48(
|
|
9234
9258
|
[
|
|
@@ -9244,7 +9268,7 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
9244
9268
|
};
|
|
9245
9269
|
|
|
9246
9270
|
// src/NumberField/NumberField.tsx
|
|
9247
|
-
import { jsx as jsx88, jsxs as
|
|
9271
|
+
import { jsx as jsx88, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9248
9272
|
var _NumberField = forwardRef24(
|
|
9249
9273
|
({
|
|
9250
9274
|
variant,
|
|
@@ -9256,7 +9280,7 @@ var _NumberField = forwardRef24(
|
|
|
9256
9280
|
hideStepper,
|
|
9257
9281
|
...rest
|
|
9258
9282
|
}, ref) => {
|
|
9259
|
-
const classNames3 =
|
|
9283
|
+
const classNames3 = useClassNames50({
|
|
9260
9284
|
component: "NumberField",
|
|
9261
9285
|
size: size2,
|
|
9262
9286
|
variant
|
|
@@ -9276,7 +9300,7 @@ var _NumberField = forwardRef24(
|
|
|
9276
9300
|
...props,
|
|
9277
9301
|
"data-readonly": readOnly ? "true" : void 0,
|
|
9278
9302
|
"data-stepper": showStepper ? "true" : void 0,
|
|
9279
|
-
children: /* @__PURE__ */
|
|
9303
|
+
children: /* @__PURE__ */ jsxs31(Group4, { className: cn49("flex items-stretch", classNames3.group), children: [
|
|
9280
9304
|
showStepper && /* @__PURE__ */ jsx88(
|
|
9281
9305
|
_StepButton,
|
|
9282
9306
|
{
|
|
@@ -9309,7 +9333,7 @@ var _NumberField = forwardRef24(
|
|
|
9309
9333
|
// src/Pagination/Pagination.tsx
|
|
9310
9334
|
import { useEffect as useEffect4, useRef as useRef9, useState as useState5 } from "react";
|
|
9311
9335
|
import { FocusScope as FocusScope2, useFocusManager } from "@react-aria/focus";
|
|
9312
|
-
import { useClassNames as
|
|
9336
|
+
import { useClassNames as useClassNames53 } from "@marigold/system";
|
|
9313
9337
|
|
|
9314
9338
|
// src/Pagination/Ellipsis.tsx
|
|
9315
9339
|
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
@@ -9327,11 +9351,11 @@ var Ellipsis = () => {
|
|
|
9327
9351
|
// src/Pagination/NavigationButton.tsx
|
|
9328
9352
|
import { useRef as useRef7 } from "react";
|
|
9329
9353
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
9330
|
-
import { cn as cn50, useClassNames as
|
|
9331
|
-
import { jsxs as
|
|
9354
|
+
import { cn as cn50, useClassNames as useClassNames51 } from "@marigold/system";
|
|
9355
|
+
import { jsxs as jsxs32 } from "react/jsx-runtime";
|
|
9332
9356
|
var NavigationButton = (props) => {
|
|
9333
9357
|
const ref = useRef7(null);
|
|
9334
|
-
const classNames3 =
|
|
9358
|
+
const classNames3 = useClassNames51({
|
|
9335
9359
|
component: "Pagination"
|
|
9336
9360
|
});
|
|
9337
9361
|
let { buttonProps } = useButton2(props, ref);
|
|
@@ -9344,7 +9368,7 @@ var NavigationButton = (props) => {
|
|
|
9344
9368
|
position: position2,
|
|
9345
9369
|
...rest
|
|
9346
9370
|
} = props;
|
|
9347
|
-
return /* @__PURE__ */
|
|
9371
|
+
return /* @__PURE__ */ jsxs32(
|
|
9348
9372
|
"button",
|
|
9349
9373
|
{
|
|
9350
9374
|
ref,
|
|
@@ -9365,11 +9389,11 @@ var NavigationButton = (props) => {
|
|
|
9365
9389
|
// src/Pagination/PageButton.tsx
|
|
9366
9390
|
import { useRef as useRef8 } from "react";
|
|
9367
9391
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
9368
|
-
import { useClassNames as
|
|
9392
|
+
import { useClassNames as useClassNames52 } from "@marigold/system";
|
|
9369
9393
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
9370
9394
|
var PageButton = (props) => {
|
|
9371
9395
|
const ref = useRef8(null);
|
|
9372
|
-
const classNames3 =
|
|
9396
|
+
const classNames3 = useClassNames52({
|
|
9373
9397
|
component: "Pagination"
|
|
9374
9398
|
});
|
|
9375
9399
|
let { buttonProps } = useButton3(props, ref);
|
|
@@ -9421,7 +9445,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9421
9445
|
};
|
|
9422
9446
|
|
|
9423
9447
|
// src/Pagination/Pagination.tsx
|
|
9424
|
-
import { Fragment as
|
|
9448
|
+
import { Fragment as Fragment10, jsx as jsx91, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
9425
9449
|
var InnerPagination = ({
|
|
9426
9450
|
currentPage,
|
|
9427
9451
|
pageSize,
|
|
@@ -9448,7 +9472,7 @@ var InnerPagination = ({
|
|
|
9448
9472
|
onChange2(newPage);
|
|
9449
9473
|
}
|
|
9450
9474
|
};
|
|
9451
|
-
const classNames3 =
|
|
9475
|
+
const classNames3 = useClassNames53({ component: "Pagination" });
|
|
9452
9476
|
const handleKeyDown = (onEnter) => (e) => {
|
|
9453
9477
|
if (e.key === "ArrowRight") {
|
|
9454
9478
|
e.preventDefault();
|
|
@@ -9461,7 +9485,7 @@ var InnerPagination = ({
|
|
|
9461
9485
|
onEnter();
|
|
9462
9486
|
}
|
|
9463
9487
|
};
|
|
9464
|
-
return /* @__PURE__ */
|
|
9488
|
+
return /* @__PURE__ */ jsxs33(Fragment10, { children: [
|
|
9465
9489
|
/* @__PURE__ */ jsx91(
|
|
9466
9490
|
NavigationButton,
|
|
9467
9491
|
{
|
|
@@ -9535,7 +9559,7 @@ import {
|
|
|
9535
9559
|
forwardRef as forwardRef25
|
|
9536
9560
|
} from "react";
|
|
9537
9561
|
import { Radio } from "react-aria-components";
|
|
9538
|
-
import { cn as cn52, useClassNames as
|
|
9562
|
+
import { cn as cn52, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9539
9563
|
|
|
9540
9564
|
// src/Radio/Context.ts
|
|
9541
9565
|
import { createContext as createContext12, useContext as useContext22 } from "react";
|
|
@@ -9546,7 +9570,7 @@ var useRadioGroupContext = () => useContext22(RadioGroupContext);
|
|
|
9546
9570
|
|
|
9547
9571
|
// src/Radio/RadioGroup.tsx
|
|
9548
9572
|
import { RadioGroup } from "react-aria-components";
|
|
9549
|
-
import { cn as cn51, useClassNames as
|
|
9573
|
+
import { cn as cn51, useClassNames as useClassNames54 } from "@marigold/system";
|
|
9550
9574
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
9551
9575
|
var _RadioGroup = ({
|
|
9552
9576
|
variant,
|
|
@@ -9563,7 +9587,7 @@ var _RadioGroup = ({
|
|
|
9563
9587
|
width,
|
|
9564
9588
|
...rest
|
|
9565
9589
|
}) => {
|
|
9566
|
-
const classNames3 =
|
|
9590
|
+
const classNames3 = useClassNames54({ component: "Radio", variant, size: size2 });
|
|
9567
9591
|
const props = {
|
|
9568
9592
|
isDisabled: disabled,
|
|
9569
9593
|
isReadOnly: readOnly,
|
|
@@ -9601,7 +9625,7 @@ var _RadioGroup = ({
|
|
|
9601
9625
|
};
|
|
9602
9626
|
|
|
9603
9627
|
// src/Radio/Radio.tsx
|
|
9604
|
-
import { Fragment as
|
|
9628
|
+
import { Fragment as Fragment11, jsx as jsx93, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9605
9629
|
var Dot = () => /* @__PURE__ */ jsx93("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx93("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
9606
9630
|
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx93(
|
|
9607
9631
|
"div",
|
|
@@ -9618,7 +9642,7 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx93(
|
|
|
9618
9642
|
var _Radio = forwardRef25(
|
|
9619
9643
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9620
9644
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9621
|
-
const classNames3 =
|
|
9645
|
+
const classNames3 = useClassNames55({
|
|
9622
9646
|
component: "Radio",
|
|
9623
9647
|
variant: variant || props.variant,
|
|
9624
9648
|
size: size2 || props.size
|
|
@@ -9636,7 +9660,7 @@ var _Radio = forwardRef25(
|
|
|
9636
9660
|
value,
|
|
9637
9661
|
isDisabled: disabled,
|
|
9638
9662
|
...props,
|
|
9639
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
9663
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs34(Fragment11, { children: [
|
|
9640
9664
|
/* @__PURE__ */ jsx93(
|
|
9641
9665
|
Icon3,
|
|
9642
9666
|
{
|
|
@@ -9681,8 +9705,8 @@ var _SearchField = forwardRef26(
|
|
|
9681
9705
|
// src/Select/Select.tsx
|
|
9682
9706
|
import { forwardRef as forwardRef27 } from "react";
|
|
9683
9707
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9684
|
-
import { cn as cn53, useClassNames as
|
|
9685
|
-
import { jsx as jsx95, jsxs as
|
|
9708
|
+
import { cn as cn53, useClassNames as useClassNames56 } from "@marigold/system";
|
|
9709
|
+
import { jsx as jsx95, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
9686
9710
|
var _Select = forwardRef27(
|
|
9687
9711
|
({
|
|
9688
9712
|
disabled,
|
|
@@ -9703,9 +9727,9 @@ var _Select = forwardRef27(
|
|
|
9703
9727
|
onSelectionChange: onChange2,
|
|
9704
9728
|
...rest
|
|
9705
9729
|
};
|
|
9706
|
-
const classNames3 =
|
|
9707
|
-
return /* @__PURE__ */
|
|
9708
|
-
/* @__PURE__ */
|
|
9730
|
+
const classNames3 = useClassNames56({ component: "Select", variant, size: size2 });
|
|
9731
|
+
return /* @__PURE__ */ jsxs35(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
|
|
9732
|
+
/* @__PURE__ */ jsxs35(
|
|
9709
9733
|
IconButton,
|
|
9710
9734
|
{
|
|
9711
9735
|
className: cn53(
|
|
@@ -9730,7 +9754,7 @@ import {
|
|
|
9730
9754
|
forwardRef as forwardRef29
|
|
9731
9755
|
} from "react";
|
|
9732
9756
|
import { GridList as SelectList } from "react-aria-components";
|
|
9733
|
-
import { cn as cn55, useClassNames as
|
|
9757
|
+
import { cn as cn55, useClassNames as useClassNames57 } from "@marigold/system";
|
|
9734
9758
|
|
|
9735
9759
|
// src/SelectList/Context.ts
|
|
9736
9760
|
import { createContext as createContext13, useContext as useContext23 } from "react";
|
|
@@ -9743,7 +9767,25 @@ var useSelectListContext = () => useContext23(SelectListContext);
|
|
|
9743
9767
|
import { forwardRef as forwardRef28 } from "react";
|
|
9744
9768
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
9745
9769
|
import { cn as cn54 } from "@marigold/system";
|
|
9746
|
-
import { jsx as jsx96, jsxs as
|
|
9770
|
+
import { Fragment as Fragment12, jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9771
|
+
var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx96("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx96(
|
|
9772
|
+
"path",
|
|
9773
|
+
{
|
|
9774
|
+
fill: "currentColor",
|
|
9775
|
+
stroke: "none",
|
|
9776
|
+
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"
|
|
9777
|
+
}
|
|
9778
|
+
) });
|
|
9779
|
+
var SelectionIndicator = ({ selectionMode }) => {
|
|
9780
|
+
switch (selectionMode) {
|
|
9781
|
+
case "multiple": {
|
|
9782
|
+
return /* @__PURE__ */ jsx96(_Checkbox, { slot: "selection" });
|
|
9783
|
+
}
|
|
9784
|
+
case "single": {
|
|
9785
|
+
return /* @__PURE__ */ jsx96(CheckMark3, { className: "invisible hidden" });
|
|
9786
|
+
}
|
|
9787
|
+
}
|
|
9788
|
+
};
|
|
9747
9789
|
var _SelectListItem = forwardRef28(
|
|
9748
9790
|
({ children, ...props }, ref) => {
|
|
9749
9791
|
let textValue = typeof children === "string" ? children : void 0;
|
|
@@ -9753,10 +9795,10 @@ var _SelectListItem = forwardRef28(
|
|
|
9753
9795
|
{
|
|
9754
9796
|
textValue,
|
|
9755
9797
|
...props,
|
|
9756
|
-
className: cn54("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.
|
|
9798
|
+
className: cn54("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.item),
|
|
9757
9799
|
ref,
|
|
9758
|
-
children: ({ selectionMode }) => /* @__PURE__ */
|
|
9759
|
-
|
|
9800
|
+
children: ({ selectionMode }) => /* @__PURE__ */ jsxs36(Fragment12, { children: [
|
|
9801
|
+
/* @__PURE__ */ jsx96(SelectionIndicator, { selectionMode }),
|
|
9760
9802
|
children
|
|
9761
9803
|
] })
|
|
9762
9804
|
}
|
|
@@ -9768,7 +9810,7 @@ var _SelectListItem = forwardRef28(
|
|
|
9768
9810
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
9769
9811
|
var _SelectList = forwardRef29(
|
|
9770
9812
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9771
|
-
const classNames3 =
|
|
9813
|
+
const classNames3 = useClassNames57({ component: "ListBox" });
|
|
9772
9814
|
const props = {
|
|
9773
9815
|
onSelectionChange: onChange2,
|
|
9774
9816
|
...rest
|
|
@@ -9819,9 +9861,9 @@ import {
|
|
|
9819
9861
|
import {
|
|
9820
9862
|
cn as cn57,
|
|
9821
9863
|
width as twWidth3,
|
|
9822
|
-
useClassNames as
|
|
9864
|
+
useClassNames as useClassNames58
|
|
9823
9865
|
} from "@marigold/system";
|
|
9824
|
-
import { Fragment as
|
|
9866
|
+
import { Fragment as Fragment13, jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
9825
9867
|
var _Slider = forwardRef30(
|
|
9826
9868
|
({
|
|
9827
9869
|
thumbLabels,
|
|
@@ -9832,7 +9874,7 @@ var _Slider = forwardRef30(
|
|
|
9832
9874
|
label,
|
|
9833
9875
|
...rest
|
|
9834
9876
|
}, ref) => {
|
|
9835
|
-
const classNames3 =
|
|
9877
|
+
const classNames3 = useClassNames58({
|
|
9836
9878
|
component: "Slider",
|
|
9837
9879
|
variant,
|
|
9838
9880
|
size: size2
|
|
@@ -9841,7 +9883,7 @@ var _Slider = forwardRef30(
|
|
|
9841
9883
|
isDisabled: disabled,
|
|
9842
9884
|
...rest
|
|
9843
9885
|
};
|
|
9844
|
-
return /* @__PURE__ */
|
|
9886
|
+
return /* @__PURE__ */ jsxs37(
|
|
9845
9887
|
FieldBase,
|
|
9846
9888
|
{
|
|
9847
9889
|
as: Slider,
|
|
@@ -9853,13 +9895,13 @@ var _Slider = forwardRef30(
|
|
|
9853
9895
|
ref,
|
|
9854
9896
|
...props,
|
|
9855
9897
|
children: [
|
|
9856
|
-
/* @__PURE__ */ jsx99(_Label, { children:
|
|
9898
|
+
label && /* @__PURE__ */ jsx99(_Label, { children: label }),
|
|
9857
9899
|
/* @__PURE__ */ jsx99(SliderOutput, { className: cn57("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
9858
9900
|
/* @__PURE__ */ jsx99(
|
|
9859
9901
|
SliderTrack,
|
|
9860
9902
|
{
|
|
9861
9903
|
className: cn57("relative col-span-2 h-2 w-full", classNames3.track),
|
|
9862
|
-
children: ({ state }) => /* @__PURE__ */
|
|
9904
|
+
children: ({ state }) => /* @__PURE__ */ jsxs37(Fragment13, { children: [
|
|
9863
9905
|
/* @__PURE__ */ jsx99(
|
|
9864
9906
|
"div",
|
|
9865
9907
|
{
|
|
@@ -9939,9 +9981,9 @@ import { Switch } from "react-aria-components";
|
|
|
9939
9981
|
import {
|
|
9940
9982
|
cn as cn59,
|
|
9941
9983
|
width as twWidth4,
|
|
9942
|
-
useClassNames as
|
|
9984
|
+
useClassNames as useClassNames59
|
|
9943
9985
|
} from "@marigold/system";
|
|
9944
|
-
import { jsx as jsx102, jsxs as
|
|
9986
|
+
import { jsx as jsx102, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
9945
9987
|
var _Switch = forwardRef31(
|
|
9946
9988
|
({
|
|
9947
9989
|
variant,
|
|
@@ -9953,14 +9995,14 @@ var _Switch = forwardRef31(
|
|
|
9953
9995
|
readOnly,
|
|
9954
9996
|
...rest
|
|
9955
9997
|
}, ref) => {
|
|
9956
|
-
const classNames3 =
|
|
9998
|
+
const classNames3 = useClassNames59({ component: "Switch", size: size2, variant });
|
|
9957
9999
|
const props = {
|
|
9958
10000
|
isDisabled: disabled,
|
|
9959
10001
|
isReadOnly: readOnly,
|
|
9960
10002
|
isSelected: selected,
|
|
9961
10003
|
...rest
|
|
9962
10004
|
};
|
|
9963
|
-
return /* @__PURE__ */
|
|
10005
|
+
return /* @__PURE__ */ jsxs38(
|
|
9964
10006
|
Switch,
|
|
9965
10007
|
{
|
|
9966
10008
|
...props,
|
|
@@ -9972,7 +10014,7 @@ var _Switch = forwardRef31(
|
|
|
9972
10014
|
classNames3.container
|
|
9973
10015
|
),
|
|
9974
10016
|
children: [
|
|
9975
|
-
|
|
10017
|
+
label && /* @__PURE__ */ jsx102(_Label, { elementType: "span", children: label }),
|
|
9976
10018
|
/* @__PURE__ */ jsx102("div", { className: "relative", children: /* @__PURE__ */ jsx102("div", { className: classNames3.track, children: /* @__PURE__ */ jsx102("div", { className: classNames3.thumb }) }) })
|
|
9977
10019
|
]
|
|
9978
10020
|
}
|
|
@@ -9991,7 +10033,7 @@ import {
|
|
|
9991
10033
|
Row,
|
|
9992
10034
|
useTableState
|
|
9993
10035
|
} from "@react-stately/table";
|
|
9994
|
-
import { cn as cn66, useClassNames as
|
|
10036
|
+
import { cn as cn66, useClassNames as useClassNames61 } from "@marigold/system";
|
|
9995
10037
|
|
|
9996
10038
|
// src/Table/Context.tsx
|
|
9997
10039
|
import { createContext as createContext14, useContext as useContext24 } from "react";
|
|
@@ -10013,7 +10055,7 @@ var TableBody = ({
|
|
|
10013
10055
|
"td",
|
|
10014
10056
|
{
|
|
10015
10057
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
10016
|
-
colSpan: state.collection.
|
|
10058
|
+
colSpan: state.collection.columnCount,
|
|
10017
10059
|
role: "rowheader",
|
|
10018
10060
|
children: emptyState()
|
|
10019
10061
|
}
|
|
@@ -10128,7 +10170,7 @@ import { useHover } from "@react-aria/interactions";
|
|
|
10128
10170
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
10129
10171
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
10130
10172
|
import { cn as cn62, width as twWidth5, useStateProps as useStateProps3 } from "@marigold/system";
|
|
10131
|
-
import { jsx as jsx106, jsxs as
|
|
10173
|
+
import { jsx as jsx106, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
10132
10174
|
var TableColumnHeader = ({
|
|
10133
10175
|
column: column2,
|
|
10134
10176
|
width = "auto",
|
|
@@ -10150,7 +10192,7 @@ var TableColumnHeader = ({
|
|
|
10150
10192
|
hover: isHovered,
|
|
10151
10193
|
focusVisible: isFocusVisible
|
|
10152
10194
|
});
|
|
10153
|
-
return /* @__PURE__ */
|
|
10195
|
+
return /* @__PURE__ */ jsxs39(
|
|
10154
10196
|
"th",
|
|
10155
10197
|
{
|
|
10156
10198
|
colSpan: column2.colspan,
|
|
@@ -10210,13 +10252,13 @@ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
|
10210
10252
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
10211
10253
|
import { useTableRow } from "@react-aria/table";
|
|
10212
10254
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10213
|
-
import { cn as cn64, useClassNames as
|
|
10255
|
+
import { cn as cn64, useClassNames as useClassNames60, useStateProps as useStateProps4 } from "@marigold/system";
|
|
10214
10256
|
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
10215
10257
|
var TableRow = ({ children, row }) => {
|
|
10216
10258
|
const ref = useRef14(null);
|
|
10217
10259
|
const { interactive, state, ...ctx } = useTableContext();
|
|
10218
10260
|
const { variant, size: size2 } = row.props;
|
|
10219
|
-
const classNames3 =
|
|
10261
|
+
const classNames3 = useClassNames60({
|
|
10220
10262
|
component: "Table",
|
|
10221
10263
|
variant: variant || ctx.variant,
|
|
10222
10264
|
size: size2 || ctx.size
|
|
@@ -10308,7 +10350,7 @@ var TableSelectAllCell = ({
|
|
|
10308
10350
|
};
|
|
10309
10351
|
|
|
10310
10352
|
// src/Table/Table.tsx
|
|
10311
|
-
import { jsx as jsx111, jsxs as
|
|
10353
|
+
import { jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10312
10354
|
var Table = ({
|
|
10313
10355
|
variant,
|
|
10314
10356
|
size: size2,
|
|
@@ -10331,7 +10373,7 @@ var Table = ({
|
|
|
10331
10373
|
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
10332
10374
|
}
|
|
10333
10375
|
const { gridProps } = useTable(props, state, tableRef);
|
|
10334
|
-
const classNames3 =
|
|
10376
|
+
const classNames3 = useClassNames61({
|
|
10335
10377
|
component: "Table",
|
|
10336
10378
|
variant,
|
|
10337
10379
|
size: size2
|
|
@@ -10341,7 +10383,7 @@ var Table = ({
|
|
|
10341
10383
|
TableContext.Provider,
|
|
10342
10384
|
{
|
|
10343
10385
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
10344
|
-
children: /* @__PURE__ */
|
|
10386
|
+
children: /* @__PURE__ */ jsxs40(
|
|
10345
10387
|
"table",
|
|
10346
10388
|
{
|
|
10347
10389
|
ref: tableRef,
|
|
@@ -10383,7 +10425,7 @@ var Table = ({
|
|
|
10383
10425
|
},
|
|
10384
10426
|
headerRow.key
|
|
10385
10427
|
)) }),
|
|
10386
|
-
/* @__PURE__ */
|
|
10428
|
+
/* @__PURE__ */ jsxs40(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10387
10429
|
...collection.rows.map(
|
|
10388
10430
|
(row) => row.type === "item" && /* @__PURE__ */ jsx111(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10389
10431
|
var _a, _b;
|
|
@@ -10421,7 +10463,7 @@ import {
|
|
|
10421
10463
|
textAlign as textAlign2,
|
|
10422
10464
|
textSize,
|
|
10423
10465
|
textStyle,
|
|
10424
|
-
useClassNames as
|
|
10466
|
+
useClassNames as useClassNames62
|
|
10425
10467
|
} from "@marigold/system";
|
|
10426
10468
|
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
10427
10469
|
var _Text = ({
|
|
@@ -10437,7 +10479,7 @@ var _Text = ({
|
|
|
10437
10479
|
as = "div",
|
|
10438
10480
|
...props
|
|
10439
10481
|
}) => {
|
|
10440
|
-
const classNames3 =
|
|
10482
|
+
const classNames3 = useClassNames62({
|
|
10441
10483
|
component: "Text",
|
|
10442
10484
|
variant,
|
|
10443
10485
|
size: size2
|
|
@@ -10468,7 +10510,7 @@ var _Text = ({
|
|
|
10468
10510
|
// src/TextArea/TextArea.tsx
|
|
10469
10511
|
import { forwardRef as forwardRef32 } from "react";
|
|
10470
10512
|
import { TextArea, TextField } from "react-aria-components";
|
|
10471
|
-
import { useClassNames as
|
|
10513
|
+
import { useClassNames as useClassNames63 } from "@marigold/system";
|
|
10472
10514
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
10473
10515
|
var _TextArea = forwardRef32(
|
|
10474
10516
|
({
|
|
@@ -10481,7 +10523,7 @@ var _TextArea = forwardRef32(
|
|
|
10481
10523
|
rows,
|
|
10482
10524
|
...rest
|
|
10483
10525
|
}, ref) => {
|
|
10484
|
-
const classNames3 =
|
|
10526
|
+
const classNames3 = useClassNames63({ component: "TextArea", variant, size: size2 });
|
|
10485
10527
|
const props = {
|
|
10486
10528
|
isDisabled: disabled,
|
|
10487
10529
|
isReadOnly: readOnly,
|
|
@@ -10543,7 +10585,7 @@ var Tiles = ({
|
|
|
10543
10585
|
|
|
10544
10586
|
// src/Tooltip/Tooltip.tsx
|
|
10545
10587
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
10546
|
-
import { cn as cn69, useClassNames as
|
|
10588
|
+
import { cn as cn69, useClassNames as useClassNames64 } from "@marigold/system";
|
|
10547
10589
|
|
|
10548
10590
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10549
10591
|
import { TooltipTrigger } from "react-aria-components";
|
|
@@ -10565,15 +10607,15 @@ var _TooltipTrigger = ({
|
|
|
10565
10607
|
};
|
|
10566
10608
|
|
|
10567
10609
|
// src/Tooltip/Tooltip.tsx
|
|
10568
|
-
import { jsx as jsx117, jsxs as
|
|
10610
|
+
import { jsx as jsx117, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10569
10611
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10570
10612
|
const props = {
|
|
10571
10613
|
...rest,
|
|
10572
10614
|
isOpen: open
|
|
10573
10615
|
};
|
|
10574
|
-
const classNames3 =
|
|
10616
|
+
const classNames3 = useClassNames64({ component: "Tooltip", variant, size: size2 });
|
|
10575
10617
|
const portal = usePortalContainer();
|
|
10576
|
-
return /* @__PURE__ */
|
|
10618
|
+
return /* @__PURE__ */ jsxs41(
|
|
10577
10619
|
Tooltip,
|
|
10578
10620
|
{
|
|
10579
10621
|
...props,
|
|
@@ -10590,51 +10632,79 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10590
10632
|
|
|
10591
10633
|
// src/TagGroup/Tag.tsx
|
|
10592
10634
|
import { Tag } from "react-aria-components";
|
|
10593
|
-
import { cn as cn70, useClassNames as
|
|
10635
|
+
import { cn as cn70, useClassNames as useClassNames66 } from "@marigold/system";
|
|
10594
10636
|
|
|
10595
10637
|
// src/TagGroup/TagGroup.tsx
|
|
10596
10638
|
import { TagGroup, TagList } from "react-aria-components";
|
|
10597
|
-
import { useClassNames as
|
|
10639
|
+
import { useClassNames as useClassNames65 } from "@marigold/system";
|
|
10640
|
+
|
|
10641
|
+
// src/TagGroup/TagGroupHiddenInput.tsx
|
|
10642
|
+
import { useContext as useContext25 } from "react";
|
|
10643
|
+
import { ListStateContext } from "react-aria-components";
|
|
10598
10644
|
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
10645
|
+
var TagGroupHiddenInput = ({ name }) => {
|
|
10646
|
+
var _a;
|
|
10647
|
+
const state = useContext25(ListStateContext);
|
|
10648
|
+
const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
|
|
10649
|
+
if (!selectedKeys.length) return null;
|
|
10650
|
+
return /* @__PURE__ */ jsx118("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx118(
|
|
10651
|
+
"input",
|
|
10652
|
+
{
|
|
10653
|
+
type: "checkbox",
|
|
10654
|
+
name,
|
|
10655
|
+
value: key,
|
|
10656
|
+
checked: true,
|
|
10657
|
+
readOnly: true
|
|
10658
|
+
},
|
|
10659
|
+
key
|
|
10660
|
+
)) });
|
|
10661
|
+
};
|
|
10662
|
+
|
|
10663
|
+
// src/TagGroup/TagGroup.tsx
|
|
10664
|
+
import { jsx as jsx119, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
10599
10665
|
var _TagGroup = ({
|
|
10600
10666
|
width,
|
|
10601
10667
|
items,
|
|
10602
10668
|
children,
|
|
10603
|
-
|
|
10669
|
+
emptyState,
|
|
10604
10670
|
variant,
|
|
10605
10671
|
size: size2,
|
|
10672
|
+
name,
|
|
10606
10673
|
...rest
|
|
10607
10674
|
}) => {
|
|
10608
|
-
const classNames3 =
|
|
10609
|
-
return /* @__PURE__ */
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10675
|
+
const classNames3 = useClassNames65({ component: "Tag", variant, size: size2 });
|
|
10676
|
+
return /* @__PURE__ */ jsxs42(FieldBase, { as: TagGroup, ...rest, children: [
|
|
10677
|
+
/* @__PURE__ */ jsx119(
|
|
10678
|
+
TagList,
|
|
10679
|
+
{
|
|
10680
|
+
items,
|
|
10681
|
+
className: classNames3.listItems,
|
|
10682
|
+
renderEmptyState: emptyState,
|
|
10683
|
+
children
|
|
10684
|
+
}
|
|
10685
|
+
),
|
|
10686
|
+
name ? /* @__PURE__ */ jsx119(TagGroupHiddenInput, { name }) : null
|
|
10687
|
+
] });
|
|
10618
10688
|
};
|
|
10619
10689
|
|
|
10620
10690
|
// src/TagGroup/Tag.tsx
|
|
10621
|
-
import { Fragment as
|
|
10691
|
+
import { Fragment as Fragment14, jsx as jsx120, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
10622
10692
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10623
10693
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10624
|
-
const classNames3 =
|
|
10694
|
+
const classNames3 = useClassNames66({ component: "Tag", variant, size: size2 });
|
|
10625
10695
|
const props = {
|
|
10626
10696
|
isDisabled: disabled,
|
|
10627
10697
|
...rest
|
|
10628
10698
|
};
|
|
10629
|
-
return /* @__PURE__ */
|
|
10699
|
+
return /* @__PURE__ */ jsx120(
|
|
10630
10700
|
Tag,
|
|
10631
10701
|
{
|
|
10632
10702
|
textValue,
|
|
10633
10703
|
...props,
|
|
10634
10704
|
className: cn70("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10635
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */
|
|
10705
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs43(Fragment14, { children: [
|
|
10636
10706
|
children,
|
|
10637
|
-
allowsRemoving && /* @__PURE__ */
|
|
10707
|
+
allowsRemoving && /* @__PURE__ */ jsx120(CloseButton, { className: classNames3.closeButton, slot: "remove" })
|
|
10638
10708
|
] })
|
|
10639
10709
|
}
|
|
10640
10710
|
);
|
|
@@ -10647,12 +10717,12 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
10647
10717
|
// src/XLoader/XLoader.tsx
|
|
10648
10718
|
import { Dialog as Dialog4, Modal as Modal2 } from "react-aria-components";
|
|
10649
10719
|
import { useId as useId2 } from "@react-aria/utils";
|
|
10650
|
-
import { useClassNames as
|
|
10720
|
+
import { useClassNames as useClassNames68 } from "@marigold/system";
|
|
10651
10721
|
|
|
10652
10722
|
// src/XLoader/BaseLoader.tsx
|
|
10653
10723
|
import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
|
|
10654
10724
|
import { useLocalizedStringFormatter as useLocalizedStringFormatter2 } from "@react-aria/i18n";
|
|
10655
|
-
import { useClassNames as
|
|
10725
|
+
import { useClassNames as useClassNames67 } from "@marigold/system";
|
|
10656
10726
|
|
|
10657
10727
|
// src/intl/messages.ts
|
|
10658
10728
|
var intlMessages2 = {
|
|
@@ -10665,7 +10735,7 @@ var intlMessages2 = {
|
|
|
10665
10735
|
};
|
|
10666
10736
|
|
|
10667
10737
|
// src/XLoader/BaseLoader.tsx
|
|
10668
|
-
import { jsx as
|
|
10738
|
+
import { jsx as jsx121, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
10669
10739
|
var BaseLoader = ({
|
|
10670
10740
|
variant,
|
|
10671
10741
|
size: size2,
|
|
@@ -10674,8 +10744,8 @@ var BaseLoader = ({
|
|
|
10674
10744
|
...props
|
|
10675
10745
|
}) => {
|
|
10676
10746
|
const stringFormatter = useLocalizedStringFormatter2(intlMessages2, "marigold");
|
|
10677
|
-
const className =
|
|
10678
|
-
return /* @__PURE__ */
|
|
10747
|
+
const className = useClassNames67({ component: "XLoader", variant, size: size2 });
|
|
10748
|
+
return /* @__PURE__ */ jsxs44(
|
|
10679
10749
|
ProgressBar2,
|
|
10680
10750
|
{
|
|
10681
10751
|
className: className.container,
|
|
@@ -10683,7 +10753,7 @@ var BaseLoader = ({
|
|
|
10683
10753
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10684
10754
|
...props,
|
|
10685
10755
|
children: [
|
|
10686
|
-
/* @__PURE__ */
|
|
10756
|
+
/* @__PURE__ */ jsxs44(
|
|
10687
10757
|
"svg",
|
|
10688
10758
|
{
|
|
10689
10759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10691,13 +10761,13 @@ var BaseLoader = ({
|
|
|
10691
10761
|
fill: "currentColor",
|
|
10692
10762
|
className: className.loader,
|
|
10693
10763
|
children: [
|
|
10694
|
-
/* @__PURE__ */
|
|
10695
|
-
/* @__PURE__ */
|
|
10764
|
+
/* @__PURE__ */ jsx121("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
10765
|
+
/* @__PURE__ */ jsx121(
|
|
10696
10766
|
"path",
|
|
10697
10767
|
{
|
|
10698
10768
|
id: "XMLID_5_",
|
|
10699
10769
|
d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10700
|
-
children: /* @__PURE__ */
|
|
10770
|
+
children: /* @__PURE__ */ jsx121(
|
|
10701
10771
|
"animate",
|
|
10702
10772
|
{
|
|
10703
10773
|
attributeName: "opacity",
|
|
@@ -10710,12 +10780,12 @@ var BaseLoader = ({
|
|
|
10710
10780
|
)
|
|
10711
10781
|
}
|
|
10712
10782
|
),
|
|
10713
|
-
/* @__PURE__ */
|
|
10783
|
+
/* @__PURE__ */ jsx121(
|
|
10714
10784
|
"path",
|
|
10715
10785
|
{
|
|
10716
10786
|
id: "XMLID_18_",
|
|
10717
10787
|
d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10718
|
-
children: /* @__PURE__ */
|
|
10788
|
+
children: /* @__PURE__ */ jsx121(
|
|
10719
10789
|
"animate",
|
|
10720
10790
|
{
|
|
10721
10791
|
attributeName: "opacity",
|
|
@@ -10728,12 +10798,12 @@ var BaseLoader = ({
|
|
|
10728
10798
|
)
|
|
10729
10799
|
}
|
|
10730
10800
|
),
|
|
10731
|
-
/* @__PURE__ */
|
|
10801
|
+
/* @__PURE__ */ jsx121(
|
|
10732
10802
|
"path",
|
|
10733
10803
|
{
|
|
10734
10804
|
id: "XMLID_19_",
|
|
10735
10805
|
d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10736
|
-
children: /* @__PURE__ */
|
|
10806
|
+
children: /* @__PURE__ */ jsx121(
|
|
10737
10807
|
"animate",
|
|
10738
10808
|
{
|
|
10739
10809
|
attributeName: "opacity",
|
|
@@ -10746,12 +10816,12 @@ var BaseLoader = ({
|
|
|
10746
10816
|
)
|
|
10747
10817
|
}
|
|
10748
10818
|
),
|
|
10749
|
-
/* @__PURE__ */
|
|
10819
|
+
/* @__PURE__ */ jsx121(
|
|
10750
10820
|
"path",
|
|
10751
10821
|
{
|
|
10752
10822
|
id: "XMLID_20_",
|
|
10753
10823
|
d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10754
|
-
children: /* @__PURE__ */
|
|
10824
|
+
children: /* @__PURE__ */ jsx121(
|
|
10755
10825
|
"animate",
|
|
10756
10826
|
{
|
|
10757
10827
|
attributeName: "opacity",
|
|
@@ -10764,12 +10834,12 @@ var BaseLoader = ({
|
|
|
10764
10834
|
)
|
|
10765
10835
|
}
|
|
10766
10836
|
),
|
|
10767
|
-
/* @__PURE__ */
|
|
10837
|
+
/* @__PURE__ */ jsx121(
|
|
10768
10838
|
"path",
|
|
10769
10839
|
{
|
|
10770
10840
|
id: "XMLID_21_",
|
|
10771
10841
|
d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
|
|
10772
|
-
children: /* @__PURE__ */
|
|
10842
|
+
children: /* @__PURE__ */ jsx121(
|
|
10773
10843
|
"animate",
|
|
10774
10844
|
{
|
|
10775
10845
|
attributeName: "opacity",
|
|
@@ -10782,12 +10852,12 @@ var BaseLoader = ({
|
|
|
10782
10852
|
)
|
|
10783
10853
|
}
|
|
10784
10854
|
),
|
|
10785
|
-
/* @__PURE__ */
|
|
10855
|
+
/* @__PURE__ */ jsx121(
|
|
10786
10856
|
"path",
|
|
10787
10857
|
{
|
|
10788
10858
|
id: "XMLID_22_",
|
|
10789
10859
|
d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
|
|
10790
|
-
children: /* @__PURE__ */
|
|
10860
|
+
children: /* @__PURE__ */ jsx121(
|
|
10791
10861
|
"animate",
|
|
10792
10862
|
{
|
|
10793
10863
|
attributeName: "opacity",
|
|
@@ -10800,12 +10870,12 @@ var BaseLoader = ({
|
|
|
10800
10870
|
)
|
|
10801
10871
|
}
|
|
10802
10872
|
),
|
|
10803
|
-
/* @__PURE__ */
|
|
10873
|
+
/* @__PURE__ */ jsx121(
|
|
10804
10874
|
"path",
|
|
10805
10875
|
{
|
|
10806
10876
|
id: "XMLID_23_",
|
|
10807
10877
|
d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10808
|
-
children: /* @__PURE__ */
|
|
10878
|
+
children: /* @__PURE__ */ jsx121(
|
|
10809
10879
|
"animate",
|
|
10810
10880
|
{
|
|
10811
10881
|
attributeName: "opacity",
|
|
@@ -10818,12 +10888,12 @@ var BaseLoader = ({
|
|
|
10818
10888
|
)
|
|
10819
10889
|
}
|
|
10820
10890
|
),
|
|
10821
|
-
/* @__PURE__ */
|
|
10891
|
+
/* @__PURE__ */ jsx121(
|
|
10822
10892
|
"path",
|
|
10823
10893
|
{
|
|
10824
10894
|
id: "XMLID_24_",
|
|
10825
10895
|
d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
|
|
10826
|
-
children: /* @__PURE__ */
|
|
10896
|
+
children: /* @__PURE__ */ jsx121(
|
|
10827
10897
|
"animate",
|
|
10828
10898
|
{
|
|
10829
10899
|
attributeName: "opacity",
|
|
@@ -10836,12 +10906,12 @@ var BaseLoader = ({
|
|
|
10836
10906
|
)
|
|
10837
10907
|
}
|
|
10838
10908
|
),
|
|
10839
|
-
/* @__PURE__ */
|
|
10909
|
+
/* @__PURE__ */ jsx121(
|
|
10840
10910
|
"path",
|
|
10841
10911
|
{
|
|
10842
10912
|
id: "XMLID_25_",
|
|
10843
10913
|
d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
|
|
10844
|
-
children: /* @__PURE__ */
|
|
10914
|
+
children: /* @__PURE__ */ jsx121(
|
|
10845
10915
|
"animate",
|
|
10846
10916
|
{
|
|
10847
10917
|
attributeName: "opacity",
|
|
@@ -10854,12 +10924,12 @@ var BaseLoader = ({
|
|
|
10854
10924
|
)
|
|
10855
10925
|
}
|
|
10856
10926
|
),
|
|
10857
|
-
/* @__PURE__ */
|
|
10927
|
+
/* @__PURE__ */ jsx121(
|
|
10858
10928
|
"path",
|
|
10859
10929
|
{
|
|
10860
10930
|
id: "XMLID_26_",
|
|
10861
10931
|
d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
|
|
10862
|
-
children: /* @__PURE__ */
|
|
10932
|
+
children: /* @__PURE__ */ jsx121(
|
|
10863
10933
|
"animate",
|
|
10864
10934
|
{
|
|
10865
10935
|
attributeName: "opacity",
|
|
@@ -10872,12 +10942,12 @@ var BaseLoader = ({
|
|
|
10872
10942
|
)
|
|
10873
10943
|
}
|
|
10874
10944
|
),
|
|
10875
|
-
/* @__PURE__ */
|
|
10945
|
+
/* @__PURE__ */ jsx121(
|
|
10876
10946
|
"path",
|
|
10877
10947
|
{
|
|
10878
10948
|
id: "XMLID_27_",
|
|
10879
10949
|
d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
|
|
10880
|
-
children: /* @__PURE__ */
|
|
10950
|
+
children: /* @__PURE__ */ jsx121(
|
|
10881
10951
|
"animate",
|
|
10882
10952
|
{
|
|
10883
10953
|
attributeName: "opacity",
|
|
@@ -10893,44 +10963,44 @@ var BaseLoader = ({
|
|
|
10893
10963
|
]
|
|
10894
10964
|
}
|
|
10895
10965
|
),
|
|
10896
|
-
children ? /* @__PURE__ */
|
|
10966
|
+
children ? /* @__PURE__ */ jsx121(Label2, { className: className.label, children }) : null
|
|
10897
10967
|
]
|
|
10898
10968
|
}
|
|
10899
10969
|
);
|
|
10900
10970
|
};
|
|
10901
10971
|
|
|
10902
10972
|
// src/XLoader/XLoader.tsx
|
|
10903
|
-
import { jsx as
|
|
10973
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
10904
10974
|
var LoaderFullScreen = (props) => {
|
|
10905
10975
|
const id = useId2();
|
|
10906
|
-
return /* @__PURE__ */
|
|
10976
|
+
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 }) }) }) });
|
|
10907
10977
|
};
|
|
10908
10978
|
var LoaderSection = (props) => {
|
|
10909
|
-
const className =
|
|
10979
|
+
const className = useClassNames68({
|
|
10910
10980
|
component: "Underlay",
|
|
10911
10981
|
variant: "modal",
|
|
10912
10982
|
className: "flex size-full items-center justify-center"
|
|
10913
10983
|
});
|
|
10914
|
-
return /* @__PURE__ */
|
|
10984
|
+
return /* @__PURE__ */ jsx122("div", { className, children: /* @__PURE__ */ jsx122(BaseLoader, { ...props }) });
|
|
10915
10985
|
};
|
|
10916
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */
|
|
10986
|
+
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx122(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx122(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx122(BaseLoader, { variant, ...props });
|
|
10917
10987
|
|
|
10918
10988
|
// src/Tabs/Tabs.tsx
|
|
10919
10989
|
import { Tabs } from "react-aria-components";
|
|
10920
|
-
import { useClassNames as
|
|
10990
|
+
import { useClassNames as useClassNames69 } from "@marigold/system";
|
|
10921
10991
|
|
|
10922
10992
|
// src/Tabs/Context.ts
|
|
10923
|
-
import { createContext as createContext15, useContext as
|
|
10993
|
+
import { createContext as createContext15, useContext as useContext26 } from "react";
|
|
10924
10994
|
var TabContext = createContext15({});
|
|
10925
|
-
var useTabContext = () =>
|
|
10995
|
+
var useTabContext = () => useContext26(TabContext);
|
|
10926
10996
|
|
|
10927
10997
|
// src/Tabs/Tab.tsx
|
|
10928
10998
|
import { Tab } from "react-aria-components";
|
|
10929
10999
|
import { cn as cn71 } from "@marigold/system";
|
|
10930
|
-
import { jsx as
|
|
11000
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
10931
11001
|
var _Tab = (props) => {
|
|
10932
11002
|
const { classNames: classNames3 } = useTabContext();
|
|
10933
|
-
return /* @__PURE__ */
|
|
11003
|
+
return /* @__PURE__ */ jsx123(
|
|
10934
11004
|
Tab,
|
|
10935
11005
|
{
|
|
10936
11006
|
...props,
|
|
@@ -10946,10 +11016,10 @@ var _Tab = (props) => {
|
|
|
10946
11016
|
// src/Tabs/TabList.tsx
|
|
10947
11017
|
import { TabList } from "react-aria-components";
|
|
10948
11018
|
import { cn as cn72, gapSpace as gapSpace10 } from "@marigold/system";
|
|
10949
|
-
import { jsx as
|
|
11019
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
10950
11020
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10951
11021
|
const { classNames: classNames3 } = useTabContext();
|
|
10952
|
-
return /* @__PURE__ */
|
|
11022
|
+
return /* @__PURE__ */ jsx124(
|
|
10953
11023
|
TabList,
|
|
10954
11024
|
{
|
|
10955
11025
|
...props,
|
|
@@ -10961,25 +11031,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10961
11031
|
|
|
10962
11032
|
// src/Tabs/TabPanel.tsx
|
|
10963
11033
|
import { TabPanel } from "react-aria-components";
|
|
10964
|
-
import { jsx as
|
|
11034
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
10965
11035
|
var _TabPanel = (props) => {
|
|
10966
11036
|
const { classNames: classNames3 } = useTabContext();
|
|
10967
|
-
return /* @__PURE__ */
|
|
11037
|
+
return /* @__PURE__ */ jsx125(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
10968
11038
|
};
|
|
10969
11039
|
|
|
10970
11040
|
// src/Tabs/Tabs.tsx
|
|
10971
|
-
import { jsx as
|
|
11041
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
10972
11042
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
10973
11043
|
const props = {
|
|
10974
11044
|
isDisabled: disabled,
|
|
10975
11045
|
...rest
|
|
10976
11046
|
};
|
|
10977
|
-
const classNames3 =
|
|
11047
|
+
const classNames3 = useClassNames69({
|
|
10978
11048
|
component: "Tabs",
|
|
10979
11049
|
size: size2,
|
|
10980
11050
|
variant
|
|
10981
11051
|
});
|
|
10982
|
-
return /* @__PURE__ */
|
|
11052
|
+
return /* @__PURE__ */ jsx126(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx126(Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
10983
11053
|
};
|
|
10984
11054
|
_Tabs.List = _TabList;
|
|
10985
11055
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -11007,6 +11077,7 @@ export {
|
|
|
11007
11077
|
_ComboBox as ComboBox,
|
|
11008
11078
|
Container,
|
|
11009
11079
|
_DateField as DateField,
|
|
11080
|
+
DateFormat,
|
|
11010
11081
|
_DatePicker as DatePicker,
|
|
11011
11082
|
_Dialog as Dialog,
|
|
11012
11083
|
_Divider as Divider,
|
|
@@ -11033,6 +11104,7 @@ export {
|
|
|
11033
11104
|
Multiselect,
|
|
11034
11105
|
NonModal,
|
|
11035
11106
|
_NumberField as NumberField,
|
|
11107
|
+
NumericFormat,
|
|
11036
11108
|
OverlayContainerProvider,
|
|
11037
11109
|
_Pagination as Pagination,
|
|
11038
11110
|
_Popover as Popover,
|