@webstrail/ui-library 1.0.0 → 1.0.2

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.
Files changed (44) hide show
  1. package/README.md +524 -519
  2. package/dist/UIProvider-C3ae0nQV.cjs +2 -0
  3. package/dist/UIProvider-C3ae0nQV.cjs.map +1 -0
  4. package/dist/UIProvider-CHECrDaZ.js +466 -0
  5. package/dist/UIProvider-CHECrDaZ.js.map +1 -0
  6. package/dist/core/config/globalConfig.d.ts +54 -0
  7. package/dist/core/config/index.d.ts +1 -0
  8. package/dist/core/index.d.ts +4 -0
  9. package/dist/core/theme/defaultTheme.d.ts +7 -0
  10. package/dist/core/theme/deriveTokens.d.ts +16 -0
  11. package/dist/core/theme/index.d.ts +2 -0
  12. package/dist/core/types/common.d.ts +32 -0
  13. package/dist/core/types/config.d.ts +70 -0
  14. package/dist/core/types/index.d.ts +3 -0
  15. package/dist/core/types/tokens.d.ts +65 -0
  16. package/dist/core/utils/styles.d.ts +19 -0
  17. package/dist/core.cjs +2 -0
  18. package/dist/core.cjs.map +1 -0
  19. package/dist/core.js +344 -0
  20. package/dist/core.js.map +1 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.ts +6 -4
  24. package/dist/index.js +817 -1248
  25. package/dist/index.js.map +1 -1
  26. package/dist/react/components/Button/Button.d.ts +2 -0
  27. package/dist/react/components/Button/Button.types.d.ts +52 -0
  28. package/dist/react/components/Button/index.d.ts +2 -0
  29. package/dist/react/index.d.ts +6 -0
  30. package/dist/react.cjs +2 -0
  31. package/dist/react.cjs.map +1 -0
  32. package/dist/react.js +9 -0
  33. package/dist/react.js.map +1 -0
  34. package/dist/style.css +1 -1
  35. package/dist/web-components/button/button.element.d.ts +59 -0
  36. package/dist/web-components/button/button.styles.d.ts +1 -0
  37. package/dist/web-components/button/button.types.d.ts +21 -0
  38. package/dist/web-components/button/index.d.ts +3 -0
  39. package/dist/web-components/index.d.ts +1 -0
  40. package/dist/web-components.cjs +269 -0
  41. package/dist/web-components.cjs.map +1 -0
  42. package/dist/web-components.js +503 -0
  43. package/dist/web-components.js.map +1 -0
  44. package/package.json +120 -104
