@umbraco-ui/uui-color-picker 1.13.0 → 1.14.0-rc.1
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.js +7 -6
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -42,7 +42,7 @@ let UUIColorPickerElement = class extends LabelMixin("label", LitElement) {
|
|
|
42
42
|
this.hue = 0;
|
|
43
43
|
this.saturation = 0;
|
|
44
44
|
this.lightness = 0;
|
|
45
|
-
this.alpha =
|
|
45
|
+
this.alpha = 100;
|
|
46
46
|
this._colord = w("hsl(0, 0%, 0%)");
|
|
47
47
|
this.format = "hex";
|
|
48
48
|
this.name = "";
|
|
@@ -218,7 +218,7 @@ let UUIColorPickerElement = class extends LabelMixin("label", LitElement) {
|
|
|
218
218
|
setColor(colorString) {
|
|
219
219
|
if (colorString === this.value) return;
|
|
220
220
|
if (!colorString) {
|
|
221
|
-
this.alpha =
|
|
221
|
+
this.alpha = 100;
|
|
222
222
|
this.inputValue = "";
|
|
223
223
|
this._value = colorString;
|
|
224
224
|
this.dispatchEvent(
|
|
@@ -405,6 +405,7 @@ UUIColorPickerElement.styles = [
|
|
|
405
405
|
--uui-look-outline-border: #ddd;
|
|
406
406
|
--uui-look-outline-border-hover: #aaa;
|
|
407
407
|
font-size: 0.8rem;
|
|
408
|
+
color: var(--uui-color-text,#060606);
|
|
408
409
|
display: block;
|
|
409
410
|
width: var(--uui-color-picker-width, 280px);
|
|
410
411
|
}
|
|
@@ -416,9 +417,9 @@ UUIColorPickerElement.styles = [
|
|
|
416
417
|
}
|
|
417
418
|
.color-picker {
|
|
418
419
|
width: 100%;
|
|
419
|
-
background-color:
|
|
420
|
+
background-color: var(--uui-color-surface,#fff);
|
|
420
421
|
user-select: none;
|
|
421
|
-
border: solid 1px
|
|
422
|
+
border: solid 1px var(--uui-color-border,#d8d7d9);
|
|
422
423
|
}
|
|
423
424
|
.color-picker__user-input {
|
|
424
425
|
display: flex;
|
|
@@ -460,7 +461,6 @@ UUIColorPickerElement.styles = [
|
|
|
460
461
|
width: 100%;
|
|
461
462
|
height: 100%;
|
|
462
463
|
border-radius: inherit;
|
|
463
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
464
464
|
/* We use a custom property in lieu of currentColor because of https://bugs.webkit.org/show_bug.cgi?id=216780 */
|
|
465
465
|
background-color: var(--preview-color);
|
|
466
466
|
}
|
|
@@ -470,6 +470,7 @@ UUIColorPickerElement.styles = [
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.color-picker__transparent-bg {
|
|
473
|
+
border: 1px solid var(--uui-color-border,#d8d7d9);
|
|
473
474
|
background-image: linear-gradient(
|
|
474
475
|
45deg,
|
|
475
476
|
var(--uui-palette-grey,#c4c4c4) 25%,
|
|
@@ -524,7 +525,7 @@ UUIColorPickerElement.styles = [
|
|
|
524
525
|
}
|
|
525
526
|
|
|
526
527
|
uui-color-swatches {
|
|
527
|
-
border-top: solid 1px
|
|
528
|
+
border-top: solid 1px var(--uui-color-border,#d8d7d9);
|
|
528
529
|
padding: 0.75rem;
|
|
529
530
|
}
|
|
530
531
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-color-picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.
|
|
34
|
-
"@umbraco-ui/uui-popover-container": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.14.0-rc.1",
|
|
34
|
+
"@umbraco-ui/uui-popover-container": "1.14.0-rc.1",
|
|
35
35
|
"colord": "^2.9.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-color-picker",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c3c2fc0f8a68b897b5c88e0c3e09f549150f1034"
|
|
47
47
|
}
|