generated from prokawsar/dashboard-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
133 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts"> | ||
export let disabled = false | ||
export let text = '' | ||
export let classNames = '' | ||
</script> | ||
|
||
<button | ||
{disabled} | ||
class="border border-gray-400 rounded-md text-teal-600 font-semibold px-3 py-1 w-fit disabled:text-opacity-60 {classNames}" | ||
on:click | ||
> | ||
{text} | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
<script lang="ts"> | ||
import { focusedInputStore } from '$lib/stores' | ||
import { makeid } from '$lib/utils/tools' | ||
export let id: string = makeid(3) | ||
export let value: string | ||
export let placeholder: string = '' | ||
export let disabled: boolean = false | ||
let inputRef: HTMLInputElement | ||
</script> | ||
|
||
<input | ||
bind:this={inputRef} | ||
{id} | ||
{disabled} | ||
class="input-field focus:outline-dashed focus:outline-gray-600" | ||
class="input-field focus:!border-[1.5px] focus:!border-teal-500 focus:outline-none" | ||
type="number" | ||
{placeholder} | ||
bind:value | ||
on:keydown | ||
on:focus | ||
on:focus={() => ($focusedInputStore = inputRef)} | ||
/> | ||
|
||
<style lang="postcss"> | ||
.input-field { | ||
@apply border border-dashed border-gray-200 p-1 rounded w-full outline-offset-1; | ||
@apply border border-gray-400 w-14 p-1 rounded; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export type Paper = { | ||
id: string | ||
height: string | ||
length: string | ||
width: string | ||
thickness: string | ||
rate: string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters