@noya-app/noya-designsystem 0.1.91 → 0.1.93
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 +12 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Toast.tsx +2 -1
- package/src/components/Toolbar.tsx +1 -1
- package/src/components/__tests__/Toolbar.test.tsx +3 -0
- package/src/index.css +2 -1
package/package.json
CHANGED
package/src/components/Toast.tsx
CHANGED
|
@@ -10,6 +10,7 @@ interface ToastData {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
content: ReactNode;
|
|
12
12
|
action?: ReactNode;
|
|
13
|
+
timeout?: number;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
// Context for toast functionality
|
|
@@ -78,7 +79,7 @@ function ToastProviderInner({ children }: { children: React.ReactNode }) {
|
|
|
78
79
|
|
|
79
80
|
const showToast = useCallback(
|
|
80
81
|
(data: ToastData) => {
|
|
81
|
-
toastManager.add({ data });
|
|
82
|
+
toastManager.add({ data, timeout: data.timeout });
|
|
82
83
|
},
|
|
83
84
|
[toastManager]
|
|
84
85
|
);
|
|
@@ -24,7 +24,7 @@ export const Toolbar = forwardRef<HTMLDivElement, ToolbarProps>(
|
|
|
24
24
|
ref={ref}
|
|
25
25
|
role={role}
|
|
26
26
|
className={cx(
|
|
27
|
-
"n-pointer-events-auto n-flex n-items-center n-rounded n-bg-popover-background n-shadow-popover",
|
|
27
|
+
"n-pointer-events-auto n-flex n-max-w-full n-flex-wrap n-items-center n-justify-center n-rounded n-bg-popover-background n-shadow-popover",
|
|
28
28
|
size === "small" ? "n-gap-1 n-p-1" : "n-gap-toolbar-separator n-p-2",
|
|
29
29
|
className
|
|
30
30
|
)}
|
|
@@ -18,6 +18,9 @@ describe("Toolbar", () => {
|
|
|
18
18
|
expect(toolbar.classList.contains("n-shadow-popover")).toBe(true);
|
|
19
19
|
expect(toolbar.classList.contains("n-gap-toolbar-separator")).toBe(true);
|
|
20
20
|
expect(toolbar.classList.contains("n-p-2")).toBe(true);
|
|
21
|
+
expect(toolbar.classList.contains("n-max-w-full")).toBe(true);
|
|
22
|
+
expect(toolbar.classList.contains("n-flex-wrap")).toBe(true);
|
|
23
|
+
expect(toolbar.classList.contains("n-justify-center")).toBe(true);
|
|
21
24
|
expect(
|
|
22
25
|
toolbar.style.getPropertyValue(cssVarNames.colors.buttonBackground)
|
|
23
26
|
).toBe("transparent");
|
package/src/index.css
CHANGED
|
@@ -291,7 +291,8 @@
|
|
|
291
291
|
|
|
292
292
|
/* Direct child pre blocks */
|
|
293
293
|
.n-prose pre {
|
|
294
|
-
|
|
294
|
+
color: var(--n-text);
|
|
295
|
+
background-color: var(--n-code-background);
|
|
295
296
|
border-width: 1px;
|
|
296
297
|
border-style: solid;
|
|
297
298
|
border-color: var(--n-divider);
|