@progress/kendo-themes-html 6.2.1-dev.154 → 6.2.1-dev.170

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 (133) hide show
  1. package/dist/context-menu/tests/context-menu-in-window.js +1 -4
  2. package/dist/context-menu/tests/context-menu-in-window.js.map +2 -2
  3. package/dist/datetime-selector/datetime-selector.spec.js +2 -2
  4. package/dist/datetime-selector/datetime-selector.spec.js.map +2 -2
  5. package/dist/datetime-selector/tests/datetime-selector.js +2 -2
  6. package/dist/datetime-selector/tests/datetime-selector.js.map +2 -2
  7. package/dist/datetimepicker/datetimepicker.spec.js +2 -2
  8. package/dist/datetimepicker/datetimepicker.spec.js.map +2 -2
  9. package/dist/datetimepicker/tests/datetimepicker-opened.js +2 -2
  10. package/dist/datetimepicker/tests/datetimepicker-opened.js.map +2 -2
  11. package/dist/datetimepicker/tests/datetimepicker.js +2 -2
  12. package/dist/datetimepicker/tests/datetimepicker.js.map +2 -2
  13. package/dist/dialog/dialog.spec.js +1 -4
  14. package/dist/dialog/dialog.spec.js.map +2 -2
  15. package/dist/dialog/tests/dialog-action-buttons.js +82 -73
  16. package/dist/dialog/tests/dialog-action-buttons.js.map +3 -3
  17. package/dist/dialog/tests/dialog-in-window.js +2 -8
  18. package/dist/dialog/tests/dialog-in-window.js.map +2 -2
  19. package/dist/dialog/tests/dialog-modal.js +70 -70
  20. package/dist/dialog/tests/dialog-modal.js.map +3 -3
  21. package/dist/dialog/tests/dialog-theme-colors.js +82 -73
  22. package/dist/dialog/tests/dialog-theme-colors.js.map +3 -3
  23. package/dist/dialog/tests/dialog.js +86 -74
  24. package/dist/dialog/tests/dialog.js.map +3 -3
  25. package/dist/editor/tests/editor-find-replace.js +1 -4
  26. package/dist/editor/tests/editor-find-replace.js.map +2 -2
  27. package/dist/editor/tests/editor-image-editor.js +276 -276
  28. package/dist/editor/tests/editor-image-editor.js.map +4 -4
  29. package/dist/editor/tests/editor-table-wizard-accessibility.js +5 -5
  30. package/dist/editor/tests/editor-table-wizard-accessibility.js.map +2 -2
  31. package/dist/editor/tests/editor-view-source.js +5 -5
  32. package/dist/editor/tests/editor-view-source.js.map +2 -2
  33. package/dist/filemanager/tests/filemanager-dialogs.js +79 -73
  34. package/dist/filemanager/tests/filemanager-dialogs.js.map +3 -3
  35. package/dist/form/tests/form-field-dateinputs.js +4 -4
  36. package/dist/form/tests/form-field-dateinputs.js.map +2 -2
  37. package/dist/gantt/tests/gantt-editing-popup-general.js +2300 -0
  38. package/dist/gantt/tests/gantt-editing-popup-general.js.map +7 -0
  39. package/dist/gantt/tests/gantt-editing-popup-other.js +2035 -0
  40. package/dist/gantt/tests/gantt-editing-popup-other.js.map +7 -0
  41. package/dist/gantt/tests/gantt-editing-popup-predecessors.js +1895 -0
  42. package/dist/gantt/tests/gantt-editing-popup-predecessors.js.map +7 -0
  43. package/dist/gantt/tests/gantt-editing-popup-resources.js +2195 -0
  44. package/dist/gantt/tests/gantt-editing-popup-resources.js.map +7 -0
  45. package/dist/gantt/tests/gantt-editing-popup-successors.js +1895 -0
  46. package/dist/gantt/tests/gantt-editing-popup-successors.js.map +7 -0
  47. package/dist/grid/tests/grid-column-menu-rtl.js +8 -8
  48. package/dist/grid/tests/grid-column-menu-rtl.js.map +2 -2
  49. package/dist/grid/tests/grid-column-menu-tabbed.js +1331 -0
  50. package/dist/grid/tests/grid-column-menu-tabbed.js.map +7 -0
  51. package/dist/grid/tests/grid-column-menu.js +8 -8
  52. package/dist/grid/tests/grid-column-menu.js.map +2 -2
  53. package/dist/grid/tests/grid-editing-custom-editor.js +4 -4
  54. package/dist/grid/tests/grid-editing-custom-editor.js.map +2 -2
  55. package/dist/grid/tests/grid-editing-popup.js +724 -338
  56. package/dist/grid/tests/grid-editing-popup.js.map +4 -4
  57. package/dist/grid/tests/grid-filter-menu-multi-checkbox.js +8 -8
  58. package/dist/grid/tests/grid-filter-menu-multi-checkbox.js.map +2 -2
  59. package/dist/grid/tests/grid-filter-menu.js +2 -2
  60. package/dist/grid/tests/grid-filter-menu.js.map +2 -2
  61. package/dist/grid/tests/grid-filter-row.js +4 -4
  62. package/dist/grid/tests/grid-filter-row.js.map +2 -2
  63. package/dist/grid/tests/grid-rows-resizing.js +2 -2
  64. package/dist/grid/tests/grid-rows-resizing.js.map +2 -2
  65. package/dist/grid/tests/grid-selection-aggregates.js +1348 -0
  66. package/dist/grid/tests/grid-selection-aggregates.js.map +7 -0
  67. package/dist/imageeditor/tests/imageeditor-crop-pane.js +48 -32
  68. package/dist/imageeditor/tests/imageeditor-crop-pane.js.map +2 -2
  69. package/dist/imageeditor/tests/imageeditor-resize-pane.js +45 -22
  70. package/dist/imageeditor/tests/imageeditor-resize-pane.js.map +2 -2
  71. package/dist/index.js +6 -12
  72. package/dist/index.js.map +2 -2
  73. package/dist/scheduler/tests/scheduler-edit-dialog.js +1394 -882
  74. package/dist/scheduler/tests/scheduler-edit-dialog.js.map +4 -4
  75. package/dist/scheduler/tests/scheduler-editing-weekly.js +2964 -0
  76. package/dist/scheduler/tests/scheduler-editing-weekly.js.map +7 -0
  77. package/dist/spreadsheet/tests/spreadsheet-dialog.js +10 -7
  78. package/dist/spreadsheet/tests/spreadsheet-dialog.js.map +2 -2
  79. package/dist/timepicker/tests/timepicker-flat.js +2 -2
  80. package/dist/timepicker/tests/timepicker-flat.js.map +2 -2
  81. package/dist/timepicker/tests/timepicker-opened.js +2 -2
  82. package/dist/timepicker/tests/timepicker-opened.js.map +2 -2
  83. package/dist/timepicker/tests/timepicker-outline.js +2 -2
  84. package/dist/timepicker/tests/timepicker-outline.js.map +2 -2
  85. package/dist/timepicker/tests/timepicker.js +2 -2
  86. package/dist/timepicker/tests/timepicker.js.map +2 -2
  87. package/dist/timepicker/timepicker.spec.js +2 -2
  88. package/dist/timepicker/timepicker.spec.js.map +2 -2
  89. package/dist/treelist/tests/treelist-editing-popup.js +1939 -0
  90. package/dist/treelist/tests/treelist-editing-popup.js.map +7 -0
  91. package/dist/window/tests/window-action-buttons.js +82 -73
  92. package/dist/window/tests/window-action-buttons.js.map +3 -3
  93. package/dist/window/tests/window-rtl.js +1 -4
  94. package/dist/window/tests/window-rtl.js.map +2 -2
  95. package/dist/window/tests/window-theme-colors.js +1 -4
  96. package/dist/window/tests/window-theme-colors.js.map +2 -2
  97. package/dist/window/tests/window.js +1 -4
  98. package/dist/window/tests/window.js.map +2 -2
  99. package/dist/window/window.spec.js +1 -4
  100. package/dist/window/window.spec.js.map +2 -2
  101. package/package.json +2 -2
  102. package/src/datetime-selector/datetime-selector.spec.tsx +1 -1
  103. package/src/dialog/dialog.spec.tsx +2 -3
  104. package/src/dialog/tests/dialog-action-buttons.tsx +25 -4
  105. package/src/dialog/tests/dialog-modal.tsx +7 -1
  106. package/src/dialog/tests/dialog-theme-colors.tsx +25 -4
  107. package/src/dialog/tests/dialog.tsx +31 -5
  108. package/src/editor/tests/editor-image-editor.tsx +8 -2
  109. package/src/editor/tests/editor-table-wizard-accessibility.tsx +7 -1
  110. package/src/editor/tests/editor-view-source.tsx +7 -1
  111. package/src/filemanager/tests/filemanager-dialogs.tsx +19 -3
  112. package/src/gantt/tests/gantt-editing-popup-general.tsx +97 -0
  113. package/src/gantt/tests/gantt-editing-popup-other.tsx +92 -0
  114. package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +113 -0
  115. package/src/gantt/tests/gantt-editing-popup-resources.tsx +180 -0
  116. package/src/gantt/tests/gantt-editing-popup-successors.tsx +113 -0
  117. package/src/grid/tests/grid-column-menu-rtl.tsx +4 -4
  118. package/src/grid/tests/grid-column-menu-tabbed.tsx +337 -0
  119. package/src/grid/tests/grid-column-menu.tsx +4 -4
  120. package/src/grid/tests/grid-editing-popup.tsx +18 -30
  121. package/src/grid/tests/grid-filter-menu-multi-checkbox.tsx +4 -4
  122. package/src/grid/tests/grid-filter-menu.tsx +1 -1
  123. package/src/grid/tests/grid-rows-resizing.tsx +6 -3
  124. package/src/grid/tests/grid-selection-aggregates.tsx +192 -0
  125. package/src/imageeditor/tests/imageeditor-crop-pane.tsx +35 -20
  126. package/src/imageeditor/tests/imageeditor-resize-pane.tsx +31 -16
  127. package/src/scheduler/tests/scheduler-edit-dialog.tsx +32 -34
  128. package/src/scheduler/tests/scheduler-editing-weekly.tsx +137 -0
  129. package/src/spreadsheet/tests/spreadsheet-dialog.tsx +15 -4
  130. package/src/timepicker/timepicker.spec.tsx +1 -1
  131. package/src/treelist/tests/treelist-editing-popup.tsx +66 -0
  132. package/src/window/tests/window-action-buttons.tsx +25 -4
  133. package/src/window/window.spec.tsx +2 -3
@@ -433,10 +433,7 @@
433
433
  "k-hidden": minimized
434
434
  }
435
435
  ), children: props.children }),
436
- actionButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: [
437
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { children: "Cancel" }),
438
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { themeColor: "primary", children: "Update" })
439
- ] })
436
+ actionButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
440
437
  ]
441
438
  })
442
439
  );
@@ -841,29 +838,272 @@
841
838
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: classNames(className8, props.className), children: props.children });
842
839
  };
843
840
 
844
- // src/popup/popup.spec.tsx
841
+ // src/textarea/textarea.spec.tsx
845
842
  var import_jsx_runtime16 = __require("react/jsx-runtime");
