Skip to content

Commit

Permalink
feat: create message plugin component (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Sacha Stafyniak <sacha@digisquad.io>
  • Loading branch information
bpsmartdesign and stafyniaksacha authored Jul 23, 2023
1 parent d52d631 commit 8df0df4
Show file tree
Hide file tree
Showing 3 changed files with 500 additions and 0 deletions.
161 changes: 161 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,167 @@ export default withShurikenUI({
text: 'primary-800',
textDark: 'primary-200',
},
message: {
messageIconOuter: {
size: '10',
icon: {
size: '5',
text: 'white',
},
},
messageInnerText: {
text: 'sm',
textColor: 'muted-800',
font: 'sans',
},
messageClose: {
text: 'muted-800',
rounded: 'full',
duration: '200',
iconSize: '4',
space: '1',
},
rounded: {
default: 'md',
smooth: 'lg',
curved: 'xl',
full: 'full',
},
messageDefault: {
bg: 'white',
bgDark: 'muted-800',
border: 'muted-200',
borderDark: 'muted-700',
outer: {
bg: 'muted-600',
bgDark: 'muted-900',
text: 'white',
},
close: {
textDark: 'muted-500',
bgHoverEnabled: 'muted-300/50',
bgHoverEnabledDark: 'muted-500/30',
bgFocusVisible: 'muted-300/50',
bgFocusVisibleDark: 'muted-500/30',
bgActiveEnabled: 'muted-300/20',
bgActiveEnabledDark: 'muted-500/20',
},
},
messageMuted: {
bg: 'muted-100',
bgDark: 'muted-500/10',
border: 'muted-200',
borderDark: 'muted-700',
outer: {
bg: 'muted-400',
text: 'white',
bgDark: 'muted-900',
},
close: {
textDark: 'muted-500',
bgHoverEnabled: 'muted-300/50',
bgHoverEnabledDark: 'muted-500/30',
bgFocusVisible: 'muted-300/50',
bgFocusVisibleDark: 'muted-500/30',
bgActiveEnabled: 'muted-300/20',
bgActiveEnabledDark: 'muted-500/20',
},
},
messagePrimary: {
bg: 'primary-100',
bgDark: 'primary-500/10',
border: 'primary-200',
borderDark: 'primary-700',
outer: {
bg: 'primary-500',
text: 'white',
},
close: {
textDark: 'primary-500',
bgHoverEnabled: 'primary-300/50',
bgHoverEnabledDark: 'primary-500/30',
bgFocusVisible: 'primary-300/50',
bgFocusVisibleDark: 'primary-500/30',
bgActiveEnabled: 'primary-300/20',
bgActiveEnabledDark: 'primary-500/20',
},
},
messageInfo: {
bg: 'info-100',
bgDark: 'info-500/10',
border: 'info-200',
borderDark: 'info-700',
outer: {
bg: 'info-500',
text: 'white',
},
close: {
textDark: 'info-500',
bgHoverEnabled: 'info-300/50',
bgHoverEnabledDark: 'info-500/30',
bgFocusVisible: 'info-300/50',
bgFocusVisibleDark: 'info-500/30',
bgActiveEnabled: 'info-300/20',
bgActiveEnabledDark: 'info-500/20',
},
},
messageSuccess: {
bg: 'success-100',
bgDark: 'success-500/10',
border: 'success-200',
borderDark: 'success-700',
outer: {
bg: 'success-500',
text: 'white',
},
close: {
textDark: 'success-500',
bgHoverEnabled: 'success-300/50',
bgHoverEnabledDark: 'success-500/30',
bgFocusVisible: 'success-300/50',
bgFocusVisibleDark: 'success-500/30',
bgActiveEnabled: 'success-300/20',
bgActiveEnabledDark: 'success-500/20',
},
},
messageWarning: {
bg: 'warning-100',
bgDark: 'warning-500/10',
border: 'warning-200',
borderDark: 'warning-700',
outer: {
bg: 'warning-500',
text: 'white',
},
close: {
textDark: 'warning-500',
bgHoverEnabled: 'warning-300/50',
bgHoverEnabledDark: 'warning-500/30',
bgFocusVisible: 'warning-300/50',
bgFocusVisibleDark: 'warning-500/30',
bgActiveEnabled: 'warning-300/20',
bgActiveEnabledDark: 'warning-500/20',
},
},
messageDanger: {
bg: 'danger-100',
bgDark: 'danger-500/10',
border: 'danger-200',
borderDark: 'danger-700',
outer: {
bg: 'danger-500',
text: 'white',
},
close: {
textDark: 'danger-500',
bgHoverEnabled: 'danger-300/50',
bgHoverEnabledDark: 'danger-500/30',
bgFocusVisible: 'danger-300/50',
bgFocusVisibleDark: 'danger-500/30',
bgActiveEnabled: 'danger-300/20',
bgActiveEnabledDark: 'danger-500/20',
},
},
progressCircle: {
circleDuration: '500',
default: {
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import label from './label'
import listbox from './listbox'
import mark from './mark'
import mask from './mask'
import message from './message'
import placeload from './placeload'
import progressCircle from './progress-circle'
import slimscroll from './slimscroll'
Expand All @@ -28,6 +29,7 @@ const components = [
listbox,
mark,
mask,
message,
placeload,
progressCircle,
slimscroll,
Expand Down
Loading

0 comments on commit 8df0df4

Please sign in to comment.