@plasmicpkgs/react-aria 0.0.130 → 0.0.132
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 +14 -27
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +12 -25
- package/dist/react-aria.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerOverlayArrow.cjs.js +1 -1
- package/skinny/registerOverlayArrow.cjs.js.map +1 -1
- package/skinny/registerOverlayArrow.esm.js +1 -1
- package/skinny/registerOverlayArrow.esm.js.map +1 -1
- package/skinny/registerSliderOutput.cjs.js +7 -1
- package/skinny/registerSliderOutput.cjs.js.map +1 -1
- package/skinny/registerSliderOutput.esm.js +8 -2
- package/skinny/registerSliderOutput.esm.js.map +1 -1
- package/skinny/registerSliderThumb.cjs.js +5 -23
- package/skinny/registerSliderThumb.cjs.js.map +1 -1
- package/skinny/registerSliderThumb.esm.js +7 -25
- package/skinny/registerSliderThumb.esm.js.map +1 -1
- package/dist/ErrorBoundary.d.ts +0 -14
- package/skinny/ErrorBoundary.d.ts +0 -14
package/dist/react-aria.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePlasmicCanvasContext, usePlasmicCanvasComponentInfo, usePlasmicLink } from '@plasmicapp/host';
|
|
2
|
-
import React, { useEffect, useState, useMemo, useCallback, forwardRef, useImperativeHandle,
|
|
2
|
+
import React, { useEffect, useState, useMemo, useCallback, forwardRef, useImperativeHandle, useRef, useId } from 'react';
|
|
3
3
|
import { mergeProps, useLink, useHover, useFocusRing, useButton, useFocusWithin } from 'react-aria';
|
|
4
|
-
import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Dialog, ModalOverlay, Modal, DialogTrigger, Heading, TooltipTriggerStateContext, OverlayArrow, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput,
|
|
4
|
+
import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Dialog, ModalOverlay, Modal, DialogTrigger, Heading, TooltipTriggerStateContext, OverlayArrow, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput, Slider, SliderTrackContext, SliderThumb, SliderTrack, Switch, TextAreaContext, TextField, Provider, Tooltip } from 'react-aria-components';
|
|
5
5
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
6
6
|
import { mergeProps as mergeProps$1 } from '@react-aria/utils';
|
|
7
7
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
@@ -3113,7 +3113,7 @@ function registerOverlayArrow(loader, overrides) {
|
|
|
3113
3113
|
displayName: "Aria Overlay Arrow",
|
|
3114
3114
|
importPath: "@plasmicpkgs/react-aria/skinny/registerOverlayArrow",
|
|
3115
3115
|
importName: "BaseOverlayArrow",
|
|
3116
|
-
styleSections:
|
|
3116
|
+
styleSections: ["visibility"],
|
|
3117
3117
|
variants: variants$9,
|
|
3118
3118
|
props: {
|
|
3119
3119
|
children: {
|
|
@@ -3799,13 +3799,18 @@ const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickA
|
|
|
3799
3799
|
);
|
|
3800
3800
|
function BaseSliderOutput(props) {
|
|
3801
3801
|
const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
|
|
3802
|
-
|
|
3802
|
+
const isStandalone = !React.useContext(PlasmicSliderContext);
|
|
3803
|
+
const sliderOutput = /* @__PURE__ */ React.createElement(SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$5(
|
|
3803
3804
|
children,
|
|
3804
3805
|
{
|
|
3805
3806
|
disabled: isDisabled
|
|
3806
3807
|
},
|
|
3807
3808
|
plasmicUpdateVariant
|
|
3808
3809
|
));
|
|
3810
|
+
if (isStandalone) {
|
|
3811
|
+
return /* @__PURE__ */ React.createElement(Slider, { style: { height: "100%", width: "100%" } }, sliderOutput);
|
|
3812
|
+
}
|
|
3813
|
+
return sliderOutput;
|
|
3809
3814
|
}
|
|
3810
3815
|
const SLIDER_OUTPUT_COMPONENT_NAME = makeComponentName("sliderOutput");
|
|
3811
3816
|
function registerSliderOutput(loader, overrides) {
|
|
@@ -3830,22 +3835,6 @@ function registerSliderOutput(loader, overrides) {
|
|
|
3830
3835
|
);
|
|
3831
3836
|
}
|
|
3832
3837
|
|
|
3833
|
-
class ErrorBoundary extends Component {
|
|
3834
|
-
constructor(props) {
|
|
3835
|
-
super(props);
|
|
3836
|
-
this.state = { hasError: false };
|
|
3837
|
-
}
|
|
3838
|
-
static getDerivedStateFromError(_) {
|
|
3839
|
-
return { hasError: true };
|
|
3840
|
-
}
|
|
3841
|
-
render() {
|
|
3842
|
-
if (this.state.hasError) {
|
|
3843
|
-
return this.props.fallback;
|
|
3844
|
-
}
|
|
3845
|
-
return this.props.children;
|
|
3846
|
-
}
|
|
3847
|
-
}
|
|
3848
|
-
|
|
3849
3838
|
var __defProp$6 = Object.defineProperty;
|
|
3850
3839
|
var __defProps$5 = Object.defineProperties;
|
|
3851
3840
|
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
@@ -3897,6 +3886,7 @@ function BaseSliderThumb(_a) {
|
|
|
3897
3886
|
"advanced",
|
|
3898
3887
|
"plasmicUpdateVariant"
|
|
3899
3888
|
]);
|
|
3889
|
+
const isStandalone = !React.useContext(SliderTrackContext);
|
|
3900
3890
|
const thumb = /* @__PURE__ */ React.createElement(SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
|
|
3901
3891
|
/* @__PURE__ */ React.createElement(React.Fragment, null, advanced ? children : void 0),
|
|
3902
3892
|
{
|
|
@@ -3908,13 +3898,10 @@ function BaseSliderThumb(_a) {
|
|
|
3908
3898
|
},
|
|
3909
3899
|
plasmicUpdateVariant
|
|
3910
3900
|
));
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
},
|
|
3916
|
-
thumb
|
|
3917
|
-
);
|
|
3901
|
+
if (isStandalone) {
|
|
3902
|
+
return /* @__PURE__ */ React.createElement(Slider, { style: { height: "100%", width: "100%" } }, /* @__PURE__ */ React.createElement(SliderTrack, null, thumb));
|
|
3903
|
+
}
|
|
3904
|
+
return thumb;
|
|
3918
3905
|
}
|
|
3919
3906
|
const SLIDER_THUMB_COMPONENT_NAME = makeComponentName("sliderThumb");
|
|
3920
3907
|
function registerSliderThumb(loader, overrides) {
|