-
Notifications
You must be signed in to change notification settings - Fork 451
Modal Component & Custom UI Components #4908
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
4ab7c17
[feature] Add model selector dialog integration and custom component …
viva-jinyi 65022ad
[refactor] apply code reviews
viva-jinyi 096693a
[refactor] Improve modal dialog components based on PR feedback
viva-jinyi 127c4f9
[feature] Add right panel support and improve modal transitions
viva-jinyi a570ad1
fix: code review
viva-jinyi c066894
feature: searchbox added
viva-jinyi f303611
feature: MultiSelect added
viva-jinyi 664716e
feature: multiSelect added
viva-jinyi 1cc6a96
feature: singleSelect border style added
viva-jinyi 22eeba0
feature: implement Textbutton
viva-jinyi 28491a9
feature: Morebutton added
viva-jinyi f8f1b52
feature: icon Text button
viva-jinyi 2000421
feature: icon button group added
viva-jinyi a29ca2b
feature: Add size and class props to IconButton component
viva-jinyi 26a2f0c
feature: Implement unified button system and card components
viva-jinyi 0f83615
style: button style added
viva-jinyi 15d5367
feature: Add CardDescription and CardTitle components
viva-jinyi e0e01f3
fix: checkbox style
viva-jinyi 6017fb4
fix: baseWidgetLayout style bug
viva-jinyi d6a6577
chore: add design system components to knip ignore list
viva-jinyi 55c9ade
fix: add missing @types/lodash dev dependency
viva-jinyi 3394aea
style: navigation style fixed
viva-jinyi 3e16b82
fix: update CardContainer to use inline styles for dynamic width values
viva-jinyi 5597cf8
chore: add more design system components to knip ignore list
viva-jinyi 224021f
fix: error
viva-jinyi 8cd1bb0
[fix] Address PR review comments
viva-jinyi f56bc42
feature: multiSelect, SingleSelect style deleted according to Claude …
viva-jinyi 98cb1ce
feature: duplicated style deleted
viva-jinyi 0db8adf
feature: fallback title added
viva-jinyi 141e78b
fix: popover border added
viva-jinyi a8f7401
feature: hasIcon props
viva-jinyi 748357a
feature: hasfoldericon
viva-jinyi 4217579
fix: vertical center align
viva-jinyi f6e8324
feature: directory modified
viva-jinyi 6649227
fix: deleted lodash in package
viva-jinyi 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
feature: implement Textbutton
- Loading branch information
commit 22eeba0e40c1035923a856ad9345675c97349fcc
There are no files selected for viewing
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,33 @@ | ||
| <template> | ||
| <button :class="buttonStyle" role="button" @click="onClick"> | ||
| <span class="text-sm">{{ label }}</span> | ||
| </button> | ||
| </template> | ||
|
|
||
| <script setup lang="ts"> | ||
| import { computed } from 'vue' | ||
|
|
||
| const { | ||
| type = 'primary', | ||
| label, | ||
| onClick | ||
| } = defineProps<{ | ||
| type?: 'primary' | 'secondary' | ||
| label: string | ||
| onClick: () => void | ||
| }>() | ||
|
|
||
| const buttonStyle = computed(() => { | ||
| const baseClasses = | ||
| 'flex justify-center items-center flex-shrink-0 outline-none border-none px-2.5 py-2 rounded-lg cursor-pointer transition-all duration-200' | ||
|
|
||
| switch (type) { | ||
| case 'primary': | ||
| return `${baseClasses} bg-neutral-900 text-white dark-theme:bg-white dark-theme:text-neutral-900` | ||
| case 'secondary': | ||
| return `${baseClasses} bg-white text-neutral dark-theme:bg-zinc-700` | ||
| default: | ||
| return `${baseClasses} bg-white text-neutral dark-theme:bg-zinc-700` | ||
| } | ||
| }) | ||
| </script> |
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
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
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.