@umbraco-ui/uui-checkbox 1.8.2 → 1.9.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/custom-elements.json +13 -0
- package/lib/index.js +6 -1
- 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
|
@@ -84,9 +84,11 @@ UUICheckboxElement.styles = [
|
|
|
84
84
|
input:checked:not([disabled]) + #ticker {
|
|
85
85
|
border-color: var(--uui-color-selected,#3544b1);
|
|
86
86
|
}
|
|
87
|
+
|
|
87
88
|
label:hover input:checked:not([disabled]) + #ticker {
|
|
88
89
|
border-color: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
|
|
89
90
|
}
|
|
91
|
+
|
|
90
92
|
label:focus input:checked + #ticker {
|
|
91
93
|
border-color: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
|
|
92
94
|
}
|
|
@@ -142,7 +144,10 @@ UUICheckboxElement.styles = [
|
|
|
142
144
|
var(--uui-color-focus,#3879ff);
|
|
143
145
|
}
|
|
144
146
|
|
|
145
|
-
:host(:not([disabled]))
|
|
147
|
+
:host(:not([disabled], [readonly]))
|
|
148
|
+
label:active
|
|
149
|
+
input:checked
|
|
150
|
+
+ #ticker::before {
|
|
146
151
|
/** Stretch when mouse down */
|
|
147
152
|
transform: scale(0.9);
|
|
148
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.1",
|
|
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.1",
|
|
37
|
+
"@umbraco-ui/uui-boolean-input": "1.9.0-rc.1",
|
|
38
|
+
"@umbraco-ui/uui-icon-registry-essential": "1.9.0-rc.1"
|
|
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": "7092b4717d8b9d4825b15e087508b8f75bf81a92"
|
|
50
50
|
}
|