yootd 0.0.74 → 0.0.76

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.
@@ -1,3 +1,5 @@
1
- import { Descriptions as AntDescriptions } from 'antd';
2
- export type { DescriptionsContext, DescriptionsContextProps, DescriptionsItemType, DescriptionsProps, InternalDescriptionsItemType, } from 'antd/es/descriptions';
3
- export declare const Descriptions: typeof AntDescriptions;
1
+ import type { DescriptionsProps as AntDescriptionsProps } from 'antd';
2
+ import { FC } from 'react';
3
+ import './index.scss';
4
+ export type DescriptionsProps = AntDescriptionsProps;
5
+ export declare const Descriptions: FC<DescriptionsProps>;
@@ -1,2 +1,16 @@
1
+ var _excluded = ["className"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1
5
  import { Descriptions as AntDescriptions } from 'antd';
2
- export var Descriptions = AntDescriptions;
6
+ import React from 'react';
7
+ import { useBem } from "../hooks/useBem";
8
+ import "./index.scss";
9
+ export var Descriptions = function Descriptions(_ref) {
10
+ var className = _ref.className,
11
+ rest = _objectWithoutProperties(_ref, _excluded);
12
+ var mb = useBem('descriptions');
13
+ return /*#__PURE__*/React.createElement(AntDescriptions, _extends({
14
+ className: "".concat(mb.b('content'), " ").concat(className)
15
+ }, rest));
16
+ };
@@ -0,0 +1,10 @@
1
+ .yot-descriptions{
2
+ &-content{
3
+ .ant-descriptions-item-label{
4
+ color:var(--ant-color-text-secondary);
5
+ }
6
+ .ant-descriptions-item-content{
7
+ color:var(--ant-color-text);
8
+ }
9
+ }
10
+ }
@@ -1,22 +1,22 @@
1
- import { SelectProps } from 'yootd';
2
-
3
- export interface PageData<T> {
4
- content: T[];
5
- page: {
6
- number: number;
7
- size: number;
8
- totalElements: number;
9
- totalPages: number;
10
- };
11
- }
12
- // 查询职务返回的数据类型
13
- export interface IjobTitleItem {
14
- titleId: number;
15
- titleName: string;
16
- }
17
- // 查询角色返回的数据类型
18
- export interface IHolidayItem {
19
- vacationId: number;
20
- vacationName: string;
21
- }
22
- export type HolidayProps = SelectProps;
1
+ import { SelectProps } from 'yootd';
2
+
3
+ export interface PageData<T> {
4
+ content: T[];
5
+ page: {
6
+ number: number;
7
+ size: number;
8
+ totalElements: number;
9
+ totalPages: number;
10
+ };
11
+ }
12
+ // 查询职务返回的数据类型
13
+ export interface IjobTitleItem {
14
+ titleId: number;
15
+ titleName: string;
16
+ }
17
+ // 查询角色返回的数据类型
18
+ export interface IHolidayItem {
19
+ vacationId: number;
20
+ vacationName: string;
21
+ }
22
+ export type HolidayProps = SelectProps;
@@ -215,18 +215,19 @@ export var TreeInternal = /*#__PURE__*/forwardRef(function (_ref, ref) {
215
215
  expandAllNodes(treeData);
216
216
  }
217
217
  }, [treeData]);
