@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,12 +94,139 @@ 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
+ };
113
+ var kendoThemeMaps = {
114
+ calloutMap: {
115
+ top: "n",
116
+ bottom: "s",
117
+ left: "w",
118
+ right: "e"
119
+ },
120
+ orientationMap: {
121
+ vertical: "vstack",
122
+ horizontal: "hstack"
123
+ }
124
+ };
125
+
126
+ // src/card/card-callout.tsx
127
+ import { jsx } from "react/jsx-runtime";
128
+ var CARDCALLOUT_CLASSNAME = `k-card-callout`;
129
+ var CardCallout = (props) => {
130
+ const {
131
+ callout,
132
+ ...other
133
+ } = props;
134
+ return /* @__PURE__ */ jsx(
135
+ "span",
136
+ {
137
+ ...other,
138
+ className: classNames(
139
+ props.className,
140
+ CARDCALLOUT_CLASSNAME,
141
+ {
142
+ [`k-callout-${kendoThemeMaps.calloutMap[callout] || callout}`]: callout
143
+ }
144
+ )
145
+ }
146
+ );
147
+ };
148
+
149
+ // src/card/card.spec.tsx
150
+ import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
151
+ var CARD_CLASSNAME = `k-card`;
152
+ var states = [
153
+ States.hover,
154
+ States.focus,
155
+ States.selected,
156
+ States.disabled
157
+ ];
158
+ var options = {
159
+ themeColor: [
160
+ ThemeColor.primary,
161
+ ThemeColor.success,
162
+ ThemeColor.warning,
163
+ ThemeColor.error,
164
+ ThemeColor.info
165
+ ]
166
+ };
167
+ var defaultProps = {};
168
+ var Card = (props) => {
169
+ const {
170
+ orientation,
171
+ themeColor,
172
+ callout,
173
+ hover,
174
+ focus,
175
+ selected,
176
+ disabled,
177
+ ...other
178
+ } = props;
179
+ return /* @__PURE__ */ jsxs(
180
+ "div",
181
+ {
182
+ ...other,
183
+ className: classNames(
184
+ props.className,
185
+ CARD_CLASSNAME,
186
+ optionClassNames(CARD_CLASSNAME, {
187
+ themeColor
188
+ }),
189
+ stateClassNames(CARD_CLASSNAME, {
190
+ hover,
191
+ focus,
192
+ disabled,
193
+ selected
194
+ }),
195
+ {
196
+ [`k-card-${orientation}`]: orientation,
197
+ "k-card-with-callout": callout
198
+ }
199
+ ),
200
+ children: [
201
+ callout && callout !== "true" && /* @__PURE__ */ jsx2(CardCallout, { callout }),
202
+ /* @__PURE__ */ jsx2(Fragment, { children: props.children })
203
+ ]
204
+ }
205
+ );
206
+ };
207
+ Card.states = states;
208
+ Card.options = options;
209
+ Card.className = CARD_CLASSNAME;
210
+ Card.defaultProps = defaultProps;
211
+
212
+ // src/card/card-title.tsx
213
+ import { jsx as jsx3 } from "react/jsx-runtime";
214
+ var states2 = [
215
+ States.hover,
216
+ States.focus
217
+ ];
218
+
219
+ // src/card/card-subtitle.tsx
220
+ import { jsx as jsx4 } from "react/jsx-runtime";
221
+
222
+ // src/card/card-media.tsx
223
+ import { Fragment as Fragment2, jsx as jsx5 } from "react/jsx-runtime";
68
224
 
69
225
  // src/icon/font-icon.spec.tsx
70
- import { Fragment, jsx } from "react/jsx-runtime";
226
+ import { Fragment as Fragment3, jsx as jsx6 } from "react/jsx-runtime";
71
227
  var FONTICON_CLASSNAME = `k-icon k-font-icon`;
