react-chrono
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -1,4 +0,4 @@ | ||
import React from "react"; | ||
import { TimelineContentModel } from "../../../models/TimelineContentModel"; | ||
import React from 'react'; | ||
import { TimelineContentModel } from '../../../models/TimelineContentModel'; | ||
declare const TimelineItemContent: React.FunctionComponent<TimelineContentModel>; | ||
export default TimelineItemContent; |
import { TimelineItemViewModel } from "./TimelineItemModel"; | ||
import { TimelineMode } from "./TimelineModel"; | ||
import { Theme } from "./TimelineTreeModel"; | ||
@@ -8,3 +9,3 @@ export interface TimelineCollectionModel { | ||
items: TimelineItemViewModel[]; | ||
mode: "HORIZONTAL" | "VERTICAL" | "TREE"; | ||
mode: TimelineMode; | ||
slideShowRunning?: boolean; | ||
@@ -16,7 +17,37 @@ theme?: Theme; | ||
export interface Scroll { | ||
/** | ||
* Height of the Timeline card content | ||
* | ||
* @type {number} | ||
* @memberof Scroll | ||
*/ | ||
timelineContentHeight: number; | ||
/** | ||
* Offset of the Content card | ||
* | ||
* @type {number} | ||
* @memberof Scroll | ||
*/ | ||
timelineContentOffset: number; | ||
/** | ||
* Height of the timeline point | ||
* | ||
* @type {number} | ||
* @memberof Scroll | ||
*/ | ||
timelinePointHeight: number; | ||
/** | ||
* Offset of the timeline point | ||
* | ||
* @type {number} | ||
* @memberof Scroll | ||
*/ | ||
timelinePointOffset: number; | ||
/** | ||
* Width of the timeline point | ||
* | ||
* @type {number} | ||
* @memberof Scroll | ||
*/ | ||
timelinePointWidth: number; | ||
} |
import { Media } from "./TimelineItemMedia"; | ||
import { TimelineMode } from "./TimelineModel"; | ||
import { Theme } from "./TimelineTreeModel"; | ||
export interface TimelineContentModel { | ||
active?: boolean; | ||
cardHeight?: number; | ||
content: string; | ||
detailedText?: string; | ||
id?: string; | ||
media?: Media; | ||
mode?: TimelineMode; | ||
onClick?: (id: string) => void; | ||
onShowMore: () => void; | ||
@@ -11,5 +17,2 @@ slideShowActive?: boolean; | ||
title?: string; | ||
media?: Media; | ||
mode?: "VERTICAL" | "HORIZONTAL" | "TREE"; | ||
cardHeight?: number; | ||
} |
@@ -49,2 +49,3 @@ /// <reference types="react" /> | ||
secondary: string; | ||
textColor?: string; | ||
} |
{ | ||
"name": "react-chrono", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "description": "a modern timeline component for React", | ||
"react": "^17.0.0-rc.3", | ||
"react-chrono": "^1.1.2", | ||
"react-chrono": "^1.1.5", | ||
"react-dom": "^16.13.1", | ||
@@ -65,4 +65,4 @@ "react-responsive": "^8.1.0" | ||
"@types/nanoid": "^2.1.0", | ||
"@types/node": "^14.11.7", | ||
"@types/react": "^16.9.51", | ||
"@types/node": "^14.11.8", | ||
"@types/react": "^16.9.52", | ||
"@types/react-dom": "^16.9.0", | ||
@@ -69,0 +69,0 @@ "@types/react-responsive": "^8.0.2", |
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 too big to display
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
547632
11539
Updatedreact-chrono@^1.1.5