@progress/kendo-themes-html 7.1.0-dev.3 → 7.1.0-dev.4

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 (62) hide show
  1. package/dist/cjs/index.js +1269 -1247
  2. package/dist/cjs/prompt/prompt-content.js +3 -4813
  3. package/dist/cjs/prompt/prompt-view.js +4862 -0
  4. package/dist/cjs/prompt/templates/prompt-more-actions.js +92 -72
  5. package/dist/cjs/prompt/templates/prompt-normal.js +89 -69
  6. package/dist/cjs/prompt/templates/prompt-output.js +120 -100
  7. package/dist/cjs/prompt/templates/prompt-popup.js +91 -71
  8. package/dist/cjs/prompt/templates/prompt-settings.js +86 -66
  9. package/dist/cjs/prompt/templates/prompt-suggestions.js +96 -76
  10. package/dist/cjs/prompt/tests/prompt-more-actions.js +98 -78
  11. package/dist/cjs/prompt/tests/prompt-normal.js +136 -116
  12. package/dist/cjs/prompt/tests/prompt-output.js +126 -106
  13. package/dist/cjs/timeline/horizontal-timeline-event.spec.js +1 -2
  14. package/dist/cjs/timeline/templates/timeline-horizontal.js +1 -2
  15. package/dist/cjs/timeline/templates/timeline-normal-alternating.js +1 -2
  16. package/dist/cjs/timeline/templates/timeline-normal-collapsible.js +1 -2
  17. package/dist/cjs/timeline/templates/timeline-normal.js +1 -2
  18. package/dist/cjs/timeline/tests/timeline-horizontal.js +1 -2
  19. package/dist/cjs/timeline/tests/timeline-vertical-alternating.js +1 -2
  20. package/dist/cjs/timeline/tests/timeline-vertical.js +1 -2
  21. package/dist/cjs/timeline/timeline-card-title.js +8 -165
  22. package/dist/cjs/timeline/timeline-card.spec.js +1 -2
  23. package/dist/cjs/timeline/timeline-track-wrap.spec.js +1 -2
  24. package/dist/cjs/timeline/vertical-timeline-event.spec.js +1 -2
  25. package/dist/esm/index.js +1095 -1073
  26. package/dist/esm/prompt/prompt-content.js +4 -4820
  27. package/dist/esm/prompt/prompt-view.js +4846 -0
  28. package/dist/esm/prompt/templates/prompt-more-actions.js +84 -64
  29. package/dist/esm/prompt/templates/prompt-normal.js +83 -63
  30. package/dist/esm/prompt/templates/prompt-output.js +108 -88
  31. package/dist/esm/prompt/templates/prompt-popup.js +86 -66
  32. package/dist/esm/prompt/templates/prompt-settings.js +77 -57
  33. package/dist/esm/prompt/templates/prompt-suggestions.js +90 -70
  34. package/dist/esm/prompt/tests/prompt-more-actions.js +89 -69
  35. package/dist/esm/prompt/tests/prompt-normal.js +123 -103
  36. package/dist/esm/prompt/tests/prompt-output.js +113 -93
  37. package/dist/esm/timeline/horizontal-timeline-event.spec.js +1 -2
  38. package/dist/esm/timeline/templates/timeline-horizontal.js +1 -2
  39. package/dist/esm/timeline/templates/timeline-normal-alternating.js +1 -2
  40. package/dist/esm/timeline/templates/timeline-normal-collapsible.js +1 -2
  41. package/dist/esm/timeline/templates/timeline-normal.js +1 -2
  42. package/dist/esm/timeline/tests/timeline-horizontal.js +1 -2
  43. package/dist/esm/timeline/tests/timeline-vertical-alternating.js +1 -2
  44. package/dist/esm/timeline/tests/timeline-vertical.js +1 -2
  45. package/dist/esm/timeline/timeline-card-title.js +8 -165
  46. package/dist/esm/timeline/timeline-card.spec.js +1 -2
  47. package/dist/esm/timeline/timeline-track-wrap.spec.js +1 -2
  48. package/dist/esm/timeline/vertical-timeline-event.spec.js +1 -2
  49. package/dist/types/prompt/index.d.ts +1 -0
  50. package/dist/types/prompt/prompt-content.d.ts +1 -7
  51. package/dist/types/prompt/prompt-view.d.ts +8 -0
  52. package/package.json +2 -2
  53. package/src/prompt/index.ts +1 -0
  54. package/src/prompt/prompt-content.tsx +1 -30
  55. package/src/prompt/prompt-view.tsx +51 -0
  56. package/src/prompt/templates/prompt-more-actions.tsx +11 -9
  57. package/src/prompt/templates/prompt-normal.tsx +4 -2
  58. package/src/prompt/templates/prompt-output.tsx +33 -31
  59. package/src/prompt/templates/prompt-popup.tsx +4 -2
  60. package/src/prompt/templates/prompt-settings.tsx +25 -23
  61. package/src/prompt/templates/prompt-suggestions.tsx +12 -10
  62. package/src/timeline/timeline-card-title.tsx +2 -2
