@exmg/exm-radio 1.1.9 → 1.1.11
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/dist/exm-radio-item.js
CHANGED
|
@@ -22,9 +22,9 @@ let ExmRadioItem = class ExmRadioItem extends Radio {
|
|
|
22
22
|
const classes = { checked: this.checked, disabled: this.disabled };
|
|
23
23
|
const showRadioMap = classMap({ 'show-radio': this.radio });
|
|
24
24
|
return html `
|
|
25
|
-
<div class="container ${classMap(classes)}" aria-hidden="true">
|
|
26
|
-
<md-ripple
|
|
27
|
-
<md-focus-ring
|
|
25
|
+
<div class="container ${classMap(classes)}" aria-hidden="true" tab-index="0">
|
|
26
|
+
<md-ripple .control=${this} ?disabled=${this.disabled}></md-ripple>
|
|
27
|
+
<md-focus-ring .control=${this}></md-focus-ring>
|
|
28
28
|
<div class="radio-container ${showRadioMap}">
|
|
29
29
|
<svg class="icon ${showRadioMap}" viewBox="0 0 20 20">
|
|
30
30
|
<mask id="${this.maskIdOverride}">
|
|
@@ -6,6 +6,7 @@ export const style = css `
|
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
8
|
box-sizing: border-box;
|
|
9
|
+
position: relative;
|
|
9
10
|
--md-radio-disabled-icon-color: grey;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -42,7 +43,19 @@ export const style = css `
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
md-ripple {
|
|
45
|
-
border-radius:
|
|
46
|
+
border-top-left-radius: var(--exm-radio-table-top-left-radius, var(--exm-surface-border-radius, 16px));
|
|
47
|
+
border-top-right-radius: var(--exm-radio-table-top-right-radius, var(--exm-surface-border-radius, 16px));
|
|
48
|
+
border-bottom-left-radius: var(--exm-radio-table-bottom-left-radius, var(--exm-surface-border-radius, 16px));
|
|
49
|
+
border-bottom-right-radius: var(--exm-radio-table-bottom-right-radius, var(--exm-surface-border-radius, 16px));
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
md-focus-ring {
|
|
55
|
+
border-top-left-radius: var(--exm-radio-table-top-left-radius, var(--exm-surface-border-radius, 16px));
|
|
56
|
+
border-top-right-radius: var(--exm-radio-table-top-right-radius, var(--exm-surface-border-radius, 16px));
|
|
57
|
+
border-bottom-left-radius: var(--exm-radio-table-bottom-left-radius, var(--exm-surface-border-radius, 16px));
|
|
58
|
+
border-bottom-right-radius: var(--exm-radio-table-bottom-right-radius, var(--exm-surface-border-radius, 16px));
|
|
46
59
|
width: 100%;
|
|
47
60
|
height: 100%;
|
|
48
61
|
}
|
|
@@ -60,6 +73,7 @@ export const style = css `
|
|
|
60
73
|
position: relative;
|
|
61
74
|
width: 20px;
|
|
62
75
|
height: 20px;
|
|
76
|
+
margin-left: 1rem;
|
|
63
77
|
}
|
|
64
78
|
|
|
65
79
|
slot[name='title'] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-radio",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Material style radio element",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Ex Machina"
|
|
@@ -32,14 +32,11 @@
|
|
|
32
32
|
"directory": "packages/exm-radio"
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"
|
|
35
|
+
"peerDependencies": {
|
|
36
36
|
"@material/web": "^2.2.0",
|
|
37
|
-
"lit": "3.
|
|
37
|
+
"lit": "3.2.1",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
39
39
|
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@exmg/lit-cli": "^2.0.1"
|
|
42
|
-
},
|
|
43
40
|
"scripts": {
|
|
44
41
|
"build:styles": "exmg-lit-cli sass -f \"./**/*.scss\"",
|
|
45
42
|
"tsc": "tsc"
|
|
@@ -47,5 +44,5 @@
|
|
|
47
44
|
"publishConfig": {
|
|
48
45
|
"access": "public"
|
|
49
46
|
},
|
|
50
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5a615cfa5fb07dd11e3dff848b429b9c3a0a4313"
|
|
51
48
|
}
|