@rescui/icons 1.8.1-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.14 → 1.8.1-RUI-296-Build-docs-md-files-for-each-docs-section-b138dd5bf.15
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/lib/index.css +21 -21
- package/lib/index.css.js +12 -12
- package/lib/index.css.js.map +1 -1
- package/llm/components/icons.md +585 -0
- package/llm/index.md +2 -0
- package/package.json +5 -4
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_1wzcoos_4{
|
|
2
2
|
--_rs-theme-dark:var(
|
|
3
3
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
4
4
|
var(--rs-theme-dark, 0)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
9
9
|
}
|
|
10
10
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
11
|
-
.
|
|
11
|
+
._icon_1wzcoos_4{
|
|
12
12
|
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
13
13
|
--_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
14
14
|
--_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
20
|
-
.
|
|
20
|
+
._icon_1wzcoos_4{
|
|
21
21
|
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
|
|
22
22
|
--_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
|
|
23
23
|
--_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
--_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
._icon_1wzcoos_4{
|
|
29
29
|
|
|
30
30
|
fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
|
|
31
31
|
|
|
32
32
|
width:var(--rs-icons-width, auto);
|
|
33
33
|
height:var(--rs-icons-height, var(--_rs-icons-height));
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
._sizeXS_1wzcoos_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_1wzcoos_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_1wzcoos_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_1wzcoos_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_1wzcoos_30{
|
|
48
48
|
--rs-theme-dark:0;
|
|
49
49
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
._dark_1wzcoos_34{
|
|
52
52
|
--rs-theme-dark:1;
|
|
53
53
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
54
54
|
}
|
|
@@ -60,39 +60,39 @@
|
|
|
60
60
|
transform:rotate(360deg);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
._allVariants_1wzcoos_48{
|
|
64
64
|
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
65
65
|
container:rs-icon / size;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
.
|
|
69
|
-
.
|
|
67
|
+
._variant16_1wzcoos_53,
|
|
68
|
+
._variant20_1wzcoos_54,
|
|
69
|
+
._variant24_1wzcoos_55{
|
|
70
70
|
display:none;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
._variant28_1wzcoos_58{
|
|
73
73
|
display:block;
|
|
74
74
|
}
|
|
75
75
|
@container rs-icon (max-height: 24px){
|
|
76
|
-
.
|
|
76
|
+
._variant24_1wzcoos_55{
|
|
77
77
|
display:block;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
._variant28_1wzcoos_58{
|
|
80
80
|
display:none;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
@container rs-icon (max-height: 20px){
|
|
84
|
-
.
|
|
84
|
+
._variant20_1wzcoos_54{
|
|
85
85
|
display:block;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
._variant24_1wzcoos_55{
|
|
88
88
|
display:none;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
@container rs-icon (max-height: 16px){
|
|
92
|
-
.
|
|
92
|
+
._variant16_1wzcoos_53{
|
|
93
93
|
display:block;
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
._variant20_1wzcoos_54{
|
|
96
96
|
display:none;
|
|
97
97
|
}
|
|
98
98
|
}
|
package/lib/index.css.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"icon": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
9
|
-
"allVariants": "
|
|
10
|
-
"variant16": "
|
|
11
|
-
"variant20": "
|
|
12
|
-
"variant24": "
|
|
13
|
-
"variant28": "
|
|
2
|
+
"icon": "_icon_1wzcoos_4",
|
|
3
|
+
"sizeXS": "_sizeXS_1wzcoos_14",
|
|
4
|
+
"sizeS": "_sizeS_1wzcoos_18",
|
|
5
|
+
"sizeM": "_sizeM_1wzcoos_22",
|
|
6
|
+
"sizeL": "_sizeL_1wzcoos_26",
|
|
7
|
+
"light": "_light_1wzcoos_30",
|
|
8
|
+
"dark": "_dark_1wzcoos_34",
|
|
9
|
+
"allVariants": "_allVariants_1wzcoos_48",
|
|
10
|
+
"variant16": "_variant16_1wzcoos_53",
|
|
11
|
+
"variant20": "_variant20_1wzcoos_54",
|
|
12
|
+
"variant24": "_variant24_1wzcoos_55",
|
|
13
|
+
"variant28": "_variant28_1wzcoos_58"
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=index.css.js.map
|
package/lib/index.css.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.css.js","names":[],"sources":["index.css.js"],"sourcesContent":["export default {\"icon\":\"
|
|
1
|
+
{"version":3,"file":"index.css.js","names":[],"sources":["index.css.js"],"sourcesContent":["export default {\"icon\":\"_icon_1wzcoos_4\",\"sizeXS\":\"_sizeXS_1wzcoos_14\",\"sizeS\":\"_sizeS_1wzcoos_18\",\"sizeM\":\"_sizeM_1wzcoos_22\",\"sizeL\":\"_sizeL_1wzcoos_26\",\"light\":\"_light_1wzcoos_30\",\"dark\":\"_dark_1wzcoos_34\",\"allVariants\":\"_allVariants_1wzcoos_48\",\"variant16\":\"_variant16_1wzcoos_53\",\"variant20\":\"_variant20_1wzcoos_54\",\"variant24\":\"_variant24_1wzcoos_55\",\"variant28\":\"_variant28_1wzcoos_58\"}"],"mappings":"AAAA,eAAe;EAAC,QAAO,iBAAR;EAA0B,UAAS,oBAAnC;EAAwD,SAAQ,mBAAhE;EAAoF,SAAQ,mBAA5F;EAAgH,SAAQ,mBAAxH;EAA4I,SAAQ,mBAApJ;EAAwK,QAAO,kBAA/K;EAAkM,eAAc,yBAAhN;EAA0O,aAAY,uBAAtP;EAA8Q,aAAY,uBAA1R;EAAkT,aAAY,uBAA9T;EAAsV,aAAY;AAAlW,CAAf"}
|
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
# Icons
|
|
2
|
+
|
|
3
|
+
Icons are visual symbols used to represent products, objects, or actions.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
All Icons list
|
|
8
|
+
|
|
9
|
+
- AddCircleIcon
|
|
10
|
+
- AddCircleOutlineIcon
|
|
11
|
+
- AddIcon
|
|
12
|
+
- AddOutlineIcon
|
|
13
|
+
- AddPersonIcon
|
|
14
|
+
- AddPersonOutlineIcon
|
|
15
|
+
- AiIcon
|
|
16
|
+
- AndroidIcon
|
|
17
|
+
- AppleIcon
|
|
18
|
+
- ArrowBottomIcon
|
|
19
|
+
- ArrowBottomLeftIcon
|
|
20
|
+
- ArrowBottomLeftOutlineIcon
|
|
21
|
+
- ArrowBottomOutlineIcon
|
|
22
|
+
- ArrowBottomRightIcon
|
|
23
|
+
- ArrowBottomRightOutlineIcon
|
|
24
|
+
- ArrowLeftIcon
|
|
25
|
+
- ArrowLeftOutlineIcon
|
|
26
|
+
- ArrowRightIcon
|
|
27
|
+
- ArrowRightOutlineIcon
|
|
28
|
+
- ArrowTopIcon
|
|
29
|
+
- ArrowTopLeftIcon
|
|
30
|
+
- ArrowTopLeftOutlineIcon
|
|
31
|
+
- ArrowTopOutlineIcon
|
|
32
|
+
- ArrowTopRightIcon
|
|
33
|
+
- ArrowTopRightOutlineIcon
|
|
34
|
+
- AttachedIcon
|
|
35
|
+
- AttachedOutlineIcon
|
|
36
|
+
- BellCrossedIcon
|
|
37
|
+
- BellCrossedOutlineIcon
|
|
38
|
+
- BellIcon
|
|
39
|
+
- BellOutlineIcon
|
|
40
|
+
- BilibiliIcon
|
|
41
|
+
- BitbucketIcon
|
|
42
|
+
- BlockIcon
|
|
43
|
+
- BlockOutlineIcon
|
|
44
|
+
- BlogIcon
|
|
45
|
+
- BlogOutlineIcon
|
|
46
|
+
- BlueskyIcon
|
|
47
|
+
- BranchIcon
|
|
48
|
+
- BranchOutlineIcon
|
|
49
|
+
- BriefcaseIcon
|
|
50
|
+
- BriefcaseOutlineIcon
|
|
51
|
+
- BugIcon
|
|
52
|
+
- BugOutlineIcon
|
|
53
|
+
- BulletsIcon
|
|
54
|
+
- BulletsOutlineIcon
|
|
55
|
+
- CartIcon
|
|
56
|
+
- CartOutlineIcon
|
|
57
|
+
- CheckAsterixIcon
|
|
58
|
+
- CheckAsterixOutlineIcon
|
|
59
|
+
- CheckDollarIcon
|
|
60
|
+
- CheckDollarOutlineIcon
|
|
61
|
+
- CheckDoubleIcon
|
|
62
|
+
- CheckDoubleOutlineIcon
|
|
63
|
+
- CheckIcon
|
|
64
|
+
- CheckLimetedIcon
|
|
65
|
+
- CheckLimetedOutlineIcon
|
|
66
|
+
- CheckOutlineIcon
|
|
67
|
+
- CheckVsIcon
|
|
68
|
+
- CheckVsOutlineIcon
|
|
69
|
+
- CircleIcon
|
|
70
|
+
- CircleOutlineIcon
|
|
71
|
+
- ClockIcon
|
|
72
|
+
- ClockOutlineIcon
|
|
73
|
+
- CloseIcon
|
|
74
|
+
- CloseOutlineIcon
|
|
75
|
+
- CloudCrossedIcon
|
|
76
|
+
- CloudCrossedOutlineIcon
|
|
77
|
+
- CloudDownloadIcon
|
|
78
|
+
- CloudDownloadOutlineIcon
|
|
79
|
+
- CloudIcon
|
|
80
|
+
- CloudOutlineIcon
|
|
81
|
+
- CloudPublishIcon
|
|
82
|
+
- CloudPublishOutlineIcon
|
|
83
|
+
- CodeClosedIcon
|
|
84
|
+
- CodeClosedOutlineIcon
|
|
85
|
+
- CodeIcon
|
|
86
|
+
- CodeOutlineIcon
|
|
87
|
+
- ColorIcon
|
|
88
|
+
- ColorOutlineIcon
|
|
89
|
+
- CommitIcon
|
|
90
|
+
- CommitOutlineIcon
|
|
91
|
+
- CompanyIcon
|
|
92
|
+
- CompanyOutlineIcon
|
|
93
|
+
- ComputerIcon
|
|
94
|
+
- ComputerOutlineIcon
|
|
95
|
+
- CopyIcon
|
|
96
|
+
- CopyOutlineIcon
|
|
97
|
+
- CouponIcon
|
|
98
|
+
- CouponOutlineIcon
|
|
99
|
+
- CropIcon
|
|
100
|
+
- CropOutlineIcon
|
|
101
|
+
- DateIcon
|
|
102
|
+
- DateOutlineIcon
|
|
103
|
+
- DiscordIcon
|
|
104
|
+
- DiscourseIcon
|
|
105
|
+
- DownIcon
|
|
106
|
+
- DownOutlineIcon
|
|
107
|
+
- DownloadIcon
|
|
108
|
+
- DownloadOutlineIcon
|
|
109
|
+
- EmailIcon
|
|
110
|
+
- EmailOutlineIcon
|
|
111
|
+
- EnterIcon
|
|
112
|
+
- EnterOutlineIcon
|
|
113
|
+
- ErrorIcon
|
|
114
|
+
- ErrorOutlineIcon
|
|
115
|
+
- ExitIcon
|
|
116
|
+
- ExitOutlineIcon
|
|
117
|
+
- ExposedIcon
|
|
118
|
+
- ExternalIcon
|
|
119
|
+
- ExternalOutlineIcon
|
|
120
|
+
- EyeCrossedIcon
|
|
121
|
+
- EyeCrossedOutlineIcon
|
|
122
|
+
- EyeIcon
|
|
123
|
+
- EyeOutlineIcon
|
|
124
|
+
- FacebookIcon
|
|
125
|
+
- FigmaIcon
|
|
126
|
+
- FileExcelIcon
|
|
127
|
+
- FileExcelOutlineIcon
|
|
128
|
+
- FileIcon
|
|
129
|
+
- FileOutlineIcon
|
|
130
|
+
- FilesIcon
|
|
131
|
+
- FilesOutlineIcon
|
|
132
|
+
- FilterIcon
|
|
133
|
+
- FilterOutlineIcon
|
|
134
|
+
- FolderIcon
|
|
135
|
+
- FolderOutlineIcon
|
|
136
|
+
- FrameworkIcon
|
|
137
|
+
- FrameworkOutlineIcon
|
|
138
|
+
- FullScreenExitIcon
|
|
139
|
+
- FullScreenExitOutlineIcon
|
|
140
|
+
- FullScreenIcon
|
|
141
|
+
- FullScreenOutlineIcon
|
|
142
|
+
- GearIcon
|
|
143
|
+
- GearOutlineIcon
|
|
144
|
+
- GitHubIcon
|
|
145
|
+
- GitlabIcon
|
|
146
|
+
- GlobusIcon
|
|
147
|
+
- GlobusOutlineIcon
|
|
148
|
+
- GoogleAppIcon
|
|
149
|
+
- GoogleIcon
|
|
150
|
+
- HamburgerIcon
|
|
151
|
+
- HamburgerOutlineIcon
|
|
152
|
+
- HelpIcon
|
|
153
|
+
- HelpOutlineIcon
|
|
154
|
+
- HintIcon
|
|
155
|
+
- HintOutlineIcon
|
|
156
|
+
- HistoryIcon
|
|
157
|
+
- HistoryOutlineIcon
|
|
158
|
+
- HomeIcon
|
|
159
|
+
- HomeOutlineIcon
|
|
160
|
+
- InfinityIcon
|
|
161
|
+
- InfinityOutlineIcon
|
|
162
|
+
- InfoIcon
|
|
163
|
+
- InfoOutlineIcon
|
|
164
|
+
- InstagramIcon
|
|
165
|
+
- JetBrainsIcon
|
|
166
|
+
- JetBrainsOutlineIcon
|
|
167
|
+
- JuejinIcon
|
|
168
|
+
- JunieIcon
|
|
169
|
+
- KeyHoleIcon
|
|
170
|
+
- KeyHoleOutlineIcon
|
|
171
|
+
- KeyIcon
|
|
172
|
+
- KeyOutlineIcon
|
|
173
|
+
- KotlinIcon
|
|
174
|
+
- KtorIcon
|
|
175
|
+
- LanguageIcon
|
|
176
|
+
- LanguageOutlineIcon
|
|
177
|
+
- LearnIcon
|
|
178
|
+
- LearnOutlineIcon
|
|
179
|
+
- LeftIcon
|
|
180
|
+
- LeftOutlineIcon
|
|
181
|
+
- LightningIcon
|
|
182
|
+
- LightningOutlineIcon
|
|
183
|
+
- LinkCrossedIcon
|
|
184
|
+
- LinkCrossedOutlineIcon
|
|
185
|
+
- LinkIcon
|
|
186
|
+
- LinkOutlineIcon
|
|
187
|
+
- LinkedinIcon
|
|
188
|
+
- LinuxIcon
|
|
189
|
+
- LoadingIcon
|
|
190
|
+
- LoadingOutlineIcon
|
|
191
|
+
- LocationIcon
|
|
192
|
+
- LocationOutlineIcon
|
|
193
|
+
- LockIcon
|
|
194
|
+
- LockOpenedIcon
|
|
195
|
+
- LockOpenedOutlineIcon
|
|
196
|
+
- LockOutlineIcon
|
|
197
|
+
- LoveCrossedIcon
|
|
198
|
+
- LoveCrossedOutlineIcon
|
|
199
|
+
- LoveIcon
|
|
200
|
+
- LoveOutlineIcon
|
|
201
|
+
- MagicIcon
|
|
202
|
+
- MagicOutlineIcon
|
|
203
|
+
- MarginHIcon
|
|
204
|
+
- MarginHOutlineIcon
|
|
205
|
+
- MarginVIcon
|
|
206
|
+
- MarginVOutlineIcon
|
|
207
|
+
- MarkerIcon
|
|
208
|
+
- MastodonIcon
|
|
209
|
+
- MerchandiseIcon
|
|
210
|
+
- MerchandiseOutlineIcon
|
|
211
|
+
- MessageIcon
|
|
212
|
+
- MessageOutlineIcon
|
|
213
|
+
- MicrocontrollerIcon
|
|
214
|
+
- MicrocontrollerOutlineIcon
|
|
215
|
+
- MiniPlayerIcon
|
|
216
|
+
- MiniPlayerOutlineIcon
|
|
217
|
+
- MinusIcon
|
|
218
|
+
- MinusOutlineIcon
|
|
219
|
+
- MobileIcon
|
|
220
|
+
- MobileOutlineIcon
|
|
221
|
+
- MoonIcon
|
|
222
|
+
- MoonOutlineIcon
|
|
223
|
+
- MoreIcon
|
|
224
|
+
- MoreOutlineIcon
|
|
225
|
+
- MuteIcon
|
|
226
|
+
- MuteOutlineIcon
|
|
227
|
+
- OrderIcon
|
|
228
|
+
- OrderOutlineIcon
|
|
229
|
+
- PackageIcon
|
|
230
|
+
- PackageOutlineIcon
|
|
231
|
+
- PaddingHIcon
|
|
232
|
+
- PaddingHOutlineIcon
|
|
233
|
+
- PaddingVIcon
|
|
234
|
+
- PaddingVOutlineIcon
|
|
235
|
+
- PauseIcon
|
|
236
|
+
- PauseOutlineIcon
|
|
237
|
+
- PenIcon
|
|
238
|
+
- PenOutlineIcon
|
|
239
|
+
- PercentIcon
|
|
240
|
+
- PercentOutlineIcon
|
|
241
|
+
- PersonIcon
|
|
242
|
+
- PersonOutlineIcon
|
|
243
|
+
- PlayIcon
|
|
244
|
+
- PlayOutlineIcon
|
|
245
|
+
- PlusIcon
|
|
246
|
+
- PlusOutlineIcon
|
|
247
|
+
- PocketIcon
|
|
248
|
+
- PresentIcon
|
|
249
|
+
- PresentOutlineIcon
|
|
250
|
+
- PrintIcon
|
|
251
|
+
- PrintOutlineIcon
|
|
252
|
+
- ProjectsIcon
|
|
253
|
+
- ProjectsOutlineIcon
|
|
254
|
+
- QuoteIcon
|
|
255
|
+
- QuoteOutlineIcon
|
|
256
|
+
- ReadIcon
|
|
257
|
+
- ReadOutlineIcon
|
|
258
|
+
- RedditIcon
|
|
259
|
+
- RedoIcon
|
|
260
|
+
- RedoOutlineIcon
|
|
261
|
+
- RefreshIcon
|
|
262
|
+
- RefreshOutlineIcon
|
|
263
|
+
- RemovePersonIcon
|
|
264
|
+
- RemovePersonOutlineIcon
|
|
265
|
+
- RenewIcon
|
|
266
|
+
- RenewOutlineIcon
|
|
267
|
+
- RequestIcon
|
|
268
|
+
- RequestOutlineIcon
|
|
269
|
+
- ResellerIcon
|
|
270
|
+
- ResellerOutlineIcon
|
|
271
|
+
- RightIcon
|
|
272
|
+
- RightOutlineIcon
|
|
273
|
+
- RocketIcon
|
|
274
|
+
- RocketOutlineIcon
|
|
275
|
+
- RssFeedIcon
|
|
276
|
+
- SearchIcon
|
|
277
|
+
- SearchOutlineIcon
|
|
278
|
+
- SendIcon
|
|
279
|
+
- SendOutlineIcon
|
|
280
|
+
- ServerIcon
|
|
281
|
+
- ServerOutlineIcon
|
|
282
|
+
- SettingsIcon
|
|
283
|
+
- SettingsOutlineIcon
|
|
284
|
+
- ShareIcon
|
|
285
|
+
- ShareOutlineIcon
|
|
286
|
+
- SidebarIcon
|
|
287
|
+
- SidebarOutlineIcon
|
|
288
|
+
- SlackIcon
|
|
289
|
+
- SmileHappyIcon
|
|
290
|
+
- SmileHappyOutlineIcon
|
|
291
|
+
- SmileNeutralIcon
|
|
292
|
+
- SmileNeutralOutlineIcon
|
|
293
|
+
- SmileSadIcon
|
|
294
|
+
- SmileSadOutlineIcon
|
|
295
|
+
- SolarisIcon
|
|
296
|
+
- SpaceIcon
|
|
297
|
+
- SpringIcon
|
|
298
|
+
- StackOverflowIcon
|
|
299
|
+
- StampCrossedIcon
|
|
300
|
+
- StampCrossedOutlineIcon
|
|
301
|
+
- StampIcon
|
|
302
|
+
- StampOutlineIcon
|
|
303
|
+
- StarIcon
|
|
304
|
+
- StarOutlineIcon
|
|
305
|
+
- StatsIcon
|
|
306
|
+
- StatsOutlineIcon
|
|
307
|
+
- StopIcon
|
|
308
|
+
- StopOutlineIcon
|
|
309
|
+
- StyleIcon
|
|
310
|
+
- StyleOutlineIcon
|
|
311
|
+
- SubtitlesCrossedIcon
|
|
312
|
+
- SubtitlesCrossedOutlineIcon
|
|
313
|
+
- SubtitlesIcon
|
|
314
|
+
- SubtitlesOutlineIcon
|
|
315
|
+
- SuccessIcon
|
|
316
|
+
- SuccessOutlineIcon
|
|
317
|
+
- SunIcon
|
|
318
|
+
- SunOutlineIcon
|
|
319
|
+
- TabletIcon
|
|
320
|
+
- TabletOutlineIcon
|
|
321
|
+
- TagIcon
|
|
322
|
+
- TagOutlineIcon
|
|
323
|
+
- TargetIcon
|
|
324
|
+
- TargetOutlineIcon
|
|
325
|
+
- TeamIcon
|
|
326
|
+
- TeamOutlineIcon
|
|
327
|
+
- TelegramIcon
|
|
328
|
+
- TextAlignCenterIcon
|
|
329
|
+
- TextAlignCenterOutlineIcon
|
|
330
|
+
- TextAlignLeftIcon
|
|
331
|
+
- TextAlignLeftOutlineIcon
|
|
332
|
+
- TextAlignRightIcon
|
|
333
|
+
- TextAlignRightOutlineIcon
|
|
334
|
+
- ThemeIcon
|
|
335
|
+
- ThemeOutlineIcon
|
|
336
|
+
- ThumbsDownIcon
|
|
337
|
+
- ThumbsDownOutlineIcon
|
|
338
|
+
- ThumbsUpIcon
|
|
339
|
+
- ThumbsUpOutlineIcon
|
|
340
|
+
- TiktokIcon
|
|
341
|
+
- TouchIcon
|
|
342
|
+
- TouchOutlineIcon
|
|
343
|
+
- TrashIcon
|
|
344
|
+
- TrashOutlineIcon
|
|
345
|
+
- TreeIcon
|
|
346
|
+
- TreeOutlineIcon
|
|
347
|
+
- TwitterIcon
|
|
348
|
+
- UndoIcon
|
|
349
|
+
- UndoOutlineIcon
|
|
350
|
+
- UpIcon
|
|
351
|
+
- UpOutlineIcon
|
|
352
|
+
- UploadIcon
|
|
353
|
+
- UploadOutlineIcon
|
|
354
|
+
- VkIcon
|
|
355
|
+
- VolumeIcon
|
|
356
|
+
- VolumeOutlineIcon
|
|
357
|
+
- WarningIcon
|
|
358
|
+
- WarningOutlineIcon
|
|
359
|
+
- WechatIcon
|
|
360
|
+
- WeiboIcon
|
|
361
|
+
- WiFiIcon
|
|
362
|
+
- WiFiOutlineIcon
|
|
363
|
+
- WinIcon
|
|
364
|
+
- WinOutlineIcon
|
|
365
|
+
- WindowsIcon
|
|
366
|
+
- YoutubeIcon
|
|
367
|
+
- ZhihuIcon
|
|
368
|
+
|
|
369
|
+
### Usage
|
|
370
|
+
|
|
371
|
+
```tsx
|
|
372
|
+
import { CompanyIcon } from '@rescui/icons';
|
|
373
|
+
|
|
374
|
+
<CompanyIcon />;
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Loading icon animation
|
|
378
|
+
|
|
379
|
+
Animation inside `<svg>` tags can affect performance on pages with lots of loading icons.
|
|
380
|
+
|
|
381
|
+
If you encounter performance issues, put loading icons as a background image for span and animate them like in this example:
|
|
382
|
+
|
|
383
|
+
```tsx
|
|
384
|
+
import loadingOutlineIconSrc from '@rescui/icons/svg/loading-outline_24.svg';
|
|
385
|
+
|
|
386
|
+
<>
|
|
387
|
+
<style>{`
|
|
388
|
+
.my-loading-icon {
|
|
389
|
+
background-image: url(${loadingOutlineIconSrc.src});
|
|
390
|
+
background-repeat: no-repeat;
|
|
391
|
+
background-size: contain;
|
|
392
|
+
background-position: center center;
|
|
393
|
+
width: 24px;
|
|
394
|
+
height: 24px;
|
|
395
|
+
display: inline-block;
|
|
396
|
+
animation: rs-icon-rotate 1s linear infinite;
|
|
397
|
+
transform-origin:center center
|
|
398
|
+
}
|
|
399
|
+
`}</style>
|
|
400
|
+
<span className="my-loading-icon" />
|
|
401
|
+
</>;
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
#### Simple benchmark
|
|
405
|
+
|
|
406
|
+
Here's an interactive comparison showcasing a possible performance hit (More FPS = Better).
|
|
407
|
+
|
|
408
|
+
```tsx
|
|
409
|
+
import { useRef, useEffect, useState } from 'react';
|
|
410
|
+
import { textCn } from '@rescui/typography';
|
|
411
|
+
import { LoadingOutlineIcon } from '@rescui/icons';
|
|
412
|
+
import { Switcher } from '@rescui/switcher';
|
|
413
|
+
import loadingOutlineIconSrc from '@rescui/icons/svg/loading-outline_24.svg';
|
|
414
|
+
|
|
415
|
+
class FPSMeter {
|
|
416
|
+
constructor(element) {
|
|
417
|
+
this.times = [];
|
|
418
|
+
this.element = element;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
start() {
|
|
422
|
+
this.running = true;
|
|
423
|
+
this._refreshLoop();
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
stop() {
|
|
427
|
+
this.running = false;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
_refreshLoop() {
|
|
431
|
+
window.requestAnimationFrame(() => {
|
|
432
|
+
const now = performance.now();
|
|
433
|
+
while (this.times.length > 0 && this.times[0] <= now - 1000) {
|
|
434
|
+
this.times.shift();
|
|
435
|
+
}
|
|
436
|
+
this.times.push(now);
|
|
437
|
+
this.fps = this.times.length;
|
|
438
|
+
if (this.element) {
|
|
439
|
+
this.element.textContent = this.fps;
|
|
440
|
+
}
|
|
441
|
+
if (this.running) {
|
|
442
|
+
this._refreshLoop();
|
|
443
|
+
} else {
|
|
444
|
+
this.element.textContent = '';
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
const Benchmark = () => {
|
|
451
|
+
const fpsMeterElement = useRef();
|
|
452
|
+
const [variant, setVariant] = useState('off');
|
|
453
|
+
useEffect(() => {
|
|
454
|
+
if (variant === 'off') {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
const fpsMeter = new FPSMeter(fpsMeterElement.current);
|
|
458
|
+
fpsMeter.start();
|
|
459
|
+
return () => fpsMeter.stop();
|
|
460
|
+
}, [variant]);
|
|
461
|
+
return (
|
|
462
|
+
<>
|
|
463
|
+
<div>
|
|
464
|
+
<Switcher
|
|
465
|
+
value={variant}
|
|
466
|
+
onChange={setVariant}
|
|
467
|
+
options={[
|
|
468
|
+
{ label: 'Off', value: 'off' },
|
|
469
|
+
{ label: 'Animated SVG', value: 'svg' },
|
|
470
|
+
{ label: 'Animated Background', value: 'span' }
|
|
471
|
+
]}
|
|
472
|
+
/>
|
|
473
|
+
<span style={{ marginLeft: '24px' }} className={textCn('rs-text-2')}>
|
|
474
|
+
Current FPS:{' '}
|
|
475
|
+
</span>
|
|
476
|
+
<span ref={fpsMeterElement} />
|
|
477
|
+
</div>
|
|
478
|
+
<div>
|
|
479
|
+
{Array(1000)
|
|
480
|
+
.fill(0)
|
|
481
|
+
.map((_, i) => {
|
|
482
|
+
switch (variant) {
|
|
483
|
+
case 'svg':
|
|
484
|
+
return <LoadingOutlineIcon key={i} />;
|
|
485
|
+
case 'span':
|
|
486
|
+
return <span key={i} className="bench-loading-icon" />;
|
|
487
|
+
default:
|
|
488
|
+
return null;
|
|
489
|
+
}
|
|
490
|
+
})}
|
|
491
|
+
</div>
|
|
492
|
+
<style>{`
|
|
493
|
+
.bench-loading-icon {
|
|
494
|
+
background-image: url(${loadingOutlineIconSrc.src});
|
|
495
|
+
background-repeat: no-repeat;
|
|
496
|
+
background-size: contain;
|
|
497
|
+
background-position: center center;
|
|
498
|
+
width: 24px;
|
|
499
|
+
height: 24px;
|
|
500
|
+
display: inline-block;
|
|
501
|
+
animation: rs-icon-rotate 1s linear infinite;
|
|
502
|
+
transform-origin:center center
|
|
503
|
+
}
|
|
504
|
+
`}</style>
|
|
505
|
+
</>
|
|
506
|
+
);
|
|
507
|
+
};
|
|
508
|
+
render(<Benchmark />);
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
## CSS API
|
|
512
|
+
|
|
513
|
+
#### `Icon` mixins
|
|
514
|
+
|
|
515
|
+
| Mixin name | Details |
|
|
516
|
+
| --- | --- |
|
|
517
|
+
| `rs-icon-size-xs` | prop: `size`<br><br>value: `"xs"` |
|
|
518
|
+
| `rs-icon-size-s` | prop: `size`<br><br>value: `"s"` |
|
|
519
|
+
| `rs-icon-size-m` | prop: `size`<br><br>value: `"m"` |
|
|
520
|
+
| `rs-icon-size-l` | prop: `size`<br><br>value: `"l"` |
|
|
521
|
+
|
|
522
|
+
##### Demo
|
|
523
|
+
|
|
524
|
+
Must be used with `data-render-all-sizes` prop
|
|
525
|
+
|
|
526
|
+
Instead of separate classes, it may be a single class with `@media` queries inside:
|
|
527
|
+
|
|
528
|
+
```tsx
|
|
529
|
+
import { PersonOutlineIcon } from '@rescui/icons';
|
|
530
|
+
|
|
531
|
+
const MyIcon = ({ className }) => {
|
|
532
|
+
return (
|
|
533
|
+
<div style={{ padding: 12, backgroundColor: 'var(--rs-color-black-t5)' }}>
|
|
534
|
+
<PersonOutlineIcon className={className} size="m" data-render-all-sizes />
|
|
535
|
+
</div>
|
|
536
|
+
);
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
render(
|
|
540
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>
|
|
541
|
+
<div>
|
|
542
|
+
<p>Default:</p>
|
|
543
|
+
<MyIcon />
|
|
544
|
+
</div>
|
|
545
|
+
<div>
|
|
546
|
+
<p>Var1:</p>
|
|
547
|
+
<MyIcon className={`my-icon-var-1`} />
|
|
548
|
+
</div>
|
|
549
|
+
<div>
|
|
550
|
+
<p>Var1 & Var2 combined:</p>
|
|
551
|
+
<MyIcon className={`my-icon-var-1 my-icon-var-2`} />
|
|
552
|
+
</div>
|
|
553
|
+
</div>
|
|
554
|
+
);
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
```postcss attached
|
|
558
|
+
@import '@rescui/icons/lib/public-api.p.css';
|
|
559
|
+
|
|
560
|
+
.my-icon-var-1 {
|
|
561
|
+
@mixin rs-icon-size-l;
|
|
562
|
+
}
|
|
563
|
+
.my-icon-var-2 {
|
|
564
|
+
@mixin rs-icon-size-s;
|
|
565
|
+
}
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
#### CSS Vars
|
|
569
|
+
|
|
570
|
+
| Variable | Syntax | Description |
|
|
571
|
+
| --- | --- | --- |
|
|
572
|
+
| `--rs-icons-height` | [height](https://developer.mozilla.org/en-US/docs/Web/CSS/height) | The height of the icon. Because of the fixed `view-box` (which corresponds to the aspect-ration), this variable controls both width and height of the icon by default. |
|
|
573
|
+
| `--rs-icons-width` | [width](https://developer.mozilla.org/en-US/docs/Web/CSS/width) | The width of the icon. `auto` by default - calculates automatically based on the icon height. Should be used only for edge-cases like fixing the flex dimensions. |
|
|
574
|
+
|
|
575
|
+
##### Demo
|
|
576
|
+
|
|
577
|
+
```tsx
|
|
578
|
+
import { PersonOutlineIcon } from '@rescui/icons';
|
|
579
|
+
|
|
580
|
+
render(
|
|
581
|
+
<div>
|
|
582
|
+
<PersonOutlineIcon size="m" style={{ '--rs-icons-height': '64px' }} />
|
|
583
|
+
</div>
|
|
584
|
+
);
|
|
585
|
+
```
|
package/llm/index.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/icons",
|
|
3
|
-
"version": "1.8.1-RUI-296-Build-docs-md-files-for-each-docs-section-
|
|
3
|
+
"version": "1.8.1-RUI-296-Build-docs-md-files-for-each-docs-section-b138dd5bf.15+b138dd5bf",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"lib",
|
|
12
12
|
"!lib/*.doc-only.*",
|
|
13
|
+
"llm",
|
|
13
14
|
"svg",
|
|
14
15
|
"LICENSE.txt"
|
|
15
16
|
],
|
|
@@ -30,10 +31,10 @@
|
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@rescui/babel-plugin-postcss-modules": "0.0.5",
|
|
33
|
-
"@rescui/colors": "0.3.1-RUI-296-Build-docs-md-files-for-each-docs-section-
|
|
34
|
+
"@rescui/colors": "0.3.1-RUI-296-Build-docs-md-files-for-each-docs-section-b138dd5bf.54+b138dd5bf",
|
|
34
35
|
"@rescui/postcss-preset-library": "0.2.2",
|
|
35
36
|
"@rescui/scripts": "0.5.2",
|
|
36
|
-
"@rescui/typography": "0.27.1-RUI-296-Build-docs-md-files-for-each-docs-section-
|
|
37
|
+
"@rescui/typography": "0.27.1-RUI-296-Build-docs-md-files-for-each-docs-section-b138dd5bf.19+b138dd5bf",
|
|
37
38
|
"postcss-modules": "^4.0.0",
|
|
38
39
|
"postsvg": "2.2.7",
|
|
39
40
|
"react-copy-to-clipboard": "^5.0.3"
|
|
@@ -44,5 +45,5 @@
|
|
|
44
45
|
"svg-to-jsx": "rescui-scripts svg-to-jsx --src=svg --out=lib --template=template.js --ts-template=ts-template.js --typings-dir=lib"
|
|
45
46
|
},
|
|
46
47
|
"nx": {},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "b138dd5bf3dbdca6c21fa339dd567517d5c5d1d9"
|
|
48
49
|
}
|