@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/cjs/index.js
CHANGED
|
@@ -4956,6 +4956,7 @@ var Palette = ({
|
|
|
4956
4956
|
children,
|
|
4957
4957
|
className,
|
|
4958
4958
|
orientation = "horizontal",
|
|
4959
|
+
ViewProps: ViewProps2,
|
|
4959
4960
|
...props
|
|
4960
4961
|
}) => {
|
|
4961
4962
|
const dispatch = useLayoutProviderDispatch();
|
|
@@ -4978,7 +4979,7 @@ var Palette = ({
|
|
|
4978
4979
|
const { height, left, top, width } = listItemElement.getBoundingClientRect();
|
|
4979
4980
|
const id = (0, import_vuu_utils8.uuid)();
|
|
4980
4981
|
const identifiers = { id, key: id };
|
|
4981
|
-
const component = template ? payload : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MemoView, { ...identifiers, ...props2, title: props2.label, children: payload });
|
|
4982
|
+
const component = template ? payload : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MemoView, { ...ViewProps2, ...identifiers, ...props2, title: props2.label, children: payload });
|
|
4982
4983
|
dispatch({
|
|
4983
4984
|
dragRect: {
|
|
4984
4985
|
left,
|
|
@@ -5027,13 +5028,13 @@ var import_classnames12 = __toESM(require("classnames"));
|
|
|
5027
5028
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
5028
5029
|
var classBase7 = "vuuPalette";
|
|
5029
5030
|
var PaletteListItem = (props) => {
|
|
5030
|
-
const { children, ViewProps, label, onMouseDown, template, ...restProps } = props;
|
|
5031
|
+
const { children, ViewProps: ViewProps2, label, onMouseDown, template, ...restProps } = props;
|
|
5031
5032
|
const dispatch = useLayoutProviderDispatch();
|
|
5032
5033
|
const handleMouseDown = (evt) => {
|
|
5033
5034
|
const { left, top, width } = evt.currentTarget.getBoundingClientRect();
|
|
5034
5035
|
const id = (0, import_vuu_utils9.uuid)();
|
|
5035
5036
|
const identifiers = { id, key: id };
|
|
5036
|
-
const component = template ? children : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(MemoView, { ...identifiers, ...
|
|
5037
|
+
const component = template ? children : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(MemoView, { ...identifiers, ...ViewProps2, title: props.label, children });
|
|
5037
5038
|
dispatch({
|
|
5038
5039
|
type: "drag-start",
|
|
5039
5040
|
evt: evt.nativeEvent,
|