yootd 0.0.51 → 0.0.53

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 (64) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +43 -43
  3. package/dist/Preview/components/preview/phone.scss +8 -8
  4. package/dist/Preview/index.scss +35 -35
  5. package/dist/Preview/types/type.d.ts +22 -22
  6. package/dist/anchor/index.scss +23 -23
  7. package/dist/approval-process/index.scss +95 -95
  8. package/dist/areas/index.scss +21 -21
  9. package/dist/areas/types/types.d.ts +40 -40
  10. package/dist/areas-treeSelect/index.scss +6 -6
  11. package/dist/areas-treeSelect/types/type.d.ts +39 -39
  12. package/dist/aside/components/SortableItem.scss +93 -93
  13. package/dist/aside/index.scss +25 -25
  14. package/dist/aside/types/types.d.ts +44 -44
  15. package/dist/badge/index.scss +5 -5
  16. package/dist/buildings/types/types.d.ts +21 -21
  17. package/dist/button/index.scss +30 -30
  18. package/dist/cascader/index.scss +5 -5
  19. package/dist/courses/types/types.d.ts +18 -18
  20. package/dist/department/types/types.d.ts +23 -23
  21. package/dist/dictionary/types/types.d.ts +14 -14
  22. package/dist/drawer-modal/index.scss +39 -39
  23. package/dist/drawer-modal/types/types.d.ts +3 -3
  24. package/dist/dropdown/assets/arrow-down.svg +5 -5
  25. package/dist/dropdown-select/index.scss +6 -6
  26. package/dist/dropdown-select/types/type.d.ts +18 -18
  27. package/dist/empty/index.scss +15 -15
  28. package/dist/group-title/index.scss +31 -31
  29. package/dist/hooks/useBem.js +10 -10
  30. package/dist/image/index.scss +26 -26
  31. package/dist/input/index.scss +5 -5
  32. package/dist/job-title/types/types.d.ts +17 -17
  33. package/dist/modal/index.scss +76 -76
  34. package/dist/pagination/index.scss +47 -47
  35. package/dist/role/types/types.d.ts +22 -22
  36. package/dist/school/index.scss +21 -21
  37. package/dist/school/types/types.d.ts +85 -85
  38. package/dist/state/index.scss +89 -89
  39. package/dist/steps/index.scss +32 -32
  40. package/dist/student-dropdown/types/types.d.ts +44 -44
  41. package/dist/table/components/primary-header-row/index.scss +58 -58
  42. package/dist/table/components/primary-tbody-row/index.scss +5 -5
  43. package/dist/table/index.module.scss +9 -9
  44. package/dist/table/index.scss +33 -33
  45. package/dist/tabs/index.scss +86 -86
  46. package/dist/tag/index.scss +4 -4
  47. package/dist/teacher/types/types.d.ts +33 -33
  48. package/dist/tree/index.js +2 -1
  49. package/dist/tree/index.scss +25 -25
  50. package/dist/upload/index.scss +115 -115
  51. package/dist/user-dropdown/types/types.d.ts +45 -45
  52. package/dist/video-player/index.js +20 -20
  53. package/dist/video-player/index.scss +310 -310
  54. package/dist/year-term/index.scss +21 -21
  55. package/dist/year-term/types/types.d.ts +28 -28
  56. package/dist/zones/index.module.scss +23 -23
  57. package/dist/zones/types/types.d.ts +26 -26
  58. package/package.json +2 -3
  59. package/dist/go-back/components/GoBackIcon.d.ts +0 -4
  60. package/dist/go-back/components/GoBackIcon.js +0 -43
  61. package/dist/go-back/components/index.scss +0 -5
  62. package/dist/go-back/index.d.ts +0 -7
  63. package/dist/go-back/index.js +0 -24
  64. package/dist/go-back/index.scss +0 -24
