@noya-app/noya-designsystem 0.0.11 → 0.0.13

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,16 +1,22 @@
1
1
  {
2
2
  "name": "@noya-app/noya-designsystem",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
7
- "exports": {
8
- ".": "./src/index.tsx"
7
+ "scripts": {
8
+ "build": "tsup src/index.tsx --format cjs,esm --dts --sourcemap",
9
+ "dev": "npm run build -- --watch"
9
10
  },
10
11
  "dependencies": {
11
12
  "@dnd-kit/core": "3.1.1",
12
13
  "@dnd-kit/modifiers": "3.0.0",
13
14
  "@dnd-kit/sortable": "4.0.0",
15
+ "@noya-app/noya-colorpicker": "0.0.7",
16
+ "@noya-app/noya-utils": "0.0.10",
17
+ "@noya-app/noya-geometry": "0.0.11",
18
+ "@noya-app/noya-icons": "0.0.4",
19
+ "@noya-app/noya-keymap": "0.0.6",
14
20
  "@radix-ui/primitive": "^1.0.0",
15
21
  "@radix-ui/react-avatar": "^1.0.1",
16
22
  "@radix-ui/react-compose-refs": "^1.0.0",
@@ -33,12 +39,7 @@
33
39
  "react-virtualized": "^9.22.3",
34
40
  "react-window": "^1.8.8",
35
41
  "styled-components": "5.3.0",
36
- "vscode-fuzzy-scorer": "^0.0.4",
37
- "@noya-app/noya-geometry": "0.0.9",
38
- "@noya-app/noya-keymap": "0.0.4",
39
- "@noya-app/noya-colorpicker": "0.0.5",
40
- "@noya-app/noya-icons": "0.0.2",
41
- "@noya-app/noya-utils": "0.0.8"
42
+ "vscode-fuzzy-scorer": "^0.0.4"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@types/react": "*",
@@ -50,9 +51,5 @@
50
51
  "peerDependencies": {
51
52
  "react": "*",
52
53
  "react-dom": "*"
53
- },
54
- "scripts": {
55
- "build": "tsup src/index.tsx --format cjs,esm --dts --sourcemap",
56
- "dev": "npm run build -- --watch"
57
54
  }
58
55
  }
@@ -4,11 +4,6 @@ import styled from "styled-components";
4
4
 
5
5
  const SCROLLBAR_SIZE = 10;
6
6
 
7
- const StyledScrollArea = styled(RadixScrollArea.Root)({
8
- width: "100%",
9
- height: "100%",
10
- });
11
-
12
7
  const StyledViewport = styled(RadixScrollArea.Viewport)({
13
8
  width: "100%",
14
9
  height: "100%",
@@ -48,7 +43,7 @@ export const ScrollArea = memo(function ScrollArea({ children }: Props) {
48
43
 
49
44
  return (
50
45
  <Container>
51
- <StyledScrollArea>
46
+ <RadixScrollArea.Root style={{ width: "100%", height: "100%" }}>
52
47
  <StyledViewport
53
48
  ref={useCallback(
54
49
  (ref: HTMLDivElement | null) => setScrollElementRef(ref),
@@ -64,7 +59,7 @@ export const ScrollArea = memo(function ScrollArea({ children }: Props) {
64
59
  <StyledScrollbar orientation="vertical" className="scroll-component">
65
60
  <StyledThumb className="scroll-component" />
66
61
  </StyledScrollbar>
67
- </StyledScrollArea>
62
+ </RadixScrollArea.Root>
68
63
  </Container>
69
64
  );
70
65
  });