@progress/kendo-themes-html 7.1.0-dev.0 → 7.1.0-dev.2

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.
Files changed (136) hide show
  1. package/dist/cjs/gantt/tests/gantt.js +1 -1
  2. package/dist/cjs/index.js +1930 -1409
  3. package/dist/cjs/multiselecttree/multiselecttree.spec.js +4 -2
  4. package/dist/cjs/multiselecttree/templates/multiselecttree-adaptive.js +4 -2
  5. package/dist/cjs/multiselecttree/templates/multiselecttree-arrow-button.js +4 -2
  6. package/dist/cjs/multiselecttree/templates/multiselecttree-filtering.js +4 -2
  7. package/dist/cjs/multiselecttree/templates/multiselecttree-normal.js +4 -2
  8. package/dist/cjs/multiselecttree/templates/multiselecttree-popup.js +4 -2
  9. package/dist/cjs/multiselecttree/templates/multiselecttree-value.js +4 -2
  10. package/dist/cjs/multiselecttree/tests/multiselecttree-adaptive.js +4 -2
  11. package/dist/cjs/multiselecttree/tests/multiselecttree-flat.js +4 -2
  12. package/dist/cjs/multiselecttree/tests/multiselecttree-opened.js +4 -2
  13. package/dist/cjs/multiselecttree/tests/multiselecttree-outline.js +4 -2
  14. package/dist/cjs/multiselecttree/tests/multiselecttree-size-rounded.js +4 -2
  15. package/dist/cjs/multiselecttree/tests/multiselecttree-solid.js +4 -2
  16. package/dist/cjs/notification/tests/{notification-jquery-colors.js → notification-colors.js} +7 -7
  17. package/dist/cjs/notification/tests/{notification-angular.js → notification-group.js} +60 -24
  18. package/dist/cjs/notification/tests/{notification-jquery.js → notification.js} +7 -7
  19. package/dist/cjs/timeline/horizontal-timeline-event.spec.js +5044 -0
  20. package/dist/cjs/timeline/templates/timeline-horizontal.js +5163 -0
  21. package/dist/cjs/timeline/templates/timeline-normal-alternating.js +5056 -0
  22. package/dist/cjs/timeline/templates/timeline-normal-collapsible.js +5054 -0
  23. package/dist/cjs/timeline/templates/timeline-normal.js +5053 -0
  24. package/dist/cjs/timeline/tests/timeline-horizontal.js +653 -264
  25. package/dist/cjs/timeline/tests/timeline-vertical-alternating.js +550 -290
  26. package/dist/cjs/timeline/tests/timeline-vertical.js +563 -287
  27. package/dist/cjs/{notification/tests/notification-custom-angular.js → timeline/timeline-card-callout.js} +341 -152
  28. package/dist/cjs/{notification/tests/notification-angular-colors.js → timeline/timeline-card-title.js} +145 -76
  29. package/dist/cjs/timeline/timeline-card.spec.js +5043 -0
  30. package/dist/cjs/timeline/timeline-circle.spec.js +53 -0
  31. package/dist/cjs/timeline/timeline-date-wrap.spec.js +64 -0
  32. package/dist/cjs/timeline/timeline-event-list.spec.js +54 -0
  33. package/dist/cjs/timeline/timeline-flag-wrap.spec.js +88 -0
  34. package/dist/cjs/timeline/timeline-flag.spec.js +55 -0
  35. package/dist/cjs/timeline/timeline-track-item.spec.js +58 -0
  36. package/dist/cjs/timeline/timeline-track-wrap.spec.js +5082 -0
  37. package/dist/cjs/timeline/timeline-track.spec.js +54 -0
  38. package/dist/cjs/timeline/timeline.spec.js +71 -0
  39. package/dist/cjs/timeline/vertical-timeline-event.spec.js +5044 -0
  40. package/dist/esm/gantt/tests/gantt.js +1 -1
  41. package/dist/esm/index.js +1832 -1311
  42. package/dist/esm/multiselecttree/multiselecttree.spec.js +4 -2
  43. package/dist/esm/multiselecttree/templates/multiselecttree-adaptive.js +4 -2
  44. package/dist/esm/multiselecttree/templates/multiselecttree-arrow-button.js +4 -2
  45. package/dist/esm/multiselecttree/templates/multiselecttree-filtering.js +4 -2
  46. package/dist/esm/multiselecttree/templates/multiselecttree-normal.js +4 -2
  47. package/dist/esm/multiselecttree/templates/multiselecttree-popup.js +4 -2
  48. package/dist/esm/multiselecttree/templates/multiselecttree-value.js +4 -2
  49. package/dist/esm/multiselecttree/tests/multiselecttree-adaptive.js +4 -2
  50. package/dist/esm/multiselecttree/tests/multiselecttree-flat.js +4 -2
  51. package/dist/esm/multiselecttree/tests/multiselecttree-opened.js +4 -2
  52. package/dist/esm/multiselecttree/tests/multiselecttree-outline.js +4 -2
  53. package/dist/esm/multiselecttree/tests/multiselecttree-size-rounded.js +4 -2
  54. package/dist/esm/multiselecttree/tests/multiselecttree-solid.js +4 -2
  55. package/dist/esm/notification/tests/{notification-jquery-colors.js → notification-colors.js} +3 -3
  56. package/dist/esm/notification/tests/{notification-angular.js → notification-group.js} +57 -21
  57. package/dist/esm/notification/tests/{notification-jquery.js → notification.js} +3 -3
  58. package/dist/esm/timeline/horizontal-timeline-event.spec.js +5028 -0
  59. package/dist/esm/timeline/templates/timeline-horizontal.js +5147 -0
  60. package/dist/esm/timeline/templates/timeline-normal-alternating.js +5040 -0
  61. package/dist/esm/timeline/templates/timeline-normal-collapsible.js +5038 -0
  62. package/dist/esm/timeline/templates/timeline-normal.js +5037 -0
  63. package/dist/esm/timeline/tests/timeline-horizontal.js +654 -265
  64. package/dist/esm/timeline/tests/timeline-vertical-alternating.js +551 -291
  65. package/dist/esm/timeline/tests/timeline-vertical.js +564 -288
  66. package/dist/esm/{notification/tests/notification-custom-angular.js → timeline/timeline-card-callout.js} +337 -148
  67. package/dist/esm/{notification/tests/notification-angular-colors.js → timeline/timeline-card-title.js} +142 -73
  68. package/dist/esm/timeline/timeline-card.spec.js +5027 -0
  69. package/dist/esm/timeline/timeline-circle.spec.js +31 -0
  70. package/dist/esm/timeline/timeline-date-wrap.spec.js +42 -0
  71. package/dist/esm/timeline/timeline-event-list.spec.js +32 -0
  72. package/dist/esm/timeline/timeline-flag-wrap.spec.js +66 -0
  73. package/dist/esm/timeline/timeline-flag.spec.js +33 -0
  74. package/dist/esm/timeline/timeline-track-item.spec.js +36 -0
  75. package/dist/esm/timeline/timeline-track-wrap.spec.js +5066 -0
  76. package/dist/esm/timeline/timeline-track.spec.js +32 -0
  77. package/dist/esm/timeline/timeline.spec.js +49 -0
  78. package/dist/esm/timeline/vertical-timeline-event.spec.js +5028 -0
  79. package/dist/types/index.d.ts +1 -0
  80. package/dist/types/timeline/horizontal-timeline-event.spec.d.ts +19 -0
  81. package/dist/types/timeline/index.d.ts +18 -0
  82. package/dist/types/timeline/templates/timeline-horizontal.d.ts +1 -0
  83. package/dist/types/timeline/templates/timeline-normal-alternating.d.ts +1 -0
  84. package/dist/types/timeline/templates/timeline-normal-collapsible.d.ts +1 -0
  85. package/dist/types/timeline/templates/timeline-normal.d.ts +1 -0
  86. package/dist/types/timeline/timeline-card-callout.d.ts +9 -0
  87. package/dist/types/timeline/timeline-card-title.d.ts +11 -0
  88. package/dist/types/timeline/timeline-card.spec.d.ts +7 -0
  89. package/dist/types/timeline/timeline-circle.spec.d.ts +3 -0
  90. package/dist/types/timeline/timeline-date-wrap.spec.d.ts +14 -0
  91. package/dist/types/timeline/timeline-event-list.spec.d.ts +3 -0
  92. package/dist/types/timeline/timeline-flag-wrap.spec.d.ts +14 -0
  93. package/dist/types/timeline/timeline-flag.spec.d.ts +6 -0
  94. package/dist/types/timeline/timeline-track-item.spec.d.ts +8 -0
  95. package/dist/types/timeline/timeline-track-wrap.spec.d.ts +3 -0
  96. package/dist/types/timeline/timeline-track.spec.d.ts +3 -0
  97. package/dist/types/timeline/timeline.spec.d.ts +18 -0
  98. package/dist/types/timeline/vertical-timeline-event.spec.d.ts +25 -0
  99. package/package.json +2 -2
  100. package/src/card/card-title.tsx +1 -1
  101. package/src/gantt/tests/gantt.tsx +1 -1
  102. package/src/index.ts +1 -1
  103. package/src/multiselecttree/multiselecttree.spec.tsx +9 -8
  104. package/src/notification/tests/{notification-jquery-colors.tsx → notification-colors.tsx} +1 -1
  105. package/src/notification/tests/notification-group.tsx +49 -0
  106. package/src/notification/tests/{notification-jquery.tsx → notification.tsx} +1 -1
  107. package/src/timeline/horizontal-timeline-event.spec.tsx +66 -0
  108. package/src/timeline/index.ts +18 -0
  109. package/src/timeline/templates/timeline-horizontal.tsx +35 -0
  110. package/src/timeline/templates/timeline-normal-alternating.tsx +18 -0
  111. package/src/timeline/templates/timeline-normal-collapsible.tsx +16 -0
  112. package/src/timeline/templates/timeline-normal.tsx +15 -0
  113. package/src/timeline/tests/timeline-horizontal.tsx +3 -62
  114. package/src/timeline/tests/timeline-vertical-alternating.tsx +4 -82
  115. package/src/timeline/tests/timeline-vertical.tsx +9 -80
  116. package/src/timeline/timeline-card-callout.tsx +35 -0
  117. package/src/timeline/timeline-card-title.tsx +42 -0
  118. package/src/timeline/timeline-card.spec.tsx +37 -0
  119. package/src/timeline/timeline-circle.spec.tsx +24 -0
  120. package/src/timeline/timeline-date-wrap.spec.tsx +44 -0
  121. package/src/timeline/timeline-event-list.spec.tsx +27 -0
  122. package/src/timeline/timeline-flag-wrap.spec.tsx +47 -0
  123. package/src/timeline/timeline-flag.spec.tsx +31 -0
  124. package/src/timeline/timeline-track-item.spec.tsx +33 -0
  125. package/src/timeline/timeline-track-wrap.spec.tsx +31 -0
  126. package/src/timeline/timeline-track.spec.tsx +27 -0
  127. package/src/timeline/timeline.spec.tsx +53 -0
  128. package/src/timeline/vertical-timeline-event.spec.tsx +79 -0
  129. package/dist/types/notification/tests/notification-jquery-colors.d.ts +0 -2
  130. package/dist/types/notification/tests/notification-jquery.d.ts +0 -2
  131. package/src/notification/tests/notification-angular-colors.tsx +0 -28
  132. package/src/notification/tests/notification-angular.tsx +0 -65
  133. package/src/notification/tests/notification-custom-angular.tsx +0 -77
  134. /package/dist/types/notification/tests/{notification-angular-colors.d.ts → notification-colors.d.ts} +0 -0
  135. /package/dist/types/notification/tests/{notification-angular.d.ts → notification-group.d.ts} +0 -0
  136. /package/dist/types/notification/tests/{notification-custom-angular.d.ts → notification.d.ts} +0 -0
@@ -1,91 +1,13 @@
1
- import { ActionButtons } from '../../action-buttons';
2
- import { Button } from '../../button';
3
- import { Card, CardBody, CardCallout, CardHeader, CardMedia, CardSubtitle, CardTitle } from '../../card';
1
+ import { TimelineNormalAlternating } from '../../timeline';
4
2
 
5
- const style = `
6
- .k-card-media {
7
- display: block;
8
- height: 200px;
9
- width: 100%;
10
- background: #cccccc;
11
- }
12
- `;
3
+ const style = ``;
13
4
 
14
5
  export default () =>(
15
6
  <>
16
7
  <style>{style}</style>
17
8
  <div id="test-area" className="k-d-grid">
18
- <div className="k-timeline k-timeline-vertical k-timeline-alternating k-timeline-collapsible">
19
- <ul>
20
- <li className="k-timeline-flag-wrap">
21
- <span className="k-timeline-flag">2014</span>
22
- </li>
23
- <li className="k-timeline-event">
24
- <div className="k-timeline-date-wrap">
25
- <span className="k-timeline-date">Jan 14, 2014</span>
26
- </div>
27
- <a className="k-timeline-circle"></a>
28
- <div className="k-timeline-card k-collapsed">
29
- <Card orientation="vertical" callout="true">
30
- <CardCallout className="k-timeline-card-callout" callout="left" />
31
- <div className="k-card-inner">
32
- <CardHeader>
33
- <CardTitle>
34
- <span className="k-event-title">Collapsed Event</span>
35
- <Button fillMode="flat" icon="chevron-right" className="k-event-collapse"></Button>
36
- </CardTitle>
37
- <CardSubtitle>
38
- <h6 className="k-card-subtitle">Subtitle</h6>
39
- </CardSubtitle>
40
- </CardHeader>
41
- <CardBody>
42
- <div className="k-card-description">
43
- <p>Card Description here</p>
44
- <CardMedia />
45
- </div>
46
- </CardBody>
47
- <ActionButtons className="k-card-actions">
48
- <Button fillMode="flat" themeColor="primary">Action 1</Button>
49
- <Button fillMode="flat" themeColor="primary">Action 2</Button>
50
- </ActionButtons>
51
- </div>
52
- </Card>
53
- </div>
54
- </li>
55
- <li className="k-timeline-event k-reverse">
56
- <div className="k-timeline-date-wrap">
57
- <span className="k-timeline-date">Jun 1, 2014</span>
58
- </div>
59
- <a className="k-timeline-circle"></a>
60
- <div className="k-timeline-card k-expanded" >
61
- <Card orientation="vertical" callout="true">
62
- <CardCallout className="k-timeline-card-callout" callout="right" />
63
- <div className="k-card-inner">
64
- <CardHeader>
65
- <CardTitle>
66
- <span className="k-event-title">Expanded event with reallyyyyy long title</span>
67
- <Button fillMode="flat" icon="chevron-right" className="k-event-collapse"></Button>
68
- </CardTitle>
69
- <CardSubtitle>
70
- <h6 className="k-card-subtitle">Subtitle</h6>
71
- </CardSubtitle>
72
- </CardHeader>
73
- <CardBody>
74
- <div className="k-card-description">
75
- <p>Timeline Event Description</p>
76
- <CardMedia />
77
- </div>
78
- </CardBody>
79
- <ActionButtons className="k-card-actions">
80
- <Button fillMode="flat" themeColor="primary">Action 1</Button>
81
- <Button fillMode="flat" themeColor="primary">Action 2</Button>
82
- </ActionButtons>
83
- </div>
84
- </Card>
85
- </div>
86
- </li>
87
- </ul>
88
- </div>
9
+ <span>Vertical timeline with alternating events</span>
10
+ <TimelineNormalAlternating />
89
11
  </div>
90
12
  </>
91
13
  );
