@noya-app/noya-designsystem 0.1.6 → 0.1.7

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/index.mjs CHANGED
@@ -2374,7 +2374,7 @@ var DraggableMenuButton = memo14(function DraggableMenuButton2({
2374
2374
  event.preventDefault();
2375
2375
  }
2376
2376
  },
2377
- /* @__PURE__ */ React23.createElement(
2377
+ items && onSelect ? /* @__PURE__ */ React23.createElement(
2378
2378
  DropdownMenu,
2379
2379
  {
2380
2380
  open,
@@ -2389,6 +2389,11 @@ var DraggableMenuButton = memo14(function DraggableMenuButton2({
2389
2389
  color: isVisible || open ? color : "transparent"
2390
2390
  }
2391
2391
  ))
2392
+ ) : /* @__PURE__ */ React23.createElement(
2393
+ DragHandleDots2Icon,
2394
+ {
2395
+ color: isVisible || open ? color : "transparent"
2396
+ }
2392
2397
  )
2393
2398
  );
2394
2399
  });
@@ -3905,7 +3910,8 @@ var ListViewRow = forwardRef10(function ListViewRow2({
3905
3910
  onContextMenu,
3906
3911
  onSelectMenuItem,
3907
3912
  onMenuOpenChange,
3908
- onKeyDown
3913
+ onKeyDown,
3914
+ style: style3
3909
3915
  }, forwardedRef) {
3910
3916
  depth = Math.max(0, depth);
3911
3917
  const {
@@ -3939,13 +3945,14 @@ var ListViewRow = forwardRef10(function ListViewRow2({
3939
3945
  },
3940
3946
  [onDoubleClick]
3941
3947
  );
3942
- const isDraggingStyle = useMemo16(() => {
3948
+ const mergedStyle = useMemo16(() => {
3943
3949
  return isDragging ? {
3944
3950
  // TODO: Where do these offsets actually come from?
3945
3951
  transform: `translate3d(-36px, -6px, 0)`,
3946
- width: `calc(100% + 48px)`
3947
- } : void 0;
3948
- }, [isDragging]);
3952
+ width: `calc(100% + 48px)`,
3953
+ ...style3
3954
+ } : style3;
3955
+ }, [isDragging, style3]);
3949
3956
  const renderContent = ({
3950
3957
  relativeDropPosition,
3951
3958
  ...renderProps
@@ -3973,7 +3980,7 @@ var ListViewRow = forwardRef10(function ListViewRow2({
3973
3980
  "aria-selected": selected,
3974
3981
  divider: !isDragging && divider,
3975
3982
  onKeyDown,
3976
- style: isDraggingStyle,
3983
+ style: mergedStyle,
3977
3984
  ...renderProps,
3978
3985
  ...mergeEventHandlers(
3979
3986
  { onPointerDown: renderProps.onPointerDown },
@@ -5718,8 +5725,9 @@ var RowLabel = styled33.span(({ theme, textStyle }) => ({
5718
5725
  color: theme.colors.textSubtle,
5719
5726
  fontWeight: "bold"
5720
5727
  },
5721
- lineHeight: "19px"
5728
+ lineHeight: "19px",
5722
5729
  // Button height
5730
+ alignItems: "center"
5723
5731
  }));
5724
5732
  var LabeledRow = memo29(function LabeledRow2({
5725
5733
  id,