@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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.css +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/BaseToolbar.tsx +11 -8
- package/src/components/Dialog.tsx +7 -1
- package/src/components/connected-users-menu/ConnectedUsersMenuLayout.tsx +1 -3
- package/src/index.css +2 -2
package/package.json
CHANGED
|
@@ -82,18 +82,21 @@ export function BaseToolbar({
|
|
|
82
82
|
<Spacer.Horizontal size={10} />
|
|
83
83
|
</>
|
|
84
84
|
)}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
{children && (
|
|
86
|
+
<div
|
|
87
|
+
className={
|
|
88
|
+
"n-flex n-items-center n-justify-center n-text-text-muted n-pointer-events-none @2xl/toolbar:n-absolute n-inset-0"
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
<div className="n-flex n-items-center n-justify-center n-pointer-events-auto">
|
|
92
|
+
{children}
|
|
93
|
+
</div>
|
|
92
94
|
</div>
|
|
93
|
-
|
|
95
|
+
)}
|
|
94
96
|
<Spacer.Horizontal />
|
|
95
97
|
<Spacer.Horizontal size={10} />
|
|
96
98
|
<div className="n-flex n-gap-toolbar-separator">{right}</div>
|
|
99
|
+
<Spacer.Horizontal size={10} />
|
|
97
100
|
</BaseToolbarContainer>
|
|
98
101
|
);
|
|
99
102
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
3
|
+
import { Dialog as DialogPrimitive, VisuallyHidden } from "radix-ui";
|
|
4
4
|
import React, {
|
|
5
5
|
ComponentProps,
|
|
6
6
|
ForwardedRef,
|
|
@@ -121,6 +121,7 @@ export const Dialog = forwardRef(function Dialog(
|
|
|
121
121
|
onOpenAutoFocus={onOpenAutoFocus}
|
|
122
122
|
style={style}
|
|
123
123
|
className={className}
|
|
124
|
+
aria-describedby={typeof description === "string" ? description : ""}
|
|
124
125
|
{...(closeOnInteractOutside === false && {
|
|
125
126
|
onPointerDownOutside: (event) => event.preventDefault(),
|
|
126
127
|
onInteractOutside: (event) => event.preventDefault(),
|
|
@@ -145,6 +146,11 @@ export const Dialog = forwardRef(function Dialog(
|
|
|
145
146
|
<Spacer.Vertical size={description ? 10 : 20} />
|
|
146
147
|
</>
|
|
147
148
|
)}
|
|
149
|
+
{!title && (
|
|
150
|
+
<VisuallyHidden.Root>
|
|
151
|
+
<StyledTitle>Dialog</StyledTitle>
|
|
152
|
+
</VisuallyHidden.Root>
|
|
153
|
+
)}
|
|
148
154
|
{description && (
|
|
149
155
|
<>
|
|
150
156
|
<StyledDescription>{description}</StyledDescription>
|
|
@@ -33,9 +33,7 @@ export const ConnectedUsersMenuLayout = ({
|
|
|
33
33
|
}: ConnectedUsersMenuLayoutProps) => {
|
|
34
34
|
return (
|
|
35
35
|
<div className="n-flex n-gap-1.5">
|
|
36
|
-
<AvatarStack size={INPUT_HEIGHT}
|
|
37
|
-
{renderUsers()}
|
|
38
|
-
</AvatarStack>
|
|
36
|
+
<AvatarStack size={INPUT_HEIGHT}>{renderUsers()}</AvatarStack>
|
|
39
37
|
{launchAIAssistant && (
|
|
40
38
|
<Tooltip content="AI Assistant">
|
|
41
39
|
<Button
|
package/src/index.css
CHANGED
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
/* Direct child pre blocks */
|
|
275
|
-
.n-prose
|
|
275
|
+
.n-prose pre {
|
|
276
276
|
background-color: var(--n-indigo-25);
|
|
277
277
|
border-width: 1px;
|
|
278
278
|
border-style: solid;
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
/* Code inside pre */
|
|
284
|
-
.n-prose
|
|
284
|
+
.n-prose pre > code {
|
|
285
285
|
font-size: 12.8px;
|
|
286
286
|
}
|
|
287
287
|
|