@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noya-app/noya-designsystem",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -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
- background-color: var(--n-indigo-25);
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);