@vuu-ui/vuu-layout 0.7.0-debug → 0.7.1-debug
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/cjs/index.js +4 -3
- package/cjs/index.js.map +3 -3
- package/esm/index.js +4 -3
- package/esm/index.js.map +3 -3
- package/package.json +3 -3
- package/types/palette/Palette.d.ts +3 -1
package/esm/index.js
CHANGED
|
@@ -4885,6 +4885,7 @@ var Palette = ({
|
|
|
4885
4885
|
children,
|
|
4886
4886
|
className,
|
|
4887
4887
|
orientation = "horizontal",
|
|
4888
|
+
ViewProps: ViewProps2,
|
|
4888
4889
|
...props
|
|
4889
4890
|
}) => {
|
|
4890
4891
|
const dispatch = useLayoutProviderDispatch();
|
|
@@ -4907,7 +4908,7 @@ var Palette = ({
|
|
|
4907
4908
|
const { height, left, top, width } = listItemElement.getBoundingClientRect();
|
|
4908
4909
|
const id = uuid5();
|
|
4909
4910
|
const identifiers = { id, key: id };
|
|
4910
|
-
const component = template ? payload : /* @__PURE__ */ jsx16(MemoView, { ...identifiers, ...props2, title: props2.label, children: payload });
|
|
4911
|
+
const component = template ? payload : /* @__PURE__ */ jsx16(MemoView, { ...ViewProps2, ...identifiers, ...props2, title: props2.label, children: payload });
|
|
4911
4912
|
dispatch({
|
|
4912
4913
|
dragRect: {
|
|
4913
4914
|
left,
|
|
@@ -4956,13 +4957,13 @@ import cx10 from "classnames";
|
|
|
4956
4957
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
4957
4958
|
var classBase7 = "vuuPalette";
|
|
4958
4959
|
var PaletteListItem = (props) => {
|
|
4959
|
-
const { children, ViewProps, label, onMouseDown, template, ...restProps } = props;
|
|
4960
|
+
const { children, ViewProps: ViewProps2, label, onMouseDown, template, ...restProps } = props;
|
|
4960
4961
|
const dispatch = useLayoutProviderDispatch();
|
|
4961
4962
|
const handleMouseDown = (evt) => {
|
|
4962
4963
|
const { left, top, width } = evt.currentTarget.getBoundingClientRect();
|
|
4963
4964
|
const id = uuid6();
|
|
4964
4965
|
const identifiers = { id, key: id };
|
|
4965
|
-
const component = template ? children : /* @__PURE__ */ jsx17(MemoView, { ...identifiers, ...
|
|
4966
|
+
const component = template ? children : /* @__PURE__ */ jsx17(MemoView, { ...identifiers, ...ViewProps2, title: props.label, children });
|
|
4966
4967
|
dispatch({
|
|
4967
4968
|
type: "drag-start",
|
|
4968
4969
|
evt: evt.nativeEvent,
|