@@ -4655,7 +4655,6 @@ Button.defaultProps = defaultProps6;
4655
4655
 
4656
4656
  // src/button/templates/icon-button.tsx
4657
4657
  var import_jsx_runtime11 = require("react/jsx-runtime");
4658
- var IconButton = (props) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { icon: "folder", ...props, children: void 0 });
4659
4658
 
4660
4659
  // src/button/templates/icon-text-button.tsx
4661
4660
  var import_jsx_runtime12 = require("react/jsx-runtime");
@@ -4992,7 +4991,7 @@ var TimelineCardTitle = (props) => {
4992
4991
  ...other,
4993
4992
  children: [
4994
4993
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-event-title", children }),
4995
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(IconButton, { fillMode: "flat", icon: "chevron-right", className: "k-event-collapse" })
4994
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon: "chevron-right", className: "k-button-icon" }) })
4996
4995
  ]
4997
4996
  }
4998
4997
  );
@@ -61,22 +61,6 @@ var optionClassNames = (componentClassName, props) => {
61
61
  }
62
62
  );
63
63
  };
64
- var stateClassNames = (_componentClassName, props) => {
65
- return classNames({
66
- "k-valid": props.valid,
67
- "k-invalid": props.invalid,
68
- "k-hover": props.hover,
69
- "k-focus": props.focus,
70
- "k-checked": props.checked,
71
- "k-active": props.active,
72
- "k-selected": props.selected,
73
- "k-disabled": props.disabled,
74
- "k-indeterminate": props.indeterminate && !props.checked,
75
- "k-loading": props.loading,
76
- "k-empty": props.empty,
77
- "k-readonly": props.readonly
78
- });
79
- };
80
64
 
81
65
  // src/misc/theme.ts
