@opensumi/ide-components 3.8.3-next-1741940731.0 → 3.8.3-next-1741942697.0

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.
@@ -133,3 +133,40 @@
133
133
  clear: both;
134
134
  }
135
135
  }
136
+
137
+ .box(@position: absolute) {
138
+ position: @position;
139
+ top: 0;
140
+ right: 0;
141
+ bottom: 0;
142
+ left: 0;
143
+ }
144
+
145
+ .modal-mask() {
146
+ pointer-events: none;
147
+
148
+ &.@{prefix}-zoom-enter,
149
+ &.@{prefix}-zoom-appear {
150
+ transform: none; // reset scale avoid mousePosition bug
151
+ opacity: 0;
152
+ animation-duration: @animation-duration-slow;
153
+ user-select: none; // https://github.com/ant-design/ant-design/issues/11777
154
+ }
155
+
156
+ &-mask {
157
+ .box(fixed);
158
+ z-index: @zindex-modal-mask;
159
+ height: 100%;
160
+ background-color: @modal-mask-bg;
161
+
162
+ &-hidden {
163
+ display: none;
164
+ }
165
+ }
166
+
167
+ &-wrap {
168
+ .box(fixed);
169
+ overflow: auto;
170
+ outline: 0;
171
+ }
172
+ }
@@ -59,6 +59,7 @@
59
59
  @zindex-dropdown: 1050;
60
60
  @zindex-picker: 1050;
61
61
  @zindex-tooltip: 1060;
62
+ @zindex-image: 1080;
62
63
 
63
64
  // Shadow
64
65
  @shadow-color: rgba(0, 0, 0, 0.15);
@@ -112,6 +113,14 @@
112
113
  @padding-md: 16px; // small containers and buttons
113
114
  @padding-sm: 12px; // Form controls and items
114
115
  @padding-xs: 8px; // small items
116
+ @padding-xss: 4px; // more small
117
+
118
+ // vertical margins
119
+ @margin-lg: 24px; // containers
120
+ @margin-md: 16px; // small containers and buttons
121
+ @margin-sm: 12px; // Form controls and items
122
+ @margin-xs: 8px; // small items
123
+ @margin-xss: 4px; // more small
115
124
 
116
125
  // vertical padding for all form controls
117
126
  @control-padding-horizontal: @padding-sm;
@@ -205,3 +214,13 @@
205
214
  // Checkbox
206
215
  @checkbox-default-size: 12px;
207
216
  @checkbox-large-size: 14px;
217
+
218
+ // Image
219
+ @image-size-base: 48px;
220
+ @image-font-size-base: 24px;
221
+ @image-bg: #f5f5f5;
222
+ @image-color: #fff;
223
+ @image-mask-font-size: 16px;
224
+ @image-preview-operation-size: 18px;
225
+ @image-preview-operation-color: @text-color-dark;
226
+ @image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "3.8.3-next-1741940731.0",
3
+ "version": "3.8.3-next-1741942697.0",
4
4
  "description": "@opensumi/ide-components",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@ant-design/icons": "^4.6.4",
19
- "@opensumi/ide-core-common": "3.8.3-next-1741940731.0",
20
- "@opensumi/ide-utils": "3.8.3-next-1741940731.0",
19
+ "@opensumi/ide-core-common": "3.8.3-next-1741942697.0",
20
+ "@opensumi/ide-utils": "3.8.3-next-1741942697.0",
21
21
  "@opensumi/react-custom-scrollbars-2": "^4.3.4",
22
22
  "@rc-component/mini-decimal": "^1.0.1",
23
23
  "fuzzy": "^0.1.3",
@@ -26,6 +26,7 @@
26
26
  "raf": "^3.4.1",
27
27
  "rc-dialog": "^9.6.0",
28
28
  "rc-dropdown": "~2.4.1",
29
+ "rc-image": "^7.11.0",
29
30
  "rc-input-number": "^9.3.0",
30
31
  "rc-menu": "^9.16.0",
31
32
  "rc-notification": "~3.3.1",
@@ -38,10 +39,10 @@
38
39
  "react-window": "^1.8.5"
39
40
  },
40
41
  "devDependencies": {
41
- "@opensumi/ide-dev-tool": "3.8.3-next-1741940731.0",
42
+ "@opensumi/ide-dev-tool": "3.8.3-next-1741942697.0",
42
43
  "@types/marked": "^4.0.7",
43
44
  "@types/react-window": "^1.8.5",
44
45
  "prop-types": "^15.8.1"
45
46
  },
46
- "gitHead": "a17ff03e577c21558da9cb33b40c57cebf97ef64"
47
+ "gitHead": "3111e67ecae517aa86590e8cb6c58c549e090fff"
47
48
  }