-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FullscreenModal): apply grid to modal content
- Loading branch information
Showing
26 changed files
with
327 additions
and
443 deletions.
There are no files selected for viewing
Binary file removed
BIN
-99.9 KB
.storybook/image-snapshots/expected/components_FullscreenModal_Large Size.png
Binary file not shown.
Binary file removed
BIN
-65.3 KB
.storybook/image-snapshots/expected/components_FullscreenModal_Medium Size.png
Binary file not shown.
Binary file added
BIN
+47.2 KB
...apshots/expected/components_FullscreenModal_Single Column (layout single-6).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.8 KB
...apshots/expected/components_FullscreenModal_Single Column (layout single-8).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-98.2 KB
.storybook/image-snapshots/expected/components_FullscreenModal_Small Size.png
Binary file not shown.
Binary file added
BIN
+53.6 KB
...ed/components_FullscreenModal_Two Columns with sidebar (layout sidebar-4-6).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.8 KB
...ed/components_FullscreenModal_Two Columns with sidebar (layout sidebar-4-8).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.7 KB
...ybook/image-snapshots/expected/components_FullscreenModal_With Long Content.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
export interface FooterProps { | ||
width: number; | ||
offset: number; | ||
modalRef: React.MutableRefObject<HTMLElement>; | ||
} |
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
400 changes: 127 additions & 273 deletions
400
src/components/FullscreenModal/FullscreenModal.stories.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import { FullscreenModalSizes } from './FullscreenModal.enums'; | ||
import { | ||
FullscreenModalLayouts, | ||
FullscreenModalSizes, | ||
} from './FullscreenModal.enums'; | ||
|
||
export type Sizes = typeof FullscreenModalSizes[keyof typeof FullscreenModalSizes]; | ||
|
||
export type Layouts = typeof FullscreenModalLayouts[keyof typeof FullscreenModalLayouts]; | ||
export type ColumnConfig = Record< | ||
'header' | 'sidebar' | 'content', | ||
[number, number] | ||
>; | ||
export type ColumnConfigMap = Record<Layouts, ColumnConfig>; | ||
export interface FullscreenModalProps { | ||
size?: Sizes; | ||
layout: Layouts; | ||
header: React.ReactNode; | ||
content: React.ReactNode; | ||
footer: React.ReactNode; | ||
sidebar?: React.ReactNode; | ||
onClose?: () => void; | ||
} |
Oops, something went wrong.