843
+ var TEXTAREA_CLASSNAME = `k-textarea`;
844
+ var states13 = [
845
+ States.hover,
846
+ States.focus,
847
+ States.valid,
848
+ States.invalid,
849
+ States.required,
850
+ States.disabled,
851
+ States.loading
852
+ ];
853
+ var options12 = {
854
+ size: [Size.small, Size.medium, Size.large],
855
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
856
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
857
+ };
858
+ var defaultProps10 = {
859
+ size: Input.defaultProps.size,
860
+ rounded: Input.defaultProps.rounded,
861
+ fillMode: Input.defaultProps.fillMode
862
+ };
863
+ var Textarea = (props) => {
864
+ const _a = props, {
865
+ rows,
866
+ value,
867
+ placeholder,
868
+ size,
869
+ rounded,
870
+ fillMode,
871
+ hover,
872
+ focus,
873
+ valid,
874
+ invalid,
875
+ required,
876
+ loading,
877
+ disabled
878
+ } = _a, other = __objRest(_a, [
879
+ "rows",
880
+ "value",
881
+ "placeholder",
882
+ "size",
883
+ "rounded",
884
+ "fillMode",
885
+ "hover",
886
+ "focus",
887
+ "valid",
888
+ "invalid",
889
+ "required",
890
+ "loading",
891
+ "disabled"
892
+ ]);
893
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
894
+ Input,
895
+ __spreadProps(__spreadValues({}, other), {
896
+ size,
897
+ rounded,
898
+ fillMode,
899
+ hover,
900
+ focus,
901
+ valid,
902
+ invalid,
903
+ required,
904
+ loading,
905
+ disabled,
906
+ className: classNames(props.className, TEXTAREA_CLASSNAME),
907
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
908
+ InputInnerTextarea,
909
+ {
910
+ className: "!k-overflow-auto",
911
+ value,
912
+ placeholder,
913
+ rows
914
+ }
915
+ )
916
+ })
917
+ );
918
+ };
919
+ Textarea.states = states13;
920
+ Textarea.options = options12;
921
+ Textarea.className = TEXTAREA_CLASSNAME;
922
+ Textarea.defaultProps = defaultProps10;
923
+
924
+ // src/textbox/textbox.spec.tsx
925
+ var import_jsx_runtime17 = __require("react/jsx-runtime");
926
+ var TEXTBOX_CLASSNAME = `k-textbox`;
927
+ var states14 = [
928
+ States.hover,
929
+ States.focus,
930
+ States.valid,
931
+ States.invalid,
932
+ States.required,
933
+ States.disabled,
934
+ States.loading,
935
+ States.readonly
936
+ ];
937
+ var options13 = {
938
+ size: [Size.small, Size.medium, Size.large],
939
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
940
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
941
+ };
942
+ var defaultProps11 = {
943
+ showClearButton: true,
944
+ size: Input.defaultProps.size,
945
+ rounded: Input.defaultProps.rounded,
946
+ fillMode: Input.defaultProps.fillMode
947
+ };
948
+ var Textbox = (props) => {
949
+ const _a = props, {
950
+ prefix,
951
+ suffix,
952
+ value,
953
+ placeholder,
954
+ size,
955
+ rounded,
956
+ fillMode,
957
+ hover,
958
+ focus,
959
+ valid,
960
+ invalid,
961
+ required,
962
+ loading,
963
+ disabled,
964
+ readonly,
965
+ showClearButton = defaultProps11.showClearButton
966
+ } = _a, other = __objRest(_a, [
967
+ "prefix",
968
+ "suffix",
969
+ "value",
970
+ "placeholder",
971
+ "size",
972
+ "rounded",
973
+ "fillMode",
974
+ "hover",
975
+ "focus",
976
+ "valid",
977
+ "invalid",
978
+ "required",
979
+ "loading",
980
+ "disabled",
981
+ "readonly",
982
+ "showClearButton"
983
+ ]);
984
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
985
+ Input,
986
+ __spreadProps(__spreadValues({}, other), {
987
+ size,
988
+ rounded,
989
+ fillMode,
990
+ hover,
991
+ focus,
992
+ valid,
993
+ invalid,
994
+ required,
995
+ loading,
996
+ disabled,
997
+ readonly,
998
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
999
+ children: [
1000
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputPrefix, { children: prefix }),
1001
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputInnerInput, { placeholder, value }),
1002
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1003
+ InputValidationIcon,
1004
+ {
1005
+ valid,
1006
+ invalid,
1007
+ loading,
1008
+ disabled
1009
+ }
1010
+ ),
1011
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1012
+ InputLoadingIcon,
1013
+ {
1014
+ loading,
1015
+ disabled
1016
+ }
1017
+ ),
1018
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1019
+ InputClearValue,
1020
+ {
1021
+ loading,
1022
+ disabled,
1023
+ readonly,
1024
+ value
1025
+ }
1026
+ ),
1027
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputSuffix, { children: suffix })
1028
+ ]
1029
+ })
1030
+ );
1031
+ };
1032
+ Textbox.states = states14;
1033
+ Textbox.options = options13;
1034
+ Textbox.className = TEXTBOX_CLASSNAME;
1035
+ Textbox.defaultProps = defaultProps11;
1036
+
1037
+ // src/popup/popup.spec.tsx
1038
+ var import_jsx_runtime18 = __require("react/jsx-runtime");
846
1039
  var POPUP_CLASSNAME = `k-popup`;
847
- var states13 = [];
848
- var options12 = {};
849
- var defaultProps10 = {};
1040
+ var states15 = [];
1041
+ var options14 = {};
1042
+ var defaultProps12 = {};
850
1043
  var Popup = (props) => {
851
1044
  const other = __objRest(props, []);
852
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
1045
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
853
1046
  };
854
- Popup.states = states13;
855
- Popup.options = options12;
1047
+ Popup.states = states15;
1048
+ Popup.options = options14;
856
1049
  Popup.className = POPUP_CLASSNAME;
857
- Popup.defaultProps = defaultProps10;
1050
+ Popup.defaultProps = defaultProps12;
1051
+
1052
+ // src/button-group/button-group.spec.tsx
1053
+ var import_jsx_runtime19 = __require("react/jsx-runtime");
1054
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
1055
+ var states16 = [
1056
+ States.disabled
1057
+ ];
1058
+ var options15 = {
1059
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
1060
+ };
1061
+ var defaultProps13 = {
1062
+ fillMode: FillMode.solid
1063
+ };
1064
+ var ButtonGroup = (props) => {
1065
+ const _a = props, {
1066
+ fillMode = defaultProps13.fillMode,
1067
+ disabled,
1068
+ stretched
1069
+ } = _a, other = __objRest(_a, [
1070
+ "fillMode",
1071
+ "disabled",
1072
+ "stretched"
1073
+ ]);
1074
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1075
+ "div",
1076
+ __spreadProps(__spreadValues({}, other), {
1077
+ className: classNames(
1078
+ props.className,
1079
+ BUTTONGROUP_CLASSNAME,
1080
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
1081
+ fillMode
1082
+ }),
1083
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
1084
+ disabled
1085
+ }),
1086
+ {
1087
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
1088
+ }
1089
+ ),
1090
+ children: props.children
1091
+ })
1092
+ );
1093
+ };
1094
+ ButtonGroup.states = states16;
1095
+ ButtonGroup.options = options15;
1096
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
1097
+ ButtonGroup.defaultProps = defaultProps13;
858
1098
 
859
1099
  // src/calendar/calendar.spec.tsx
860
- var import_jsx_runtime17 = __require("react/jsx-runtime");
1100
+ var import_jsx_runtime20 = __require("react/jsx-runtime");
861
1101
  var CALENDAR_CLASSNAME = `k-calendar`;
862
- var states14 = [];
863
- var options13 = {
1102
+ var states17 = [];
1103
+ var options16 = {
864
1104
  size: [Size.small, Size.medium, Size.large]
865
1105
  };
866
- var defaultProps11 = {
1106
+ var defaultProps14 = {
867
1107
  size: Size.medium,
868
1108
  viewsCount: 1,
869
1109
  orientation: "horizontal",
@@ -872,11 +1112,11 @@
872
1112
  };
873
1113
  var Calendar = (props) => {
874
1114
  const _a = props, {
875
- size = defaultProps11.size,
876
- orientation = defaultProps11.orientation,
877
- calendarView = defaultProps11.calendarView,
878
- calendarHeaderText = defaultProps11.calendarHeaderText,
879
- viewsCount = defaultProps11.viewsCount,
1115
+ size = defaultProps14.size,
1116
+ orientation = defaultProps14.orientation,
1117
+ calendarView = defaultProps14.calendarView,
1118
+ calendarHeaderText = defaultProps14.calendarHeaderText,
1119
+ viewsCount = defaultProps14.viewsCount,
880
1120
  showWeek,
881
1121
  showOtherMonth,
882
1122
  showCalendarCaption,
@@ -894,7 +1134,7 @@
894
1134
  "showCalendarFooter",
895
1135
  "selectedRange"
896
1136
  ]);
897
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1137
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
898
1138
  "div",
899
1139
  __spreadProps(__spreadValues({}, other), {
900
1140
  className: classNames(
@@ -908,7 +1148,7 @@
908
1148
  }
909
1149
  ),
910
1150
  children: [
911
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1151
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
912
1152
  CalendarHeader,
913
1153
  {
914
1154
  showToday: showCalendarFooter ? false : true,
@@ -917,7 +1157,7 @@
917
1157
  size
918
1158
  }
919
1159
  ),
920
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1160
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
921
1161
  CalendarView,
922
1162
  {
923
1163
  calendarView,
@@ -929,19 +1169,19 @@
929
1169
  selectedRange
930
1170
  }
931
1171
  ),
932
- showCalendarFooter && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CalendarFooter, {})
1172
+ showCalendarFooter && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CalendarFooter, {})
933
1173
  ]
934
1174
  })
935
1175
  );
936
1176
  };
937
- Calendar.states = states14;
938
- Calendar.options = options13;
1177
+ Calendar.states = states17;
1178
+ Calendar.options = options16;
939
1179
  Calendar.className = CALENDAR_CLASSNAME;
940
- Calendar.defaultProps = defaultProps11;
1180
+ Calendar.defaultProps = defaultProps14;
941
1181
 
942
1182
  // src/calendar/calendar-cell.tsx
943
- var import_jsx_runtime18 = __require("react/jsx-runtime");
944
- var states15 = [
1183
+ var import_jsx_runtime21 = __require("react/jsx-runtime");
1184
+ var states18 = [
945
1185
  States.hover,
946
1186
  States.focus,
947
1187
  States.active,
@@ -1005,21 +1245,21 @@
1005
1245
  }
1006
1246
  ];
1007
1247
  if (headerCell) {
1008
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("th", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1248
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("th", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1009
1249
  }
1010
1250
  if (weekCell) {
1011
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1251
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1012
1252
  }
1013
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: otherMonth && !showOtherMonth ? "" : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "k-link", children: text }) }));
1253
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: otherMonth && !showOtherMonth ? "" : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "k-link", children: text }) }));
1014
1254
  };
1015
1255
 
1016
1256
  // src/calendar/calendar-header.tsx
1017
- var import_jsx_runtime19 = __require("react/jsx-runtime");
1257
+ var import_jsx_runtime22 = __require("react/jsx-runtime");
1018
1258
  var className9 = `k-calendar-header`;
1019
- var options14 = {
1259
+ var options17 = {
1020
1260
  size: [Size.small, Size.medium, Size.large]
1021
1261
  };
1022
- var defaultProps12 = {
1262
+ var defaultProps15 = {
1023
1263
  calendarHeaderText: "October 2021",
1024
1264
  showToday: true,
1025
1265
  orientation: "horizontal",
@@ -1027,17 +1267,17 @@
1027
1267
  };
1028
1268
  var CalendarHeader = (props) => {
1029
1269
  const _a = props, {
1030
- calendarHeaderText = defaultProps12.calendarHeaderText,
1031
- showToday = defaultProps12.showToday,
1032
- orientation = defaultProps12.orientation,
1033
- size = defaultProps12.size
1270
+ calendarHeaderText = defaultProps15.calendarHeaderText,
1271
+ showToday = defaultProps15.showToday,
1272
+ orientation = defaultProps15.orientation,
1273
+ size = defaultProps15.size
1034
1274
  } = _a, other = __objRest(_a, [
1035
1275
  "calendarHeaderText",
1036
1276
  "showToday",
1037
1277
  "orientation",
1038
1278
  "size"
1039
1279
  ]);
1040
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1280
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1041
1281
  "div",
1042
1282
  __spreadProps(__spreadValues({}, other), {
1043
1283
  className: classNames(
@@ -1048,12 +1288,12 @@
1048
1288
  }
1049
1289
  ),
1050
1290
  children: [
1051
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { className: "k-calendar-title", text: calendarHeaderText, size, fillMode: "flat" }),
1052
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-spacer" }),
1053
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "k-calendar-nav", children: [
1054
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { className: "k-calendar-nav-prev", icon: "arrow-chevron-left", size, fillMode: "flat" }),
1055
- showToday && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { size, fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Today" }),
1056
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { className: "k-calendar-nav-next", icon: "arrow-chevron-right", size, fillMode: "flat" })
1291
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { className: "k-calendar-title", text: calendarHeaderText, size, fillMode: "flat" }),
1292
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "k-spacer" }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "k-calendar-nav", children: [
1294
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { className: "k-calendar-nav-prev", icon: "arrow-chevron-left", size, fillMode: "flat" }),
1295
+ showToday && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { size, fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Today" }),
1296
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { className: "k-calendar-nav-next", icon: "arrow-chevron-right", size, fillMode: "flat" })
1057
1297
  ] })
1058
1298
  ]
1059
1299
  })
@@ -1061,12 +1301,12 @@
1061
1301
  };
1062
1302
 
1063
1303
  // src/calendar/calendar-footer.tsx
1064
- var import_jsx_runtime20 = __require("react/jsx-runtime");
1304
+ var import_jsx_runtime23 = __require("react/jsx-runtime");
1065
1305
  var className10 = `k-calendar-footer`;
1066
- var CalendarFooter = (props) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", __spreadProps(__spreadValues({}, props), { className: classNames(props.className, className10), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Monday, October 29, 2021" }) }));
1306
+ var CalendarFooter = (props) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", __spreadProps(__spreadValues({}, props), { className: classNames(props.className, className10), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Monday, October 29, 2021" }) }));
1067
1307
 
1068
1308
  // src/calendar/calendar-table.tsx
1069
- var import_jsx_runtime21 = __require("react/jsx-runtime");
1309
+ var import_jsx_runtime24 = __require("react/jsx-runtime");
1070
1310
  var CALENDARTABLE_CLASSNAME = `k-calendar-table`;
1071
1311
  var CalendarTable = (props) => {
1072
1312
  const _a = props, {
@@ -1083,7 +1323,7 @@
1083
1323
  "selectedRange"
1084
1324
  ]);
1085
1325
  if (calendarView === "year") {
1086
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1326
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1087
1327
  "table",
1088
1328
  __spreadProps(__spreadValues({}, other), {
1089
1329
  className: classNames(
@@ -1091,25 +1331,25 @@
1091
1331
  CALENDARTABLE_CLASSNAME
1092
1332
  ),
1093
1333
  children: [
1094
- showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("caption", { className: "k-calendar-caption", children: "2022" }),
1095
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1096
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1097
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Jan" }),
1098
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Feb" }),
1099
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Mar" }),
1100
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Apr" })
1334
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "2022" }),
1335
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1336
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1337
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Jan" }),
1338
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Feb" }),
1339
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Mar" }),
1340
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Apr" })
1101
1341
  ] }),