82
66
  var Size = {
@@ -88,19 +72,6 @@ var Size = {
88
72
  "xxlarge": "xxlarge",
89
73
  "xxxlarge": "xxxlarge"
90
74
  };
91
- var Roundness = {
92
- "small": "small",
93
- "medium": "medium",
94
- "large": "large",
95
- "full": "full"
96
- };
97
- var FillMode = {
98
- "solid": "solid",
99
- "flat": "flat",
100
- "outline": "outline",
101
- "clear": "clear",
102
- "link": "link"
103
- };
104
75
  var ThemeColor = {
105
76
  "inherit": "inherit",
106
77
  "base": "base",
@@ -115,22 +86,6 @@ var ThemeColor = {
115
86
  "light": "light",
116
87
  "inverse": "inverse"
117
88
  };
118
- var States = {
119
- "open": "open",
120
- "hover": "hover",
121
- "focus": "focus",
122
- "active": "active",
123
- "selected": "selected",
124
- "disabled": "disabled",
125
- "valid": "valid",
126
- "invalid": "invalid",
127
- "loading": "loading",
128
- "required": "required",
129
- "empty": "empty",
130
- "indeterminate": "indeterminate",
131
- "checked": "checked",
132
- "readonly": "readonly"
133
- };
134
89
 
135
90
  // src/icon/font-icon.spec.tsx
136
91
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -4365,130 +4320,18 @@ Icon.states = states3;
4365
4320
  Icon.options = options3;
4366
4321
  Icon.defaultProps = defaultProps3;
4367
4322
 
4368
- // src/button/button.spec.tsx
4369
- var import_jsx_runtime4 = require("react/jsx-runtime");
4370
- var BUTTON_CLASSNAME = `k-button`;
4371
- var states4 = [
4372
- States.hover,
4373
- States.focus,
4374
- States.active,
4375
- States.selected,
4376
- States.disabled
4377
- ];
4378
- var options4 = {
4379
- size: [Size.small, Size.medium, Size.large],
4380
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4381
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4382
- themeColor: [
4383
- ThemeColor.base,
4384
- ThemeColor.primary,
4385
- ThemeColor.secondary,
4386
- ThemeColor.tertiary,
4387
- ThemeColor.success,
4388
- ThemeColor.warning,
4389
- ThemeColor.error,
4390
- ThemeColor.info,
4391
- ThemeColor.light,
4392
- ThemeColor.dark,
4393
- ThemeColor.inverse
4394
- ]
4395
- };
4396
- var defaultProps4 = {
4397
- size: Size.medium,
4398
- rounded: Roundness.medium,
4399
- fillMode: FillMode.solid,
4400
- themeColor: ThemeColor.base,
4401
- showArrow: false,
4402
- arrowIconName: "caret-alt-down"
4403
- };
4404
- var Button = (props) => {
4405
- const {
4406
- size = defaultProps4.size,
4407
- rounded = defaultProps4.rounded,
4408
- fillMode = defaultProps4.fillMode,
4409
- themeColor = defaultProps4.themeColor,
4410
- hover,
4411
- focus,
4412
- active,
4413
- selected,
4414
- disabled,
4415
- icon,
4416
- text,
4417
- iconClassName,
4418
- showArrow = defaultProps4.showArrow,
4419
- arrowIconName = defaultProps4.arrowIconName,
4420
- ...other
4421
- } = props;
4422
- const hasIcon = icon !== void 0;
4423
- const hasChildren = props.children !== void 0;
4424
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
4425
- "button",
4426
- {
4427
- ...other,
4428
- className: classNames(
4429
- props.className,
4430
- BUTTON_CLASSNAME,
4431
- optionClassNames(BUTTON_CLASSNAME, {
4432
- size,
4433
- rounded,
4434
- fillMode,
4435
- themeColor
4436
- }),
4437
- stateClassNames(BUTTON_CLASSNAME, {
4438
- hover,
4439
- focus,
4440
- active,
4441
- disabled,
4442
- selected
4443
- }),
4444
- {
4445
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4446
- }
4447
- ),
4448
- children: [
4449
- icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4450
- Icon,
4451
- {
4452
- className: classNames(iconClassName, "k-button-icon"),
4453
- icon
4454
- }
4455
- ),
4456
- text ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
4457
- text && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-button-text", children: text }),
4458
- props.children
4459
- ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-button-text", children: props.children }),
4460
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: arrowIconName }) })
4461
- ]
4462
- }
4463
- );
4464
- };
4465
- Button.states = states4;
4466
- Button.options = options4;
4467
- Button.className = BUTTON_CLASSNAME;
4468
- Button.defaultProps = defaultProps4;
4469
-
4470
- // src/button/templates/icon-button.tsx
4471
- var import_jsx_runtime5 = require("react/jsx-runtime");
4472
- var IconButton = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Button, { icon: "folder", ...props, children: void 0 });
4473
-
4474
- // src/button/templates/icon-text-button.tsx
4475
- var import_jsx_runtime6 = require("react/jsx-runtime");
4476
-
4477
- // src/button/templates/text-button.tsx
4478
- var import_jsx_runtime7 = require("react/jsx-runtime");
4479
-
4480
4323
  // src/timeline/timeline-card-title.tsx
4481
- var import_jsx_runtime8 = require("react/jsx-runtime");
4324
+ var import_jsx_runtime4 = require("react/jsx-runtime");
4482
4325
  var TIMELINECARDTITLE_CLASSNAME = `k-card-title`;
