@uploadcare/file-uploader 1.6.0 → 1.7.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.
@@ -348,6 +348,8 @@ uc-editor-operation-control {
348
348
  --down-opacity: 1;
349
349
  --down-filter: 0.6;
350
350
  --down-background: var(--uc-secondary);
351
+
352
+ border-radius: var(--uc-radius);
351
353
  }
352
354
 
353
355
  uc-editor-button-control > button,
@@ -384,11 +386,11 @@ uc-editor-button-control.uc-active,
384
386
  uc-editor-operation-control.uc-active,
385
387
  uc-editor-crop-button-control.uc-active,
386
388
  uc-editor-filter-control.uc-active {
387
- --idle-color-rgb: var(--uc-primary);
388
- --idle-background: var(--uc-primary-transparent);
389
- --idle-opacity: 0.9;
390
- --hover-color-rgb: var(--uc-primary);
391
- --hover-background: var(--uc-primary-transparent);
389
+ --idle-color-rgb: var(--uc-primary-foreground);
390
+ --idle-background: var(--uc-primary);
391
+ --idle-opacity: 1;
392
+ --hover-color-rgb: var(--uc-primary-foreground);
393
+ --hover-background: var(--uc-primary);
392
394
  --hover-opacity: 1;
393
395
  }
394
396
 
@@ -407,6 +409,17 @@ uc-editor-filter-control.uc-not_active {
407
409
  --idle-color-rgb: var(--uc-secondary-foreground);
408
410
  }
409
411
 
412
+ :where(.uc-contrast) uc-editor-button-control.uc-not_active,
413
+ :where(.uc-contrast) uc-editor-operation-control.uc-not_active,
414
+ :where(.uc-contrast) uc-editor-crop-button-control.uc-not_active,
415
+ :where(.uc-contrast) uc-editor-filter-control.uc-not_active {
416
+ --idle-background: transparent;
417
+ --hover-background: var(--uc-secondary);
418
+
419
+ outline: 1px solid var(--uc-border);
420
+ outline-offset: -1px;
421
+ }
422
+
410
423
  uc-editor-button-control > button::before,
411
424
  uc-editor-operation-control > button::before,
412
425
  uc-editor-crop-button-control > button::before,
@@ -973,6 +986,10 @@ uc-btn-ui.uc-secondary > button {
973
986
  --active-background: transparent;
974
987
  }
975
988
 
989
+ :where(.uc-contrast) uc-btn-ui.uc-secondary > button {
990
+ border: 1px solid var(--uc-border);
991
+ }
992
+
976
993
  uc-btn-ui.uc-secondary-icon > button {
977
994
  --idle-color-rgb: var(--uc-secondary-foreground);
978
995
  --idle-brightness: 1;
@@ -1036,6 +1053,13 @@ uc-btn-ui.uc-default > button {
1036
1053
  --active-background: var(--uc-primary-transparent);
1037
1054
  }
1038
1055
 
1056
+ :where(.uc-contrast) uc-btn-ui.uc-default > button {
1057
+ --idle-background: transparent;
1058
+ --hover-background: var(--uc-secondary);
1059
+ --active-background: var(--uc-foreground);
1060
+ --active-color-rgb: var(--uc-background);
1061
+ }
1062
+
1039
1063
  uc-line-loader-ui {
1040
1064
  position: absolute;
1041
1065
  top: 0px;
@@ -1107,16 +1131,16 @@ uc-slider-ui .uc-steps {
1107
1131
  uc-slider-ui .uc-border-step {
1108
1132
  width: 0px;
1109
1133
  height: 10px;
1110
- border-right: 1px solid var(--l-color);
1111
- opacity: 0.6;
1134
+ border-right: 1px solid var(--uc-foreground);
1135
+ opacity: 1;
1112
1136
  transition: border-color var(--transition-duration-2);
1113
1137
  }
1114
1138
 
1115
1139
  uc-slider-ui .uc-minor-step {
1116
1140
  width: 0px;
1117
1141
  height: 4px;
1118
- border-right: 1px solid var(--l-color);
1119
- opacity: 0.2;
1142
+ border-right: 1px solid var(--uc-foreground);
1143
+ opacity: 0.6;
1120
1144
  transition: border-color var(--transition-duration-2);
1121
1145
  }
1122
1146
 
@@ -114,7 +114,7 @@ export class SliderUi extends Block {
114
114
  if (value === this._zero) {
115
115
  this._zeroDotEl.style.opacity = '0';
116
116
  } else {
117
- this._zeroDotEl.style.opacity = '0.2';
117
+ this._zeroDotEl.style.opacity = '1';
118
118
  }
119
119
  let { width } = this.getBoundingClientRect();
120
120
  let slope = 100 / (this.$.max - this.$.min);
@@ -32,18 +32,19 @@
32
32
  background: var(--uc-background);
33
33
  }
34
34
 
35
- :where([uc-drop-area])[with-icon]
36
- > .uc-content-wrapper:is([drag-state='active'], [drag-state='near'], [drag-state='over'])
37
- :is(.uc-text, .uc-icon-container) {
38
- color: var(--uc-primary);
39
- }
40
-
41
35
  :where([uc-drop-area]):is([drag-state='active'], [drag-state='near'], [drag-state='over'], :hover) {
42
- color: var(--uc-primary);
43
36
  background: var(--uc-primary-transparent);
44
37
  border-color: var(--uc-primary-transparent);
45
38
  }
46
39
 
40
+ :where(.uc-contrast) :where([uc-drop-area]):is([drag-state='active'], [drag-state='near'], [drag-state='over'], :hover) {
41
+ color: var(--uc-foreground);
42
+ background: transparent;
43
+ border-color: var(--uc-foreground);
44
+ border-width: 2px;
45
+ border-style: solid;
46
+ }
47
+
47
48
  :where([uc-drop-area]):is([drag-state='active'], [drag-state='near']) {
48
49
  opacity: 1;
49
50
  }
@@ -95,15 +96,19 @@
95
96
  transform: translateY(48px);
96
97
  }
97
98
 
98
- :where([uc-drop-area])[with-icon]:hover .uc-icon-container,
99
- :where([uc-drop-area])[with-icon]:hover .uc-text {
100
- color: var(--uc-primary);
99
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]:hover .uc-icon-container,
100
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]:hover .uc-text {
101
+ color: var(--uc-foreground);
101
102
  }
102
103
 
103
104
  :where([uc-drop-area])[with-icon]:hover .uc-icon-container {
104
105
  background-color: var(--uc-primary-transparent);
105
106
  }
106
107
 
108
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]:hover .uc-icon-container {
109
+ background-color: var(--uc-muted);
110
+ }
111
+
107
112
  :where([uc-drop-area])[with-icon]