1102
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1103
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "May" }),
1104
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Jun", hover: true }),
1105
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Jul", focus: true }),
1106
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Au", selected: true })
1342
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1343
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "May" }),
1344
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Jun", hover: true }),
1345
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Jul", focus: true }),
1346
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Au", selected: true })
1107
1347
  ] }),
1108
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1109
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Sep" }),
1110
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Oct", today: true }),
1111
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Nov" }),
1112
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "Dec" })
1348
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1349
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Sep" }),
1350
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Oct", today: true }),
1351
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Nov" }),
1352
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Dec" })
1113
1353
  ] })
1114
1354
  ] })
1115
1355
  ]
@@ -1117,7 +1357,7 @@
1117
1357
  );
1118
1358
  }
1119
1359
  if (calendarView === "decade") {
1120
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1360
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1121
1361
  "table",
1122
1362
  __spreadProps(__spreadValues({}, other), {
1123
1363
  className: classNames(
@@ -1125,25 +1365,25 @@
1125
1365
  CALENDARTABLE_CLASSNAME
1126
1366
  ),
1127
1367
  children: [
1128
- showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("caption", { className: "k-calendar-caption", children: "2020 - 2029" }),
1129
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1130
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1131
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { className: "k-out-of-range" }),
1132
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2020" }),
1133
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2021", today: true }),
1134
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2022" })
1368
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "2020 - 2029" }),
1369
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1370
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1371
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { className: "k-out-of-range" }),
1372
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2020" }),
1373
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2021", today: true }),
1374
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2022" })
1135
1375
  ] }),
1136
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1137
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2023" }),
1138
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2024", hover: true }),
1139
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2025", focus: true }),
1140
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2026", selected: true })
1376
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1377
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2023" }),
1378
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2024", hover: true }),
1379
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2025", focus: true }),
1380
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2026", selected: true })
1141
1381
  ] }),
1142
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1143
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2027" }),
1144
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2028" }),
1145
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2029" }),
1146
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { className: "k-out-of-range" })
1382
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1383
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2027" }),
1384
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2028" }),
1385
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2029" }),
1386
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { className: "k-out-of-range" })
1147
1387
  ] })
1148
1388
  ] })
1149
1389
  ]
@@ -1151,7 +1391,7 @@
1151
1391
  );
1152
1392
  }
1153
1393
  if (calendarView === "century") {
1154
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1394
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1155
1395
  "table",
1156
1396
  __spreadProps(__spreadValues({}, other), {
1157
1397
  className: classNames(
@@ -1159,32 +1399,32 @@
1159
1399
  CALENDARTABLE_CLASSNAME
1160
1400
  ),
1161
1401
  children: [
1162
- showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("caption", { className: "k-calendar-caption", children: "2000 - 2099" }),
1163
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1164
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1165
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "1990 - 1999" }),
1166
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2000 - 2009" }),
1167
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2010 - 2019", today: true }),
1168
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2020 - 2029" })
1402
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "2000 - 2099" }),
1403
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1404
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1405
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "1990 - 1999" }),
1406
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2000 - 2009" }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2010 - 2019", today: true }),
1408
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2020 - 2029" })
1169
1409
  ] }),
1170
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1171
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2030 - 2039" }),
1172
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2040 - 2049", hover: true }),
1173
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2050 - 2059", focus: true }),
1174
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2060 - 2069", selected: true })
1410
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1411
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2030 - 2039" }),
1412
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2040 - 2049", hover: true }),
1413
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2050 - 2059", focus: true }),
1414
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2060 - 2069", selected: true })
1175
1415
  ] }),
1176
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1177
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2070 - 2079" }),
1178
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2080 - 2089" }),
1179
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2090 - 2099" }),
1180
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { className: "k-out-of-range" })
1416
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1417
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2070 - 2079" }),
1418
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2080 - 2089" }),
1419
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2090 - 2099" }),
1420
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { className: "k-out-of-range" })
1181
1421
  ] })
1182
1422
  ] })
1183
1423
  ]
1184
1424
  })
1185
1425
  );
1186
1426
  }
1187
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1427
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1188
1428
  "table",
1189
1429
  __spreadProps(__spreadValues({}, other), {
1190
1430
  className: classNames(
@@ -1192,68 +1432,68 @@
1192
1432
  CALENDARTABLE_CLASSNAME
1193
1433
  ),
1194
1434
  children: [
1195
- showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("caption", { className: "k-calendar-caption", children: "October 2021" }),
1196
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarTableHead, { showWeek }),
1197
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1198
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1199
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "39", weekCell: true }),
1200
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "30", otherMonth: true, showOtherMonth }),
1201
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "1" }),
1202
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2" }),
1203
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "3" }),
1204
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "4" }),
1205
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "5" }),
1206
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "6", weekend: true })
1435
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "October 2021" }),
1436
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarTableHead, { showWeek }),
1437
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1438
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1439
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "39", weekCell: true }),
1440
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "30", otherMonth: true, showOtherMonth }),
1441
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "1" }),
1442
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2" }),
1443
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "3" }),
1444
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "4" }),
1445
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "5" }),
1446
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "6", weekend: true })
1207
1447
  ] }),
1208
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1209
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "40", weekCell: true }),
1210
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "7", weekend: true }),
1211
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "8", hover: true }),
1212
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "9", focus: true }),
1213
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "10", selected: true }),
1214
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "11", hover: true, focus: true }),
1215
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "12", hover: true, selected: true }),
1216
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "13", weekend: true })
1448
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1449
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "40", weekCell: true }),
1450
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "7", weekend: true }),
1451
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "8", hover: true }),
1452
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "9", focus: true }),
1453
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "10", selected: true }),
1454
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "11", hover: true, focus: true }),
1455
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "12", hover: true, selected: true }),
1456
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "13", weekend: true })
1217
1457
  ] }),
1218
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1219
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "41", weekCell: true }),
1220
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "14", weekend: true }),
1221
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "15" }),
1222
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "16", today: true }),
1223
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "17" }),
1224
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "18" }),
1225
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "19" }),
1226
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "20", weekend: true })
1458
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1459
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "41", weekCell: true }),
1460
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "14", weekend: true }),
1461
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "15" }),
1462
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "16", today: true }),
1463
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "17" }),
1464
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "18" }),
1465
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "19" }),
1466
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "20", weekend: true })
1227
1467
  ] }),
1228
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1229
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "42", weekCell: true }),
1230
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "21", weekend: true }),
1231
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "22" }),
1232
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "23" }),
1233
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "24" }),
1234
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "25", rangeStart: selectedRange, selected: selectedRange }),
1235
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "26", rangeMid: selectedRange }),
1236
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "27", weekend: true, rangeMid: selectedRange })
1468
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1469
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "42", weekCell: true }),
1470
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "21", weekend: true }),
1471
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "22" }),
1472
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "23" }),
1473
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "24" }),
1474
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "25", rangeStart: selectedRange, selected: selectedRange }),
1475
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "26", rangeMid: selectedRange }),
1476
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "27", weekend: true, rangeMid: selectedRange })
1237
1477
  ] }),
1238
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1239
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "43", weekCell: true }),
1240
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "28", weekend: true, rangeMid: selectedRange }),
1241
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "29", rangeEnd: selectedRange, focus: selectedRange, selected: selectedRange }),
1242
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "30" }),
1243
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "31" }),
1244
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "1", otherMonth: true, showOtherMonth }),
1245
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "2", otherMonth: true, showOtherMonth }),
1246
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "3", otherMonth: true, weekend: true, showOtherMonth })
1478
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1479
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "43", weekCell: true }),
1480
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "28", weekend: true, rangeMid: selectedRange }),
1481
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "29", rangeEnd: selectedRange, focus: selectedRange, selected: selectedRange }),
1482
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "30" }),
1483
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "31" }),
1484
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "1", otherMonth: true, showOtherMonth }),
1485
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2", otherMonth: true, showOtherMonth }),
1486
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "3", otherMonth: true, weekend: true, showOtherMonth })
1247
1487
  ] }),
1248
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("tr", { className: "k-calendar-tr", children: [
1249
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "44", weekCell: true }),
1250
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "4", otherMonth: true, weekend: true, showOtherMonth }),
1251
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "5", otherMonth: true, showOtherMonth }),
1252
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "6", otherMonth: true, showOtherMonth }),
1253
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "7", otherMonth: true, showOtherMonth }),
1254
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "8", otherMonth: true, showOtherMonth }),
1255
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "9", otherMonth: true, showOtherMonth }),
1256
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarCell, { text: "10", otherMonth: true, weekend: true, showOtherMonth })
1488
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1489
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "44", weekCell: true }),
1490
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "4", otherMonth: true, weekend: true, showOtherMonth }),
1491
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "5", otherMonth: true, showOtherMonth }),
1492
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "6", otherMonth: true, showOtherMonth }),
1493
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "7", otherMonth: true, showOtherMonth }),
1494
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "8", otherMonth: true, showOtherMonth }),
1495
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "9", otherMonth: true, showOtherMonth }),
1496
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "10", otherMonth: true, weekend: true, showOtherMonth })
1257
1497
  ] })
1258
1498
  ] })
1259
1499
  ]
@@ -1262,7 +1502,7 @@
1262
1502
  };
1263
1503
 
1264
1504
  // src/calendar/calendar-table-head.tsx
1265
- var import_jsx_runtime22 = __require("react/jsx-runtime");
1505
+ var import_jsx_runtime25 = __require("react/jsx-runtime");
1266
1506
  var className11 = `k-calendar-thead`;
1267
1507
  var CalendarTableHead = (props) => {
1268
1508
  const _a = props, {
@@ -1270,37 +1510,37 @@
1270
1510
  } = _a, other = __objRest(_a, [
1271
1511
  "showWeek"
1272
1512
  ]);
1273
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1513
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1274
1514
  "thead",
1275
1515
  __spreadProps(__spreadValues({}, other), {
1276
1516
  className: classNames(props.className, className11),
1277
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1278
- showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { weekCell: true, headerCell: true }),
1279
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Su", headerCell: true }),
1280
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Mo", headerCell: true }),
1281
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Tu", headerCell: true }),
1282
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "We", headerCell: true }),
1283
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Th", headerCell: true }),
1284
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Fr", headerCell: true }),
1285
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Sa", headerCell: true })
1517
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1518
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { weekCell: true, headerCell: true }),
1519
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Su", headerCell: true }),
1520
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Mo", headerCell: true }),
1521
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Tu", headerCell: true }),
1522
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "We", headerCell: true }),
1523
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Th", headerCell: true }),
1524
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Fr", headerCell: true }),
1525
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Sa", headerCell: true })
1286
1526
  ] })
1287
1527
  })
1288
1528
  );
1289
1529
  };
1290
1530
 
1291
1531
  // src/calendar/calendar-view.tsx
1292
- var import_jsx_runtime23 = __require("react/jsx-runtime");
1532
+ var import_jsx_runtime26 = __require("react/jsx-runtime");
1293
1533
  var className12 = `k-calendar-view`;
1294
- var defaultProps13 = {
1534
+ var defaultProps16 = {
1295
1535
  viewsCount: 1,
1296
1536
  orientation: "horizontal",
1297
1537
  calendarView: "month"
1298
1538
  };
1299
1539
  var CalendarView = (props) => {
1300
1540
  const _a = props, {
1301
- orientation = defaultProps13.orientation,
1302
- calendarView = defaultProps13.calendarView,
1303
- viewsCount = defaultProps13.viewsCount,
1541
+ orientation = defaultProps16.orientation,
1542
+ calendarView = defaultProps16.calendarView,
1543
+ viewsCount = defaultProps16.viewsCount,
1304
1544
  showWeek,
1305
1545
  showOtherMonth,
1306
1546
  showCalendarCaption,
@@ -1314,7 +1554,7 @@
1314
1554
  "showCalendarCaption",
1315
1555
  "selectedRange"
1316
1556
  ]);
1317
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1557
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1318
1558
  "div",
1319
1559
  __spreadProps(__spreadValues({}, other), {
1320
1560
  className: classNames(
@@ -1329,7 +1569,7 @@
1329
1569
  }
1330
1570
  ),
1331
1571
  children: [...Array(viewsCount)].map(
1332
- (_e, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1572
+ (_e, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1333
1573
  CalendarTable,
1334
1574
  {
1335
1575
  calendarView,
@@ -1345,11 +1585,218 @@
1345
1585
  );
1346
1586
  };
1347
1587
 
1348
- // src/datepicker/datepicker.spec.tsx
1349
- var import_jsx_runtime24 = __require("react/jsx-runtime");
1350
- var DATEPICKER_CLASSNAME = `k-datepicker`;
1351
- var states16 = [
1352
- States.hover,
1588
+ // src/time-selector/time-selector.spec.tsx
1589
+ var import_jsx_runtime27 = __require("react/jsx-runtime");
1590
+ var TIMESELECTOR_CLASSNAME = `k-timeselector`;
1591
+ var states19 = [];
1592
+ var options18 = {
1593
+ size: [Size.small, Size.medium, Size.large]
1594
+ };
1595
+ var defaultProps17 = {
1596
+ size: Size.medium
1597
+ };
1598
+ var TimeSelector = (props) => {
1599
+ const _a = props, {
1600
+ size = defaultProps17.size,
1601
+ header,
1602
+ fastSelection,
1603
+ columns,
1604
+ focusedColumn
1605
+ } = _a, other = __objRest(_a, [
1606
+ "size",
1607
+ "header",
1608
+ "fastSelection",
1609
+ "columns",
1610
+ "focusedColumn"
1611
+ ]);
1612
+ const columnsDom = columns.map(function(columnType, index) {
1613
+ let focus = false;
1614
+ let separator = true;
1615
+ if (columnType === focusedColumn) {
1616
+ focus = true;
1617
+ }
1618
+ if (index === 0 || columnType === "tt") {
1619
+ separator = false;
1620
+ }
1621
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TimeSelectorColumn, { type: columnType, focus, separator }) });
1622
+ });
1623
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1624
+ "div",
1625
+ __spreadProps(__spreadValues({}, other), {
1626
+ className: classNames(
1627
+ props.className,
1628
+ TIMESELECTOR_CLASSNAME,
1629
+ optionClassNames(TIMESELECTOR_CLASSNAME, {
1630
+ size
1631
+ })
1632
+ ),
1633
+ children: [
1634
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: header }),
1635
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: fastSelection }),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "k-time-list-container", children: [
1637
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-time-highlight" }),
1638
+ columnsDom
1639
+ ] })
1640
+ ]
1641
+ })
1642
+ );
1643
+ };
1644
+ TimeSelector.states = states19;
1645
+ TimeSelector.options = options18;
1646
+ TimeSelector.className = TIMESELECTOR_CLASSNAME;
1647
+ TimeSelector.defaultProps = defaultProps17;
1648
+
1649
+ // src/time-selector/time-selector-column.tsx
1650
+ var import_jsx_runtime28 = __require("react/jsx-runtime");
1651
+ var states20 = [
1652
+ States.focus
1653
+ ];
1654
+ var TimeSelectorColumn = (props) => {
1655
+ const _a = props, {
1656
+ type,
1657
+ focus,
1658
+ separator
1659
+ } = _a, other = __objRest(_a, [
1660
+ "type",
1661
+ "focus",
1662
+ "separator"
1663
+ ]);
1664
+ let text;
1665
+ let columnData = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
1666
+ switch (type) {
1667
+ case "dd":
1668
+ text = "Day";
1669
+ break;
1670
+ case "HH":
1671
+ text = "Hour";
1672
+ break;
1673
+ case "mm":
1674
+ text = "Minute";
1675
+ break;
1676
+ case "ss":
1677
+ text = "Second";
1678
+ break;
1679
+ case "SSS":
1680
+ text = "Millisecond";
1681
+ columnData = ["000", "001", "002", "003", "004", "005", "006", "007", "008", "009"];
1682
+ break;
1683
+ case "tt":
1684
+ text = "AM/PM";
1685
+ columnData = ["AM", "PM"];
1686
+ break;
1687
+ default:
1688
+ text = "Column Name";
1689
+ break;
1690
+ }
1691
+ const items = columnData.map(
1692
+ (data) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: data }) }) })
1693
+ );
1694
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1695
+ separator && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-time-separator", children: ":" }),
1696
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1697
+ "div",
1698
+ __spreadProps(__spreadValues({}, other), {
1699
+ className: classNames(
1700
+ props.className,
1701
+ "k-time-list-wrapper",
1702
+ stateClassNames("k-time-list-wrapper", {
1703
+ focus
1704
+ })
1705
+ ),
1706
+ children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-title", children: text }),
1708
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-time-list", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "k-content k-scrollable k-time-container", children: [
1709
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "k-reset", style: { transform: "translateY(97px)" }, children: items }),
1710
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-scrollable-placeholder" })
1711
+ ] }) })
1712
+ ]
1713
+ })
1714
+ )
1715
+ ] });
1716
+ };
1717
+
1718
+ // src/time-selector/time-selector-header.tsx
1719
+ var import_jsx_runtime29 = __require("react/jsx-runtime");
1720
+ var className13 = `k-time-header`;
1721
+ var TimeSelectorHeader = (props) => {
1722
+ const _a = props, {
1723
+ title
1724
+ } = _a, other = __objRest(_a, [
1725
+ "title"
1726
+ ]);
1727
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1728
+ "div",
1729
+ __spreadProps(__spreadValues({}, other), {
1730
+ className: classNames(
1731
+ props.className,
1732
+ className13
1733
+ ),
1734
+ children: [
1735
+ title != null && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "k-title", children: title }),
1736
+ props.children
1737
+ ]
1738
+ })
1739
+ );
1740
+ };
1741
+
1742
+ // src/time-selector/time-selector-fast-selection.tsx
1743
+ var import_jsx_runtime30 = __require("react/jsx-runtime");
1744
+
1745
+ // src/datetime-selector/datetime-selector.spec.tsx
1746
+ var import_jsx_runtime31 = __require("react/jsx-runtime");
1747
+ var DATETIMESELECTOR_CLASSNAME = `k-datetime-wrap`;
1748
+ var states21 = [];
1749
+ var options19 = {};
1750
+ var defaultProps18 = {
1751
+ tab: "date"
1752
+ };
1753
+ var DateTimeSelector = (props) => {
1754
+ const _a = props, {
1755
+ tab = defaultProps18.tab
1756
+ } = _a, other = __objRest(_a, [
1757
+ "tab"
1758
+ ]);
1759
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1760
+ "div",
1761
+ __spreadProps(__spreadValues({}, other), {
1762
+ className: classNames(
1763
+ props.className,
1764
+ DATETIMESELECTOR_CLASSNAME,
1765
+ {
1766
+ "k-date-tab": tab === "date",
1767
+ "k-time-tab": tab === "time"
1768
+ }
1769
+ ),
1770
+ children: [
1771
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-buttongroup", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ButtonGroup, { stretched: true, children: [
1772
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: "k-group-start", selected: tab === "date", children: "Date" }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: "k-group-end", selected: tab === "time", children: "Time" })
1774
+ ] }) }),
1775
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-selector", children: tab === "time" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1776
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-calendar-wrap" }),
1777
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-time-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimeSelector, { columns: ["HH", "mm", "ss", "tt"], focusedColumn: "mm", header: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimeSelectorHeader, { title: "10:00:00 AM", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { fillMode: "flat", className: "k-time-now", children: "Now" }) }) }) })
1778
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1779
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-calendar-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Calendar, { showOtherMonth: true }) }),
1780
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-time-wrap" })
1781
+ ] }) }),
1782
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ActionButtons, { className: "k-datetime-footer", alignment: "stretched", children: [
1783
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { themeColor: "primary", className: "k-time-accept", children: "Set" }),
1784
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: "k-time-cancel", children: "Cancel" })
1785
+ ] })
1786
+ ]
1787
+ })
1788
+ );
1789
+ };
1790
+ DateTimeSelector.states = states21;
1791
+ DateTimeSelector.options = options19;
1792
+ DateTimeSelector.className = DATETIMESELECTOR_CLASSNAME;
1793
+ DateTimeSelector.defaultProps = defaultProps18;
1794
+
1795
+ // src/datetimepicker/datetimepicker.spec.tsx
1796
+ var import_jsx_runtime32 = __require("react/jsx-runtime");
1797
+ var DATETIMEPICKER_CLASSNAME = `k-datetimepicker`;
1798
+ var states22 = [
1799
+ States.hover,
1353
1800
  States.focus,
1354
1801
  States.valid,
1355
1802
  States.invalid,
@@ -1358,17 +1805,18 @@
1358
1805
  States.loading,
1359
1806
  States.readonly
1360
1807
  ];
1361
- var options15 = {
1808
+ var options20 = {
1362
1809
  size: [Size.small, Size.medium, Size.large],
1363
1810
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1364
1811
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1365
1812
  };
1366
- var defaultProps14 = {
1813
+ var defaultProps19 = {
1814
+ tab: "date",
1367
1815
  size: Input.defaultProps.size,
1368
1816
  rounded: Input.defaultProps.rounded,
1369
1817
  fillMode: Input.defaultProps.fillMode
1370
1818
  };
1371
- var DatePicker = (props) => {
1819
+ var DateTimePicker = (props) => {
1372
1820
  const _a = props, {
1373
1821
  prefix,
1374
1822
  suffix,
@@ -1385,7 +1833,8 @@
1385
1833
  loading,
1386
1834
  disabled,
1387
1835
  readonly,
1388
- opened
1836
+ opened,
1837
+ tab = defaultProps19.tab
1389
1838
  } = _a, other = __objRest(_a, [
1390
1839
  "prefix",
1391
1840
  "suffix",
@@ -1402,10 +1851,11 @@
1402
1851
  "loading",
1403
1852
  "disabled",
1404
1853
  "readonly",
1405
- "opened"
1854
+ "opened",
1855
+ "tab"
1406
1856
  ]);
1407
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1408
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1857
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1858
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1409
1859
  Input,
1410
1860
  __spreadProps(__spreadValues({}, other), {
1411
1861
  size,
@@ -1419,11 +1869,11 @@
1419
1869
  loading,
1420
1870
  disabled,
1421
1871
  readonly,
1422
- className: classNames(props.className, DATEPICKER_CLASSNAME),
1872
+ className: classNames(props.className, DATETIMEPICKER_CLASSNAME),
1423
1873
  children: [
1424
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputPrefix, { children: prefix }),
1425
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputInnerInput, { placeholder, value }),
1426
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1874
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputPrefix, { children: prefix }),
1875
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputInnerInput, { placeholder, value }),
1876
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1427
1877
  InputValidationIcon,
1428
1878
  {
1429
1879
  valid,
@@ -1432,14 +1882,14 @@
1432
1882
  disabled
1433
1883
  }
1434
1884
  ),
1435
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1885
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1436
1886
  InputLoadingIcon,
1437
1887
  {
1438
1888
  loading,
1439
1889
  disabled
1440
1890
  }
1441
1891
  ),
1442
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1892
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1443
1893
  InputClearValue,
1444
1894
  {
1445
1895
  loading,
@@ -1448,12 +1898,12 @@
1448
1898
  value
1449
1899
  }
1450
1900
  ),
1451
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputSuffix, { children: suffix }),
1452
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1901
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputSuffix, { children: suffix }),
1902
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1453
1903
  Button,
1454
1904
  {
1455
1905
  className: "k-input-button",
1456
- icon: "calendar",
1906
+ icon: tab === "time" ? "clock" : "calendar",
1457
1907
  rounded: null,
1458
1908
  size,
1459
1909
  fillMode
@@ -1462,75 +1912,18 @@
1462
1912
  ]
1463
1913
  })
1464
1914
  ),
1465
- opened && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popup, { className: "k-datepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Calendar, {}) })
1915
+ opened && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popup, { className: "k-datetimepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DateTimeSelector, { tab }) })
1466
1916
  ] });
1467
1917
  };
1468
- DatePicker.states = states16;
1469
- DatePicker.options = options15;
1470
- DatePicker.className = DATEPICKER_CLASSNAME;
1471
- DatePicker.defaultProps = defaultProps14;
1472
-
1473
- // src/spinbutton/spinbutton.spec.tsx
1474
- var import_jsx_runtime25 = __require("react/jsx-runtime");
1475
- var SPINBUTTON_CLASSNAME = `k-spin-button`;
1476
- var states17 = [];
1477
- var options16 = {
1478
- size: [Size.small, Size.medium, Size.large],
1479
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
1480
- };
1481
- var defaultProps15 = {
1482
- size: Size.medium,
1483
- fillMode: FillMode.solid
1484
- };
1485
- var SpinButton = (props) => {
1486
- const _a = props, {
1487
- size = defaultProps15.size,
1488
- fillMode = defaultProps15.fillMode
1489
- } = _a, other = __objRest(_a, [
1490
- "size",
1491
- "fillMode"
1492
- ]);
1493
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1494
- "span",
1495
- __spreadProps(__spreadValues({}, other), {
1496
- className: classNames(
1497
- SPINBUTTON_CLASSNAME,
1498
- props.className
1499
- ),
1500
- children: [
1501
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1502
- Button,
1503
- {
1504
- className: "k-spinner-increase",
1505
- icon: "arrow-n",
1506
- rounded: null,
1507
- size,
1508
- fillMode
1509
- }
1510
- ),
1511
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1512
- Button,
1513
- {
1514
- className: "k-spinner-decrease",
1515
- icon: "arrow-s",
1516
- rounded: null,
1517
- size,
1518
- fillMode
1519
- }
1520
- )
1521
- ]
1522
- })
1523
- );
1524
- };
1525
- SpinButton.states = states17;
1526
- SpinButton.options = options16;
1527
- SpinButton.className = SPINBUTTON_CLASSNAME;
1528
- SpinButton.defaultProps = defaultProps15;
1918
+ DateTimePicker.states = states22;
1919
+ DateTimePicker.options = options20;
1920
+ DateTimePicker.className = DATETIMEPICKER_CLASSNAME;
1921
+ DateTimePicker.defaultProps = defaultProps19;
1529
1922
 
1530
- // src/numerictextbox/numerictextbox.spec.tsx
1531
- var import_jsx_runtime26 = __require("react/jsx-runtime");
1532
- var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
1533
- var states18 = [
1923
+ // src/combobox/combobox.spec.tsx
1924
+ var import_jsx_runtime33 = __require("react/jsx-runtime");
1925
+ var COMBOBOX_CLASSNAME = `k-combobox`;
1926
+ var states23 = [
1534
1927
  States.hover,
1535
1928
  States.focus,
1536
1929
  States.valid,
@@ -1540,20 +1933,20 @@
1540
1933
  States.disabled,
1541
1934
  States.readonly
1542
1935
  ];
1543
- var options17 = {
1544
- size: [Size.small, Size.medium, Size.large],
1545
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1546
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1547
- };
1548
- var defaultProps16 = {
1549
- showSpinButton: true,
1550
- showClearButton: true,
1936
+ var defaultProps20 = {
1551
1937
  size: Input.defaultProps.size,
1552
1938
  rounded: Input.defaultProps.rounded,
1553
1939
  fillMode: Input.defaultProps.fillMode
1554
1940
  };
1555
- var NumericTextbox = (props) => {
1941
+ var options21 = {
1942
+ size: [Size.small, Size.medium, Size.large],
1943
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1944
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1945
+ };
1946
+ var Combobox = (props) => {
1556
1947
  const _a = props, {
1948
+ prefix,
1949
+ suffix,
1557
1950
  value,
1558
1951
  placeholder,
1559
1952
  size,
@@ -1566,10 +1959,12 @@
1566
1959
  required,
1567
1960
  loading,
1568
1961
  disabled,
1569
- readonly,
1570
- showClearButton = defaultProps16.showClearButton,
1571
- showSpinButton = defaultProps16.showSpinButton
1962
+ popup,
1963
+ opened,
1964
+ readonly
1572
1965
  } = _a, other = __objRest(_a, [
1966
+ "prefix",
1967
+ "suffix",
1573
1968
  "value",
1574
1969
  "placeholder",
1575
1970
  "size",
@@ -1582,487 +1977,779 @@
1582
1977
  "required",
1583
1978
  "loading",
1584
1979
  "disabled",
1585
- "readonly",
1586
- "showClearButton",
1587
- "showSpinButton"
1980
+ "popup",
1981
+ "opened",
1982
+ "readonly"
1588
1983
  ]);
1589
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1590
- Input,
1591
- __spreadProps(__spreadValues({}, other), {
1592
- size,
1593
- rounded,
1594
- fillMode,
1595
- hover,
1596
- focus,
1597
- valid,
1598
- invalid,
1599
- required,
1600
- loading,
1601
- disabled,
1602
- readonly,
1603
- className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
1604
- children: [
1605
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(InputInnerInput, { placeholder, value }),
1606
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1607
- InputValidationIcon,
1608
- {
1609
- valid,
1610
- invalid,
1611
- loading,
1612
- disabled
1613
- }
1614
- ),
1615
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1616
- InputLoadingIcon,
1617
- {
1618
- loading,
1619
- disabled
1620
- }
1621
- ),
1622
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1623
- InputClearValue,
1624
- {
1625
- loading,
1626
- disabled,
1627
- readonly,
1628
- value
1629
- }
1630
- ),
1631
- showSpinButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1632
- SpinButton,
1633
- {
1634
- className: "k-input-spinner",
1635
- size,
1636
- fillMode
1637
- }
1638
- )
1639
- ]
1984
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
1985
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1986
+ Input,
1987
+ __spreadProps(__spreadValues({}, other), {
1988
+ size,
1989
+ rounded,
1990
+ fillMode,
1991
+ hover,
1992
+ focus,
1993
+ valid,
1994
+ invalid,
1995
+ required,
1996
+ loading,
1997
+ disabled,
1998
+ readonly,
1999
+ className: classNames(props.className, COMBOBOX_CLASSNAME),
2000
+ children: [
2001
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputPrefix, { children: prefix }),
2002
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputInnerInput, { placeholder, value }),
2003
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2004
+ InputValidationIcon,
2005
+ {
2006
+ valid,
2007
+ invalid,
2008
+ loading,
2009
+ disabled
2010
+ }
2011
+ ),
2012
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2013
+ InputLoadingIcon,
2014
+ {
2015
+ loading,
2016
+ disabled
2017
+ }
2018
+ ),
2019
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2020
+ InputClearValue,
2021
+ {
2022
+ loading,
2023
+ disabled,
2024
+ readonly,
2025
+ value
2026
+ }
2027
+ ),
2028
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputSuffix, { children: suffix }),
2029
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2030
+ Button,
2031
+ {
2032
+ className: "k-input-button",
2033
+ icon: "caret-alt-down",
2034
+ rounded: null,
2035
+ size,
2036
+ fillMode
2037
+ }
2038
+ )
2039
+ ]
2040
+ })
2041
+ ),
2042
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Popup, { className: "k-combobox-popup", children: popup })
2043
+ ] });
2044
+ };
2045
+ Combobox.states = states23;
2046
+ Combobox.options = options21;
2047
+ Combobox.className = COMBOBOX_CLASSNAME;
2048
+ Combobox.defaultProps = defaultProps20;
2049
+
2050
+ // src/chip/chip-action.tsx
2051
+ var import_jsx_runtime34 = __require("react/jsx-runtime");
2052
+
2053
+ // src/avatar/avatar.spec.tsx
2054
+ var import_jsx_runtime35 = __require("react/jsx-runtime");
2055
+ var AVATAR_CLASSNAME = `k-avatar`;
2056
+ var states24 = [
2057
+ States.hover,
2058
+ States.focus,
2059
+ States.active,
2060
+ States.selected,
2061
+ States.disabled
2062
+ ];
2063
+ var options22 = {
2064
+ size: [Size.small, Size.medium, Size.large],
2065
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2066
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
2067
+ themeColor: [
2068
+ ThemeColor.base,
2069
+ ThemeColor.primary,
2070
+ ThemeColor.secondary,
2071
+ ThemeColor.tertiary,
2072
+ ThemeColor.success,
2073
+ ThemeColor.warning,
2074
+ ThemeColor.error,
2075
+ ThemeColor.info,
2076
+ ThemeColor.light,
2077
+ ThemeColor.dark
2078
+ ]
2079
+ };
2080
+ var defaultProps21 = {
2081
+ type: "text" /* TEXT */,
2082
+ size: Size.medium,
2083
+ rounded: Roundness.full,
2084
+ fillMode: FillMode.solid,
2085
+ themeColor: ThemeColor.primary,
2086
+ border: false
2087
+ };
2088
+ var Avatar = (props) => {
2089
+ const _a = props, {
2090
+ size = defaultProps21.size,
2091
+ rounded = defaultProps21.rounded,
2092
+ fillMode = defaultProps21.fillMode,
2093
+ themeColor = defaultProps21.themeColor,
2094
+ type = defaultProps21.type,
2095
+ border = defaultProps21.border
2096
+ } = _a, other = __objRest(_a, [
2097
+ "size",
2098
+ "rounded",
2099
+ "fillMode",
2100
+ "themeColor",
2101
+ "type",
2102
+ "border"
2103
+ ]);
2104
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2105
+ "div",
2106
+ __spreadProps(__spreadValues({}, other), {
2107
+ className: classNames(
2108
+ props.className,
2109
+ AVATAR_CLASSNAME,
2110
+ optionClassNames(AVATAR_CLASSNAME, {
2111
+ size,
2112
+ rounded,
2113
+ fillMode,
2114
+ themeColor
2115
+ }),
2116
+ {
2117
+ [`${AVATAR_CLASSNAME}-bordered`]: border
2118
+ }
2119
+ ),
2120
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
1640
2121
  })
1641
2122
  );
1642
2123
  };
1643
- NumericTextbox.states = states18;
1644
- NumericTextbox.options = options17;
1645
- NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
1646
- NumericTextbox.defaultProps = defaultProps16;
2124
+ Avatar.states = states24;
2125
+ Avatar.options = options22;
2126
+ Avatar.className = AVATAR_CLASSNAME;
2127
+ Avatar.defaultProps = defaultProps21;
1647
2128
 
1648
- // src/radio/radio.spec.tsx
1649
- var import_jsx_runtime27 = __require("react/jsx-runtime");
1650
- var RADIOBUTTON_CLASSNAME = `k-radio`;
1651
- var states19 = [
2129
+ // src/chip/chip.spec.tsx
2130
+ var import_jsx_runtime36 = __require("react/jsx-runtime");
2131
+ var CHIP_CLASSNAME = `k-chip`;
2132
+ var states25 = [
1652
2133
  States.hover,
1653
2134
  States.focus,
1654
- States.valid,
1655
- States.invalid,
1656
- States.required,
1657
- States.disabled,
1658
- States.checked
2135
+ States.active,
2136
+ States.selected,
2137
+ States.disabled
1659
2138
  ];
1660
- var options18 = {
1661
- size: [Size.small, Size.medium, Size.large]
2139
+ var options23 = {
2140
+ size: [Size.small, Size.medium, Size.large],
2141
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2142
+ fillMode: [FillMode.solid, FillMode.outline],
2143
+ themeColor: [
2144
+ ThemeColor.base,
2145
+ ThemeColor.success,
2146
+ ThemeColor.warning,
2147
+ ThemeColor.error,
2148
+ ThemeColor.info
2149
+ ]
1662
2150
  };
1663
- var defaultProps17 = {
1664
- size: Size.medium
2151
+ var defaultProps22 = {
2152
+ size: Size.medium,
2153
+ rounded: Roundness.medium,
2154
+ fillMode: FillMode.solid,
2155
+ themeColor: ThemeColor.base
1665
2156
  };
1666
- var RadioButton = (props) => {
2157
+ var Chip = (props) => {
1667
2158
  const _a = props, {
1668
- id,
1669
- checked,
2159
+ size = defaultProps22.size,
2160
+ rounded = defaultProps22.rounded,
2161
+ fillMode = defaultProps22.fillMode,
2162
+ themeColor = defaultProps22.themeColor,
2163
+ text,
2164
+ icon,
2165
+ actions,
2166
+ showAvatar,
1670
2167
  hover,
1671
2168
  focus,
1672
- disabled,
1673
- invalid,
1674
- valid,
1675
- required,
1676
- size = defaultProps17.size
2169
+ active,
2170
+ selected,
2171
+ disabled
1677
2172
  } = _a, other = __objRest(_a, [
1678
- "id",
1679
- "checked",
2173
+ "size",
2174
+ "rounded",
2175
+ "fillMode",
2176
+ "themeColor",
2177
+ "text",
2178
+ "icon",
2179
+ "actions",
2180
+ "showAvatar",
1680
2181
  "hover",
1681
2182
  "focus",
1682
- "disabled",
1683
- "invalid",
1684
- "valid",
1685
- "required",
2183
+ "active",
2184
+ "selected",
2185
+ "disabled"
2186
+ ]);
2187
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2188
+ "div",
2189
+ __spreadProps(__spreadValues({}, other), {
2190
+ className: classNames(
2191
+ props.className,
2192
+ CHIP_CLASSNAME,
2193
+ optionClassNames(CHIP_CLASSNAME, {
2194
+ size,
2195
+ rounded,
2196
+ fillMode,
2197
+ themeColor
2198
+ }),
2199
+ stateClassNames(CHIP_CLASSNAME, {
2200
+ hover,
2201
+ focus,
2202
+ active,
2203
+ disabled,
2204
+ selected
2205
+ })
2206
+ ),
2207
+ children: [
2208
+ icon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { className: "k-chip-icon", name: icon }),
2209
+ showAvatar && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("img", { src: "/packages/html/assets/avatar.jpg" }) }),
2210
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
2211
+ actions && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-chip-actions", children: actions })
2212
+ ]
2213
+ })
2214
+ );
2215
+ };
2216
+ Chip.states = states25;
2217
+ Chip.options = options23;
2218
+ Chip.className = CHIP_CLASSNAME;
2219
+ Chip.defaultProps = defaultProps22;
2220
+
2221
+ // src/chip/chip-list.spec.tsx
2222
+ var import_jsx_runtime37 = __require("react/jsx-runtime");
2223
+ var CHIPLIST_CLASSNAME = `k-chip-list`;
2224
+ var states26 = [];
2225
+ var options24 = {
2226
+ size: [Size.small, Size.medium, Size.large]
2227
+ };
2228
+ var defaultProps23 = {
2229
+ size: Size.medium
2230
+ };
2231
+ var ChipList = (props) => {
2232
+ const _a = props, {
2233
+ size = defaultProps23.size
2234
+ } = _a, other = __objRest(_a, [
1686
2235
  "size"
1687
2236
  ]);
1688
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-radio-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1689
- "input",
2237
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2238
+ "div",
1690
2239
  __spreadProps(__spreadValues({}, other), {
1691
- id,
1692
- type: "radio",
1693
- checked,
1694
- required,
1695
2240
  className: classNames(
1696
2241
  props.className,
1697
- RADIOBUTTON_CLASSNAME,
1698
- optionClassNames(RADIOBUTTON_CLASSNAME, { size }),
1699
- stateClassNames(RADIOBUTTON_CLASSNAME, { hover, focus, disabled, invalid, valid, checked })
1700
- )
2242
+ CHIPLIST_CLASSNAME,
2243
+ optionClassNames(CHIPLIST_CLASSNAME, {
2244
+ size
2245
+ })
2246
+ ),
2247
+ children: props.children
1701
2248
  })
