material-inspired-component-library 6.0.2 → 6.0.3

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/docs/docs.js CHANGED
@@ -133,3 +133,7 @@ document.getElementById('directionality').addEventListener('change', event => {
133
133
  }
134
134
  catch (e) {}
135
135
  });
136
+ document.getElementById('copycode')?.addEventListener('click', event => {
137
+ const code = document.querySelector('code');
138
+ !!code && navigator.clipboard.writeText(code.textContent).then(() => {}).catch(e => {});
139
+ });
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap">
11
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=dark_mode,home,settings&display=block">
11
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=content_copy,dark_mode,home,settings&display=block">
12
12
  <link rel="stylesheet" href="themes/airblue/theme.css" id="theme-link">
13
13
  <link rel="stylesheet" href="micl.css">
14
14
  <link rel="stylesheet" href="docs.css">
@@ -288,23 +288,22 @@
288
288
  </div>
289
289
  </section>
290
290
  <section class="micl-pane">
291
- <div class="micl-card-filled">
291
+ <div class="micl-card-filled" style="margin-top:8px">
292
292
  <div class="micl-card__headline-s">
293
293
  <h2>Code example</h2>
294
+ <button type="button" id="copycode" class="micl-iconbutton-standard-s material-symbols-outlined" aria-label="Copy code">content_copy</button>
294
295
  </div>
295
296
  <div class="micl-card__content docs-code">
296
- <pre tabindex="-1"><code>
297
- &lt;button type="button"
298
- class="micl-iconbutton-standard-s material-symbols-outlined"
299
- aria-label="Control Panel"
297
+ <pre tabindex="-1"><code>&lt;button type="button"
298
+ class="micl-iconbutton-standard-s material-symbols-outlined"
299
+ aria-label="Control Panel"
300
300
  &gt;settings&lt;/button&gt;
301
301
 
302
302
  &lt;button type="button"
303
- class="micl-iconbutton-filled-m material-symbols-outlined
304
- micl-button--toggle micl-button--selected"
305
- aria-label="Control Panel"
306
- &gt;settings&lt;/button&gt;
307
- </code></pre>
303
+ class="micl-iconbutton-filled-m material-symbols-outlined
304
+ micl-button--toggle micl-button--selected"
305
+ aria-label="Control Panel"
306
+ &gt;settings&lt;/button&gt;</code></pre>
308
307
  </div>
309
308
  </div>
310
309
  </section>
package/docs/list.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap">
11
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=confirmation_number,dark_mode,home,keyboard_arrow_right,more_horiz,person,search,settings&display=block">
11
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=confirmation_number,content_copy,dark_mode,home,keyboard_arrow_right,more_horiz,person,search,settings&display=block">
12
12
  <link rel="stylesheet" href="themes/airblue/theme.css" id="theme-link">
13
13
  <link rel="stylesheet" href="micl.css">
14
14
  <link rel="stylesheet" href="docs.css">
@@ -255,13 +255,13 @@
255
255
  </div>
256
256
  </section>
257
257
  <section class="micl-pane">
258
- <div class="micl-card-filled">
258
+ <div class="micl-card-filled" style="margin-top:8px">
259
259
  <div class="micl-card__headline-s">
260
260
  <h2>Code example</h2>
261
+ <button type="button" id="copycode" class="micl-iconbutton-standard-s material-symbols-outlined" aria-label="Copy code">content_copy</button>
261
262
  </div>
262
263
  <div class="micl-card__content docs-code">
263
- <pre tabindex="-1"><code>
264
- &lt;ul class="micl-list"&gt;
264
+ <pre tabindex="-1"><code>&lt;ul class="micl-list"&gt;
265
265
  &lt;li class="micl-list-item-two"&gt;
266
266
  &lt;span class="micl-list-item__avatar"&gt;17&lt;/span&gt;
267
267
  &lt;span class="micl-list-item__text"&gt;
@@ -282,8 +282,7 @@
282
282
  &lt;input type="checkbox" id="id0" class="micl-checkbox" value="v0" tabindex="-1"&gt;
283
283
  &lt;/label&gt;
284
284
  &lt;/li&gt;
285
- &lt;/ul&gt;
286
- </code></pre>
285
+ &lt;/ul&gt;</code></pre>
287
286
  </div>
288
287
  </div>
289
288
  </section>
package/docs/menu.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap">
11
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=arrow_right,check,dark_mode,group,home,keyboard_command_key,newspaper,settings&display=block">
11
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=arrow_right,check,content_copy,dark_mode,group,home,keyboard_command_key,newspaper,settings&display=block">
12
12
  <link rel="stylesheet" href="themes/airblue/theme.css" id="theme-link">
13
13
  <link rel="stylesheet" href="micl.css">
14
14
  <link rel="stylesheet" href="docs.css">
@@ -334,29 +334,28 @@
334
334
  <div class="micl-card-filled">
335
335
  <div class="micl-card__headline-s">
336
336
  <h2>Code example</h2>
337
+ <button type="button" id="copycode" class="micl-iconbutton-standard-s material-symbols-outlined" aria-label="Copy code">content_copy</button>
337
338
  </div>
338
339
  <div class="micl-card__content docs-code">
339
- <pre tabindex="-1"><code>
340
- &lt;nav id="id0" class="micl-menu" popover&gt;
341
- &lt;ul class="micl-list"&gt;
342
- &lt;li class="micl-list-item-one" tabindex="0"&gt;
343
- &lt;span class="micl-list-item__text"&gt;
344
- &lt;span class="micl-list-item__headline"&gt;Home&lt;/span&gt;
345
- &lt;/span&gt;
346
- &lt;/li&gt;
347
- &lt;li class="micl-list-item-one"&gt;
348
- &lt;span class="micl-list-item__text"&gt;
349
- &lt;span class="micl-list-item__headline"&gt;About&lt;/span&gt;
350
- &lt;/span&gt;
351
- &lt;/li&gt;
352
- &lt;li class="micl-list-item-one micl-list-item--disabled"&gt;
353
- &lt;span class="micl-list-item__text"&gt;
354
- &lt;span class="micl-list-item__headline"&gt;Contact&lt;/span&gt;
355
- &lt;/span&gt;
356
- &lt;/li&gt;
357
- &lt;/ul&gt;
358
- &lt;/nav&gt;
359
- </code></pre>
340
+ <pre tabindex="-1"><code>&lt;nav id="id0" class="micl-menu" popover&gt;
341
+ &lt;ul class="micl-list"&gt;
342
+ &lt;li class="micl-list-item-one" tabindex="0"&gt;
343
+ &lt;span class="micl-list-item__text"&gt;
344
+ &lt;span class="micl-list-item__headline"&gt;Home&lt;/span&gt;
345
+ &lt;/span&gt;
346
+ &lt;/li&gt;
347
+ &lt;li class="micl-list-item-one"&gt;
348
+ &lt;span class="micl-list-item__text"&gt;
349
+ &lt;span class="micl-list-item__headline"&gt;About&lt;/span&gt;
350
+ &lt;/span&gt;
351
+ &lt;/li&gt;
352
+ &lt;li class="micl-list-item-one micl-list-item--disabled"&gt;
353
+ &lt;span class="micl-list-item__text"&gt;
354
+ &lt;span class="micl-list-item__headline"&gt;Contact&lt;/span&gt;
355
+ &lt;/span&gt;
356
+ &lt;/li&gt;
357
+ &lt;/ul&gt;
358
+ &lt;/nav&gt;</code></pre>
360
359
  </div>
361
360
  </div>
362
361
  </div>