-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8382b79
commit e70e37a
Showing
6 changed files
with
748 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const COLORS_DICT = { | ||
NICE_GREEN: '#0BB071', | ||
NICE_RED: '#FF6A6A', | ||
MIDDLE_GREY: '#BDBDBD', | ||
DARK_GREY: '#666666', | ||
NICE_BLUE: '#2C98F0', | ||
DARKER_BLUE: '#4797f2', | ||
TEXT: '#212121', | ||
WHITE: '#FFFFFF', | ||
TRANSPARENT: 'transparent', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const ACTIONS_DICT = { | ||
CANCEL: 'cancel', | ||
CLOSE: 'close', | ||
SAVE: 'save', | ||
SUBMIT: 'submit', | ||
DELETE: 'delete', | ||
SPACER: 'spacer', | ||
NEXT: 'next', | ||
BACK: 'back', | ||
}; | ||
|
||
export const ACTIONS_LABELS = { | ||
[ACTIONS_DICT.CANCEL]: 'Cancel', | ||
[ACTIONS_DICT.CLOSE]: 'Close', | ||
[ACTIONS_DICT.SAVE]: 'Save', | ||
[ACTIONS_DICT.SUBMIT]: 'Submit', | ||
[ACTIONS_DICT.DELETE]: 'Delete', | ||
[ACTIONS_DICT.NEXT]: 'Next', | ||
[ACTIONS_DICT.BACK]: 'Back', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import Dialog from '~widgets/dialog/widget.vue'; | ||
import registerWidget from '~core/registerWidget'; | ||
|
||
registerWidget('ui-dialog', Dialog); | ||
|
||
export default { | ||
title: 'Components/Dialog', | ||
component: Dialog, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
}; | ||
|
||
export const Component = { | ||
render: (args) => ({ | ||
setup() { | ||
return { args }; | ||
}, | ||
template: ` | ||
<ui-dialog v-bind="args" style="position: relative;"> | ||
<div slot> | ||
{{ args.content }} | ||
</div> | ||
</ui-dialog>`, | ||
}), | ||
|
||
args: { | ||
value: true, | ||
title: 'Dialog Title', | ||
actions: ['cancel', 'submit'], | ||
height: '500px', | ||
width: '800px', | ||
isValid: true, | ||
submitLabel: 'Submit', | ||
content: 'This is the dialog content :-)', | ||
}, | ||
decorators: [() => ({ template: '<div style="height: 600px;"><story/></div>' })] | ||
}; |
Oops, something went wrong.