@muonic/muon 0.0.2-experimental-187-647c5c4.0 → 0.0.2-experimental-189-bdb89ed.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.
@@ -61,6 +61,9 @@
61
61
  "value": "2px"
62
62
  }
63
63
  },
64
+ "lineHeight": {
65
+ "value": "inherit"
66
+ },
64
67
  "icon": {
65
68
  "size": {
66
69
  "description": "Size of the icon used within the field.",
@@ -280,12 +283,6 @@
280
283
  }
281
284
  },
282
285
  "detail": {
283
- "font": {
284
- "size": {
285
- "description": "Font size for the detail.",
286
- "value": "12px"
287
- }
288
- },
289
286
  "color": {
290
287
  "description": "Text color for the detail.",
291
288
  "value": "{ inputter.field.color.value }"
@@ -299,6 +296,7 @@
299
296
  "heading": {
300
297
  "font": {
301
298
  "size": {
299
+ "description": "Font size for the detail heading.",
302
300
  "value": "14px"
303
301
  }
304
302
  },
@@ -320,6 +318,12 @@
320
318
  }
321
319
  },
322
320
  "content": {
321
+ "font": {
322
+ "size": {
323
+ "description": "Font size for the detail content.",
324
+ "value": "12px"
325
+ }
326
+ },
323
327
  "margin": {
324
328
  "block": {
325
329
  "start": {
@@ -54,7 +54,7 @@
54
54
  margin-block-start: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK_START;
55
55
  margin-block-end: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK_END;
56
56
  padding-inline-start: $INPUTTER_DETAIL_CONTENT_PADDING_INLINE;
57
- font-size: 12px;
57
+ font-size: $INPUTTER_DETAIL_CONTENT_FONT_SIZE;
58
58
  border-inline-start-color: $INPUTTER_DETAIL_BORDER_COLOR;
59
59
  border-inline-start-style: $INPUTTER_DETAIL_BORDER_STYLE;
60
60
  border-inline-start-width: $INPUTTER_DETAIL_BORDER_WIDTH;
@@ -31,6 +31,7 @@
31
31
  padding-inline-start: $INPUTTER_FIELD_PADDING_INLINE_START;
32
32
  padding-inline-end: $INPUTTER_FIELD_PADDING_INLINE_END;
33
33
  color: $INPUTTER_FIELD_COLOR;
34
+ line-height: $INPUTTER_FIELD_LINE_HEIGHT;
34
35
  background-color: $INPUTTER_FIELD_BACKGROUND_COLOR;
35
36
  border-width: $INPUTTER_FIELD_BORDER_WIDTH;
36
37
  border-style: $INPUTTER_FIELD_BORDER_STYLE;
@@ -95,7 +96,6 @@
95
96
  }
96
97
 
97
98
  & .wrapper {
98
- max-width: fit-content;
99
99
  position: relative;
100
100
  }
101
101
 
@@ -216,6 +216,8 @@
216
216
  & .search,
217
217
  & .select {
218
218
  & .wrapper {
219
+ width: fit-content;
220
+
219
221
  & inputter-icon {
220
222
  pointer-events: none;
221
223
  position: absolute;
@@ -254,7 +256,14 @@
254
256
  input[type="search"],
255
257
  input[type="tel"],
256
258
  input[type="text"])) {
257
- width: calc((var(--maxlength)) * 1ch);
259
+ width: calc(
260
+ (var(--maxlength))
261
+ * 1ch
262
+ + $INPUTTER_FIELD_PADDING_INLINE_START
263
+ + $INPUTTER_FIELD_PADDING_INLINE_END
264
+ + $INPUTTER_FIELD_BORDER_WIDTH
265
+ + $INPUTTER_FIELD_BORDER_WIDTH
266
+ );
258
267
  font-family: $INPUTTER_MASK_FONT_FAMILY;
259
268
  }
260
269
 
@@ -275,7 +284,7 @@
275
284
  color: $INPUTTER_MASK_COLOR;
276
285
  pointer-events: none;
277
286
  white-space: pre;
278
- line-height: initial;
287
+ line-height: $INPUTTER_FIELD_LINE_HEIGHT;
279
288
  text-align: start;
280
289
  }
281
290
 
@@ -291,7 +300,7 @@
291
300
  width: fit-content;
292
301
  margin-block-start: $INPUTTER_VALIDATION_MARGIN_BLOCK;
293
302
  color: $INPUTTER_VALIDATION_WARNING_COLOR;
294
- font-size: 14px;
303
+ font-size: $INPUTTER_VALIDATION_FONT_SIZE;
295
304
 
296
305
  & .icon {
297
306
  width: $INPUTTER_VALIDATION_ICON_SIZE;
package/css/global.css CHANGED
@@ -3,23 +3,33 @@
3
3
  /**
4
4
  * [1] Apply a natural box layout model to all elements
5
5
  */
6
- html {
7
- box-sizing: border-box; /* [1] */
8
- }
6
+ *,
7
+ *::before,
8
+ *::after {
9
+ box-sizing: border-box; /* [1] */
10
+ }
9
11
 
10
- *,
11
- *::before,
12
- *::after {
13
- box-sizing: inherit; /* [1] */
14
- }
12
+ /**
13
+ * [1] Remove the user agent margin
14
+ * [2] Default font family and base size
15
+ * [3] Disallow any content to overflow the width
16
+ * [4] TODO: Tokenise the global line-height
17
+ * [5] TODO: Investigate this property as it may not be necessary
18
+ */
19
+ body {
20
+ margin: 0; /* [1] */
21
+ font-family: $THEME_FONT_FAMILY_DEFAULT; /* [2] */
22
+ font-size: 16px; /* [2] */
23
+ overflow-x: hidden; /* [3] */
24
+ line-height: 1.5; /* [4] */
25
+ min-height: 100vh; /* [5] */
26
+ }
15
27
 
16
- body {
17
- margin: 0;
18
- font-family: $THEME_FONT_FAMILY_DEFAULT;
19
- font-size: 16px;
20
- overflow-x: hidden;
21
- line-height: 1.5;
22
- min-height: 100vh;
23
- }
28
+ /**
29
+ * [1] Reset the user agent margin to 0 for figure
30
+ */
31
+ figure {
32
+ margin: 0; /* [1] */
33
+ }
24
34
 
25
- /* global.css END */
35
+ /* global.css END */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muonic/muon",
3
- "version": "0.0.2-experimental-187-647c5c4.0",
3
+ "version": "0.0.2-experimental-189-bdb89ed.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {