chore: lift components folder

This commit is contained in:
Eric Liu 2020-07-19 09:06:08 -07:00
commit 2200b29b92
301 changed files with 57 additions and 76 deletions

View file

@ -1,31 +0,0 @@
<script>
export let disabled = false;
export let hidden = false;
export let text = "";
export let value = "";
import { getContext, onDestroy } from "svelte";
const ctx = getContext("Select") || getContext("TimePickerSelect");
let selected = false;
const unsubscribe = ctx.selectedValue.subscribe($ => {
selected = $ === value;
});
onDestroy(() => {
unsubscribe();
});
</script>
<option
{value}
{disabled}
{hidden}
{selected}
class:bx--select-option={true}
class={$$restProps.class}
style={$$restProps.style}>
{text || value}
</option>