yootd 0.0.5 → 0.0.6

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,35 +1,35 @@
1
- .yot-preview {
2
- &-controls {
3
- display: flex;
4
- justify-content: center;
5
- align-items: center;
6
- z-index: 100;
7
- position: absolute;
8
- bottom: 10px;
9
- right: 10px;
10
- background-color: #ffffff;
11
- border-radius: 8px;
12
- box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
13
- .ant-btn.css-var-yootd.ant-btn-default.ant-btn-color-default.ant-btn-variant-outlined {
14
- background-color: transparent;
15
- border: none;
16
- &:hover .ant-btn-icon svg path {
17
- fill: var(--ant-color-primary);
18
- }
19
- &:hover .ant-btn-icon svg #rect-stroke {
20
- stroke: var(--ant-color-primary);
21
- }
22
- &:hover .ant-btn-icon svg #reset-icon-rect {
23
- fill: var(--ant-color-primary);
24
- }
25
- }
26
- &--zoom {
27
- width: 64px;
28
- background-color: transparent;
29
- border: none;
30
- }
31
- }
32
- .react-flow__panel.center {
33
- transform: translateX(-63%);
34
- }
35
- }
1
+ .yot-preview {
2
+ &-controls {
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ z-index: 100;
7
+ position: absolute;
8
+ bottom: 10px;
9
+ right: 10px;
10
+ background-color: #ffffff;
11
+ border-radius: 8px;
12
+ box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
13
+ .ant-btn.css-var-yootd.ant-btn-default.ant-btn-color-default.ant-btn-variant-outlined {
14
+ background-color: transparent;
15
+ border: none;
16
+ &:hover .ant-btn-icon svg path {
17
+ fill: var(--ant-color-primary);
18
+ }
19
+ &:hover .ant-btn-icon svg #rect-stroke {
20
+ stroke: var(--ant-color-primary);
21
+ }
22
+ &:hover .ant-btn-icon svg #reset-icon-rect {
23
+ fill: var(--ant-color-primary);
24
+ }
25
+ }
26
+ &--zoom {
27
+ width: 64px;
28
+ background-color: transparent;
29
+ border: none;
30
+ }
31
+ }
32
+ .react-flow__panel.center {
33
+ transform: translateX(-63%);
34
+ }
35
+ }
@@ -1,95 +1,95 @@
1
- .yot-approval-process {
2
- &-steps {
3
- padding: 0px 40px;
4
- &-info {
5
- display: flex;
6
- &-avatar {
7
- position: relative;
8
- width: fit-content;
9
- height: fit-content;
10
- &-img {
11
- width: 40px;
12
- height: 40px;
13
- border-radius: 50%;
14
- background-size: 100% 100%;
15
- }
16
- &-status {
17
- &-icon {
18
- position: absolute;
19
- bottom: 3.5px;
20
- right: -0.5px;
21
- width: 18px;
22
- height: 18px;
23
- display: block;
24
- }
25
- }
26
- }
27
- &-person {
28
- margin-left: 16px;
29
- display: flex;
30
- flex-direction: column;
31
- justify-content: space-between;
32
- padding: 2px 0;
33
- &-name {
34
- font-size: 16px;
35
- font-weight: 500;
36
- color: var(--ant-color-text);
37
- }
38
- &-time {
39
- font-size: 12px;
40
- font-weight: 500;
41
- color: var(--ant-color-text-tertiary);
42
- }
43
- }
44
- }
45
-
46
- &-content {
47
- display: flex;
48
- padding-left: 20px;
49
- padding-top: 8px;
50
- padding-bottom: 8px;
51
- &-line {
52
- width: 1px;
53
- border-left: 1px dashed var(--ant-color-border);
54
- &--block {
55
- display: block;
56
- border-color: var(--ant-color-border);
57
- min-height: 106px;
58
- }
59
- &--none {
60
- display: none;
61
- border-color: var(--ant-color-border);
62
- min-height: 106px;
63
- }
64
- }
65
- &-item {
66
- margin-left: 40px;
67
- &-status {
68
- display: flex;
69
- align-items: center;
70
- width: fit-content;
71
- height: 22px;
72
- padding: 0 8px;
73
- border-radius: 4px;
74
- font-size: 12px;
75
- &--visible {
76
- visibility: visible;
77
- }
78
- &--invisible {
79
- visibility: hidden;
80
- }
81
- }
82
- &-comment {
83
- margin-top: 4px;
84
- padding: 0 8px;
85
- font-size: 14px;
86
- background-color: var(--ant-color-bg-layout);
87
- height: 32px;
88
- display: flex;
89
- align-items: center;
90
- border-radius: 4px;
91
- }
92
- }
93
- }
94
- }
95
- }
1
+ .yot-approval-process {
2
+ &-steps {
3
+ padding: 0px 40px;
4
+ &-info {
5
+ display: flex;
6
+ &-avatar {
7
+ position: relative;
8
+ width: fit-content;
9
+ height: fit-content;
10
+ &-img {
11
+ width: 40px;
12
+ height: 40px;
13
+ border-radius: 50%;
14
+ background-size: 100% 100%;
15
+ }
16
+ &-status {
17
+ &-icon {
18
+ position: absolute;
19
+ bottom: 3.5px;
20
+ right: -0.5px;
21
+ width: 18px;
22
+ height: 18px;
23
+ display: block;
24
+ }
25
+ }
26
+ }
27
+ &-person {
28
+ margin-left: 16px;
29
+ display: flex;
30
+ flex-direction: column;
31
+ justify-content: space-between;
32
+ padding: 2px 0;
33
+ &-name {
34
+ font-size: 16px;
35
+ font-weight: 500;
36
+ color: var(--ant-color-text);
37
+ }
38
+ &-time {
39
+ font-size: 12px;
40
+ font-weight: 500;
41
+ color: var(--ant-color-text-tertiary);
42
+ }
43
+ }
44
+ }
45
+
46
+ &-content {
47
+ display: flex;
48
+ padding-left: 20px;
49
+ padding-top: 8px;
50
+ padding-bottom: 8px;
51
+ &-line {
52
+ width: 1px;
53
+ border-left: 1px dashed var(--ant-color-border);
54
+ &--block {
55
+ display: block;
56
+ border-color: var(--ant-color-border);
57
+ min-height: 106px;
58
+ }
59
+ &--none {
60
+ display: none;
61
+ border-color: var(--ant-color-border);
62
+ min-height: 106px;
63
+ }
64
+ }
65
+ &-item {
66
+ margin-left: 40px;
67
+ &-status {
68
+ display: flex;
69
+ align-items: center;
70
+ width: fit-content;
71
+ height: 22px;
72
+ padding: 0 8px;
73
+ border-radius: 4px;
74
+ font-size: 12px;
75
+ &--visible {
76
+ visibility: visible;
77
+ }
78
+ &--invisible {
79
+ visibility: hidden;
80
+ }
81
+ }
82
+ &-comment {
83
+ margin-top: 4px;
84
+ padding: 0 8px;
85
+ font-size: 14px;
86
+ background-color: var(--ant-color-bg-layout);
87
+ height: 32px;
88
+ display: flex;
89
+ align-items: center;
90
+ border-radius: 4px;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
@@ -1,21 +1,21 @@
1
- .yot-Areas {
2
- border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
3
- border-radius: var(--ant-border-radius);
4
- &-areas-select::after {
5
- content: '';
6
- position: absolute;
7
- right: 0;
8
- top: 50%; /* 从中间开始 */
9
- width: 1px; /* 边框宽度 */
10
- height: 50%; /* 设为盒子高度的百分之五十 */
11
- background-color: var(--ant-color-border); /* 边框颜色 */
12
- transform: translateY(-50%);
13
- }
14
- .ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-allow-clear.ant-select-show-arrow {
15
- .ant-select-selector {
16
- padding-left: var(--ant-padding);
17
- padding-right: var(--ant-padding);
18
- border: 0;
19
- }
20
- }
21
- }
1
+ .yot-Areas {
2
+ border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
3
+ border-radius: var(--ant-border-radius);
4
+ &-areas-select::after {
5
+ content: '';
6
+ position: absolute;
7
+ right: 0;
8
+ top: 50%; /* 从中间开始 */
9
+ width: 1px; /* 边框宽度 */
10
+ height: 50%; /* 设为盒子高度的百分之五十 */
11
+ background-color: var(--ant-color-border); /* 边框颜色 */
12
+ transform: translateY(-50%);
13
+ }
14
+ .ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-allow-clear.ant-select-show-arrow {
15
+ .ant-select-selector {
16
+ padding-left: var(--ant-padding);
17
+ padding-right: var(--ant-padding);
18
+ border: 0;
19
+ }
20
+ }
21
+ }
@@ -1,31 +1,31 @@
1
- .yot-button {
2
- &--small {
3
- height: 26px;
4
- padding-left: 16px;
5
- padding-right: 16px;
6
- border-radius: 4px;
7
- font-size: 14px;
8
- }
9
-
10
- &--middle {
11
- height: 32px;
12
- padding-left: 16px;
13
- padding-right: 16px;
14
- border-radius: 4px;
15
- font-size: 14px;
16
- }
17
-
18
- &--large {
19
- height: 40px;
20
- padding-left: 32px;
21
- padding-right: 32px;
22
- border-radius: 8px;
23
- font-size: 16px;
24
- }
25
-
26
- &__link{
27
- padding: 0 !important;
28
- border: 0 !important;
29
- }
30
-
1
+ .yot-button {
2
+ &--small {
3
+ height: 26px;
4
+ padding-left: 16px;
5
+ padding-right: 16px;
6
+ border-radius: 4px;
7
+ font-size: 14px;
8
+ }
9
+
10
+ &--middle {
11
+ height: 32px;
12
+ padding-left: 16px;
13
+ padding-right: 16px;
14
+ border-radius: 4px;
15
+ font-size: 14px;
16
+ }
17
+
18
+ &--large {
19
+ height: 40px;
20
+ padding-left: 32px;
21
+ padding-right: 32px;
22
+ border-radius: 8px;
23
+ font-size: 16px;
24
+ }
25
+
26
+ &__link{
27
+ padding: 0 !important;
28
+ border: 0 !important;
29
+ }
30
+
31
31
  }
@@ -1,6 +1,6 @@
1
- <svg t="1729587167155" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
- xmlns="http://www.w3.org/2000/svg" p-id="3741" width="20" height="20">
3
- <path
4
- d="M474.282667 690.176L148.053333 363.904l45.226667-45.226667 318.72 318.72 318.72-318.72 45.226667 45.226667-326.229334 326.272a53.333333 53.333333 0 0 1-75.434666 0z"
5
- p-id="3742" fill="#1f1f1f"></path>
1
+ <svg t="1729587167155" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
+ xmlns="http://www.w3.org/2000/svg" p-id="3741" width="20" height="20">
3
+ <path
4
+ d="M474.282667 690.176L148.053333 363.904l45.226667-45.226667 318.72 318.72 318.72-318.72 45.226667 45.226667-326.229334 326.272a53.333333 53.333333 0 0 1-75.434666 0z"
5
+ p-id="3742" fill="#1f1f1f"></path>
6
6
  </svg>
@@ -1,15 +1,15 @@
1
- .yot-empty {
2
- &-description {
3
- &-content {
4
- &__title {
5
- font-size: 20px;
6
- font-weight: bold;
7
- color: var(--ant-color-text);
8
- }
9
- &__text {
10
- font-size: 14px;
11
- color: var(--ant-color-text-secondary);
12
- }
13
- }
14
- }
15
- }
1
+ .yot-empty {
2
+ &-description {
3
+ &-content {
4
+ &__title {
5
+ font-size: 20px;
6
+ font-weight: bold;
7
+ color: var(--ant-color-text);
8
+ }
9
+ &__text {
10
+ font-size: 14px;
11
+ color: var(--ant-color-text-secondary);
12
+ }
13
+ }
14
+ }
15
+ }
@@ -1,31 +1,31 @@
1
- .yot-group-title {
2
- background-color: var(--yot-group-color-secondary);
3
- border-radius: 4px;
4
- height: 42px;
5
- position: relative;
6
-
7
- &__content::before {
8
- content: '';
9
- position: absolute;
10
- width: 4px;
11
- height: 16px;
12
- top: 13px;
13
- left: 16px;
14
- background: var(--yot-group-color-primary);
15
- border-radius: 2px 2px 2px 2px
16
- }
17
-
18
- &-title {
19
- display: flex;
20
- padding: 0px 26px;
21
- line-height: 42px;
22
-
23
- &__title-text {
24
- font-family: Source Han Sans CN, Source Han Sans CN;
25
- font-weight: 550;
26
- font-size: 16px;
27
- text-align: left;
28
- }
29
- }
30
-
31
- }
1
+ .yot-group-title {
2
+ background-color: var(--yot-group-color-secondary);
3
+ border-radius: 4px;
4
+ height: 42px;
5
+ position: relative;
6
+
7
+ &__content::before {
8
+ content: '';
9
+ position: absolute;
10
+ width: 4px;
11
+ height: 16px;
12
+ top: 13px;
13
+ left: 16px;
14
+ background: var(--yot-group-color-primary);
15
+ border-radius: 2px 2px 2px 2px
16
+ }
17
+
18
+ &-title {
19
+ display: flex;
20
+ padding: 0px 26px;
21
+ line-height: 42px;
22
+
23
+ &__title-text {
24
+ font-family: Source Han Sans CN, Source Han Sans CN;
25
+ font-weight: 550;
26
+ font-size: 16px;
27
+ text-align: left;
28
+ }
29
+ }
30
+
31
+ }
@@ -1,27 +1,27 @@
1
- .yot-image {
2
- &-content {
3
- display: flex;
4
- justify-content: center;
5
- align-items: center;
6
- background-color: #f5f5f5;
7
- border-radius: 4px;
8
- position: relative;
9
-
10
- .ant-image-mask-info {
11
- display: none;
12
- }
13
-
14
- .ant-image-mask::after {
15
- content: '';
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- background-image: url('./assets/eye.png');
20
- background-repeat: no-repeat;
21
- background-size: cover;
22
- width: 16px;
23
- height: 16px;
24
- transform: translate(-50%, -50%);
25
- }
26
- }
1
+ .yot-image {
2
+ &-content {
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ background-color: #f5f5f5;
7
+ border-radius: 4px;
8
+ position: relative;
9
+
10
+ .ant-image-mask-info {
11
+ display: none;
12
+ }
13
+
14
+ .ant-image-mask::after {
15
+ content: '';
16
+ position: absolute;
17
+ top: 50%;
18
+ left: 50%;
19
+ background-image: url('./assets/eye.png');
20
+ background-repeat: no-repeat;
21
+ background-size: cover;
22
+ width: 16px;
23
+ height: 16px;
24
+ transform: translate(-50%, -50%);
25
+ }
26
+ }
27
27
  }
package/dist/index.d.ts CHANGED
@@ -52,6 +52,8 @@ export { Switch } from './switch';
52
52
  export type { SwitchProps } from './switch';
53
53
  export { Steps } from './steps';
54
54
  export type { StepsProps } from './steps';
55
+ export { StudentDropdown } from './student-dropdown';
56
+ export type { StudentDropdownProps } from './student-dropdown/types/types';
55
57
  export { ApprovalProcess } from './approval-process';
56
58
  export { State } from './state';
57
59
  export type { StateProps } from './state';
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ export { TreeSelect } from "./tree-select";
26
26
  export { Transfer } from "./transfer";
27
27
  export { Switch } from "./switch";
28
28
  export { Steps } from "./steps";
29
+ export { StudentDropdown } from "./student-dropdown";
29
30
  export { ApprovalProcess } from "./approval-process";
30
31
  export { State } from "./state";
31
32
  export { BusinessTree } from "./business-tree";