1702
- ) });
2249
+ );
1703
2250
  };
1704
- RadioButton.states = states19;
1705
- RadioButton.options = options18;
1706
- RadioButton.className = RADIOBUTTON_CLASSNAME;
1707
- RadioButton.defaultProps = defaultProps17;
2251
+ ChipList.states = states26;
2252
+ ChipList.options = options24;
2253
+ ChipList.className = CHIPLIST_CLASSNAME;
2254
+ ChipList.defaultProps = defaultProps23;
1708
2255
 
1709
- // src/textarea/textarea.spec.tsx
1710
- var import_jsx_runtime28 = __require("react/jsx-runtime");
1711
- var TEXTAREA_CLASSNAME = `k-textarea`;
1712
- var states20 = [
2256
+ // src/multiselect/multiselect.spec.tsx
2257
+ var import_jsx_runtime38 = __require("react/jsx-runtime");
2258
+ var MULTISELECT_CLASSNAME = `k-multiselect`;
2259
+ var states27 = [
1713
2260
  States.hover,
1714
2261
  States.focus,
1715
2262
  States.valid,
1716
2263
  States.invalid,
1717
2264
  States.required,
1718
2265
  States.disabled,
1719
- States.loading
2266
+ States.loading,
2267
+ States.readonly
1720
2268
  ];
1721
- var options19 = {
2269
+ var options25 = {
1722
2270
  size: [Size.small, Size.medium, Size.large],
1723
2271
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1724
2272
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1725
2273
  };
1726
- var defaultProps18 = {
2274
+ var defaultProps24 = {
1727
2275
  size: Input.defaultProps.size,
1728
2276
  rounded: Input.defaultProps.rounded,
1729
2277
  fillMode: Input.defaultProps.fillMode
1730
2278
  };
1731
- var Textarea = (props) => {
2279
+ var MultiSelect = (props) => {
1732
2280
  const _a = props, {
1733
- rows,
2281
+ prefix,
2282
+ suffix,
1734
2283
  value,
1735
2284
  placeholder,
2285
+ tags,
2286
+ popup,
1736
2287
  size,
1737
2288
  rounded,
1738
2289
  fillMode,
2290
+ showArrowButton,
1739
2291
  hover,
1740
2292
  focus,
1741
2293
  valid,
1742
2294
  invalid,
1743
2295
  required,
1744
2296
  loading,
1745
- disabled
2297
+ disabled,
2298
+ readonly,
2299
+ opened
1746
2300
  } = _a, other = __objRest(_a, [
1747
- "rows",
2301
+ "prefix",
2302
+ "suffix",
1748
2303
  "value",
1749
2304
  "placeholder",
2305
+ "tags",
2306
+ "popup",
1750
2307
  "size",
1751
2308
  "rounded",
1752
2309
  "fillMode",
2310
+ "showArrowButton",
1753
2311
  "hover",
1754
2312
  "focus",
1755
2313
  "valid",
1756
2314
  "invalid",
1757
2315
  "required",
1758
2316
  "loading",
1759
- "disabled"
2317
+ "disabled",
2318
+ "readonly",
2319
+ "opened"
1760
2320
  ]);
1761
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1762
- Input,
1763
- __spreadProps(__spreadValues({}, other), {
1764
- size,
1765
- rounded,
1766
- fillMode,
1767
- hover,
1768
- focus,
1769
- valid,
1770
- invalid,
1771
- required,
1772
- loading,
1773
- disabled,
1774
- className: classNames(props.className, TEXTAREA_CLASSNAME),
1775
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1776
- InputInnerTextarea,
1777
- {
1778
- className: "!k-overflow-auto",
1779
- value,
1780
- placeholder,
1781
- rows
1782
- }
1783
- )
1784
- })
2321
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
2322
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2323
+ Input,
2324
+ __spreadProps(__spreadValues({}, other), {
2325
+ size,
2326
+ rounded,
2327
+ fillMode,
2328
+ hover,
2329
+ focus,
2330
+ valid,
2331
+ invalid,
2332
+ required,
2333
+ loading,
2334
+ disabled,
2335
+ readonly,
2336
+ className: classNames(props.className, MULTISELECT_CLASSNAME),
2337
+ children: [
2338
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputPrefix, { children: prefix }),
2339
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "k-input-values", children: [
2340
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChipList, { size, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: tags }) }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputInnerInput, { placeholder, value })
2342
+ ] }),
2343
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2344
+ InputValidationIcon,
2345
+ {
2346
+ valid,
2347
+ invalid,
2348
+ loading,
2349
+ disabled
2350
+ }
2351
+ ),
2352
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2353
+ InputLoadingIcon,
2354
+ {
2355
+ loading,
2356
+ disabled
2357
+ }
2358
+ ),
2359
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2360
+ InputClearValue,
2361
+ {
2362
+ loading,
2363
+ disabled,
2364
+ readonly,
2365
+ value: tags ? "value" : ""
2366
+ }
2367
+ ),
2368
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputSuffix, { children: suffix }),
2369
+ showArrowButton && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2370
+ Button,
2371
+ {
2372
+ className: "k-input-button",
2373
+ icon: "arrow-s",
2374
+ rounded: null,
2375
+ size,
2376
+ fillMode
2377
+ }
2378
+ )
2379
+ ]
2380
+ })
2381
+ ),
2382
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popup, { className: "k-multiselect-popup", children: popup })
2383
+ ] });
2384
+ };
2385
+ MultiSelect.states = states27;
2386
+ MultiSelect.options = options25;
2387
+ MultiSelect.className = MULTISELECT_CLASSNAME;
2388
+ MultiSelect.defaultProps = defaultProps24;
2389
+
2390
+ // src/form/fieldset.tsx
2391
+ var import_jsx_runtime39 = __require("react/jsx-runtime");
2392
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
2393
+ var Fieldset = (props) => {
2394
+ const {
2395
+ legend
2396
+ } = props;
2397
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
2398
+ legend && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("legend", { className: "k-form-legend", children: legend }),
2399
+ props.children
2400
+ ] });
2401
+ };
2402
+ Fieldset.className = FIELDSET_CLASSNAME;
2403
+
2404
+ // src/form/form.spec.tsx
2405
+ var import_jsx_runtime40 = __require("react/jsx-runtime");
2406
+ var FORM_CLASSNAME = "k-form";
2407
+ var states28 = [];
2408
+ var options26 = {
2409
+ size: [Size.small, Size.medium, Size.large]
2410
+ };
2411
+ var defaultProps25 = {
2412
+ size: Size.medium,
2413
+ layout: "basic",
2414
+ tag: "form"
2415
+ };
2416
+ var Form = (props) => {
2417
+ const {
2418
+ size = defaultProps25.size,
2419
+ orientation,
2420
+ layout = defaultProps25.layout,
2421
+ formButtons,
2422
+ legend,
2423
+ cols,
2424
+ gapX,
2425
+ gapY,
2426
+ tag = defaultProps25.tag
2427
+ } = props;
2428
+ const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
2429
+ const Parent = ({ tag: tag2, className: className14, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("form", { className: className14, children }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: className14, children });
2430
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Parent, { tag, className: classNames(
2431
+ props.className,
2432
+ FORM_CLASSNAME,
2433
+ optionClassNames(FORM_CLASSNAME, {
2434
+ size
2435
+ }),
2436
+ {
2437
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
2438
+ }
2439
+ ), children: [
2440
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2441
+ ConditionalWrapper,
2442
+ {
2443
+ condition: layout === "grid",
2444
+ wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: classNames(
2445
+ "k-form-layout",
2446
+ "k-d-grid",
2447
+ {
2448
+ [`k-grid-cols-${cols}`]: cols,
2449
+ [`k-gap-x-${gapX}`]: gapX,
2450
+ [`k-gap-y-${gapY}`]: gapY
2451
+ }
2452
+ ), children }) }),
2453
+ children: props.children
2454
+ }
2455
+ ),
2456
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-form-buttons", children: formButtons })
2457
+ ] });
2458
+ };
2459
+ Form.states = states28;
2460
+ Form.options = options26;
2461
+ Form.className = FORM_CLASSNAME;
2462
+ Form.defaultProps = defaultProps25;
2463
+
2464
+ // src/form/form-field.tsx
2465
+ var import_jsx_runtime41 = __require("react/jsx-runtime");
2466
+ var FORMFIELD_CLASSNAME = "k-form-field";
2467
+ var states29 = [
2468
+ States.disabled
2469
+ ];
2470
+ var FormField = (props) => {
2471
+ const {
2472
+ label,
2473
+ optional,
2474
+ editor,
2475
+ hint,
2476
+ error,
2477
+ info,
2478
+ disabled,
2479
+ dir
2480
+ } = props;
2481
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2482
+ "div",
2483
+ {
2484
+ className: classNames(
2485
+ FORMFIELD_CLASSNAME,
2486
+ props.className,
2487
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled })
2488
+ ),
2489
+ dir,
2490
+ children: [
2491
+ label && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: classNames(
2492
+ "k-label",
2493
+ "k-form-label",
2494
+ {
2495
+ "k-label-empty": label === " "
2496
+ }
2497
+ ), children: [
2498
+ label,
2499
+ optional && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
2500
+ info && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "k-field-info", children: "(field info)" })
2501
+ ] }),
2502
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "k-form-field-wrap", children: [
2503
+ editor,
2504
+ hint && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "k-form-hint", children: hint }),
2505
+ error && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "k-form-error", children: error })
2506
+ ] })
2507
+ ]
2508
+ }
1785
2509
  );
1786
2510
  };
1787
- Textarea.states = states20;
1788
- Textarea.options = options19;
1789
- Textarea.className = TEXTAREA_CLASSNAME;
1790
- Textarea.defaultProps = defaultProps18;
2511
+ FormField.className = FORMFIELD_CLASSNAME;
1791
2512
 
1792
- // src/textbox/textbox.spec.tsx
1793
- var import_jsx_runtime29 = __require("react/jsx-runtime");
1794
- var TEXTBOX_CLASSNAME = `k-textbox`;
1795
- var states21 = [
2513
+ // src/radio/radio.spec.tsx
2514
+ var import_jsx_runtime42 = __require("react/jsx-runtime");
2515
+ var RADIOBUTTON_CLASSNAME = `k-radio`;
2516
+ var states30 = [
1796
2517
  States.hover,
1797
2518
  States.focus,
1798
2519
  States.valid,
1799
2520
  States.invalid,
1800
2521
  States.required,
1801
2522
  States.disabled,
1802
- States.loading,
1803
- States.readonly
2523
+ States.checked
1804
2524
  ];
1805
- var options20 = {
1806
- size: [Size.small, Size.medium, Size.large],
1807
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1808
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
2525
+ var options27 = {
2526
+ size: [Size.small, Size.medium, Size.large]
1809
2527
  };
1810
- var defaultProps19 = {
1811
- showClearButton: true,
1812
- size: Input.defaultProps.size,
1813
- rounded: Input.defaultProps.rounded,
1814
- fillMode: Input.defaultProps.fillMode
2528
+ var defaultProps26 = {
2529
+ size: Size.medium
1815
2530
  };
1816
- var Textbox = (props) => {
2531
+ var RadioButton = (props) => {
1817
2532
  const _a = props, {
1818
- prefix,
1819
- suffix,
1820
- value,
1821
- placeholder,
1822
- size,
1823
- rounded,
1824
- fillMode,
2533
+ id,
2534
+ checked,
1825
2535
  hover,
1826
2536
  focus,
1827
- valid,
2537
+ disabled,
1828
2538
  invalid,
2539
+ valid,
1829
2540
  required,
1830
- loading,
1831
- disabled,
1832
- readonly,
1833
- showClearButton = defaultProps19.showClearButton
2541
+ size = defaultProps26.size
1834
2542
  } = _a, other = __objRest(_a, [
1835
- "prefix",
1836
- "suffix",
1837
- "value",
1838
- "placeholder",
1839
- "size",
1840
- "rounded",
1841
- "fillMode",
2543
+ "id",
2544
+ "checked",
1842
2545
  "hover",
1843
2546
  "focus",
1844
- "valid",
2547
+ "disabled",
1845
2548
  "invalid",
2549
+ "valid",
1846
2550
  "required",
1847
- "loading",
1848
- "disabled",
1849
- "readonly",
1850
- "showClearButton"
2551
+ "size"
1851
2552
  ]);
1852
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1853
- Input,
2553
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "k-radio-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2554
+ "input",
1854
2555
  __spreadProps(__spreadValues({}, other), {
1855
- size,
1856
- rounded,
1857
- fillMode,
1858
- hover,
1859
- focus,
1860
- valid,
1861
- invalid,
2556
+ id,
2557
+ type: "radio",
2558
+ checked,
1862
2559
  required,
1863
- loading,
1864
- disabled,
1865
- readonly,
1866
- className: classNames(props.className, TEXTBOX_CLASSNAME),
1867
- children: [
1868
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InputPrefix, { children: prefix }),
1869
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InputInnerInput, { placeholder, value }),
1870
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1871
- InputValidationIcon,
1872
- {
1873
- valid,
1874
- invalid,
1875
- loading,
1876
- disabled
1877
- }
1878
- ),
1879
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1880
- InputLoadingIcon,
1881
- {
1882
- loading,
1883
- disabled
1884
- }
1885
- ),
1886
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1887
- InputClearValue,
1888
- {
1889
- loading,
1890
- disabled,
1891
- readonly,
1892
- value
1893
- }
1894
- ),
1895
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InputSuffix, { children: suffix })
1896
- ]
2560
+ className: classNames(
2561
+ props.className,
2562
+ RADIOBUTTON_CLASSNAME,
2563
+ optionClassNames(RADIOBUTTON_CLASSNAME, { size }),
2564
+ stateClassNames(RADIOBUTTON_CLASSNAME, { hover, focus, disabled, invalid, valid, checked })
2565
+ )
1897
2566
  })