72
- var states = [];
73
- var options = {
228
+ var states3 = [];
229
+ var options2 = {
74
230
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
75
231
  themeColor: [
76
232
  ThemeColor.base,
@@ -85,7 +241,7 @@ var options = {
85
241
  ThemeColor.dark
86
242
  ]
87
243
  };
88
- var defaultProps = {};
244
+ var defaultProps2 = {};
89
245
  var FontIcon = (props) => {
90
246
  const {
91
247
  size,
@@ -96,9 +252,9 @@ var FontIcon = (props) => {
96
252
  ...other
97
253
  } = props;
98
254
  if (!icon) {
99
- return /* @__PURE__ */ jsx(Fragment, {});
255
+ return /* @__PURE__ */ jsx6(Fragment3, {});
100
256
  }
101
- return /* @__PURE__ */ jsx(
257
+ return /* @__PURE__ */ jsx6(
102
258
  "span",
103
259
  {
104
260
  ...other,
@@ -119,17 +275,17 @@ var FontIcon = (props) => {
119
275
  }
120
276
  );
121
277
  };
122
- FontIcon.states = states;
123
- FontIcon.options = options;
278
+ FontIcon.states = states3;
279
+ FontIcon.options = options2;
124
280
  FontIcon.className = FONTICON_CLASSNAME;
125
- FontIcon.defaultProps = defaultProps;
281
+ FontIcon.defaultProps = defaultProps2;
126
282
  var font_icon_spec_default = FontIcon;
127
283
 
128
284
  // src/icon/svg-icon.spec.tsx
129
- import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
285
+ import { Fragment as Fragment4, jsx as jsx7 } from "react/jsx-runtime";
130
286
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
131
- var states2 = [];
132
- var options2 = {
287
+ var states4 = [];
288
+ var options3 = {
133
289
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
134
290
  themeColor: [
135
291
  ThemeColor.base,
@@ -144,7 +300,7 @@ var options2 = {
144
300
  ThemeColor.dark
145
301
  ]
146
302
  };
147
- var defaultProps2 = {
303
+ var defaultProps3 = {
148
304
  viewBox: "0 0 24 24"
149
305
  };
150
306
  var SvgIcon = (props) => {
@@ -153,15 +309,15 @@ var SvgIcon = (props) => {
153
309
  themeColor,
154
310
  rotate,
155
311
  flip,
156
- viewBox = defaultProps2.viewBox,
312
+ viewBox = defaultProps3.viewBox,
157
313
  icon,
158
314
  ...other
159
315
  } = props;
160
316
  if (!icon) {
161
- return /* @__PURE__ */ jsx2(Fragment2, {});
317
+ return /* @__PURE__ */ jsx7(Fragment4, {});
162
318
  }
163
319
  if (icon === "none") {
164
- /* @__PURE__ */ jsx2(
320
+ /* @__PURE__ */ jsx7(
165
321
  "span",
166
322
  {
167
323
  ...other,
@@ -174,7 +330,7 @@ var SvgIcon = (props) => {
174
330
  );
175
331
  }
176
332
  const name = typeof icon === "object" && icon.name && icon.name;
177
- return /* @__PURE__ */ jsx2(
333
+ return /* @__PURE__ */ jsx7(
178
334
  "span",
179
335
  {
180
336
  ...other,
@@ -192,7 +348,7 @@ var SvgIcon = (props) => {
192
348
  "k-flip-v": flip === "v" || flip === "both"
193
349
  }
194
350
  ),
195
- children: /* @__PURE__ */ jsx2(
351
+ children: /* @__PURE__ */ jsx7(
196
352
  "svg",
197
353
  {
198
354
  "aria-hidden": true,
@@ -206,10 +362,10 @@ var SvgIcon = (props) => {
206
362
  }
207
363
  );
208
364
  };
209
- SvgIcon.states = states2;
210
- SvgIcon.options = options2;
365
+ SvgIcon.states = states4;
366
+ SvgIcon.options = options3;
211
367
  SvgIcon.className = SVGICON_CLASSNAME;
212
- SvgIcon.defaultProps = defaultProps2;
368
+ SvgIcon.defaultProps = defaultProps3;
213
369
  var svg_icon_spec_default = SvgIcon;
214
370
 
215
371
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4208,13 +4364,13 @@ var chartChoroplethIcon = {
4208
4364
  };
4209
4365
 
4210
4366
  // src/icon/icon.spec.tsx
4211
- import { Fragment as Fragment3, jsx as jsx3 } from "react/jsx-runtime";
4367
+ import { Fragment as Fragment5, jsx as jsx8 } from "react/jsx-runtime";
4212
4368
  var snakeToCamel = (str) => str.toLowerCase().replace(
4213
4369
  /([-_][a-z])/g,
4214
4370
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4215
4371
  );
4216
- var states3 = [];
4217
- var options3 = {
4372
+ var states5 = [];
4373
+ var options4 = {
4218
4374
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4219
4375
  themeColor: [
4220
4376
  ThemeColor.base,
@@ -4229,7 +4385,7 @@ var options3 = {
4229
4385
  ThemeColor.dark
4230
4386
  ]
4231
4387
  };
4232
- var defaultProps3 = {
4388
+ var defaultProps4 = {
4233
4389
  viewBox: "0 0 24 24",
4234
4390
  type: "svg"
4235
4391
  };
@@ -4238,36 +4394,45 @@ var Icon = (props) => {
4238
4394
  size,
4239
4395
  themeColor,
4240
4396
  icon,
4241
- type = defaultProps3.type,
4397
+ type = defaultProps4.type,
4242
4398
  rotate,
4243
4399
  flip,
4244
- viewBox = defaultProps3.viewBox,
4400
+ viewBox = defaultProps4.viewBox,
4245
4401
  ...other
4246
4402
  } = props;
4247
4403
  if (!icon) {
4248
- return /* @__PURE__ */ jsx3(Fragment3, {});
4404
+ return /* @__PURE__ */ jsx8(Fragment5, {});
4249
4405
  }
4250
4406
  if (type === "svg") {
4251
4407
  if (icon === "none") {
4252
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon, size });
4408
+ return /* @__PURE__ */ jsx8(svg_icon_spec_default, { ...other, icon, size });
4253
4409
  }
4254
4410
  const iconSVG = snakeToCamel(`${icon}-icon`);
4255
4411
  if (!index_es_exports[iconSVG]) {
4256
- return /* @__PURE__ */ jsx3(Fragment3, {});
4412
+ return /* @__PURE__ */ jsx8(Fragment5, {});
4257
4413
  }
4258
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4414
+ return /* @__PURE__ */ jsx8(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4259
4415
  }
4260
- return /* @__PURE__ */ jsx3(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4416
+ return /* @__PURE__ */ jsx8(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4261
4417
  };
4262
- Icon.states = states3;
4263
- Icon.options = options3;
4264
- Icon.defaultProps = defaultProps3;
4418
+ Icon.states = states5;
4419
+ Icon.options = options4;
4420
+ Icon.defaultProps = defaultProps4;
4265
4421
 
4266
- // src/notification/notification.spec.tsx
4267
- import { Fragment as Fragment4, jsx as jsx4, jsxs } from "react/jsx-runtime";
4268
- var NOTIFICATION_CLASSNAME = `k-notification`;
4269
- var states4 = [];
4270
- var options4 = {
4422
+ // src/button/button.spec.tsx
4423
+ import { Fragment as Fragment6, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
4424
+ var BUTTON_CLASSNAME = `k-button`;
4425
+ var states6 = [
4426
+ States.hover,
4427
+ States.focus,
4428
+ States.active,
4429
+ States.selected,
4430
+ States.disabled
4431
+ ];
4432
+ var options5 = {
4433
+ size: [Size.small, Size.medium, Size.large],
4434
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4435
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4271
4436
  themeColor: [
4272
4437
  ThemeColor.base,
4273
4438
  ThemeColor.primary,
@@ -4282,145 +4447,169 @@ var options4 = {
4282
4447
  ThemeColor.inverse
4283
4448
  ]
4284
4449
  };
4285
- var defaultProps4 = {
4450
+ var defaultProps5 = {
4451
+ size: Size.medium,
4452
+ rounded: Roundness.medium,
4453
+ fillMode: FillMode.solid,
4286
4454
  themeColor: ThemeColor.base,
4287
- closable: false
4455
+ showArrow: false,
4456
+ arrowIconName: "caret-alt-down"
4288
4457
  };
4289
- var Notification = (props) => {
4458
+ var Button = (props) => {
4290
4459
  const {
4291
- actions,
4292
- themeColor = defaultProps4.themeColor,
4293
- text,
4460
+ size = defaultProps5.size,
4461
+ rounded = defaultProps5.rounded,
4462
+ fillMode = defaultProps5.fillMode,
4463
+ themeColor = defaultProps5.themeColor,
4464
+ hover,
4465
+ focus,
4466
+ active,
4467
+ selected,
4468
+ disabled,
4294
4469
  icon,
4295
- closable = defaultProps4.closable,
4470
+ text,
4471
+ iconClassName,
4472
+ showArrow = defaultProps5.showArrow,
4473
+ arrowIconName = defaultProps5.arrowIconName,
4296
4474
  ...other
4297
4475
  } = props;
4298
- return /* @__PURE__ */ jsxs(
4299
- "div",
4476
+ const hasIcon = icon !== void 0;
4477
+ const hasChildren = props.children !== void 0;
4478
+ return /* @__PURE__ */ jsxs2(
4479
+ "button",
4300
4480
  {
4301
4481
  ...other,
4302
4482
  className: classNames(
4303
4483
  props.className,
4304
- NOTIFICATION_CLASSNAME,
4305
- optionClassNames(NOTIFICATION_CLASSNAME, {
4484
+ BUTTON_CLASSNAME,
4485
+ optionClassNames(BUTTON_CLASSNAME, {
4486
+ size,
4487
+ rounded,
4488
+ fillMode,
4306
4489
  themeColor
4307
4490
  }),
4491
+ stateClassNames(BUTTON_CLASSNAME, {
4492
+ hover,
4493
+ focus,
4494
+ active,
4495
+ disabled,
4496
+ selected
4497
+ }),
4308
4498
  {
4309
- "k-notification-closable": closable
4499
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4310
4500
  }
4311
4501
  ),
4312
4502
  children: [
4313
- icon && /* @__PURE__ */ jsx4(Icon, { className: "k-notification-status", icon }),
4314
- props.children ? /* @__PURE__ */ jsxs("div", { className: "k-notification-content", children: [
4315
- text,
4503
+ icon && /* @__PURE__ */ jsx9(
4504
+ Icon,
4505
+ {
4506
+ className: classNames(iconClassName, "k-button-icon"),
4507
+ icon
4508
+ }
4509
+ ),
4510
+ text ? /* @__PURE__ */ jsxs2(Fragment6, { children: [
4511
+ text && /* @__PURE__ */ jsx9("span", { className: "k-button-text", children: text }),
4316
4512
  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 })
4513
+ ] }) : props.children && /* @__PURE__ */ jsx9("span", { className: "k-button-text", children: props.children }),
4514
+ showArrow && /* @__PURE__ */ jsx9("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx9(Icon, { icon: arrowIconName }) })
4319
4515
  ]
4320
4516
  }
4321
4517
  );
4322
4518
  };
4323
- Notification.states = states4;
4324
- Notification.options = options4;
4325
- Notification.className = NOTIFICATION_CLASSNAME;
4326
- Notification.defaultProps = defaultProps4;
4519
+ Button.states = states6;
4520
+ Button.options = options5;
4521
+ Button.className = BUTTON_CLASSNAME;
4522
+ Button.defaultProps = defaultProps5;
4327
4523
 
4328
- // src/notification/notification-action.tsx
4329
- 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
- };
4524
+ // src/button/templates/icon-button.tsx
4525
+ import { jsx as jsx10 } from "react/jsx-runtime";
4349
4526
 
4350
- // src/notification/templates/icon-notification.tsx
4351
- import { jsx as jsx6 } from "react/jsx-runtime";
4527
+ // src/button/templates/icon-text-button.tsx
4528
+ import { jsx as jsx11 } from "react/jsx-runtime";
4352
4529
 
4353
- // src/notification/templates/icon-notification-closable.tsx
4354
- import { jsx as jsx7 } from "react/jsx-runtime";
4530
+ // src/button/templates/text-button.tsx
4531
+ import { jsx as jsx12 } from "react/jsx-runtime";
4355
4532
 
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
- );
4533
+ // src/card/card-header.tsx
4534
+ import { Fragment as Fragment7, jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
4367
4535
 
4368
- // src/notification/templates/notification-normal.tsx
4369
- import { jsx as jsx9 } from "react/jsx-runtime";
4370
- var NotificationNormal = (props) => /* @__PURE__ */ jsx9(
4371
- Notification,
4372
- {
4373
- text: "Notification",
4374
- ...props
4375
- }
4376
- );
4536
+ // src/card/card-footer.tsx
4537
+ import { jsx as jsx14 } from "react/jsx-runtime";
4377
4538
 
4378
- // src/notification/tests/notification-custom-angular.tsx
4379
- import { Fragment as Fragment5, jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
4380
- var styles = `
4381
- .k-notification-group {
4382
- position: static;
4383
- }
4539
+ // src/card/card-body.tsx
4540
+ import { Fragment as Fragment8, jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
4384
4541
 
4385
- .fullwidth,
4386
- .fullwidth > .k-notification {
4387
- width: 100%;
4388
- }
4542
+ // src/card/card-deck.tsx
4543
+ import { jsx as jsx16 } from "react/jsx-runtime";
4389
4544
 
4390
- .k-custom-notification {
4391
- font-size: 20px;
4392
- color: black;
4545
+ // src/action-buttons/action-buttons.spec.tsx
4546
+ import { jsx as jsx17 } from "react/jsx-runtime";
4547
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
4548
+ var states7 = [];
4549
+ var options6 = {};
4550
+ var defaultProps6 = {
4551
+ alignment: "start",
4552
+ orientation: "horizontal"
4553
+ };
4554
+ var ActionButtons = (props) => {
4555
+ const {
4556
+ alignment = defaultProps6.alignment,
4557
+ orientation = defaultProps6.orientation,
4558
+ ...other
4559
+ } = props;
4560
+ return /* @__PURE__ */ jsx17(
4561
+ "div",
4562
+ {
4563
+ ...other,
4564
+ className: classNames(
4565
+ ACTIONBUTTONS_CLASSNAME,
4566
+ {
4567
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
4568
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
4569
+ },
4570
+ props.className
4571
+ ),
4572
+ children: props.children
4393
4573
  }
4574
+ );
4575
+ };
4576
+ ActionButtons.states = states7;
4577
+ ActionButtons.options = options6;
4578
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
4579
+ ActionButtons.defaultProps = defaultProps6;
4580
+
4581
+ // src/card/templates/card-normal.tsx
4582
+ import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
4394
4583
 
4395
- .k-notification-actions {
4396
- align-self: start;
4584
+ // src/card/templates/card-horizontal.tsx
4585
+ import { Fragment as Fragment10, jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
4586
+
4587
+ // src/timeline/timeline-card-callout.tsx
4588
+ import { jsx as jsx20 } from "react/jsx-runtime";
4589
+ var TIMELINECARDCALLOUT_CLASSNAME = `k-timeline-card-callout`;
4590
+ var states8 = [];
4591
+ var defaultProps7 = {};
4592
+ var TimelineCardCallout = (props) => {
4593
+ const {
4594
+ ...other
4595
+ } = props;
4596
+ return /* @__PURE__ */ jsx20(
4597
+ CardCallout,
4598
+ {
4599
+ className: classNames(
4600
+ props.className,
4601
+ TIMELINECARDCALLOUT_CLASSNAME
4602
+ ),
4603
+ ...other
4397
4604
  }
4398
- `;
4399
- var notification_custom_angular_default = () => /* @__PURE__ */ jsxs2(Fragment5, { children: [
4400
- /* @__PURE__ */ jsx10("style", { children: styles }),
4401
- /* @__PURE__ */ jsxs2("div", { id: "test-area", className: "k-d-grid k-grid-cols-4", children: [
4402
- /* @__PURE__ */ jsx10("span", { className: "k-colspan-all k-col-span-full", children: "LTR" }),
4403
- /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsxs2("div", { className: "k-notification-group", children: [
4404
- /* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsxs2(NotificationClosable, { text: "Multiline notification", children: [
4405
- /* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
4406
- /* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
4407
- /* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" })
4408
- ] }) }),
4409
- /* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsx10(NotificationNormal, { className: "k-custom-notification", text: "Custom notification" }) })
4410
- ] }) }),
4411
- /* @__PURE__ */ jsx10("div", { className: "k-colspan-3 k-col-span-3", children: /* @__PURE__ */ jsx10("div", { className: "k-notification-container fullwidth", children: /* @__PURE__ */ jsx10(NotificationClosable, { text: "Full width notification" }) }) }),
4412
- /* @__PURE__ */ jsx10("span", { className: "k-colspan-all k-col-span-full", children: "RTL" }),
4413
- /* @__PURE__ */ jsx10("div", { dir: "rtl", children: /* @__PURE__ */ jsxs2("div", { className: "k-notification-group", children: [
4414
- /* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsxs2(NotificationClosable, { text: "Multiline notification", children: [
4415
- /* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
4416
- /* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" }),
4417
- /* @__PURE__ */ jsx10("div", { children: "Closable multiline notification" })
4418
- ] }) }),
4419
- /* @__PURE__ */ jsx10("div", { className: "k-notification-container", children: /* @__PURE__ */ jsx10(NotificationNormal, { className: "k-custom-notification", text: "Custom notification" }) })
4420
- ] }) }),
4421
- /* @__PURE__ */ jsx10("div", { className: "k-colspan-3 k-col-span-3", dir: "rtl", children: /* @__PURE__ */ jsx10("div", { className: "k-notification-container fullwidth", children: /* @__PURE__ */ jsx10(NotificationClosable, { text: "Full width notification" }) }) })
4422
- ] })
4423
- ] });
4605
+ );
4606
+ };
4607
+ TimelineCardCallout.states = states8;
4608
+ TimelineCardCallout.className = TIMELINECARDCALLOUT_CLASSNAME;
4609
+ TimelineCardCallout.defaultProps = defaultProps7;
4610
+ var timeline_card_callout_default = TimelineCardCallout;
4424
4611
  export {
4425
- notification_custom_angular_default as default
4612
+ TIMELINECARDCALLOUT_CLASSNAME,
4613
+ TimelineCardCallout,
4614
+ timeline_card_callout_default as default
4426
4615
  };