Skip to content

Commit

Permalink
feat(Message): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 8, 2023
1 parent e4552b4 commit 2fefcea
Show file tree
Hide file tree
Showing 7 changed files with 745 additions and 242 deletions.
277 changes: 228 additions & 49 deletions src/plugins/components/message/index.ts

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions src/plugins/components/message/message.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as variants from './message.variants'
*/
export const Message = ({
type = 'success',
shape = 'rounded',
rounded = 'sm',
closable,
icon,
message,
Expand All @@ -21,7 +21,7 @@ export const Message = ({
class=${[
'nui-message',
type && variants.type[type],
shape && variants.shape[shape],
rounded && variants.rounded[rounded],
classes?.wrapper,
]
.filter(Boolean)
Expand All @@ -40,7 +40,10 @@ export const Message = ({
type="button"
tabindex="0"
class="nui-message-close"
class=${['nui-message-close', shape && variants.shape[shape]]
class=${[
'nui-message-close',
rounded && variants.rounded[rounded],
]
.filter(Boolean)
.join(' ')}
>
Expand Down
Loading

0 comments on commit 2fefcea

Please sign in to comment.