@muonic/muon 0.0.2-experimental-181-3ac42d9.0 → 0.0.2-experimental-183-50f5b70.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.
@@ -23,24 +23,42 @@
23
23
  },
24
24
  "padding": {
25
25
  "block": {
26
- "description": "Padding space above and below the field text. Equal values in the block axis.",
27
- "value": "{ theme.spacer.sm.value }"
26
+ "start": {
27
+ "description": "Padding space above the field text.",
28
+ "value": "{ theme.spacer.sm.value }"
29
+ },
30
+ "end": {
31
+ "description": "Padding space below the field text.",
32
+ "value": "{ theme.spacer.sm.value }"
33
+ }
28
34
  },
29
35
  "inline": {
30
- "description": "Padding space left and right of the field text. Equal values in the inline axis.",
31
- "value": "{ inputter.field.padding.block.value }"
32
- }
33
- },
34
- "margin": {
35
- "block": {
36
- "description": "Margin space between the label and the field.",
37
- "value": "{ theme.spacer.sm.value }"
36
+ "start": {
37
+ "description": "Padding space left of the field text. Equal values in the inline axis.",
38
+ "value": "{ theme.spacer.sm.value }"
39
+ },
40
+ "end": {
41
+ "description": "Padding space right of the field text. Equal values in the inline axis.",
42
+ "value": "{ theme.spacer.sm.value }"
43
+ }
38
44
  }
39
45
  },
40
46
  "border": {
41
47
  "color": {
42
48
  "description": "Border color of the field.",
43
49
  "value": "{ inputter.field.color.value }"
50
+ },
51
+ "radius": {
52
+ "description": "Border radius of the field.",
53
+ "value": 0
54
+ },
55
+ "style": {
56
+ "description": "Border style of the field.",
57
+ "value": "solid"
58
+ },
59
+ "width": {
60
+ "description": "Border width of the field.",
61
+ "value": "2px"
44
62
  }
45
63
  },
46
64
  "icon": {
@@ -50,7 +68,7 @@
50
68
  },
51
69
  "spacer": {
52
70
  "description": "Padding space used if an icon exists at the start or end of the field.",
53
- "value": "calc({ inputter.field.padding.block.value } + { inputter.field.icon.size.value } + { inputter.field.padding.block.value })"
71
+ "value": "calc({ inputter.field.padding.block.start.value } + { inputter.field.icon.size.value } + { inputter.field.padding.block.end.value })"
54
72
  }
55
73
  },
56
74
  "date": {
@@ -98,6 +116,18 @@
98
116
  "color": {
99
117
  "description": "Label text color of field.",
100
118
  "value": "{ inputter.field.color.value }"
119
+ },
120
+ "margin": {
121
+ "block": {
122
+ "start": {
123
+ "description": "Margin space above the label.",
124
+ "value": 0
125
+ },
126
+ "end": {
127
+ "description": "Margin space below the label.",
128
+ "value": "{ theme.spacer.sm.value }"
129
+ }
130
+ }
101
131
  }
102
132
  },