4483
- var states5 = [];
4484
- var defaultProps5 = {};
4326
+ var states4 = [];
4327
+ var defaultProps4 = {};
4485
4328
  var TimelineCardTitle = (props) => {
4486
4329
  const {
4487
4330
  collapsible,
4488
4331
  children,
4489
4332
  ...other
4490
4333
  } = props;
4491
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
4334
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
4492
4335
  "div",
4493
4336
  {
4494
4337
  className: classNames(
@@ -4497,13 +4340,13 @@ var TimelineCardTitle = (props) => {
4497
4340
  ),
4498
4341
  ...other,
4499
4342
  children: [
4500
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "k-event-title", children }),
4501
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(IconButton, { fillMode: "flat", icon: "chevron-right", className: "k-event-collapse" })
4343
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-event-title", children }),
4344
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "chevron-right", className: "k-button-icon" }) })
4502
4345
  ]
4503
4346
  }
4504
4347
  );
4505
4348
  };
4506
- TimelineCardTitle.states = states5;
4349
+ TimelineCardTitle.states = states4;
4507
4350
  TimelineCardTitle.className = TIMELINECARDTITLE_CLASSNAME;
4508
- TimelineCardTitle.defaultProps = defaultProps5;
4351
+ TimelineCardTitle.defaultProps = defaultProps4;
4509
4352
  var timeline_card_title_default = TimelineCardTitle;
@@ -4619,7 +4619,6 @@ Button.defaultProps = defaultProps5;
4619
4619
 
4620
4620
  // src/button/templates/icon-button.tsx
4621
4621
  var import_jsx_runtime10 = require("react/jsx-runtime");
4622
- var IconButton = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { icon: "folder", ...props, children: void 0 });
4623
4622
 
4624
4623
  // src/button/templates/icon-text-button.tsx
4625
4624
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -4965,7 +4964,7 @@ var TimelineCardTitle = (props) => {
4965
4964
  ...other,
4966
4965
  children: [
4967
4966
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-event-title", children }),
4968
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IconButton, { fillMode: "flat", icon: "chevron-right", className: "k-event-collapse" })
4967
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: "chevron-right", className: "k-button-icon" }) })
4969
4968
  ]
4970
4969
  }
4971
4970
  );
@@ -4481,7 +4481,6 @@ Button.defaultProps = defaultProps4;
4481
4481
 
4482
4482
  // src/button/templates/icon-button.tsx
4483
4483
  var import_jsx_runtime5 = require("react/jsx-runtime");
4484
- var IconButton = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Button, { icon: "folder", ...props, children: void 0 });
4485
4484
 
4486
4485
  // src/button/templates/icon-text-button.tsx
4487
4486
  var import_jsx_runtime6 = require("react/jsx-runtime");
@@ -4994,7 +4993,7 @@ var TimelineCardTitle = (props) => {
4994
4993
  ...other,
4995
4994
  children: [
4996
4995
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-event-title", children }),
4997
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(IconButton, { fillMode: "flat", icon: "chevron-right", className: "k-event-collapse" })
4996
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon: "chevron-right", className: "k-button-icon" }) })
4998
4997
  ]
4999
4998
  }
5000
4999
  );
@@ -4620,7 +4620,6 @@ Button.defaultProps = defaultProps5;
4620
4620
 
4621
4621
  // src/button/templates/icon-button.tsx
4622
4622
  var import_jsx_runtime10 = require("react/jsx-runtime");
4623
- var IconButton = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { icon: "folder", ...props, children: void 0 });
4624
4623
 
4625
4624
  // src/button/templates/icon-text-button.tsx
4626
4625
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -4942,7 +4941,7 @@ var TimelineCardTitle = (props) => {
4942
4941
  ...other,
4943
4942
  children: [
4944
4943
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-event-title", children }),
4945
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IconButton, { fillMode: "flat", icon: "chevron-right", className: "k-event-collapse" })
4944
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: "chevron-right", className: "k-button-icon" }) })
4946
4945
  ]
4947
4946
  }
4948
4947
  );