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

@amboss/design-system

Package Overview
Dependencies
Maintainers
1
Versions
431
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amboss/design-system - npm Package Compare versions

Comparing version 0.0.8 to 0.1.0

build/components/Card/CardBox.d.ts

30

build/components/Card/Card.d.ts
import React from "react";
export declare class CardProps {
/** specify title displayed in Header */
headerTitle?: string;
title?: string;
/** specify subtitle displayed in Header */
headerSubtitle?: string;
subtitle?: string;
/** specify button displayed in Header */
headerButton?: React.ReactElement;
/** set to true if you want a card with no header */
noHeader?: boolean;
overflowHidden?: boolean;
button?: React.ReactElement;
overflowAuto?: boolean;
squareCorners?: boolean;

@@ -16,20 +14,2 @@ children?: React.ReactNode;

}
declare type BareCardComponent = (props: {
overflowHidden?: boolean;
squareCorners?: boolean;
children?: React.ReactNode;
"data-e2e-test-id"?: string;
}) => React.ReactElement;
declare type BaseCardComponent = (props: {
headerTitle: string;
headerSubtitle?: string;
headerButton?: React.ReactElement;
overflowHidden?: boolean;
squareCorners?: boolean;
children?: React.ReactNode;
"data-e2e-test-id"?: string;
}) => React.ReactElement;
export default function Card({ headerTitle, headerSubtitle, headerButton, noHeader, overflowHidden, squareCorners, children, "data-e2e-test-id": dataE2eTestId, }: CardProps): React.ReactElement;
export declare const BaseCard: BaseCardComponent;
export declare const BareCard: BareCardComponent;
export {};
export declare function Card({ title, subtitle, button, children, overflowAuto, squareCorners, "data-e2e-test-id": dataE2eTestId, }: CardProps): React.ReactElement;
import React from "react";
import { HorizontalAlignment, SpaceSizes } from "../../types";
import { HorizontalAlignment, SpaceSizes, VerticalAlignment } from "../../types";
declare type InlineProps = {

@@ -7,2 +7,3 @@ children: React.ReactNode[] | React.ReactElement;

alignItems?: HorizontalAlignment;
vAlignItems?: VerticalAlignment;
/** specify size */

@@ -12,3 +13,3 @@ space?: SpaceSizes;

};
export declare function Inline({ children, alignItems, space, noWrap, }: InlineProps): React.ReactElement;
export declare function Inline({ children, alignItems, vAlignItems, space, noWrap, }: InlineProps): React.ReactElement;
export declare namespace Inline {

@@ -15,0 +16,0 @@ var defaultProps: Partial<InlineProps>;

@@ -1,2 +0,3 @@

export { BaseCard, BareCard } from "./components/Card/Card";
export { Card } from "./components/Card/Card";
export { CardBox } from "./components/Card/CardBox";
export { Inline } from "./components/Inline/Inline";

@@ -3,0 +4,0 @@ export { Stack } from "./components/Stack/Stack";

{
"name": "@amboss/design-system",
"version": "0.0.8",
"version": "0.1.0",
"description": "the design system for AMBOSS products",

@@ -11,4 +11,4 @@ "main": "build/index.js",

"scripts": {
"prebuild": "npm run tokens & npm run type-styles",
"build": "rm -rf build && npm run prebuild && webpack",
"prebuild": "rm -rf build && npm run tokens & npm run type-styles",
"build": "webpack",
"prestart": "npm run type-styles:watch & npm run tokens:watch &",

@@ -45,4 +45,4 @@ "prepublishOnly": "npm run build",

"classnames": "^2.2.6",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-keyed-flatten-children": "^1.3.0"

@@ -52,5 +52,5 @@ },

"@babel/core": "^7.12.3",
"@storybook/addon-essentials": "^6.1.5",
"@storybook/addon-links": "^6.1.5",
"@storybook/react": "^6.1.5",
"@storybook/addon-essentials": "^6.1.9",
"@storybook/addon-links": "^6.1.9",
"@storybook/react": "^6.1.9",
"@testing-library/jest-dom": "^5.11.5",

@@ -63,4 +63,4 @@ "@testing-library/react": "^11.1.0",

"@types/react-dom": "^16.9.7",
"@typescript-eslint/eslint-plugin": "^3.3.0",
"@typescript-eslint/parser": "^3.3.0",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"babel-loader": "^8.1.0",

@@ -80,4 +80,4 @@ "chokidar-cli": "^2.1.0",

"jest": "^26.6.1",
"prettier": "^2.1.2",
"react-is": "^16.13.1",
"prettier": "^2.2.1",
"react-is": "^17.0.1",
"sass": "^1.26.5",

@@ -91,3 +91,3 @@ "sass-loader": "^8.0.2",

"typed-scss-modules": "^3.2.2",
"typescript": "^3.8.3",
"typescript": "^4.1.2",
"webpack": "^4.43.0",

@@ -94,0 +94,0 @@ "webpack-cli": "^3.3.11"

Sorry, the diff of this file is too big to display

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