@amboss/design-system
Advanced tools
Comparing version 0.0.7 to 0.0.8
import React from "react"; | ||
export declare class CardProps { | ||
title?: string; | ||
justifyHeight?: boolean; | ||
margin?: boolean; | ||
darkenShadowOnHover?: boolean; | ||
/** specify title displayed in Header */ | ||
headerTitle?: string; | ||
/** specify subtitle displayed in Header */ | ||
headerSubtitle?: string; | ||
/** specify button displayed in Header */ | ||
headerButton?: React.ReactElement; | ||
/** set to true if you want a card with no header */ | ||
noHeader?: boolean; | ||
overflowHidden?: boolean; | ||
padding?: boolean; | ||
squareCorners?: boolean; | ||
children: React.ReactNode; | ||
children?: React.ReactNode; | ||
"data-e2e-test-id"?: string; | ||
} | ||
export declare function Card({ title, justifyHeight, darkenShadowOnHover, margin, overflowHidden, padding, squareCorners, children, "data-e2e-test-id": dataE2eTestId, }: CardProps): React.ReactElement; | ||
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 {}; |
import React from "react"; | ||
import { HorizontalAlignment, SpaceSizes } from "../../types"; | ||
declare type InlineProps = { | ||
children: React.ReactNode[]; | ||
children: React.ReactNode[] | React.ReactElement; | ||
/** specify vertical alignment */ | ||
@@ -6,0 +6,0 @@ alignItems?: HorizontalAlignment; |
import React from "react"; | ||
import { SpaceSizes } from "../../types"; | ||
declare type StackProps = { | ||
children: React.ReactNode[]; | ||
children: React.ReactNode[] | React.ReactElement; | ||
space?: SpaceSizes; | ||
@@ -6,0 +6,0 @@ }; |
@@ -1,3 +0,5 @@ | ||
export { Card } from "./components/Card/Card"; | ||
export { BaseCard, BareCard } from "./components/Card/Card"; | ||
export { Inline } from "./components/Inline/Inline"; | ||
export { Stack } from "./components/Stack/Stack"; | ||
export { H1, H2, H3, H4, H5, H6 } from "./components/Typography/Header/Header"; | ||
export { Text } from "./components/Typography/Text/Text"; |
@@ -1,3 +0,3 @@ | ||
export declare type HorizontalAlignment = `left` | `right` | `center` | `spaceBetween`; | ||
export declare type VerticalAlignment = `top` | `bottom` | `center` | `spaceBetween`; | ||
export declare type SpaceSizes = "zero" | "xxs" | "xs" | "s" | "m" | "l" | "xl"; | ||
export declare type HorizontalAlignment = "left" | "right" | "center" | "spaceBetween"; | ||
export declare type VerticalAlignment = "top" | "bottom" | "center" | "spaceBetween"; | ||
export declare type SpaceSizes = "zero" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl"; |
{ | ||
"name": "@amboss/design-system", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "the design system for AMBOSS products", | ||
@@ -12,4 +12,5 @@ "main": "build/index.js", | ||
"prebuild": "npm run tokens & npm run type-styles", | ||
"build": "npm run prebuild && webpack", | ||
"build": "rm -rf build && npm run prebuild && webpack", | ||
"prestart": "npm run type-styles:watch & npm run tokens:watch &", | ||
"prepublishOnly": "npm run build", | ||
"start": "npm run storybook", | ||
@@ -16,0 +17,0 @@ "storybook": "start-storybook -p 6006", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1239896
15
3383