108
113
  > .uc-content-wrapper:is([drag-state='active'], [drag-state='near'], [drag-state='over'])
109
114
  .uc-icon-container {
@@ -114,7 +119,13 @@
114
119
  :where([uc-drop-area])[with-icon]
115
120
  > .uc-content-wrapper:is([drag-state='active'], [drag-state='near'], [drag-state='over'])
116
121
  .uc-text {
117
- color: var(--uc-primary);
122
+ color: var(--uc-foreground);
123
+ }
124
+
125
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]
126
+ > .uc-content-wrapper:is([drag-state='active'], [drag-state='near'], [drag-state='over'])
127
+ .uc-text {
128
+ color: var(--uc-foreground);
118
129
  }
119
130
 
120
131
  :where([uc-drop-area])[with-icon]
@@ -127,11 +127,15 @@ uc-file-item .uc-badge uc-icon svg {
127
127
  }
128
128
 
129
129
  uc-file-item .uc-progress-bar {
130
- opacity: 0.5;
130
+ opacity: 0.7;
131
131
  top: calc(100% - 2px);
132
132
  height: 2px;
133
133
  }
134
134
 
135
+ :where(.uc-contrast) uc-file-item .uc-progress-bar {
136
+ opacity: 1;
137
+ }
138
+
135
139
  uc-file-item .uc-file-actions {
136
140
  display: flex;
137
141
  gap: 2px;
@@ -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: 54 112 253;
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: 59% 0.22 264; /* Quick customization: change this value to your brand color */
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) / 10%);
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(55% 0 0);
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: 59% 0.22 300;
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: 59% 0.22 21;
241
- --uc-primary-oklch-dark: 69% 0.1768 21;
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: 59% 0.1724 51.88;
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: 59% 0.1724 130;
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: 59% 0.1523 174;
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
@@ -1,4 +1,4 @@
1
1
  /** Do not edit this file manually. It's generated during build process. */
2
2
  export const PACKAGE_NAME: "blocks";
3
- export const PACKAGE_VERSION: "1.6.0";
3
+ export const PACKAGE_VERSION: "1.7.0";
4
4
  //# sourceMappingURL=env.d.ts.map
package/env.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Do not edit this file manually. It's generated during build process. */
2
2
  export const PACKAGE_NAME = 'blocks';
3
- export const PACKAGE_VERSION = '1.6.0';
3
+ export const PACKAGE_VERSION = '1.7.0';
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.6.0";
546
+ export const PACKAGE_VERSION: "1.7.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.6.0`;
977
+ export const PACKAGE_VERSION = `1.7.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.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",
@@ -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: '';