@@ -1,91 +1,20 @@
1
- import { ActionButtons } from '../../action-buttons';
2
- import { Button } from '../../button';
3
- import { Card, CardBody, CardCallout, CardHeader, CardMedia, CardSubtitle, CardTitle } from '../../card';
1
+ import { TimelineNormal, TimelineNormalCollapsible } from '../../timeline';
4
2
 
5
3
  const style = `
6
- .k-card-media {
7
- display: block;
8
- height: 200px;
9
- width: 100%;
10
- background: #cccccc;
4
+ .k-timeline .k-timeline-card .k-card {
5
+ width: 200px;
11
6
  }
12
7
  `;
13
8
 
14
9
  export default () =>(
15
10
  <>
16
11
  <style>{style}</style>
17
- <div id="test-area" className="k-d-grid">
18
- <div className="k-timeline k-timeline-vertical k-timeline-collapsible">
19
- <ul>
20
- <li className="k-timeline-flag-wrap">
21
- <span className="k-timeline-flag">2014</span>
22
- </li>
23
- <li className="k-timeline-event">
24
- <div className="k-timeline-date-wrap">
25
- <span className="k-timeline-date">Jan 14, 2014</span>
26
- </div>
27
- <a className="k-timeline-circle"></a>
28
- <div className="k-timeline-card k-collapsed" >
29
- <Card orientation="vertical" callout="true">
30
- <CardCallout className="k-timeline-card-callout" callout="left" />
31
- <div className="k-card-inner">
32
- <CardHeader>
33
- <CardTitle>
34
- <span className="k-event-title">Collapsed Event</span>
35
- <Button fillMode="flat" icon="chevron-right" className="k-event-collapse"></Button>
36
- </CardTitle>
37
- <CardSubtitle>
38
- <h6 className="k-card-subtitle">Subtitle</h6>
39
- </CardSubtitle>
40
- </CardHeader>
41
- <CardBody>
42
- <div className="k-card-description">
43
- <p>Card Description here</p>
44
- <CardMedia />
45
- </div>
46
- </CardBody>
47
- <ActionButtons className="k-card-actions">
48
- <Button fillMode="flat" themeColor="primary">Action 1</Button>
49
- <Button fillMode="flat" themeColor="primary">Action 2</Button>
50
- </ActionButtons>
51
- </div>
52
- </Card>
53
- </div>
54
- </li>
55
- <li className="k-timeline-event k-reverse">
56
- <div className="k-timeline-date-wrap">
57
- <span className="k-timeline-date">Jun 1, 2014</span>
58
- </div>
59
- <a className="k-timeline-circle"></a>
60
- <div className="k-timeline-card k-expanded">
61
- <Card orientation="vertical" callout="true">
62
- <CardCallout className="k-timeline-card-callout" callout="left" />
63
- <div className="k-card-inner">
64
- <CardHeader>
65
- <CardTitle>
66
- <span className="k-event-title">Expanded event with reallyyyyy long title</span>
67
- <Button fillMode="flat" icon="chevron-right" className="k-event-collapse"></Button>
68
- </CardTitle>
69
- <CardSubtitle>
70
- <h6 className="k-card-subtitle">Subtitle</h6>
71
- </CardSubtitle>
72
- </CardHeader>
73
- <CardBody>
74
- <div className="k-card-description">
75
- <p>Timeline Event Description</p>
76
- <CardMedia />
77
- </div>
78
- </CardBody>
79
- <ActionButtons className="k-card-actions">
80
- <Button fillMode="flat" themeColor="primary">Action 1</Button>
81
- <Button fillMode="flat" themeColor="primary">Action 2</Button>
82
- </ActionButtons>
83
- </div>
84
- </Card>
85
- </div>
86
- </li>
87
- </ul>
88
- </div>
12
+ <div id="test-area" className="k-d-grid k-grid-cols-2">
13
+ <span>Non-collapsible events</span>
14
+ <span>Collapsible events</span>
15
+
16
+ <TimelineNormal />
17
+ <TimelineNormalCollapsible />
89
18
  </div>
90
19
  </>
91
20
  );
