forked from tsai/budibase
14 changed files with 203 additions and 149 deletions
@ -0,0 +1,25 @@ |
|||||
|
<form class="spectrum-Search"> |
||||
|
<div class="spectrum-Textfield"> |
||||
|
<svg |
||||
|
class="spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-icon" |
||||
|
focusable="false" |
||||
|
aria-hidden="true"> |
||||
|
<use xlink:href="#spectrum-icon-18-Magnify" /> |
||||
|
</svg> |
||||
|
<input |
||||
|
type="search" |
||||
|
placeholder="Search" |
||||
|
name="search" |
||||
|
value="" |
||||
|
class="spectrum-Textfield-input spectrum-Search-input" |
||||
|
autocomplete="off" /> |
||||
|
</div> |
||||
|
<button type="reset" class="spectrum-ClearButton spectrum-Search-clearButton"> |
||||
|
<svg |
||||
|
class="spectrum-Icon spectrum-UIIcon-Cross75" |
||||
|
focusable="false" |
||||
|
aria-hidden="true"> |
||||
|
<use xlink:href="#spectrum-css-icon-Cross75" /> |
||||
|
</svg> |
||||
|
</button> |
||||
|
</form> |
||||
@ -0,0 +1,19 @@ |
|||||
|
<script context="module"> |
||||
|
export const directions = ["n", "ne", "e", "se", "s", "sw", "w", "nw"] |
||||
|
</script> |
||||
|
|
||||
|
<script> |
||||
|
export let direction = "n" |
||||
|
export let name = "Add" |
||||
|
export let hidden = false |
||||
|
export let s = false |
||||
|
export let m = false; |
||||
|
export let l = false; |
||||
|
export let xl = false |
||||
|
|
||||
|
$: rotation = directions.indexOf(direction) * 45 |
||||
|
</script> |
||||
|
|
||||
|
<svg on:click class:spectrum-Icon--sizeS={s} class:spectrum-Icon--sizeM={m} class:spectrum-Icon--sizeL={l} class:spectrum-Icon--sizeXL={xl} class="spectrum-Icon" focusable="false" aria-hidden={hidden} aria-label="{name}" style={`transform: rotate(${rotation}deg)`}> |
||||
|
<use xlink:href="#spectrum-icon-18-{name}" /> |
||||
|
</svg> |
||||
Loading…
Reference in new issue