@shohojdhara/atomix 0.1.28 → 0.1.30

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,8 +1,9 @@
1
1
  {
2
2
  "name": "@shohojdhara/atomix",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "Atomix Design System - A modern component library for web applications",
5
5
  "type": "module",
6
+ "sideEffects": false,
6
7
  "main": "dist/index.js",
7
8
  "module": "dist/index.esm.js",
8
9
  "types": "dist/index.d.ts",
@@ -10,13 +11,14 @@
10
11
  "sass": "src/styles/index.scss",
11
12
  "exports": {
12
13
  ".": {
14
+ "types": "./dist/index.d.ts",
13
15
  "import": "./dist/index.esm.js",
14
- "require": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
16
+ "require": "./dist/index.js"
17
+ },
18
+ "./styles": {
19
+ "import": "./dist/index.css",
20
+ "require": "./dist/index.css"
16
21
  },
17
- "./styles": "./dist/index.css",
18
- "./styles.css": "./dist/index.css",
19
- "./dist/index.css": "./dist/index.css",
20
22
  "./scss": "./src/styles/index.scss",
21
23
  "./package.json": "./package.json"
22
24
  },
@@ -26,11 +28,13 @@
26
28
  "phosphor-react": "^1.4.1"
27
29
  },
28
30
  "devDependencies": {
31
+ "@arethetypeswrong/cli": "^0.18.2",
29
32
  "@babel/core": "^7.26.10",
30
33
  "@babel/plugin-transform-runtime": "^7.27.4",
31
34
  "@babel/preset-env": "^7.26.9",
32
35
  "@babel/preset-react": "^7.26.3",
33
36
  "@babel/preset-typescript": "^7.27.0",
37
+ "@changesets/cli": "^2.29.5",
34
38
  "@rollup/plugin-babel": "^6.0.4",
35
39
  "@rollup/plugin-commonjs": "^25.0.7",
36
40
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -44,12 +48,16 @@
44
48
  "@storybook/react": "^8.0.0",
45
49
  "@storybook/react-webpack5": "^8.6.12",
46
50
  "@storybook/test": "^8.0.0",
51
+ "@testing-library/jest-dom": "^6.6.3",
52
+ "@testing-library/react": "^16.3.0",
53
+ "@testing-library/user-event": "^14.6.1",
47
54
  "@types/classnames": "^2.3.0",
48
55
  "@types/node": "^20.0.0",
49
56
  "@types/react": "^18.2.0",
50
57
  "@types/react-dom": "^18.2.0",
51
58
  "@typescript-eslint/eslint-plugin": "^8.34.0",
52
59
  "@typescript-eslint/parser": "^8.34.0",
60
+ "@vitest/coverage-v8": "^3.2.4",
53
61
  "autoprefixer": "^10.4.21",
54
62
  "babel-loader": "^10.0.0",
55
63
  "caniuse-lite": "^1.0.30001721",
@@ -63,6 +71,7 @@
63
71
  "eslint-plugin-react": "^7.37.5",
64
72
  "eslint-plugin-react-hooks": "^5.2.0",
65
73
  "gh-pages": "^6.1.1",
74
+ "jsdom": "^26.1.0",
66
75
  "postcss": "^8.4.24",
67
76
  "postcss-flexbugs-fixes": "^5.0.2",
68
77
  "postcss-import": "^16.1.0",
@@ -77,13 +86,15 @@
77
86
  "sass": "^1.89.2",
78
87
  "sass-embedded": "^1.87.0",
79
88
  "sass-loader": "^16.0.5",
89
+ "serve": "^14.2.1",
80
90
  "size-limit": "^11.0.0",
81
91
  "storybook": "^8.0.0",
82
92
  "style-loader": "^4.0.0",
83
93
  "terser": "^5.24.0",
84
94
  "terser-webpack-plugin": "^5.3.14",
85
95
  "tslib": "^2.6.2",
86
- "typescript": "^5.0.4"
96
+ "typescript": "^5.0.4",
97
+ "vitest": "^3.2.4"
87
98
  },
88
99
  "scripts": {
89
100
  "dev": "storybook dev -p 6006",
@@ -91,9 +102,22 @@
91
102
  "build-storybook": "storybook build",
92
103
  "build": "rollup -c",
93
104
  "build:watch": "rollup -c -w",
105
+ "build:components": "npm run build",
106
+ "build:docs": "npm run build-storybook",
94
107
  "clean": "rimraf dist",
95
108
  "prebuild": "npm run clean",
96
- "prepublishOnly": "npm run build"
109
+ "prepublishOnly": "npm run ci",
110
+ "format": "prettier --write .",
111
+ "check-format": "prettier --check .",
112
+ "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
113
+ "lint": "tsc --noEmit",
114
+ "test": "vitest run",
115
+ "test:watch": "vitest",
116
+ "test:coverage": "vitest run --coverage",
117
+ "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
118
+ "local-release": "changeset version && changeset publish",
119
+ "preview:build": "npm run build-storybook && node scripts/prepare-deploy.js",
120
+ "preview:serve": "npm run preview:build && npx serve deploy -p 3000"
97
121
  },
98
122
  "files": [
99
123
  "dist",
@@ -123,6 +147,7 @@
123
147
  },
124
148
  "homepage": "https://github.com/liimonx/atomix#readme",
125
149
  "peerDependencies": {
150
+ "phosphor-react": "^1.4.1",
126
151
  "react": "^18.0.0",
127
152
  "react-dom": "^18.0.0"
128
153
  },