1898
- );
2567
+ ) });
1899
2568
  };
1900
- Textbox.states = states21;
1901
- Textbox.options = options20;
1902
- Textbox.className = TEXTBOX_CLASSNAME;
1903
- Textbox.defaultProps = defaultProps19;
2569
+ RadioButton.states = states30;
2570
+ RadioButton.options = options27;
2571
+ RadioButton.className = RADIOBUTTON_CLASSNAME;
2572
+ RadioButton.defaultProps = defaultProps26;
1904
2573
 
1905
- // src/time-selector/time-selector.spec.tsx
1906
- var import_jsx_runtime30 = __require("react/jsx-runtime");
1907
- var TIMESELECTOR_CLASSNAME = `k-timeselector`;
1908
- var states22 = [];
1909
- var options21 = {
1910
- size: [Size.small, Size.medium, Size.large]
2574
+ // src/spinbutton/spinbutton.spec.tsx
2575
+ var import_jsx_runtime43 = __require("react/jsx-runtime");
2576
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
2577
+ var states31 = [];
2578
+ var options28 = {
2579
+ size: [Size.small, Size.medium, Size.large],
2580
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
1911
2581
  };
1912
- var defaultProps20 = {
1913
- size: Size.medium
2582
+ var defaultProps27 = {
2583
+ size: Size.medium,
2584
+ fillMode: FillMode.solid
1914
2585
  };
1915
- var TimeSelector = (props) => {
2586
+ var SpinButton = (props) => {
1916
2587
  const _a = props, {
1917
- size = defaultProps20.size,
1918
- header,
1919
- fastSelection,
1920
- columns,
1921
- focusedColumn
2588
+ size = defaultProps27.size,
2589
+ fillMode = defaultProps27.fillMode
1922
2590
  } = _a, other = __objRest(_a, [
1923
2591
  "size",
1924
- "header",
1925
- "fastSelection",
1926
- "columns",
1927
- "focusedColumn"
2592
+ "fillMode"
1928
2593
  ]);
1929
- const columnsDom = columns.map(function(columnType, index) {
1930
- let focus = false;
1931
- let separator = true;
1932
- if (columnType === focusedColumn) {
1933
- focus = true;
1934
- }
1935
- if (index === 0 || columnType === "tt") {
1936
- separator = false;
1937
- }
1938
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TimeSelectorColumn, { type: columnType, focus, separator }) });
1939
- });
1940
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1941
- "div",
2594
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2595
+ "span",
1942
2596
  __spreadProps(__spreadValues({}, other), {
1943
2597
  className: classNames(
1944
- props.className,
1945
- TIMESELECTOR_CLASSNAME,
1946
- optionClassNames(TIMESELECTOR_CLASSNAME, {
1947
- size
1948
- })
2598
+ SPINBUTTON_CLASSNAME,
2599
+ props.className
1949
2600
  ),
1950
2601
  children: [
1951
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: header }),
1952
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: fastSelection }),
1953
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "k-time-list-container", children: [
1954
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "k-time-highlight" }),
1955
- columnsDom
1956
- ] })
2602
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2603
+ Button,
2604
+ {
2605
+ className: "k-spinner-increase",
2606
+ icon: "arrow-n",
2607
+ rounded: null,
2608
+ size,
2609
+ fillMode
2610
+ }
2611
+ ),
2612
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2613
+ Button,
2614
+ {
2615
+ className: "k-spinner-decrease",
2616
+ icon: "arrow-s",
2617
+ rounded: null,
2618
+ size,
2619
+ fillMode
2620
+ }
2621
+ )
1957
2622
  ]
1958
2623
  })
1959
2624
  );
1960
2625
  };
1961
- TimeSelector.states = states22;
1962
- TimeSelector.options = options21;
1963
- TimeSelector.className = TIMESELECTOR_CLASSNAME;
1964
- TimeSelector.defaultProps = defaultProps20;
2626
+ SpinButton.states = states31;
2627
+ SpinButton.options = options28;
2628
+ SpinButton.className = SPINBUTTON_CLASSNAME;
2629
+ SpinButton.defaultProps = defaultProps27;
1965
2630
 
1966
- // src/time-selector/time-selector-column.tsx
1967
- var import_jsx_runtime31 = __require("react/jsx-runtime");
1968
- var states23 = [
1969
- States.focus
1970
- ];
1971
- var TimeSelectorColumn = (props) => {
1972
- const _a = props, {
1973
- type,
1974
- focus,
1975
- separator
1976
- } = _a, other = __objRest(_a, [
1977
- "type",
1978
- "focus",
1979
- "separator"
1980
- ]);
1981
- let text;
1982
- let columnData = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
1983
- switch (type) {
1984
- case "dd":
1985
- text = "Day";
1986
- break;
1987
- case "HH":
1988
- text = "Hour";
1989
- break;
1990
- case "mm":
1991
- text = "Minute";
1992
- break;
1993
- case "ss":
1994
- text = "Second";
1995
- break;
1996
- case "SSS":
1997
- text = "Millisecond";
1998
- columnData = ["000", "001", "002", "003", "004", "005", "006", "007", "008", "009"];
1999
- break;
2000
- case "tt":
2001
- text = "AM/PM";
2002
- columnData = ["AM", "PM"];
2003
- break;
2004
- default:
2005
- text = "Column Name";
2006
- break;
2007
- }
2008
- const items = columnData.map(
2009
- (data) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: data }) }) })
2010
- );
2011
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
2012
- separator && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-time-separator", children: ":" }),
2013
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2014
- "div",
2015
- __spreadProps(__spreadValues({}, other), {
2016
- className: classNames(
2017
- props.className,
2018
- "k-time-list-wrapper",
2019
- stateClassNames("k-time-list-wrapper", {
2020
- focus
2021
- })
2022
- ),
2023
- children: [
2024
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-title", children: text }),
2025
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-time-list", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "k-content k-scrollable k-time-container", children: [
2026
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("ul", { className: "k-reset", style: { transform: "translateY(97px)" }, children: items }),
2027
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-scrollable-placeholder" })
2028
- ] }) })
2029
- ]
2030
- })
2031
- )
2032
- ] });
2631
+ // src/numerictextbox/numerictextbox.spec.tsx
2632
+ var import_jsx_runtime44 = __require("react/jsx-runtime");
2633
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
2634
+ var states32 = [
2635
+ States.hover,
2636
+ States.focus,
2637
+ States.valid,
2638
+ States.invalid,
2639
+ States.loading,
2640
+ States.required,
2641
+ States.disabled,
2642
+ States.readonly
2643
+ ];
2644
+ var options29 = {
2645
+ size: [Size.small, Size.medium, Size.large],
2646
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2647
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
2033
2648
  };
2034
-
2035
- // src/time-selector/time-selector-header.tsx
2036
- var import_jsx_runtime32 = __require("react/jsx-runtime");
2037
- var className13 = `k-time-header`;
2038
- var TimeSelectorHeader = (props) => {
2649
+ var defaultProps28 = {
2650
+ showSpinButton: true,
2651
+ showClearButton: true,
2652
+ size: Input.defaultProps.size,
2653
+ rounded: Input.defaultProps.rounded,
2654
+ fillMode: Input.defaultProps.fillMode
2655
+ };
2656
+ var NumericTextbox = (props) => {
2039
2657
  const _a = props, {
2040
- title
2658
+ value,
2659
+ placeholder,
2660
+ size,
2661
+ rounded,
2662
+ fillMode,
2663
+ hover,
2664
+ focus,
2665
+ valid,
2666
+ invalid,
2667
+ required,
2668
+ loading,
2669
+ disabled,
2670
+ readonly,
2671
+ showClearButton = defaultProps28.showClearButton,
2672
+ showSpinButton = defaultProps28.showSpinButton
2041
2673
  } = _a, other = __objRest(_a, [
2042
- "title"
2674
+ "value",
2675
+ "placeholder",
2676
+ "size",
2677
+ "rounded",
2678
+ "fillMode",
2679
+ "hover",
2680
+ "focus",
2681
+ "valid",
2682
+ "invalid",
2683
+ "required",
2684
+ "loading",
2685
+ "disabled",
2686
+ "readonly",
2687
+ "showClearButton",
2688
+ "showSpinButton"
2043
2689
  ]);
2044
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2045
- "div",
2690
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2691
+ Input,
2046
2692
  __spreadProps(__spreadValues({}, other), {
2047
- className: classNames(
2048
- props.className,
2049
- className13
2050
- ),
2693
+ size,
2694
+ rounded,
2695
+ fillMode,
2696
+ hover,
2697
+ focus,
2698
+ valid,
2699
+ invalid,
2700
+ required,
2701
+ loading,
2702
+ disabled,
2703
+ readonly,
2704
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
2051
2705
  children: [
2052
- title != null && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-title", children: title }),
2053
- props.children
2706
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(InputInnerInput, { placeholder, value }),
2707
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2708
+ InputValidationIcon,
2709
+ {
2710
+ valid,
2711
+ invalid,
2712
+ loading,
2713
+ disabled
2714
+ }
2715
+ ),
2716
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2717
+ InputLoadingIcon,
2718
+ {
2719
+ loading,
2720
+ disabled
2721
+ }
2722
+ ),
2723
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2724
+ InputClearValue,
2725
+ {
2726
+ loading,
2727
+ disabled,
2728
+ readonly,
2729
+ value
2730
+ }
2731
+ ),
2732
+ showSpinButton && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2733
+ SpinButton,
2734
+ {
2735
+ className: "k-input-spinner",
2736
+ size,
2737
+ fillMode
2738
+ }
2739
+ )
2054
2740
  ]
2055
2741
  })
2056
2742
  );
2057
2743
  };
2744
+ NumericTextbox.states = states32;
2745
+ NumericTextbox.options = options29;
2746
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
2747
+ NumericTextbox.defaultProps = defaultProps28;
2058
2748
 
2059
- // src/time-selector/time-selector-fast-selection.tsx
2060
- var import_jsx_runtime33 = __require("react/jsx-runtime");
2061
-
2062
- // src/timepicker/timepicker.spec.tsx
2063
- var import_jsx_runtime34 = __require("react/jsx-runtime");
2064
- var TIMEPICKER_CLASSNAME = `k-timepicker`;
2065
- var states24 = [
2749
+ // src/datepicker/datepicker.spec.tsx
2750
+ var import_jsx_runtime45 = __require("react/jsx-runtime");
2751
+ var DATEPICKER_CLASSNAME = `k-datepicker`;
2752
+ var states33 = [
2066
2753
  States.hover,
2067
2754
  States.focus,
2068
2755
  States.valid,
@@ -2072,17 +2759,17 @@
2072
2759
  States.loading,
2073
2760
  States.readonly
2074
2761
  ];
2075
- var options22 = {
2762
+ var options30 = {
2076
2763
  size: [Size.small, Size.medium, Size.large],
2077
2764
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2078
2765
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
2079
2766
  };
2080
- var defaultProps21 = {
2767
+ var defaultProps29 = {
2081
2768
  size: Input.defaultProps.size,
2082
2769
  rounded: Input.defaultProps.rounded,
2083
2770
  fillMode: Input.defaultProps.fillMode
2084
2771
  };
2085
- var TimePicker = (props) => {
2772
+ var DatePicker = (props) => {
2086
2773
  const _a = props, {
2087
2774
  prefix,
2088
2775
  suffix,
@@ -2118,8 +2805,8 @@
2118
2805
  "readonly",
2119
2806
  "opened"
2120
2807
  ]);
2121
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
2122
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2808
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
2809
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2123
2810
  Input,
2124
2811
  __spreadProps(__spreadValues({}, other), {
2125
2812
  size,
@@ -2133,11 +2820,11 @@
2133
2820
  loading,
2134
2821
  disabled,
2135
2822
  readonly,
2136
- className: classNames(props.className, TIMEPICKER_CLASSNAME),
2823
+ className: classNames(props.className, DATEPICKER_CLASSNAME),
2137
2824
  children: [
2138
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InputPrefix, { children: prefix }),
2139
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InputInnerInput, { placeholder, value }),
2140
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2825
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputPrefix, { children: prefix }),
2826
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputInnerInput, { placeholder, value }),
2827
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2141
2828
  InputValidationIcon,
2142
2829
  {
2143
2830
  valid,
@@ -2146,14 +2833,14 @@
2146
2833
  disabled
2147
2834
  }
2148
2835
  ),
2149
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2836
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2150
2837
  InputLoadingIcon,
2151
2838
  {
2152
2839
  loading,
2153
2840
  disabled
2154
2841
  }
2155
2842
  ),
2156
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2843
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2157
2844
  InputClearValue,
2158
2845
  {
2159
2846
  loading,
@@ -2162,12 +2849,12 @@
2162
2849
  value
2163
2850
  }
2164
2851
  ),
