-
Notifications
You must be signed in to change notification settings - Fork 4
feat/upload-post #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
feat/upload-post #190
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c9d5192
feat/upload-post
grv-saini-20 b5c2d9c
fix: conflicts
grv-saini-20 ca12273
fix: destroy pane on cancel
grv-saini-20 0be364c
fix: radio input
grv-saini-20 b83ef6d
fix: cursor grab
grv-saini-20 fb44a46
fix: modal view
grv-saini-20 5863565
fix: modal view
grv-saini-20 facdbd4
fix: layout enhancement
grv-saini-20 6cab184
fix: layout scroll
grv-saini-20 fca0cf5
fix: layout scroll
grv-saini-20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 23 additions & 10 deletions
33
platforms/metagram/src/lib/fragments/InputFile/InputFile.svelte
This file contains hidden or 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 hidden or 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 hidden or 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
17 changes: 17 additions & 0 deletions
17
platforms/metagram/src/lib/ui/Textarea/Textarea.stories.ts
This file contains hidden or 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,17 @@ | ||
import { Textarea } from '..'; | ||
|
||
export default { | ||
title: 'UI/Textarea', | ||
component: Textarea, | ||
tags: ['autodocs'], | ||
render: (args: { type: string; placeholder: string }) => ({ | ||
Component: Textarea, | ||
props: args | ||
}) | ||
}; | ||
This conversation was marked as resolved.
Show resolved
Hide resolved
|
||
|
||
export const Main = { | ||
args: { | ||
placeholder: 'Joe Biden' | ||
} | ||
}; |
This file contains hidden or 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,32 @@ | ||
<script lang="ts"> | ||
import { cn } from '$lib/utils'; | ||
import type { HTMLTextareaAttributes } from 'svelte/elements'; | ||
interface IInputProps extends HTMLTextareaAttributes { | ||
textarea?: HTMLTextAreaElement; | ||
value: string | number | any; | ||
This conversation was marked as resolved.
Show resolved
Hide resolved
|
||
placeholder?: string; | ||
} | ||
let { | ||
textarea = $bindable(), | ||
value = $bindable(), | ||
placeholder = '', | ||
...restProps | ||
}: IInputProps = $props(); | ||
const cbase = $derived( | ||
'w-full bg-grey resize-none py-3.5 px-6 text-[15px] text-black-800 font-geist font-normal placeholder:text-black-600 rounded-4xl outline-0 border border-transparent invalid:border-red invalid:text-red focus:invalid:text-black-800 focus:invalid:border-transparent' | ||
); | ||
</script> | ||
|
||
<!-- svelte-ignore element_invalid_self_closing_tag --> | ||
<textarea | ||
{...restProps} | ||
rows={6} | ||
{placeholder} | ||
bind:value | ||
bind:this={textarea} | ||
class={cn([cbase, restProps.class].join(' '))} | ||
tabindex="0" | ||
/> |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.