@tokis/tokis 1.2.2 → 1.3.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/README.md +2 -2
- package/index.d.ts +3 -1
- package/index.js +8 -3
- package/index.mjs +6 -0
- package/package.json +18 -33
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ npm install @tokis/theme
|
|
|
55
55
|
|
|
56
56
|
- **Zero Runtime CSS** — No CSS-in-JS overhead. Precompiled static CSS.
|
|
57
57
|
- **Token-Native** — Every value is a CSS custom property. Theming is predictable.
|
|
58
|
-
- **
|
|
58
|
+
- **Designed for Accessibility** — Following WAI-ARIA Authoring Practices, targeting WCAG 2.2 Level AA. Keyboard navigation and focus management built-in.
|
|
59
59
|
- **Composable** — Compound component patterns. No prop explosion.
|
|
60
60
|
- **Dark Mode** — First-class light/dark support via `ThemeProvider`.
|
|
61
61
|
- **TypeScript** — Full type safety with exported interfaces for every component.
|
|
@@ -63,7 +63,7 @@ npm install @tokis/theme
|
|
|
63
63
|
|
|
64
64
|
## Documentation
|
|
65
65
|
|
|
66
|
-
Visit [
|
|
66
|
+
Visit [Tokis Documentation](https://prerakmathur20.github.io/TokisWebsite/) for the full documentation, interactive demos, and API reference.
|
|
67
67
|
|
|
68
68
|
## License
|
|
69
69
|
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @tokis/tokis — Performance-first, token-native UI design system
|
|
3
3
|
*
|
|
4
|
-
* Re-exports all types and components from
|
|
4
|
+
* Re-exports all types and components from the Tokis ecosystem.
|
|
5
5
|
*/
|
|
6
6
|
export * from '@tokis/react';
|
|
7
|
+
export * from '@tokis/core';
|
|
8
|
+
export * from '@tokis/tokens';
|
|
7
9
|
export * from '@tokis/icons';
|
package/index.js
CHANGED
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
*/
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// CSS side-effect
|
|
14
|
+
require('@tokis/theme');
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const react = require('@tokis/react');
|
|
17
|
+
const core = require('@tokis/core');
|
|
18
|
+
const tokens = require('@tokis/tokens');
|
|
19
|
+
const icons = require('@tokis/icons');
|
|
20
|
+
|
|
21
|
+
module.exports = { ...react, ...core, ...tokens, ...icons };
|
package/index.mjs
CHANGED
|
@@ -8,5 +8,11 @@
|
|
|
8
8
|
* @tokis/tokens — Design token definitions (TypeScript + JSON)
|
|
9
9
|
* @tokis/icons — Tree-shakable SVG icons with Lucide support
|
|
10
10
|
*/
|
|
11
|
+
|
|
12
|
+
// CSS side-effect — must come before JS exports so styles are loaded first
|
|
13
|
+
import '@tokis/theme';
|
|
14
|
+
|
|
11
15
|
export * from '@tokis/react';
|
|
16
|
+
export * from '@tokis/core';
|
|
17
|
+
export * from '@tokis/tokens';
|
|
12
18
|
export * from '@tokis/icons';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokis/tokis",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Tokis Only Knows Its Styles — Performance-first, token-native UI design system for React. Install this package to get all Tokis packages: @tokis/react, @tokis/theme, @tokis/core, and @tokis/tokens.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -10,32 +10,6 @@
|
|
|
10
10
|
"types": "./index.d.ts",
|
|
11
11
|
"import": "./index.mjs",
|
|
12
12
|
"require": "./index.js"
|
|
13
|
-
},
|
|
14
|
-
"./react": {
|
|
15
|
-
"types": "@tokis/react",
|
|
16
|
-
"import": "@tokis/react",
|
|
17
|
-
"require": "@tokis/react"
|
|
18
|
-
},
|
|
19
|
-
"./theme": "@tokis/theme",
|
|
20
|
-
"./core": {
|
|
21
|
-
"types": "@tokis/core",
|
|
22
|
-
"import": "@tokis/core",
|
|
23
|
-
"require": "@tokis/core"
|
|
24
|
-
},
|
|
25
|
-
"./tokens": {
|
|
26
|
-
"types": "@tokis/tokens",
|
|
27
|
-
"import": "@tokis/tokens",
|
|
28
|
-
"require": "@tokis/tokens"
|
|
29
|
-
},
|
|
30
|
-
"./icons": {
|
|
31
|
-
"types": "@tokis/icons",
|
|
32
|
-
"import": "@tokis/icons",
|
|
33
|
-
"require": "@tokis/icons"
|
|
34
|
-
},
|
|
35
|
-
"./icons/lucide": {
|
|
36
|
-
"types": "@tokis/icons/lucide",
|
|
37
|
-
"import": "@tokis/icons/lucide",
|
|
38
|
-
"require": "@tokis/icons/lucide"
|
|
39
13
|
}
|
|
40
14
|
},
|
|
41
15
|
"files": [
|
|
@@ -45,7 +19,10 @@
|
|
|
45
19
|
"README.md",
|
|
46
20
|
"LICENSE"
|
|
47
21
|
],
|
|
48
|
-
"sideEffects":
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"./index.js",
|
|
24
|
+
"./index.mjs"
|
|
25
|
+
],
|
|
49
26
|
"keywords": [
|
|
50
27
|
"tokis",
|
|
51
28
|
"design-system",
|
|
@@ -83,16 +60,24 @@
|
|
|
83
60
|
"url": "https://github.com/PrerakMathur20/TokisLib/issues"
|
|
84
61
|
},
|
|
85
62
|
"dependencies": {
|
|
86
|
-
"@tokis/react": "^1.
|
|
87
|
-
"@tokis/theme": "^1.
|
|
88
|
-
"@tokis/core": "^1.
|
|
89
|
-
"@tokis/tokens": "^1.
|
|
90
|
-
"@tokis/icons": "^1.
|
|
63
|
+
"@tokis/react": "^1.3.0",
|
|
64
|
+
"@tokis/theme": "^1.3.0",
|
|
65
|
+
"@tokis/core": "^1.3.0",
|
|
66
|
+
"@tokis/tokens": "^1.3.0",
|
|
67
|
+
"@tokis/icons": "^1.3.0"
|
|
91
68
|
},
|
|
92
69
|
"peerDependencies": {
|
|
93
70
|
"react": ">=18.0.0",
|
|
94
71
|
"react-dom": ">=18.0.0"
|
|
95
72
|
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=18.0.0"
|
|
75
|
+
},
|
|
76
|
+
"pnpm": {
|
|
77
|
+
"peerDependencyRules": {
|
|
78
|
+
"ignoreMissing": []
|
|
79
|
+
}
|
|
80
|
+
},
|
|
96
81
|
"publishConfig": {
|
|
97
82
|
"access": "public",
|
|
98
83
|
"registry": "https://registry.npmjs.org/"
|