Skip to content

Commit

Permalink
⭐️ Impl: Types - Add Types for Enums
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Jan 18, 2023
1 parent 47c6214 commit 63e9a1f
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions src/constants/Enums.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
export const UIBlurEffectStyles = {
import type { UIBlurEffectStyles as TUIBlurEffectStyles } from 'src/types/UIBlurEffectStyles';

import type {
UIModalPresentationStyle as TUIModalPresentationStyle,
UIModalTransitionStyle as TUIModalTransitionStyle,
} from 'src/types/UIModalTypes';

export const UIBlurEffectStyles: {
[T in TUIBlurEffectStyles]: T;
} = {
// Adaptable Styles
systemUltraThinMaterial: 'systemUltraThinMaterial',
systemThinMaterial: 'systemThinMaterial',
Expand Down Expand Up @@ -26,31 +35,38 @@ export const UIBlurEffectStyles = {
light: 'light',
extraLight: 'extraLight',
dark: 'dark',
extraDark: 'extraDark',
};

export const UIModalPresentationStyles = {
export const UIModalPresentationStyles: {
[T in TUIModalPresentationStyle]: T;
} = {
automatic: 'automatic',
fullScreen: 'fullScreen',
pageSheet: 'pageSheet',
formSheet: 'formSheet',
overFullScreen: 'overFullScreen',

/* NOT SUPPORTED
// NOT SUPPORTED
// -------------

none: 'none',
currentContext: 'currentContext',
custom: 'custom',
overCurrentContext: 'overCurrentContext',
popover: 'popover',
blurOverFullScreen: 'blurOverFullScreen',
*/
};

export const UIModalTransitionStyles = {
export const UIModalTransitionStyles: {
[T in TUIModalTransitionStyle]: T;
} = {
coverVertical: 'coverVertical',
crossDissolve: 'crossDissolve',
flipHorizontal: 'flipHorizontal',

/* NOT SUPPORTED
// NOT SUPPORTED
// -------------

partialCurl: 'partialCurl',
*/
};

0 comments on commit 63e9a1f

Please sign in to comment.