Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brahma-ui

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brahma-ui - npm Package Compare versions

Comparing version 1.0.25 to 1.0.26

3

lib/components/Card/Card.d.ts

@@ -9,3 +9,4 @@ /// <reference types="react" />

selected?: boolean;
fullWidth?: boolean;
};
export default function Card({ children, color, backgroundColor, hoverEffect, selected }: CardProps): JSX.Element;
export default function Card({ children, color, backgroundColor, hoverEffect, selected, fullWidth }: CardProps): JSX.Element;
import { CardProps } from './Card';
declare type WrapperProps = Pick<CardProps, 'color' | 'hoverEffect' | 'selected'>;
declare type WrapperProps = Pick<CardProps, 'color' | 'hoverEffect' | 'selected' | 'fullWidth'>;
declare type ContentProps = Pick<CardProps, 'backgroundColor'>;

@@ -4,0 +4,0 @@ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, WrapperProps, never>;

@@ -28,4 +28,5 @@ /// <reference types="react" />

selected?: boolean;
fullWidth?: boolean;
};
declare function Card({ children, color, backgroundColor, hoverEffect, selected }: CardProps): JSX.Element;
declare function Card({ children, color, backgroundColor, hoverEffect, selected, fullWidth }: CardProps): JSX.Element;

@@ -32,0 +33,0 @@ declare type CheckboxProps = {

{
"name": "brahma-ui",
"version": "1.0.25",
"version": "1.0.26",
"description": "Brahma ui package contained shared components",

@@ -5,0 +5,0 @@ "scripts": {

@@ -6,3 +6,6 @@ import styled, { css } from 'styled-components'

type WrapperProps = Pick<CardProps, 'color' | 'hoverEffect' | 'selected'>
type WrapperProps = Pick<
CardProps,
'color' | 'hoverEffect' | 'selected' | 'fullWidth'
>

@@ -42,3 +45,3 @@ type ContentProps = Pick<CardProps, 'backgroundColor'>

export const Wrapper = styled.div<WrapperProps>`
${({ theme, color, hoverEffect, selected }) => css`
${({ theme, color, hoverEffect, selected, fullWidth }) => css`
@property --a {

@@ -53,3 +56,3 @@ syntax: '<angle>';

padding: 1px;
width: fit-content;
width: ${fullWidth ? '100% ' : 'fit-content'};
border-radius: ${theme.border.radius};

@@ -56,0 +59,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc