brahma-ui
Advanced tools
Comparing version 1.0.53 to 1.0.54
@@ -6,2 +6,3 @@ /// <reference types="react" /> | ||
onItemClick?: (href: string) => void; | ||
hideOnMobile?: boolean; | ||
}; | ||
@@ -8,0 +9,0 @@ export declare type NavbarProps = { |
@@ -12,5 +12,7 @@ declare type LinksWrapperProps = { | ||
export declare const LinksWrapper: import("styled-components").StyledComponent<"div", any, LinksWrapperProps, never>; | ||
export declare const Link: import("styled-components").StyledComponent<"div", any, {}, never>; | ||
export declare const Link: import("styled-components").StyledComponent<"div", any, { | ||
hideOnMobile?: boolean | undefined; | ||
}, never>; | ||
export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>; | ||
export declare const MobileIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>; | ||
export {}; |
@@ -70,2 +70,3 @@ /// <reference types="react" /> | ||
onItemClick?: (href: string) => void; | ||
hideOnMobile?: boolean; | ||
}; | ||
@@ -72,0 +73,0 @@ declare type NavbarProps = { |
{ | ||
"name": "brahma-ui", | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"description": "Brahma ui package contained shared components", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -113,4 +113,4 @@ import styled, { css } from 'styled-components' | ||
export const Link = styled.div` | ||
${({ theme }) => css` | ||
export const Link = styled.div<{ hideOnMobile?: boolean }>` | ||
${({ theme, hideOnMobile = false }) => css` | ||
padding: 0 2rem; | ||
@@ -131,2 +131,3 @@ cursor: pointer; | ||
font-size: ${theme.font.sizes.medium}; | ||
${hideOnMobile && 'display: none'}; | ||
`} | ||
@@ -133,0 +134,0 @@ `} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
981265
7115