@antscorp/antsomi-ui 1.3.5-beta.584 → 1.3.5-beta.585
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.
|
@@ -209,7 +209,11 @@ export const ChildMenu = memo(props => {
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
return (React.createElement(MenuWrapper, null,
|
|
212
|
-
React.createElement(Menu, {
|
|
212
|
+
React.createElement(Menu, { motion: {
|
|
213
|
+
motionAppear: false,
|
|
214
|
+
motionEnter: false,
|
|
215
|
+
motionLeave: false,
|
|
216
|
+
}, selectedKeys: [currentActiveItem], defaultOpenKeys: [currentActiveItem], openKeys: uniq(openKeys), mode: "inline", items: customMenuItems({ items }), inlineIndent: 12, onOpenChange: openKeys => {
|
|
213
217
|
setOpenKeys(uniq(openKeys));
|
|
214
218
|
}, expandIcon: ({ isOpen }) => (React.createElement(Icon, { type: "icon-ants-expand-more", style: Object.assign(Object.assign({}, styles.expandIcon), { transform: `rotate(${isOpen ? '180deg' : '0deg'})` }) })), onClick: onClick })));
|
|
215
219
|
});
|
package/es/test.js
CHANGED
|
@@ -20,7 +20,6 @@ import axios from 'axios';
|
|
|
20
20
|
import { get } from 'lodash';
|
|
21
21
|
import { MENU_PERMISSION } from './components/molecules/ShareAccess/constants';
|
|
22
22
|
import { ConfigProvider } from './providers';
|
|
23
|
-
import { DataTableTest } from './tests';
|
|
24
23
|
const SHARE_ACCESS_DEFAULT_VALUE = {
|
|
25
24
|
ownerId: 1600085510,
|
|
26
25
|
isPublic: 1,
|
|
@@ -109,7 +108,10 @@ export const App = () => {
|
|
|
109
108
|
/* MatchesAnySelect */
|
|
110
109
|
// return <MatchesAnySelectTest />;
|
|
111
110
|
/* Data Table */
|
|
112
|
-
return React.createElement(
|
|
111
|
+
return (React.createElement("div", null,
|
|
112
|
+
"THIS IS TEST VITE BUILD",
|
|
113
|
+
React.createElement(Button, null, "Click me")));
|
|
114
|
+
// return <DataTableTest />;
|
|
113
115
|
// --------------------------- Test Layout 2.0 -------------------------------------------
|
|
114
116
|
return React.createElement(Layout, { leftMenuProps: { objectId: 1, objectType: 'OVERVIEW', isGrouped: true } });
|
|
115
117
|
// --------------------------- Test SlideBar start -------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.3.5-beta.
|
|
3
|
+
"version": "1.3.5-beta.585",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"dist/*",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"test:update-snapshot": "jest -u",
|
|
37
37
|
"test:changed": "jest --onlyChanged",
|
|
38
38
|
"test:watch": "jest --watch",
|
|
39
|
-
"test:coverage": "
|
|
39
|
+
"test:coverage": "jest --coverage",
|
|
40
|
+
"test:vitest": "vitest",
|
|
40
41
|
"ts-compile": "tsc -p tsconfig.esm.json",
|
|
41
42
|
"copy-files": "copyfiles -u 1 src/**/*.json src/**/*.svg src/**/*.scss src/**/*.png es",
|
|
42
43
|
"icons:add": "tsx scripts/add-icons.ts",
|
|
@@ -166,8 +167,8 @@
|
|
|
166
167
|
"@storybook/react": "^8.2.4",
|
|
167
168
|
"@storybook/react-webpack5": "^8.2.4",
|
|
168
169
|
"@storybook/theming": "^8.2.4",
|
|
169
|
-
"@testing-library/jest-dom": "^
|
|
170
|
-
"@testing-library/react": "^
|
|
170
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
171
|
+
"@testing-library/react": "^16.0.0",
|
|
171
172
|
"@types/jest": "^29.5.0",
|
|
172
173
|
"@types/node": "^18.15.10",
|
|
173
174
|
"@types/pako": "2.0.0",
|
|
@@ -208,6 +209,7 @@
|
|
|
208
209
|
"husky": "^8.0.3",
|
|
209
210
|
"jest": "^29.5.0",
|
|
210
211
|
"jest-environment-jsdom": "^29.5.0",
|
|
212
|
+
"jsdom": "^24.1.1",
|
|
211
213
|
"lint-staged": "^13.2.0",
|
|
212
214
|
"mini-css-extract-plugin": "^2.7.5",
|
|
213
215
|
"postcss": "^8.4.21",
|
|
@@ -231,8 +233,9 @@
|
|
|
231
233
|
"type-fest": "^4.10.2",
|
|
232
234
|
"tsx": "^4.16.2",
|
|
233
235
|
"typescript": "^5.4.3",
|
|
234
|
-
"vite": "^
|
|
235
|
-
"vite-plugin-mkcert": "^1.
|
|
236
|
+
"vite": "^5.3.4",
|
|
237
|
+
"vite-plugin-mkcert": "^1.17.5",
|
|
238
|
+
"vitest": "^2.0.4",
|
|
236
239
|
"webpack": "^5.78.0",
|
|
237
240
|
"webpack-bundle-analyzer": "^4.10.1",
|
|
238
241
|
"webpack-cli": "^5.0.1"
|