@noya-app/noya-designsystem 0.1.67 → 0.1.68

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
@@ -4128,7 +4128,7 @@ import React21, {
4128
4128
  } from "react";
4129
4129
 
4130
4130
  // src/components/Dialog.tsx
4131
- import { Dialog as DialogPrimitive } from "radix-ui";
4131
+ import { Dialog as DialogPrimitive, VisuallyHidden } from "radix-ui";
4132
4132
  import React14, {
4133
4133
  forwardRef as forwardRef6,
4134
4134
  useImperativeHandle,
@@ -4204,6 +4204,7 @@ var Dialog = forwardRef6(function Dialog2({
4204
4204
  onOpenAutoFocus,
4205
4205
  style: style2,
4206
4206
  className,
4207
+ "aria-describedby": typeof description === "string" ? description : "",
4207
4208
  ...closeOnInteractOutside === false && {
4208
4209
  onPointerDownOutside: (event) => event.preventDefault(),
4209
4210
  onInteractOutside: (event) => event.preventDefault()
@@ -4222,6 +4223,7 @@ var Dialog = forwardRef6(function Dialog2({
4222
4223
  }
4223
4224
  )),
4224
4225
  title && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(StyledTitle, null, title), /* @__PURE__ */ React14.createElement(Spacer.Vertical, { size: description ? 10 : 20 })),
4226
+ !title && /* @__PURE__ */ React14.createElement(VisuallyHidden.Root, null, /* @__PURE__ */ React14.createElement(StyledTitle, null, "Dialog")),
4225
4227
  description && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(StyledDescription, null, description), /* @__PURE__ */ React14.createElement(Spacer.Vertical, { size: 20 })),
4226
4228
  children
4227
4229
  ));
@@ -11512,7 +11514,7 @@ var ConnectedUsersMenuLayout = ({
11512
11514
  launchAIAssistant,
11513
11515
  isAssistantOpen
11514
11516
  }) => {
11515
- return /* @__PURE__ */ React69.createElement("div", { className: "n-flex n-gap-1.5" }, /* @__PURE__ */ React69.createElement(AvatarStack, { size: INPUT_HEIGHT, className: "n-mr-1" }, renderUsers()), launchAIAssistant && /* @__PURE__ */ React69.createElement(Tooltip, { content: "AI Assistant" }, /* @__PURE__ */ React69.createElement(
11517
+ return /* @__PURE__ */ React69.createElement("div", { className: "n-flex n-gap-1.5" }, /* @__PURE__ */ React69.createElement(AvatarStack, { size: INPUT_HEIGHT }, renderUsers()), launchAIAssistant && /* @__PURE__ */ React69.createElement(Tooltip, { content: "AI Assistant" }, /* @__PURE__ */ React69.createElement(
11516
11518
  Button,
11517
11519
  {
11518
11520
  active: isAssistantOpen,
@@ -15102,7 +15104,7 @@ function BaseToolbar({
15102
15104
  logo && /* @__PURE__ */ React83.createElement(React83.Fragment, null, logo, /* @__PURE__ */ React83.createElement(DividerVertical, null)),
15103
15105
  /* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 }),
15104
15106
  left && /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement("div", { className: "n-flex n-gap-toolbar-separator" }, left), /* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 })),
15105
- /* @__PURE__ */ React83.createElement(
15107
+ children && /* @__PURE__ */ React83.createElement(
15106
15108
  "div",
15107
15109
  {
15108
15110
  className: "n-flex n-items-center n-justify-center n-text-text-muted n-pointer-events-none @2xl/toolbar:n-absolute n-inset-0"
@@ -15111,7 +15113,8 @@ function BaseToolbar({
15111
15113
  ),
15112
15114
  /* @__PURE__ */ React83.createElement(Spacer.Horizontal, null),
15113
15115
  /* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 }),
15114
- /* @__PURE__ */ React83.createElement("div", { className: "n-flex n-gap-toolbar-separator" }, right)
15116
+ /* @__PURE__ */ React83.createElement("div", { className: "n-flex n-gap-toolbar-separator" }, right),
15117
+ /* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 })
15115
15118
  );
15116
15119
  }
15117
15120