@toptal/picasso-shared
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@toptal/picasso-shared", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Shared types, utils for Picasso internal usage", | ||
@@ -43,3 +43,3 @@ "author": "Toptal", | ||
], | ||
"gitHead": "bc309329a7f7bddec5446506cebfcb0aa1535c30" | ||
"gitHead": "7c8aca0af1c0aaf5f5021474ee1f137fda7e94f1" | ||
} |
@@ -5,5 +5,5 @@ const sizes = { | ||
input: { | ||
height: '2.25em', | ||
width: '18.75em', | ||
padding: '0.625em' | ||
height: '2.25rem', | ||
width: '18.75rem', | ||
padding: '0.625rem' | ||
} | ||
@@ -10,0 +10,0 @@ }; |
@@ -5,3 +5,3 @@ import { SnackbarProvider } from 'notistack'; | ||
// --- need to move to shared config | ||
export const headerHeight = { default: '4.5em', smallAndMedium: '3em' }; | ||
export const headerHeight = { default: '4.5rem', smallAndMedium: '3rem' }; | ||
const MAX_NOTIFICATION_MESSAGES = 5; | ||
@@ -8,0 +8,0 @@ const NotificationsProvider = ({ children, container }) => { |
@@ -37,5 +37,5 @@ import { CSSProperties, FunctionComponent, AnchorHTMLAttributes, ButtonHTMLAttributes, RefAttributes, ForwardRefExoticComponent, ElementType, ComponentPropsWithRef } from 'react'; | ||
} | ||
export declare const spacingToEm: (spacing: SpacingType) => string; | ||
export declare const spacingToRem: (spacing: SpacingType) => string; | ||
export declare type ButtonOrAnchorProps = AnchorHTMLAttributes<HTMLAnchorElement> & ButtonHTMLAttributes<HTMLButtonElement>; | ||
export declare type ColorType = 'blue' | 'green' | 'red' | 'yellow' | 'light-grey' | 'grey' | 'dark-grey' | 'black' | 'inherit'; | ||
export {}; |
@@ -9,3 +9,3 @@ export var SpacingEnum; | ||
})(SpacingEnum || (SpacingEnum = {})); | ||
export const spacingToEm = (spacing) => typeof spacing === 'number' ? `${spacing}em` : `${SpacingEnum[spacing]}em`; | ||
export const spacingToRem = (spacing) => typeof spacing === 'number' ? `${spacing}rem` : `${SpacingEnum[spacing]}rem`; | ||
//# sourceMappingURL=types.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49065