@muonic/muon 0.0.2-experimental-190-85522bc.0 → 0.0.2-experimental-192-46f35ef.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.
|
@@ -100,9 +100,11 @@
|
|
|
100
100
|
"value": "{ inputter.field.background.color.value }"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
103
|
+
"row": {
|
|
104
|
+
"gap": {
|
|
105
|
+
"description": "Gap between radio button, checkbox and their label.",
|
|
106
|
+
"value": "{ theme.spacer.sm.value }"
|
|
107
|
+
}
|
|
106
108
|
},
|
|
107
109
|
"size": {
|
|
108
110
|
"description": "Size of the radio button and checkbox. Use an `em` unit to scale with label.",
|
|
@@ -113,6 +115,82 @@
|
|
|
113
115
|
"description": "Border color for the radio button and checkbox.",
|
|
114
116
|
"value": "{ inputter.field.color.value }"
|
|
115
117
|
}
|
|
118
|
+
},
|
|
119
|
+
"label": {
|
|
120
|
+
"padding": {
|
|
121
|
+
"inline": {
|
|
122
|
+
"start": {
|
|
123
|
+
"description": "The padding inline start of the label for the radio button and checkbox.",
|
|
124
|
+
"value": "{ theme.spacer.sm.value }"
|
|
125
|
+
},
|
|
126
|
+
"end": {
|
|
127
|
+
"description": "The padding inline end of the label for the radio button and checkbox.",
|
|
128
|
+
"value": "{ theme.spacer.sm.value }"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"block": {
|
|
132
|
+
"start": {
|
|
133
|
+
"description": "The padding block start of the label for the radio button and checkbox.",
|
|
134
|
+
"value": "initial"
|
|
135
|
+
},
|
|
136
|
+
"end": {
|
|
137
|
+
"description": "The padding block end of the label for the radio button and checkbox.",
|
|
138
|
+
"value": "initial"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"radio": {
|
|
144
|
+
"dot": {
|
|
145
|
+
"color": {
|
|
146
|
+
"description": "Color of the radio dot.",
|
|
147
|
+
"value": "{ inputter.field.color.value }"
|
|
148
|
+
},
|
|
149
|
+
"size": {
|
|
150
|
+
"description": "Size of the radio button dot. Use an `em` unit to scale with label.",
|
|
151
|
+
"value": "0.25em"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"checkbox": {
|
|
156
|
+
"check": {
|
|
157
|
+
"width": {
|
|
158
|
+
"description": "The length of the short side of the checkbox check.",
|
|
159
|
+
"value": "0.25em"
|
|
160
|
+
},
|
|
161
|
+
"height": {
|
|
162
|
+
"description": "The length of the long side of the checkbox check.",
|
|
163
|
+
"value": "0.5em"
|
|
164
|
+
},
|
|
165
|
+
"size": {
|
|
166
|
+
"description": "The width of the checkbox check.",
|
|
167
|
+
"value": "0.125em"
|
|
168
|
+
},
|
|
169
|
+
"color": {
|
|
170
|
+
"description": "The colour of the checkbox check.",
|
|
171
|
+
"value": "{ inputter.field.color.value }"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"border": {
|
|
175
|
+
"radius": {
|
|
176
|
+
"description": "Border radius of the checkbox. 0.1875em is equal to 3px when font-size is 16px.",
|
|
177
|
+
"value": "0.1875em"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"hover": {
|
|
182
|
+
"background": {
|
|
183
|
+
"color": {
|
|
184
|
+
"description": "Background color of the radio button and checkbox on `hover` state.",
|
|
185
|
+
"value": "{ inputter.hover.color.value }"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"border": {
|
|
189
|
+
"color": {
|
|
190
|
+
"description": "Border color of the radio button and checkbox on `hover` state.",
|
|
191
|
+
"value": "{ inputter.hover.color.value }"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
116
194
|
}
|
|
117
195
|
},
|
|
118
196
|
"label": {
|
|
@@ -131,6 +209,9 @@
|
|
|
131
209
|
"value": "{ theme.spacer.sm.value }"
|
|
132
210
|
}
|
|
133
211
|
}
|
|
212
|
+
},
|
|
213
|
+
"lineLength": {
|
|
214
|
+
"value": "{ theme.font.lineLength.value }"
|
|
134
215
|
}
|
|
135
216
|
},
|
|
136
217
|
"placeholder": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
margin-block-start: $INPUTTER_LABEL_MARGIN_BLOCK_START;
|
|
9
9
|
margin-block-end: $INPUTTER_LABEL_MARGIN_BLOCK_END;
|
|
10
10
|
color: $INPUTTER_LABEL_COLOR;
|
|
11
|
+
max-width: $INPUTTER_LABEL_LINE_LENGTH;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
& ::slotted(*)::placeholder {
|
|
@@ -105,8 +106,7 @@
|
|
|
105
106
|
display: grid; /* NOTE: using `grid` to control the layout of `<input>` and `<label>` */
|
|
106
107
|
line-height: 1.2; /* NOTE: setting `line-height` here to control the position of the checkbox and radio input */
|
|
107
108
|
grid-template-columns: $INPUTTER_MULTIPLE_SIZE auto;
|
|
108
|
-
|
|
109
|
-
row-gap: $INPUTTER_MULTIPLE_GAP;
|
|
109
|
+
row-gap: $INPUTTER_MULTIPLE_ROW_GAP;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
& ::slotted(:is(
|
|
@@ -128,7 +128,8 @@
|
|
|
128
128
|
& ::slotted(:is(
|
|
129
129
|
input[type="checkbox"]:hover,
|
|
130
130
|
input[type="radio"]:hover)) {
|
|
131
|
-
|
|
131
|
+
background-color: $INPUTTER_MULTIPLE_HOVER_BACKGROUND_COLOR;
|
|
132
|
+
border-color: $INPUTTER_MULTIPLE_HOVER_BORDER_COLOR;
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
& ::slotted(:is(
|
|
@@ -152,7 +153,7 @@
|
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
& ::slotted(input[type="checkbox"]) {
|
|
155
|
-
border-radius:
|
|
156
|
+
border-radius: $INPUTTER_MULTIPLE_CHECKBOX_BORDER_RADIUS;
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
& ::slotted(input[type="radio"]) {
|
|
@@ -160,24 +161,22 @@
|
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
& ::slotted(input[type="radio"]:checked)::before {
|
|
163
|
-
display: block;
|
|
164
164
|
content: "";
|
|
165
165
|
width: 0;
|
|
166
166
|
height: 0;
|
|
167
|
-
border-width:
|
|
167
|
+
border-width: $INPUTTER_MULTIPLE_RADIO_DOT_SIZE;
|
|
168
168
|
border-style: solid;
|
|
169
|
-
border-color: $
|
|
169
|
+
border-color: $INPUTTER_MULTIPLE_RADIO_DOT_COLOR;
|
|
170
170
|
border-radius: 50%;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
& ::slotted(input[type="checkbox"]:checked)::before {
|
|
174
|
-
display: block;
|
|
175
174
|
content: "";
|
|
176
|
-
width:
|
|
177
|
-
height:
|
|
178
|
-
border-width:
|
|
175
|
+
width: $INPUTTER_MULTIPLE_CHECKBOX_CHECK_WIDTH;
|
|
176
|
+
height: $INPUTTER_MULTIPLE_CHECKBOX_CHECK_HEIGHT;
|
|
177
|
+
border-width: $INPUTTER_MULTIPLE_CHECKBOX_CHECK_SIZE;
|
|
179
178
|
border-style: solid;
|
|
180
|
-
border-color: $
|
|
179
|
+
border-color: $INPUTTER_MULTIPLE_CHECKBOX_CHECK_COLOR;
|
|
181
180
|
border-top: unset;
|
|
182
181
|
border-right-style: solid;
|
|
183
182
|
border-bottom-style: solid;
|
|
@@ -188,6 +187,12 @@
|
|
|
188
187
|
& ::slotted(label) {
|
|
189
188
|
display: block;
|
|
190
189
|
width: fit-content;
|
|
190
|
+
margin-block-start: revert; /* NOTE: @drew - 2023-05-18 - revert these to use padding instead, could benefit from using a `:not(.multiple)` on line 6 */
|
|
191
|
+
margin-block-end: revert; /* NOTE: @drew - 2023-05-18 - revert these to use padding instead, could benefit from using a `:not(.multiple)` on line 6 */
|
|
192
|
+
padding-inline-start: $INPUTTER_MULTIPLE_LABEL_PADDING_INLINE_START;
|
|
193
|
+
padding-inline-end: $INPUTTER_MULTIPLE_LABEL_PADDING_INLINE_END;
|
|
194
|
+
padding-block-start: $INPUTTER_MULTIPLE_LABEL_PADDING_BLOCK_START;
|
|
195
|
+
padding-block-end: $INPUTTER_MULTIPLE_LABEL_PADDING_BLOCK_END;
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
& ::slotted(label:hover) {
|
|
@@ -216,8 +221,6 @@
|
|
|
216
221
|
& .search,
|
|
217
222
|
& .select {
|
|
218
223
|
& .wrapper {
|
|
219
|
-
width: fit-content;
|
|
220
|
-
|
|
221
224
|
& inputter-icon {
|
|
222
225
|
pointer-events: none;
|
|
223
226
|
position: absolute;
|
|
@@ -232,8 +235,10 @@
|
|
|
232
235
|
& .date,
|
|
233
236
|
& .select {
|
|
234
237
|
& .wrapper {
|
|
238
|
+
width: fit-content;
|
|
239
|
+
|
|
235
240
|
& inputter-icon {
|
|
236
|
-
right: calc($
|
|
241
|
+
right: calc($INPUTTER_FIELD_BORDER_WIDTH + ($INPUTTER_FIELD_PADDING_INLINE_END / 2));
|
|
237
242
|
}
|
|
238
243
|
}
|
|
239
244
|
}
|
|
@@ -241,7 +246,7 @@
|
|
|
241
246
|
& .search {
|
|
242
247
|
& .wrapper {
|
|
243
248
|
& inputter-icon {
|
|
244
|
-
left: calc($
|
|
249
|
+
left: calc($INPUTTER_FIELD_BORDER_WIDTH + ($INPUTTER_FIELD_PADDING_INLINE_START / 2));
|
|
245
250
|
}
|
|
246
251
|
}
|
|
247
252
|
}
|
package/package.json
CHANGED