@umbraco-ui/uui-card 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/lib/index.js +14 -38
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -70,8 +70,18 @@ UUICardElement.styles = [
70
70
  outline-offset: var(--uui-card-border-width);
71
71
  }
72
72
 
73
- :host([error]) {
74
- border: var(--uui-card-border-width) solid var(--uui-look-danger-border,#d42054);
73
+ :host([error])::before {
74
+ content: '';
75
+ position: absolute;
76
+ pointer-events: none;
77
+ inset: 0;
78
+ width: 100%;
79
+ height: 100%;
80
+ z-index: 1;
81
+ box-sizing: border-box;
82
+ border: var(--uui-card-border-width) solid
83
+ var(--uui-look-danger-border, #d42054);
84
+ border-radius: var(--uui-border-radius,3px);
75
85
  }
76
86
 
77
87
  :host([selectable]) {
@@ -88,8 +98,8 @@ UUICardElement.styles = [
88
98
  position: absolute;
89
99
  pointer-events: none;
90
100
  inset: calc(var(--uui-card-border-width) * -1);
91
- width: calc(100% + var(--uui-card-border-width) * 2);
92
- height: calc(100% + var(--uui-card-border-width) * 2);
101
+ width: calc(100% + calc(var(--uui-card-border-width) * 2));
102
+ height: calc(100% + calc(var(--uui-card-border-width) * 2));
93
103
  box-sizing: border-box;
94
104
  border: var(--uui-card-border-width) solid var(--uui-interface-select,#3544b1);
95
105
  border-radius: calc(
@@ -108,40 +118,6 @@ UUICardElement.styles = [
108
118
  opacity: 1;
109
119
  }
110
120
 
111
- :host([selectable]:not([selected]):hover) #select-border::after {
112
- animation: not-selected--hover 1.2s infinite;
113
- }
114
- @keyframes not-selected--hover {
115
- 0%,
116
- 100% {
117
- opacity: 0.66;
118
- }
119
- 50% {
120
- opacity: 1;
121
- }
122
- }
123
-
124
- :host([selectable][selected]:hover) #select-border::after {
125
- animation: selected--hover 1.4s infinite;
126
- }
127
- @keyframes selected--hover {
128
- 0%,
129
- 100% {
130
- opacity: 1;
131
- }
132
- 50% {
133
- opacity: 0.66;
134
- }
135
- }
136
- :host([selectable]) #open-part:hover + #select-border::after {
137
- animation: none;
138
- }
139
- :host([error])::after {
140
- inset: calc(var(--uui-card-border-width) * -2);
141
- width: calc(100% + calc(var(--uui-card-border-width) * 4));
142
- height: calc(100% + calc(var(--uui-card-border-width) * 4));
143
- }
144
-
145
121
  :host([select-only]) *,
146
122
  :host([select-only]) ::slotted(*) {
147
123
  pointer-events: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-card",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,7 +30,7 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "0.2.0"
33
+ "@umbraco-ui/uui-base": "0.2.1"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
@@ -41,5 +41,5 @@
41
41
  "access": "public"
42
42
  },
43
43
  "homepage": "https://uui.umbraco.com/?path=/story/uui-card",
44
- "gitHead": "5494b55e03c9fb3ba8f160e693d3ce59c02d21cd"
44
+ "gitHead": "cb61546f85d6c2f122fa8c130409507e8def4bd5"
45
45
  }