2165
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InputSuffix, { children: suffix }),
2166
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2852
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputSuffix, { children: suffix }),
2853
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2167
2854
  Button,
2168
2855
  {
2169
2856
  className: "k-input-button",
2170
- icon: "clock",
2857
+ icon: "calendar",
2171
2858
  rounded: null,
2172
2859
  size,
2173
2860
  fillMode
@@ -2176,192 +2863,16 @@
2176
2863
  ]
2177
2864
  })
2178
2865
  ),
2179
- opened && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Popup, { className: "k-timepicker-popup", children: [
2180
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TimeSelector, { columns: ["HH", "mm", "ss", "tt"], focusedColumn: "mm", header: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TimeSelectorHeader, { title: "10:00:00 AM", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { fillMode: "flat", className: "k-time-now", children: "Now" }) }) }),
2181
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ActionButtons, { alignment: "stretched", className: "k-time-footer", children: [
2182
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { className: "k-time-cancel", children: "Cancel" }),
2183
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { themeColor: "primary", className: "k-time-accept", children: "Set" })
2184
- ] })
2185
- ] })
2186
- ] });
2187
- };
2188
- TimePicker.states = states24;
2189
- TimePicker.options = options22;
2190
- TimePicker.className = TIMEPICKER_CLASSNAME;
2191
- TimePicker.defaultProps = defaultProps21;
2192
-
2193
- // src/form/fieldset.tsx
2194
- var import_jsx_runtime35 = __require("react/jsx-runtime");
2195
- var FIELDSET_CLASSNAME = "k-form-fieldset";
2196
- var Fieldset = (props) => {
2197
- const {
2198
- legend
2199
- } = props;
2200
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
2201
- legend && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("legend", { className: "k-form-legend", children: legend }),
2202
- props.children
2203
- ] });
2204
- };
2205
- Fieldset.className = FIELDSET_CLASSNAME;
2206
-
2207
- // src/form/form.spec.tsx
2208
- var import_jsx_runtime36 = __require("react/jsx-runtime");
2209
- var FORM_CLASSNAME = "k-form";
2210
- var states25 = [];
2211
- var options23 = {
2212
- size: [Size.small, Size.medium, Size.large]
2213
- };
2214
- var defaultProps22 = {
2215
- size: Size.medium,
2216
- layout: "basic",
2217
- tag: "form"
2218
- };
2219
- var Form = (props) => {
2220
- const {
2221
- size = defaultProps22.size,
2222
- orientation,
2223
- layout = defaultProps22.layout,
2224
- formButtons,
2225
- legend,
2226
- cols,
2227
- gapX,
2228
- gapY,
2229
- tag = defaultProps22.tag
2230
- } = props;
2231
- const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
2232
- const Parent = ({ tag: tag2, className: className14, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("form", { className: className14, children }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: className14, children });
2233
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Parent, { tag, className: classNames(
2234
- props.className,
2235
- FORM_CLASSNAME,
2236
- optionClassNames(FORM_CLASSNAME, {
2237
- size
2238
- }),
2239
- {
2240
- [`${FORM_CLASSNAME}-${orientation}`]: orientation
2241
- }
2242
- ), children: [
2243
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2244
- ConditionalWrapper,
2245
- {
2246
- condition: layout === "grid",
2247
- wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: classNames(
2248
- "k-form-layout",
2249
- "k-d-grid",
2250
- {
2251
- [`k-grid-cols-${cols}`]: cols,
2252
- [`k-gap-x-${gapX}`]: gapX,
2253
- [`k-gap-y-${gapY}`]: gapY
2254
- }
2255
- ), children }) }),
2256
- children: props.children
2257
- }
2258
- ),
2259
- formButtons && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "k-form-buttons", children: formButtons })
2866
+ opened && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Popup, { className: "k-datepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Calendar, {}) })
2260
2867
  ] });
2261
2868
  };
2262
- Form.states = states25;
2263
- Form.options = options23;
2264
- Form.className = FORM_CLASSNAME;
2265
- Form.defaultProps = defaultProps22;
2266
-
2267
- // src/form/form-field.tsx
2268
- var import_jsx_runtime37 = __require("react/jsx-runtime");
2269
- var FORMFIELD_CLASSNAME = "k-form-field";
2270
- var states26 = [
2271
- States.disabled
2272
- ];
2273
- var FormField = (props) => {
2274
- const {
2275
- label,
2276
- optional,
2277
- editor,
2278
- hint,
2279
- error,
2280
- info,
2281
- disabled,
2282
- dir
2283
- } = props;
2284
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2285
- "div",
2286
- {
2287
- className: classNames(
2288
- FORMFIELD_CLASSNAME,
2289
- props.className,
2290
- stateClassNames(FORMFIELD_CLASSNAME, { disabled })
2291
- ),
2292
- dir,
2293
- children: [
2294
- label && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: classNames(
2295
- "k-label",
2296
- "k-form-label",
2297
- {
2298
- "k-label-empty": label === " "
2299
- }
2300
- ), children: [
2301
- label,
2302
- optional && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
2303
- info && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-field-info", children: "(field info)" })
2304
- ] }),
2305
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "k-form-field-wrap", children: [
2306
- editor,
2307
- hint && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "k-form-hint", children: hint }),
2308
- error && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "k-form-error", children: error })
2309
- ] })
2310
- ]
2311
- }
2312
- );
2313
- };
2314
- FormField.className = FORMFIELD_CLASSNAME;
2315
-
2316
- // src/button-group/button-group.spec.tsx
2317
- var import_jsx_runtime38 = __require("react/jsx-runtime");
2318
- var BUTTONGROUP_CLASSNAME = `k-button-group`;
2319
- var states27 = [
2320
- States.disabled
2321
- ];
2322
- var options24 = {
2323
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
2324
- };
2325
- var defaultProps23 = {
2326
- fillMode: FillMode.solid
2327
- };
2328
- var ButtonGroup = (props) => {
2329
- const _a = props, {
2330
- fillMode = defaultProps23.fillMode,
2331
- disabled,
2332
- stretched
2333
- } = _a, other = __objRest(_a, [
2334
- "fillMode",
2335
- "disabled",
2336
- "stretched"
2337
- ]);
2338
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2339
- "div",
2340
- __spreadProps(__spreadValues({}, other), {
2341
- className: classNames(
2342
- props.className,
2343
- BUTTONGROUP_CLASSNAME,
2344
- optionClassNames(BUTTONGROUP_CLASSNAME, {
2345
- fillMode
2346
- }),
2347
- stateClassNames(BUTTONGROUP_CLASSNAME, {
2348
- disabled
2349
- }),
2350
- {
2351
- [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
2352
- }
2353
- ),
2354
- children: props.children
2355
- })
2356
- );
2357
- };
2358
- ButtonGroup.states = states27;
2359
- ButtonGroup.options = options24;
2360
- ButtonGroup.className = BUTTONGROUP_CLASSNAME;
2361
- ButtonGroup.defaultProps = defaultProps23;
2869
+ DatePicker.states = states33;
2870
+ DatePicker.options = options30;
2871
+ DatePicker.className = DATEPICKER_CLASSNAME;
2872
+ DatePicker.defaultProps = defaultProps29;
2362
2873
 
2363
2874
  // src/scheduler/tests/scheduler-edit-dialog.tsx
2364
- var import_jsx_runtime39 = __require("react/jsx-runtime");
2875
+ var import_jsx_runtime46 = __require("react/jsx-runtime");
2365
2876
  var root = import_client.default.createRoot(
2366
2877
  document.getElementById("app")
2367
2878
  );
@@ -2370,64 +2881,65 @@
2370
2881
  width: 700px;
2371
2882
  }
2372
2883
  .k-window {
2373
- width: 100%;
2884
+ min-width: 400px;
2374
2885
  position: relative;
2375
2886
  }
2376
2887
  `;
2377
2888
  root.render(
2378
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
2379
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("style", { children: style }),
2380
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Window, { title: "Event", actions: ["close"], actionButtons: true, actionButtonsAlign: "end", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Form, { tag: "div", orientation: "horizontal", className: "k-scheduler-edit-form", children: [
2381
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "Title", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Textbox, { placeholder: "Title..." }) }),
2382
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "Start", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "k-scheduler-datetime-picker", children: [
2383
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DatePicker, {}),
2384
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePicker, {})
2385
- ] }) }),
2386
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "End", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "k-scheduler-datetime-picker", children: [
2387
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DatePicker, {}),
2388
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePicker, {})
2389
- ] }) }),
2390
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
2391
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Checkbox, { id: "k-is-allday-chkbox" }),
2392
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("label", { htmlFor: "k-is-allday-chkbox", className: "k-checkbox-label", children: "All Day Event" })
2889
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2890
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("style", { children: style }),
2891
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Window, { title: "Edit event", actions: ["minimize", "maximize", "close"], actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2892
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { themeColor: "primary", icon: "save", children: "Save" }),
2893
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { icon: "cancel", children: "Cancel" }),
2894
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "k-spacer" }),
2895
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { fillMode: "flat", themeColor: "primary", icon: "delete", children: "Delete" })
2896
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Form, { tag: "div", className: "k-scheduler-edit-form", orientation: "vertical", children: [
2897
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { className: "k-form-field-error", label: "Title", error: "Error", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Textbox, { invalid: true, value: "Invalid" }) }),
2898
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Start", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" }) }),
2899
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "End", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" }) }),
2900
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2901
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Checkbox, {}),
2902
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-checkbox-label", children: "All Day Event" })
2393
2903
  ] }) }),
2394
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
2395
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Checkbox, { id: "k-set-timezone" }),
2396
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("label", { htmlFor: "k-set-timezone", className: "k-checkbox-label", children: "Specify Time Zone" })
2904
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2905
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Checkbox, {}),
2906
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-checkbox-label", children: "Specify Time Zone" })
2397
2907
  ] }) }),
2398
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "k-recurrence-editor", children: [
2399
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "Repeat", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(ButtonGroup, { className: "k-scheduler-recurrence-repeat k-button-group-stretched", children: [
2400
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { children: "Never" }),
2401
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { selected: true, children: "Daily" }),
2402
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { children: "Weekly" }),
2403
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { children: "Monthly" }),
2404
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { children: "Yearly" })
2908
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "k-recurrence-editor", children: [
2909
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Repeat", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(ButtonGroup, { stretched: true, className: "k-scheduler-recurrence-repeat", children: [
2910
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Never" }),
2911
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { selected: true, children: "Daily" }),
2912
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Weekly" }),
2913
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Monthly" }),
2914
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Yearly" })
2405
2915
  ] }) }),
2406
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "k-recur-view", children: [
2407
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "k-scheduler-recurrence-interval-editor", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "Repeat every", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
2408
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NumericTextbox, { className: "k-recur-interval" }),
2409
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "day(s)" })
2916
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "k-recur-view", children: [
2917
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "k-scheduler-recurrence-interval-editor", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Repeat every", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2918
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NumericTextbox, { className: "k-recur-interval" }),
2919
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: " day(s)" })
2410
2920
  ] }) }) }),
2411
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "k-scheduler-recurrence-end-rule-editor", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "End", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("ul", { className: "k-radio-list", children: [
2412
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("li", { className: "k-radio-list-item", children: [
2413
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioButton, { id: "k-endrule-never" }),
2414
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-never", children: "Never" })
2921
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "k-scheduler-recurrence-end-rule-editor", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "End", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("ul", { className: "k-radio-list", children: [
2922
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { className: "k-radio-list-item", children: [
2923
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioButton, { id: "k-endrule-never" }),
2924
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-never", children: "Never" })
2415
2925
  ] }),
2416
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("li", { className: "k-radio-list-item", children: [
2417
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioButton, { id: "k-endrule-count" }),
2418
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-count", children: "After" }),
2419
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NumericTextbox, { className: "k-recur-count" }),
2420
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "occurrence(s)" })
2926
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { className: "k-radio-list-item", children: [
2927
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioButton, { id: "k-endrule-count" }),
2928
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-count", children: "After" }),
2929
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NumericTextbox, { className: "k-recur-count" }),
2930
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: "occurrence(s)" })
2421
2931
  ] }),
2422
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("li", { className: "k-radio-list-item", children: [
2423
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioButton, { id: "k-endrule-until" }),
2424
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-until", children: "On" }),
2425
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DatePicker, { className: "k-recur-until", disabled: true })
2932
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { className: "k-radio-list-item", children: [
2933
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioButton, { id: "k-endrule-until" }),
2934
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-until", children: "On" }),
2935
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DatePicker, { className: "k-recur-until", disabled: true })
2426
2936
  ] })
2427
2937
  ] }) }) })
2428
2938
  ] })
2429
2939
  ] }),
2430
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FormField, { label: "Description", editor: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Textarea, {}) })
2940
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Description", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Textarea, {}) }),
2941
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Owner", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Combobox, { placeholder: "Select owner" }) }),
2942
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Atendee", optional: true, editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MultiSelect, { placeholder: "Invite people" }) })
2431
2943
  ] }) }) }) })
2432
2944
  ] })
2433
2945
  );