@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
@@ -40,6 +40,22 @@ var optionClassNames = (componentClassName, props) => {
40
40
  }
41
41
  );
42
42
  };
43
+ var stateClassNames = (_componentClassName, props) => {
44
+ return classNames({
45
+ "k-valid": props.valid,
46
+ "k-invalid": props.invalid,
47
+ "k-hover": props.hover,
48
+ "k-focus": props.focus,
49
+ "k-checked": props.checked,
50
+ "k-active": props.active,
51
+ "k-selected": props.selected,
52
+ "k-disabled": props.disabled,
53
+ "k-indeterminate": props.indeterminate && !props.checked,
54
+ "k-loading": props.loading,
55
+ "k-empty": props.empty,
56
+ "k-readonly": props.readonly
57
+ });
58
+ };
43
59
 
44
60
  // src/misc/theme.ts
45
61
  var Size = {
@@ -51,6 +67,19 @@ var Size = {
51
67
  "xxlarge": "xxlarge",
52
68
  "xxxlarge": "xxxlarge"
53
69
  };
70
+ var Roundness = {
71
+ "small": "small",
72
+ "medium": "medium",
73
+ "large": "large",
74
+ "full": "full"
75
+ };
76
+ var FillMode = {
77
+ "solid": "solid",
78
+ "flat": "flat",
79
+ "outline": "outline",
80
+ "clear": "clear",
81
+ "link": "link"
82
+ };
54
83
  var ThemeColor = {
55
84
  "inherit": "inherit",
56
85
  "base": "base",
@@ -65,6 +94,22 @@ var ThemeColor = {
65
94
  "light": "light",
66
95
  "inverse": "inverse"
67
96
  };
97
+ var States = {
98
+ "open": "open",
99
+ "hover": "hover",
100
+ "focus": "focus",
101
+ "active": "active",
102
+ "selected": "selected",
103
+ "disabled": "disabled",
104
+ "valid": "valid",
105
+ "invalid": "invalid",
106
+ "loading": "loading",
107
+ "required": "required",
108
+ "empty": "empty",
109
+ "indeterminate": "indeterminate",
110
+ "checked": "checked",
111
+ "readonly": "readonly"
112
+ };
68
113
 
69
114
  // src/icon/font-icon.spec.tsx
70
115
  import { Fragment, jsx } from "react/jsx-runtime";
@@ -4263,11 +4308,20 @@ Icon.states = states3;
4263
4308
  Icon.options = options3;
4264
4309
  Icon.defaultProps = defaultProps3;
4265
4310
 
4266
- // src/notification/notification.spec.tsx
4311
+ // src/button/button.spec.tsx
4267
4312
  import { Fragment as Fragment4, jsx as jsx4, jsxs } from "react/jsx-runtime";
4268
- var NOTIFICATION_CLASSNAME = `k-notification`;
4269
- var states4 = [];
4313
+ var BUTTON_CLASSNAME = `k-button`;
4314
+ var states4 = [
4315
+ States.hover,
4316
+ States.focus,
4317
+ States.active,
4318
+ States.selected,
4319
+ States.disabled
4320
+ ];
4270
4321
  var options4 = {
4322
+ size: [Size.small, Size.medium, Size.large],
4323
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4324
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4271
4325
  themeColor: [
4272
4326
  ThemeColor.base,
4273
4327
  ThemeColor.primary,
@@ -4283,106 +4337,121 @@ var options4 = {
4283
4337
  ]
4284
4338
  };
4285
4339
  var defaultProps4 = {
4340
+ size: Size.medium,
4341
+ rounded: Roundness.medium,
4342
+ fillMode: FillMode.solid,
4286
4343
  themeColor: ThemeColor.base,
4287
- closable: false
4344
+ showArrow: false,
4345
+ arrowIconName: "caret-alt-down"
4288
4346
  };
4289
- var Notification = (props) => {
4347
+ var Button = (props) => {
4290
4348
  const {
4291
- actions,
4349
+ size = defaultProps4.size,
4350
+ rounded = defaultProps4.rounded,
4351
+ fillMode = defaultProps4.fillMode,
4292
4352
  themeColor = defaultProps4.themeColor,
4293
- text,
4353
+ hover,
4354
+ focus,
4355
+ active,
4356
+ selected,
4357
+ disabled,
4294
4358
  icon,
4295
- closable = defaultProps4.closable,
4359
+ text,
4360
+ iconClassName,
4361
+ showArrow = defaultProps4.showArrow,
4362
+ arrowIconName = defaultProps4.arrowIconName,
4296
4363
  ...other
4297
4364
  } = props;
4365
+ const hasIcon = icon !== void 0;
4366
+ const hasChildren = props.children !== void 0;
4298
4367
  return /* @__PURE__ */ jsxs(
4299
- "div",
4368
+ "button",
4300
4369
  {
4301
4370
  ...other,
4302
4371
  className: classNames(
4303
4372
  props.className,
4304
- NOTIFICATION_CLASSNAME,
4305
- optionClassNames(NOTIFICATION_CLASSNAME, {
4373
+ BUTTON_CLASSNAME,
4374
+ optionClassNames(BUTTON_CLASSNAME, {
4375
+ size,
4376
+ rounded,
4377
+ fillMode,
4306
4378
  themeColor
4307
4379
  }),
4380
+ stateClassNames(BUTTON_CLASSNAME, {
4381
+ hover,
4382
+ focus,
4383
+ active,
4384
+ disabled,
4385
+ selected
4386
+ }),
4308
4387
  {
4309
- "k-notification-closable": closable
4388
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4310
4389
  }
4311
4390
  ),
4312
4391
  children: [
4313
- icon && /* @__PURE__ */ jsx4(Icon, { className: "k-notification-status", icon }),
4314
- props.children ? /* @__PURE__ */ jsxs("div", { className: "k-notification-content", children: [
4315
- text,
4392
+ icon && /* @__PURE__ */ jsx4(
4393
+ Icon,
4394
+ {
4395
+ className: classNames(iconClassName, "k-button-icon"),
4396
+ icon
4397
+ }
4398
+ ),
4399
+ text ? /* @__PURE__ */ jsxs(Fragment4, { children: [
4400
+ text && /* @__PURE__ */ jsx4("span", { className: "k-button-text", children: text }),
4316
4401
  props.children
4317
- ] }) : /* @__PURE__ */ jsx4(Fragment4, { children: text && /* @__PURE__ */ jsx4("div", { className: "k-notification-content", children: text }) }),
4318
- actions && /* @__PURE__ */ jsx4("span", { className: "k-notification-actions", children: actions })
4402
+ ] }) : props.children && /* @__PURE__ */ jsx4("span", { className: "k-button-text", children: props.children }),
4403
+ showArrow && /* @__PURE__ */ jsx4("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx4(Icon, { icon: arrowIconName }) })
4319
4404
  ]
4320
4405
  }
4321
4406
  );
4322
4407
  };
4323
- Notification.states = states4;
4324
- Notification.options = options4;
4325
- Notification.className = NOTIFICATION_CLASSNAME;
4326
- Notification.defaultProps = defaultProps4;
4408
+ Button.states = states4;
4409
+ Button.options = options4;
4410
+ Button.className = BUTTON_CLASSNAME;
4411
+ Button.defaultProps = defaultProps4;
4327
4412
 
4328
- // src/notification/notification-action.tsx
4413
+ // src/button/templates/icon-button.tsx
4329
4414
  import { jsx as jsx5 } from "react/jsx-runtime";
4330
- var className = `k-notification-action`;
4331
- var NotificationAction = (props) => {
4332
- const {
4333
- type
4334
- } = props;
4335
- let icon;
4336
- switch (type) {
4337
- case "close":
4338
- icon = /* @__PURE__ */ jsx5(Icon, { icon: "x" });
4339
- break;
4340
- default:
4341
- return /* @__PURE__ */ jsx5(Icon, { icon: type });
4342
- }
4343
- return /* @__PURE__ */ jsx5("span", { className: classNames(
4344
- props.className,
4345
- className,
4346
- `k-notification-${type}-action`
4347
- ), children: icon });
4348
- };
4415
+ var IconButton = (props) => /* @__PURE__ */ jsx5(Button, { icon: "folder", ...props, children: void 0 });
4349
4416
 
4350
- // src/notification/templates/icon-notification.tsx
4417
+ // src/button/templates/icon-text-button.tsx
4351
4418
  import { jsx as jsx6 } from "react/jsx-runtime";
4352
4419
 
4353
- // src/notification/templates/icon-notification-closable.tsx
4420
+ // src/button/templates/text-button.tsx
4354
4421
  import { jsx as jsx7 } from "react/jsx-runtime";
4355
4422
 
4356
- // src/notification/templates/notification-closable.tsx
4357
- import { jsx as jsx8 } from "react/jsx-runtime";
4358
- var NotificationClosable = (props) => /* @__PURE__ */ jsx8(
4359
- Notification,
4360
- {
4361
- closable: true,
4362
- text: "Notification",
4363
- actions: /* @__PURE__ */ jsx8(NotificationAction, { type: "close" }),
4364
- ...props
4365
- }
4366
- );
4367
-
4368
- // src/notification/templates/notification-normal.tsx
4369
- import { jsx as jsx9 } from "react/jsx-runtime";
4370
-
4371
- // src/notification/tests/notification-angular-colors.tsx
4372
- import { Fragment as Fragment5, jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
4373
- var styles = `
4374
- #test-area {
4375
- justify-items: start;
4376
- }
4377
-
4378
- .k-notification-container {
4379
- margin: 0;
4423
+ // src/timeline/timeline-card-title.tsx
4424
+ import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
4425
+ var TIMELINECARDTITLE_CLASSNAME = `k-card-title`;
4426
+ var states5 = [];
4427
+ var defaultProps5 = {};
4428
+ var TimelineCardTitle = (props) => {
4429
+ const {
4430
+ collapsible,
4431
+ children,
4432
+ ...other
4433
+ } = props;
4434
+ return /* @__PURE__ */ jsxs2(
4435
+ "div",
4436
+ {
4437
+ className: classNames(
4438
+ props.className,
4439
+ TIMELINECARDTITLE_CLASSNAME
4440
+ ),
4441
+ ...other,
4442
+ children: [
4443
+ /* @__PURE__ */ jsx8("span", { className: "k-event-title", children }),
4444
+ collapsible && /* @__PURE__ */ jsx8(IconButton, { fillMode: "flat", icon: "chevron-right", className: "k-event-collapse" })
4445
+ ]
4380
4446
  }
4381
- `;
4382
- var notification_angular_colors_default = () => /* @__PURE__ */ jsxs2(Fragment5, { children: [
4383
- /* @__PURE__ */ jsx10("style", { children: styles }),
4384
- /* @__PURE__ */ jsx10("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: Notification.options.themeColor.map((color) => /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsx10(NotificationClosable, { themeColor: color, text: `${color} notification` }) }) })) })
4385
- ] });
4447
+ );
4448
+ };
4449
+ TimelineCardTitle.states = states5;
4450
+ TimelineCardTitle.className = TIMELINECARDTITLE_CLASSNAME;
4451
+ TimelineCardTitle.defaultProps = defaultProps5;
4452
+ var timeline_card_title_default = TimelineCardTitle;
4386
4453
  export {
4387
- notification_angular_colors_default as default
4454
+ TIMELINECARDTITLE_CLASSNAME,
4455
+ TimelineCardTitle,
4456
+ timeline_card_title_default as default
4388
4457
  };