package/package.json CHANGED
@@ -1,104 +1,120 @@
1
- {
2
- "name": "@webstrail/ui-library",
3
- "version": "1.0.0",
4
- "description": "Production-ready, framework-agnostic React component library with scoped semantic styling",
5
- "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "style": "./dist/style.css",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "require": "./dist/index.cjs"
15
- },
16
- "./style.css": "./dist/style.css"
17
- },
18
- "files": [
19
- "dist",
20
- "README.md",
21
- "LICENSE"
22
- ],
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/webstrail/webstrail-ui-library.git"
29
- },
30
- "homepage": "https://github.com/webstrail/webstrail-ui-library#readme",
31
- "bugs": {
32
- "url": "https://github.com/webstrail/webstrail-ui-library/issues"
33
- },
34
- "sideEffects": [
35
- "**/*.css",
36
- "dist/style.css"
37
- ],
38
- "scripts": {
39
- "dev": "vite",
40
- "build": "tsc -b && vite build",
41
- "prepublishOnly": "npm run build",
42
- "preview": "vite preview",
43
- "lint": "eslint .",
44
- "lint:fix": "eslint . --fix",
45
- "format": "prettier --write \"src/**/*.{ts,tsx,css,json,md}\"",
46
- "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json,md}\"",
47
- "type-check": "tsc --noEmit",
48
- "prepare": "husky"
49
- },
50
- "peerDependencies": {
51
- "react": "^18.0.0 || ^19.0.0",
52
- "react-dom": "^18.0.0 || ^19.0.0"
53
- },
54
- "peerDependenciesMeta": {
55
- "react": {
56
- "optional": false
57
- },
58
- "react-dom": {
59
- "optional": false
60
- }
61
- },
62
- "devDependencies": {
63
- "@eslint/js": "^9.21.0",
64
- "@types/node": "^22.13.5",
65
- "@types/react": "^19.0.10",
66
- "@types/react-dom": "^19.0.4",
67
- "@vitejs/plugin-react": "^4.3.4",
68
- "eslint": "^9.21.0",
69
- "eslint-config-prettier": "^10.0.1",
70
- "eslint-plugin-react-hooks": "^5.1.0",
71
- "eslint-plugin-react-refresh": "^0.4.19",
72
- "globals": "^16.0.0",
73
- "husky": "^9.1.7",
74
- "lint-staged": "^15.4.3",
75
- "prettier": "^3.5.2",
76
- "react": "^19.0.0",
77
- "react-dom": "^19.0.0",
78
- "typescript": "^5.7.3",
79
- "typescript-eslint": "^8.24.1",
80
- "vite": "^6.2.0",
81
- "vite-plugin-dts": "^4.5.0"
82
- },
83
- "lint-staged": {
84
- "*.{ts,tsx}": [
85
- "eslint --fix",
86
- "prettier --write"
87
- ],
88
- "*.{css,json,md}": [
89
- "prettier --write"
90
- ]
91
- },
92
- "keywords": [
93
- "react",
94
- "ui-library",
95
- "components",
96
- "design-system",
97
- "css-modules",
98
- "typescript",
99
- "react19",
100
- "tailwind-compatible"
101
- ],
102
- "author": "Webstrail",
103
- "license": "MIT"
104
- }
1
+ {
2
+ "name": "@webstrail/ui-library",
3
+ "version": "1.0.2",
4
+ "description": "Production-ready, framework-agnostic React component library with scoped semantic styling",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "style": "./dist/style.css",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ },
16
+ "./core": {
17
+ "types": "./dist/core/index.d.ts",
18
+ "import": "./dist/core.js",
19
+ "require": "./dist/core.cjs"
20
+ },
21
+ "./web-components": {
22
+ "types": "./dist/web-components/index.d.ts",
23
+ "import": "./dist/web-components.js",
24
+ "require": "./dist/web-components.cjs"
25
+ },
26
+ "./react": {
27
+ "types": "./dist/react/index.d.ts",
28
+ "import": "./dist/react.js",
29
+ "require": "./dist/react.cjs"
30
+ },
31
+ "./style.css": "./dist/style.css"
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/webstrail/webstrail-ui-library.git"
44
+ },
45
+ "homepage": "https://github.com/webstrail/webstrail-ui-library#readme",
46
+ "bugs": {
47
+ "url": "https://github.com/webstrail/webstrail-ui-library/issues"
48
+ },
49
+ "sideEffects": [
50
+ "**/*.css",
51
+ "dist/style.css"
52
+ ],
53
+ "scripts": {
54
+ "dev": "vite",
55
+ "build": "tsc -b && vite build",
56
+ "test": "node --test tests/*.test.mjs",
57
+ "prepublishOnly": "npm run build",
58
+ "preview": "vite preview",
59
+ "lint": "eslint .",
60
+ "lint:fix": "eslint . --fix",
61
+ "format": "prettier --write \"src/**/*.{ts,tsx,css,json,md}\"",
62
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json,md}\"",
63
+ "type-check": "tsc --noEmit",
64
+ "prepare": "husky"
65
+ },
66
+ "peerDependencies": {
67
+ "react": "^18.0.0 || ^19.0.0",
68
+ "react-dom": "^18.0.0 || ^19.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "react": {
72
+ "optional": true
73
+ },
74
+ "react-dom": {
75
+ "optional": true
76
+ }
77
+ },
78
+ "devDependencies": {
79
+ "@eslint/js": "^9.21.0",
80
+ "@types/node": "^22.13.5",
81
+ "@types/react": "^19.0.10",
82
+ "@types/react-dom": "^19.0.4",
83
+ "@vitejs/plugin-react": "^4.3.4",
84
+ "eslint": "^9.21.0",
85
+ "eslint-config-prettier": "^10.0.1",
86
+ "eslint-plugin-react-hooks": "^5.1.0",
87
+ "eslint-plugin-react-refresh": "^0.4.19",
88
+ "globals": "^16.0.0",
89
+ "husky": "^9.1.7",
90
+ "lint-staged": "^15.4.3",
91
+ "prettier": "^3.5.2",
92
+ "react": "^19.0.0",
93
+ "react-dom": "^19.0.0",
94
+ "typescript": "^5.7.3",
95
+ "typescript-eslint": "^8.24.1",
96
+ "vite": "^6.2.0",
97
+ "vite-plugin-dts": "^4.5.0"
98
+ },
99
+ "lint-staged": {
100
+ "*.{ts,tsx}": [
101
+ "eslint --fix",
102
+ "prettier --write"
103
+ ],
104
+ "*.{css,json,md}": [
105
+ "prettier --write"
106
+ ]
107
+ },
108
+ "keywords": [
109
+ "react",
110
+ "ui-library",
111
+ "components",
112
+ "design-system",
113
+ "css-modules",
114
+ "typescript",
115
+ "react19",
116
+ "tailwind-compatible"
117
+ ],
118
+ "author": "Webstrail",
119
+ "license": "MIT"
120
+ }