Skip to content

Commit a0b9db1

Browse files
afarberCyberDex
andauthored
Add a modal Dialog component (#245)
* Create src/Dialog.ts and test * Add stories * Center the anchor * Fix buttons, colors * Fix buttons in Sprite stories * Rename to DialogSolidColors, remove the logs * Use Texture.WHITE as default backdrop, make dialog buttons optional, add 2 stories * Modify createBunnyBackdrop to display a scrolling grid of bunnies * Remove NineSliceDifferentSizes story, move createBunnyBackdrop and give it a scrollSpeed param * Add new backdrop.ts file and JSdoc comments * Use scroll box for the letter grid * Fix checkbox hit area by adding fill() * Reduce the height * Add getters, rename properties - to match the established style of the other components * Add disable animations property * Update user stories * Drop disableAnimations and use animations like FancyButton * Update the ConfirmDialog story to use FancyButtons * Make the FancyButtons in the ConfirmDialog story fancier * make padding to be applied horizontally * make padding do not effect content margings * use closeOnBackdropClick setting in all stories if present * fix defaultButtonHoverColor & defaultButtonPressedColor can be 0 * refactor Dialog buttons * Fix the closeOnBackdropClick bug when dialog body is clicked * Remove the animated bunny backdrop * Remove the solid colors dialog * Fix letter alignment * Add margin between buttons * Add spacing between non-fancy buttons * fix rest of the issues and update content implementation * fix issue * Fix warnings * Fix closing the 'Use Sprite' dialogs * fix story * add onClose event * update docs * fix issues * fix lint --------- Co-authored-by: Dmytro Soldatov <cyberdexx@gmail.com>
1 parent 9cd5a27 commit a0b9db1

File tree

13 files changed

+1975
-2
lines changed

13 files changed

+1975
-2
lines changed

src/Dialog.ts

Lines changed: 462 additions & 0 deletions
Large diffs are not rendered by default.

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './Button';
22
export * from './CheckBox';
33
export * from './CircularProgressBar';
4+
export * from './Dialog';
45
export * from './DoubleSlider';
56
export * from './FancyButton';
67
export * from './Input';

src/stories/assets/button_gray.png

1.32 KB
Loading

0 commit comments

Comments
 (0)