@kanso-labs/kanso-ui-core 0.0.0-stage → 0.0.0
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/LICENSE.md +20 -0
- package/README.md +47 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +0 -0
- package/package.json +71 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kanso Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kanso-ui-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[![License][license-shield]][license] [![Build][build-shield]][build-workflow]
|
|
4
|
+
[![Test][test-shield]][test-workflow] [![Coverage][coverage-shield]][codecov]
|
|
5
|
+
|
|
6
|
+
The design data Kanso UI's two component libraries share.
|
|
7
|
+
[`@kanso-labs/kanso-ui`](https://github.com/kanso-labs/kanso-ui) draws it on the
|
|
8
|
+
web and
|
|
9
|
+
[`@kanso-labs/react-native-kanso-ui`](https://github.com/kanso-labs/react-native-kanso-ui)
|
|
10
|
+
on iOS and Android.
|
|
11
|
+
|
|
12
|
+
The package is data and types only. Both libraries build from it and bundle what
|
|
13
|
+
they read, so an app installs one of them rather than this.
|
|
14
|
+
|
|
15
|
+
The package has not been released yet.
|
|
16
|
+
|
|
17
|
+
## Development
|
|
18
|
+
|
|
19
|
+
Install with the Node version in `.tool-versions`:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
mise exec node@"$(awk '/^nodejs/{print $2}' .tool-versions)" -- npm install
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
| Task | Command |
|
|
26
|
+
| ------ | ----------------------- |
|
|
27
|
+
| Test | `npm test` |
|
|
28
|
+
| Lint | `npm run lint` |
|
|
29
|
+
| Build | `npm run build` |
|
|
30
|
+
| Verify | `npm run package:check` |
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
[MIT](LICENSE.md)
|
|
35
|
+
|
|
36
|
+
[build-shield]:
|
|
37
|
+
https://img.shields.io/github/actions/workflow/status/kanso-labs/kanso-ui-core/build.yaml?branch=main&label=Build
|
|
38
|
+
[build-workflow]:
|
|
39
|
+
https://github.com/kanso-labs/kanso-ui-core/actions/workflows/build.yaml
|
|
40
|
+
[codecov]: https://codecov.io/gh/kanso-labs/kanso-ui-core
|
|
41
|
+
[coverage-shield]:
|
|
42
|
+
https://img.shields.io/codecov/c/github/kanso-labs/kanso-ui-core?label=Coverage
|
|
43
|
+
[license]: ./LICENSE.md
|
|
44
|
+
[license-shield]: https://img.shields.io/github/license/kanso-labs/kanso-ui-core
|
|
45
|
+
[test-shield]:
|
|
46
|
+
https://img.shields.io/github/actions/workflow/status/kanso-labs/kanso-ui-core/test.yaml?branch=main&label=Test
|
|
47
|
+
[test-workflow]:
|
|
48
|
+
https://github.com/kanso-labs/kanso-ui-core/actions/workflows/test.yaml
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/index.js
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanso-labs/kanso-ui-core",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "The design data Kanso UI's web and React Native libraries share: the design tokens, the demo schemes and the glyph paths",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design-system",
|
|
7
|
+
"design-tokens",
|
|
8
|
+
"material-design",
|
|
9
|
+
"kanso-ui"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/kanso-labs/kanso-ui-core.git"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -b && tsdown",
|
|
36
|
+
"format": "oxfmt",
|
|
37
|
+
"format:check": "oxfmt --check",
|
|
38
|
+
"lint": "oxlint --type-aware . && eslint . && npm run format:check",
|
|
39
|
+
"package:check": "publint && attw --pack --profile esm-only",
|
|
40
|
+
"prepare": "husky || true",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:coverage": "vitest run --coverage"
|
|
43
|
+
},
|
|
44
|
+
"author": "Kanso Labs <kanso.labs.org@gmail.com>",
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
47
|
+
"@codecov/rollup-plugin": "2.0.1",
|
|
48
|
+
"@commitlint/cli": "21.2.4",
|
|
49
|
+
"@commitlint/config-conventional": "21.2.4",
|
|
50
|
+
"@eslint/js": "10.0.1",
|
|
51
|
+
"@types/node": "26.6.5",
|
|
52
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
53
|
+
"eslint": "10.13.0",
|
|
54
|
+
"eslint-plugin-oxlint": "1.89.0",
|
|
55
|
+
"eslint-plugin-perfectionist": "5.13.0",
|
|
56
|
+
"globals": "17.13.0",
|
|
57
|
+
"husky": "9.1.7",
|
|
58
|
+
"lint-staged": "17.6.0",
|
|
59
|
+
"oxfmt": "0.74.0",
|
|
60
|
+
"oxlint": "1.89.0",
|
|
61
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
62
|
+
"publint": "0.3.25",
|
|
63
|
+
"tsdown": "0.23.1",
|
|
64
|
+
"typescript": "6.0.3",
|
|
65
|
+
"typescript-eslint": "8.72.0",
|
|
66
|
+
"vitest": "5.0.5"
|
|
67
|
+
},
|
|
68
|
+
"overrides": {
|
|
69
|
+
"eslint-plugin-oxlint": {
|
|
70
|
+
"oxlint": "$oxlint"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|