@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
@@ -67,6 +67,7 @@ export * from './expansion-panel/index';
67
67
  export * from './tilelayout/index';
68
68
  export * from './listview/index';
69
69
  export * from './filter/index';
70
+ export * from './timeline/index';
70
71
  export * from './scrollview/index';
71
72
  export * from './editor/index';
72
73
  export * from './table/index';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export declare const TIMELINEHORIZONTALEVENT_CLASSNAME = "k-timeline-event";
3
+ export type KendoHorizontalTimelineEventProps = {
4
+ content?: string | JSX.Element;
5
+ title?: string;
6
+ subtitle?: string;
7
+ };
8
+ export declare const HorizontalTimelineEvent: {
9
+ (props: KendoHorizontalTimelineEventProps & React.HTMLAttributes<HTMLLIElement>): import("react/jsx-runtime").JSX.Element;
10
+ states: any[];
11
+ options: {};
12
+ className: string;
13
+ defaultProps: {
14
+ title: string;
15
+ subtitle: string;
16
+ content: string;
17
+ };
18
+ };
19
+ export default HorizontalTimelineEvent;
@@ -0,0 +1,18 @@
1
+ export * from './timeline.spec';
2
+ export * from './vertical-timeline-event.spec';
3
+ export * from './horizontal-timeline-event.spec';
4
+ export * from './timeline-event-list.spec';
5
+ export * from './timeline-flag-wrap.spec';
6
+ export * from './timeline-circle.spec';
7
+ export * from './timeline-flag.spec';
8
+ export * from './timeline-card.spec';
9
+ export * from './timeline-card-title';
10
+ export * from './timeline-card-callout';
11
+ export * from './timeline-date-wrap.spec';
12
+ export * from './timeline-track-wrap.spec';
13
+ export * from './timeline-track.spec';
14
+ export * from './timeline-track-item.spec';
15
+ export * from './templates/timeline-normal';
16
+ export * from './templates/timeline-normal-collapsible';
17
+ export * from './templates/timeline-normal-alternating';
18
+ export * from './templates/timeline-horizontal';
@@ -0,0 +1 @@
1
+ export declare const TimelineHorizontal: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TimelineNormalAlternating: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TimelineNormalCollapsible: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TimelineNormal: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { KendoCardCalloutProps } from '../card';
2
+ export declare const TIMELINECARDCALLOUT_CLASSNAME = "k-timeline-card-callout";
3
+ export declare const TimelineCardCallout: {
4
+ (props: KendoCardCalloutProps & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
+ states: any[];
6
+ className: string;
7
+ defaultProps: {};
8
+ };
9
+ export default TimelineCardCallout;
@@ -0,0 +1,11 @@
1
+ export declare const TIMELINECARDTITLE_CLASSNAME = "k-card-title";
2
+ export type KendoTimelineCardTitleProps = {
3
+ collapsible?: boolean;
4
+ };
5
+ export declare const TimelineCardTitle: {
6
+ (props: KendoTimelineCardTitleProps & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
7
+ states: any[];
8
+ className: string;
9
+ defaultProps: {};
10
+ };
11
+ export default TimelineCardTitle;
@@ -0,0 +1,7 @@
1
+ import { KendoCardProps } from '../card';
2
+ export declare const TimelineCard: {
3
+ (props: KendoCardProps & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
+ states: any[];
5
+ defaultProps: {};
6
+ };
7
+ export default TimelineCard;
@@ -0,0 +1,3 @@
1
+ export declare const TIMELINECIRCLE_CLASSNAME = "k-timeline-circle";
2
+ export declare const TimelineCircle: (props: React.HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default TimelineCircle;
@@ -0,0 +1,14 @@
1
+ export declare const TIMELINEDATEWRAP_CLASSNAME = "k-timeline-date-wrap";
2
+ export type KendoDateWrapProps = {
3
+ date?: string;
4
+ };
5
+ export declare const TimelineDateWrap: {
6
+ (props: KendoDateWrapProps & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
7
+ states: any[];
8
+ options: {};
9
+ className: string;
10
+ defaultProps: {
11
+ date: string;
12
+ };
13
+ };
14
+ export default TimelineDateWrap;
@@ -0,0 +1,3 @@
1
+ export declare const TIMELINEEVENTLIST_CLASSNAME = "k-timeline-events-list";
2
+ export declare const TimelineEventList: (props: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default TimelineEventList;
@@ -0,0 +1,14 @@
1
+ export declare const TIMELINEFLAGWRAP_CLASSNAME = "k-timeline-flag-wrap";
2
+ export type KendoFlagWrapProps = {
3
+ year?: string;
4
+ };
5
+ export declare const TimelineFlagWrap: {
6
+ (props: KendoFlagWrapProps & React.HTMLAttributes<HTMLLIElement>): import("react/jsx-runtime").JSX.Element;
7
+ states: ("focus" | "selected")[];
8
+ options: {};
9
+ className: string;
10
+ defaultProps: {
11
+ year: string;
12
+ };
13
+ };
14
+ export default TimelineFlagWrap;
@@ -0,0 +1,6 @@
1
+ export declare const TIMELINEFLAG_CLASSNAME = "k-timeline-flag";
2
+ export type KendoTimelineFlagOptions = {
3
+ content?: string;
4
+ };
5
+ export declare const TimelineFlag: (props: KendoTimelineFlagOptions & React.HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
6
+ export default TimelineFlag;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const TIMELINETRACKITEM_CLASSNAME = "k-timeline-track-item";
3
+ export type KendoTimelineTrackItemOptions = {
4
+ children?: JSX.Element | JSX.Element[];
5
+ content?: string;
6
+ };
7
+ export declare const TimelineTrackItem: (props: KendoTimelineTrackItemOptions & React.HTMLAttributes<HTMLLIElement>) => import("react/jsx-runtime").JSX.Element;
8
+ export default TimelineTrackItem;
@@ -0,0 +1,3 @@
1
+ export declare const TIMELINETRACKWRAP_CLASSNAME = "k-timeline-track-wrap";
2
+ export declare const TimelineTrackWrap: (props: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default TimelineTrackWrap;
@@ -0,0 +1,3 @@
1
+ export declare const TIMELINETRACK_CLASSNAME = "k-timeline-track";
2
+ export declare const TimelineTrack: (props: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default TimelineTrack;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ export declare const TIMELINE_CLASSNAME = "k-timeline";
3
+ export type KendoTimelineProps = {
4
+ children?: JSX.Element | JSX.Element[];
5
+ orientation?: null | 'vertical' | 'horizontal';
6
+ collapsibleEvents?: boolean;
7
+ alternatingMode?: boolean;
8
+ };
9
+ export declare const Timeline: {
10
+ (props: KendoTimelineProps & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ states: any[];
12
+ options: {};
13
+ className: string;
14
+ defaultProps: {
15
+ orientation: string;
16
+ };
17
+ };
18
+ export default Timeline;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export declare const TIMELINEVERTICALEVENT_CLASSNAME = "k-timeline-event";
3
+ export type KendoVerticalTimelineEventProps = {
4
+ date?: string;
5
+ content?: string | JSX.Element;
6
+ collapsed?: boolean;
7
+ reverse?: boolean;
8
+ title?: string;
9
+ subtitle?: string;
10
+ showCollapseButton?: boolean;
11
+ };
12
+ export declare const VerticalTimelineEvent: {
13
+ (props: KendoVerticalTimelineEventProps & React.HTMLAttributes<HTMLLIElement>): import("react/jsx-runtime").JSX.Element;
14
+ states: any[];
15
+ options: {};
16
+ className: string;
17
+ defaultProps: {
18
+ collapsed: boolean;
19
+ reverse: boolean;
20
+ title: string;
21
+ subtitle: string;
22
+ content: string;
23
+ };
24
+ };
25
+ export default VerticalTimelineEvent;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-themes-html",
3
3
  "description": "A collection of HTML helpers used for developing Kendo UI themes",
4
- "version": "7.1.0-dev.0",
4
+ "version": "7.1.0-dev.2",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -52,5 +52,5 @@
52
52
  "devDependencies": {
53
53
  "@types/react": "^18.0.2"
54
54
  },
55
- "gitHead": "e0a0885fdf92926065f788aab0ad62453b875258"
55
+ "gitHead": "5c463cc90be2d59355a047ce91142b02465fcc13"
56
56
  }
@@ -33,4 +33,4 @@ export const CardTitle = (
33
33
  {props.children}
34
34
  </div>
35
35
  );
36
- };
36
+ };
@@ -758,7 +758,7 @@ export default () =>(
758
758
  <div className="k-gantt-line k-gantt-line-v" style={{ left: "621px", top: "197px", height: "72px" }}></div>
759
759
  <div className="k-gantt-line k-gantt-line-h" style={{ left: "621px", top: "269px", width: "191px" }}><span className="k-arrow-e"></span></div>
760
760
  </div>
761
- <div className="k-current-time" style={{ left: "243px", top: "0px", height: "828px" }}></div>
761
+ <div className="k-current-time" style={{ left: "243px", top: "0px", width: "1px", height: "828px" }}></div>
762
762
  </div>
763
763
  </div>
764
764
  </div>
package/src/index.ts CHANGED
@@ -108,7 +108,7 @@ export * from './filter/index';
108
108
  // export * from './adaptive/index''
109
109
  // export * from './chat/index';
110
110
  // export * from './mediaplayer/index';
111
- // export * from './timeline/index';
111
+ export * from './timeline/index';
112
112
  // export * from './pdf-viewer/index';
113
113
  // export * from './scroller/index';
114
114
  export * from './scrollview/index';
@@ -5,6 +5,7 @@ import {
5
5
  InputLoadingIcon,
6
6
  InputPrefix,
7
7
  InputSuffix,
8
+ InputInnerInput,
8
9
  InputValidationIcon
9
10
  } from '../input';
10
11
  import { Button } from '../button';
@@ -110,14 +111,14 @@ export const MultiSelectTree = (
110
111
  className={classNames(props.className, MULTISELECTTREE_CLASSNAME)}
111
112
  >
112
113
  <InputPrefix>{prefix}</InputPrefix>
113
- <ChipList size={size} className="k-input-values">
114
- <>
115
- {tags}
116
- </>
117
- </ChipList>
118
- <span className="k-input-inner">
119
- <span className="k-input-value-text">{placeholder}</span>
120
- </span>
114
+ <div className="k-input-values">
115
+ <ChipList size={size}>
116
+ <>
117
+ {tags}
118
+ </>
119
+ </ChipList>
120
+ <InputInnerInput placeholder={placeholder}/>
121
+ </div>
121
122
  <InputValidationIcon
122
123
  valid={valid}
123
124
  invalid={invalid}
@@ -1,4 +1,4 @@
1
- import { Notification, NotificationClosable } from '../../notification';
1
+ import { Notification, NotificationClosable } from '..';
2
2
  import { AnimationContainer } from '../../animation-container';
3
3
 
4
4
 
@@ -0,0 +1,49 @@
1
+ import { NotificationNormal, NotificationClosable, IconNotification, IconNotificationClosable } from '..';
2
+ import { AnimationContainer } from '../../animation-container';
3
+
4
+ const styles = `
5
+ .k-notification-group, .k-animation-container {
6
+ position: static;
7
+ }
8
+ `;
9
+
10
+ export default () => (
11
+ <>
12
+ <style>{styles}</style>
13
+ <div id="test-area" className="k-d-grid k-grid-cols-2">
14
+
15
+ <span className="k-col-span-1">LTR</span>
16
+ <span className="k-col-span-1">RTL</span>
17
+
18
+ <div className="k-notification-group">
19
+ <AnimationContainer>
20
+ <NotificationNormal text="Default notification" />
21
+ </AnimationContainer>
22
+ <AnimationContainer>
23
+ <IconNotification text="Icon notification" />
24
+ </AnimationContainer>
25
+ <AnimationContainer>
26
+ <NotificationClosable text="Closable notification" />
27
+ </AnimationContainer>
28
+ <AnimationContainer>
29
+ <IconNotificationClosable text="Closable notification with icon" />
30
+ </AnimationContainer>
31
+ </div>
32
+
33
+ <div className="k-notification-group k-rtl">
34
+ <AnimationContainer>
35
+ <NotificationNormal text="Default notification" />
36
+ </AnimationContainer>
37
+ <AnimationContainer>
38
+ <IconNotification text="Icon notification" />
39
+ </AnimationContainer>
40
+ <AnimationContainer>
41
+ <NotificationClosable text="Closable notification" />
42
+ </AnimationContainer>
43
+ <AnimationContainer>
44
+ <IconNotificationClosable text="Closable notification with icon" />
45
+ </AnimationContainer>
46
+ </div>
47
+ </div>
48
+ </>
49
+ );
@@ -1,4 +1,4 @@
1
- import { NotificationNormal, NotificationClosable, IconNotification, IconNotificationClosable } from '../../notification';
1
+ import { NotificationNormal, NotificationClosable, IconNotification, IconNotificationClosable } from '..';
2
2
  import { AnimationContainer } from '../../animation-container';
3
3
 
4
4
 
@@ -0,0 +1,66 @@
1
+ import { classNames } from '../misc';
2
+ import { CardHeader, CardBody, CardSubtitle } from '../card';
3
+ import { TimelineCard, TimelineCardTitle } from '../timeline';
4
+
5
+ export const TIMELINEHORIZONTALEVENT_CLASSNAME = `k-timeline-event`;
6
+
7
+ const states = [];
8
+
9
+ const options = {};
10
+
11
+
12
+ export type KendoHorizontalTimelineEventProps = {
13
+ content?: string | JSX.Element;
14
+ title?: string;
15
+ subtitle?: string;
16
+ };
17
+
18
+ const defaultProps = {
19
+ title: "Event title",
20
+ subtitle: "Event subtitle",
21
+ content: "Event content"
22
+ };
23
+
24
+ export const HorizontalTimelineEvent = (
25
+ props: KendoHorizontalTimelineEventProps &
26
+ React.HTMLAttributes<HTMLLIElement>
27
+ ) => {
28
+ const {
29
+ content = defaultProps.content,
30
+ title = defaultProps.title,
31
+ subtitle = defaultProps.subtitle,
32
+ ...other
33
+ } = props;
34
+
35
+ return (
36
+ <li
37
+ {...other}
38
+ className={classNames(
39
+ props.className,
40
+ TIMELINEHORIZONTALEVENT_CLASSNAME
41
+ )}>
42
+ {content && <div className={classNames('k-timeline-card')}>
43
+ <TimelineCard orientation="vertical" callout="top">
44
+ <div className="k-card-inner">
45
+ <CardHeader>
46
+ <TimelineCardTitle>{title}</TimelineCardTitle>
47
+ <CardSubtitle>{subtitle}</CardSubtitle>
48
+ </CardHeader>
49
+ <CardBody>
50
+ <div className="k-card-description">{content}</div>
51
+ </CardBody>
52
+ </div>
53
+ </TimelineCard>
54
+
55
+ </div>}
56
+ {props.children}
57
+ </li>
58
+ );
59
+ };
60
+
61
+ HorizontalTimelineEvent.states = states;
62
+ HorizontalTimelineEvent.options = options;
63
+ HorizontalTimelineEvent.className = TIMELINEHORIZONTALEVENT_CLASSNAME;
64
+ HorizontalTimelineEvent.defaultProps = defaultProps;
65
+
66
+ export default HorizontalTimelineEvent;
@@ -0,0 +1,18 @@
1
+ export * from './timeline.spec';
2
+ export * from './vertical-timeline-event.spec';
3
+ export * from './horizontal-timeline-event.spec';
4
+ export * from './timeline-event-list.spec';
5
+ export * from './timeline-flag-wrap.spec';
6
+ export * from './timeline-circle.spec';
7
+ export * from './timeline-flag.spec';
8
+ export * from './timeline-card.spec';
9
+ export * from './timeline-card-title';
10
+ export * from './timeline-card-callout';
11
+ export * from './timeline-date-wrap.spec';
12
+ export * from './timeline-track-wrap.spec';
13
+ export * from './timeline-track.spec';
14
+ export * from './timeline-track-item.spec';
15
+ export * from './templates/timeline-normal';
16
+ export * from './templates/timeline-normal-collapsible';
17
+ export * from './templates/timeline-normal-alternating';
18
+ export * from './templates/timeline-horizontal';
@@ -0,0 +1,35 @@
1
+ import { Timeline, TimelineTrackWrap, TimelineTrackItem, TimelineFlag, TimelineDateWrap, TimelineCircle, TimelineEventList, HorizontalTimelineEvent } from "../../timeline";
2
+
3
+ export const TimelineHorizontal = (props) => (
4
+ <Timeline
5
+ orientation="horizontal"
6
+ children={[
7
+ <>
8
+ <TimelineTrackWrap>
9
+ <TimelineTrackItem className="k-timeline-flag-wrap">
10
+ <TimelineFlag content="2015"></TimelineFlag>
11
+ </TimelineTrackItem>
12
+ <TimelineTrackItem>
13
+ <TimelineDateWrap date="Jan 14, 2015"></TimelineDateWrap>
14
+ <TimelineCircle></TimelineCircle>
15
+ </TimelineTrackItem>
16
+ <TimelineTrackItem>
17
+ <TimelineDateWrap date="Jun 1, 2015"></TimelineDateWrap>
18
+ <TimelineCircle></TimelineCircle>
19
+ </TimelineTrackItem>
20
+ <TimelineTrackItem>
21
+ <TimelineDateWrap date="Sep 29, 2015"></TimelineDateWrap>
22
+ <TimelineCircle></TimelineCircle>
23
+ </TimelineTrackItem>
24
+ <TimelineTrackItem className="k-timeline-flag-wrap">
25
+ <TimelineFlag content="2016"></TimelineFlag>
26
+ </TimelineTrackItem>
27
+ </TimelineTrackWrap>
28
+ <TimelineEventList>
29
+ <HorizontalTimelineEvent />
30
+ </TimelineEventList>
31
+ </>
32
+ ]}
33
+ {...props}>
34
+ </Timeline>
35
+ );
@@ -0,0 +1,18 @@
1
+ import { Timeline, TimelineFlagWrap, VerticalTimelineEvent } from "../../timeline";
2
+
3
+ export const TimelineNormalAlternating = (props) => (
4
+ <Timeline
5
+ alternatingMode={true}
6
+ children={
7
+ <ul>
8
+ <TimelineFlagWrap year="2010"/>
9
+ <VerticalTimelineEvent date="Apr 11, 2010" reverse={true}/>
10
+ <VerticalTimelineEvent date="May 11, 2010"></VerticalTimelineEvent>
11
+ <TimelineFlagWrap year="2011" />
12
+ <VerticalTimelineEvent date="Oct 11, 2011" reverse={true}></VerticalTimelineEvent>
13
+ <VerticalTimelineEvent date="Dec 11, 2011"></VerticalTimelineEvent>
14
+ </ul>
15
+ }
16
+ {...props}>
17
+ </Timeline>
18
+ );
@@ -0,0 +1,16 @@
1
+ import { Timeline, TimelineFlagWrap, VerticalTimelineEvent } from "../../timeline";
2
+
3
+ export const TimelineNormalCollapsible = (props) => (
4
+ <Timeline
5
+ collapsibleEvents={true}
6
+ children={
7
+ <ul>
8
+ <TimelineFlagWrap year="2010"/>
9
+ <VerticalTimelineEvent date="May 11, 2010" collapsed={false} showCollapseButton={true}></VerticalTimelineEvent>
10
+ <TimelineFlagWrap year="2011" />
11
+ <VerticalTimelineEvent date="Oct 11, 2011" subtitle="Collapsed" collapsed={true} showCollapseButton={true}></VerticalTimelineEvent>
12
+ </ul>
13
+ }
14
+ {...props}>
15
+ </Timeline>
16
+ );
@@ -0,0 +1,15 @@
1
+ import { Timeline, TimelineFlagWrap, VerticalTimelineEvent } from "../../timeline";
2
+
3
+ export const TimelineNormal = (props) => (
4
+ <Timeline
5
+ children={
6
+ <ul>
7
+ <TimelineFlagWrap year="2010"/>
8
+ <VerticalTimelineEvent date="May 11, 2010"></VerticalTimelineEvent>
9
+ <TimelineFlagWrap year="2011" />
10
+ <VerticalTimelineEvent date="Oct 11, 2011"></VerticalTimelineEvent>
11
+ </ul>
12
+ }
13
+ {...props}>
14
+ </Timeline>
15
+ );
@@ -1,6 +1,4 @@
1
- import { ActionButtons } from '../../action-buttons';
2
- import { Button } from '../../button';
3
- import { Card, CardBody, CardCallout, CardHeader, CardMedia } from '../../card';
1
+ import { TimelineHorizontal } from '../../timeline';
4
2
 
5
3
  const style = `
6
4
  .k-card-media {
@@ -15,65 +13,8 @@ export default () =>(
15
13
  <>
16
14
  <style>{style}</style>
17
15
  <div id="test-area">
18
- <div className="k-timeline k-timeline-horizontal">
19
- <div className="k-timeline-track-wrap">
20
- <Button icon="caret-alt-left" className="k-timeline-arrow k-timeline-arrow-left"></Button>
21
- <Button icon="caret-alt-right" className="k-timeline-arrow k-timeline-arrow-right"></Button>
22
-
23
- <div className="k-timeline-track">
24
- <ul className="k-timeline-scrollable-wrap">
25
- <li className="k-timeline-track-item">
26
- <span className="k-timeline-flag">2015</span>
27
- </li>
28
- <li className="k-timeline-track-item">
29
- <div className="k-timeline-date-wrap">
30
- <span className="k-timeline-date">Jan 14, 2015</span>
31
- </div>
32
- <a className="k-timeline-circle" href="#"></a>
33
- </li>
34
- <li className="k-timeline-track-item k-focus">
35
- <div className="k-timeline-date-wrap">
36
- <span className="k-timeline-date">Jun 1, 2015</span>
37
- </div>
38
- <a className="k-timeline-circle" href="#"></a>
39
- </li>
40
- <li className="k-timeline-track-item">
41
- <div className="k-timeline-date-wrap">
42
- <span className="k-timeline-date">Sep 29, 2015</span>
43
- </div>
44
- <a className="k-timeline-circle" href="#"></a>
45
- </li>
46
- <li className="k-timeline-track-item">
47
- <span className="k-timeline-flag">2016</span>
48
- </li>
49
- </ul>
50
- </div>
51
- </div>
52
- <div className="k-timeline-events-list">
53
- <ul className="k-timeline-scrollable-wrap">
54
- <li className="k-timeline-event">
55
- <div className="k-timeline-card">
56
- <Card orientation="vertical" callout="true">
57
- <CardCallout className="k-timeline-card-callout" callout="top" />
58
- <div className="k-card-inner">
59
- <CardHeader title="Title" subtitle="Subtitle" />
60
- <CardBody>
61
- <div className="k-card-description">
62
- <p>Card Description Here</p>
63
- <CardMedia />
64
- </div>
65
- </CardBody>
66
- <ActionButtons alignment="start" className="k-card-actions">
67
- <Button fillMode="flat" themeColor="primary">Action 1</Button>
68
- <Button fillMode="flat" themeColor="primary">Action 2</Button>
69
- </ActionButtons>
70
- </div>
71
- </Card>
72
- </div>
73
- </li>
74
- </ul>
75
- </div>
76
- </div>
16
+ <span>Horizontal Timeline</span>
17
+ <TimelineHorizontal />
77
18
  </div>
78
19
  </>
79
20
  );