@atom-learning/components 6.0.4 → 6.1.1
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/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/markdown-content/MarkdownContent.js +1 -1
- package/dist/components/markdown-content/MarkdownContent.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlItemList.js +1 -1
- package/dist/components/segmented-control/SegmentedControlItemList.js.map +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/package.json +20 -21
- package/src/index.css +8 -4
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
|
-
"version": "6.
|
|
7
|
+
"version": "6.1.1",
|
|
8
8
|
"description": "",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
@@ -43,9 +43,10 @@
|
|
|
43
43
|
"clean": "del ./dist/",
|
|
44
44
|
"format": "prettier 'src/**/*.{js,ts,tsx}' --write",
|
|
45
45
|
"lint": "eslint 'src/**/*.{js,ts,tsx}' --fix",
|
|
46
|
-
"test": "
|
|
47
|
-
"test:watch": "
|
|
48
|
-
"test:ci": "
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"test:watch": "vitest",
|
|
48
|
+
"test:ci": "vitest run --reporter=verbose",
|
|
49
|
+
"test:coverage": "vitest run --coverage",
|
|
49
50
|
"validate": "run-p 'validate:**'",
|
|
50
51
|
"validate:linting": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
|
|
51
52
|
"validate:size": "yarn build:lib && size-limit",
|
|
@@ -93,43 +94,40 @@
|
|
|
93
94
|
"@semantic-release/exec": "^7.0.0",
|
|
94
95
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
95
96
|
"@size-limit/preset-small-lib": "^7.0.5",
|
|
96
|
-
"@testing-library/dom": "^
|
|
97
|
-
"@testing-library/jest-dom": "^
|
|
98
|
-
"@testing-library/react": "^
|
|
99
|
-
"@testing-library/
|
|
100
|
-
"@testing-library/user-event": "^12.8.1",
|
|
101
|
-
"@types/jest": "^26.0.20",
|
|
102
|
-
"@types/jest-axe": "^3.5.1",
|
|
97
|
+
"@testing-library/dom": "^10.4.1",
|
|
98
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
99
|
+
"@testing-library/react": "^16.3.2",
|
|
100
|
+
"@testing-library/user-event": "^14.6.1",
|
|
103
101
|
"@types/mdast": "^3.0.0",
|
|
104
102
|
"@types/node": "20.6.0",
|
|
105
103
|
"@types/prop-types": "^15",
|
|
106
104
|
"@types/react": "17.0.80",
|
|
107
105
|
"@types/react-dom": "^17.0.11",
|
|
108
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
109
|
-
"@typescript-eslint/parser": "^
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
107
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
110
108
|
"@vitejs/plugin-react-refresh": "^1.3.3",
|
|
109
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
110
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
111
|
+
"@vitest/eslint-plugin": "^1.6.9",
|
|
112
|
+
"@vitest/ui": "^4.0.18",
|
|
111
113
|
"alias-hq": "^5.3.0",
|
|
114
|
+
"axe-core": "^4.11.1",
|
|
112
115
|
"change-case": "^4.1.2",
|
|
113
116
|
"chokidar": "^3.5.1",
|
|
114
117
|
"del-cli": "^3.0.1",
|
|
115
|
-
"diffable-html": "^6.0.1",
|
|
116
|
-
"es-jest": "^1.5.0",
|
|
117
118
|
"esbuild": "^0.25.12",
|
|
118
|
-
"eslint": "^
|
|
119
|
+
"eslint": "^8.57.0",
|
|
119
120
|
"eslint-config-prettier": "^7.2.0",
|
|
120
121
|
"eslint-import-resolver-typescript": "^2.3.0",
|
|
121
122
|
"eslint-plugin-import": "^2.22.1",
|
|
122
|
-
"eslint-plugin-jest": "^24.1.3",
|
|
123
123
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
124
124
|
"eslint-plugin-react": "^7.22.0",
|
|
125
125
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
126
126
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
127
127
|
"husky": "^4.3.8",
|
|
128
|
-
"jest": "^27.0.6",
|
|
129
|
-
"jest-axe": "^4.1.0",
|
|
130
|
-
"jest-dom": "^4.0.0",
|
|
131
128
|
"lint-staged": "^10.5.3",
|
|
132
129
|
"npm-run-all": "^4.1.5",
|
|
130
|
+
"playwright": "^1.58.2",
|
|
133
131
|
"prettier": "^3.6.2",
|
|
134
132
|
"pretty-format": "^30.2.0",
|
|
135
133
|
"prompts": "^2.4.0",
|
|
@@ -146,7 +144,8 @@
|
|
|
146
144
|
"size-limit": "^7.0.5",
|
|
147
145
|
"tsc-alias": "^1.8.10",
|
|
148
146
|
"typescript": "^5.5.4",
|
|
149
|
-
"vite": "^7.
|
|
147
|
+
"vite": "^7.3.1",
|
|
148
|
+
"vitest": "^4.0.18",
|
|
150
149
|
"yargs": "^16.2.0"
|
|
151
150
|
},
|
|
152
151
|
"peerDependencies": {
|
package/src/index.css
CHANGED
|
@@ -90,20 +90,24 @@
|
|
|
90
90
|
--animate-slide-in-center: slide-in-center 550ms var(--easing);
|
|
91
91
|
--animate-slide-out-center: slide-out-center 550ms var(--easing);
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* `transform: translate()` is required for `floating-ui` to
|
|
95
|
+
* correctly position elements within the Dialog component.
|
|
96
|
+
*/
|
|
93
97
|
@keyframes slide-in-center {
|
|
94
98
|
0% {
|
|
95
|
-
|
|
99
|
+
transform: translate(-50%, 50vh);
|
|
96
100
|
}
|
|
97
101
|
100% {
|
|
98
|
-
|
|
102
|
+
transform: translate(-50%, -50%);
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
@keyframes slide-out-center {
|
|
102
106
|
0% {
|
|
103
|
-
|
|
107
|
+
transform: translate(-50%, -50%);
|
|
104
108
|
}
|
|
105
109
|
100% {
|
|
106
|
-
|
|
110
|
+
transform: translate(-50%, 50vh);
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
|