@@ -0,0 +1,35 @@
1
+ import { classNames } from '../misc';
2
+ import { CardCallout, KendoCardCalloutProps } from '../card';
3
+
4
+ export const TIMELINECARDCALLOUT_CLASSNAME = `k-timeline-card-callout`;
5
+
6
+ const states = [];
7
+
8
+ const defaultProps = {};
9
+
10
+ export const TimelineCardCallout = (
11
+ props:
12
+ KendoCardCalloutProps &
13
+ React.HTMLAttributes<HTMLDivElement>
14
+ ) => {
15
+ const {
16
+ ...other
17
+ } = props;
18
+
19
+ return (
20
+ <CardCallout
21
+ className={classNames(
22
+ props.className,
23
+ TIMELINECARDCALLOUT_CLASSNAME,
24
+ )}
25
+ {...other}
26
+ >
27
+ </CardCallout>
28
+ );
29
+ };
30
+
31
+ TimelineCardCallout.states = states;
32
+ TimelineCardCallout.className = TIMELINECARDCALLOUT_CLASSNAME;
33
+ TimelineCardCallout.defaultProps = defaultProps;
34
+
35
+ export default TimelineCardCallout;
@@ -0,0 +1,42 @@
1
+ import { classNames } from '../misc';
2
+ import { IconButton } from '../button';
3
+
4
+ export const TIMELINECARDTITLE_CLASSNAME = `k-card-title`;
5
+
6
+ const states = [];
7
+
8
+ const defaultProps = {};
9
+
10
+ export type KendoTimelineCardTitleProps = {
11
+ collapsible?: boolean;
12
+ };
13
+
14
+ export const TimelineCardTitle = (
15
+ props: KendoTimelineCardTitleProps &
16
+ React.HTMLAttributes<HTMLDivElement>
17
+ ) => {
18
+ const {
19
+ collapsible,
20
+ children,
21
+ ...other
22
+ } = props;
23
+
24
+ return (
25
+ <div
26
+ className={classNames(
27
+ props.className,
28
+ TIMELINECARDTITLE_CLASSNAME,
29
+ )}
30
+ {...other}
31
+ >
32
+ <span className="k-event-title">{children}</span>
33
+ {collapsible && <IconButton fillMode="flat" icon="chevron-right" className="k-event-collapse"></IconButton>}
34
+ </div>
35
+ );
36
+ };
37
+
38
+ TimelineCardTitle.states = states;
39
+ TimelineCardTitle.className = TIMELINECARDTITLE_CLASSNAME;
40
+ TimelineCardTitle.defaultProps = defaultProps;
41
+
42
+ export default TimelineCardTitle;
@@ -0,0 +1,37 @@
1
+ import { KendoCardProps, Card } from '../card';
2
+ import { classNames } from '../misc';
3
+ import { TimelineCardCallout } from '../timeline';
4
+
5
+ const states = [];
6
+
7
+ const defaultProps = {};
8
+
9
+ export const TimelineCard = (
10
+ props:
11
+ KendoCardProps &
12
+ React.HTMLAttributes<HTMLDivElement>
13
+ ) => {
14
+ const {
15
+ callout,
16
+ children,
17
+ ...other
18
+ } = props;
19
+
20
+ return (
21
+ <Card
22
+ className={classNames(
23
+ props.className
24
+ )}
25
+ orientation="vertical"
26
+ {...other}
27
+ >
28
+ { callout && <TimelineCardCallout callout={callout} />}
29
+ {children}
30
+ </Card>
31
+ );
32
+ };
33
+
34
+ TimelineCard.states = states;
35
+ TimelineCard.defaultProps = defaultProps;
36
+
37
+ export default TimelineCard;
@@ -0,0 +1,24 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINECIRCLE_CLASSNAME = `k-timeline-circle`;
4
+
5
+ export const TimelineCircle = (
6
+ props: React.HTMLAttributes<HTMLSpanElement>
7
+ ) => {
8
+ const {
9
+ ...other
10
+ } = props;
11
+
12
+ return (
13
+
14
+ <span
15
+ {...other}
16
+ className={classNames(
17
+ props.className,
18
+ TIMELINECIRCLE_CLASSNAME
19
+ )}>
20
+ </span>
21
+ );
22
+ };
23
+
24
+ export default TimelineCircle;
@@ -0,0 +1,44 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINEDATEWRAP_CLASSNAME = `k-timeline-date-wrap`;
4
+
5
+ const states = [];
6
+
7
+ const options = {};
8
+
9
+ export type KendoDateWrapProps = {
10
+ date?: string;
11
+ };
12
+
13
+ const defaultProps = {
14
+ date: "May 25, 2008",
15
+ };
16
+
17
+ export const TimelineDateWrap = (
18
+ props: KendoDateWrapProps &
19
+ React.HTMLAttributes<HTMLDivElement>
20
+ ) => {
21
+ const {
22
+ date = defaultProps.date,
23
+ ...other
24
+ } = props;
25
+
26
+ return (
27
+
28
+ <div
29
+ {...other}
30
+ className={classNames(
31
+ props.className,
32
+ TIMELINEDATEWRAP_CLASSNAME
33
+ )}>
34
+ <span className="k-timeline-date">{date}</span>
35
+ </div>
36
+ );
37
+ };
38
+
39
+ TimelineDateWrap.states = states;
40
+ TimelineDateWrap.options = options;
41
+ TimelineDateWrap.className = TIMELINEDATEWRAP_CLASSNAME;
42
+ TimelineDateWrap.defaultProps = defaultProps;
43
+
44
+ export default TimelineDateWrap;
@@ -0,0 +1,27 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINEEVENTLIST_CLASSNAME = `k-timeline-events-list`;
4
+
5
+ export const TimelineEventList = (
6
+ props: React.HTMLAttributes<HTMLDivElement>
7
+ ) => {
8
+ const {
9
+ ...other
10
+ } = props;
11
+
12
+ return (
13
+
14
+ <div
15
+ {...other}
16
+ className={classNames(
17
+ props.className,
18
+ TIMELINEEVENTLIST_CLASSNAME
19
+ )}>
20
+ <ul className="k-timeline-scrollable-wrap">
21
+ {props.children}
22
+ </ul>
23
+ </div>
24
+ );
25
+ };
26
+
27
+ export default TimelineEventList;
@@ -0,0 +1,47 @@
1
+ import { classNames, States } from '../misc';
2
+
3
+ export const TIMELINEFLAGWRAP_CLASSNAME = `k-timeline-flag-wrap`;
4
+
5
+ const states = [
6
+ States.focus,
7
+ States.selected
8
+ ];
9
+
10
+ const options = {};
11
+
12
+ export type KendoFlagWrapProps = {
13
+ year?: string;
14
+ };
15
+
16
+ const defaultProps = {
17
+ year: "2020",
18
+ };
19
+
20
+ export const TimelineFlagWrap = (
21
+ props: KendoFlagWrapProps &
22
+ React.HTMLAttributes<HTMLLIElement>
23
+ ) => {
24
+ const {
25
+ year,
26
+ ...other
27
+ } = props;
28
+
29
+ return (
30
+ <li
31
+ {...other}
32
+ className={classNames(
33
+ props.className,
34
+ TIMELINEFLAGWRAP_CLASSNAME
35
+ )}>
36
+ <span className="k-timeline-flag">{year}</span>
37
+ {props.children}
38
+ </li>
39
+ );
40
+ };
41
+
42
+ TimelineFlagWrap.states = states;
43
+ TimelineFlagWrap.options = options;
44
+ TimelineFlagWrap.className = TIMELINEFLAGWRAP_CLASSNAME;
45
+ TimelineFlagWrap.defaultProps = defaultProps;
46
+
47
+ export default TimelineFlagWrap;
@@ -0,0 +1,31 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINEFLAG_CLASSNAME = `k-timeline-flag`;
4
+
5
+ export type KendoTimelineFlagOptions = {
6
+ content?: string;
7
+ };
8
+
9
+ export const TimelineFlag = (
10
+ props: KendoTimelineFlagOptions &
11
+ React.HTMLAttributes<HTMLSpanElement>
12
+ ) => {
13
+ const {
14
+ content,
15
+ ...other
16
+ } = props;
17
+
18
+ return (
19
+
20
+ <span
21
+ {...other}
22
+ className={classNames(
23
+ props.className,
24
+ TIMELINEFLAG_CLASSNAME
25
+ )}>
26
+ {content}
27
+ </span>
28
+ );
29
+ };
30
+
31
+ export default TimelineFlag;
@@ -0,0 +1,33 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINETRACKITEM_CLASSNAME = `k-timeline-track-item`;
4
+
5
+ export type KendoTimelineTrackItemOptions = {
6
+ children?: JSX.Element | JSX.Element[];
7
+ content?: string;
8
+ };
9
+
10
+ export const TimelineTrackItem = (
11
+ props: KendoTimelineTrackItemOptions &
12
+ React.HTMLAttributes<HTMLLIElement>
13
+ ) => {
14
+ const {
15
+ content,
16
+ ...other
17
+ } = props;
18
+
19
+ return (
20
+
21
+ <li
22
+ {...other}
23
+ className={classNames(
24
+ props.className,
25
+ TIMELINETRACKITEM_CLASSNAME
26
+ )}>
27
+ {content}
28
+ {props.children}
29
+ </li>
30
+ );
31
+ };
32
+
33
+ export default TimelineTrackItem;
@@ -0,0 +1,31 @@
1
+ import { classNames } from '../misc';
2
+ import { Button } from '../button';
3
+ import { TimelineTrack } from '../timeline';
4
+
5
+ export const TIMELINETRACKWRAP_CLASSNAME = `k-timeline-track-wrap`;
6
+
7
+ export const TimelineTrackWrap = (
8
+ props: React.HTMLAttributes<HTMLDivElement>
9
+ ) => {
10
+ const {
11
+ ...other
12
+ } = props;
13
+
14
+ return (
15
+
16
+ <div
17
+ {...other}
18
+ className={classNames(
19
+ props.className,
20
+ TIMELINETRACKWRAP_CLASSNAME
21
+ )}>
22
+ <Button className="k-timeline-arrow k-timeline-arrow-left" rounded="full" icon="caret-alt-left" />
23
+ <Button className="k-timeline-arrow k-timeline-arrow-right" rounded="full" icon="caret-alt-right" />
24
+ <TimelineTrack>
25
+ {props.children}
26
+ </TimelineTrack>
27
+ </div>
28
+ );
29
+ };
30
+
31
+ export default TimelineTrackWrap;
@@ -0,0 +1,27 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINETRACK_CLASSNAME = `k-timeline-track`;
4
+
5
+ export const TimelineTrack = (
6
+ props: React.HTMLAttributes<HTMLDivElement>
7
+ ) => {
8
+ const {
9
+ ...other
10
+ } = props;
11
+
12
+ return (
13
+
14
+ <div
15
+ {...other}
16
+ className={classNames(
17
+ props.className,
18
+ TIMELINETRACK_CLASSNAME
19
+ )}>
20
+ <ul className="k-timeline-scrollable-wrap">
21
+ {props.children}
22
+ </ul>
23
+ </div>
24
+ );
25
+ };
26
+
27
+ export default TimelineTrack;
@@ -0,0 +1,53 @@
1
+ import { classNames } from '../misc';
2
+
3
+ export const TIMELINE_CLASSNAME = `k-timeline`;
4
+
5
+ const states = [];
6
+
7
+ const options = {};
8
+
9
+ export type KendoTimelineProps = {
10
+ children?: JSX.Element | JSX.Element[];
11
+ orientation?: null | 'vertical' | 'horizontal';
12
+ collapsibleEvents?: boolean;
13
+ alternatingMode?: boolean;
14
+ };
15
+
16
+ const defaultProps = {
17
+ orientation: "vertical",
18
+ };
19
+
20
+ export const Timeline = (
21
+ props: KendoTimelineProps &
22
+ React.HTMLAttributes<HTMLDivElement>
23
+ ) => {
24
+ const {
25
+ orientation,
26
+ collapsibleEvents,
27
+ alternatingMode,
28
+ ...other
29
+ } = props;
30
+
31
+ return (
32
+ <div
33
+ {...other}
34
+ className={classNames(
35
+ props.className,
36
+ TIMELINE_CLASSNAME,
37
+ {
38
+ [`${TIMELINE_CLASSNAME}-${orientation}`]: orientation,
39
+ [`${TIMELINE_CLASSNAME}-alternating`]: alternatingMode,
40
+ [`${TIMELINE_CLASSNAME}-collapsible`]: collapsibleEvents,
41
+ }
42
+ )}>
43
+ <>{props.children}</>
44
+ </div>
45
+ );
46
+ };
47
+
48
+ Timeline.states = states;
49
+ Timeline.options = options;
50
+ Timeline.className = TIMELINE_CLASSNAME;
51
+ Timeline.defaultProps = defaultProps;
52
+
53
+ export default Timeline;