@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.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState, useMemo, forwardRef, useImperativeHandle, Component } from 'react';
|
|
2
|
-
import { Button, Checkbox, Text, FieldError, Label, CheckboxGroup, Input, ListBoxItem, ListBox, Section, Header, PopoverContext,
|
|
2
|
+
import { Button, Checkbox, Text, FieldError, Label, CheckboxGroup, Input, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, Heading, ModalOverlay, Modal, Dialog, DialogTrigger, Radio, RadioGroup, Select, SelectValue, SliderOutput, SliderThumb, Slider, SliderTrack, Switch, TextArea, TextField } from 'react-aria-components';
|
|
3
3
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
4
4
|
import { mergeProps, useTooltipTrigger } from 'react-aria';
|
|
5
5
|
import { mergeProps as mergeProps$1 } from '@react-aria/utils';
|
|
@@ -7,35 +7,35 @@ import { usePlasmicCanvasContext } from '@plasmicapp/host';
|
|
|
7
7
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
8
8
|
import { useTooltipTriggerState } from 'react-stately';
|
|
9
9
|
|
|
10
|
-
var __defProp$
|
|
10
|
+
var __defProp$r = Object.defineProperty;
|
|
11
11
|
var __defProps$f = Object.defineProperties;
|
|
12
12
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
13
|
-
var __getOwnPropSymbols$
|
|
14
|
-
var __hasOwnProp$
|
|
15
|
-
var __propIsEnum$
|
|
16
|
-
var __defNormalProp$
|
|
17
|
-
var __spreadValues$
|
|
13
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
14
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
16
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
|
+
var __spreadValues$r = (a, b) => {
|
|
18
18
|
for (var prop in b || (b = {}))
|
|
19
|
-
if (__hasOwnProp$
|
|
20
|
-
__defNormalProp$
|
|
21
|
-
if (__getOwnPropSymbols$
|
|
22
|
-
for (var prop of __getOwnPropSymbols$
|
|
23
|
-
if (__propIsEnum$
|
|
24
|
-
__defNormalProp$
|
|
19
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
20
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols$r)
|
|
22
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
23
|
+
if (__propIsEnum$r.call(b, prop))
|
|
24
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
25
25
|
}
|
|
26
26
|
return a;
|
|
27
27
|
};
|
|
28
28
|
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
29
29
|
function registerComponentHelper(loader, component, meta, overrides) {
|
|
30
30
|
var _a;
|
|
31
|
-
meta = __spreadProps$f(__spreadValues$
|
|
32
|
-
defaultStyles: __spreadValues$
|
|
31
|
+
meta = __spreadProps$f(__spreadValues$r({}, meta), {
|
|
32
|
+
defaultStyles: __spreadValues$r({
|
|
33
33
|
boxSizing: "border-box"
|
|
34
34
|
}, (_a = meta.defaultStyles) != null ? _a : {})
|
|
35
35
|
});
|
|
36
36
|
if (overrides) {
|
|
37
|
-
meta = __spreadProps$f(__spreadValues$
|
|
38
|
-
props: __spreadValues$
|
|
37
|
+
meta = __spreadProps$f(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
|
|
38
|
+
props: __spreadValues$r(__spreadValues$r({}, meta.props), overrides.props)
|
|
39
39
|
});
|
|
40
40
|
if (overrides.parentComponentName) {
|
|
41
41
|
meta.name = makeChildComponentName(
|
|
@@ -472,33 +472,33 @@ function pickAriaComponentVariants(keys) {
|
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
var __defProp$
|
|
475
|
+
var __defProp$q = Object.defineProperty;
|
|
476
476
|
var __defProps$e = Object.defineProperties;
|
|
477
477
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
478
|
-
var __getOwnPropSymbols$
|
|
479
|
-
var __hasOwnProp$
|
|
480
|
-
var __propIsEnum$
|
|
481
|
-
var __defNormalProp$
|
|
482
|
-
var __spreadValues$
|
|
478
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
479
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
480
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
481
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
482
|
+
var __spreadValues$q = (a, b) => {
|
|
483
483
|
for (var prop in b || (b = {}))
|
|
484
|
-
if (__hasOwnProp$
|
|
485
|
-
__defNormalProp$
|
|
486
|
-
if (__getOwnPropSymbols$
|
|
487
|
-
for (var prop of __getOwnPropSymbols$
|
|
488
|
-
if (__propIsEnum$
|
|
489
|
-
__defNormalProp$
|
|
484
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
485
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
486
|
+
if (__getOwnPropSymbols$q)
|
|
487
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
488
|
+
if (__propIsEnum$q.call(b, prop))
|
|
489
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
490
490
|
}
|
|
491
491
|
return a;
|
|
492
492
|
};
|
|
493
493
|
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
494
|
-
var __objRest$
|
|
494
|
+
var __objRest$o = (source, exclude) => {
|
|
495
495
|
var target = {};
|
|
496
496
|
for (var prop in source)
|
|
497
|
-
if (__hasOwnProp$
|
|
497
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
498
498
|
target[prop] = source[prop];
|
|
499
|
-
if (source != null && __getOwnPropSymbols$
|
|
500
|
-
for (var prop of __getOwnPropSymbols$
|
|
501
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
499
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
500
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
501
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
502
502
|
target[prop] = source[prop];
|
|
503
503
|
}
|
|
504
504
|
return target;
|
|
@@ -512,9 +512,9 @@ const BUTTON_VARIANTS = [
|
|
|
512
512
|
];
|
|
513
513
|
const { variants: variants$d, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(BUTTON_VARIANTS);
|
|
514
514
|
function BaseButton(props) {
|
|
515
|
-
const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
515
|
+
const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$o(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
|
|
516
516
|
const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
|
|
517
|
-
return /* @__PURE__ */ React.createElement(Button, __spreadValues$
|
|
517
|
+
return /* @__PURE__ */ React.createElement(Button, __spreadValues$q({ type }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$b(
|
|
518
518
|
children,
|
|
519
519
|
{
|
|
520
520
|
hovered: isHovered,
|
|
@@ -544,7 +544,7 @@ function registerButton(loader, overrides) {
|
|
|
544
544
|
padding: "2px 10px",
|
|
545
545
|
cursor: "pointer"
|
|
546
546
|
},
|
|
547
|
-
props: __spreadProps$e(__spreadValues$
|
|
547
|
+
props: __spreadProps$e(__spreadValues$q({}, getCommonProps("button", [
|
|
548
548
|
"autoFocus",
|
|
549
549
|
"isDisabled",
|
|
550
550
|
"aria-label"
|
|
@@ -595,33 +595,33 @@ const PlasmicListBoxContext = React.createContext(void 0);
|
|
|
595
595
|
React.createContext(void 0);
|
|
596
596
|
const PlasmicInputContext = React.createContext(void 0);
|
|
597
597
|
|
|
598
|
-
var __defProp$
|
|
598
|
+
var __defProp$p = Object.defineProperty;
|
|
599
599
|
var __defProps$d = Object.defineProperties;
|
|
600
600
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
601
|
-
var __getOwnPropSymbols$
|
|
602
|
-
var __hasOwnProp$
|
|
603
|
-
var __propIsEnum$
|
|
604
|
-
var __defNormalProp$
|
|
605
|
-
var __spreadValues$
|
|
601
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
602
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
603
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
604
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
605
|
+
var __spreadValues$p = (a, b) => {
|
|
606
606
|
for (var prop in b || (b = {}))
|
|
607
|
-
if (__hasOwnProp$
|
|
608
|
-
__defNormalProp$
|
|
609
|
-
if (__getOwnPropSymbols$
|
|
610
|
-
for (var prop of __getOwnPropSymbols$
|
|
611
|
-
if (__propIsEnum$
|
|
612
|
-
__defNormalProp$
|
|
607
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
608
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
609
|
+
if (__getOwnPropSymbols$p)
|
|
610
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
611
|
+
if (__propIsEnum$p.call(b, prop))
|
|
612
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
613
613
|
}
|
|
614
614
|
return a;
|
|
615
615
|
};
|
|
616
616
|
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
617
|
-
var __objRest$
|
|
617
|
+
var __objRest$n = (source, exclude) => {
|
|
618
618
|
var target = {};
|
|
619
619
|
for (var prop in source)
|
|
620
|
-
if (__hasOwnProp$
|
|
620
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
621
621
|
target[prop] = source[prop];
|
|
622
|
-
if (source != null && __getOwnPropSymbols$
|
|
623
|
-
for (var prop of __getOwnPropSymbols$
|
|
624
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
622
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
623
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
624
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
625
625
|
target[prop] = source[prop];
|
|
626
626
|
}
|
|
627
627
|
return target;
|
|
@@ -639,12 +639,12 @@ const CHECKBOX_VARIANTS = [
|
|
|
639
639
|
];
|
|
640
640
|
const { variants: variants$c, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
|
|
641
641
|
function BaseCheckbox(props) {
|
|
642
|
-
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$
|
|
642
|
+
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$n(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
|
|
643
643
|
const contextProps = React.useContext(PlasmicCheckboxGroupContext);
|
|
644
644
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
645
645
|
parent: contextProps
|
|
646
646
|
});
|
|
647
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Checkbox, __spreadValues$
|
|
647
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Checkbox, __spreadValues$p({}, rest), ({
|
|
648
648
|
isHovered,
|
|
649
649
|
isPressed,
|
|
650
650
|
isFocused,
|
|
@@ -724,7 +724,7 @@ function registerCheckbox(loader, overrides) {
|
|
|
724
724
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
|
|
725
725
|
importName: "BaseCheckbox",
|
|
726
726
|
variants: variants$c,
|
|
727
|
-
props: __spreadProps$d(__spreadValues$
|
|
727
|
+
props: __spreadProps$d(__spreadValues$p({}, getCommonProps("checkbox", [
|
|
728
728
|
"name",
|
|
729
729
|
"isDisabled",
|
|
730
730
|
"isReadOnly",
|
|
@@ -792,40 +792,40 @@ function registerCheckbox(loader, overrides) {
|
|
|
792
792
|
);
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
var __defProp$
|
|
795
|
+
var __defProp$o = Object.defineProperty;
|
|
796
796
|
var __defProps$c = Object.defineProperties;
|
|
797
797
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
798
|
-
var __getOwnPropSymbols$
|
|
799
|
-
var __hasOwnProp$
|
|
800
|
-
var __propIsEnum$
|
|
801
|
-
var __defNormalProp$
|
|
802
|
-
var __spreadValues$
|
|
798
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
799
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
800
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
801
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
802
|
+
var __spreadValues$o = (a, b) => {
|
|
803
803
|
for (var prop in b || (b = {}))
|
|
804
|
-
if (__hasOwnProp$
|
|
805
|
-
__defNormalProp$
|
|
806
|
-
if (__getOwnPropSymbols$
|
|
807
|
-
for (var prop of __getOwnPropSymbols$
|
|
808
|
-
if (__propIsEnum$
|
|
809
|
-
__defNormalProp$
|
|
804
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
805
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
806
|
+
if (__getOwnPropSymbols$o)
|
|
807
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
808
|
+
if (__propIsEnum$o.call(b, prop))
|
|
809
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
810
810
|
}
|
|
811
811
|
return a;
|
|
812
812
|
};
|
|
813
813
|
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
814
|
-
var __objRest$
|
|
814
|
+
var __objRest$m = (source, exclude) => {
|
|
815
815
|
var target = {};
|
|
816
816
|
for (var prop in source)
|
|
817
|
-
if (__hasOwnProp$
|
|
817
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
818
818
|
target[prop] = source[prop];
|
|
819
|
-
if (source != null && __getOwnPropSymbols$
|
|
820
|
-
for (var prop of __getOwnPropSymbols$
|
|
821
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
819
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
820
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
821
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
822
822
|
target[prop] = source[prop];
|
|
823
823
|
}
|
|
824
824
|
return target;
|
|
825
825
|
};
|
|
826
826
|
function BaseText(_a) {
|
|
827
|
-
var _b = _a, { children, slot, className } = _b, rest = __objRest$
|
|
828
|
-
return /* @__PURE__ */ React.createElement(Text, __spreadProps$c(__spreadValues$
|
|
827
|
+
var _b = _a, { children, slot, className } = _b, rest = __objRest$m(_b, ["children", "slot", "className"]);
|
|
828
|
+
return /* @__PURE__ */ React.createElement(Text, __spreadProps$c(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
|
|
829
829
|
}
|
|
830
830
|
const TEXT_COMPONENT_NAME = makeComponentName("text");
|
|
831
831
|
function registerText(loader, overrides) {
|
|
@@ -859,28 +859,28 @@ function registerText(loader, overrides) {
|
|
|
859
859
|
);
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
var __defProp$
|
|
862
|
+
var __defProp$n = Object.defineProperty;
|
|
863
863
|
var __defProps$b = Object.defineProperties;
|
|
864
864
|
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
865
|
-
var __getOwnPropSymbols$
|
|
866
|
-
var __hasOwnProp$
|
|
867
|
-
var __propIsEnum$
|
|
868
|
-
var __defNormalProp$
|
|
869
|
-
var __spreadValues$
|
|
865
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
866
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
867
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
868
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
869
|
+
var __spreadValues$n = (a, b) => {
|
|
870
870
|
for (var prop in b || (b = {}))
|
|
871
|
-
if (__hasOwnProp$
|
|
872
|
-
__defNormalProp$
|
|
873
|
-
if (__getOwnPropSymbols$
|
|
874
|
-
for (var prop of __getOwnPropSymbols$
|
|
875
|
-
if (__propIsEnum$
|
|
876
|
-
__defNormalProp$
|
|
871
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
872
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
873
|
+
if (__getOwnPropSymbols$n)
|
|
874
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
875
|
+
if (__propIsEnum$n.call(b, prop))
|
|
876
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
877
877
|
}
|
|
878
878
|
return a;
|
|
879
879
|
};
|
|
880
880
|
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
881
881
|
const DESCRIPTION_COMPONENT_NAME = makeComponentName("description");
|
|
882
882
|
function registerDescription(loader, overrides) {
|
|
883
|
-
return registerText(loader, __spreadProps$b(__spreadValues$
|
|
883
|
+
return registerText(loader, __spreadProps$b(__spreadValues$n({}, overrides), {
|
|
884
884
|
name: DESCRIPTION_COMPONENT_NAME,
|
|
885
885
|
displayName: "Aria Description",
|
|
886
886
|
props: {
|
|
@@ -893,30 +893,30 @@ function registerDescription(loader, overrides) {
|
|
|
893
893
|
}));
|
|
894
894
|
}
|
|
895
895
|
|
|
896
|
-
var __defProp$
|
|
897
|
-
var __getOwnPropSymbols$
|
|
898
|
-
var __hasOwnProp$
|
|
899
|
-
var __propIsEnum$
|
|
900
|
-
var __defNormalProp$
|
|
901
|
-
var __spreadValues$
|
|
896
|
+
var __defProp$m = Object.defineProperty;
|
|
897
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
898
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
899
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
900
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
901
|
+
var __spreadValues$m = (a, b) => {
|
|
902
902
|
for (var prop in b || (b = {}))
|
|
903
|
-
if (__hasOwnProp$
|
|
904
|
-
__defNormalProp$
|
|
905
|
-
if (__getOwnPropSymbols$
|
|
906
|
-
for (var prop of __getOwnPropSymbols$
|
|
907
|
-
if (__propIsEnum$
|
|
908
|
-
__defNormalProp$
|
|
903
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
904
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
905
|
+
if (__getOwnPropSymbols$m)
|
|
906
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
907
|
+
if (__propIsEnum$m.call(b, prop))
|
|
908
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
909
909
|
}
|
|
910
910
|
return a;
|
|
911
911
|
};
|
|
912
|
-
var __objRest$
|
|
912
|
+
var __objRest$l = (source, exclude) => {
|
|
913
913
|
var target = {};
|
|
914
914
|
for (var prop in source)
|
|
915
|
-
if (__hasOwnProp$
|
|
915
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
916
916
|
target[prop] = source[prop];
|
|
917
|
-
if (source != null && __getOwnPropSymbols$
|
|
918
|
-
for (var prop of __getOwnPropSymbols$
|
|
919
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
917
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
918
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
919
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
920
920
|
target[prop] = source[prop];
|
|
921
921
|
}
|
|
922
922
|
return target;
|
|
@@ -933,7 +933,7 @@ function BaseFieldError(_a) {
|
|
|
933
933
|
tooShort,
|
|
934
934
|
typeMismatch,
|
|
935
935
|
valueMissing
|
|
936
|
-
} = _b, rest = __objRest$
|
|
936
|
+
} = _b, rest = __objRest$l(_b, [
|
|
937
937
|
"badInput",
|
|
938
938
|
"customError",
|
|
939
939
|
"patternMismatch",
|
|
@@ -945,7 +945,7 @@ function BaseFieldError(_a) {
|
|
|
945
945
|
"typeMismatch",
|
|
946
946
|
"valueMissing"
|
|
947
947
|
]);
|
|
948
|
-
return /* @__PURE__ */ React.createElement(FieldError, __spreadValues$
|
|
948
|
+
return /* @__PURE__ */ React.createElement(FieldError, __spreadValues$m({}, rest), ({ validationDetails, validationErrors }) => {
|
|
949
949
|
if (validationDetails.badInput && badInput) {
|
|
950
950
|
return badInput;
|
|
951
951
|
}
|
|
@@ -1052,40 +1052,40 @@ function registerFieldError(loader, overrides) {
|
|
|
1052
1052
|
);
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
|
-
var __defProp$
|
|
1055
|
+
var __defProp$l = Object.defineProperty;
|
|
1056
1056
|
var __defProps$a = Object.defineProperties;
|
|
1057
1057
|
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
1058
|
-
var __getOwnPropSymbols$
|
|
1059
|
-
var __hasOwnProp$
|
|
1060
|
-
var __propIsEnum$
|
|
1061
|
-
var __defNormalProp$
|
|
1062
|
-
var __spreadValues$
|
|
1058
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
1059
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
1060
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
1061
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1062
|
+
var __spreadValues$l = (a, b) => {
|
|
1063
1063
|
for (var prop in b || (b = {}))
|
|
1064
|
-
if (__hasOwnProp$
|
|
1065
|
-
__defNormalProp$
|
|
1066
|
-
if (__getOwnPropSymbols$
|
|
1067
|
-
for (var prop of __getOwnPropSymbols$
|
|
1068
|
-
if (__propIsEnum$
|
|
1069
|
-
__defNormalProp$
|
|
1064
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
1065
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
1066
|
+
if (__getOwnPropSymbols$l)
|
|
1067
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
1068
|
+
if (__propIsEnum$l.call(b, prop))
|
|
1069
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
1070
1070
|
}
|
|
1071
1071
|
return a;
|
|
1072
1072
|
};
|
|
1073
1073
|
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
1074
|
-
var __objRest$
|
|
1074
|
+
var __objRest$k = (source, exclude) => {
|
|
1075
1075
|
var target = {};
|
|
1076
1076
|
for (var prop in source)
|
|
1077
|
-
if (__hasOwnProp$
|
|
1077
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1078
1078
|
target[prop] = source[prop];
|
|
1079
|
-
if (source != null && __getOwnPropSymbols$
|
|
1080
|
-
for (var prop of __getOwnPropSymbols$
|
|
1081
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1079
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
1080
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
1081
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
1082
1082
|
target[prop] = source[prop];
|
|
1083
1083
|
}
|
|
1084
1084
|
return target;
|
|
1085
1085
|
};
|
|
1086
1086
|
function BaseLabel(_a) {
|
|
1087
|
-
var _b = _a, { children, className } = _b, rest = __objRest$
|
|
1088
|
-
return /* @__PURE__ */ React.createElement(Label, __spreadProps$a(__spreadValues$
|
|
1087
|
+
var _b = _a, { children, className } = _b, rest = __objRest$k(_b, ["children", "className"]);
|
|
1088
|
+
return /* @__PURE__ */ React.createElement(Label, __spreadProps$a(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
|
|
1089
1089
|
}
|
|
1090
1090
|
const LABEL_COMPONENT_NAME = makeComponentName("label");
|
|
1091
1091
|
function registerLabel(loader, overrides) {
|
|
@@ -1116,33 +1116,33 @@ function registerLabel(loader, overrides) {
|
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
|
-
var __defProp$
|
|
1119
|
+
var __defProp$k = Object.defineProperty;
|
|
1120
1120
|
var __defProps$9 = Object.defineProperties;
|
|
1121
1121
|
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
1122
|
-
var __getOwnPropSymbols$
|
|
1123
|
-
var __hasOwnProp$
|
|
1124
|
-
var __propIsEnum$
|
|
1125
|
-
var __defNormalProp$
|
|
1126
|
-
var __spreadValues$
|
|
1122
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
1123
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
1124
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
1125
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1126
|
+
var __spreadValues$k = (a, b) => {
|
|
1127
1127
|
for (var prop in b || (b = {}))
|
|
1128
|
-
if (__hasOwnProp$
|
|
1129
|
-
__defNormalProp$
|
|
1130
|
-
if (__getOwnPropSymbols$
|
|
1131
|
-
for (var prop of __getOwnPropSymbols$
|
|
1132
|
-
if (__propIsEnum$
|
|
1133
|
-
__defNormalProp$
|
|
1128
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
1129
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
1130
|
+
if (__getOwnPropSymbols$k)
|
|
1131
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
1132
|
+
if (__propIsEnum$k.call(b, prop))
|
|
1133
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
1134
1134
|
}
|
|
1135
1135
|
return a;
|
|
1136
1136
|
};
|
|
1137
1137
|
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
1138
|
-
var __objRest$
|
|
1138
|
+
var __objRest$j = (source, exclude) => {
|
|
1139
1139
|
var target = {};
|
|
1140
1140
|
for (var prop in source)
|
|
1141
|
-
if (__hasOwnProp$
|
|
1141
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1142
1142
|
target[prop] = source[prop];
|
|
1143
|
-
if (source != null && __getOwnPropSymbols$
|
|
1144
|
-
for (var prop of __getOwnPropSymbols$
|
|
1145
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1143
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
1144
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
1145
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
1146
1146
|
target[prop] = source[prop];
|
|
1147
1147
|
}
|
|
1148
1148
|
return target;
|
|
@@ -1152,8 +1152,8 @@ const { variants: variants$b, withObservedValues: withObservedValues$9 } = pickA
|
|
|
1152
1152
|
CHECKBOX_GROUP_VARIANTS
|
|
1153
1153
|
);
|
|
1154
1154
|
function BaseCheckboxGroup(props) {
|
|
1155
|
-
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
1156
|
-
return /* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadValues$
|
|
1155
|
+
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$j(_a, ["children", "plasmicUpdateVariant"]);
|
|
1156
|
+
return /* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadValues$k({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$9(
|
|
1157
1157
|
children,
|
|
1158
1158
|
{
|
|
1159
1159
|
disabled: isDisabled,
|
|
@@ -1182,7 +1182,7 @@ function registerCheckboxGroup(loader, overrides) {
|
|
|
1182
1182
|
importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
|
|
1183
1183
|
importName: "BaseCheckboxGroup",
|
|
1184
1184
|
variants: variants$b,
|
|
1185
|
-
props: __spreadProps$9(__spreadValues$
|
|
1185
|
+
props: __spreadProps$9(__spreadValues$k({}, getCommonProps("checkbox group", [
|
|
1186
1186
|
"name",
|
|
1187
1187
|
"isDisabled",
|
|
1188
1188
|
"isReadOnly",
|
|
@@ -1346,30 +1346,30 @@ class ListBoxItemIdManager {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
|
|
1349
|
-
var __defProp$
|
|
1350
|
-
var __getOwnPropSymbols$
|
|
1351
|
-
var __hasOwnProp$
|
|
1352
|
-
var __propIsEnum$
|
|
1353
|
-
var __defNormalProp$
|
|
1354
|
-
var __spreadValues$
|
|
1349
|
+
var __defProp$j = Object.defineProperty;
|
|
1350
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
1351
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
1352
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
1353
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1354
|
+
var __spreadValues$j = (a, b) => {
|
|
1355
1355
|
for (var prop in b || (b = {}))
|
|
1356
|
-
if (__hasOwnProp$
|
|
1357
|
-
__defNormalProp$
|
|
1358
|
-
if (__getOwnPropSymbols$
|
|
1359
|
-
for (var prop of __getOwnPropSymbols$
|
|
1360
|
-
if (__propIsEnum$
|
|
1361
|
-
__defNormalProp$
|
|
1356
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
1357
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1358
|
+
if (__getOwnPropSymbols$j)
|
|
1359
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
1360
|
+
if (__propIsEnum$j.call(b, prop))
|
|
1361
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1362
1362
|
}
|
|
1363
1363
|
return a;
|
|
1364
1364
|
};
|
|
1365
|
-
var __objRest$
|
|
1365
|
+
var __objRest$i = (source, exclude) => {
|
|
1366
1366
|
var target = {};
|
|
1367
1367
|
for (var prop in source)
|
|
1368
|
-
if (__hasOwnProp$
|
|
1368
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1369
1369
|
target[prop] = source[prop];
|
|
1370
|
-
if (source != null && __getOwnPropSymbols$
|
|
1371
|
-
for (var prop of __getOwnPropSymbols$
|
|
1372
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1370
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
1371
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
1372
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
1373
1373
|
target[prop] = source[prop];
|
|
1374
1374
|
}
|
|
1375
1375
|
return target;
|
|
@@ -1397,7 +1397,7 @@ function BaseInput(props) {
|
|
|
1397
1397
|
disabled,
|
|
1398
1398
|
autoComplete,
|
|
1399
1399
|
value
|
|
1400
|
-
} = _a, rest = __objRest$
|
|
1400
|
+
} = _a, rest = __objRest$i(_a, [
|
|
1401
1401
|
"plasmicUpdateVariant",
|
|
1402
1402
|
"setControlContextData",
|
|
1403
1403
|
"disabled",
|
|
@@ -1430,7 +1430,7 @@ function BaseInput(props) {
|
|
|
1430
1430
|
}, [mergedProps.disabled, plasmicUpdateVariant]);
|
|
1431
1431
|
return /* @__PURE__ */ React.createElement(
|
|
1432
1432
|
Input,
|
|
1433
|
-
__spreadValues$
|
|
1433
|
+
__spreadValues$j({
|
|
1434
1434
|
autoComplete: resolveAutoComplete(autoComplete),
|
|
1435
1435
|
onHoverChange: (isHovered) => {
|
|
1436
1436
|
plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
|
|
@@ -1468,7 +1468,7 @@ function registerInput(loader, overrides) {
|
|
|
1468
1468
|
borderColor: "black",
|
|
1469
1469
|
padding: "4px 10px"
|
|
1470
1470
|
},
|
|
1471
|
-
props: __spreadValues$
|
|
1471
|
+
props: __spreadValues$j({}, getCommonProps("Input", [
|
|
1472
1472
|
"name",
|
|
1473
1473
|
"disabled",
|
|
1474
1474
|
"readOnly",
|
|
@@ -1499,7 +1499,7 @@ function registerInput(loader, overrides) {
|
|
|
1499
1499
|
"onInput"
|
|
1500
1500
|
])),
|
|
1501
1501
|
states: {
|
|
1502
|
-
value: __spreadValues$
|
|
1502
|
+
value: __spreadValues$j({
|
|
1503
1503
|
type: "writable",
|
|
1504
1504
|
valueProp: "value",
|
|
1505
1505
|
onChangeProp: "onChange",
|
|
@@ -1516,30 +1516,30 @@ function registerInput(loader, overrides) {
|
|
|
1516
1516
|
);
|
|
1517
1517
|
}
|
|
1518
1518
|
|
|
1519
|
-
var __defProp$
|
|
1520
|
-
var __getOwnPropSymbols$
|
|
1521
|
-
var __hasOwnProp$
|
|
1522
|
-
var __propIsEnum$
|
|
1523
|
-
var __defNormalProp$
|
|
1524
|
-
var __spreadValues$
|
|
1519
|
+
var __defProp$i = Object.defineProperty;
|
|
1520
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
1521
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
1522
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
1523
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1524
|
+
var __spreadValues$i = (a, b) => {
|
|
1525
1525
|
for (var prop in b || (b = {}))
|
|
1526
|
-
if (__hasOwnProp$
|
|
1527
|
-
__defNormalProp$
|
|
1528
|
-
if (__getOwnPropSymbols$
|
|
1529
|
-
for (var prop of __getOwnPropSymbols$
|
|
1530
|
-
if (__propIsEnum$
|
|
1531
|
-
__defNormalProp$
|
|
1526
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
1527
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
1528
|
+
if (__getOwnPropSymbols$i)
|
|
1529
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
1530
|
+
if (__propIsEnum$i.call(b, prop))
|
|
1531
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
1532
1532
|
}
|
|
1533
1533
|
return a;
|
|
1534
1534
|
};
|
|
1535
|
-
var __objRest$
|
|
1535
|
+
var __objRest$h = (source, exclude) => {
|
|
1536
1536
|
var target = {};
|
|
1537
1537
|
for (var prop in source)
|
|
1538
|
-
if (__hasOwnProp$
|
|
1538
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1539
1539
|
target[prop] = source[prop];
|
|
1540
|
-
if (source != null && __getOwnPropSymbols$
|
|
1541
|
-
for (var prop of __getOwnPropSymbols$
|
|
1542
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1540
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
1541
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
1542
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
1543
1543
|
target[prop] = source[prop];
|
|
1544
1544
|
}
|
|
1545
1545
|
return target;
|
|
@@ -1556,7 +1556,7 @@ const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickA
|
|
|
1556
1556
|
LIST_BOX_ITEM_VARIANTS
|
|
1557
1557
|
);
|
|
1558
1558
|
function BaseListBoxItem(props) {
|
|
1559
|
-
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$
|
|
1559
|
+
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$h(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
|
|
1560
1560
|
const listboxContext = React.useContext(PlasmicListBoxContext);
|
|
1561
1561
|
const isStandalone = !listboxContext;
|
|
1562
1562
|
const [registeredId, setRegisteredId] = useState();
|
|
@@ -1588,7 +1588,7 @@ function BaseListBoxItem(props) {
|
|
|
1588
1588
|
return void 0;
|
|
1589
1589
|
})()
|
|
1590
1590
|
});
|
|
1591
|
-
const listboxItem = /* @__PURE__ */ React.createElement(ListBoxItem, __spreadValues$
|
|
1591
|
+
const listboxItem = /* @__PURE__ */ React.createElement(ListBoxItem, __spreadValues$i({ key: registeredId, id: registeredId }, rest), ({
|
|
1592
1592
|
isHovered,
|
|
1593
1593
|
isPressed,
|
|
1594
1594
|
isFocused,
|
|
@@ -1687,39 +1687,39 @@ function registerListBoxItem(loader, overrides) {
|
|
|
1687
1687
|
);
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var __defProp$
|
|
1691
|
-
var __getOwnPropSymbols$
|
|
1692
|
-
var __hasOwnProp$
|
|
1693
|
-
var __propIsEnum$
|
|
1694
|
-
var __defNormalProp$
|
|
1695
|
-
var __spreadValues$
|
|
1690
|
+
var __defProp$h = Object.defineProperty;
|
|
1691
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
1692
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
1693
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
1694
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1695
|
+
var __spreadValues$h = (a, b) => {
|
|
1696
1696
|
for (var prop in b || (b = {}))
|
|
1697
|
-
if (__hasOwnProp$
|
|
1698
|
-
__defNormalProp$
|
|
1699
|
-
if (__getOwnPropSymbols$
|
|
1700
|
-
for (var prop of __getOwnPropSymbols$
|
|
1701
|
-
if (__propIsEnum$
|
|
1702
|
-
__defNormalProp$
|
|
1697
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
1698
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
1699
|
+
if (__getOwnPropSymbols$h)
|
|
1700
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
1701
|
+
if (__propIsEnum$h.call(b, prop))
|
|
1702
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
1703
1703
|
}
|
|
1704
1704
|
return a;
|
|
1705
1705
|
};
|
|
1706
|
-
var __objRest$
|
|
1706
|
+
var __objRest$g = (source, exclude) => {
|
|
1707
1707
|
var target = {};
|
|
1708
1708
|
for (var prop in source)
|
|
1709
|
-
if (__hasOwnProp$
|
|
1709
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1710
1710
|
target[prop] = source[prop];
|
|
1711
|
-
if (source != null && __getOwnPropSymbols$
|
|
1712
|
-
for (var prop of __getOwnPropSymbols$
|
|
1713
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1711
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
1712
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
1713
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
1714
1714
|
target[prop] = source[prop];
|
|
1715
1715
|
}
|
|
1716
1716
|
return target;
|
|
1717
1717
|
};
|
|
1718
1718
|
function BaseSection(props) {
|
|
1719
|
-
const _a = props, { header, items } = _a, rest = __objRest$
|
|
1719
|
+
const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
|
|
1720
1720
|
const contextProps = React.useContext(PlasmicListBoxContext);
|
|
1721
1721
|
const mergedProps = mergeProps$1(contextProps, rest);
|
|
1722
|
-
return /* @__PURE__ */ React.createElement(Section, __spreadValues$
|
|
1722
|
+
return /* @__PURE__ */ React.createElement(Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React.createElement(Header, null, header), items);
|
|
1723
1723
|
}
|
|
1724
1724
|
function registerSection(loader, overrides) {
|
|
1725
1725
|
return registerComponentHelper(
|
|
@@ -1756,30 +1756,30 @@ function registerSection(loader, overrides) {
|
|
|
1756
1756
|
);
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
|
-
var __defProp$
|
|
1760
|
-
var __getOwnPropSymbols$
|
|
1761
|
-
var __hasOwnProp$
|
|
1762
|
-
var __propIsEnum$
|
|
1763
|
-
var __defNormalProp$
|
|
1764
|
-
var __spreadValues$
|
|
1759
|
+
var __defProp$g = Object.defineProperty;
|
|
1760
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
1761
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
1762
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
1763
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1764
|
+
var __spreadValues$g = (a, b) => {
|
|
1765
1765
|
for (var prop in b || (b = {}))
|
|
1766
|
-
if (__hasOwnProp$
|
|
1767
|
-
__defNormalProp$
|
|
1768
|
-
if (__getOwnPropSymbols$
|
|
1769
|
-
for (var prop of __getOwnPropSymbols$
|
|
1770
|
-
if (__propIsEnum$
|
|
1771
|
-
__defNormalProp$
|
|
1766
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
1767
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
1768
|
+
if (__getOwnPropSymbols$g)
|
|
1769
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
1770
|
+
if (__propIsEnum$g.call(b, prop))
|
|
1771
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
1772
1772
|
}
|
|
1773
1773
|
return a;
|
|
1774
1774
|
};
|
|
1775
|
-
var __objRest$
|
|
1775
|
+
var __objRest$f = (source, exclude) => {
|
|
1776
1776
|
var target = {};
|
|
1777
1777
|
for (var prop in source)
|
|
1778
|
-
if (__hasOwnProp$
|
|
1778
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1779
1779
|
target[prop] = source[prop];
|
|
1780
|
-
if (source != null && __getOwnPropSymbols$
|
|
1781
|
-
for (var prop of __getOwnPropSymbols$
|
|
1782
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1780
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
1781
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
1782
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
1783
1783
|
target[prop] = source[prop];
|
|
1784
1784
|
}
|
|
1785
1785
|
return target;
|
|
@@ -1802,7 +1802,7 @@ function BaseListBox(props) {
|
|
|
1802
1802
|
children,
|
|
1803
1803
|
selectedKeys,
|
|
1804
1804
|
defaultSelectedKeys
|
|
1805
|
-
} = _a, rest = __objRest$
|
|
1805
|
+
} = _a, rest = __objRest$f(_a, [
|
|
1806
1806
|
"setControlContextData",
|
|
1807
1807
|
"children",
|
|
1808
1808
|
"selectedKeys",
|
|
@@ -1831,7 +1831,7 @@ function BaseListBox(props) {
|
|
|
1831
1831
|
}, []);
|
|
1832
1832
|
const listbox = /* @__PURE__ */ React.createElement(
|
|
1833
1833
|
ListBox,
|
|
1834
|
-
__spreadValues$
|
|
1834
|
+
__spreadValues$g({
|
|
1835
1835
|
selectedKeys: normalizeSelectedKeys(selectedKeys),
|
|
1836
1836
|
defaultSelectedKeys: normalizeSelectedKeys(defaultSelectedKeys)
|
|
1837
1837
|
}, rest),
|
|
@@ -2000,7 +2000,7 @@ function registerListBox(loader, overrides) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
},
|
|
2002
2002
|
states: {
|
|
2003
|
-
selectedKey: __spreadValues$
|
|
2003
|
+
selectedKey: __spreadValues$g({
|
|
2004
2004
|
type: "writable",
|
|
2005
2005
|
valueProp: "selectedKeys",
|
|
2006
2006
|
onChangeProp: "onSelectionChange",
|
|
@@ -2018,45 +2018,46 @@ function registerListBox(loader, overrides) {
|
|
|
2018
2018
|
);
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
|
-
var __defProp$
|
|
2022
|
-
var __getOwnPropSymbols$
|
|
2023
|
-
var __hasOwnProp$
|
|
2024
|
-
var __propIsEnum$
|
|
2025
|
-
var __defNormalProp$
|
|
2026
|
-
var __spreadValues$
|
|
2021
|
+
var __defProp$f = Object.defineProperty;
|
|
2022
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
2023
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
2024
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
2025
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2026
|
+
var __spreadValues$f = (a, b) => {
|
|
2027
2027
|
for (var prop in b || (b = {}))
|
|
2028
|
-
if (__hasOwnProp$
|
|
2029
|
-
__defNormalProp$
|
|
2030
|
-
if (__getOwnPropSymbols$
|
|
2031
|
-
for (var prop of __getOwnPropSymbols$
|
|
2032
|
-
if (__propIsEnum$
|
|
2033
|
-
__defNormalProp$
|
|
2028
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
2029
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
2030
|
+
if (__getOwnPropSymbols$f)
|
|
2031
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
2032
|
+
if (__propIsEnum$f.call(b, prop))
|
|
2033
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
2034
2034
|
}
|
|
2035
2035
|
return a;
|
|
2036
2036
|
};
|
|
2037
|
-
var __objRest$
|
|
2037
|
+
var __objRest$e = (source, exclude) => {
|
|
2038
2038
|
var target = {};
|
|
2039
2039
|
for (var prop in source)
|
|
2040
|
-
if (__hasOwnProp$
|
|
2040
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2041
2041
|
target[prop] = source[prop];
|
|
2042
|
-
if (source != null && __getOwnPropSymbols$
|
|
2043
|
-
for (var prop of __getOwnPropSymbols$
|
|
2044
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2042
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
2043
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
2044
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
2045
2045
|
target[prop] = source[prop];
|
|
2046
2046
|
}
|
|
2047
2047
|
return target;
|
|
2048
2048
|
};
|
|
2049
2049
|
function BasePopover(props) {
|
|
2050
|
-
|
|
2050
|
+
var _b;
|
|
2051
|
+
const _a = props, { resetClassName, setControlContextData } = _a, restProps = __objRest$e(_a, ["resetClassName", "setControlContextData"]);
|
|
2051
2052
|
const isStandalone = !React.useContext(PopoverContext);
|
|
2052
2053
|
const context = React.useContext(PlasmicPopoverContext);
|
|
2053
|
-
const isInsideSelect = !!React.useContext(SelectContext);
|
|
2054
2054
|
const triggerRef = React.useRef(null);
|
|
2055
2055
|
const isEditMode = !!usePlasmicCanvasContext();
|
|
2056
|
-
const defaultShouldFlip = isInsideSelect ? false : true;
|
|
2057
2056
|
const mergedProps = mergeProps$1(
|
|
2058
|
-
{
|
|
2059
|
-
|
|
2057
|
+
{
|
|
2058
|
+
isOpen: context == null ? void 0 : context.isOpen,
|
|
2059
|
+
shouldFlip: context == null ? void 0 : context.defaultShouldFlip
|
|
2060
|
+
},
|
|
2060
2061
|
/**
|
|
2061
2062
|
* isNonModal: Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies. *
|
|
2062
2063
|
*
|
|
@@ -2073,9 +2074,9 @@ function BasePopover(props) {
|
|
|
2073
2074
|
} : null
|
|
2074
2075
|
);
|
|
2075
2076
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
2076
|
-
defaultShouldFlip
|
|
2077
|
+
defaultShouldFlip: (_b = context == null ? void 0 : context.defaultShouldFlip) != null ? _b : true
|
|
2077
2078
|
});
|
|
2078
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, isStandalone && /* @__PURE__ */ React.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React.createElement(Popover, __spreadValues$
|
|
2079
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, isStandalone && /* @__PURE__ */ React.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React.createElement(Popover, __spreadValues$f({}, mergedProps)));
|
|
2079
2080
|
}
|
|
2080
2081
|
const POPOVER_COMPONENT_NAME = makeComponentName("popover");
|
|
2081
2082
|
const POPOVER_ARROW_IMG = {
|
|
@@ -2149,10 +2150,7 @@ function registerPopover(loader, overrides) {
|
|
|
2149
2150
|
shouldFlip: {
|
|
2150
2151
|
type: "boolean",
|
|
2151
2152
|
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.",
|
|
2152
|
-
defaultValueHint: (_props, ctx) =>
|
|
2153
|
-
var _a;
|
|
2154
|
-
return (_a = ctx == null ? void 0 : ctx.defaultShouldFlip) != null ? _a : true;
|
|
2155
|
-
}
|
|
2153
|
+
defaultValueHint: (_props, ctx) => ctx == null ? void 0 : ctx.defaultShouldFlip
|
|
2156
2154
|
},
|
|
2157
2155
|
placement: {
|
|
2158
2156
|
type: "choice",
|
|
@@ -2178,40 +2176,40 @@ function registerPopover(loader, overrides) {
|
|
|
2178
2176
|
);
|
|
2179
2177
|
}
|
|
2180
2178
|
|
|
2181
|
-
var __defProp$
|
|
2179
|
+
var __defProp$e = Object.defineProperty;
|
|
2182
2180
|
var __defProps$8 = Object.defineProperties;
|
|
2183
2181
|
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
2184
|
-
var __getOwnPropSymbols$
|
|
2185
|
-
var __hasOwnProp$
|
|
2186
|
-
var __propIsEnum$
|
|
2187
|
-
var __defNormalProp$
|
|
2188
|
-
var __spreadValues$
|
|
2182
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
2183
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
2184
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
2185
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2186
|
+
var __spreadValues$e = (a, b) => {
|
|
2189
2187
|
for (var prop in b || (b = {}))
|
|
2190
|
-
if (__hasOwnProp$
|
|
2191
|
-
__defNormalProp$
|
|
2192
|
-
if (__getOwnPropSymbols$
|
|
2193
|
-
for (var prop of __getOwnPropSymbols$
|
|
2194
|
-
if (__propIsEnum$
|
|
2195
|
-
__defNormalProp$
|
|
2188
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
2189
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
2190
|
+
if (__getOwnPropSymbols$e)
|
|
2191
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
2192
|
+
if (__propIsEnum$e.call(b, prop))
|
|
2193
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
2196
2194
|
}
|
|
2197
2195
|
return a;
|
|
2198
2196
|
};
|
|
2199
2197
|
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
2200
|
-
var __objRest$
|
|
2198
|
+
var __objRest$d = (source, exclude) => {
|
|
2201
2199
|
var target = {};
|
|
2202
2200
|
for (var prop in source)
|
|
2203
|
-
if (__hasOwnProp$
|
|
2201
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2204
2202
|
target[prop] = source[prop];
|
|
2205
|
-
if (source != null && __getOwnPropSymbols$
|
|
2206
|
-
for (var prop of __getOwnPropSymbols$
|
|
2207
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2203
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
2204
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
2205
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
2208
2206
|
target[prop] = source[prop];
|
|
2209
2207
|
}
|
|
2210
2208
|
return target;
|
|
2211
2209
|
};
|
|
2212
2210
|
const COMBOBOX_NAME = makeComponentName("combobox");
|
|
2213
2211
|
function BaseComboBox(props) {
|
|
2214
|
-
const _a = props, { children, setControlContextData, isOpen } = _a, rest = __objRest$
|
|
2212
|
+
const _a = props, { children, setControlContextData, isOpen } = _a, rest = __objRest$d(_a, ["children", "setControlContextData", "isOpen"]);
|
|
2215
2213
|
const idManager = useMemo(() => new ListBoxItemIdManager(), []);
|
|
2216
2214
|
useEffect(() => {
|
|
2217
2215
|
idManager.subscribe((ids) => {
|
|
@@ -2220,15 +2218,21 @@ function BaseComboBox(props) {
|
|
|
2220
2218
|
});
|
|
2221
2219
|
});
|
|
2222
2220
|
}, []);
|
|
2223
|
-
return /* @__PURE__ */ React.createElement(ComboBox, __spreadValues$
|
|
2224
|
-
|
|
2221
|
+
return /* @__PURE__ */ React.createElement(ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React.createElement(
|
|
2222
|
+
PlasmicPopoverContext.Provider,
|
|
2225
2223
|
{
|
|
2226
|
-
value: {
|
|
2227
|
-
idManager
|
|
2228
|
-
}
|
|
2224
|
+
value: { isOpen, defaultShouldFlip: false }
|
|
2229
2225
|
},
|
|
2230
|
-
/* @__PURE__ */ React.createElement(
|
|
2231
|
-
|
|
2226
|
+
/* @__PURE__ */ React.createElement(
|
|
2227
|
+
PlasmicListBoxContext.Provider,
|
|
2228
|
+
{
|
|
2229
|
+
value: {
|
|
2230
|
+
idManager
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
/* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, children)
|
|
2234
|
+
)
|
|
2235
|
+
));
|
|
2232
2236
|
}
|
|
2233
2237
|
function registerComboBox(loader) {
|
|
2234
2238
|
registerComponentHelper(loader, BaseComboBox, {
|
|
@@ -2236,7 +2240,7 @@ function registerComboBox(loader) {
|
|
|
2236
2240
|
displayName: "Aria ComboBox",
|
|
2237
2241
|
importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
|
|
2238
2242
|
importName: "BaseComboBox",
|
|
2239
|
-
props: __spreadProps$8(__spreadValues$
|
|
2243
|
+
props: __spreadProps$8(__spreadValues$e({}, getCommonProps("ComboBox", [
|
|
2240
2244
|
"name",
|
|
2241
2245
|
"aria-label",
|
|
2242
2246
|
"placeholder",
|
|
@@ -2370,37 +2374,37 @@ function registerComboBox(loader) {
|
|
|
2370
2374
|
});
|
|
2371
2375
|
}
|
|
2372
2376
|
|
|
2373
|
-
var __defProp$
|
|
2374
|
-
var __getOwnPropSymbols$
|
|
2375
|
-
var __hasOwnProp$
|
|
2376
|
-
var __propIsEnum$
|
|
2377
|
-
var __defNormalProp$
|
|
2378
|
-
var __spreadValues$
|
|
2377
|
+
var __defProp$d = Object.defineProperty;
|
|
2378
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
2379
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
2380
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
2381
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2382
|
+
var __spreadValues$d = (a, b) => {
|
|
2379
2383
|
for (var prop in b || (b = {}))
|
|
2380
|
-
if (__hasOwnProp$
|
|
2381
|
-
__defNormalProp$
|
|
2382
|
-
if (__getOwnPropSymbols$
|
|
2383
|
-
for (var prop of __getOwnPropSymbols$
|
|
2384
|
-
if (__propIsEnum$
|
|
2385
|
-
__defNormalProp$
|
|
2384
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
2385
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2386
|
+
if (__getOwnPropSymbols$d)
|
|
2387
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
2388
|
+
if (__propIsEnum$d.call(b, prop))
|
|
2389
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2386
2390
|
}
|
|
2387
2391
|
return a;
|
|
2388
2392
|
};
|
|
2389
|
-
var __objRest$
|
|
2393
|
+
var __objRest$c = (source, exclude) => {
|
|
2390
2394
|
var target = {};
|
|
2391
2395
|
for (var prop in source)
|
|
2392
|
-
if (__hasOwnProp$
|
|
2396
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2393
2397
|
target[prop] = source[prop];
|
|
2394
|
-
if (source != null && __getOwnPropSymbols$
|
|
2395
|
-
for (var prop of __getOwnPropSymbols$
|
|
2396
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2398
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
2399
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
2400
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
2397
2401
|
target[prop] = source[prop];
|
|
2398
2402
|
}
|
|
2399
2403
|
return target;
|
|
2400
2404
|
};
|
|
2401
2405
|
function BaseHeading(_a) {
|
|
2402
|
-
var _b = _a, { children } = _b, rest = __objRest$
|
|
2403
|
-
return /* @__PURE__ */ React.createElement(Heading, __spreadValues$
|
|
2406
|
+
var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
|
|
2407
|
+
return /* @__PURE__ */ React.createElement(Heading, __spreadValues$d({}, rest), children);
|
|
2404
2408
|
}
|
|
2405
2409
|
const HEADING_COMPONENT_NAME = makeComponentName("heading");
|
|
2406
2410
|
function registerHeading(loader, overrides) {
|
|
@@ -2438,33 +2442,33 @@ function registerHeading(loader, overrides) {
|
|
|
2438
2442
|
);
|
|
2439
2443
|
}
|
|
2440
2444
|
|
|
2441
|
-
var __defProp$
|
|
2445
|
+
var __defProp$c = Object.defineProperty;
|
|
2442
2446
|
var __defProps$7 = Object.defineProperties;
|
|
2443
2447
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
2444
|
-
var __getOwnPropSymbols$
|
|
2445
|
-
var __hasOwnProp$
|
|
2446
|
-
var __propIsEnum$
|
|
2447
|
-
var __defNormalProp$
|
|
2448
|
-
var __spreadValues$
|
|
2448
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
2449
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
2450
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
2451
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2452
|
+
var __spreadValues$c = (a, b) => {
|
|
2449
2453
|
for (var prop in b || (b = {}))
|
|
2450
|
-
if (__hasOwnProp$
|
|
2451
|
-
__defNormalProp$
|
|
2452
|
-
if (__getOwnPropSymbols$
|
|
2453
|
-
for (var prop of __getOwnPropSymbols$
|
|
2454
|
-
if (__propIsEnum$
|
|
2455
|
-
__defNormalProp$
|
|
2454
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
2455
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
2456
|
+
if (__getOwnPropSymbols$c)
|
|
2457
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
2458
|
+
if (__propIsEnum$c.call(b, prop))
|
|
2459
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
2456
2460
|
}
|
|
2457
2461
|
return a;
|
|
2458
2462
|
};
|
|
2459
2463
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
2460
|
-
var __objRest$
|
|
2464
|
+
var __objRest$b = (source, exclude) => {
|
|
2461
2465
|
var target = {};
|
|
2462
2466
|
for (var prop in source)
|
|
2463
|
-
if (__hasOwnProp$
|
|
2467
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2464
2468
|
target[prop] = source[prop];
|
|
2465
|
-
if (source != null && __getOwnPropSymbols$
|
|
2466
|
-
for (var prop of __getOwnPropSymbols$
|
|
2467
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2469
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
2470
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
2471
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
2468
2472
|
target[prop] = source[prop];
|
|
2469
2473
|
}
|
|
2470
2474
|
return target;
|
|
@@ -2481,7 +2485,7 @@ const BaseModal = forwardRef(
|
|
|
2481
2485
|
isOpen,
|
|
2482
2486
|
resetClassName,
|
|
2483
2487
|
setControlContextData
|
|
2484
|
-
} = _a, rest = __objRest$
|
|
2488
|
+
} = _a, rest = __objRest$b(_a, [
|
|
2485
2489
|
"children",
|
|
2486
2490
|
"modalOverlayClass",
|
|
2487
2491
|
"className",
|
|
@@ -2512,7 +2516,7 @@ const BaseModal = forwardRef(
|
|
|
2512
2516
|
const bodyInPreview = /* @__PURE__ */ React.createElement(Dialog, { style: INLINE_STYLES }, children);
|
|
2513
2517
|
return /* @__PURE__ */ React.createElement(
|
|
2514
2518
|
ModalOverlay,
|
|
2515
|
-
__spreadProps$7(__spreadValues$
|
|
2519
|
+
__spreadProps$7(__spreadValues$c({}, mergedProps), {
|
|
2516
2520
|
className: `${resetClassName} ${modalOverlayClass}`
|
|
2517
2521
|
}),
|
|
2518
2522
|
/* @__PURE__ */ React.createElement(Modal, { className }, isCanvas ? bodyInCanvas : bodyInPreview)
|
|
@@ -2633,37 +2637,37 @@ function registerModal(loader, overrides) {
|
|
|
2633
2637
|
);
|
|
2634
2638
|
}
|
|
2635
2639
|
|
|
2636
|
-
var __defProp$
|
|
2637
|
-
var __getOwnPropSymbols$
|
|
2638
|
-
var __hasOwnProp$
|
|
2639
|
-
var __propIsEnum$
|
|
2640
|
-
var __defNormalProp$
|
|
2641
|
-
var __spreadValues$
|
|
2640
|
+
var __defProp$b = Object.defineProperty;
|
|
2641
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
2642
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
2643
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
2644
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2645
|
+
var __spreadValues$b = (a, b) => {
|
|
2642
2646
|
for (var prop in b || (b = {}))
|
|
2643
|
-
if (__hasOwnProp$
|
|
2644
|
-
__defNormalProp$
|
|
2645
|
-
if (__getOwnPropSymbols$
|
|
2646
|
-
for (var prop of __getOwnPropSymbols$
|
|
2647
|
-
if (__propIsEnum$
|
|
2648
|
-
__defNormalProp$
|
|
2647
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
2648
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
2649
|
+
if (__getOwnPropSymbols$b)
|
|
2650
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
2651
|
+
if (__propIsEnum$b.call(b, prop))
|
|
2652
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
2649
2653
|
}
|
|
2650
2654
|
return a;
|
|
2651
2655
|
};
|
|
2652
|
-
var __objRest$
|
|
2656
|
+
var __objRest$a = (source, exclude) => {
|
|
2653
2657
|
var target = {};
|
|
2654
2658
|
for (var prop in source)
|
|
2655
|
-
if (__hasOwnProp$
|
|
2659
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2656
2660
|
target[prop] = source[prop];
|
|
2657
|
-
if (source != null && __getOwnPropSymbols$
|
|
2658
|
-
for (var prop of __getOwnPropSymbols$
|
|
2659
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2661
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
2662
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
2663
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
2660
2664
|
target[prop] = source[prop];
|
|
2661
2665
|
}
|
|
2662
2666
|
return target;
|
|
2663
2667
|
};
|
|
2664
2668
|
function BaseDialogTrigger(props) {
|
|
2665
|
-
const _a = props, { trigger, dialog } = _a, rest = __objRest$
|
|
2666
|
-
return /* @__PURE__ */ React.createElement(PlasmicDialogTriggerContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(DialogTrigger, __spreadValues$
|
|
2669
|
+
const _a = props, { trigger, dialog } = _a, rest = __objRest$a(_a, ["trigger", "dialog"]);
|
|
2670
|
+
return /* @__PURE__ */ React.createElement(PlasmicDialogTriggerContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(DialogTrigger, __spreadValues$b({}, rest), trigger, dialog));
|
|
2667
2671
|
}
|
|
2668
2672
|
function registerDialogTrigger(loader, overrides) {
|
|
2669
2673
|
registerComponentHelper(
|
|
@@ -2723,89 +2727,6 @@ function registerDialogTrigger(loader, overrides) {
|
|
|
2723
2727
|
);
|
|
2724
2728
|
}
|
|
2725
2729
|
|
|
2726
|
-
var __defProp$b = Object.defineProperty;
|
|
2727
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
2728
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
2729
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
2730
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2731
|
-
var __spreadValues$b = (a, b) => {
|
|
2732
|
-
for (var prop in b || (b = {}))
|
|
2733
|
-
if (__hasOwnProp$b.call(b, prop))
|
|
2734
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
2735
|
-
if (__getOwnPropSymbols$b)
|
|
2736
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
2737
|
-
if (__propIsEnum$b.call(b, prop))
|
|
2738
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
2739
|
-
}
|
|
2740
|
-
return a;
|
|
2741
|
-
};
|
|
2742
|
-
var __objRest$a = (source, exclude) => {
|
|
2743
|
-
var target = {};
|
|
2744
|
-
for (var prop in source)
|
|
2745
|
-
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2746
|
-
target[prop] = source[prop];
|
|
2747
|
-
if (source != null && __getOwnPropSymbols$b)
|
|
2748
|
-
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
2749
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
2750
|
-
target[prop] = source[prop];
|
|
2751
|
-
}
|
|
2752
|
-
return target;
|
|
2753
|
-
};
|
|
2754
|
-
function BaseForm(props) {
|
|
2755
|
-
const _a = props, { onSubmit, children } = _a, rest = __objRest$a(_a, ["onSubmit", "children"]);
|
|
2756
|
-
return /* @__PURE__ */ React.createElement(
|
|
2757
|
-
Form,
|
|
2758
|
-
__spreadValues$b({
|
|
2759
|
-
onSubmit: (e) => {
|
|
2760
|
-
e.preventDefault();
|
|
2761
|
-
const formData = new FormData(e.currentTarget);
|
|
2762
|
-
const formValues = {};
|
|
2763
|
-
formData.forEach((value, key) => {
|
|
2764
|
-
const field = e.currentTarget.elements.namedItem(key);
|
|
2765
|
-
if (field instanceof RadioNodeList && Array.from(field.values()).every(
|
|
2766
|
-
(f) => f.type === "checkbox"
|
|
2767
|
-
)) {
|
|
2768
|
-
formValues[key] = formData.getAll(key);
|
|
2769
|
-
} else {
|
|
2770
|
-
field.type;
|
|
2771
|
-
formValues[key] = formData.get(key);
|
|
2772
|
-
}
|
|
2773
|
-
});
|
|
2774
|
-
onSubmit == null ? void 0 : onSubmit(formValues);
|
|
2775
|
-
}
|
|
2776
|
-
}, rest),
|
|
2777
|
-
children
|
|
2778
|
-
);
|
|
2779
|
-
}
|
|
2780
|
-
function registerForm(loader, overrides) {
|
|
2781
|
-
registerComponentHelper(
|
|
2782
|
-
loader,
|
|
2783
|
-
BaseForm,
|
|
2784
|
-
{
|
|
2785
|
-
name: makeComponentName("form"),
|
|
2786
|
-
displayName: "Aria Form",
|
|
2787
|
-
importPath: "@plasmicpkgs/react-aria/skinny/registerForm",
|
|
2788
|
-
importName: "BaseForm",
|
|
2789
|
-
props: {
|
|
2790
|
-
children: {
|
|
2791
|
-
type: "slot",
|
|
2792
|
-
mergeWithParent: true
|
|
2793
|
-
},
|
|
2794
|
-
onSubmit: {
|
|
2795
|
-
type: "eventHandler",
|
|
2796
|
-
argTypes: [{ name: "data", type: "object" }]
|
|
2797
|
-
},
|
|
2798
|
-
onReset: {
|
|
2799
|
-
type: "eventHandler",
|
|
2800
|
-
argTypes: []
|
|
2801
|
-
}
|
|
2802
|
-
},
|
|
2803
|
-
trapsFocus: true
|
|
2804
|
-
},
|
|
2805
|
-
overrides
|
|
2806
|
-
);
|
|
2807
|
-
}
|
|
2808
|
-
|
|
2809
2730
|
var __defProp$a = Object.defineProperty;
|
|
2810
2731
|
var __defProps$6 = Object.defineProperties;
|
|
2811
2732
|
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
@@ -3177,15 +3098,21 @@ function BaseSelect(props) {
|
|
|
3177
3098
|
"aria-label": ariaLabel,
|
|
3178
3099
|
isOpen: openProp
|
|
3179
3100
|
}, extractPlasmicDataProps(props)),
|
|
3180
|
-
/* @__PURE__ */ React.createElement(
|
|
3181
|
-
|
|
3101
|
+
/* @__PURE__ */ React.createElement(
|
|
3102
|
+
PlasmicPopoverContext.Provider,
|
|
3182
3103
|
{
|
|
3183
|
-
value: {
|
|
3184
|
-
idManager
|
|
3185
|
-
}
|
|
3104
|
+
value: { isOpen: openProp, defaultShouldFlip: false }
|
|
3186
3105
|
},
|
|
3187
|
-
|
|
3188
|
-
|
|
3106
|
+
/* @__PURE__ */ React.createElement(
|
|
3107
|
+
PlasmicListBoxContext.Provider,
|
|
3108
|
+
{
|
|
3109
|
+
value: {
|
|
3110
|
+
idManager
|
|
3111
|
+
}
|
|
3112
|
+
},
|
|
3113
|
+
children
|
|
3114
|
+
)
|
|
3115
|
+
)
|
|
3189
3116
|
);
|
|
3190
3117
|
}
|
|
3191
3118
|
function registerSelect(loader) {
|
|
@@ -4676,7 +4603,6 @@ function registerAll(loader) {
|
|
|
4676
4603
|
registerPopover(loader);
|
|
4677
4604
|
registerInput(loader);
|
|
4678
4605
|
registerSwitch(loader);
|
|
4679
|
-
registerForm(loader);
|
|
4680
4606
|
registerCheckbox(loader);
|
|
4681
4607
|
registerCheckboxGroup(loader);
|
|
4682
4608
|
registerRadioGroup(loader);
|