Merged in fix/3697-prettier-configs (pull request #3396)
fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import { DEFAULT_THEME, Theme } from '@scandic-hotels/common/utils/theme'
|
||||
import styles from './infoCard.module.css'
|
||||
import { DEFAULT_THEME, Theme } from "@scandic-hotels/common/utils/theme"
|
||||
import styles from "./infoCard.module.css"
|
||||
|
||||
const variantKeys = {
|
||||
theme: {
|
||||
'Primary 1': 'Primary 1',
|
||||
'Primary 2': 'Primary 2',
|
||||
'Primary 3': 'Primary 3',
|
||||
Accent: 'Accent',
|
||||
Image: 'Image',
|
||||
White: 'White',
|
||||
"Primary 1": "Primary 1",
|
||||
"Primary 2": "Primary 2",
|
||||
"Primary 3": "Primary 3",
|
||||
Accent: "Accent",
|
||||
Image: "Image",
|
||||
White: "White",
|
||||
},
|
||||
height: {
|
||||
fixed: 'fixed',
|
||||
dynamic: 'dynamic',
|
||||
fixed: "fixed",
|
||||
dynamic: "dynamic",
|
||||
},
|
||||
} as const
|
||||
|
||||
export const infoCardConfig = {
|
||||
variants: {
|
||||
theme: {
|
||||
[variantKeys.theme['Primary 1']]: styles['theme-primary-1'],
|
||||
[variantKeys.theme['Primary 2']]: styles['theme-primary-2'],
|
||||
[variantKeys.theme['Primary 3']]: styles['theme-primary-3'],
|
||||
[variantKeys.theme['Accent']]: styles['theme-accent'],
|
||||
[variantKeys.theme['Image']]: styles['theme-image'],
|
||||
[variantKeys.theme['White']]: styles['theme-white'],
|
||||
[variantKeys.theme["Primary 1"]]: styles["theme-primary-1"],
|
||||
[variantKeys.theme["Primary 2"]]: styles["theme-primary-2"],
|
||||
[variantKeys.theme["Primary 3"]]: styles["theme-primary-3"],
|
||||
[variantKeys.theme["Accent"]]: styles["theme-accent"],
|
||||
[variantKeys.theme["Image"]]: styles["theme-image"],
|
||||
[variantKeys.theme["White"]]: styles["theme-white"],
|
||||
},
|
||||
height: {
|
||||
[variantKeys.height.fixed]: styles['height-fixed'],
|
||||
[variantKeys.height.dynamic]: styles['height-dynamic'],
|
||||
[variantKeys.height.fixed]: styles["height-fixed"],
|
||||
[variantKeys.height.dynamic]: styles["height-dynamic"],
|
||||
},
|
||||
// Only Theme.scandic can be used with the Angled variant.
|
||||
// The topTitleAngled variant will be applied using the compoundVariants.
|
||||
@@ -56,11 +56,11 @@ export const infoCardConfig = {
|
||||
{
|
||||
hotelTheme: Theme.scandic,
|
||||
topTitleAngled: true,
|
||||
class: styles['top-title-angled'],
|
||||
class: styles["top-title-angled"],
|
||||
},
|
||||
],
|
||||
defaultVariants: {
|
||||
theme: variantKeys.theme['Primary 1'],
|
||||
theme: variantKeys.theme["Primary 1"],
|
||||
height: variantKeys.height.fixed,
|
||||
topTitleAngled: false,
|
||||
hotelTheme: DEFAULT_THEME,
|
||||
|
||||
Reference in New Issue
Block a user