@plasmicapp/react-web 1.0.37 → 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.
- package/README.internal +10 -26
- package/dist/all.d.ts +130 -3
- package/dist/index.cjs.js +5 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/plume/checkbox/index.d.ts +1 -1
- package/dist/plume/switch/index.d.ts +1 -1
- package/dist/react-web.esm.js +5 -8
- package/dist/react-web.esm.js.map +1 -1
- package/package.json +10 -11
- package/skinny/dist/plume/checkbox/index.d.ts +1 -1
- package/skinny/dist/plume/checkbox/index.js +2 -2
- package/skinny/dist/plume/checkbox/index.js.map +1 -1
- package/skinny/dist/plume/menu/index.js +1 -4
- package/skinny/dist/plume/menu/index.js.map +1 -1
- package/skinny/dist/plume/switch/index.d.ts +1 -1
- package/skinny/dist/plume/switch/index.js +2 -2
- package/skinny/dist/plume/switch/index.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AriaCheckboxProps } from "@react-
|
|
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-
|
|
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";
|
package/dist/react-web.esm.js
CHANGED
|
@@ -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 (
|
|
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
|
-
|
|
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 (
|
|
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
|
-
|
|
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) : {}));
|