@umbraco-ui/uui-checkbox 1.8.0 → 1.9.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.
- package/custom-elements.json +13 -0
- package/lib/index.js +7 -3
- package/package.json +5 -5
package/custom-elements.json
CHANGED
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
"type": "boolean",
|
|
25
25
|
"default": "\"false\""
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
"name": "readonly",
|
|
29
|
+
"description": "Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.",
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": "\"false\""
|
|
32
|
+
},
|
|
27
33
|
{
|
|
28
34
|
"name": "name",
|
|
29
35
|
"description": "This is a name property of the component.",
|
|
@@ -94,6 +100,13 @@
|
|
|
94
100
|
"type": "boolean",
|
|
95
101
|
"default": "\"false\""
|
|
96
102
|
},
|
|
103
|
+
{
|
|
104
|
+
"name": "readonly",
|
|
105
|
+
"attribute": "readonly",
|
|
106
|
+
"description": "Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.",
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": "\"false\""
|
|
109
|
+
},
|
|
97
110
|
{
|
|
98
111
|
"name": "styles",
|
|
99
112
|
"type": "CSSResult[]",
|
package/lib/index.js
CHANGED
|
@@ -11,8 +11,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
11
11
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
12
|
if (decorator = decorators[i])
|
|
13
13
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
-
if (kind && result)
|
|
15
|
-
__defProp(target, key, result);
|
|
14
|
+
if (kind && result) __defProp(target, key, result);
|
|
16
15
|
return result;
|
|
17
16
|
};
|
|
18
17
|
let UUICheckboxElement = class extends UUIBooleanInputElement {
|
|
@@ -85,9 +84,11 @@ UUICheckboxElement.styles = [
|
|
|
85
84
|
input:checked:not([disabled]) + #ticker {
|
|
86
85
|
border-color: var(--uui-color-selected,#3544b1);
|
|
87
86
|
}
|
|
87
|
+
|
|
88
88
|
label:hover input:checked:not([disabled]) + #ticker {
|
|
89
89
|
border-color: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
|
|
90
90
|
}
|
|
91
|
+
|
|
91
92
|
label:focus input:checked + #ticker {
|
|
92
93
|
border-color: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
|
|
93
94
|
}
|
|
@@ -143,7 +144,10 @@ UUICheckboxElement.styles = [
|
|
|
143
144
|
var(--uui-color-focus,#3879ff);
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
:host(:not([disabled]))
|
|
147
|
+
:host(:not([disabled], [readonly]))
|
|
148
|
+
label:active
|
|
149
|
+
input:checked
|
|
150
|
+
+ #ticker::before {
|
|
147
151
|
/** Stretch when mouse down */
|
|
148
152
|
transform: scale(0.9);
|
|
149
153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-checkbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"custom-elements.json"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@umbraco-ui/uui-base": "1.
|
|
37
|
-
"@umbraco-ui/uui-boolean-input": "1.
|
|
38
|
-
"@umbraco-ui/uui-icon-registry-essential": "1.
|
|
36
|
+
"@umbraco-ui/uui-base": "1.9.0-rc.0",
|
|
37
|
+
"@umbraco-ui/uui-boolean-input": "1.9.0-rc.0",
|
|
38
|
+
"@umbraco-ui/uui-icon-registry-essential": "1.9.0-rc.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-checkbox",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e3e398e07b6ff9874aa0656cb7767df42f58a4ce"
|
|
50
50
|
}
|