@entur/layout
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,6 @@ # Change Log | ||
## [1.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.0...@entur/layout@1.0.1) (2020-01-06) | ||
**Note:** Version bump only for package @entur/layout | ||
# [1.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.4.1...@entur/layout@1.0.0) (2019-12-10) | ||
@@ -8,0 +12,0 @@ |
@@ -0,8 +1,5 @@ | ||
/// <reference types="react" /> | ||
import React from "react"; | ||
declare type ContrastProps = { | ||
/** HTML-elementet eller React-komponenten som rendres | ||
* @default 'div' | ||
*/ | ||
type ContrastProps = { | ||
as?: string | React.ElementType; | ||
/** Ekstra klassenavn */ | ||
className?: string; | ||
@@ -12,28 +9,8 @@ [key: string]: any; | ||
declare const Contrast: React.FC<ContrastProps>; | ||
declare type BaseCardProps = { | ||
/** HTML-elementet eller React-komponenten som lager Card | ||
* @default "div" | ||
*/ | ||
as?: 'div' | React.ElementType; | ||
/** Ekstra klassenavn */ | ||
className?: string; | ||
[key: string]: any; | ||
}; | ||
declare const BaseCard: React.FC<BaseCardProps>; | ||
declare type NavigationCardProps = { | ||
/** HTML-elementet eller React-komponenten som lager NavigationCard | ||
* @default 'a' | ||
*/ | ||
as?: 'a' | 'button' | React.ElementType; | ||
/** Tittelen/teksten som står i CardBox */ | ||
type NavigationCardProps = { | ||
as?: "a" | "button" | React.ElementType; | ||
title: string; | ||
/** Valgfritt ikon som står over tittelen */ | ||
titleIcon?: React.ReactNode; | ||
/** Ekstra klassenavn */ | ||
className?: string; | ||
/** Lager en mer kompakt NavigationCard, uten ikon og beskrivende tekst | ||
* @default false | ||
*/ | ||
compact?: boolean; | ||
/** Beskrivelse under tittel, om ikke "compact" er valgt */ | ||
children?: React.ReactNode; | ||
@@ -43,2 +20,8 @@ [key: string]: any; | ||
declare const NavigationCard: React.FC<NavigationCardProps>; | ||
type BaseCardProps = { | ||
as?: "div" | React.ElementType; | ||
className?: string; | ||
[key: string]: any; | ||
}; | ||
declare const BaseCard: React.FC<BaseCardProps>; | ||
export { ContrastProps, Contrast, NavigationCardProps, NavigationCard, BaseCardProps, BaseCard }; |
@@ -1,2 +0,2 @@ | ||
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; | ||
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import classNames from 'classnames'; |
{ | ||
"name": "@entur/layout", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "EUPL-1.2", | ||
@@ -30,9 +30,9 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@entur/typography": "^0.6.1", | ||
"@entur/typography": "^0.7.0", | ||
"classnames": "^2.2.6" | ||
}, | ||
"devDependencies": { | ||
"@entur/tokens": "^1.1.0" | ||
"@entur/tokens": "^1.1.1" | ||
}, | ||
"gitHead": "c518a56619cd30d0c7254b0f9f5298c69e54a8a0" | ||
"gitHead": "1755d311b4cb5121c90a6abf85c17a9dfc530abe" | ||
} |
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
44763
1999
195
156
2
4
0
44
+ Added@entur/typography@0.7.4(transitive)
+ Added@entur/utils@0.2.9(transitive)
+ Addedtiny-warning@1.0.3(transitive)
- Removed@entur/typography@0.6.1(transitive)
Updated@entur/typography@^0.7.0