@plasmicapp/react-web 1.0.36 → 1.0.38

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.
@@ -1,4 +1,4 @@
1
- import { AriaCheckboxProps } from "@react-types/checkbox";
1
+ import { type AriaCheckboxProps } from "@react-aria/checkbox";
2
2
  import * as React from "react";
3
3
  import { AnyPlasmicClass, PlasmicClassArgs, PlasmicClassOverrides, PlasmicClassVariants, VariantDef } from "../plume-utils";
4
4
  import { StyleProps } from "../props-utils";
@@ -1,4 +1,4 @@
1
- import { AriaSwitchProps } from "@react-types/switch";
1
+ import { type AriaSwitchProps } from "@react-aria/switch";
2
2
  import * as React from "react";
3
3
  import { AnyPlasmicClass, PlasmicClassArgs, PlasmicClassOverrides, PlasmicClassVariants, VariantDef } from "../plume-utils";
4
4
  import { StyleProps } from "../props-utils";
@@ -3224,10 +3224,10 @@ function useCheckbox(plasmicClass, props, config, ref) {
3224
3224
  props: mergeProps(getStyleProps(props), {
3225
3225
  ref: rootRef,
3226
3226
  }),
3227
- wrapChildren: function (children) { return (React.createElement(React.Fragment, null,
3227
+ wrapChildren: function (renderedChildren) { return (React.createElement(React.Fragment, null,
3228
3228
  React.createElement(VisuallyHidden, null,
3229
3229
  React.createElement("input", __assign({}, inputProps, { ref: inputRef }))),
3230
- children)); },
3230
+ renderedChildren)); },
3231
3231
  },
3232
3232
  _a);
3233
3233
  var args = __assign(__assign({}, pick.apply(void 0, __spreadArray([props], __read(plasmicClass.internalArgProps), false))), (config.labelSlot ? (_b = {}, _b[config.labelSlot] = children, _b) : {}));
@@ -3577,10 +3577,7 @@ function useMenu(plasmicClass, props, config, ref) {
3577
3577
  var state = useTreeState(ariaProps);
3578
3578
  var menuListRef = React.useRef(null);
3579
3579
  var menuProps = useMenu$1(__assign(__assign({}, ariaProps), { autoFocus: triggerContext === null || triggerContext === void 0 ? void 0 : triggerContext.autoFocus }), state, menuListRef).menuProps;
3580
- var contextValue = React.useMemo(function () { return ({ state: state, menuProps: props }); }, [
3581
- state,
3582
- props,
3583
- ]);
3580
+ var contextValue = React.useMemo(function () { return ({ state: state, menuProps: props }); }, [state, props]);
3584
3581
  var variants = __assign({}, pick.apply(void 0, __spreadArray([props], __read(plasmicClass.internalVariantProps), false)));
3585
3582
  var overrides = (_a = {},
3586
3583
  _a[config.root] = {
@@ -4131,10 +4128,10 @@ function useSwitch(plasmicClass, props, config, ref) {
4131
4128
  props: mergeProps(getStyleProps(props), {
4132
4129
  ref: rootRef,
4133
4130
  }),
4134
- wrapChildren: function (children) { return (React.createElement(React.Fragment, null,
4131
+ wrapChildren: function (renderedChildren) { return (React.createElement(React.Fragment, null,
4135
4132
  React.createElement(VisuallyHidden, null,
4136
4133
  React.createElement("input", __assign({}, inputProps, { ref: inputRef }))),
4137
- children)); },
4134
+ renderedChildren)); },
4138
4135
  },
4139
4136
  _a);
4140
4137
  var args = __assign(__assign({}, pick.apply(void 0, __spreadArray([props], __read(plasmicClass.internalArgProps), false))), (config.labelSlot ? (_b = {}, _b[config.labelSlot] = children, _b) : {}));