@noya-app/noya-designsystem 0.1.95 → 0.1.96
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 +4 -4
- package/.turbo/turbo-typecheck.log +1 -0
- package/CHANGELOG.md +6 -0
- package/package.json +3 -2
- package/src/components/__tests__/Card.test.tsx +2 -1
- package/src/components/__tests__/InputField.test.tsx +3 -1
- package/src/components/internal/__tests__/TextInput.test.tsx +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,14 +11,14 @@ $ tsup
|
|
|
11
11
|
[32mCJS[39m [1mdist/index.js [22m[32m1.44 MB[39m
|
|
12
12
|
[32mCJS[39m [1mdist/emojis.js.map [22m[32m194.00 B[39m
|
|
13
13
|
[32mCJS[39m [1mdist/index.js.map [22m[32m2.81 MB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 8808ms
|
|
15
15
|
[32mESM[39m [1mdist/emojis.mjs [22m[32m300.00 B[39m
|
|
16
16
|
[32mESM[39m [1mdist/chunk-L6E2LZOL.mjs [22m[32m2.02 KB[39m
|
|
17
17
|
[32mESM[39m [1mdist/index.mjs [22m[32m1.40 MB[39m
|
|
18
18
|
[32mESM[39m [1mdist/emojis.mjs.map [22m[32m157.00 B[39m
|
|
19
19
|
[32mESM[39m [1mdist/chunk-L6E2LZOL.mjs.map [22m[32m71.00 B[39m
|
|
20
20
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m2.81 MB[39m
|
|
21
|
-
[32mESM[39m ⚡️ Build success in
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 9400ms
|
|
22
22
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
23
23
|
npx update-browserslist-db@latest
|
|
24
24
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
@@ -28,9 +28,9 @@ Browserslist: browsers data (caniuse-lite) is 16 months old. Please run:
|
|
|
28
28
|
|
|
29
29
|
Rebuilding...
|
|
30
30
|
|
|
31
|
-
Done in
|
|
31
|
+
Done in 13161ms.
|
|
32
32
|
|
|
33
|
-
[32mDTS[39m ⚡️ Build success in
|
|
33
|
+
[32mDTS[39m ⚡️ Build success in 72908ms
|
|
34
34
|
[32mDTS[39m [1mdist/emojis.d.ts [22m[32m43.00 B[39m
|
|
35
35
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m131.91 KB[39m
|
|
36
36
|
[32mDTS[39m [1mdist/emojis.d.mts [22m[32m43.00 B[39m
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ tsc --noEmit
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noya-app/noya-designsystem",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.96",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"build:css": "tailwindcss -i ./src/index.css -o ./dist/index.css --postcss",
|
|
23
23
|
"build": "tsup",
|
|
24
24
|
"dev": "npm run build -- --watch",
|
|
25
|
-
"lint": "eslint . --max-warnings 0"
|
|
25
|
+
"lint": "eslint . --max-warnings 0",
|
|
26
|
+
"typecheck": "tsc --noEmit"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@base-ui/react": "1.7.0",
|
|
@@ -28,7 +28,8 @@ describe("Card", () => {
|
|
|
28
28
|
);
|
|
29
29
|
const card = getByTestId("card");
|
|
30
30
|
|
|
31
|
-
expect(
|
|
31
|
+
expect(ref.current).not.toBeNull();
|
|
32
|
+
expect(card).toBe(ref.current!);
|
|
32
33
|
expect(card.textContent).toBe("Content");
|
|
33
34
|
expect(card.className).toContain("n-border");
|
|
34
35
|
expect(card.className).toContain("n-p-4");
|
|
@@ -22,6 +22,8 @@ describe("InputField", () => {
|
|
|
22
22
|
inputRef.current = element;
|
|
23
23
|
input = element;
|
|
24
24
|
}}
|
|
25
|
+
value=""
|
|
26
|
+
onChange={() => {}}
|
|
25
27
|
width={240}
|
|
26
28
|
renderPopoverContent={() => <button>Result</button>}
|
|
27
29
|
/>
|
|
@@ -181,7 +183,7 @@ describe("InputField", () => {
|
|
|
181
183
|
const changes: Array<{ value: number; isEmpty: boolean }> = [];
|
|
182
184
|
|
|
183
185
|
function OptionalNumberInput() {
|
|
184
|
-
const [value, setValue] = useState<number>(42);
|
|
186
|
+
const [value, setValue] = useState<number | undefined>(42);
|
|
185
187
|
|
|
186
188
|
return (
|
|
187
189
|
<InputField.Root>
|
|
@@ -27,7 +27,7 @@ describe("submittable text input", () => {
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
test("change and blur, reset", () => {
|
|
30
|
-
const handleSubmit = (
|
|
30
|
+
const handleSubmit = (_value: string) => {};
|
|
31
31
|
|
|
32
32
|
const { container, rerender } = render(
|
|
33
33
|
<TextInput value="" onSubmit={handleSubmit} />
|
|
@@ -90,7 +90,7 @@ describe("submittable text input", () => {
|
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
test("change and submit, reset", () => {
|
|
93
|
-
const handleSubmit = (
|
|
93
|
+
const handleSubmit = (_value: string) => {};
|
|
94
94
|
|
|
95
95
|
const { container, rerender } = render(
|
|
96
96
|
<TextInput value="" onSubmit={handleSubmit} />
|