@umbraco-ui/uui-color-swatch 1.5.0-rc.0 → 1.5.0-rc.2

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.
@@ -47,11 +47,6 @@
47
47
  }
48
48
  ],
49
49
  "properties": [
50
- {
51
- "name": "styles",
52
- "type": "CSSResult[]",
53
- "default": "[null]"
54
- },
55
50
  {
56
51
  "name": "value",
57
52
  "attribute": "value",
@@ -82,6 +77,11 @@
82
77
  "description": "Returns true if the color brightness is >= 0.5",
83
78
  "type": "boolean"
84
79
  },
80
+ {
81
+ "name": "styles",
82
+ "type": "CSSResult[]",
83
+ "default": "[null]"
84
+ },
85
85
  {
86
86
  "name": "label",
87
87
  "attribute": "label",
package/lib/index.js CHANGED
@@ -161,9 +161,11 @@ UUIColorSwatchElement.styles = [
161
161
 
162
162
  :host([disabled]) {
163
163
  cursor: not-allowed;
164
+ opacity: 0.5;
164
165
  }
165
166
 
166
167
  #swatch {
168
+ cursor: inherit;
167
169
  outline: none;
168
170
  background: none;
169
171
  border: none;
@@ -10,7 +10,6 @@ declare const UUIColorSwatchElement_base: (new (...args: any[]) => import("@umbr
10
10
  * @slot label - Default slot for the label.
11
11
  */
12
12
  export declare class UUIColorSwatchElement extends UUIColorSwatchElement_base {
13
- static styles: import("lit").CSSResult[];
14
13
  private _value;
15
14
  /**
16
15
  * Value of the swatch. Should be a valid hex, hexa, rgb, rgba, hsl or hsla string. Should fulfill this [css spec](https://www.w3.org/TR/css-color-4/#color-type). If not provided element will look at its text content.
@@ -54,6 +53,7 @@ export declare class UUIColorSwatchElement extends UUIColorSwatchElement_base {
54
53
  willUpdate(changedProperties: Map<string, any>): void;
55
54
  render(): import("lit-html").TemplateResult<1>;
56
55
  private _renderWithLabel;
56
+ static styles: import("lit").CSSResult[];
57
57
  }
58
58
  declare global {
59
59
  interface HTMLElementTagNameMap {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-color-swatch",
3
- "version": "1.5.0-rc.0",
3
+ "version": "1.5.0-rc.2",
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.5.0-rc.0",
34
- "@umbraco-ui/uui-icon-registry-essential": "1.5.0-rc.0",
33
+ "@umbraco-ui/uui-base": "1.5.0-rc.2",
34
+ "@umbraco-ui/uui-icon-registry-essential": "1.5.0-rc.2",
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-swatch",
46
- "gitHead": "73cbc1444590282b7fb63a18d5639628ba18f0a3"
46
+ "gitHead": "573af25cbb43f673731b87dd8e23dbe632bfc348"
47
47
  }