@uploadcare/file-uploader 1.6.0 → 1.8.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.
- package/README.md +37 -62
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +16 -11
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.js +42 -34
- package/blocks/CloudImageEditor/src/css/common.css +33 -9
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +1 -1
- package/blocks/CloudImageEditor/src/types.d.ts +56 -0
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/types.js +11 -0
- package/blocks/DropArea/drop-area.css +22 -11
- package/blocks/FileItem/file-item.css +5 -1
- package/blocks/Modal/modal.css +4 -0
- package/blocks/SourceBtn/source-btn.css +9 -1
- package/blocks/themes/uc-basic/common.css +4 -0
- package/blocks/themes/uc-basic/theme.css +27 -10
- package/env.d.ts +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +1 -1
- package/index.ssr.js +1 -1
- package/package.json +2 -1
- package/solutions/file-uploader/minimal/index.css +4 -0
- package/web/file-uploader.iife.min.js +2 -2
- package/web/file-uploader.min.js +1 -1
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +4 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +1 -1
- package/web/uc-file-uploader-minimal.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.js +1 -1
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +1 -1
- package/web/uc-img.min.js +1 -1
package/blocks/Modal/modal.css
CHANGED
|
@@ -85,6 +85,10 @@
|
|
|
85
85
|
opacity 0.4s ease;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
:where(.uc-contrast) :where([uc-modal]) > dialog {
|
|
89
|
+
outline: 1px solid var(--uc-border);
|
|
90
|
+
}
|
|
91
|
+
|
|
88
92
|
@media only screen and (max-width: 430px), only screen and (max-height: 600px) {
|
|
89
93
|
:where([uc-modal]) > dialog > .uc-content {
|
|
90
94
|
height: var(--modal-max-content-height);
|
|
@@ -20,10 +20,14 @@ uc-source-btn:last-child > button {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
uc-source-btn > button:hover {
|
|
23
|
-
color: var(--uc-primary);
|
|
24
23
|
background-color: var(--uc-primary-transparent);
|
|
25
24
|
}
|
|
26
25
|
|
|
26
|
+
:where(.uc-contrast) uc-source-btn > button:hover {
|
|
27
|
+
background-color: var(--uc-secondary);
|
|
28
|
+
color: var(--uc-foreground);
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
uc-source-btn uc-icon {
|
|
28
32
|
display: inline-flex;
|
|
29
33
|
flex-grow: 1;
|
|
@@ -33,6 +37,10 @@ uc-source-btn uc-icon {
|
|
|
33
37
|
opacity: 0.8;
|
|
34
38
|
}
|
|
35
39
|
|
|
40
|
+
:where(.uc-contrast) uc-source-btn uc-icon {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
uc-source-btn .uc-txt {
|
|
37
45
|
display: flex;
|
|
38
46
|
align-items: center;
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
background-color: var(--uc-secondary-hover);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
:where([uc-wgt-common].uc-contrast) button.uc-secondary-btn {
|
|
60
|
+
border: 1px solid var(--uc-border);
|
|
61
|
+
}
|
|
62
|
+
|
|
59
63
|
:where([uc-wgt-common]) button.uc-mini-btn {
|
|
60
64
|
height: var(--uc-button-size);
|
|
61
65
|
padding: 0;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@supports not (color: oklch(0% 0 0)) {
|
|
42
42
|
:where([uc-wgt-common]) {
|
|
43
43
|
/* Light colors RGB fallback */
|
|
44
|
-
--uc-primary-rgb-light:
|
|
44
|
+
--uc-primary-rgb-light: 23 75 215;
|
|
45
45
|
--uc-primary-light: rgb(var(--uc-primary-rgb-light));
|
|
46
46
|
--uc-primary-hover-light: rgb(var(--uc-primary-rgb-light) / 90%);
|
|
47
47
|
--uc-primary-transparent-light: rgb(var(--uc-primary-rgb-light) / 10%);
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
@supports (color: oklch(0% 0 0)) {
|
|
88
88
|
:where([uc-wgt-common]) {
|
|
89
89
|
/* Light colors OKLCH */
|
|
90
|
-
--uc-primary-oklch-light:
|
|
90
|
+
--uc-primary-oklch-light: 47% 0.22 264; /* Quick customization: change this value to your brand color */
|
|
91
91
|
--uc-primary-light: oklch(var(--uc-primary-oklch-light));
|
|
92
92
|
--uc-primary-hover-light: oklch(var(--uc-primary-oklch-light) / 90%);
|
|
93
|
-
--uc-primary-transparent-light: oklch(var(--uc-primary-oklch-light) /
|
|
93
|
+
--uc-primary-transparent-light: oklch(var(--uc-primary-oklch-light) / 7%);
|
|
94
94
|
--uc-background-light: oklch(100% 0 0);
|
|
95
95
|
--uc-foreground-light: oklch(21% 0 0);
|
|
96
96
|
--uc-primary-foreground-light: oklch(100% 0 0);
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
--uc-secondary-hover-light: oklch(21% 0 0 / 0.08);
|
|
99
99
|
--uc-secondary-foreground-light: oklch(21% 0 0);
|
|
100
100
|
--uc-muted-light: oklch(97% 0 0);
|
|
101
|
-
--uc-muted-foreground-light: oklch(
|
|
101
|
+
--uc-muted-foreground-light: oklch(40% 0 0);
|
|
102
102
|
--uc-destructive-light: oklch(59% 0.235 28.5 / 0.05);
|
|
103
103
|
--uc-destructive-foreground-light: oklch(59% 0.235 28.5);
|
|
104
104
|
--uc-border-light: oklch(92% 0 0);
|
|
@@ -232,27 +232,27 @@
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
:where(.uc-purple) {
|
|
235
|
-
--uc-primary-oklch-light:
|
|
235
|
+
--uc-primary-oklch-light: 47% 0.22 300;
|
|
236
236
|
--uc-primary-oklch-dark: 69% 0.1768 300;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
:where(.uc-red) {
|
|
240
|
-
--uc-primary-oklch-light:
|
|
241
|
-
--uc-primary-oklch-dark:
|
|
240
|
+
--uc-primary-oklch-light: 47% 0.21 21;
|
|
241
|
+
--uc-primary-oklch-dark: 71% 0.1768 21;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
:where(.uc-orange) {
|
|
245
|
-
--uc-primary-oklch-light:
|
|
245
|
+
--uc-primary-oklch-light: 47% 0.1376 51.88;
|
|
246
246
|
--uc-primary-oklch-dark: 69% 0.1768 51.88;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
:where(.uc-green) {
|
|
250
|
-
--uc-primary-oklch-light:
|
|
250
|
+
--uc-primary-oklch-light: 45% 0.14 130;
|
|
251
251
|
--uc-primary-oklch-dark: 69% 0.1768 130;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
:where(.uc-turquoise) {
|
|
255
|
-
--uc-primary-oklch-light:
|
|
255
|
+
--uc-primary-oklch-light: 45% 0.0854 174;
|
|
256
256
|
--uc-primary-oklch-dark: 69% 0.1768 174;
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -260,3 +260,20 @@
|
|
|
260
260
|
--uc-primary-oklch-light: 10% 0 0;
|
|
261
261
|
--uc-primary-oklch-dark: 97% 0 0;
|
|
262
262
|
}
|
|
263
|
+
|
|
264
|
+
:where(.uc-contrast) {
|
|
265
|
+
--uc-border-light: oklch(50% 0 0);
|
|
266
|
+
--uc-border-dark: oklch(50% 0 0);
|
|
267
|
+
|
|
268
|
+
--uc-muted-light: oklch(98% 0 0);
|
|
269
|
+
--uc-muted-dark: oklch(16% 0 0);
|
|
270
|
+
|
|
271
|
+
--uc-muted-foreground-light: oklch(20% 0 0);
|
|
272
|
+
--uc-muted-foreground-dark: oklch(80% 0 0);
|
|
273
|
+
|
|
274
|
+
--uc-background-light: oklch(100% 0 0);
|
|
275
|
+
--uc-foreground-light: oklch(0% 0 0);
|
|
276
|
+
|
|
277
|
+
--uc-background-dark: oklch(10% 0 0);
|
|
278
|
+
--uc-foreground-dark: oklch(100% 0 0);
|
|
279
|
+
}
|
package/env.d.ts
CHANGED
package/env.js
CHANGED
package/index.ssr.d.ts
CHANGED
|
@@ -543,7 +543,7 @@ export const Modal: {
|
|
|
543
543
|
bindAttributes: () => void;
|
|
544
544
|
};
|
|
545
545
|
export const PACKAGE_NAME: "blocks";
|
|
546
|
-
export const PACKAGE_VERSION: "1.
|
|
546
|
+
export const PACKAGE_VERSION: "1.8.0";
|
|
547
547
|
export const PresenceToggle: {
|
|
548
548
|
new (): {};
|
|
549
549
|
template: string;
|
package/index.ssr.js
CHANGED
|
@@ -974,7 +974,7 @@ export const Modal = class {
|
|
|
974
974
|
static bindAttributes = () => {};
|
|
975
975
|
};
|
|
976
976
|
export const PACKAGE_NAME = `blocks`;
|
|
977
|
-
export const PACKAGE_VERSION = `1.
|
|
977
|
+
export const PACKAGE_VERSION = `1.8.0`;
|
|
978
978
|
export const PresenceToggle = class {
|
|
979
979
|
static template = `<slot></slot> `;
|
|
980
980
|
static reg = () => {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"./locales/*": "./locales/*"
|
|
52
52
|
},
|
|
53
53
|
"repository": "https://github.com/uploadcare/file-uploader/",
|
|
54
|
+
"homepage": "https://uploadcare.com/",
|
|
54
55
|
"files": [
|
|
55
56
|
"{abstract,blocks,solutions,web,utils,types,locales}/**/*.{js,css,d.ts,d.ts.map}",
|
|
56
57
|
"index.{js,d.ts,d.ts.map}",
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
border-radius: calc(var(--uc-radius) * 1.75);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
:where(.uc-contrast) :where([uc-file-uploader-minimal] uc-drop-area) {
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
/* hack to make transparent :hover colors work in any conditions */
|
|
51
55
|
:where([uc-file-uploader-minimal] uc-drop-area)::before {
|
|
52
56
|
content: '';
|