@plasmicpkgs/react-aria 0.0.81 → 0.0.82
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 +53 -70
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +53 -70
- package/dist/react-aria.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerTooltip.cjs.js +6 -23
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.esm.js +6 -23
- package/skinny/registerTooltip.esm.js.map +1 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -535,7 +535,7 @@ var __spreadValues$p = (a, b) => {
|
|
|
535
535
|
return a;
|
|
536
536
|
};
|
|
537
537
|
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
538
|
-
var __objRest$
|
|
538
|
+
var __objRest$m = (source, exclude) => {
|
|
539
539
|
var target = {};
|
|
540
540
|
for (var prop in source)
|
|
541
541
|
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -558,7 +558,7 @@ const { variants: variants$f, withObservedValues: withObservedValues$d } = pickA
|
|
|
558
558
|
const BaseButton = React.forwardRef(
|
|
559
559
|
(props, ref) => {
|
|
560
560
|
var _b;
|
|
561
|
-
const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
561
|
+
const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$m(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
|
|
562
562
|
const canvasContext = (_b = usePlasmicCanvasContext) == null ? void 0 : _b();
|
|
563
563
|
const isEditMode = canvasContext && canvasContext.interactive === false;
|
|
564
564
|
const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
|
|
@@ -674,7 +674,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
674
674
|
return a;
|
|
675
675
|
};
|
|
676
676
|
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
677
|
-
var __objRest$
|
|
677
|
+
var __objRest$l = (source, exclude) => {
|
|
678
678
|
var target = {};
|
|
679
679
|
for (var prop in source)
|
|
680
680
|
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -699,7 +699,7 @@ const CHECKBOX_VARIANTS = [
|
|
|
699
699
|
];
|
|
700
700
|
const { variants: variants$e, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
|
|
701
701
|
function BaseCheckbox(props) {
|
|
702
|
-
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$
|
|
702
|
+
const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$l(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
|
|
703
703
|
const contextProps = React.useContext(PlasmicCheckboxGroupContext);
|
|
704
704
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
705
705
|
parent: contextProps
|
|
@@ -872,7 +872,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
872
872
|
return a;
|
|
873
873
|
};
|
|
874
874
|
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
875
|
-
var __objRest$
|
|
875
|
+
var __objRest$k = (source, exclude) => {
|
|
876
876
|
var target = {};
|
|
877
877
|
for (var prop in source)
|
|
878
878
|
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -885,7 +885,7 @@ var __objRest$l = (source, exclude) => {
|
|
|
885
885
|
return target;
|
|
886
886
|
};
|
|
887
887
|
function BaseText(_a) {
|
|
888
|
-
var _b = _a, { children, slot, className } = _b, rest = __objRest$
|
|
888
|
+
var _b = _a, { children, slot, className } = _b, rest = __objRest$k(_b, ["children", "slot", "className"]);
|
|
889
889
|
return /* @__PURE__ */ React.createElement(Text, __spreadProps$d(__spreadValues$n({}, extractPlasmicDataProps(rest)), { slot, className }), children);
|
|
890
890
|
}
|
|
891
891
|
const TEXT_COMPONENT_NAME = makeComponentName("text");
|
|
@@ -973,7 +973,7 @@ var __spreadValues$l = (a, b) => {
|
|
|
973
973
|
return a;
|
|
974
974
|
};
|
|
975
975
|
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
976
|
-
var __objRest$
|
|
976
|
+
var __objRest$j = (source, exclude) => {
|
|
977
977
|
var target = {};
|
|
978
978
|
for (var prop in source)
|
|
979
979
|
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -986,7 +986,7 @@ var __objRest$k = (source, exclude) => {
|
|
|
986
986
|
return target;
|
|
987
987
|
};
|
|
988
988
|
function BaseLabel(_a) {
|
|
989
|
-
var _b = _a, { children, className } = _b, rest = __objRest$
|
|
989
|
+
var _b = _a, { children, className } = _b, rest = __objRest$j(_b, ["children", "className"]);
|
|
990
990
|
return /* @__PURE__ */ React.createElement(Label, __spreadProps$b(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
|
|
991
991
|
}
|
|
992
992
|
const LABEL_COMPONENT_NAME = makeComponentName("label");
|
|
@@ -1037,7 +1037,7 @@ var __spreadValues$k = (a, b) => {
|
|
|
1037
1037
|
return a;
|
|
1038
1038
|
};
|
|
1039
1039
|
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
1040
|
-
var __objRest$
|
|
1040
|
+
var __objRest$i = (source, exclude) => {
|
|
1041
1041
|
var target = {};
|
|
1042
1042
|
for (var prop in source)
|
|
1043
1043
|
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -1054,7 +1054,7 @@ const { variants: variants$d, withObservedValues: withObservedValues$b } = pickA
|
|
|
1054
1054
|
CHECKBOX_GROUP_VARIANTS
|
|
1055
1055
|
);
|
|
1056
1056
|
function BaseCheckboxGroup(props) {
|
|
1057
|
-
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
1057
|
+
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$i(_a, ["children", "plasmicUpdateVariant"]);
|
|
1058
1058
|
return /* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadValues$k({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$b(
|
|
1059
1059
|
children,
|
|
1060
1060
|
{
|
|
@@ -1260,7 +1260,7 @@ var __spreadValues$j = (a, b) => {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
return a;
|
|
1262
1262
|
};
|
|
1263
|
-
var __objRest$
|
|
1263
|
+
var __objRest$h = (source, exclude) => {
|
|
1264
1264
|
var target = {};
|
|
1265
1265
|
for (var prop in source)
|
|
1266
1266
|
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -1295,7 +1295,7 @@ function BaseInput(props) {
|
|
|
1295
1295
|
disabled,
|
|
1296
1296
|
autoComplete,
|
|
1297
1297
|
value
|
|
1298
|
-
} = _a, rest = __objRest$
|
|
1298
|
+
} = _a, rest = __objRest$h(_a, [
|
|
1299
1299
|
"plasmicUpdateVariant",
|
|
1300
1300
|
"setControlContextData",
|
|
1301
1301
|
"disabled",
|
|
@@ -1430,7 +1430,7 @@ var __spreadValues$i = (a, b) => {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
return a;
|
|
1432
1432
|
};
|
|
1433
|
-
var __objRest$
|
|
1433
|
+
var __objRest$g = (source, exclude) => {
|
|
1434
1434
|
var target = {};
|
|
1435
1435
|
for (var prop in source)
|
|
1436
1436
|
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -1454,7 +1454,7 @@ const { variants: variants$b, withObservedValues: withObservedValues$a } = pickA
|
|
|
1454
1454
|
LIST_BOX_ITEM_VARIANTS
|
|
1455
1455
|
);
|
|
1456
1456
|
function BaseListBoxItem(props) {
|
|
1457
|
-
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$
|
|
1457
|
+
const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$g(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
|
|
1458
1458
|
const listboxContext = React.useContext(PlasmicListBoxContext);
|
|
1459
1459
|
const isStandalone = !listboxContext;
|
|
1460
1460
|
const [registeredId, setRegisteredId] = useState();
|
|
@@ -1603,7 +1603,7 @@ var __spreadValues$h = (a, b) => {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
return a;
|
|
1605
1605
|
};
|
|
1606
|
-
var __objRest$
|
|
1606
|
+
var __objRest$f = (source, exclude) => {
|
|
1607
1607
|
var target = {};
|
|
1608
1608
|
for (var prop in source)
|
|
1609
1609
|
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -1616,7 +1616,7 @@ var __objRest$g = (source, exclude) => {
|
|
|
1616
1616
|
return target;
|
|
1617
1617
|
};
|
|
1618
1618
|
function BaseSection(props) {
|
|
1619
|
-
const _a = props, { header, items } = _a, rest = __objRest$
|
|
1619
|
+
const _a = props, { header, items } = _a, rest = __objRest$f(_a, ["header", "items"]);
|
|
1620
1620
|
const contextProps = React.useContext(PlasmicListBoxContext);
|
|
1621
1621
|
const isStandalone = !contextProps;
|
|
1622
1622
|
const section = /* @__PURE__ */ React.createElement(Section, __spreadValues$h({}, rest), /* @__PURE__ */ React.createElement(Header, null, header), items);
|
|
@@ -1680,7 +1680,7 @@ var __spreadValues$g = (a, b) => {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
return a;
|
|
1682
1682
|
};
|
|
1683
|
-
var __objRest$
|
|
1683
|
+
var __objRest$e = (source, exclude) => {
|
|
1684
1684
|
var target = {};
|
|
1685
1685
|
for (var prop in source)
|
|
1686
1686
|
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -1710,7 +1710,7 @@ function BaseListBox(props) {
|
|
|
1710
1710
|
children,
|
|
1711
1711
|
selectedKeys,
|
|
1712
1712
|
defaultSelectedKeys
|
|
1713
|
-
} = _a, rest = __objRest$
|
|
1713
|
+
} = _a, rest = __objRest$e(_a, [
|
|
1714
1714
|
"setControlContextData",
|
|
1715
1715
|
"children",
|
|
1716
1716
|
"selectedKeys",
|
|
@@ -1942,7 +1942,7 @@ var __spreadValues$f = (a, b) => {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
return a;
|
|
1944
1944
|
};
|
|
1945
|
-
var __objRest$
|
|
1945
|
+
var __objRest$d = (source, exclude) => {
|
|
1946
1946
|
var target = {};
|
|
1947
1947
|
for (var prop in source)
|
|
1948
1948
|
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -1967,7 +1967,7 @@ function BasePopover(props) {
|
|
|
1967
1967
|
plasmicUpdateVariant,
|
|
1968
1968
|
setControlContextData,
|
|
1969
1969
|
matchTriggerWidth
|
|
1970
|
-
} = _a, restProps = __objRest$
|
|
1970
|
+
} = _a, restProps = __objRest$d(_a, [
|
|
1971
1971
|
"resetClassName",
|
|
1972
1972
|
"plasmicUpdateVariant",
|
|
1973
1973
|
"setControlContextData",
|
|
@@ -1994,7 +1994,7 @@ function BasePopover(props) {
|
|
|
1994
1994
|
// In component view, we never want to start with an empty artboard, so isOpen has to be true
|
|
1995
1995
|
isOpen: true
|
|
1996
1996
|
} : null
|
|
1997
|
-
), { children } = _b, mergedProps = __objRest$
|
|
1997
|
+
), { children } = _b, mergedProps = __objRest$d(_b, ["children"]);
|
|
1998
1998
|
useEffect(() => {
|
|
1999
1999
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
2000
2000
|
canMatchTriggerWidth: hasTrigger
|
|
@@ -2140,7 +2140,7 @@ var __spreadValues$e = (a, b) => {
|
|
|
2140
2140
|
return a;
|
|
2141
2141
|
};
|
|
2142
2142
|
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
2143
|
-
var __objRest$
|
|
2143
|
+
var __objRest$c = (source, exclude) => {
|
|
2144
2144
|
var target = {};
|
|
2145
2145
|
for (var prop in source)
|
|
2146
2146
|
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2169,7 +2169,7 @@ function BaseComboBox(props) {
|
|
|
2169
2169
|
className,
|
|
2170
2170
|
isDisabled,
|
|
2171
2171
|
isOpen: _isOpen
|
|
2172
|
-
} = _a, rest = __objRest$
|
|
2172
|
+
} = _a, rest = __objRest$c(_a, [
|
|
2173
2173
|
"children",
|
|
2174
2174
|
"setControlContextData",
|
|
2175
2175
|
"plasmicUpdateVariant",
|
|
@@ -2372,7 +2372,7 @@ var __spreadValues$d = (a, b) => {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
return a;
|
|
2374
2374
|
};
|
|
2375
|
-
var __objRest$
|
|
2375
|
+
var __objRest$b = (source, exclude) => {
|
|
2376
2376
|
var target = {};
|
|
2377
2377
|
for (var prop in source)
|
|
2378
2378
|
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2385,7 +2385,7 @@ var __objRest$c = (source, exclude) => {
|
|
|
2385
2385
|
return target;
|
|
2386
2386
|
};
|
|
2387
2387
|
function BaseHeading(_a) {
|
|
2388
|
-
var _b = _a, { children } = _b, rest = __objRest$
|
|
2388
|
+
var _b = _a, { children } = _b, rest = __objRest$b(_b, ["children"]);
|
|
2389
2389
|
return /* @__PURE__ */ React.createElement(Heading, __spreadValues$d({}, rest), children);
|
|
2390
2390
|
}
|
|
2391
2391
|
const HEADING_COMPONENT_NAME = makeComponentName("heading");
|
|
@@ -2443,7 +2443,7 @@ var __spreadValues$c = (a, b) => {
|
|
|
2443
2443
|
return a;
|
|
2444
2444
|
};
|
|
2445
2445
|
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
2446
|
-
var __objRest$
|
|
2446
|
+
var __objRest$a = (source, exclude) => {
|
|
2447
2447
|
var target = {};
|
|
2448
2448
|
for (var prop in source)
|
|
2449
2449
|
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2469,7 +2469,7 @@ const BaseModal = forwardRef(
|
|
|
2469
2469
|
resetClassName,
|
|
2470
2470
|
setControlContextData,
|
|
2471
2471
|
isDismissable
|
|
2472
|
-
} = _a, rest = __objRest$
|
|
2472
|
+
} = _a, rest = __objRest$a(_a, [
|
|
2473
2473
|
"children",
|
|
2474
2474
|
"modalOverlayClass",
|
|
2475
2475
|
"className",
|
|
@@ -2651,7 +2651,7 @@ var __spreadValues$b = (a, b) => {
|
|
|
2651
2651
|
return a;
|
|
2652
2652
|
};
|
|
2653
2653
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
2654
|
-
var __objRest$
|
|
2654
|
+
var __objRest$9 = (source, exclude) => {
|
|
2655
2655
|
var target = {};
|
|
2656
2656
|
for (var prop in source)
|
|
2657
2657
|
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2665,7 +2665,7 @@ var __objRest$a = (source, exclude) => {
|
|
|
2665
2665
|
};
|
|
2666
2666
|
function BaseDialogTrigger(props) {
|
|
2667
2667
|
var _b, _c, _d;
|
|
2668
|
-
const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$
|
|
2668
|
+
const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$9(_a, ["trigger", "dialog", "isOpen"]);
|
|
2669
2669
|
const { isSelected, selectedSlotName } = (_c = (_b = usePlasmicCanvasComponentInfo) == null ? void 0 : _b(props)) != null ? _c : {};
|
|
2670
2670
|
const isAutoOpen = selectedSlotName !== "trigger" && isSelected;
|
|
2671
2671
|
const mergedProps = __spreadProps$7(__spreadValues$b({}, rest), {
|
|
@@ -2751,7 +2751,7 @@ var __spreadValues$a = (a, b) => {
|
|
|
2751
2751
|
return a;
|
|
2752
2752
|
};
|
|
2753
2753
|
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
2754
|
-
var __objRest$
|
|
2754
|
+
var __objRest$8 = (source, exclude) => {
|
|
2755
2755
|
var target = {};
|
|
2756
2756
|
for (var prop in source)
|
|
2757
2757
|
if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2775,7 +2775,7 @@ const RADIO_VARIANTS = [
|
|
|
2775
2775
|
];
|
|
2776
2776
|
const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
|
|
2777
2777
|
function BaseRadio(props) {
|
|
2778
|
-
const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
2778
|
+
const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
|
|
2779
2779
|
const contextProps = React.useContext(PlasmicRadioGroupContext);
|
|
2780
2780
|
const isStandalone = !contextProps;
|
|
2781
2781
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
@@ -2889,7 +2889,7 @@ var __spreadValues$9 = (a, b) => {
|
|
|
2889
2889
|
return a;
|
|
2890
2890
|
};
|
|
2891
2891
|
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
2892
|
-
var __objRest$
|
|
2892
|
+
var __objRest$7 = (source, exclude) => {
|
|
2893
2893
|
var target = {};
|
|
2894
2894
|
for (var prop in source)
|
|
2895
2895
|
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2904,7 +2904,7 @@ var __objRest$8 = (source, exclude) => {
|
|
|
2904
2904
|
const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
|
|
2905
2905
|
const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
|
|
2906
2906
|
function BaseRadioGroup(props) {
|
|
2907
|
-
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
2907
|
+
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$7(_a, ["children", "plasmicUpdateVariant"]);
|
|
2908
2908
|
return /* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadValues$9({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$7(
|
|
2909
2909
|
children,
|
|
2910
2910
|
{
|
|
@@ -3314,7 +3314,7 @@ var __spreadValues$7 = (a, b) => {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
return a;
|
|
3316
3316
|
};
|
|
3317
|
-
var __objRest$
|
|
3317
|
+
var __objRest$6 = (source, exclude) => {
|
|
3318
3318
|
var target = {};
|
|
3319
3319
|
for (var prop in source)
|
|
3320
3320
|
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3331,7 +3331,7 @@ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickA
|
|
|
3331
3331
|
SLIDER_OUTPUT_VARIANTS
|
|
3332
3332
|
);
|
|
3333
3333
|
function BaseSliderOutput(props) {
|
|
3334
|
-
const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$
|
|
3334
|
+
const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$6(_a, ["plasmicUpdateVariant", "children"]);
|
|
3335
3335
|
return /* @__PURE__ */ React.createElement(SliderOutput, __spreadValues$7({}, rest), ({ isDisabled }) => withObservedValues$6(
|
|
3336
3336
|
children,
|
|
3337
3337
|
{
|
|
@@ -3398,7 +3398,7 @@ var __spreadValues$6 = (a, b) => {
|
|
|
3398
3398
|
return a;
|
|
3399
3399
|
};
|
|
3400
3400
|
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
3401
|
-
var __objRest$
|
|
3401
|
+
var __objRest$5 = (source, exclude) => {
|
|
3402
3402
|
var target = {};
|
|
3403
3403
|
for (var prop in source)
|
|
3404
3404
|
if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3425,7 +3425,7 @@ function BaseSliderThumb(_a) {
|
|
|
3425
3425
|
children,
|
|
3426
3426
|
advanced,
|
|
3427
3427
|
plasmicUpdateVariant
|
|
3428
|
-
} = _b, rest = __objRest$
|
|
3428
|
+
} = _b, rest = __objRest$5(_b, [
|
|
3429
3429
|
"children",
|
|
3430
3430
|
"advanced",
|
|
3431
3431
|
"plasmicUpdateVariant"
|
|
@@ -3507,7 +3507,7 @@ var __spreadValues$5 = (a, b) => {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
return a;
|
|
3509
3509
|
};
|
|
3510
|
-
var __objRest$
|
|
3510
|
+
var __objRest$4 = (source, exclude) => {
|
|
3511
3511
|
var target = {};
|
|
3512
3512
|
for (var prop in source)
|
|
3513
3513
|
if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3544,7 +3544,7 @@ function isMultiValueGuard(value) {
|
|
|
3544
3544
|
function BaseSliderTrack(props) {
|
|
3545
3545
|
const context = React.useContext(PlasmicSliderContext);
|
|
3546
3546
|
const isStandalone = !context;
|
|
3547
|
-
const _a = props, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
3547
|
+
const _a = props, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
|
|
3548
3548
|
const thumbsLength = context && isMultiValueGuard(context.value) ? context.value.length : 1;
|
|
3549
3549
|
const isMultiValue = thumbsLength > 1;
|
|
3550
3550
|
const { minIndex, maxIndex } = useMemo(() => {
|
|
@@ -3691,7 +3691,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
3691
3691
|
return a;
|
|
3692
3692
|
};
|
|
3693
3693
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
3694
|
-
var __objRest$
|
|
3694
|
+
var __objRest$3 = (source, exclude) => {
|
|
3695
3695
|
var target = {};
|
|
3696
3696
|
for (var prop in source)
|
|
3697
3697
|
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3708,7 +3708,7 @@ const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
|
|
|
3708
3708
|
const SLIDER_VARIANTS = ["disabled"];
|
|
3709
3709
|
const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
|
|
3710
3710
|
function BaseSlider(props) {
|
|
3711
|
-
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
3711
|
+
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
|
|
3712
3712
|
return /* @__PURE__ */ React.createElement(
|
|
3713
3713
|
PlasmicSliderContext.Provider,
|
|
3714
3714
|
{
|
|
@@ -3980,7 +3980,7 @@ var __spreadValues$3 = (a, b) => {
|
|
|
3980
3980
|
return a;
|
|
3981
3981
|
};
|
|
3982
3982
|
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
3983
|
-
var __objRest$
|
|
3983
|
+
var __objRest$2 = (source, exclude) => {
|
|
3984
3984
|
var target = {};
|
|
3985
3985
|
for (var prop in source)
|
|
3986
3986
|
if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4003,7 +4003,7 @@ const SWITCH_VARIANTS = [
|
|
|
4003
4003
|
];
|
|
4004
4004
|
const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
|
|
4005
4005
|
function BaseSwitch(props) {
|
|
4006
|
-
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$
|
|
4006
|
+
const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$2(_a, ["children", "plasmicUpdateVariant"]);
|
|
4007
4007
|
return /* @__PURE__ */ React.createElement(Switch, __spreadValues$3({}, rest), ({
|
|
4008
4008
|
isHovered,
|
|
4009
4009
|
isPressed,
|
|
@@ -4169,7 +4169,7 @@ var __spreadValues$2 = (a, b) => {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
return a;
|
|
4171
4171
|
};
|
|
4172
|
-
var __objRest$
|
|
4172
|
+
var __objRest$1 = (source, exclude) => {
|
|
4173
4173
|
var target = {};
|
|
4174
4174
|
for (var prop in source)
|
|
4175
4175
|
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4198,7 +4198,7 @@ const inputHelpers = {
|
|
|
4198
4198
|
};
|
|
4199
4199
|
function BaseTextArea(props) {
|
|
4200
4200
|
var _b;
|
|
4201
|
-
const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$
|
|
4201
|
+
const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$1(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
|
|
4202
4202
|
const textFieldContext = React.useContext(PlasmicTextFieldContext);
|
|
4203
4203
|
const mergedProps = mergeProps(rest, {
|
|
4204
4204
|
disabled: (_b = textFieldContext == null ? void 0 : textFieldContext.isDisabled) != null ? _b : disabled
|
|
@@ -4306,7 +4306,7 @@ var __spreadValues$1 = (a, b) => {
|
|
|
4306
4306
|
return a;
|
|
4307
4307
|
};
|
|
4308
4308
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
4309
|
-
var __objRest
|
|
4309
|
+
var __objRest = (source, exclude) => {
|
|
4310
4310
|
var target = {};
|
|
4311
4311
|
for (var prop in source)
|
|
4312
4312
|
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4321,7 +4321,7 @@ var __objRest$1 = (source, exclude) => {
|
|
|
4321
4321
|
const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
|
|
4322
4322
|
const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
|
|
4323
4323
|
function BaseTextField(props) {
|
|
4324
|
-
const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest
|
|
4324
|
+
const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
|
|
4325
4325
|
return /* @__PURE__ */ React.createElement(PlasmicTextFieldContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(TextField, __spreadValues$1({ autoComplete: resolveAutoComplete(autoComplete) }, rest), ({ isDisabled, isReadOnly }) => withObservedValues$1(
|
|
4326
4326
|
children,
|
|
4327
4327
|
{
|
|
@@ -4460,18 +4460,6 @@ var __spreadValues = (a, b) => {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
return a;
|
|
4462
4462
|
};
|
|
4463
|
-
var __objRest = (source, exclude) => {
|
|
4464
|
-
var target = {};
|
|
4465
|
-
for (var prop in source)
|
|
4466
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4467
|
-
target[prop] = source[prop];
|
|
4468
|
-
if (source != null && __getOwnPropSymbols)
|
|
4469
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
4470
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
4471
|
-
target[prop] = source[prop];
|
|
4472
|
-
}
|
|
4473
|
-
return target;
|
|
4474
|
-
};
|
|
4475
4463
|
const TOOLTIP_VARIANTS = [
|
|
4476
4464
|
"placementTop",
|
|
4477
4465
|
"placementBottom",
|
|
@@ -4479,18 +4467,13 @@ const TOOLTIP_VARIANTS = [
|
|
|
4479
4467
|
"placementRight"
|
|
4480
4468
|
];
|
|
4481
4469
|
const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
|
|
4482
|
-
function TriggerWrapper(
|
|
4483
|
-
var _b = _a, {
|
|
4484
|
-
children
|
|
4485
|
-
} = _b, rest = __objRest(_b, [
|
|
4486
|
-
"children"
|
|
4487
|
-
]);
|
|
4470
|
+
function TriggerWrapper({ children, className }) {
|
|
4488
4471
|
const ref = React.useRef(null);
|
|
4489
|
-
const { focusableProps } = useFocusable(
|
|
4490
|
-
return /* @__PURE__ */ React.createElement("div", __spreadValues({ ref }, focusableProps), children);
|
|
4472
|
+
const { focusableProps } = useFocusable({}, ref);
|
|
4473
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, className }, focusableProps), children);
|
|
4491
4474
|
}
|
|
4492
4475
|
function BaseTooltip(props) {
|
|
4493
|
-
var _a, _b;
|
|
4476
|
+
var _a, _b, _c;
|
|
4494
4477
|
const {
|
|
4495
4478
|
children,
|
|
4496
4479
|
isDisabled,
|
|
@@ -4511,7 +4494,7 @@ function BaseTooltip(props) {
|
|
|
4511
4494
|
} = props;
|
|
4512
4495
|
const { isSelected, selectedSlotName } = (_b = (_a = usePlasmicCanvasComponentInfo) == null ? void 0 : _a(props)) != null ? _b : {};
|
|
4513
4496
|
const isAutoOpen = selectedSlotName !== "children" && isSelected;
|
|
4514
|
-
const _isOpen = isAutoOpen || isOpen;
|
|
4497
|
+
const _isOpen = (_c = isAutoOpen || isOpen) != null ? _c : false;
|
|
4515
4498
|
return /* @__PURE__ */ React.createElement(
|
|
4516
4499
|
TooltipTrigger,
|
|
4517
4500
|
{
|
|
@@ -4523,7 +4506,7 @@ function BaseTooltip(props) {
|
|
|
4523
4506
|
defaultOpen,
|
|
4524
4507
|
onOpenChange
|
|
4525
4508
|
},
|
|
4526
|
-
/* @__PURE__ */ React.createElement(TriggerWrapper,
|
|
4509
|
+
/* @__PURE__ */ React.createElement(TriggerWrapper, { className: resetClassName }, children),
|
|
4527
4510
|
/* @__PURE__ */ React.createElement(
|
|
4528
4511
|
Tooltip,
|
|
4529
4512
|
{
|