@douyinfe/semi-foundation 2.38.3-alpha.2-spin → 2.38.3-alpha.2-patch-3006
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.
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@import "./animation.scss";
|
|
2
|
+
@import './variables.scss';
|
|
3
|
+
|
|
4
|
+
$module: #{$prefix}-anchor;
|
|
5
|
+
|
|
6
|
+
.#{$module} {
|
|
7
|
+
@include font-size-regular;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
overflow-x: hidden;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&-size-small {
|
|
13
|
+
@include font-size-small;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-slide {
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: $spacing-anchor_slide-left;
|
|
19
|
+
top: $spacing-anchor_slide-top;
|
|
20
|
+
height: 100%;
|
|
21
|
+
|
|
22
|
+
&-muted {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-bar {
|
|
27
|
+
display: none;
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
width: $width-anchor_slide_default;
|
|
31
|
+
border-radius: $radius-anchor_slide;
|
|
32
|
+
|
|
33
|
+
&-active {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-default {
|
|
38
|
+
height: $height-anchor_slide_default + 2 * $spacing-anchor_slide_default-Y;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-small {
|
|
42
|
+
height: $height-anchor_slide_small + 2 * $spacing-anchor_slide_small-Y;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-primary {
|
|
46
|
+
background-color: $color-anchor_slide_primary-bg-active;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-tertiary {
|
|
50
|
+
background-color: $color-anchor_slide_tertiary-bg-active;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
position: absolute;
|
|
56
|
+
display: block;
|
|
57
|
+
width: $width-anchor_slide_default;
|
|
58
|
+
height: 100%;
|
|
59
|
+
background-color: $color-anchor_slide_default-bg-default;
|
|
60
|
+
border-radius: $radius-anchor_slide;
|
|
61
|
+
content: ' ';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-link {
|
|
66
|
+
|
|
67
|
+
&-title {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
color: $color-anchor_title-text-default;
|
|
70
|
+
padding-top: $spacing-anchor_link_title-paddingTop;
|
|
71
|
+
padding-bottom: $spacing-anchor_link_title-paddingBottom;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
border-radius: $width-anchor-outline_border_radius;
|
|
76
|
+
transition: color $transition_duration-anchor_title-text $transition_function-anchor_title-text $transition_delay-anchor_title-text;//锚点选项文字的动效
|
|
77
|
+
transform: scale($transform_scale-anchor_title-text);
|
|
78
|
+
&:hover {
|
|
79
|
+
color: $color-anchor_title-text-hover;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-active {
|
|
83
|
+
color: $color-anchor_title-text-active;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:focus-visible {
|
|
87
|
+
outline: $width-anchor-outline solid $color-anchor_title-outline-focus;
|
|
88
|
+
outline-offset: $width-anchor-outlineOffset;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-disabled {
|
|
92
|
+
color: $color-anchor_title-text-disabled;
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
&:hover {
|
|
95
|
+
color: $color-anchor_title-text-disabled;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-tooltip {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
color: $color-anchor_title-text-default !important;
|
|
103
|
+
|
|
104
|
+
&-small {
|
|
105
|
+
@include font-size-small;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
color: $color-anchor_title-text-hover !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-active {
|
|
113
|
+
color: $color-anchor_title-text-active !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-disabled {
|
|
117
|
+
color: $color-anchor_title-text-disabled !important;
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
&:hover {
|
|
120
|
+
color: $color-anchor_title-text-disabled !important;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@import "./rtl.scss";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@import "./animation.scss";
|
|
2
|
+
@import './variables.scss';
|
|
3
|
+
|
|
4
|
+
$module: #{$prefix}-anchor;
|
|
5
|
+
|
|
6
|
+
.#{$module} {
|
|
7
|
+
@include font-size-regular;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
overflow-x: hidden;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&-size-small {
|
|
13
|
+
@include font-size-small;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-slide {
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: $spacing-anchor_slide-left;
|
|
19
|
+
top: $spacing-anchor_slide-top;
|
|
20
|
+
height: 100%;
|
|
21
|
+
|
|
22
|
+
&-muted {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-bar {
|
|
27
|
+
display: none;
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
width: $width-anchor_slide_default;
|
|
31
|
+
border-radius: $radius-anchor_slide;
|
|
32
|
+
|
|
33
|
+
&-active {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-default {
|
|
38
|
+
height: $height-anchor_slide_default + 2 * $spacing-anchor_slide_default-Y;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-small {
|
|
42
|
+
height: $height-anchor_slide_small + 2 * $spacing-anchor_slide_small-Y;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-primary {
|
|
46
|
+
background-color: $color-anchor_slide_primary-bg-active;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-tertiary {
|
|
50
|
+
background-color: $color-anchor_slide_tertiary-bg-active;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
position: absolute;
|
|
56
|
+
display: block;
|
|
57
|
+
width: $width-anchor_slide_default;
|
|
58
|
+
height: 100%;
|
|
59
|
+
background-color: $color-anchor_slide_default-bg-default;
|
|
60
|
+
border-radius: $radius-anchor_slide;
|
|
61
|
+
content: ' ';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-link {
|
|
66
|
+
|
|
67
|
+
&-title {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
color: $color-anchor_title-text-default;
|
|
70
|
+
padding-top: $spacing-anchor_link_title-paddingTop;
|
|
71
|
+
padding-bottom: $spacing-anchor_link_title-paddingBottom;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
border-radius: $width-anchor-outline_border_radius;
|
|
76
|
+
transition: color $transition_duration-anchor_title-text $transition_function-anchor_title-text $transition_delay-anchor_title-text;//锚点选项文字的动效
|
|
77
|
+
transform: scale($transform_scale-anchor_title-text);
|
|
78
|
+
&:hover {
|
|
79
|
+
color: $color-anchor_title-text-hover;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-active {
|
|
83
|
+
color: $color-anchor_title-text-active;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:focus-visible {
|
|
87
|
+
outline: $width-anchor-outline solid $color-anchor_title-outline-focus;
|
|
88
|
+
outline-offset: $width-anchor-outlineOffset;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-disabled {
|
|
92
|
+
color: $color-anchor_title-text-disabled;
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
&:hover {
|
|
95
|
+
color: $color-anchor_title-text-disabled;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-tooltip {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
color: $color-anchor_title-text-default !important;
|
|
103
|
+
|
|
104
|
+
&-small {
|
|
105
|
+
@include font-size-small;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
color: $color-anchor_title-text-hover !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-active {
|
|
113
|
+
color: $color-anchor_title-text-active !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-disabled {
|
|
117
|
+
color: $color-anchor_title-text-disabled !important;
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
&:hover {
|
|
120
|
+
color: $color-anchor_title-text-disabled !important;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@import "./rtl.scss";
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.38.3-alpha.2-
|
|
3
|
+
"version": "2.38.3-alpha.2-patch-3006",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.38.3-alpha.2-
|
|
10
|
+
"@douyinfe/semi-animation": "2.38.3-alpha.2-patch-3006",
|
|
11
11
|
"async-validator": "^3.5.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"date-fns": "^2.29.3",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "3e02e0b8a1c3e479662e4c0e96fdcbd1b88b7c84",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|