@umbraco-ui/uui-color-swatches 1.5.0 → 1.6.0-rc.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.
Files changed (2) hide show
  1. package/lib/index.js +1 -2
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -103,7 +103,6 @@ let UUIColorSwatchesElement = class extends LabelMixin("label", LitElement) {
103
103
  if (!this.swatches || this.swatches.length === 0)
104
104
  return;
105
105
  this.swatches.forEach((swatch) => {
106
- var _a;
107
106
  swatch.setAttribute("aria-checked", "false");
108
107
  swatch.setAttribute("role", "radio");
109
108
  if (this.disabled) {
@@ -111,7 +110,7 @@ let UUIColorSwatchesElement = class extends LabelMixin("label", LitElement) {
111
110
  } else {
112
111
  swatch.setAttribute("selectable", "selectable");
113
112
  }
114
- if (this.value !== "" && ((_a = swatch.color) == null ? void 0 : _a.isEqual(this.value))) {
113
+ if (this.value !== "" && swatch.value === this.value) {
115
114
  swatch.selected = true;
116
115
  swatch.setAttribute("aria-checked", "true");
117
116
  this._selectedElement = swatch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-color-swatches",
3
- "version": "1.5.0",
3
+ "version": "1.6.0-rc.0",
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",
34
- "@umbraco-ui/uui-color-swatch": "1.5.0"
33
+ "@umbraco-ui/uui-base": "1.6.0-rc.0",
34
+ "@umbraco-ui/uui-color-swatch": "1.6.0-rc.0"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "homepage": "https://uui.umbraco.com/?path=/story/uui-color-swatches",
45
- "gitHead": "80279d910777f210227a4ed95762bc91d005a273"
45
+ "gitHead": "04709c32cb81b058bdf7976b69533e5b793c49ab"
46
46
  }