@gpichot/spectacle-deck 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.css ADDED
@@ -0,0 +1,61 @@
1
+ /* src/components/Timeline.module.scss */
2
+ .timeline {
3
+ display: flex;
4
+ position: relative;
5
+ flex-flow: row nowrap;
6
+ align-items: center;
7
+ }
8
+ .timelineItem {
9
+ flex: 1;
10
+ display: inline-flex;
11
+ }
12
+ .timelineItem .timelineItemContentPhantom {
13
+ opacity: 0;
14
+ }
15
+ .timelineItem:nth-child(odd),
16
+ .timelineItem:nth-child(odd) .timelineItemContent {
17
+ flex-direction: column;
18
+ }
19
+ .timelineItem:nth-child(even),
20
+ .timelineItem:nth-child(even) .timelineItemContent {
21
+ flex-direction: column-reverse;
22
+ }
23
+ .timelineItemGuide {
24
+ width: 100%;
25
+ padding-top: 2px;
26
+ display: flex;
27
+ flex-flow: row;
28
+ align-items: center;
29
+ }
30
+ .timelineItemGuide svg {
31
+ height: 28px;
32
+ width: 28px;
33
+ margin-right: 4px;
34
+ }
35
+ .timelineItemGuide svg path {
36
+ fill: #ffffff;
37
+ }
38
+ .timelineItemGuide .timelineItemGuideLine {
39
+ border-top: 4px solid #ffffff;
40
+ margin-right: 4px;
41
+ }
42
+ .timelineItemContent {
43
+ display: flex;
44
+ padding: 0.7rem 0 1rem 12px;
45
+ }
46
+ .timelineItemBody,
47
+ .timelineItemBody > * {
48
+ font-size: 1.3rem !important;
49
+ color: #ffffff !important;
50
+ }
51
+ .timelineItemTitle {
52
+ font-family:
53
+ Bitter,
54
+ "Helvetica Neue",
55
+ Helvetica,
56
+ Arial,
57
+ sans-serif;
58
+ font-size: 1rem;
59
+ font-weight: bold;
60
+ color: rgba(255, 255, 255, 0.7333333333);
61
+ }
package/index.d.ts ADDED
@@ -0,0 +1,47 @@
1
+ import React from "react";
2
+ export { default as FilePane } from "./components/FilePane";
3
+ export { ItemsColumn } from "./components/ItemsColumn";
4
+ export { Image } from "./components/Image";
5
+ export { default as HorizontalList, HorizontalListItem, } from "./components/HorizontalList";
6
+ export { default as Timeline, TimelineItem } from "./components/Timeline";
7
+ export { IconBox } from "./components/IconBox";
8
+ export type SlideType = {
9
+ metadata: Record<string, unknown> & {
10
+ layout?: string;
11
+ };
12
+ slideComponent: React.ElementType<unknown>;
13
+ };
14
+ export type DeckType = {
15
+ metadata: Record<string, unknown>;
16
+ slides: SlideType[];
17
+ };
18
+ export declare function PassThrough({ children }: {
19
+ children: React.ReactNode;
20
+ }): React.JSX.Element;
21
+ export declare function Layout({ children, frontmatter, }: {
22
+ children: React.ReactNode;
23
+ frontmatter: {
24
+ layout?: string;
25
+ };
26
+ }): React.JSX.Element;
27
+ export declare function Deck({ deck }: {
28
+ deck: DeckType;
29
+ }): React.JSX.Element;
30
+ export declare function Danger({ children }: {
31
+ children: React.ReactNode;
32
+ }): React.JSX.Element;
33
+ export declare function Doc({ children }: {
34
+ children: React.ReactNode;
35
+ }): React.JSX.Element;
36
+ export declare function Information({ children }: {
37
+ children: React.ReactNode;
38
+ }): React.JSX.Element;
39
+ export declare function Success({ children }: {
40
+ children: React.ReactNode;
41
+ }): React.JSX.Element;
42
+ export declare function Side({ children }: {
43
+ children: React.ReactNode;
44
+ }): React.JSX.Element;
45
+ export declare namespace Side {
46
+ var mdxType: string;
47
+ }