@plasmicpkgs/react-aria 0.0.59 → 0.0.61
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/.tsbuildinfo +1 -1
- package/dist/react-aria.esm.js +354 -428
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +353 -427
- package/dist/react-aria.js.map +1 -1
- package/dist/registerPopover.d.ts +1 -0
- package/package.json +2 -2
- package/skinny/registerComboBox.cjs.js +13 -7
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +13 -7
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +7 -9
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.d.ts +1 -0
- package/skinny/registerPopover.esm.js +8 -10
- package/skinny/registerPopover.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +13 -7
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.esm.js +13 -7
- package/skinny/registerSelect.esm.js.map +1 -1
- package/dist/registerForm.d.ts +0 -9
- package/skinny/registerForm.d.ts +0 -9
package/dist/react-aria.js
CHANGED
|
@@ -15,35 +15,35 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
15
15
|
var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
|
|
16
16
|
var flattenChildren__default = /*#__PURE__*/_interopDefault(flattenChildren);
|
|
17
17
|
|
|
18
|
-
var __defProp$
|
|
18
|
+
var __defProp$r = Object.defineProperty;
|
|
19
19
|
var __defProps$f = Object.defineProperties;
|
|
20
20
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
21
|
-
var __getOwnPropSymbols$
|
|
22
|
-
var __hasOwnProp$
|
|
23
|
-
var __propIsEnum$
|
|
24
|
-
var __defNormalProp$
|
|
25
|
-
var __spreadValues$
|
|
21
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
22
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
23
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
24
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
25
|
+
var __spreadValues$r = (a, b) => {
|
|
26
26
|
for (var prop in b || (b = {}))
|
|
27
|
-
if (__hasOwnProp$
|
|
28
|
-
__defNormalProp$
|
|
29
|
-
if (__getOwnPropSymbols$
|
|
30
|
-
for (var prop of __getOwnPropSymbols$
|
|
31
|
-
if (__propIsEnum$
|
|
32
|
-
__defNormalProp$
|
|
27
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
28
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
29
|
+
if (__getOwnPropSymbols$r)
|
|
30
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
31
|
+
if (__propIsEnum$r.call(b, prop))
|
|
32
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
33
33
|
}
|
|
34
34
|
return a;
|
|
35
35
|
};
|
|
36
36
|
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
37
37
|
function registerComponentHelper(loader, component, meta, overrides) {
|
|
38
38
|
var _a;
|
|
39
|
-
meta = __spreadProps$f(__spreadValues$
|
|
40
|
-
defaultStyles: __spreadValues$
|
|
39
|
+
meta = __spreadProps$f(__spreadValues$r({}, meta), {
|
|
40
|
+
defaultStyles: __spreadValues$r({
|
|
41
41
|
boxSizing: "border-box"
|
|
42
42
|
}, (_a = meta.defaultStyles) != null ? _a : {})
|
|
43
43
|
});
|
|
44
44
|
if (overrides) {
|
|
45
|
-
meta = __spreadProps$f(__spreadValues$
|
|
46
|
-
props: __spreadValues$
|
|
45
|
+
meta = __spreadProps$f(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
|
|
46
|
+
props: __spreadValues$r(__spreadValues$r({}, meta.props), overrides.props)
|
|
47
47
|
});
|
|
48
48
|
if (overrides.parentComponentName) {
|
|
49
49
|
meta.name = makeChildComponentName(
|
|
@@ -480,33 +480,33 @@ function pickAriaComponentVariants(keys) {
|
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
var __defProp$
|
|
483
|
+
var __defProp$q = Object.defineProperty;
|
|
484
484
|
var __defProps$e = Object.defineProperties;
|
|
485
485
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
486
|
-
var __getOwnPropSymbols$
|
|
487
|
-
var __hasOwnProp$
|
|
488
|
-
var __propIsEnum$
|
|
489
|
-
var __defNormalProp$
|
|
490
|
-
var __spreadValues$
|
|
486
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
487
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
488
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
489
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
490
|
+
var __spreadValues$q = (a, b) => {
|
|
491
491
|
for (var prop in b || (b = {}))
|
|
492
|
-
if (__hasOwnProp$
|
|
493
|
-
__defNormalProp$
|
|
494
|
-
if (__getOwnPropSymbols$
|
|
495
|
-
for (var prop of __getOwnPropSymbols$
|
|
496
|
-
if (__propIsEnum$
|
|
497
|
-
__defNormalProp$
|
|
492
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
493
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
494
|
+
if (__getOwnPropSymbols$q)
|
|
495
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
496
|
+
if (__propIsEnum$q.call(b, prop))
|
|
497
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
498
498
|
}
|
|
499
499
|
return a;
|
|
500
500
|
};
|
|
501
501
|
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
502
|
-
var __objRest$
|
|
502
|
+
var __objRest$o = (source, exclude) => {
|
|
503
503
|
var target = {};
|
|
504
504
|
for (var prop in source)
|
|
505
|
-
if (__hasOwnProp$
|
|
505
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
506
506
|
target[prop] = source[prop];
|
|
507
|
-
if (source != null && __getOwnPropSymbols$
|
|
508
|
-
for (var prop of __getOwnPropSymbols$
|
|
509
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
507
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
508
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
509
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
510
510
|
target[prop] = source[prop];
|
|
511
511
|
}
|
|
512
512
|
return target;
|
|
@@ -520,9 +520,9 @@ const BUTTON_VARIANTS = [
|
|
|
520
520
|
];
|
|
521
521
|
const { variants: variants$d, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(BUTTON_VARIANTS);
|
|
522
522
|
function BaseButton(props) {
|
|
523
|
-
const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
523
|
+
const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$o(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
|
|
524
524
|
const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
|
|
525
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$
|
|
525
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({ type }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$b(
|
|
526
526
|
children,
|
|
527
527
|
{
|
|
528
528
|
hovered: isHovered,
|
|
@@ -552,7 +552,7 @@ function registerButton(loader, overrides) {
|
|
|
552
552
|
padding: "2px 10px",
|
|
553
553
|
cursor: "pointer"
|
|
554
554
|
},
|
|
555
|
-
props: __spreadProps$e(__spreadValues$
|
|
555
|
+
props: __spreadProps$e(__spreadValues$q({}, getCommonProps("button", [
|
|
556
556
|
"autoFocus",
|
|
557
557
|
"isDisabled",
|
|
558
558
|
"aria-label"
|
|
@@ -603,33 +603,33 @@ const PlasmicListBoxContext = React__default.default.createContext(void 0);
|
|
|
603
603
|
React__default.default.createContext(void 0);
|
|
604
604
|
const PlasmicInputContext = React__default.default.createContext(void 0);
|
|
605
605
|
|
|
606
|
-
var __defProp$
|
|
606
|
+
var __defProp$p = Object.defineProperty;
|
|
607
607
|
var __defProps$d = Object.defineProperties;
|
|
608
608
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
609
|
-
var __getOwnPropSymbols$
|
|
610
|
-
var __hasOwnProp$
|
|
611
|
-
var __propIsEnum$
|
|
612
|
-
var __defNormalProp$
|
|
613
|
-
var __spreadValues$
|
|
609
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
610
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
611
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
612
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
613
|
+
var __spreadValues$p = (a, b) => {
|
|
614
614
|
for (var prop in b || (b = {}))
|
|
615
|
-
if (__hasOwnProp$
|
|
616
|
-
__defNormalProp$
|
|
617
|
-
if (__getOwnPropSymbols$
|
|
618
|
-
for (var prop of __getOwnPropSymbols$
|
|
619
|
-
if (__propIsEnum$
|
|
620
|
-
__defNormalProp$
|
|
615
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
616
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
617
|
+
if (__getOwnPropSymbols$p)
|
|
618
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
619
|
+
if (__propIsEnum$p.call(b, prop))
|
|
620
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
621
621
|
}
|
|
622
622
|
return a;
|
|
623
623
|
};
|
|
624
624
|
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
625
|
-
var __objRest$
|
|
625
|
+
var __objRest$n = (source, exclude) => {
|
|
626
626
|
var target = {};
|
|
627
627
|
for (var prop in source)
|
|
628
|
-
if (__hasOwnProp$
|
|
628
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
629
629
|
target[prop] = source[prop];
|
|
630
|
-
if (source != null && __getOwnPropSymbols$
|
|
631
|
-
for (var prop of __getOwnPropSymbols$
|
|
632
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
630
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
631
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
632
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
633
633
|
target[prop] = source[prop];
|
|
634
634
|
}
|
|
635
635
|
return target;
|
|
@@ -647,12 +647,12 @@ const CHECKBOX_VARIANTS = [
|
|
|
647
647
|
];
|
|
648
648
|
const { variants: variants$c, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
|
|
649
649
|
function BaseCheckbox(props) {
|
|
650
|
-
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$
|
|
650
|
+
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$n(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
|
|
651
651
|
const contextProps = React__default.default.useContext(PlasmicCheckboxGroupContext);
|
|
652
652
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
653
653
|
parent: contextProps
|
|
654
654
|
});
|
|
655
|
-
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Checkbox, __spreadValues$
|
|
655
|
+
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Checkbox, __spreadValues$p({}, rest), ({
|
|
656
656
|
isHovered,
|
|
657
657
|
isPressed,
|
|
658
658
|
isFocused,
|
|
@@ -732,7 +732,7 @@ function registerCheckbox(loader, overrides) {
|
|
|
732
732
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
|
|
733
733
|
importName: "BaseCheckbox",
|
|
734
734
|
variants: variants$c,
|
|
735
|
-
props: __spreadProps$d(__spreadValues$
|
|
735
|
+
props: __spreadProps$d(__spreadValues$p({}, getCommonProps("checkbox", [
|
|
736
736
|
"name",
|
|
737
737
|
"isDisabled",
|
|
738
738
|
"isReadOnly",
|
|
@@ -800,40 +800,40 @@ function registerCheckbox(loader, overrides) {
|
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
-
var __defProp$
|
|
803
|
+
var __defProp$o = Object.defineProperty;
|
|
804
804
|
var __defProps$c = Object.defineProperties;
|
|
805
805
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
806
|
-
var __getOwnPropSymbols$
|
|
807
|
-
var __hasOwnProp$
|
|
808
|
-
var __propIsEnum$
|
|
809
|
-
var __defNormalProp$
|
|
810
|
-
var __spreadValues$
|
|
806
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
807
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
808
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
809
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
810
|
+
var __spreadValues$o = (a, b) => {
|
|
811
811
|
for (var prop in b || (b = {}))
|
|
812
|
-
if (__hasOwnProp$
|
|
813
|
-
__defNormalProp$
|
|
814
|
-
if (__getOwnPropSymbols$
|
|
815
|
-
for (var prop of __getOwnPropSymbols$
|
|
816
|
-
if (__propIsEnum$
|
|
817
|
-
__defNormalProp$
|
|
812
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
813
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
814
|
+
if (__getOwnPropSymbols$o)
|
|
815
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
816
|
+
if (__propIsEnum$o.call(b, prop))
|
|
817
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
818
818
|
}
|
|
819
819
|
return a;
|
|
820
820
|
};
|
|
821
821
|
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
822
|
-
var __objRest$
|
|
822
|
+
var __objRest$m = (source, exclude) => {
|
|
823
823
|
var target = {};
|
|
824
824
|
for (var prop in source)
|
|
825
|
-
if (__hasOwnProp$
|
|
825
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
826
826
|
target[prop] = source[prop];
|
|
827
|
-
if (source != null && __getOwnPropSymbols$
|
|
828
|
-
for (var prop of __getOwnPropSymbols$
|
|
829
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
827
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
828
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
829
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
830
830
|
target[prop] = source[prop];
|
|
831
831
|
}
|
|
832
832
|
return target;
|
|
833
833
|
};
|
|
834
834
|
function BaseText(_a) {
|
|
835
|
-
var _b = _a, { children, slot, className } = _b, rest = __objRest$
|
|
836
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadProps$c(__spreadValues$
|
|
835
|
+
var _b = _a, { children, slot, className } = _b, rest = __objRest$m(_b, ["children", "slot", "className"]);
|
|
836
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadProps$c(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
|
|
837
837
|
}
|
|
838
838
|
const TEXT_COMPONENT_NAME = makeComponentName("text");
|
|
839
839
|
function registerText(loader, overrides) {
|
|
@@ -867,28 +867,28 @@ function registerText(loader, overrides) {
|
|
|
867
867
|
);
|
|
868
868
|
}
|
|
869
869
|
|
|
870
|
-
var __defProp$
|
|
870
|
+
var __defProp$n = Object.defineProperty;
|
|
871
871
|
var __defProps$b = Object.defineProperties;
|
|
872
872
|
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
873
|
-
var __getOwnPropSymbols$
|
|
874
|
-
var __hasOwnProp$
|
|
875
|
-
var __propIsEnum$
|
|
876
|
-
var __defNormalProp$
|
|
877
|
-
var __spreadValues$
|
|
873
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
874
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
875
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
876
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
877
|
+
var __spreadValues$n = (a, b) => {
|
|
878
878
|
for (var prop in b || (b = {}))
|
|
879
|
-
if (__hasOwnProp$
|
|
880
|
-
__defNormalProp$
|
|
881
|
-
if (__getOwnPropSymbols$
|
|
882
|
-
for (var prop of __getOwnPropSymbols$
|
|
883
|
-
if (__propIsEnum$
|
|
884
|
-
__defNormalProp$
|
|
879
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
880
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
881
|
+
if (__getOwnPropSymbols$n)
|
|
882
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
883
|
+
if (__propIsEnum$n.call(b, prop))
|
|
884
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
885
885
|
}
|
|
886
886
|
return a;
|
|
887
887
|
};
|
|
888
888
|
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
889
889
|
const DESCRIPTION_COMPONENT_NAME = makeComponentName("description");
|
|
890
890
|
function registerDescription(loader, overrides) {
|
|
891
|
-
return registerText(loader, __spreadProps$b(__spreadValues$
|
|
891
|
+
return registerText(loader, __spreadProps$b(__spreadValues$n({}, overrides), {
|
|
892
892
|
name: DESCRIPTION_COMPONENT_NAME,
|
|
893
893
|
displayName: "Aria Description",
|
|
894
894
|
props: {
|
|
@@ -901,30 +901,30 @@ function registerDescription(loader, overrides) {
|
|
|
901
901
|
}));
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
var __defProp$
|
|
905
|
-
var __getOwnPropSymbols$
|
|
906
|
-
var __hasOwnProp$
|
|
907
|
-
var __propIsEnum$
|
|
908
|
-
var __defNormalProp$
|
|
909
|
-
var __spreadValues$
|
|
904
|
+
var __defProp$m = Object.defineProperty;
|
|
905
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
906
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
907
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
908
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
909
|
+
var __spreadValues$m = (a, b) => {
|
|
910
910
|
for (var prop in b || (b = {}))
|
|
911
|
-
if (__hasOwnProp$
|
|
912
|
-
__defNormalProp$
|
|
913
|
-
if (__getOwnPropSymbols$
|
|
914
|
-
for (var prop of __getOwnPropSymbols$
|
|
915
|
-
if (__propIsEnum$
|
|
916
|
-
__defNormalProp$
|
|
911
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
912
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
913
|
+
if (__getOwnPropSymbols$m)
|
|
914
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
915
|
+
if (__propIsEnum$m.call(b, prop))
|
|
916
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
917
917
|
}
|
|
918
918
|
return a;
|
|
919
919
|
};
|
|
920
|
-
var __objRest$
|
|
920
|
+
var __objRest$l = (source, exclude) => {
|
|
921
921
|
var target = {};
|
|
922
922
|
for (var prop in source)
|
|
923
|
-
if (__hasOwnProp$
|
|
923
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
924
924
|
target[prop] = source[prop];
|
|
925
|
-
if (source != null && __getOwnPropSymbols$
|
|
926
|
-
for (var prop of __getOwnPropSymbols$
|
|
927
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
925
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
926
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
927
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
928
928
|
target[prop] = source[prop];
|
|
929
929
|
}
|
|
930
930
|
return target;
|
|
@@ -941,7 +941,7 @@ function BaseFieldError(_a) {
|
|
|
941
941
|
tooShort,
|
|
942
942
|
typeMismatch,
|
|
943
943
|
valueMissing
|
|
944
|
-
} = _b, rest = __objRest$
|
|
944
|
+
} = _b, rest = __objRest$l(_b, [
|
|
945
945
|
"badInput",
|
|
946
946
|
"customError",
|
|
947
947
|
"patternMismatch",
|
|
@@ -953,7 +953,7 @@ function BaseFieldError(_a) {
|
|
|
953
953
|
"typeMismatch",
|
|
954
954
|
"valueMissing"
|
|
955
955
|
]);
|
|
956
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.FieldError, __spreadValues$
|
|
956
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.FieldError, __spreadValues$m({}, rest), ({ validationDetails, validationErrors }) => {
|
|
957
957
|
if (validationDetails.badInput && badInput) {
|
|
958
958
|
return badInput;
|
|
959
959
|
}
|
|
@@ -1060,40 +1060,40 @@ function registerFieldError(loader, overrides) {
|
|
|
1060
1060
|
);
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
var __defProp$
|
|
1063
|
+
var __defProp$l = Object.defineProperty;
|
|
1064
1064
|
var __defProps$a = Object.defineProperties;
|
|
1065
1065
|
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
1066
|
-
var __getOwnPropSymbols$
|
|
1067
|
-
var __hasOwnProp$
|
|
1068
|
-
var __propIsEnum$
|
|
1069
|
-
var __defNormalProp$
|
|
1070
|
-
var __spreadValues$
|
|
1066
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
1067
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
1068
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
1069
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1070
|
+
var __spreadValues$l = (a, b) => {
|
|
1071
1071
|
for (var prop in b || (b = {}))
|
|
1072
|
-
if (__hasOwnProp$
|
|
1073
|
-
__defNormalProp$
|
|
1074
|
-
if (__getOwnPropSymbols$
|
|
1075
|
-
for (var prop of __getOwnPropSymbols$
|
|
1076
|
-
if (__propIsEnum$
|
|
1077
|
-
__defNormalProp$
|
|
1072
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
1073
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
1074
|
+
if (__getOwnPropSymbols$l)
|
|
1075
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
1076
|
+
if (__propIsEnum$l.call(b, prop))
|
|
1077
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
1078
1078
|
}
|
|
1079
1079
|
return a;
|
|
1080
1080
|
};
|
|
1081
1081
|
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
1082
|
-
var __objRest$
|
|
1082
|
+
var __objRest$k = (source, exclude) => {
|
|
1083
1083
|
var target = {};
|
|
1084
1084
|
for (var prop in source)
|
|
1085
|
-
if (__hasOwnProp$
|
|
1085
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1086
1086
|
target[prop] = source[prop];
|
|
1087
|
-
if (source != null && __getOwnPropSymbols$
|
|
1088
|
-
for (var prop of __getOwnPropSymbols$
|
|
1089
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1087
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
1088
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
1089
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
1090
1090
|
target[prop] = source[prop];
|
|
1091
1091
|
}
|
|
1092
1092
|
return target;
|
|
1093
1093
|
};
|
|
1094
1094
|
function BaseLabel(_a) {
|
|
1095
|
-
var _b = _a, { children, className } = _b, rest = __objRest$
|
|
1096
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Label, __spreadProps$a(__spreadValues$
|
|
1095
|
+
var _b = _a, { children, className } = _b, rest = __objRest$k(_b, ["children", "className"]);
|
|
1096
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Label, __spreadProps$a(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
|
|
1097
1097
|
}
|
|
1098
1098
|
const LABEL_COMPONENT_NAME = makeComponentName("label");
|
|
1099
1099
|
function registerLabel(loader, overrides) {
|
|
@@ -1124,33 +1124,33 @@ function registerLabel(loader, overrides) {
|
|
|
1124
1124
|
);
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
|
-
var __defProp$
|
|
1127
|
+
var __defProp$k = Object.defineProperty;
|
|
1128
1128
|
var __defProps$9 = Object.defineProperties;
|
|
1129
1129
|
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
1130
|
-
var __getOwnPropSymbols$
|
|
1131
|
-
var __hasOwnProp$
|
|
1132
|
-
var __propIsEnum$
|
|
1133
|
-
var __defNormalProp$
|
|
1134
|
-
var __spreadValues$
|
|
1130
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
1131
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
1132
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
1133
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1134
|
+
var __spreadValues$k = (a, b) => {
|
|
1135
1135
|
for (var prop in b || (b = {}))
|
|
1136
|
-
if (__hasOwnProp$
|
|
1137
|
-
__defNormalProp$
|
|
1138
|
-
if (__getOwnPropSymbols$
|
|
1139
|
-
for (var prop of __getOwnPropSymbols$
|
|
1140
|
-
if (__propIsEnum$
|
|
1141
|
-
__defNormalProp$
|
|
1136
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
1137
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
1138
|
+
if (__getOwnPropSymbols$k)
|
|
1139
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
1140
|
+
if (__propIsEnum$k.call(b, prop))
|
|
1141
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
1142
1142
|
}
|
|
1143
1143
|
return a;
|
|
1144
1144
|
};
|
|
1145
1145
|
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
1146
|
-
var __objRest$
|
|
1146
|
+
var __objRest$j = (source, exclude) => {
|
|
1147
1147
|
var target = {};
|
|
1148
1148
|
for (var prop in source)
|
|
1149
|
-
if (__hasOwnProp$
|
|
1149
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1150
1150
|
target[prop] = source[prop];
|
|
1151
|
-
if (source != null && __getOwnPropSymbols$
|
|
1152
|
-
for (var prop of __getOwnPropSymbols$
|
|
1153
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1151
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
1152
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
1153
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
1154
1154
|
target[prop] = source[prop];
|
|
1155
1155
|
}
|
|
1156
1156
|
return target;
|
|
@@ -1160,8 +1160,8 @@ const { variants: variants$b, withObservedValues: withObservedValues$9 } = pickA
|
|
|
1160
1160
|
CHECKBOX_GROUP_VARIANTS
|
|
1161
1161
|
);
|
|
1162
1162
|
function BaseCheckboxGroup(props) {
|
|
1163
|
-
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
1164
|
-
return /* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadValues$
|
|
1163
|
+
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$j(_a, ["children", "plasmicUpdateVariant"]);
|
|
1164
|
+
return /* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadValues$k({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$9(
|
|
1165
1165
|
children,
|
|
1166
1166
|
{
|
|
1167
1167
|
disabled: isDisabled,
|
|
@@ -1190,7 +1190,7 @@ function registerCheckboxGroup(loader, overrides) {
|
|
|
1190
1190
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
|
|
1191
1191
|
importName: "BaseCheckboxGroup",
|
|
1192
1192
|
variants: variants$b,
|
|
1193
|
-
props: __spreadProps$9(__spreadValues$
|
|
1193
|
+
props: __spreadProps$9(__spreadValues$k({}, getCommonProps("checkbox group", [
|
|
1194
1194
|
"name",
|
|
1195
1195
|
"isDisabled",
|
|
1196
1196
|
"isReadOnly",
|
|
@@ -1354,30 +1354,30 @@ class ListBoxItemIdManager {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
|
-
var __defProp$
|
|
1358
|
-
var __getOwnPropSymbols$
|
|
1359
|
-
var __hasOwnProp$
|
|
1360
|
-
var __propIsEnum$
|
|
1361
|
-
var __defNormalProp$
|
|
1362
|
-
var __spreadValues$
|
|
1357
|
+
var __defProp$j = Object.defineProperty;
|
|
1358
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
1359
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
1360
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
1361
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1362
|
+
var __spreadValues$j = (a, b) => {
|
|
1363
1363
|
for (var prop in b || (b = {}))
|
|
1364
|
-
if (__hasOwnProp$
|
|
1365
|
-
__defNormalProp$
|
|
1366
|
-
if (__getOwnPropSymbols$
|
|
1367
|
-
for (var prop of __getOwnPropSymbols$
|
|
1368
|
-
if (__propIsEnum$
|
|
1369
|
-
__defNormalProp$
|
|
1364
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
1365
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1366
|
+
if (__getOwnPropSymbols$j)
|
|
1367
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
1368
|
+
if (__propIsEnum$j.call(b, prop))
|
|
1369
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1370
1370
|
}
|
|
1371
1371
|
return a;
|
|
1372
1372
|
};
|
|
1373
|
-
var __objRest$
|
|
1373
|
+
var __objRest$i = (source, exclude) => {
|
|
1374
1374
|
var target = {};
|
|
1375
1375
|
for (var prop in source)
|
|
1376
|
-
if (__hasOwnProp$
|
|
1376
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1377
1377
|
target[prop] = source[prop];
|
|
1378
|
-
if (source != null && __getOwnPropSymbols$
|
|
1379
|
-
for (var prop of __getOwnPropSymbols$
|
|
1380
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1378
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
1379
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
1380
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
1381
1381
|
target[prop] = source[prop];
|
|
1382
1382
|
}
|
|
1383
1383
|
return target;
|
|
@@ -1405,7 +1405,7 @@ function BaseInput(props) {
|
|
|
1405
1405
|
disabled,
|
|
1406
1406
|
autoComplete,
|
|
1407
1407
|
value
|
|
1408
|
-
} = _a, rest = __objRest$
|
|
1408
|
+
} = _a, rest = __objRest$i(_a, [
|
|
1409
1409
|
"plasmicUpdateVariant",
|
|
1410
1410
|
"setControlContextData",
|
|
1411
1411
|
"disabled",
|
|
@@ -1438,7 +1438,7 @@ function BaseInput(props) {
|
|
|
1438
1438
|
}, [mergedProps.disabled, plasmicUpdateVariant]);
|
|
1439
1439
|
return /* @__PURE__ */ React__default.default.createElement(
|
|
1440
1440
|
reactAriaComponents.Input,
|
|
1441
|
-
__spreadValues$
|
|
1441
|
+
__spreadValues$j({
|
|
1442
1442
|
autoComplete: resolveAutoComplete(autoComplete),
|
|
1443
1443
|
onHoverChange: (isHovered) => {
|
|
1444
1444
|
plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
|
|
@@ -1476,7 +1476,7 @@ function registerInput(loader, overrides) {
|
|
|
1476
1476
|
borderColor: "black",
|
|
1477
1477
|
padding: "4px 10px"
|
|
1478
1478
|
},
|
|
1479
|
-
props: __spreadValues$
|
|
1479
|
+
props: __spreadValues$j({}, getCommonProps("Input", [
|
|
1480
1480
|
"name",
|
|
1481
1481
|
"disabled",
|
|
1482
1482
|
"readOnly",
|
|
@@ -1507,7 +1507,7 @@ function registerInput(loader, overrides) {
|
|
|
1507
1507
|
"onInput"
|
|
1508
1508
|
])),
|
|
1509
1509
|
states: {
|
|
1510
|
-
value: __spreadValues$
|
|
1510
|
+
value: __spreadValues$j({
|
|
1511
1511
|
type: "writable",
|
|
1512
1512
|
valueProp: "value",
|
|
1513
1513
|
onChangeProp: "onChange",
|
|
@@ -1524,30 +1524,30 @@ function registerInput(loader, overrides) {
|
|
|
1524
1524
|
);
|
|
1525
1525
|
}
|
|
1526
1526
|
|
|
1527
|
-
var __defProp$
|
|
1528
|
-
var __getOwnPropSymbols$
|
|
1529
|
-
var __hasOwnProp$
|
|
1530
|
-
var __propIsEnum$
|
|
1531
|
-
var __defNormalProp$
|
|
1532
|
-
var __spreadValues$
|
|
1527
|
+
var __defProp$i = Object.defineProperty;
|
|
1528
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
1529
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
1530
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
1531
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1532
|
+
var __spreadValues$i = (a, b) => {
|
|
1533
1533
|
for (var prop in b || (b = {}))
|
|
1534
|
-
if (__hasOwnProp$
|
|
1535
|
-
__defNormalProp$
|
|
1536
|
-
if (__getOwnPropSymbols$
|
|
1537
|
-
for (var prop of __getOwnPropSymbols$
|
|
1538
|
-
if (__propIsEnum$
|
|
1539
|
-
__defNormalProp$
|
|
1534
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
1535
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
1536
|
+
if (__getOwnPropSymbols$i)
|
|
1537
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
1538
|
+
if (__propIsEnum$i.call(b, prop))
|
|
1539
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
1540
1540
|
}
|
|
1541
1541
|
return a;
|
|
1542
1542
|
};
|
|
1543
|
-
var __objRest$
|
|
1543
|
+
var __objRest$h = (source, exclude) => {
|
|
1544
1544
|
var target = {};
|
|
1545
1545
|
for (var prop in source)
|
|
1546
|
-
if (__hasOwnProp$
|
|
1546
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1547
1547
|
target[prop] = source[prop];
|
|
1548
|
-
if (source != null && __getOwnPropSymbols$
|
|
1549
|
-
for (var prop of __getOwnPropSymbols$
|
|
1550
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1548
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
1549
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
1550
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
1551
1551
|
target[prop] = source[prop];
|
|
1552
1552
|
}
|
|
1553
1553
|
return target;
|
|
@@ -1564,7 +1564,7 @@ const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickA
|
|
|
1564
1564
|
LIST_BOX_ITEM_VARIANTS
|
|
1565
1565
|
);
|
|
1566
1566
|
function BaseListBoxItem(props) {
|
|
1567
|
-
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$
|
|
1567
|
+
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$h(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
|
|
1568
1568
|
const listboxContext = React__default.default.useContext(PlasmicListBoxContext);
|
|
1569
1569
|
const isStandalone = !listboxContext;
|
|
1570
1570
|
const [registeredId, setRegisteredId] = React.useState();
|
|
@@ -1596,7 +1596,7 @@ function BaseListBoxItem(props) {
|
|
|
1596
1596
|
return void 0;
|
|
1597
1597
|
})()
|
|
1598
1598
|
});
|
|
1599
|
-
const listboxItem = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ListBoxItem, __spreadValues$
|
|
1599
|
+
const listboxItem = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ListBoxItem, __spreadValues$i({ key: registeredId, id: registeredId }, rest), ({
|
|
1600
1600
|
isHovered,
|
|
1601
1601
|
isPressed,
|
|
1602
1602
|
isFocused,
|
|
@@ -1695,39 +1695,39 @@ function registerListBoxItem(loader, overrides) {
|
|
|
1695
1695
|
);
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
|
-
var __defProp$
|
|
1699
|
-
var __getOwnPropSymbols$
|
|
1700
|
-
var __hasOwnProp$
|
|
1701
|
-
var __propIsEnum$
|
|
1702
|
-
var __defNormalProp$
|
|
1703
|
-
var __spreadValues$
|
|
1698
|
+
var __defProp$h = Object.defineProperty;
|
|
1699
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
1700
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
1701
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
1702
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1703
|
+
var __spreadValues$h = (a, b) => {
|
|
1704
1704
|
for (var prop in b || (b = {}))
|
|
1705
|
-
if (__hasOwnProp$
|
|
1706
|
-
__defNormalProp$
|
|
1707
|
-
if (__getOwnPropSymbols$
|
|
1708
|
-
for (var prop of __getOwnPropSymbols$
|
|
1709
|
-
if (__propIsEnum$
|
|
1710
|
-
__defNormalProp$
|
|
1705
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
1706
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
1707
|
+
if (__getOwnPropSymbols$h)
|
|
1708
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
1709
|
+
if (__propIsEnum$h.call(b, prop))
|
|
1710
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
1711
1711
|
}
|
|
1712
1712
|
return a;
|
|
1713
1713
|
};
|
|
1714
|
-
var __objRest$
|
|
1714
|
+
var __objRest$g = (source, exclude) => {
|
|
1715
1715
|
var target = {};
|
|
1716
1716
|
for (var prop in source)
|
|
1717
|
-
if (__hasOwnProp$
|
|
1717
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1718
1718
|
target[prop] = source[prop];
|
|
1719
|
-
if (source != null && __getOwnPropSymbols$
|
|
1720
|
-
for (var prop of __getOwnPropSymbols$
|
|
1721
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1719
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
1720
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
1721
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
1722
1722
|
target[prop] = source[prop];
|
|
1723
1723
|
}
|
|
1724
1724
|
return target;
|
|
1725
1725
|
};
|
|
1726
1726
|
function BaseSection(props) {
|
|
1727
|
-
const _a = props, { header, items } = _a, rest = __objRest$
|
|
1727
|
+
const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
|
|
1728
1728
|
const contextProps = React__default.default.useContext(PlasmicListBoxContext);
|
|
1729
1729
|
const mergedProps = utils.mergeProps(contextProps, rest);
|
|
1730
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Section, __spreadValues$
|
|
1730
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, null, header), items);
|
|
1731
1731
|
}
|
|
1732
1732
|
function registerSection(loader, overrides) {
|
|
1733
1733
|
return registerComponentHelper(
|
|
@@ -1764,30 +1764,30 @@ function registerSection(loader, overrides) {
|
|
|
1764
1764
|
);
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
var __defProp$
|
|
1768
|
-
var __getOwnPropSymbols$
|
|
1769
|
-
var __hasOwnProp$
|
|
1770
|
-
var __propIsEnum$
|
|
1771
|
-
var __defNormalProp$
|
|
1772
|
-
var __spreadValues$
|
|
1767
|
+
var __defProp$g = Object.defineProperty;
|
|
1768
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
1769
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
1770
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
1771
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1772
|
+
var __spreadValues$g = (a, b) => {
|
|
1773
1773
|
for (var prop in b || (b = {}))
|
|
1774
|
-
if (__hasOwnProp$
|
|
1775
|
-
__defNormalProp$
|
|
1776
|
-
if (__getOwnPropSymbols$
|
|
1777
|
-
for (var prop of __getOwnPropSymbols$
|
|
1778
|
-
if (__propIsEnum$
|
|
1779
|
-
__defNormalProp$
|
|
1774
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
1775
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
1776
|
+
if (__getOwnPropSymbols$g)
|
|
1777
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
1778
|
+
if (__propIsEnum$g.call(b, prop))
|
|
1779
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
1780
1780
|
}
|
|
1781
1781
|
return a;
|
|
1782
1782
|
};
|
|
1783
|
-
var __objRest$
|
|
1783
|
+
var __objRest$f = (source, exclude) => {
|
|
1784
1784
|
var target = {};
|
|
1785
1785
|
for (var prop in source)
|
|
1786
|
-
if (__hasOwnProp$
|
|
1786
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1787
1787
|
target[prop] = source[prop];
|
|
1788
|
-
if (source != null && __getOwnPropSymbols$
|
|
1789
|
-
for (var prop of __getOwnPropSymbols$
|
|
1790
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1788
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
1789
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
1790
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
1791
1791
|
target[prop] = source[prop];
|
|
1792
1792
|
}
|
|
1793
1793
|
return target;
|
|
@@ -1810,7 +1810,7 @@ function BaseListBox(props) {
|
|
|
1810
1810
|
children,
|
|
1811
1811
|
selectedKeys,
|
|
1812
1812
|
defaultSelectedKeys
|
|
1813
|
-
} = _a, rest = __objRest$
|
|
1813
|
+
} = _a, rest = __objRest$f(_a, [
|
|
1814
1814
|
"setControlContextData",
|
|
1815
1815
|
"children",
|
|
1816
1816
|
"selectedKeys",
|
|
@@ -1839,7 +1839,7 @@ function BaseListBox(props) {
|
|
|
1839
1839
|
}, []);
|
|
1840
1840
|
const listbox = /* @__PURE__ */ React__default.default.createElement(
|
|
1841
1841
|
reactAriaComponents.ListBox,
|
|
1842
|
-
__spreadValues$
|
|
1842
|
+
__spreadValues$g({
|
|
1843
1843
|
selectedKeys: normalizeSelectedKeys(selectedKeys),
|
|
1844
1844
|
defaultSelectedKeys: normalizeSelectedKeys(defaultSelectedKeys)
|
|
1845
1845
|
}, rest),
|
|
@@ -2008,7 +2008,7 @@ function registerListBox(loader, overrides) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
},
|
|
2010
2010
|
states: {
|
|
2011
|
-
selectedKey: __spreadValues$
|
|
2011
|
+
selectedKey: __spreadValues$g({
|
|
2012
2012
|
type: "writable",
|
|
2013
2013
|
valueProp: "selectedKeys",
|
|
2014
2014
|
onChangeProp: "onSelectionChange",
|
|
@@ -2026,45 +2026,46 @@ function registerListBox(loader, overrides) {
|
|
|
2026
2026
|
);
|
|
2027
2027
|
}
|
|
2028
2028
|
|
|
2029
|
-
var __defProp$
|
|
2030
|
-
var __getOwnPropSymbols$
|
|
2031
|
-
var __hasOwnProp$
|
|
2032
|
-
var __propIsEnum$
|
|
2033
|
-
var __defNormalProp$
|
|
2034
|
-
var __spreadValues$
|
|
2029
|
+
var __defProp$f = Object.defineProperty;
|
|
2030
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
2031
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
2032
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
2033
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2034
|
+
var __spreadValues$f = (a, b) => {
|
|
2035
2035
|
for (var prop in b || (b = {}))
|
|
2036
|
-
if (__hasOwnProp$
|
|
2037
|
-
__defNormalProp$
|
|
2038
|
-
if (__getOwnPropSymbols$
|
|
2039
|
-
for (var prop of __getOwnPropSymbols$
|
|
2040
|
-
if (__propIsEnum$
|
|
2041
|
-
__defNormalProp$
|
|
2036
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
2037
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
2038
|
+
if (__getOwnPropSymbols$f)
|
|
2039
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
2040
|
+
if (__propIsEnum$f.call(b, prop))
|
|
2041
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
2042
2042
|
}
|
|
2043
2043
|
return a;
|
|
2044
2044
|
};
|
|
2045
|
-
var __objRest$
|
|
2045
|
+
var __objRest$e = (source, exclude) => {
|
|
2046
2046
|
var target = {};
|
|
2047
2047
|
for (var prop in source)
|
|
2048
|
-
if (__hasOwnProp$
|
|
2048
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2049
2049
|
target[prop] = source[prop];
|
|
2050
|
-
if (source != null && __getOwnPropSymbols$
|
|
2051
|
-
for (var prop of __getOwnPropSymbols$
|
|
2052
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2050
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
2051
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
2052
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
2053
2053
|
target[prop] = source[prop];
|
|
2054
2054
|
}
|
|
2055
2055
|
return target;
|
|
2056
2056
|
};
|
|
2057
2057
|
function BasePopover(props) {
|
|
2058
|
-
|
|
2058
|
+
var _b;
|
|
2059
|
+
const _a = props, { resetClassName, setControlContextData } = _a, restProps = __objRest$e(_a, ["resetClassName", "setControlContextData"]);
|
|
2059
2060
|
const isStandalone = !React__default.default.useContext(reactAriaComponents.PopoverContext);
|
|
2060
2061
|
const context = React__default.default.useContext(PlasmicPopoverContext);
|
|
2061
|
-
const isInsideSelect = !!React__default.default.useContext(reactAriaComponents.SelectContext);
|
|
2062
2062
|
const triggerRef = React__default.default.useRef(null);
|
|
2063
2063
|
const isEditMode = !!host.usePlasmicCanvasContext();
|
|
2064
|
-
const defaultShouldFlip = isInsideSelect ? false : true;
|
|
2065
2064
|
const mergedProps = utils.mergeProps(
|
|
2066
|
-
{
|
|
2067
|
-
|
|
2065
|
+
{
|
|
2066
|
+
isOpen: context == null ? void 0 : context.isOpen,
|
|
2067
|
+
shouldFlip: context == null ? void 0 : context.defaultShouldFlip
|
|
2068
|
+
},
|
|
2068
2069
|
/**
|
|
2069
2070
|
* isNonModal: Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies. *
|
|
2070
2071
|
*
|
|
@@ -2081,9 +2082,9 @@ function BasePopover(props) {
|
|
|
2081
2082
|
} : null
|
|
2082
2083
|
);
|
|
2083
2084
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
2084
|
-
defaultShouldFlip
|
|
2085
|
+
defaultShouldFlip: (_b = context == null ? void 0 : context.defaultShouldFlip) != null ? _b : true
|
|
2085
2086
|
});
|
|
2086
|
-
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isStandalone && /* @__PURE__ */ React__default.default.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Popover, __spreadValues$
|
|
2087
|
+
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isStandalone && /* @__PURE__ */ React__default.default.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Popover, __spreadValues$f({}, mergedProps)));
|
|
2087
2088
|
}
|
|
2088
2089
|
const POPOVER_COMPONENT_NAME = makeComponentName("popover");
|
|
2089
2090
|
const POPOVER_ARROW_IMG = {
|
|
@@ -2157,10 +2158,7 @@ function registerPopover(loader, overrides) {
|
|
|
2157
2158
|
shouldFlip: {
|
|
2158
2159
|
type: "boolean",
|
|
2159
2160
|
description: "Whether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.",
|
|
2160
|
-
defaultValueHint: (_props, ctx) =>
|
|
2161
|
-
var _a;
|
|
2162
|
-
return (_a = ctx == null ? void 0 : ctx.defaultShouldFlip) != null ? _a : true;
|
|
2163
|
-
}
|
|
2161
|
+
defaultValueHint: (_props, ctx) => ctx == null ? void 0 : ctx.defaultShouldFlip
|
|
2164
2162
|
},
|
|
2165
2163
|
placement: {
|
|
2166
2164
|
type: "choice",
|
|
@@ -2186,40 +2184,40 @@ function registerPopover(loader, overrides) {
|
|
|
2186
2184
|
);
|
|
2187
2185
|
}
|
|
2188
2186
|
|
|
2189
|
-
var __defProp$
|
|
2187
|
+
var __defProp$e = Object.defineProperty;
|
|
2190
2188
|
var __defProps$8 = Object.defineProperties;
|
|
2191
2189
|
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
2192
|
-
var __getOwnPropSymbols$
|
|
2193
|
-
var __hasOwnProp$
|
|
2194
|
-
var __propIsEnum$
|
|
2195
|
-
var __defNormalProp$
|
|
2196
|
-
var __spreadValues$
|
|
2190
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
2191
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
2192
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
2193
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2194
|
+
var __spreadValues$e = (a, b) => {
|
|
2197
2195
|
for (var prop in b || (b = {}))
|
|
2198
|
-
if (__hasOwnProp$
|
|
2199
|
-
__defNormalProp$
|
|
2200
|
-
if (__getOwnPropSymbols$
|
|
2201
|
-
for (var prop of __getOwnPropSymbols$
|
|
2202
|
-
if (__propIsEnum$
|
|
2203
|
-
__defNormalProp$
|
|
2196
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
2197
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
2198
|
+
if (__getOwnPropSymbols$e)
|
|
2199
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
2200
|
+
if (__propIsEnum$e.call(b, prop))
|
|
2201
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
2204
2202
|
}
|
|
2205
2203
|
return a;
|
|
2206
2204
|
};
|
|
2207
2205
|
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
2208
|
-
var __objRest$
|
|
2206
|
+
var __objRest$d = (source, exclude) => {
|
|
2209
2207
|
var target = {};
|
|
2210
2208
|
for (var prop in source)
|
|
2211
|
-
if (__hasOwnProp$
|
|
2209
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2212
2210
|
target[prop] = source[prop];
|
|
2213
|
-
if (source != null && __getOwnPropSymbols$
|
|
2214
|
-
for (var prop of __getOwnPropSymbols$
|
|
2215
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2211
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
2212
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
2213
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
2216
2214
|
target[prop] = source[prop];
|
|
2217
2215
|
}
|
|
2218
2216
|
return target;
|
|
2219
2217
|
};
|
|
2220
2218
|
const COMBOBOX_NAME = makeComponentName("combobox");
|
|
2221
2219
|
function BaseComboBox(props) {
|
|
2222
|
-
const _a = props, { children, setControlContextData, isOpen } = _a, rest = __objRest$
|
|
2220
|
+
const _a = props, { children, setControlContextData, isOpen } = _a, rest = __objRest$d(_a, ["children", "setControlContextData", "isOpen"]);
|
|
2223
2221
|
const idManager = React.useMemo(() => new ListBoxItemIdManager(), []);
|
|
2224
2222
|
React.useEffect(() => {
|
|
2225
2223
|
idManager.subscribe((ids) => {
|
|
@@ -2228,15 +2226,21 @@ function BaseComboBox(props) {
|
|
|
2228
2226
|
});
|
|
2229
2227
|
});
|
|
2230
2228
|
}, []);
|
|
2231
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ComboBox, __spreadValues$
|
|
2232
|
-
|
|
2229
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React__default.default.createElement(
|
|
2230
|
+
PlasmicPopoverContext.Provider,
|
|
2233
2231
|
{
|
|
2234
|
-
value: {
|
|
2235
|
-
idManager
|
|
2236
|
-
}
|
|
2232
|
+
value: { isOpen, defaultShouldFlip: false }
|
|
2237
2233
|
},
|
|
2238
|
-
/* @__PURE__ */ React__default.default.createElement(
|
|
2239
|
-
|
|
2234
|
+
/* @__PURE__ */ React__default.default.createElement(
|
|
2235
|
+
PlasmicListBoxContext.Provider,
|
|
2236
|
+
{
|
|
2237
|
+
value: {
|
|
2238
|
+
idManager
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
/* @__PURE__ */ React__default.default.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, children)
|
|
2242
|
+
)
|
|
2243
|
+
));
|
|
2240
2244
|
}
|
|
2241
2245
|
function registerComboBox(loader) {
|
|
2242
2246
|
registerComponentHelper(loader, BaseComboBox, {
|
|
@@ -2244,7 +2248,7 @@ function registerComboBox(loader) {
|
|
|
2244
2248
|
displayName: "Aria ComboBox",
|
|
2245
2249
|
importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
|
|
2246
2250
|
importName: "BaseComboBox",
|
|
2247
|
-
props: __spreadProps$8(__spreadValues$
|
|
2251
|
+
props: __spreadProps$8(__spreadValues$e({}, getCommonProps("ComboBox", [
|
|
2248
2252
|
"name",
|
|
2249
2253
|
"aria-label",
|
|
2250
2254
|
"placeholder",
|
|
@@ -2378,37 +2382,37 @@ function registerComboBox(loader) {
|
|
|
2378
2382
|
});
|
|
2379
2383
|
}
|
|
2380
2384
|
|
|
2381
|
-
var __defProp$
|
|
2382
|
-
var __getOwnPropSymbols$
|
|
2383
|
-
var __hasOwnProp$
|
|
2384
|
-
var __propIsEnum$
|
|
2385
|
-
var __defNormalProp$
|
|
2386
|
-
var __spreadValues$
|
|
2385
|
+
var __defProp$d = Object.defineProperty;
|
|
2386
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
2387
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
2388
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
2389
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2390
|
+
var __spreadValues$d = (a, b) => {
|
|
2387
2391
|
for (var prop in b || (b = {}))
|
|
2388
|
-
if (__hasOwnProp$
|
|
2389
|
-
__defNormalProp$
|
|
2390
|
-
if (__getOwnPropSymbols$
|
|
2391
|
-
for (var prop of __getOwnPropSymbols$
|
|
2392
|
-
if (__propIsEnum$
|
|
2393
|
-
__defNormalProp$
|
|
2392
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
2393
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2394
|
+
if (__getOwnPropSymbols$d)
|
|
2395
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
2396
|
+
if (__propIsEnum$d.call(b, prop))
|
|
2397
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2394
2398
|
}
|
|
2395
2399
|
return a;
|
|
2396
2400
|
};
|
|
2397
|
-
var __objRest$
|
|
2401
|
+
var __objRest$c = (source, exclude) => {
|
|
2398
2402
|
var target = {};
|
|
2399
2403
|
for (var prop in source)
|
|
2400
|
-
if (__hasOwnProp$
|
|
2404
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2401
2405
|
target[prop] = source[prop];
|
|
2402
|
-
if (source != null && __getOwnPropSymbols$
|
|
2403
|
-
for (var prop of __getOwnPropSymbols$
|
|
2404
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2406
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
2407
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
2408
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
2405
2409
|
target[prop] = source[prop];
|
|
2406
2410
|
}
|
|
2407
2411
|
return target;
|
|
2408
2412
|
};
|
|
2409
2413
|
function BaseHeading(_a) {
|
|
2410
|
-
var _b = _a, { children } = _b, rest = __objRest$
|
|
2411
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Heading, __spreadValues$
|
|
2414
|
+
var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
|
|
2415
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Heading, __spreadValues$d({}, rest), children);
|
|
2412
2416
|
}
|
|
2413
2417
|
const HEADING_COMPONENT_NAME = makeComponentName("heading");
|
|
2414
2418
|
function registerHeading(loader, overrides) {
|
|
@@ -2446,33 +2450,33 @@ function registerHeading(loader, overrides) {
|
|
|
2446
2450
|
);
|
|
2447
2451
|
}
|
|
2448
2452
|
|
|
2449
|
-
var __defProp$
|
|
2453
|
+
var __defProp$c = Object.defineProperty;
|
|
2450
2454
|
var __defProps$7 = Object.defineProperties;
|
|
2451
2455
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
2452
|
-
var __getOwnPropSymbols$
|
|
2453
|
-
var __hasOwnProp$
|
|
2454
|
-
var __propIsEnum$
|
|
2455
|
-
var __defNormalProp$
|
|
2456
|
-
var __spreadValues$
|
|
2456
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
2457
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
2458
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
2459
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2460
|
+
var __spreadValues$c = (a, b) => {
|
|
2457
2461
|
for (var prop in b || (b = {}))
|
|
2458
|
-
if (__hasOwnProp$
|
|
2459
|
-
__defNormalProp$
|
|
2460
|
-
if (__getOwnPropSymbols$
|
|
2461
|
-
for (var prop of __getOwnPropSymbols$
|
|
2462
|
-
if (__propIsEnum$
|
|
2463
|
-
__defNormalProp$
|
|
2462
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
2463
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
2464
|
+
if (__getOwnPropSymbols$c)
|
|
2465
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
2466
|
+
if (__propIsEnum$c.call(b, prop))
|
|
2467
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
2464
2468
|
}
|
|
2465
2469
|
return a;
|
|
2466
2470
|
};
|
|
2467
2471
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
2468
|
-
var __objRest$
|
|
2472
|
+
var __objRest$b = (source, exclude) => {
|
|
2469
2473
|
var target = {};
|
|
2470
2474
|
for (var prop in source)
|
|
2471
|
-
if (__hasOwnProp$
|
|
2475
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2472
2476
|
target[prop] = source[prop];
|
|
2473
|
-
if (source != null && __getOwnPropSymbols$
|
|
2474
|
-
for (var prop of __getOwnPropSymbols$
|
|
2475
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2477
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
2478
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
2479
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
2476
2480
|
target[prop] = source[prop];
|
|
2477
2481
|
}
|
|
2478
2482
|
return target;
|
|
@@ -2489,7 +2493,7 @@ const BaseModal = React.forwardRef(
|
|
|
2489
2493
|
isOpen,
|
|
2490
2494
|
resetClassName,
|
|
2491
2495
|
setControlContextData
|
|
2492
|
-
} = _a, rest = __objRest$
|
|
2496
|
+
} = _a, rest = __objRest$b(_a, [
|
|
2493
2497
|
"children",
|
|
2494
2498
|
"modalOverlayClass",
|
|
2495
2499
|
"className",
|
|
@@ -2520,7 +2524,7 @@ const BaseModal = React.forwardRef(
|
|
|
2520
2524
|
const bodyInPreview = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Dialog, { style: INLINE_STYLES }, children);
|
|
2521
2525
|
return /* @__PURE__ */ React__default.default.createElement(
|
|
2522
2526
|
reactAriaComponents.ModalOverlay,
|
|
2523
|
-
__spreadProps$7(__spreadValues$
|
|
2527
|
+
__spreadProps$7(__spreadValues$c({}, mergedProps), {
|
|
2524
2528
|
className: `${resetClassName} ${modalOverlayClass}`
|
|
2525
2529
|
}),
|
|
2526
2530
|
/* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Modal, { className }, isCanvas ? bodyInCanvas : bodyInPreview)
|
|
@@ -2641,37 +2645,37 @@ function registerModal(loader, overrides) {
|
|
|
2641
2645
|
);
|
|
2642
2646
|
}
|
|
2643
2647
|
|
|
2644
|
-
var __defProp$
|
|
2645
|
-
var __getOwnPropSymbols$
|
|
2646
|
-
var __hasOwnProp$
|
|
2647
|
-
var __propIsEnum$
|
|
2648
|
-
var __defNormalProp$
|
|
2649
|
-
var __spreadValues$
|
|
2648
|
+
var __defProp$b = Object.defineProperty;
|
|
2649
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
2650
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
2651
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
2652
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2653
|
+
var __spreadValues$b = (a, b) => {
|
|
2650
2654
|
for (var prop in b || (b = {}))
|
|
2651
|
-
if (__hasOwnProp$
|
|
2652
|
-
__defNormalProp$
|
|
2653
|
-
if (__getOwnPropSymbols$
|
|
2654
|
-
for (var prop of __getOwnPropSymbols$
|
|
2655
|
-
if (__propIsEnum$
|
|
2656
|
-
__defNormalProp$
|
|
2655
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
2656
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
2657
|
+
if (__getOwnPropSymbols$b)
|
|
2658
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
2659
|
+
if (__propIsEnum$b.call(b, prop))
|
|
2660
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
2657
2661
|
}
|
|
2658
2662
|
return a;
|
|
2659
2663
|
};
|
|
2660
|
-
var __objRest$
|
|
2664
|
+
var __objRest$a = (source, exclude) => {
|
|
2661
2665
|
var target = {};
|
|
2662
2666
|
for (var prop in source)
|
|
2663
|
-
if (__hasOwnProp$
|
|
2667
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2664
2668
|
target[prop] = source[prop];
|
|
2665
|
-
if (source != null && __getOwnPropSymbols$
|
|
2666
|
-
for (var prop of __getOwnPropSymbols$
|
|
2667
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2669
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
2670
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
2671
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
2668
2672
|
target[prop] = source[prop];
|
|
2669
2673
|
}
|
|
2670
2674
|
return target;
|
|
2671
2675
|
};
|
|
2672
2676
|
function BaseDialogTrigger(props) {
|
|
2673
|
-
const _a = props, { trigger, dialog } = _a, rest = __objRest$
|
|
2674
|
-
return /* @__PURE__ */ React__default.default.createElement(PlasmicDialogTriggerContext.Provider, { value: props }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.DialogTrigger, __spreadValues$
|
|
2677
|
+
const _a = props, { trigger, dialog } = _a, rest = __objRest$a(_a, ["trigger", "dialog"]);
|
|
2678
|
+
return /* @__PURE__ */ React__default.default.createElement(PlasmicDialogTriggerContext.Provider, { value: props }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.DialogTrigger, __spreadValues$b({}, rest), trigger, dialog));
|
|
2675
2679
|
}
|
|
2676
2680
|
function registerDialogTrigger(loader, overrides) {
|
|
2677
2681
|
registerComponentHelper(
|
|
@@ -2731,89 +2735,6 @@ function registerDialogTrigger(loader, overrides) {
|
|
|
2731
2735
|
);
|
|
2732
2736
|
}
|
|
2733
2737
|
|
|
2734
|
-
var __defProp$b = Object.defineProperty;
|
|
2735
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
2736
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
2737
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
2738
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2739
|
-
var __spreadValues$b = (a, b) => {
|
|
2740
|
-
for (var prop in b || (b = {}))
|
|
2741
|
-
if (__hasOwnProp$b.call(b, prop))
|
|
2742
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
2743
|
-
if (__getOwnPropSymbols$b)
|
|
2744
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
2745
|
-
if (__propIsEnum$b.call(b, prop))
|
|
2746
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
2747
|
-
}
|
|
2748
|
-
return a;
|
|
2749
|
-
};
|
|
2750
|
-
var __objRest$a = (source, exclude) => {
|
|
2751
|
-
var target = {};
|
|
2752
|
-
for (var prop in source)
|
|
2753
|
-
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2754
|
-
target[prop] = source[prop];
|
|
2755
|
-
if (source != null && __getOwnPropSymbols$b)
|
|
2756
|
-
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
2757
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
2758
|
-
target[prop] = source[prop];
|
|
2759
|
-
}
|
|
2760
|
-
return target;
|
|
2761
|
-
};
|
|
2762
|
-
function BaseForm(props) {
|
|
2763
|
-
const _a = props, { onSubmit, children } = _a, rest = __objRest$a(_a, ["onSubmit", "children"]);
|
|
2764
|
-
return /* @__PURE__ */ React__default.default.createElement(
|
|
2765
|
-
reactAriaComponents.Form,
|
|
2766
|
-
__spreadValues$b({
|
|
2767
|
-
onSubmit: (e) => {
|
|
2768
|
-
e.preventDefault();
|
|
2769
|
-
const formData = new FormData(e.currentTarget);
|
|
2770
|
-
const formValues = {};
|
|
2771
|
-
formData.forEach((value, key) => {
|
|
2772
|
-
const field = e.currentTarget.elements.namedItem(key);
|
|
2773
|
-
if (field instanceof RadioNodeList && Array.from(field.values()).every(
|
|
2774
|
-
(f) => f.type === "checkbox"
|
|
2775
|
-
)) {
|
|
2776
|
-
formValues[key] = formData.getAll(key);
|
|
2777
|
-
} else {
|
|
2778
|
-
field.type;
|
|
2779
|
-
formValues[key] = formData.get(key);
|
|
2780
|
-
}
|
|
2781
|
-
});
|
|
2782
|
-
onSubmit == null ? void 0 : onSubmit(formValues);
|
|
2783
|
-
}
|
|
2784
|
-
}, rest),
|
|
2785
|
-
children
|
|
2786
|
-
);
|
|
2787
|
-
}
|
|
2788
|
-
function registerForm(loader, overrides) {
|
|
2789
|
-
registerComponentHelper(
|
|
2790
|
-
loader,
|
|
2791
|
-
BaseForm,
|
|
2792
|
-
{
|
|
2793
|
-
name: makeComponentName("form"),
|
|
2794
|
-
displayName: "Aria Form",
|
|
2795
|
-
importPath: "@plasmicpkgs/react-aria/skinny/registerForm",
|
|
2796
|
-
importName: "BaseForm",
|
|
2797
|
-
props: {
|
|
2798
|
-
children: {
|
|
2799
|
-
type: "slot",
|
|
2800
|
-
mergeWithParent: true
|
|
2801
|
-
},
|
|
2802
|
-
onSubmit: {
|
|
2803
|
-
type: "eventHandler",
|
|
2804
|
-
argTypes: [{ name: "data", type: "object" }]
|
|
2805
|
-
},
|
|
2806
|
-
onReset: {
|
|
2807
|
-
type: "eventHandler",
|
|
2808
|
-
argTypes: []
|
|
2809
|
-
}
|
|
2810
|
-
},
|
|
2811
|
-
trapsFocus: true
|
|
2812
|
-
},
|
|
2813
|
-
overrides
|
|
2814
|
-
);
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
2738
|
var __defProp$a = Object.defineProperty;
|
|
2818
2739
|
var __defProps$6 = Object.defineProperties;
|
|
2819
2740
|
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
@@ -3185,15 +3106,21 @@ function BaseSelect(props) {
|
|
|
3185
3106
|
"aria-label": ariaLabel,
|
|
3186
3107
|
isOpen: openProp
|
|
3187
3108
|
}, extractPlasmicDataProps(props)),
|
|
3188
|
-
/* @__PURE__ */ React__default.default.createElement(
|
|
3189
|
-
|
|
3109
|
+
/* @__PURE__ */ React__default.default.createElement(
|
|
3110
|
+
PlasmicPopoverContext.Provider,
|
|
3190
3111
|
{
|
|
3191
|
-
value: {
|
|
3192
|
-
idManager
|
|
3193
|
-
}
|
|
3112
|
+
value: { isOpen: openProp, defaultShouldFlip: false }
|
|
3194
3113
|
},
|
|
3195
|
-
|
|
3196
|
-
|
|
3114
|
+
/* @__PURE__ */ React__default.default.createElement(
|
|
3115
|
+
PlasmicListBoxContext.Provider,
|
|
3116
|
+
{
|
|
3117
|
+
value: {
|
|
3118
|
+
idManager
|
|
3119
|
+
}
|
|
3120
|
+
},
|
|
3121
|
+
children
|
|
3122
|
+
)
|
|
3123
|
+
)
|
|
3197
3124
|
);
|
|
3198
3125
|
}
|
|
3199
3126
|
function registerSelect(loader) {
|
|
@@ -4684,7 +4611,6 @@ function registerAll(loader) {
|
|
|
4684
4611
|
registerPopover(loader);
|
|
4685
4612
|
registerInput(loader);
|
|
4686
4613
|
registerSwitch(loader);
|
|
4687
|
-
registerForm(loader);
|
|
4688
4614
|
registerCheckbox(loader);
|
|
4689
4615
|
registerCheckboxGroup(loader);
|
|
4690
4616
|
registerRadioGroup(loader);
|