-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: cleanup box * fix: bring back classes and fix props * feat: bring back props * fix: cleanup and remove backsticks * fix amount filter css
- Loading branch information
1 parent
fb2d811
commit 2ef97ea
Showing
6 changed files
with
31 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ | |
|
||
<style lang="scss"> | ||
filter-item { | ||
:global(box) { | ||
:global(box-content) { | ||
@apply p-2; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
<script lang="ts"> | ||
export let col = false | ||
export let row = false | ||
export let clearBackground = false | ||
export let clearPadding = false | ||
export let backgroundColor = 'gray-50' | ||
export let darkBackgroundColor = 'gray-850' | ||
export let classes = '' | ||
export let col: boolean = false | ||
export let row: boolean = false | ||
export let clearBackground: boolean = false | ||
export let clearPadding: boolean = false | ||
export let backgroundColor: string = 'gray-50' | ||
export let darkBackgroundColor: string = 'gray-850' | ||
export let classes: string = '' | ||
</script> | ||
|
||
<box | ||
class={` | ||
w-full flex rounded-lg | ||
${col ? 'flex-col' : ''} | ||
${row ? 'flex-row' : ''} | ||
${clearPadding ? '' : 'px-4 py-4'} | ||
${backgroundColor && !clearBackground ? 'bg-' + backgroundColor : ''} | ||
${darkBackgroundColor && !clearBackground ? 'dark:bg-' + darkBackgroundColor : ''} | ||
${classes} | ||
`} | ||
<box-content | ||
class="w-full flex rounded-lg | ||
{clearPadding ? '' : 'px-4 py-4'} | ||
{backgroundColor && !clearBackground ? 'bg-' + backgroundColor : ''} | ||
{darkBackgroundColor && !clearBackground ? 'dark:bg-' + darkBackgroundColor : ''} {classes}" | ||
class:flex-col={col} | ||
class:flex-row={row} | ||
> | ||
<slot /> | ||
</box> | ||
</box-content> |
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