@@ -1,28 +1,28 @@
1
- export interface PageData<T> {
2
- content: T[];
3
- page: {
4
- number: number;
5
- size: number;
6
- totalElements: number;
7
- totalPages: number;
8
- };
9
- }
10
- // 查询学年返回的数据类型
11
- export interface IYearItem {
12
- id: number; // ID
13
- yearName: string; // 学年名称
14
- }
15
- // 查询学期返回的数据类型
16
- export interface ITermItem {
17
- termId: number; // ID
18
- termName: string; // 学期名称
19
- }
20
- type YearTermProps = {
21
- type?: 'yearTerm' | 'year' | 'term';
22
- style?: React.CSSProperties;
23
- showSearch?: boolean;
24
- value?: Record<string, number>;
25
- onChange?: (record: Record<string, number | undefined>) => void;
26
- allowClear?: boolean;
27
- placeholder?: string[];
28
- };
1
+ export interface PageData<T> {
2
+ content: T[];
3
+ page: {
4
+ number: number;
5
+ size: number;
6
+ totalElements: number;
7
+ totalPages: number;
8
+ };
9
+ }
10
+ // 查询学年返回的数据类型
11
+ export interface IYearItem {
12
+ id: number; // ID
13
+ yearName: string; // 学年名称
14
+ }
15
+ // 查询学期返回的数据类型
16
+ export interface ITermItem {
17
+ termId: number; // ID
18
+ termName: string; // 学期名称
19
+ }
20
+ type YearTermProps = {
21
+ type?: 'yearTerm' | 'year' | 'term';
22
+ style?: React.CSSProperties;
23
+ showSearch?: boolean;
24
+ value?: Record<string, number>;
25
+ onChange?: (record: Record<string, number | undefined>) => void;
26
+ allowClear?: boolean;
27
+ placeholder?: string[];
28
+ };
@@ -1,23 +1,23 @@
1
- .content {
2
- border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
3
- border-radius: var(--ant-border-radius);
4
- :global {
5
- .zone-select::after {
6
- content: '';
7
- position: absolute;
8
- right: 0;
9
- top: 50%; /* 从中间开始 */
10
- width: 1px; /* 边框宽度 */
11
- height: 50%; /* 设为盒子高度的百分之五十 */
12
- background-color: var(--ant-color-border); /* 边框颜色 */
13
- transform: translateY(-50%);
14
- }
15
- .ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-show-arrow {
16
- .ant-select-selector {
17
- padding-left: var(--ant-padding);
18
- padding-right: var(--ant-padding);
19
- border: 0;
20
- }
21
- }
22
- }
23
- }
1
+ .content {
2
+ border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
3
+ border-radius: var(--ant-border-radius);
4
+ :global {
5
+ .zone-select::after {
6
+ content: '';
7
+ position: absolute;
8
+ right: 0;
9
+ top: 50%; /* 从中间开始 */
10
+ width: 1px; /* 边框宽度 */
11
+ height: 50%; /* 设为盒子高度的百分之五十 */
12
+ background-color: var(--ant-color-border); /* 边框颜色 */
13
+ transform: translateY(-50%);
14
+ }
15
+ .ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-show-arrow {
16
+ .ant-select-selector {
17
+ padding-left: var(--ant-padding);
18
+ padding-right: var(--ant-padding);
19
+ border: 0;
20
+ }
21
+ }
22
+ }
23
+ }
@@ -1,26 +1,26 @@
1
- export interface PageData<T> {
2
- content: T[];
3
- page: {
4
- number: number;
5
- size: number;
6
- totalElements: number;
7
- totalPages: number;
8
- };
9
- }
10
-
11
- export interface ZoneItem {
12
- zoneId: string; // 区域ID
13
- zoneName: string; // 区域名称
14
- zoneLevel: number; // 区域等级(1全国2省级3市级4区级)
15
- zoneLevel1Id: string;
16
- zoneLevel2Id: string;
17
- }
18
- export interface ZoneProps {
19
- zoneLevel?: 'province' | 'city' | 'district';
20
- value?: string[];
21
- onChange?: (zoneIds: string[]) => void;
22
- style?: React.CSSProperties;
23
- placeholder?: string[];
24
- allowClear?: boolean;
25
- showSearch?: boolean;
26
- }
1
+ export interface PageData<T> {
2
+ content: T[];
3
+ page: {
4
+ number: number;
5
+ size: number;
6
+ totalElements: number;
7
+ totalPages: number;
8
+ };
9
+ }
10
+
11
+ export interface ZoneItem {
12
+ zoneId: string; // 区域ID
13
+ zoneName: string; // 区域名称
14
+ zoneLevel: number; // 区域等级(1全国2省级3市级4区级)
15
+ zoneLevel1Id: string;
16
+ zoneLevel2Id: string;
17
+ }
18
+ export interface ZoneProps {
19
+ zoneLevel?: 'province' | 'city' | 'district';
20
+ value?: string[];
21
+ onChange?: (zoneIds: string[]) => void;
22
+ style?: React.CSSProperties;
23
+ placeholder?: string[];
24
+ allowClear?: boolean;
25
+ showSearch?: boolean;
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -92,8 +92,7 @@
92
92
  "nanoid": ">=5.0.8",
93
93
  "react": ">=16.9.0",
94
94
  "react-dom": ">=16.9.0",
95
- "yootd-webrtc-sdk": "^1.0.1",
96
- "react-router-dom": ">=6.25.0"
95
+ "yootd-webrtc-sdk": "^1.0.1"
97
96
  },
