material-inspired-component-library 1.0.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.
- package/.editorconfig +12 -0
- package/.gitattributes +9 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/LICENSE +21 -0
- package/README.md +99 -0
- package/components/README.md +12 -0
- package/components/accordion/README.md +94 -0
- package/components/bottomsheet/README.md +77 -0
- package/components/bottomsheet/bottomsheet.scss +134 -0
- package/components/bottomsheet/index.ts +152 -0
- package/components/button/README.md +92 -0
- package/components/button/button.scss +515 -0
- package/components/button/index.ts +73 -0
- package/components/card/README.md +125 -0
- package/components/card/card.scss +261 -0
- package/components/checkbox/README.md +62 -0
- package/components/checkbox/checkbox.scss +275 -0
- package/components/checkbox/index.ts +48 -0
- package/components/dialog/README.md +133 -0
- package/components/dialog/dialog.scss +262 -0
- package/components/divider/README.md +52 -0
- package/components/divider/divider.scss +74 -0
- package/components/iconbutton/README.md +86 -0
- package/components/iconbutton/iconbutton.scss +461 -0
- package/components/iconbutton/index.ts +73 -0
- package/components/list/README.md +176 -0
- package/components/list/index.ts +108 -0
- package/components/list/list.scss +295 -0
- package/components/menu/README.md +96 -0
- package/components/menu/index.ts +77 -0
- package/components/menu/menu.scss +124 -0
- package/components/radio/README.md +53 -0
- package/components/radio/radio.scss +138 -0
- package/components/select/README.md +84 -0
- package/components/select/select.scss +122 -0
- package/components/sidesheet/README.md +99 -0
- package/components/sidesheet/sidesheet.scss +162 -0
- package/components/slider/README.md +69 -0
- package/components/slider/index.ts +114 -0
- package/components/slider/slider.scss +258 -0
- package/components/switch/README.md +49 -0
- package/components/switch/switch.scss +176 -0
- package/components/textfield/README.md +75 -0
- package/components/textfield/index.ts +81 -0
- package/components/textfield/textfield.scss +387 -0
- package/components.ts +169 -0
- package/dist/bottomsheet.css +1 -0
- package/dist/bottomsheet.js +0 -0
- package/dist/button.css +1 -0
- package/dist/button.js +0 -0
- package/dist/card.css +1 -0
- package/dist/card.js +0 -0
- package/dist/checkbox.css +1 -0
- package/dist/checkbox.js +0 -0
- package/dist/dialog.css +1 -0
- package/dist/dialog.js +0 -0
- package/dist/divider.css +1 -0
- package/dist/divider.js +0 -0
- package/dist/iconbutton.css +1 -0
- package/dist/iconbutton.js +0 -0
- package/dist/list.css +1 -0
- package/dist/list.js +0 -0
- package/dist/menu.css +1 -0
- package/dist/menu.js +0 -0
- package/dist/micl.css +1 -0
- package/dist/micl.js +1 -0
- package/dist/radio.css +1 -0
- package/dist/radio.js +0 -0
- package/dist/select.css +1 -0
- package/dist/select.js +0 -0
- package/dist/sidesheet.css +1 -0
- package/dist/sidesheet.js +0 -0
- package/dist/slider.css +1 -0
- package/dist/slider.js +0 -0
- package/dist/switch.css +1 -0
- package/dist/switch.js +0 -0
- package/dist/textfield.css +1 -0
- package/dist/textfield.js +0 -0
- package/docs/accordion.html +285 -0
- package/docs/bottomsheet.html +162 -0
- package/docs/button.html +206 -0
- package/docs/card-awards.webp +0 -0
- package/docs/card-cabinet.webp +0 -0
- package/docs/card-city.webp +0 -0
- package/docs/card-fingerprint.webp +0 -0
- package/docs/card-holiday.webp +0 -0
- package/docs/card-names.webp +0 -0
- package/docs/card.html +91 -0
- package/docs/checkbox.html +99 -0
- package/docs/dialog.html +153 -0
- package/docs/divider.html +103 -0
- package/docs/docs.css +34 -0
- package/docs/docs.js +69 -0
- package/docs/iconbutton.html +197 -0
- package/docs/index.html +319 -0
- package/docs/list.html +224 -0
- package/docs/menu.html +143 -0
- package/docs/micl.css +1 -0
- package/docs/micl.js +1 -0
- package/docs/radio.html +101 -0
- package/docs/select.html +205 -0
- package/docs/sidesheet.html +115 -0
- package/docs/slider.html +72 -0
- package/docs/switch.html +151 -0
- package/docs/textfield.html +151 -0
- package/docs/themes/airblue/dark-hc.css +51 -0
- package/docs/themes/airblue/dark-mc.css +51 -0
- package/docs/themes/airblue/dark.css +51 -0
- package/docs/themes/airblue/light-hc.css +51 -0
- package/docs/themes/airblue/light-mc.css +51 -0
- package/docs/themes/airblue/light.css +51 -0
- package/docs/themes/airblue/theme.css +306 -0
- package/docs/themes/barnred/dark-hc.css +51 -0
- package/docs/themes/barnred/dark-mc.css +51 -0
- package/docs/themes/barnred/dark.css +51 -0
- package/docs/themes/barnred/light-hc.css +51 -0
- package/docs/themes/barnred/light-mc.css +51 -0
- package/docs/themes/barnred/light.css +51 -0
- package/docs/themes/barnred/theme.css +306 -0
- package/docs/themes/citrine/dark-hc.css +51 -0
- package/docs/themes/citrine/dark-mc.css +51 -0
- package/docs/themes/citrine/dark.css +51 -0
- package/docs/themes/citrine/light-hc.css +51 -0
- package/docs/themes/citrine/light-mc.css +51 -0
- package/docs/themes/citrine/light.css +51 -0
- package/docs/themes/citrine/theme.css +306 -0
- package/docs/themes/olivegreen/dark-hc.css +51 -0
- package/docs/themes/olivegreen/dark-mc.css +51 -0
- package/docs/themes/olivegreen/dark.css +51 -0
- package/docs/themes/olivegreen/light-hc.css +51 -0
- package/docs/themes/olivegreen/light-mc.css +51 -0
- package/docs/themes/olivegreen/light.css +51 -0
- package/docs/themes/olivegreen/theme.css +306 -0
- package/package.json +62 -0
- package/styles/README.md +99 -0
- package/styles/elevation.scss +36 -0
- package/styles/motion.scss +124 -0
- package/styles/ripple.scss +50 -0
- package/styles/shapes.scss +46 -0
- package/styles/statelayer.scss +42 -0
- package/styles/typography.scss +568 -0
- package/styles.scss +43 -0
- package/themes/README.md +57 -0
- package/themes/airblue/dark-hc.css +51 -0
- package/themes/airblue/dark-mc.css +51 -0
- package/themes/airblue/dark.css +51 -0
- package/themes/airblue/light-hc.css +51 -0
- package/themes/airblue/light-mc.css +51 -0
- package/themes/airblue/light.css +51 -0
- package/themes/airblue/theme.css +306 -0
- package/themes/barnred/dark-hc.css +51 -0
- package/themes/barnred/dark-mc.css +51 -0
- package/themes/barnred/dark.css +51 -0
- package/themes/barnred/light-hc.css +51 -0
- package/themes/barnred/light-mc.css +51 -0
- package/themes/barnred/light.css +51 -0
- package/themes/barnred/theme.css +306 -0
- package/themes/citrine/dark-hc.css +51 -0
- package/themes/citrine/dark-mc.css +51 -0
- package/themes/citrine/dark.css +51 -0
- package/themes/citrine/light-hc.css +51 -0
- package/themes/citrine/light-mc.css +51 -0
- package/themes/citrine/light.css +51 -0
- package/themes/citrine/theme.css +306 -0
- package/themes/olivegreen/dark-hc.css +51 -0
- package/themes/olivegreen/dark-mc.css +51 -0
- package/themes/olivegreen/dark.css +51 -0
- package/themes/olivegreen/light-hc.css +51 -0
- package/themes/olivegreen/light-mc.css +51 -0
- package/themes/olivegreen/light.css +51 -0
- package/themes/olivegreen/theme.css +306 -0
- package/tsconfig.json +110 -0
- package/webpack.config.js +49 -0
package/docs/micl.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(()=>{const e="dialog.micl-bottomsheet",t=(()=>{var e=0;const t=t=>{let n=parseInt(window.getComputedStyle(t).getPropertyValue("max-height")),i=(t.dataset.snapheights||"").split(",").map(Number).filter(e=>!isNaN(e)&&e>0&&e<=n);return e||(e=t.getBoundingClientRect().height),[...new Set(i.concat([e,n]).sort())]},n=(e,n)=>{let i=e.getBoundingClientRect().height,o=t(e);return o.filter(e=>e>i+4)[0]||o[n?o.length-1:0]},i=(e,t)=>{e.style.setProperty("--md-sys-bottomsheet-height",`${t}px`)};return{initialize:e=>{if(!e.matches("dialog.micl-bottomsheet")||e.dataset.miclinitialized)return;e.dataset.miclinitialized="1";const o=e.querySelector(".micl-bottomsheet__headline");if(!o)return;const l=o.querySelector(".micl-bottomsheet__draghandle");l?.addEventListener("click",()=>{const t=n(e,!1);t>4&&i(e,t)});let a,r,s=!1,c=!1;function m(t){const n=t.clientY;s&&Math.abs(a-n)>4&&(s=!1,c=!0,e.classList.add("micl-bottomsheet--resizing")),c&&i(e,r+a-n)}function d(o){s=!1,e.classList.remove("micl-bottomsheet--resizing"),c&&(c=!1,o.clientY<a?i(e,n(e,!0)):e.getBoundingClientRect().height<48?(e.popover&&e.hidePopover(),i(e,r)):i(e,(e=>{let n=e.getBoundingClientRect().height,i=t(e),o=i.filter(e=>e<n-4);return o[o.length-1]||i[0]})(e)),document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",d))}o.addEventListener("mousedown",t=>{t.eventPhase===Event.AT_TARGET&&(s=!0,t.preventDefault(),a=t.clientY,r=e.getBoundingClientRect().height,document.addEventListener("mousemove",m),document.addEventListener("mouseup",d))})},cleanup:e=>{e.matches("dialog.micl-bottomsheet")&&delete e.dataset.miclinitialized}}})(),n="button[popovertarget],button.micl-button--toggle",i=(()=>{const e=e=>{e.target&&e.target instanceof HTMLButtonElement&&(e.target.popoverTargetElement instanceof HTMLDialogElement&&(e.target.popoverTargetElement.open?e.target.popoverTargetElement.close():e.target.popoverTargetElement.showModal()),e.target.classList.contains("micl-button--toggle")&&e.target.classList.toggle("micl-button--selected"))};return{initialize:t=>{t.matches("button[popovertarget],button.micl-button--toggle")&&!t.dataset.miclinitialized&&(t.dataset.miclinitialized="1",(t.popoverTargetElement instanceof HTMLDialogElement&&!t.popoverTargetElement.hasAttribute("popover")||t.classList.contains("micl-button--toggle"))&&t.addEventListener("click",e))},cleanup:t=>{t.matches("button[popovertarget],button.micl-button--toggle")&&(document.removeEventListener("click",e),delete t.dataset.miclinitialized)}}})(),o=".micl-checkbox",l={keydown:e=>{if(e.target.matches(o)&&e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&!e.target.disabled)switch(e.key){case"Enter":case" ":e.target.checked=!e.target.checked,e.preventDefault()}}},a=".micl-list-item-one,.micl-list-item-two,.micl-list-item-three",r=(()=>{const e=e=>!!e&&e.classList.contains("micl-list-item--disabled"),t=e=>!!e&&e.matches(":has(input[type=checkbox]:checked)");return{keydown:n=>{if(!(n instanceof KeyboardEvent&&n.target instanceof Element&&n.target.matches(".micl-list-item-one,.micl-list-item-two,.micl-list-item-three")))return;const i=n.target.parentElement;if(!i)return;let o=[];if(i instanceof HTMLDetailsElement?o=Array.from(i.parentElement?.children||[]).map(t=>{let n=t.querySelector(":scope > summary");return e(n)?null:n}).filter(e=>!!e):i instanceof HTMLUListElement&&(o=Array.from(i.children).map(t=>t instanceof HTMLLIElement&&!e(t)?t:null).filter(e=>!!e)),0===o.length)return;let l=o.findIndex(e=>t(e));-1===l&&(l=o.findIndex(e=>0===e.tabIndex)),-1===l&&(l=0);let a=l;switch(n.key){case"ArrowDown":a=(l+1)%o.length,n.preventDefault();break;case"ArrowUp":a=(l-1+o.length)%o.length,n.preventDefault();break;case"Tab":let e=o.findIndex(e=>t(e));-1===e?0!==l&&(o[l].tabIndex=-1,o[0].tabIndex=0):e!==l&&(o[l].tabIndex=-1,o[e].tabIndex=0);break;case"Enter":case" ":const i=n.target.querySelector("input[type=checkbox].micl-checkbox");i instanceof HTMLInputElement&&(i.checked=!i.checked)}a!==l&&(o[l].tabIndex=-1,o[a].tabIndex=0,o[a].focus())}}})(),s=".micl-menu[popover]",c=(()=>{const e=(e,t)=>{const n=e.getBoundingClientRect().y,i=t.getBoundingClientRect().y,o=window.getComputedStyle(t).getPropertyValue("transform-origin");return(n>i?"bottom ":"top ")+(parseInt(o)>0?"right":"left")};return{initialize:t=>{if(!t.matches(".micl-menu[popover]")||t.dataset.miclinitialized)return;t.dataset.miclinitialized="1";const n=document.querySelector(`[popovertarget="${t.id}"]`);n&&t.addEventListener("beforetoggle",i=>{"open"===i.oldState&&(t.style.transformOrigin=e(n,t))}),n&&t.addEventListener("toggle",i=>{"closed"===i.oldState&&(t.style.transformOrigin=e(n,t))})}}})(),m="input[type=range].micl-slider-xs,input[type=range].micl-slider-s,input[type=range].micl-slider-m,input[type=range].micl-slider-l,input[type=range].micl-slider-xl",d=(()=>{const e=String.fromCharCode(8226),t=String.fromCharCode(8201);return{initialize:n=>{n.style.setProperty("--md-sys-slider-max",n.max||"100"),n.style.setProperty("--md-sys-slider-min",n.min||"0"),n.style.setProperty("--md-sys-slider-value",n.value),n.style.setProperty("--md-sys-slider-tip",JSON.stringify(n.value+""));const i=n.getBoundingClientRect(),o=document.elementFromPoint(Math.max(i.x-1,0),Math.max(i.y-1,0));o&&(n.style.color=window.getComputedStyle(o).getPropertyValue("background-color"));const l=parseFloat(n.max),a=parseFloat(n.min),r=(e=>{const t=[],n=parseFloat(e.max),i=parseFloat(e.min);return e.list&&!isNaN(n)&&!isNaN(i)&&n>i&&e.list.querySelectorAll("option[value]").forEach(e=>{let o=parseFloat(e.value);!isNaN(o)&&o>=i&&o<=n&&t.push(o)}),t})(n).sort((e,t)=>e-t).map(e=>Math.round(100*(e-a)/(l-a)));if(r.length>0){const o=document.createElement("canvas"),l=o.getContext("2d");if(l){l.font=window.getComputedStyle(n).getPropertyValue("font");let o=l.measureText(t).width,a=l.measureText(e).width,s=i.width-10,c=0,m="";r.forEach(n=>{let i=s*n/100,l=Math.round((i-c)/o)-1;for(let e=0;e<l;e++)m+=t,c+=o;m+=e,c+=a}),n.dataset.miclsliderticks=m}o.remove()}else n.dataset.miclsliderticks=e},input:e=>{e.target.matches(".micl-slider-xs,.micl-slider-s,.micl-slider-m,.micl-slider-l,.micl-slider-xl")&&e.target instanceof HTMLInputElement&&!e.target.disabled&&(e.target.style.setProperty("--md-sys-slider-value",e.target.value),e.target.style.setProperty("--md-sys-slider-tip",JSON.stringify(e.target.value+"")))}}})(),u=".micl-textfield-outlined > input,.micl-textfield-filled > input",p=".micl-textfield-outlined > select,.micl-textfield-filled > select",g=(()=>{const e=".micl-textfield-character-counter";return{initialize:t=>{if(!t.dataset.miclinitialized&&(t.dataset.miclinitialized="1",t.value&&(t.dataset.miclvalue="1"),t instanceof HTMLInputElement&&t.maxLength)){const n=t.parentElement?.querySelector(e);n&&(n.textContent=`${t.value.length}/${t.maxLength}`)}},input:t=>{if(t.target.matches(`${u},${p}`)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLSelectElement)&&t.target.dataset.miclinitialized&&!t.target.disabled&&(t.target.value?t.target.dataset.miclvalue="1":delete t.target.dataset.miclvalue,t.target instanceof HTMLInputElement&&t.target.maxLength)){const n=t.target.parentElement?.querySelector(e);n&&(n.textContent=`${t.target.value.length}/${t.target.maxLength}`)}}}})();(()=>{const h={[e]:{component:t,type:HTMLDialogElement},[n]:{component:i,type:HTMLButtonElement},[o]:{component:l,type:HTMLInputElement},[a]:{component:r,type:HTMLElement},[s]:{component:c,type:HTMLElement},[p]:{component:g,type:HTMLSelectElement},[m]:{component:d,type:HTMLInputElement},[u]:{component:g,type:HTMLInputElement}},f=Object.keys(h).join(","),y=e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.matches(t)&&e instanceof i&&"function"==typeof n.initialize)return void n.initialize(e)},v=e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.matches(t)&&e instanceof i&&"function"==typeof n.cleanup)return void n.cleanup(e)};new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&(e.addedNodes.forEach(e=>{e instanceof HTMLElement&&(e.matches(f)&&y(e),e.querySelectorAll(f).forEach(y))}),e.removedNodes.forEach(e=>{e instanceof HTMLElement&&(e.matches(f)&&v(e),e.querySelectorAll(f).forEach(v))}))})}).observe(document.body,{childList:!0,subtree:!0}),document.querySelectorAll(f).forEach(y),document.querySelectorAll('[class*="micl-"]').forEach(e=>{window.getComputedStyle(e).getPropertyValue("--miclripple")&&e.addEventListener("pointerdown",t=>{if(t.currentTarget.classList.contains("micl-card--nonactionable"))return;const n=t.clientX,i=t.clientY,o=e.getBoundingClientRect(),l=2*Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2));e.style.cssText="--s:0;--o:1;",e.offsetTop,e.style.cssText=`--t:1;--o:0;--d:${l};--x:${n-o.left};--y:${i-o.top}`})}),document.addEventListener("input",e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.target.matches(t)&&e.target instanceof i&&"function"==typeof n.input)return void n.input(e)}),document.addEventListener("keydown",e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.target.matches(t)&&e.target instanceof i&&"function"==typeof n.keydown)return void n.keydown(e)})})()})()})();
|
package/docs/radio.html
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MICL Radio Buttons</title>
|
|
7
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=arrow_back,close,dark_mode&display=block">
|
|
8
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
9
|
+
<link rel="stylesheet" href="micl.css">
|
|
10
|
+
<link rel="stylesheet" href="docs.css">
|
|
11
|
+
<style>
|
|
12
|
+
label {
|
|
13
|
+
color: var(--md-sys-color-on-surface);
|
|
14
|
+
}
|
|
15
|
+
.micl-card-filled .micl-card__content {
|
|
16
|
+
padding-inline: 0;
|
|
17
|
+
}
|
|
18
|
+
.micl-card-outlined .micl-card__content {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: flex-end;
|
|
22
|
+
}
|
|
23
|
+
.radio {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
</head>
|
|
29
|
+
<body class="light">
|
|
30
|
+
<div class="headline">
|
|
31
|
+
<h1 class="md-sys-typescale-emphasized-display-small">Radio buttons</h1>
|
|
32
|
+
<div id="settings-placeholder"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="cards">
|
|
36
|
+
<div class="micl-card-elevated">
|
|
37
|
+
<div class="micl-card__content">
|
|
38
|
+
<div class="radio">
|
|
39
|
+
<input type="radio" class="micl-radio" id="myradio1" name="choices" checked value="c1">
|
|
40
|
+
<label for="myradio1" class="md-sys-typescale-body-medium">First Choice</label>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="radio">
|
|
43
|
+
<input type="radio" class="micl-radio" id="myradio2" name="choices" value="c2">
|
|
44
|
+
<label for="myradio2" class="md-sys-typescale-body-medium">Second Choice</label>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="radio">
|
|
47
|
+
<input type="radio" class="micl-radio" id="myradio3" name="choices" value="c3">
|
|
48
|
+
<label for="myradio3" class="md-sys-typescale-body-medium">Third Choice</label>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="radio">
|
|
51
|
+
<input type="radio" class="micl-radio" id="myradio4" name="choices" value="c4" disabled>
|
|
52
|
+
<label for="myradio4" class="md-sys-typescale-body-medium">Fourth Choice (disabled)</label>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="micl-card-filled">
|
|
57
|
+
<div class="micl-card__content">
|
|
58
|
+
<div class="radio">
|
|
59
|
+
<input type="radio" class="micl-radio" id="myradio11" name="alternatives" checked value="c1">
|
|
60
|
+
<label for="myradio11" class="md-sys-typescale-body-medium">First Choice</label>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="radio">
|
|
63
|
+
<input type="radio" class="micl-radio" id="myradio12" name="alternatives" value="c2">
|
|
64
|
+
<label for="myradio12" class="md-sys-typescale-body-medium">Second Choice</label>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="radio">
|
|
67
|
+
<input type="radio" class="micl-radio" id="myradio13" name="alternatives" value="c3">
|
|
68
|
+
<label for="myradio13" class="md-sys-typescale-body-medium">Third Choice</label>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="radio">
|
|
71
|
+
<input type="radio" class="micl-radio" id="myradio14" name="alternatives" value="c4" disabled>
|
|
72
|
+
<label for="myradio14" class="md-sys-typescale-body-medium">Fourth Choice (disabled)</label>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="micl-card-outlined">
|
|
77
|
+
<div class="micl-card__content">
|
|
78
|
+
<div class="radio">
|
|
79
|
+
<label for="myradio21" class="md-sys-typescale-body-medium">First Choice</label>
|
|
80
|
+
<input type="radio" class="micl-radio" id="myradio21" name="selection" checked value="c1">
|
|
81
|
+
</div>
|
|
82
|
+
<div class="radio">
|
|
83
|
+
<label for="myradio22" class="md-sys-typescale-body-medium">Second Choice</label>
|
|
84
|
+
<input type="radio" class="micl-radio" id="myradio22" name="selection" value="c2">
|
|
85
|
+
</div>
|
|
86
|
+
<div class="radio">
|
|
87
|
+
<label for="myradio23" class="md-sys-typescale-body-medium">Third Choice</label>
|
|
88
|
+
<input type="radio" class="micl-radio" id="myradio23" name="selection" value="c3">
|
|
89
|
+
</div>
|
|
90
|
+
<div class="radio">
|
|
91
|
+
<label for="myradio24" class="md-sys-typescale-body-medium">Fourth Choice (disabled)</label>
|
|
92
|
+
<input type="radio" class="micl-radio" id="myradio24" name="selection" value="c4" disabled>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<script src="micl.js"></script>
|
|
99
|
+
<script src="docs.js"></script>
|
|
100
|
+
</body>
|
|
101
|
+
</html>
|
package/docs/select.html
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MICL Selects</title>
|
|
7
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
8
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=check,confirmation_number,dark_mode,group,home,newspaper,person,settings&display=block">
|
|
9
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
10
|
+
<link rel="stylesheet" href="micl.css">
|
|
11
|
+
<link rel="stylesheet" href="docs.css">
|
|
12
|
+
<style>
|
|
13
|
+
.micl-card__content > .micl-textfield-outlined, .micl-card__content > .micl-textfield-filled {
|
|
14
|
+
margin: 32px 0;
|
|
15
|
+
}
|
|
16
|
+
.micl-list-item__thumbnail {
|
|
17
|
+
height: 32px;
|
|
18
|
+
min-height: 32px;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
</head>
|
|
22
|
+
<body class="light">
|
|
23
|
+
<div class="headline">
|
|
24
|
+
<h1 class="md-sys-typescale-emphasized-display-small">Selects</h1>
|
|
25
|
+
<div id="settings-placeholder"></div>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="cards">
|
|
29
|
+
<div class="micl-card-elevated">
|
|
30
|
+
<div class="micl-card__content">
|
|
31
|
+
<div class="micl-textfield-outlined">
|
|
32
|
+
<label for="myselect1">Country</label>
|
|
33
|
+
<select id="myselect1">
|
|
34
|
+
<option class="micl-list-item-one" value=""></option>
|
|
35
|
+
<option class="micl-list-item-one" value="AR">
|
|
36
|
+
<span class="micl-list-item__text">Argentina</span>
|
|
37
|
+
</option>
|
|
38
|
+
<option class="micl-list-item-one" value="BO">
|
|
39
|
+
<span class="micl-list-item__text">Bolivia</span>
|
|
40
|
+
</option>
|
|
41
|
+
<option class="micl-list-item-one" value="BR" disabled>
|
|
42
|
+
<span class="micl-list-item__text">Brazil</span>
|
|
43
|
+
</option>
|
|
44
|
+
<option class="micl-list-item-one" value="CL">
|
|
45
|
+
<span class="micl-list-item__text">Chile</span>
|
|
46
|
+
</option>
|
|
47
|
+
<option class="micl-list-item-one" value="CO">
|
|
48
|
+
<span class="micl-list-item__text">Colombia</span>
|
|
49
|
+
</option>
|
|
50
|
+
<option class="micl-list-item-one" value="EC">
|
|
51
|
+
<span class="micl-list-item__text">Ecuador</span>
|
|
52
|
+
</option>
|
|
53
|
+
</select>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="micl-textfield-outlined">
|
|
56
|
+
<label for="myselect2">Country</label>
|
|
57
|
+
<select id="myselect2">
|
|
58
|
+
<option class="micl-list-item-two" value="AR">
|
|
59
|
+
<span class="micl-list-item__text" aria-description="Country code: AR">Argentina</span>
|
|
60
|
+
</option>
|
|
61
|
+
<option class="micl-list-item-two" value="BO">
|
|
62
|
+
<span class="micl-list-item__text" aria-description="Country code: BO">Bolivia</span>
|
|
63
|
+
</option>
|
|
64
|
+
<option selected class="micl-list-item-two" value="BR">
|
|
65
|
+
<span class="micl-list-item__text" aria-description="Country code: BR">Brazil</span>
|
|
66
|
+
</option>
|
|
67
|
+
<option class="micl-list-item-two" value="CL" disabled>
|
|
68
|
+
<span class="micl-list-item__text" aria-description="Country code: CL">Chile</span>
|
|
69
|
+
</option>
|
|
70
|
+
<option class="micl-list-item-two" value="CO">
|
|
71
|
+
<span class="micl-list-item__text" aria-description="Country code: CO">Colombia</span>
|
|
72
|
+
</option>
|
|
73
|
+
<option class="micl-list-item-two" value="EC">
|
|
74
|
+
<span class="micl-list-item__text" aria-description="Country code: EC">Ecuador</span>
|
|
75
|
+
</option>
|
|
76
|
+
</select>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="micl-textfield-outlined">
|
|
79
|
+
<label for="myselect3">Country</label>
|
|
80
|
+
<select id="myselect3">
|
|
81
|
+
<option class="micl-list-item-two" value=""></option>
|
|
82
|
+
<option class="micl-list-item-two" value="AR">
|
|
83
|
+
<span class="micl-list-item__thumbnail" style="background-image:url(https://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Flag_of_Argentina.svg/330px-Flag_of_Argentina.svg.png)"></span>
|
|
84
|
+
<span class="micl-list-item__text" aria-description="Country code: AR">Argentina</span>
|
|
85
|
+
</option>
|
|
86
|
+
<option class="micl-list-item-two" value="BO">
|
|
87
|
+
<span class="micl-list-item__thumbnail" style="background-image:url(https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Bandera_de_Bolivia_%28Estado%29.svg/330px-Bandera_de_Bolivia_%28Estado%29.svg.png)"></span>
|
|
88
|
+
<span class="micl-list-item__text" aria-description="Country code: BO">Bolivia</span>
|
|
89
|
+
</option>
|
|
90
|
+
<option class="micl-list-item-two" value="BR">
|
|
91
|
+
<span class="micl-list-item__thumbnail" style="background-image:url(https://upload.wikimedia.org/wikipedia/en/thumb/0/05/Flag_of_Brazil.svg/330px-Flag_of_Brazil.svg.png)"></span>
|
|
92
|
+
<span class="micl-list-item__text" aria-description="Country code: BR">Brazil</span>
|
|
93
|
+
</option>
|
|
94
|
+
<option class="micl-list-item-two" value="CL">
|
|
95
|
+
<span class="micl-list-item__thumbnail" style="background-image:url(https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Flag_of_Chile.svg/330px-Flag_of_Chile.svg.png)"></span>
|
|
96
|
+
<span class="micl-list-item__text" aria-description="Country code: CL">Chile</span>
|
|
97
|
+
</option>
|
|
98
|
+
<option class="micl-list-item-two" value="CO" disabled>
|
|
99
|
+
<span class="micl-list-item__thumbnail" style="background-image:url(https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Flag_of_Colombia.svg/330px-Flag_of_Colombia.svg.png)"></span>
|
|
100
|
+
<span class="micl-list-item__text" aria-description="Country code: CO">Colombia</span>
|
|
101
|
+
</option>
|
|
102
|
+
<option class="micl-list-item-two" value="EC">
|
|
103
|
+
<span class="micl-list-item__thumbnail" style="background-image:url(https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Flag_of_Ecuador.svg/330px-Flag_of_Ecuador.svg.png)"></span>
|
|
104
|
+
<span class="micl-list-item__text" aria-description="Country code: EC">Ecuador</span>
|
|
105
|
+
</option>
|
|
106
|
+
</select>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<div class="micl-card-outlined">
|
|
112
|
+
<div class="micl-card__content" style="padding-block-end:32px">
|
|
113
|
+
<div class="micl-textfield-filled">
|
|
114
|
+
<label for="myselect4">Country</label>
|
|
115
|
+
<select id="myselect4">
|
|
116
|
+
<option class="micl-list-item-one" value=""></option>
|
|
117
|
+
<option class="micl-list-item-one" value="AR">
|
|
118
|
+
<span class="micl-list-item__text">Argentina</span>
|
|
119
|
+
</option>
|
|
120
|
+
<option class="micl-list-item-one" value="BO">
|
|
121
|
+
<span class="micl-list-item__text">Bolivia</span>
|
|
122
|
+
</option>
|
|
123
|
+
<option class="micl-list-item-one" value="BR" disabled>
|
|
124
|
+
<span class="micl-list-item__text">Brazil</span>
|
|
125
|
+
</option>
|
|
126
|
+
<option class="micl-list-item-one" value="CL">
|
|
127
|
+
<span class="micl-list-item__text">Chile</span>
|
|
128
|
+
</option>
|
|
129
|
+
<option class="micl-list-item-one" value="CO">
|
|
130
|
+
<span class="micl-list-item__text">Colombia</span>
|
|
131
|
+
</option>
|
|
132
|
+
<option class="micl-list-item-one" value="EC">
|
|
133
|
+
<span class="micl-list-item__text">Ecuador</span>
|
|
134
|
+
</option>
|
|
135
|
+
</select>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="micl-textfield-filled">
|
|
138
|
+
<label for="myselect5">Country</label>
|
|
139
|
+
<select id="myselect5" disabled>
|
|
140
|
+
<option class="micl-list-item-one" value=""></option>
|
|
141
|
+
<option class="micl-list-item-one" value="AR">
|
|
142
|
+
<span class="micl-list-item__text">Argentina</span>
|
|
143
|
+
</option>
|
|
144
|
+
<option class="micl-list-item-one" value="BO">
|
|
145
|
+
<span class="micl-list-item__text">Bolivia</span>
|
|
146
|
+
</option>
|
|
147
|
+
<option class="micl-list-item-one" value="BR" disabled>
|
|
148
|
+
<span class="micl-list-item__text">Brazil</span>
|
|
149
|
+
</option>
|
|
150
|
+
<option class="micl-list-item-one" value="CL">
|
|
151
|
+
<span class="micl-list-item__text">Chile</span>
|
|
152
|
+
</option>
|
|
153
|
+
<option class="micl-list-item-one" value="CO">
|
|
154
|
+
<span class="micl-list-item__text">Colombia</span>
|
|
155
|
+
</option>
|
|
156
|
+
<option class="micl-list-item-one" value="EC">
|
|
157
|
+
<span class="micl-list-item__text">Ecuador</span>
|
|
158
|
+
</option>
|
|
159
|
+
</select>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<dialog id="mydialog" class="micl-dialog" style="width:300px" closedby="any" popover>
|
|
163
|
+
<div class="micl-dialog__headline">
|
|
164
|
+
<h2>Select a country</h2>
|
|
165
|
+
<span class="micl-dialog__supporting-text">Select a country from the pick list below and click <b>Save</b></span>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="micl-dialog__content">
|
|
168
|
+
<div class="micl-textfield-outlined" style="margin:8px">
|
|
169
|
+
<label for="myselect5">Country</label>
|
|
170
|
+
<select id="myselect5">
|
|
171
|
+
<option class="micl-list-item-two" value="AR">
|
|
172
|
+
<span class="micl-list-item__text" aria-description="Country code: AR">Argentina</span>
|
|
173
|
+
</option>
|
|
174
|
+
<option class="micl-list-item-two" value="BO">
|
|
175
|
+
<span class="micl-list-item__text" aria-description="Country code: BO">Bolivia</span>
|
|
176
|
+
</option>
|
|
177
|
+
<option selected class="micl-list-item-two" value="BR">
|
|
178
|
+
<span class="micl-list-item__text" aria-description="Country code: BR">Brazil</span>
|
|
179
|
+
</option>
|
|
180
|
+
<option class="micl-list-item-two" value="CL" disabled>
|
|
181
|
+
<span class="micl-list-item__text" aria-description="Country code: CL">Chile</span>
|
|
182
|
+
</option>
|
|
183
|
+
<option class="micl-list-item-two" value="CO">
|
|
184
|
+
<span class="micl-list-item__text" aria-description="Country code: CO">Colombia</span>
|
|
185
|
+
</option>
|
|
186
|
+
<option class="micl-list-item-two" value="EC">
|
|
187
|
+
<span class="micl-list-item__text" aria-description="Country code: EC">Ecuador</span>
|
|
188
|
+
</option>
|
|
189
|
+
</select>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
<div class="micl-dialog__actions">
|
|
193
|
+
<button type="button" class="micl-button-text-s" popovertarget="mydialog">Cancel</button>
|
|
194
|
+
<button type="button" class="micl-button-text-s">Save</button>
|
|
195
|
+
</div>
|
|
196
|
+
</dialog>
|
|
197
|
+
<button type="button" class="micl-button-elevated-m" popovertarget="mydialog">Open Dialog with Select</button>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<script src="micl.js"></script>
|
|
203
|
+
<script src="docs.js"></script>
|
|
204
|
+
</body>
|
|
205
|
+
</html>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MICL Side Sheets</title>
|
|
7
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
8
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=arrow_back,close,dark_mode&display=block">
|
|
9
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
10
|
+
<link rel="stylesheet" href="micl.css">
|
|
11
|
+
<link rel="stylesheet" href="docs.css">
|
|
12
|
+
<style>
|
|
13
|
+
.micl-card__content {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
padding-block: 32px;
|
|
18
|
+
row-gap: 32px;
|
|
19
|
+
}
|
|
20
|
+
p {
|
|
21
|
+
color: var(--md-sys-color-on-surface);
|
|
22
|
+
}
|
|
23
|
+
.switch {
|
|
24
|
+
display: flex;
|
|
25
|
+
width: 100%;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
height: 48px;
|
|
29
|
+
}
|
|
30
|
+
input[type=checkbox].micl-switch {
|
|
31
|
+
--md-sys-switch-unselected-icon: "";
|
|
32
|
+
}
|
|
33
|
+
#mysidesheet2 {
|
|
34
|
+
--md-sys-divider-thickness: 0;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
</head>
|
|
38
|
+
<body class="light">
|
|
39
|
+
<div class="headline">
|
|
40
|
+
<h1 class="md-sys-typescale-emphasized-display-small">Side sheets</h1>
|
|
41
|
+
<div id="settings-placeholder"></div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="cards">
|
|
45
|
+
<div class="micl-card-filled">
|
|
46
|
+
<div class="micl-card__content">
|
|
47
|
+
<dialog id="mysidesheet1" class="micl-sidesheet" closedby="any" popover>
|
|
48
|
+
<div class="micl-sidesheet__headline">
|
|
49
|
+
<h2>Title</h2>
|
|
50
|
+
<button class="micl-iconbutton-standard-s material-symbols-outlined" popovertarget="mysidesheet1">close</button>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="micl-sidesheet__content">
|
|
53
|
+
<p>Lorem ipsum dolor sit amet consectetur adipiscing elit, fringilla commodo proin natoque lobortis maecenas penatibus volutpat, dapibus erat tortor gravida augue torquent. Vitae tortor torquent suspendisse sem quisque etiam parturient eleifend, platea lacinia orci lacus pulvinar sociosqu habitasse accumsan, nisi inceptos ut tellus ornare gravida natoque. Velit fusce viverra cursus dignissim sollicitudin eros at bibendum tempus porta risus, torquent urna est mus euismod interdum enim gravida mattis.</p>
|
|
54
|
+
<p>Potenti facilisis litora porta tincidunt semper vulputate himenaeos conubia ullamcorper, lacinia a consequat malesuada molestie pharetra interdum sed ut neque, sociosqu libero id montes rhoncus vestibulum suscipit fringilla. Dis sed est risus pulvinar eleifend, aliquet orci quis leo. Penatibus neque nibh cras nostra magnis vivamus, quis conubia sociis diam class, euismod et quisque metus fames. Feugiat donec magnis fusce elementum dis imperdiet velit convallis eget, maecenas sed sem lectus class facilisis posuere sociosqu, himenaeos taciti habitant orci senectus bibendum dignissim cursus.</p>
|
|
55
|
+
<p>Per faucibus aliquet vivamus convallis curabitur massa habitasse aliquam ante pulvinar cubilia, nullam euismod vulputate nostra fermentum sagittis duis primis curae non viverra, cursus malesuada facilisi nisl blandit integer sem rhoncus odio nibh. Imperdiet eleifend bibendum lacinia non nec donec malesuada platea leo feugiat parturient, aptent duis sociis scelerisque natoque mus dui quam ullamcorper varius, mollis egestas velit nibh id quisque et ante sociosqu torquent. Pharetra placerat netus ligula nulla etiam ultricies, fames nibh varius massa orci ad, senectus penatibus quis leo semper. Aptent nisi auctor metus augue suspendisse commodo eu lacinia neque laoreet leo venenatis pharetra aliquet habitasse tellus, urna volutpat torquent accumsan sollicitudin lectus viverra nostra fusce primis maecenas sociis magnis netus porttitor.</p>
|
|
56
|
+
<p>Mus phasellus nostra aliquet euismod faucibus per curae nec, montes rutrum cursus suscipit fames vivamus tincidunt, ullamcorper fermentum diam commodo arcu proin velit. Sociosqu mollis donec himenaeos eleifend ultricies id purus hac, dictum duis neque blandit ullamcorper condimentum sapien dis porttitor, mauris bibendum nostra vivamus faucibus orci metus. Facilisi bibendum himenaeos auctor tempor sed sociosqu nullam, ad class parturient odio enim ut tincidunt cras, in cum sapien inceptos consequat vitae.</p>
|
|
57
|
+
</div>
|
|
58
|
+
</dialog>
|
|
59
|
+
<button type="button" class="micl-button-filled-m" popovertarget="mysidesheet1">Open Standard Sheet</button>
|
|
60
|
+
|
|
61
|
+
<dialog id="mysidesheet2" class="micl-sidesheet" closedby="any" popover>
|
|
62
|
+
<div class="micl-sidesheet__headline">
|
|
63
|
+
<h2>Title</h2>
|
|
64
|
+
<button class="micl-iconbutton-standard-s material-symbols-outlined" popovertarget="mysidesheet2">close</button>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="micl-sidesheet__content">
|
|
67
|
+
<p>Lorem ipsum dolor sit amet consectetur adipiscing elit, fringilla commodo proin natoque lobortis maecenas penatibus volutpat, dapibus erat tortor gravida augue torquent. Vitae tortor torquent suspendisse sem quisque etiam parturient eleifend, platea lacinia orci lacus pulvinar sociosqu habitasse accumsan, nisi inceptos ut tellus ornare gravida natoque. Velit fusce viverra cursus dignissim sollicitudin eros at bibendum tempus porta risus, torquent urna est mus euismod interdum enim gravida mattis.</p>
|
|
68
|
+
<p>Potenti facilisis litora porta tincidunt semper vulputate himenaeos conubia ullamcorper, lacinia a consequat malesuada molestie pharetra interdum sed ut neque, sociosqu libero id montes rhoncus vestibulum suscipit fringilla. Dis sed est risus pulvinar eleifend, aliquet orci quis leo. Penatibus neque nibh cras nostra magnis vivamus, quis conubia sociis diam class, euismod et quisque metus fames. Feugiat donec magnis fusce elementum dis imperdiet velit convallis eget, maecenas sed sem lectus class facilisis posuere sociosqu, himenaeos taciti habitant orci senectus bibendum dignissim cursus.</p>
|
|
69
|
+
<p>Per faucibus aliquet vivamus convallis curabitur massa habitasse aliquam ante pulvinar cubilia, nullam euismod vulputate nostra fermentum sagittis duis primis curae non viverra, cursus malesuada facilisi nisl blandit integer sem rhoncus odio nibh. Imperdiet eleifend bibendum lacinia non nec donec malesuada platea leo feugiat parturient, aptent duis sociis scelerisque natoque mus dui quam ullamcorper varius, mollis egestas velit nibh id quisque et ante sociosqu torquent. Pharetra placerat netus ligula nulla etiam ultricies, fames nibh varius massa orci ad, senectus penatibus quis leo semper. Aptent nisi auctor metus augue suspendisse commodo eu lacinia neque laoreet leo venenatis pharetra aliquet habitasse tellus, urna volutpat torquent accumsan sollicitudin lectus viverra nostra fusce primis maecenas sociis magnis netus porttitor.</p>
|
|
70
|
+
<p>Mus phasellus nostra aliquet euismod faucibus per curae nec, montes rutrum cursus suscipit fames vivamus tincidunt, ullamcorper fermentum diam commodo arcu proin velit. Sociosqu mollis donec himenaeos eleifend ultricies id purus hac, dictum duis neque blandit ullamcorper condimentum sapien dis porttitor, mauris bibendum nostra vivamus faucibus orci metus. Facilisi bibendum himenaeos auctor tempor sed sociosqu nullam, ad class parturient odio enim ut tincidunt cras, in cum sapien inceptos consequat vitae.</p>
|
|
71
|
+
</div>
|
|
72
|
+
</dialog>
|
|
73
|
+
<button type="button" class="micl-button-filled-m" popovertarget="mysidesheet2">Open Standard Sheet without dividers</button>
|
|
74
|
+
|
|
75
|
+
<dialog id="mysidesheet3" class="micl-sidesheet" closedby="closerequest">
|
|
76
|
+
<div class="micl-sidesheet__headline">
|
|
77
|
+
<button class="micl-iconbutton-standard-s material-symbols-outlined">arrow_back</button>
|
|
78
|
+
<h2>Title</h2>
|
|
79
|
+
<button class="micl-iconbutton-standard-s material-symbols-outlined" popovertarget="mysidesheet3">close</button>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="micl-sidesheet__content">
|
|
82
|
+
<p class="md-sys-typescale-body-medium" style="padding-top:1rem">Make your selection:</p>
|
|
83
|
+
<div class="switch">
|
|
84
|
+
<label for="cb01" class="md-sys-typescale-body-medium">Selection A</label>
|
|
85
|
+
<input type="checkbox" id="cb01" class="micl-switch">
|
|
86
|
+
</div>
|
|
87
|
+
<div class="switch">
|
|
88
|
+
<label for="cb02" class="md-sys-typescale-body-medium">Selection B</label>
|
|
89
|
+
<input type="checkbox" id="cb02" class="micl-switch" checked>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="switch">
|
|
92
|
+
<label for="cb03" class="md-sys-typescale-body-medium">Selection C</label>
|
|
93
|
+
<input type="checkbox" id="cb03" class="micl-switch">
|
|
94
|
+
</div>
|
|
95
|
+
<div class="switch">
|
|
96
|
+
<label for="cb04" class="md-sys-typescale-body-medium">Selection D</label>
|
|
97
|
+
<input type="checkbox" id="cb04" class="micl-switch" checked>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="switch">
|
|
100
|
+
<label for="cb05" class="md-sys-typescale-body-medium">Selection E</label>
|
|
101
|
+
<input type="checkbox" id="cb05" class="micl-switch">
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="micl-sidesheet__actions">
|
|
105
|
+
</div>
|
|
106
|
+
</dialog>
|
|
107
|
+
<button type="button" class="micl-button-filled-m" popovertarget="mysidesheet3">Open Modal Sheet</button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
<script src="micl.js"></script>
|
|
113
|
+
<script src="docs.js"></script>
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
package/docs/slider.html
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MICL Sliders</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
10
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=dark_mode,volume_up&display=block">
|
|
11
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
12
|
+
<link rel="stylesheet" href="micl.css">
|
|
13
|
+
<link rel="stylesheet" href="docs.css">
|
|
14
|
+
<style>
|
|
15
|
+
.micl-card-elevated, .micl-card-filled, .micl-card-outlined {
|
|
16
|
+
padding: 0 16px;
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
.range {
|
|
20
|
+
margin: 64px 8px;
|
|
21
|
+
}
|
|
22
|
+
.micl-card-elevated input[type=range] {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
.micl-card-filled input[type=range] {
|
|
26
|
+
height: 360px;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
<body class="light">
|
|
31
|
+
<div class="headline">
|
|
32
|
+
<h1 class="md-sys-typescale-emphasized-display-small">Sliders</h1>
|
|
33
|
+
<div id="settings-placeholder"></div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="cards">
|
|
37
|
+
<div class="micl-card-elevated">
|
|
38
|
+
<div class="range">
|
|
39
|
+
<input type="range" class="micl-slider-xs" min="1" max="10" value="6">
|
|
40
|
+
</div>
|
|
41
|
+
<div class="range">
|
|
42
|
+
<input type="range" class="micl-slider-s" min="0" max="100" value="25" step="25" list="markers">
|
|
43
|
+
<datalist id="markers">
|
|
44
|
+
<option value="0"></option>
|
|
45
|
+
<option value="25"></option>
|
|
46
|
+
<option value="50"></option>
|
|
47
|
+
<option value="75"></option>
|
|
48
|
+
<option value="100"></option>
|
|
49
|
+
</datalist>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="range micl-slider__container">
|
|
52
|
+
<span class="micl-slider__icon material-symbols-outlined">volume_up</span>
|
|
53
|
+
<input type="range" class="micl-slider-m" min="3.5" max="12.5" value="9.5" step="0.5">
|
|
54
|
+
</div>
|
|
55
|
+
<div class="range">
|
|
56
|
+
<input type="range" class="micl-slider-l" value="0">
|
|
57
|
+
</div>
|
|
58
|
+
<div class="range">
|
|
59
|
+
<input type="range" class="micl-slider-xl" disabled>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="micl-card-filled">
|
|
63
|
+
<div class="range">
|
|
64
|
+
<input type="range" class="micl-slider-xl micl-slider--vertical">
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<script src="micl.js"></script>
|
|
70
|
+
<script src="docs.js"></script>
|
|
71
|
+
</body>
|
|
72
|
+
</html>
|