103
133
  "placeholder": {
@@ -109,10 +139,12 @@
109
139
  "mask": {
110
140
  "__private_color": {
111
141
  "value": "{ theme.color.darkest.value }",
112
- "modify": [{
113
- "type": "brighten",
114
- "amount": 2.75
115
- }]
142
+ "modify": [
143
+ {
144
+ "type": "brighten",
145
+ "amount": 2.75
146
+ }
147
+ ]
116
148
  },
117
149
  "color": {
118
150
  "description": "Text color for the mask of the inputter. Defaults to brightened version of the darkest color.",
@@ -132,10 +164,12 @@
132
164
  "hover": {
133
165
  "__private_color": {
134
166
  "value": "{ inputter.field.color.value }",
135
- "modify": [{
136
- "type": "darken",
137
- "amount": 1.5
138
- }]
167
+ "modify": [
168
+ {
169
+ "type": "darken",
170
+ "amount": 1.5
171
+ }
172
+ ]
139
173
  },
140
174
  "color": {
141
175
  "description": "Color of the field on `hover` state. Defaults to a darkened version of the color.",
@@ -163,6 +197,18 @@
163
197
  "color": {
164
198
  "description": "Outline color for `keyboard focus` state. Defaults to theme's focus color.",
165
199
  "value": "{ theme.color.focus.value }"
200
+ },
201
+ "offset": {
202
+ "description": "Outline offset for `keyboard focus` state. Defaults to theme's focus color.",
203
+ "value": 0
204
+ },
205
+ "style": {
206
+ "description": "Outline style for `keyboard focus` state. Defaults to theme's focus color.",
207
+ "value": "solid"
208
+ },
209
+ "width": {
210
+ "description": "Outline width for `keyboard focus` state. Defaults to theme's focus color.",
211
+ "value": "3px"
166
212
  }
167
213
  }
168
214
  },
@@ -180,10 +226,12 @@
180
226
  "background": {
181
227
  "__private_color": {
182
228
  "value": "{ inputter.disabled.color.value }",
183
- "modify": [{
184
- "type": "brighten",
185
- "amount": 1
186
- }]
229
+ "modify": [
230
+ {
231
+ "type": "brighten",
232
+ "amount": 1
233
+ }
234
+ ]
187
235
  },
188
236
  "color": {
189
237
  "description": "Disabled background color. Defaults to a brightened version of theme's disabled color.",
@@ -198,6 +246,12 @@
198
246
  }
199
247
  },
200
248
  "validation": {
249
+ "font": {
250
+ "size": {
251
+ "description": "Font size for the validation.",
252
+ "value": "14px"
253
+ }
254
+ },
201
255
  "margin": {
202
256
  "block": {
203
257
  "description": "Margin space above and below the validation message. Equal values in the block axis.",
@@ -226,6 +280,12 @@
226
280
  }
227
281
  },
228
282
  "detail": {
283
+ "font": {
284
+ "size": {
285
+ "description": "Font size for the detail.",
286
+ "value": "12px"
287
+ }
288
+ },
229
289
  "color": {
230
290
  "description": "Text color for the detail.",
231
291
  "value": "{ inputter.field.color.value }"
@@ -237,10 +297,21 @@
237
297
  }
238
298
  },
239
299
  "heading": {
300
+ "font": {
301
+ "size": {
302
+ "value": "14px"
303
+ }
304
+ },
240
305
  "margin": {
241
306
  "block": {
242
- "description": "Margin space between the detail heading and the field.",
243
- "value": "{ theme.spacer.sm.value }"
307
+ "start": {
308
+ "description": "Margin space above the detail heading.",
309
+ "value": 0
310
+ },
311
+ "end": {
312
+ "description": "Margin space below the detail heading.",
313
+ "value": "{ theme.spacer.sm.value }"
314
+ }
244
315
  }
245
316
  },
246
317
  "gap": {
@@ -251,8 +322,14 @@
251
322
  "content": {
252
323
  "margin": {
253
324
  "block": {
254
- "description": "Margin space between the detail's heading and content.",
255
- "value": "{ theme.spacer.sm.value }"
325
+ "start": {
326
+ "description": "Margin space above the detail content.",
327
+ "value": 0
328
+ },
329
+ "end": {
330
+ "description": "Margin space below the detail content.",
331
+ "value": "{ theme.spacer.sm.value }"
332
+ }
256
333
  }
257
334
  },
258
335
  "padding": {
@@ -285,22 +362,42 @@
285
362
  "focus": {
286
363
  "outline": {
287
364
  "color": {
288
- "description": "Outline color of the detail on `keyboard focus` state.",
365
+ "description": "Outline color for `keyboard focus` state. Defaults to theme's focus color.",
289
366
  "value": "{ inputter.focus.outline.color.value }"
367
+ },
368
+ "offset": {
369
+ "description": "Outline offset for `keyboard focus` state. Defaults to theme's focus color.",
370
+ "value": "{ inputter.focus.outline.offset.value }"
371
+ },
372
+ "style": {
373
+ "description": "Outline style for `keyboard focus` state. Defaults to theme's focus color.",
374
+ "value": "{ inputter.focus.outline.style.value }"
375
+ },
376
+ "width": {
377
+ "description": "Outline width for `keyboard focus` state. Defaults to theme's focus color.",
378
+ "value": "{ inputter.focus.outline.width.value }"
290
379
  }
291
380
  }
292
381
  },
293
382
  "border": {
294
383
  "__private_color": {
295
384
  "value": "{ inputter.field.color.value }",
296
- "modify": [{
297
- "type": "brighten",
298
- "amount": 3
299
- }]
385
+ "modify": [
386
+ {
387
+ "type": "brighten",
388
+ "amount": 3
389
+ }
390
+ ]
300
391
  },
301
392
  "color": {
302
393
  "description": "Border color of the detail. Defaults to a brightened version of the field color.",
303
394
  "value": "{ inputter.detail.border.__private_color.value }"
395
+ },
396
+ "style": {
397
+ "value": "solid"
398
+ },
399
+ "width": {
400
+ "value": "3px"
304
401
  }
305
402
  }
306
403
  }
@@ -9,7 +9,8 @@
9
9
 
10
10
  & .details {
11
11
  color: $INPUTTER_DETAIL_COLOR;
12
- margin-block-start: $INPUTTER_DETAIL_MARGIN_BLOCK;
12
+ margin-block-start: $INPUTTER_DETAIL_MARGIN_BLOCK_START;
13
+ margin-block-end: $INPUTTER_DETAIL_MARGIN_BLOCK_END;
13
14
  }
14
15
 
15
16
  & .toggle {
@@ -24,8 +25,9 @@
24
25
  column-gap: $INPUTTER_DETAIL_HEADING_GAP;
25
26
  width: fit-content;
26
27
  cursor: pointer;
27
- font-size: 14px;
28
- margin-block-start: $INPUTTER_DETAIL_HEADING_MARGIN_BLOCK;
28
+ font-size: $INPUTTER_DETAIL_HEADING_FONT_SIZE;
29
+ margin-block-start: $INPUTTER_DETAIL_HEADING_MARGIN_BLOCK_START;
30
+ margin-block-end: $INPUTTER_DETAIL_HEADING_MARGIN_BLOCK_END;
29
31
 
30
32
  &:hover {
31
33
  text-decoration: underline;
@@ -42,18 +44,19 @@
42
44
 
43
45
  &:focus-visible {
44
46
  outline-color: $INPUTTER_DETAIL_FOCUS_OUTLINE_COLOR;
45
- outline-style: solid;
46
- outline-width: 3px;
47
- outline-offset: 0;
47
+ outline-offset: $INPUTTER_DETAIL_FOCUS_OUTLINE_OFFSET;
48
+ outline-style: $INPUTTER_DETAIL_FOCUS_OUTLINE_STYLE;
49
+ outline-width: $INPUTTER_DETAIL_FOCUS_OUTLINE_WIDTH;
48
50
  }
49
51
  }
50
52
 
51
53
  & .content {
52
- margin-block-start: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK;
54
+ margin-block-start: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK_START;
55
+ margin-block-end: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK_END;
53
56
  padding-inline-start: $INPUTTER_DETAIL_CONTENT_PADDING_INLINE;
54
57
  font-size: 12px;
55
- border-inline-start-style: solid;
56
- border-inline-start-width: 3px;
57
58
  border-inline-start-color: $INPUTTER_DETAIL_BORDER_COLOR;
59
+ border-inline-start-style: $INPUTTER_DETAIL_BORDER_STYLE;
60
+ border-inline-start-width: $INPUTTER_DETAIL_BORDER_WIDTH;
58
61
  }
59
62
  }
@@ -4,6 +4,9 @@
4
4
  display: block;
5
5
 
6
6
  & ::slotted(label) {
7
+ display: inline-block;
8
+ margin-block-start: $INPUTTER_LABEL_MARGIN_BLOCK_START;
9
+ margin-block-end: $INPUTTER_LABEL_MARGIN_BLOCK_END;
7
10
  color: $INPUTTER_LABEL_COLOR;
8
11
  }
9
12
 
@@ -23,16 +26,16 @@
23
26
  select,
24
27
  textarea)) {
25
28
  margin: 0; /* NOTE: remove `margin: 2px` Safari user agent */
26
- padding-block-start: $INPUTTER_FIELD_PADDING_BLOCK;
27
- padding-block-end: $INPUTTER_FIELD_PADDING_BLOCK;
28
- padding-inline-start: $INPUTTER_FIELD_PADDING_INLINE;
29
- padding-inline-end: $INPUTTER_FIELD_PADDING_INLINE;
29
+ padding-block-start: $INPUTTER_FIELD_PADDING_BLOCK_START;
30
+ padding-block-end: $INPUTTER_FIELD_PADDING_BLOCK_END;
31
+ padding-inline-start: $INPUTTER_FIELD_PADDING_INLINE_START;
32
+ padding-inline-end: $INPUTTER_FIELD_PADDING_INLINE_END;
30
33
  color: $INPUTTER_FIELD_COLOR;
31
34
  background-color: $INPUTTER_FIELD_BACKGROUND_COLOR;
32
- border-width: 2px;
33
- border-style: solid;
35
+ border-width: $INPUTTER_FIELD_BORDER_WIDTH;
36
+ border-style: $INPUTTER_FIELD_BORDER_STYLE;
34
37
  border-color: $INPUTTER_FIELD_BORDER_COLOR;
35
- border-radius: 0;
38
+ border-radius: $INPUTTER_FIELD_BORDER_RADIUS;
36
39
  font-family: $INPUTTER_FIELD_FONT_FAMILY;
37
40
  font-size: $INPUTTER_FIELD_FONT_SIZE;
38
41
  }
@@ -64,9 +67,9 @@
64
67
  border-color: $INPUTTER_FOCUS_BORDER_COLOR;
65
68
  color: $INPUTTER_FOCUS_COLOR;
66
69
  outline-color: $INPUTTER_FOCUS_OUTLINE_COLOR;
67
- outline-offset: 0;
68
- outline-style: solid;
69
- outline-width: 3px;
70
+ outline-offset: $INPUTTER_FOCUS_OUTLINE_OFFSET;
71
+ outline-style: $INPUTTER_FOCUS_OUTLINE_STYLE;
72
+ outline-width: $INPUTTER_FOCUS_OUTLINE_WIDTH;
70
73
  }
71
74
 
72
75
  & .has-disabled {
@@ -92,7 +95,6 @@
92
95
  }
93
96
 
94
97
  & .wrapper {
95
- margin-block-start: $INPUTTER_FIELD_MARGIN_BLOCK;
96
98
  max-width: fit-content;
97
99
  position: relative;
98
100
  }
@@ -134,9 +136,9 @@
134
136
  input[type="radio"]:focus-visible)) {
135
137
  border-color: $INPUTTER_FOCUS_BORDER_COLOR;
136
138
  outline-color: $INPUTTER_FOCUS_OUTLINE_COLOR;
137
- outline-offset: 0;
138
- outline-style: solid;
139
- outline-width: 3px;
139
+ outline-offset: $INPUTTER_FOCUS_OUTLINE_OFFSET;
140
+ outline-style: $INPUTTER_FOCUS_OUTLINE_STYLE;
141
+ outline-width: $INPUTTER_FOCUS_OUTLINE_WIDTH;
140
142
  }
141
143
 
142
144
  &.has-disabled {
@@ -229,7 +231,7 @@
229
231
  & .select {
230
232
  & .wrapper {
231
233
  & inputter-icon {
232
- right: calc($INPUTTER_FIELD_PADDING_INLINE + 2px); /* NOTE: the 2px is the width of the border */
234
+ right: calc($INPUTTER_FIELD_PADDING_INLINE_END + $INPUTTER_FIELD_BORDER_WIDTH);
233
235
  }
234
236
  }
235
237
  }
@@ -237,7 +239,7 @@
237
239
  & .search {
238
240
  & .wrapper {
239
241
  & inputter-icon {
240
- left: calc($INPUTTER_FIELD_PADDING_INLINE + 2px); /* NOTE: the 2px is the width of the border */
242
+ left: calc($INPUTTER_FIELD_PADDING_INLINE_START + $INPUTTER_FIELD_BORDER_WIDTH);
241
243
  }
242
244
  }
243
245
  }
@@ -257,14 +259,14 @@
257
259
  }
258
260
 
259
261
  & .input-mask {
260
- padding-block-start: $INPUTTER_FIELD_PADDING_BLOCK;
261
- padding-block-end: $INPUTTER_FIELD_PADDING_BLOCK;
262
- padding-inline-start: $INPUTTER_FIELD_PADDING_INLINE;
263
- padding-inline-end: $INPUTTER_FIELD_PADDING_INLINE;
264
- border-width: 2px;
265
- border-style: solid;
262
+ padding-block-start: $INPUTTER_FIELD_PADDING_BLOCK_START;
263
+ padding-block-end: $INPUTTER_FIELD_PADDING_BLOCK_END;
264
+ padding-inline-start: $INPUTTER_FIELD_PADDING_INLINE_START;
265
+ padding-inline-end: $INPUTTER_FIELD_PADDING_INLINE_END;
266
+ border-width: $INPUTTER_FIELD_BORDER_WIDTH;
267
+ border-style: $INPUTTER_FIELD_BORDER_STYLE;
266
268
  border-color: transparent;
267
- border-radius: 0;
269
+ border-radius: $INPUTTER_FIELD_BORDER_RADIUS;
268
270
  position: absolute;
269
271
  top: 0;
270
272
  right: 0;
@@ -273,7 +275,7 @@
273
275
  color: $INPUTTER_MASK_COLOR;
274
276
  pointer-events: none;
275
277
  white-space: pre;
276
- line-height: normal;
278
+ line-height: initial;
277
279
  text-align: start;
278
280
  }
279
281
 
@@ -298,8 +300,9 @@
298
300
  }
299
301
 
300
302
  & .helper {
301
- margin-block-start: $INPUTTER_DETAIL_HEADING_MARGIN_BLOCK;
303
+ margin-block-start: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK_START;
304
+ margin-block-end: $INPUTTER_DETAIL_CONTENT_MARGIN_BLOCK_END;
302
305
  color: $INPUTTER_DETAIL_COLOR;
303
- font-size: 14px;
306
+ font-size: $INPUTTER_DETAIL_HEADING_FONT_SIZE;
304
307
  }
305
308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muonic/muon",
3
- "version": "0.0.2-experimental-181-3ac42d9.0",
3
+ "version": "0.0.2-experimental-183-50f5b70.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "@rollup/plugin-virtual": "3.0.1",
27
27
  "@web/dev-server": "0.2.1",
28
28
  "@web/dev-server-rollup": "0.5.0",
29
- "@web/dev-server-storybook": "0.7.1",
29
+ "@web/dev-server-storybook": "0.7.0",
30
30
  "@web/storybook-prebuilt": "0.1.34",
31
31
  "@webcomponents/scoped-custom-element-registry": "0.0.9",
32
32
  "app-root-path": "3.1.0",