98
97
  "publishConfig": {
99
98
  "access": "public"
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ISvgIconProps } from "../../utils/types";
3
- import './index.scss';
4
- export declare const GoBackIcon: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
@@ -1,43 +0,0 @@
1
- var _excluded = ["style", "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; }
5
- import React, { forwardRef } from 'react';
6
- import { useBem } from "../../hooks/useBem";
7
- import "./index.scss";
8
- export var GoBackIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
9
- var style = _ref.style,
10
- className = _ref.className,
11
- rest = _objectWithoutProperties(_ref, _excluded);
12
- var bem = useBem('goback-icon');
13
- return /*#__PURE__*/React.createElement("svg", _extends({
14
- ref: ref,
15
- width: "16",
16
- height: "16",
17
- viewBox: "0 0 16 16",
18
- fill: "none",
19
- xmlns: "http://www.w3.org/2000/svg"
20
- }, rest, {
21
- style: style,
22
- className: "".concat(bem, " ").concat(className !== null && className !== void 0 ? className : '')
23
- }), /*#__PURE__*/React.createElement("g", {
24
- id: "Group 1660"
25
- }, /*#__PURE__*/React.createElement("g", {
26
- id: "Rectangle 18755"
27
- }, /*#__PURE__*/React.createElement("rect", {
28
- width: "16",
29
- height: "16",
30
- rx: "8"
31
- }), /*#__PURE__*/React.createElement("rect", {
32
- width: "16",
33
- height: "16",
34
- rx: "8"
35
- })), /*#__PURE__*/React.createElement("path", {
36
- id: "Union",
37
- fillRule: "evenodd",
38
- clipRule: "evenodd",
39
- d: "M3.47298 7.70007C3.28505 7.85003 3.28505 8.14997 3.47298 8.29993L6.76169 10.9243C6.99398 11.1097 7.32547 10.9334 7.32547 10.6244V9H11.6654C12.2176 9 12.6654 8.55228 12.6654 8C12.6654 7.44772 12.2177 7 11.6654 7H7.32547V5.3756C7.32547 5.06665 6.99398 4.8903 6.76169 5.07566L3.47298 7.70007Z",
40
- fill: "white"
41
- })));
42
- });
43
- GoBackIcon.displayName = 'GoBackIcon';
@@ -1,5 +0,0 @@
1
- .yot-goback-icon {
2
- rect {
3
- fill: var(--ant-color-primary);
4
- }
5
- }
@@ -1,7 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import './index.scss';
3
- export interface IGoBackProps {
4
- style?: CSSProperties;
5
- className?: string;
6
- }
7
- export declare const GoBack: (props: React.PropsWithChildren<IGoBackProps>) => React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { useNavigate } from 'react-router-dom';
3
- import { useBem } from "../hooks/useBem";
4
- import { GoBackIcon } from "./components/GoBackIcon";
5
- import "./index.scss";
6
- export var GoBack = function GoBack(props) {
7
- var style = props.style,
8
- className = props.className,
9
- children = props.children;
10
- var navigate = useNavigate();
11
- var bem = useBem('goback');
12
- var handleClick = function handleClick() {
13
- navigate(-1);
14
- };
15
- return /*#__PURE__*/React.createElement("div", {
16
- className: "".concat(bem, " ").concat(className !== null && className !== void 0 ? className : ''),
17
- style: style
18
- }, /*#__PURE__*/React.createElement("div", {
19
- className: "".concat(bem.b('content')),
20
- onClick: handleClick
21
- }, /*#__PURE__*/React.createElement(GoBackIcon, null), /*#__PURE__*/React.createElement("span", {
22
- className: "".concat(bem.b('content').e('title'))
23
- }, "\u8FD4\u56DE")), children);
24
- };
@@ -1,24 +0,0 @@
1
- .yot-goback {
2
- height: 59px;
3
- background-color: #ffffff;
4
- border-radius: 8px;
5
- box-sizing: border-box;
6
- padding: 0 24px;
7
- display: flex;
8
- align-items: center;
9
-
10
- &-content {
11
- width: fit-content;
12
- max-width: 60px;
13
- height: 100%;
14
- display: flex;
15
- align-items: center;
16
- cursor: pointer;
17
-
18
- &__title {
19
- font-size: 18px;
20
- margin-left: 5px;
21
- font-weight: bold;
22
- }
23
- }
24
- }