218
- return /*#__PURE__*/React.createElement("div", null, showSearch ? /*#__PURE__*/React.createElement(Search, {
219
- style: {
220
- marginBottom: 8
221
- },
218
+ return /*#__PURE__*/React.createElement("div", {
219
+ className: "".concat(mb)
220
+ }, showSearch ? /*#__PURE__*/React.createElement("div", {
221
+ className: "".concat(mb.e('search'))
222
+ }, /*#__PURE__*/React.createElement(Search, {
222
223
  placeholder: placeholder,
223
224
  onChange: onChange
224
- }) : null, /*#__PURE__*/React.createElement(AntTree, _extends({
225
+ })) : null, /*#__PURE__*/React.createElement(AntTree, _extends({
225
226
  ref: ref,
226
227
  onExpand: onExpand,
227
228
  expandedKeys: expandedKeys,
228
229
  autoExpandParent: autoExpandParent,
229
- className: "".concat(mb, " ").concat(className),
230
+ className: "".concat(className),
230
231
  treeData: titleRender ? _treeData : formatTreeData(_treeData),
231
232
  showIcon: showIcon
232
233
  }, props)));
@@ -1,4 +1,7 @@
1
1
  .yot-tree {
2
+ position: relative;
3
+ overflow: auto;
4
+ height: 100%;
2
5
  .ant-tree-node-content-wrapper.ant-tree-node-selected {
3
6
  background-color: var(--ant-color-primary-bg);
4
7
  .ant-tree-title {
@@ -22,4 +25,10 @@
22
25
  }
23
26
  }
24
27
  }
28
+ &__search {
29
+ position: sticky;
30
+ top: 0px;
31
+ z-index: 1;
32
+ margin-bottom: 10px;
33
+ }
25
34
  }
package/package.json CHANGED
@@ -1,106 +1,106 @@
1
- {
2
- "name": "yootd",
3
- "version": "0.0.74",
4
- "description": "A react library developed with dumi",
5
- "license": "MIT",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "scripts": {
12
- "build": "father build",
13
- "build:watch": "father dev",
14
- "dev": "dumi dev",
15
- "docs:build": "dumi build",
16
- "docs:preview": "dumi preview",
17
- "doctor": "father doctor",
18
- "lint": "npm run lint:es && npm run lint:css",
19
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
- "prepare": "husky install && dumi setup",
22
- "prepublishOnly": "father doctor && npm run build",
23
- "start": "npm run dev"
24
- },
25
- "commitlint": {
26
- "extends": [
27
- "@commitlint/config-conventional"
28
- ]
29
- },
30
- "lint-staged": {
31
- "*.{md,json}": [
32
- "prettier --write --no-error-on-unmatched-pattern"
33
- ],
34
- "*.{css,less}": [
35
- "stylelint --fix",
36
- "prettier --write"
37
- ],
38
- "*.{js,jsx}": [
39
- "eslint --fix",
40
- "prettier --write"
41
- ],
42
- "*.{ts,tsx}": [
43
- "eslint --fix",
44
- "prettier --parser=typescript --write"
45
- ]
46
- },
47
- "dependencies": {
48
- "@tensorflow-models/pose-detection": "^2.1.3",
49
- "@tensorflow/tfjs": "^4.22.0"
50
- },
51
- "devDependencies": {
52
- "@commitlint/cli": "^17.1.2",
53
- "@commitlint/config-conventional": "^17.1.0",
54
- "@dnd-kit/core": "^6.1.0",
55
- "@dnd-kit/modifiers": "^7.0.0",
56
- "@dnd-kit/sortable": "^8.0.0",
57
- "@dnd-kit/utilities": "^3.2.2",
58
- "@tanstack/react-query": "^5.59.15",
59
- "@types/lodash": "^4.17.12",
60
- "@types/react": "^18.0.0",
61
- "@types/react-dom": "^18.0.0",
62
- "@umijs/lint": "^4.0.0",
63
- "@vladmandic/face-api": "^1.7.14",
64
- "antd": "^5.21.4",
65
- "axios": "^1.7.7",
66
- "dayjs": "^1.11.13",
67
- "dumi": "^2.3.0",
68
- "dumi-theme-antd": "^0.4.2",
69
- "eslint": "^8.23.0",
70
- "father": "^4.1.0",
71
- "husky": "^8.0.1",
72
- "lint-staged": "^13.0.3",
73
- "lodash": "^4.17.21",
74
- "nanoid": "^5.0.8",
75
- "prettier": "^2.7.1",
76
- "prettier-plugin-organize-imports": "^3.0.0",
77
- "prettier-plugin-packagejson": "^2.2.18",
78
- "react": "^18.0.0",
79
- "react-dom": "^18.0.0",
80
- "sass": "^1.80.0",
81
- "stylelint": "^14.9.1",
82
- "yootd-webrtc-sdk": "^1.0.1"
83
- },
84
- "peerDependencies": {
85
- "@dnd-kit/core": ">=6.1.0",
86
- "@dnd-kit/modifiers": ">=7.0.0",
87
- "@dnd-kit/sortable": ">=8.0.0",
88
- "@dnd-kit/utilities": ">=3.2.2",
89
- "@tanstack/react-query": ">=5.59.15",
90
- "@vladmandic/face-api": "^1.7.14",
91
- "@xyflow/react": ">=12.3.3",
92
- "antd": ">=5.21.4",
93
- "axios": ">=1.7.7",
94
- "dayjs": ">=1.11.13",
95
- "lodash": ">=4.17.21",
96
- "nanoid": ">=5.0.8",
97
- "react": ">=16.9.0",
98
- "react-dom": ">=16.9.0",
99
- "react-router-dom": ">=6.25.0",
100
- "yootd-webrtc-sdk": "^1.0.1"
101
- },
102
- "publishConfig": {
103
- "access": "public"
104
- },
105
- "authors": []
106
- }
1
+ {
2
+ "name": "yootd",
3
+ "version": "0.0.76",
4
+ "description": "A react library developed with dumi",
5
+ "license": "MIT",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "father build",
13
+ "build:watch": "father dev",
14
+ "dev": "dumi dev",
15
+ "docs:build": "dumi build",
16
+ "docs:preview": "dumi preview",
17
+ "doctor": "father doctor",
18
+ "lint": "npm run lint:es && npm run lint:css",
19
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
+ "prepare": "husky install && dumi setup",
22
+ "prepublishOnly": "father doctor && npm run build",
23
+ "start": "npm run dev"
24
+ },
25
+ "commitlint": {
26
+ "extends": [
27
+ "@commitlint/config-conventional"
28
+ ]
29
+ },
30
+ "lint-staged": {
31
+ "*.{md,json}": [
32
+ "prettier --write --no-error-on-unmatched-pattern"
33
+ ],
34
+ "*.{css,less}": [
35
+ "stylelint --fix",
36
+ "prettier --write"
37
+ ],
38
+ "*.{js,jsx}": [
39
+ "eslint --fix",
40
+ "prettier --write"
41
+ ],
42
+ "*.{ts,tsx}": [
43
+ "eslint --fix",
44
+ "prettier --parser=typescript --write"
45
+ ]
46
+ },
47
+ "dependencies": {
48
+ "@tensorflow-models/pose-detection": "^2.1.3",
49
+ "@tensorflow/tfjs": "^4.22.0"
50
+ },
51
+ "devDependencies": {
52
+ "@commitlint/cli": "^17.1.2",
53
+ "@commitlint/config-conventional": "^17.1.0",
54
+ "@dnd-kit/core": "^6.1.0",
55
+ "@dnd-kit/modifiers": "^7.0.0",
56
+ "@dnd-kit/sortable": "^8.0.0",
57
+ "@dnd-kit/utilities": "^3.2.2",
58
+ "@tanstack/react-query": "^5.59.15",
59
+ "@types/lodash": "^4.17.12",
60
+ "@types/react": "^18.0.0",
61
+ "@types/react-dom": "^18.0.0",
62
+ "@umijs/lint": "^4.0.0",
63
+ "@vladmandic/face-api": "^1.7.14",
64
+ "antd": "^5.21.4",
65
+ "axios": "^1.7.7",
66
+ "dayjs": "^1.11.13",
67
+ "dumi": "^2.3.0",
68
+ "dumi-theme-antd": "^0.4.2",
69
+ "eslint": "^8.23.0",
70
+ "father": "^4.1.0",
71
+ "husky": "^8.0.1",
72
+ "lint-staged": "^13.0.3",
73
+ "lodash": "^4.17.21",
74
+ "nanoid": "^5.0.8",
75
+ "prettier": "^2.7.1",
76
+ "prettier-plugin-organize-imports": "^3.0.0",
77
+ "prettier-plugin-packagejson": "^2.2.18",
78
+ "react": "^18.0.0",
79
+ "react-dom": "^18.0.0",
80
+ "sass": "^1.80.0",
81
+ "stylelint": "^14.9.1",
82
+ "yootd-webrtc-sdk": "^1.0.1"
83
+ },
84
+ "peerDependencies": {
85
+ "@dnd-kit/core": ">=6.1.0",
86
+ "@dnd-kit/modifiers": ">=7.0.0",
87
+ "@dnd-kit/sortable": ">=8.0.0",
88
+ "@dnd-kit/utilities": ">=3.2.2",
89
+ "@tanstack/react-query": ">=5.59.15",
90
+ "@vladmandic/face-api": "^1.7.14",
91
+ "@xyflow/react": ">=12.3.3",
92
+ "antd": ">=5.21.4",
93
+ "axios": ">=1.7.7",
94
+ "dayjs": ">=1.11.13",
95
+ "lodash": ">=4.17.21",
96
+ "nanoid": ">=5.0.8",
97
+ "react": ">=16.9.0",
98
+ "react-dom": ">=16.9.0",
99
+ "react-router-dom": ">=6.25.0",
100
+ "yootd-webrtc-sdk": "^1.0.1"
101
+ },
102
+ "publishConfig": {
103
+ "access": "public"
104
+ },
105
+ "authors": []
106
+ }