@progress/kendo-themes-html 6.7.0-dev.2 → 6.7.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/cjs/chat/chat.spec.js +146 -2150
  2. package/dist/cjs/chat/tests/chat-rtl.js +333 -2337
  3. package/dist/cjs/chat/tests/chat-scrollable-deck.js +332 -2336
  4. package/dist/cjs/chat/tests/chat.js +346 -2350
  5. package/dist/cjs/grid/tests/grid-adaptive-pager.js +18 -6
  6. package/dist/cjs/grid/tests/grid-angular.js +160 -148
  7. package/dist/cjs/grid/tests/grid-column-reordering-actions.js +275 -263
  8. package/dist/cjs/grid/tests/grid-column-reordering.js +280 -268
  9. package/dist/cjs/grid/tests/grid-column-resizing-actions.js +311 -299
  10. package/dist/cjs/grid/tests/grid-grouping-actions.js +241 -229
  11. package/dist/cjs/grid/tests/grid-pager.js +104 -92
  12. package/dist/cjs/grid/tests/grid-row-reordering.js +233 -221
  13. package/dist/cjs/grid/tests/grid-rtl-angular.js +106 -94
  14. package/dist/cjs/grid/tests/grid-rtl.js +99 -87
  15. package/dist/cjs/grid/tests/grid-selection-aggregates.js +108 -96
  16. package/dist/cjs/grid/tests/grid-size-sm-comp-sm.js +348 -336
  17. package/dist/cjs/grid/tests/grid-size-sm.js +348 -336
  18. package/dist/cjs/grid/tests/grid-sticky-columns-rtl.js +135 -123
  19. package/dist/cjs/grid/tests/grid.js +124 -112
  20. package/dist/cjs/index.js +3434 -3239
  21. package/dist/cjs/listview/listview.spec.js +22 -10
  22. package/dist/cjs/listview/tests/listview-layout.js +63 -51
  23. package/dist/cjs/listview/tests/listview-loading.js +34 -22
  24. package/dist/cjs/listview/tests/listview.js +49 -37
  25. package/dist/cjs/pager/index.js +41 -1
  26. package/dist/cjs/pager/templates/pager-adaptive-input.js +5806 -0
  27. package/dist/cjs/pager/templates/pager-adaptive.js +5805 -0
  28. package/dist/cjs/pager/templates/pager-input.js +5805 -0
  29. package/dist/cjs/pager/templates/pager-normal.js +5799 -0
  30. package/dist/cjs/pager/tests/pager-adaptive.js +49 -13
  31. package/dist/cjs/pager/tests/pager-sizes.js +34 -21
  32. package/dist/cjs/pager/tests/pager.js +27 -10
  33. package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page-blazor.js +25 -13
  34. package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +31 -19
  35. package/dist/cjs/pdf-viewer/tests/pdf-viewer-search-panel.js +36 -24
  36. package/dist/cjs/pdf-viewer/tests/pdf-viewer.js +25 -13
  37. package/dist/esm/chat/chat.spec.js +161 -2165
  38. package/dist/esm/chat/tests/chat-rtl.js +283 -2287
  39. package/dist/esm/chat/tests/chat-scrollable-deck.js +282 -2286
  40. package/dist/esm/chat/tests/chat.js +296 -2300
  41. package/dist/esm/grid/tests/grid-adaptive-pager.js +18 -6
  42. package/dist/esm/grid/tests/grid-angular.js +130 -118
  43. package/dist/esm/grid/tests/grid-column-reordering-actions.js +232 -220
  44. package/dist/esm/grid/tests/grid-column-reordering.js +235 -223
  45. package/dist/esm/grid/tests/grid-column-resizing-actions.js +268 -256
  46. package/dist/esm/grid/tests/grid-grouping-actions.js +210 -198
  47. package/dist/esm/grid/tests/grid-pager.js +82 -70
  48. package/dist/esm/grid/tests/grid-row-reordering.js +206 -194
  49. package/dist/esm/grid/tests/grid-rtl-angular.js +88 -76
  50. package/dist/esm/grid/tests/grid-rtl.js +84 -72
  51. package/dist/esm/grid/tests/grid-selection-aggregates.js +80 -68
  52. package/dist/esm/grid/tests/grid-size-sm-comp-sm.js +289 -277
  53. package/dist/esm/grid/tests/grid-size-sm.js +289 -277
  54. package/dist/esm/grid/tests/grid-sticky-columns-rtl.js +124 -112
  55. package/dist/esm/grid/tests/grid.js +104 -92
  56. package/dist/esm/index.js +3434 -3239
  57. package/dist/esm/listview/listview.spec.js +20 -8
  58. package/dist/esm/listview/tests/listview-layout.js +49 -37
  59. package/dist/esm/listview/tests/listview-loading.js +29 -17
  60. package/dist/esm/listview/tests/listview.js +39 -27
  61. package/dist/esm/pager/index.js +41 -1
  62. package/dist/esm/pager/templates/pager-adaptive-input.js +5790 -0
  63. package/dist/esm/pager/templates/pager-adaptive.js +5789 -0
  64. package/dist/esm/pager/templates/pager-input.js +5789 -0
  65. package/dist/esm/pager/templates/pager-normal.js +5783 -0
  66. package/dist/esm/pager/tests/pager-adaptive.js +47 -11
  67. package/dist/esm/pager/tests/pager-sizes.js +34 -21
  68. package/dist/esm/pager/tests/pager.js +27 -10
  69. package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page-blazor.js +23 -11
  70. package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +27 -15
  71. package/dist/esm/pdf-viewer/tests/pdf-viewer-search-panel.js +30 -18
  72. package/dist/esm/pdf-viewer/tests/pdf-viewer.js +23 -11
  73. package/dist/types/floating-label/floating-label.spec.d.ts +6 -2
  74. package/dist/types/index.d.ts +1 -0
  75. package/dist/types/pager/index.d.ts +4 -0
  76. package/dist/types/pager/templates/pager-adaptive-input.d.ts +1 -0
  77. package/dist/types/pager/templates/pager-adaptive.d.ts +1 -0
  78. package/dist/types/pager/templates/pager-input.d.ts +1 -0
  79. package/dist/types/pager/templates/pager-normal.d.ts +1 -0
  80. package/package.json +2 -2
  81. package/src/chat/chat.spec.tsx +13 -14
  82. package/src/floating-label/floating-label.spec.tsx +7 -2
  83. package/src/index.ts +1 -0
  84. package/src/pager/index.tsx +4 -0
  85. package/src/pager/templates/pager-adaptive-input.tsx +9 -0
  86. package/src/pager/templates/pager-adaptive.tsx +8 -0
  87. package/src/pager/templates/pager-input.tsx +8 -0
  88. package/src/pager/templates/pager-normal.tsx +3 -0
  89. package/src/pager/tests/pager-adaptive.tsx +7 -7
  90. package/src/pager/tests/pager-sizes.tsx +9 -22
  91. package/src/pager/tests/pager.tsx +21 -19
@@ -4593,67 +4593,10 @@ var CardDeck = (props) => {
4593
4593
  );
4594
4594
  };
4595
4595
 
4596
- // src/button-group/button-group.spec.tsx
4597
- var import_jsx_runtime17 = require("react/jsx-runtime");
4598
- var BUTTONGROUP_CLASSNAME = `k-button-group`;
4599
- var states7 = [
4600
- States.disabled
4601
- ];
4602
- var options6 = {
4603
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
4604
- };
4605
- var defaultProps6 = {
4606
- fillMode: FillMode.solid
4607
- };
4608
- var ButtonGroup = (props) => {
4609
- const {
4610
- fillMode = defaultProps6.fillMode,
4611
- disabled,
4612
- stretched,
4613
- ...other
4614
- } = props;
4615
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4616
- "div",
4617
- {
4618
- ...other,
4619
- className: classNames(
4620
- props.className,
4621
- BUTTONGROUP_CLASSNAME,
4622
- optionClassNames(BUTTONGROUP_CLASSNAME, {
4623
- fillMode
4624
- }),
4625
- stateClassNames(BUTTONGROUP_CLASSNAME, {
4626
- disabled
4627
- }),
4628
- {
4629
- [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
4630
- }
4631
- ),
4632
- children: props.children
4633
- }
4634
- );
4635
- };
4636
- ButtonGroup.states = states7;
4637
- ButtonGroup.options = options6;
4638
- ButtonGroup.className = BUTTONGROUP_CLASSNAME;
4639
- ButtonGroup.defaultProps = defaultProps6;
4640
-
4641
- // src/button-group/templates/icon-button-group.tsx
4642
- var import_jsx_runtime18 = require("react/jsx-runtime");
4643
-
4644
- // src/button-group/templates/icon-text-button-group.tsx
4645
- var import_jsx_runtime19 = require("react/jsx-runtime");
4646
-
4647
- // src/button-group/templates/text-button-group.tsx
4648
- var import_jsx_runtime20 = require("react/jsx-runtime");
4649
-
4650
- // src/button-group/templates/mixed-button-group.tsx
4651
- var import_jsx_runtime21 = require("react/jsx-runtime");
4652
-
4653
4596
  // src/input/input.spec.tsx
4654
- var import_jsx_runtime22 = require("react/jsx-runtime");
4597
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4655
4598
  var INPUT_CLASSNAME = `k-input`;
4656
- var states8 = [
4599
+ var states7 = [
4657
4600
  States.hover,
4658
4601
  States.focus,
4659
4602
  States.valid,
@@ -4663,12 +4606,12 @@ var states8 = [
4663
4606
  States.loading,
4664
4607
  States.readonly
4665
4608
  ];
4666
- var options7 = {
4609
+ var options6 = {
4667
4610
  size: [Size.small, Size.medium, Size.large],
4668
4611
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4669
4612
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4670
4613
  };
4671
- var defaultProps7 = {
4614
+ var defaultProps6 = {
4672
4615
  size: Size.medium,
4673
4616
  rounded: Size.medium,
4674
4617
  fillMode: FillMode.solid
@@ -4682,12 +4625,12 @@ var Input = (props) => {
4682
4625
  valid,
4683
4626
  loading,
4684
4627
  readonly,
4685
- size = defaultProps7.size,
4686
- rounded = defaultProps7.rounded,
4687
- fillMode = defaultProps7.fillMode,
4628
+ size = defaultProps6.size,
4629
+ rounded = defaultProps6.rounded,
4630
+ fillMode = defaultProps6.fillMode,
4688
4631
  ...other
4689
4632
  } = props;
4690
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4633
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4691
4634
  "span",
4692
4635
  {
4693
4636
  ...other,
@@ -4700,13 +4643,13 @@ var Input = (props) => {
4700
4643
  }
4701
4644
  );
4702
4645
  };
4703
- Input.states = states8;
4704
- Input.options = options7;
4646
+ Input.states = states7;
4647
+ Input.options = options6;
4705
4648
  Input.className = INPUT_CLASSNAME;
4706
- Input.defaultProps = defaultProps7;
4649
+ Input.defaultProps = defaultProps6;
4707
4650
 
4708
4651
  // src/input/picker.spec.tsx
4709
- var import_jsx_runtime23 = require("react/jsx-runtime");
4652
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4710
4653
  var PICKER_CLASSNAME = `k-picker`;
4711
4654
  var pickerStates = [
4712
4655
  States.hover,
@@ -4722,2188 +4665,241 @@ var pickerOptions = {
4722
4665
  size: [Size.small, Size.medium, Size.large],
4723
4666
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4724
4667
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4725
- };
4726
- var defaultProps8 = {
4727
- size: Size.medium,
4728
- rounded: Roundness.medium,
4729
- fillMode: FillMode.solid
4730
- };
4731
- var Picker = (props) => {
4732
- const {
4733
- hover,
4734
- focus,
4735
- disabled,
4736
- invalid,
4737
- valid,
4738
- loading,
4739
- readonly,
4740
- size = defaultProps8.size,
4741
- rounded = defaultProps8.rounded,
4742
- fillMode = defaultProps8.fillMode,
4743
- ...other
4744
- } = props;
4745
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4746
- "span",
4747
- {
4748
- ...other,
4749
- className: classNames(
4750
- props.className,
4751
- PICKER_CLASSNAME,
4752
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4753
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4754
- ),
4755
- children: props.children
4756
- }
4757
- );
4758
- };
4759
- Picker.states = pickerStates;
4760
- Picker.options = pickerOptions;
4761
- Picker.className = PICKER_CLASSNAME;
4762
- Picker.defaultProps = defaultProps8;
4763
-
4764
- // src/input/input-clear-value.tsx
4765
- var import_jsx_runtime24 = require("react/jsx-runtime");
4766
- var className = `k-clear-value`;
4767
- var states9 = [
4768
- States.disabled,
4769
- States.loading,
4770
- States.readonly
4771
- ];
4772
- var options8 = {};
4773
- var InputClearValue = (props) => {
4774
- const {
4775
- disabled,
4776
- loading,
4777
- readonly,
4778
- value
4779
- } = props;
4780
- if (disabled || readonly || loading || !value) {
4781
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {});
4782
- }
4783
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { icon: "x" }) });
4784
- };
4785
- InputClearValue.states = states9;
4786
- InputClearValue.options = options8;
4787
- InputClearValue.className = className;
4788
-
4789
- // src/input/input-inner-input.tsx
4790
- var import_jsx_runtime25 = require("react/jsx-runtime");
4791
- var className2 = `k-input-inner`;
4792
- var states10 = [];
4793
- var options9 = {};
4794
- var defaultProps9 = {
4795
- type: "text",
4796
- autocomplete: "off",
4797
- value: "",
4798
- placeholder: ""
4799
- };
4800
- var InputInnerInput = (props) => {
4801
- const {
4802
- value = defaultProps9.value,
4803
- type = defaultProps9.type,
4804
- placeholder = defaultProps9.placeholder,
4805
- autocomplete = defaultProps9.autocomplete,
4806
- ...other
4807
- } = props;
4808
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4809
- "input",
4810
- {
4811
- ...other,
4812
- type,
4813
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4814
- placeholder,
4815
- autoComplete: autocomplete,
4816
- defaultValue: value
4817
- }
4818
- );
4819
- };
4820
- InputInnerInput.states = states10;
4821
- InputInnerInput.options = options9;
4822
- InputInnerInput.className = className2;
4823
-
4824
- // src/input/input-inner-span.tsx
4825
- var import_jsx_runtime26 = require("react/jsx-runtime");
4826
- var className3 = `k-input-inner`;
4827
- var states11 = [];
4828
- var options10 = {};
4829
- var InputInnerSpan = (props) => {
4830
- const {
4831
- value,
4832
- placeholder,
4833
- showValue,
4834
- valueIcon,
4835
- valueIconName,
4836
- ...other
4837
- } = props;
4838
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4839
- "span",
4840
- {
4841
- ...other,
4842
- className: classNames(props.className, className3, optionClassNames(className3, props)),
4843
- children: [
4844
- valueIcon,
4845
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4846
- showValue && !value && placeholder,
4847
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-input-value-text", children: value })
4848
- ]
4849
- }
4850
- );
4851
- };
4852
- InputInnerSpan.states = states11;
4853
- InputInnerSpan.options = options10;
4854
- InputInnerSpan.className = className3;
4855
-
4856
- // src/input/input-inner-textarea.tsx
4857
- var import_jsx_runtime27 = require("react/jsx-runtime");
4858
- var defaultProps10 = {
4859
- value: "",
4860
- placeholder: ""
4861
- };
4862
- var className4 = `k-input-inner`;
4863
- var states12 = [];
4864
- var options11 = {};
4865
- var InputInnerTextarea = (props) => {
4866
- const {
4867
- value = defaultProps10.value,
4868
- placeholder = defaultProps10.placeholder,
4869
- rows,
4870
- ...other
4871
- } = props;
4872
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4873
- "textarea",
4874
- {
4875
- ...other,
4876
- className: classNames(props.className, className4, optionClassNames(className4, props)),
4877
- placeholder,
4878
- rows,
4879
- children: value
4880
- }
4881
- );
4882
- };
4883
- InputInnerTextarea.states = states12;
4884
- InputInnerTextarea.options = options11;
4885
- InputInnerTextarea.className = className4;
4886
-
4887
- // src/input/input-loading-icon.tsx
4888
- var import_jsx_runtime28 = require("react/jsx-runtime");
4889
- var className5 = `k-input-loading-icon`;
4890
- var states13 = [
4891
- States.disabled,
4892
- States.loading
4893
- ];
4894
- var InputLoadingIcon = (props) => {
4895
- const {
4896
- disabled,
4897
- loading
4898
- } = props;
4899
- if (disabled || !loading) {
4900
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, {});
4901
- }
4902
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4903
- };
4904
-
4905
- // src/input/input-validation-icon.tsx
4906
- var import_jsx_runtime29 = require("react/jsx-runtime");
4907
- var className6 = `k-input-validation-icon`;
4908
- var states14 = [
4909
- States.valid,
4910
- States.invalid,
4911
- States.disabled,
4912
- States.loading
4913
- ];
4914
- var options12 = {};
4915
- var InputValidationIcon = (props) => {
4916
- const {
4917
- valid,
4918
- invalid,
4919
- disabled,
4920
- loading
4921
- } = props;
4922
- const iconName = invalid ? "exclamation-circle" : "check";
4923
- const renderValidationIcon = Boolean(valid || invalid);
4924
- if (disabled || loading || !renderValidationIcon) {
4925
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, {});
4926
- }
4927
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { className: classNames(className6), icon: iconName });
4928
- };
4929
- InputValidationIcon.states = states14;
4930
- InputValidationIcon.options = options12;
4931
- InputValidationIcon.className = className6;
4932
-
4933
- // src/input/input-prefix.tsx
4934
- var import_jsx_runtime30 = require("react/jsx-runtime");
4935
- var className7 = `k-input-prefix`;
4936
- var InputPrefix = (props) => {
4937
- if (!props.children) {
4938
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, {});
4939
- }
4940
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4941
- };
4942
-
4943
- // src/input/input-suffix.tsx
4944
- var import_jsx_runtime31 = require("react/jsx-runtime");
4945
- var className8 = `k-input-suffix`;
4946
- var InputSuffix = (props) => {
4947
- if (!props.children) {
4948
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, {});
4949
- }
4950
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4951
- };
4952
-
4953
- // src/input/input-separator.tsx
4954
- var import_jsx_runtime32 = require("react/jsx-runtime");
4955
-
4956
- // src/color-preview/color-preview.tsx
4957
- var import_jsx_runtime33 = require("react/jsx-runtime");
4958
- var COLORPREVIEW_CLASSNAME = `k-color-preview`;
4959
- var states15 = [];
4960
- var options13 = {};
4961
- var ColorPreview = (props) => {
4962
- const {
4963
- color,
4964
- iconName,
4965
- ...other
4966
- } = props;
4967
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4968
- "span",
4969
- {
4970
- ...other,
4971
- className: classNames(
4972
- props.className,
4973
- COLORPREVIEW_CLASSNAME,
4974
- {
4975
- "k-icon-color-preview": iconName,
4976
- "k-no-color": !color
4977
- }
4978
- ),
4979
- children: [
4980
- iconName && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { icon: iconName, className: "k-color-preview-icon" }),
4981
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4982
- "span",
4983
- {
4984
- className: "k-color-preview-mask",
4985
- style: { backgroundColor: color }
4986
- }
4987
- )
4988
- ]
4989
- }
4990
- );
4991
- };
4992
- ColorPreview.states = states15;
4993
- ColorPreview.options = options13;
4994
- ColorPreview.className = COLORPREVIEW_CLASSNAME;
4995
-
4996
- // src/colorpicker/colorpicker.spec.tsx
4997
- var import_jsx_runtime34 = require("react/jsx-runtime");
4998
- var COLORPICKER_CLASSNAME = `k-colorpicker`;
4999
- var states16 = [
5000
- States.hover,
5001
- States.focus,
5002
- States.valid,
5003
- States.invalid,
5004
- States.required,
5005
- States.disabled
5006
- ];
5007
- var options14 = {
5008
- size: [Size.small, Size.medium, Size.large],
5009
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5010
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5011
- };
5012
- var defaultProps11 = {
5013
- arrowIconName: "caret-alt-down",
5014
- size: Picker.defaultProps.size,
5015
- rounded: Picker.defaultProps.rounded,
5016
- fillMode: Picker.defaultProps.fillMode
5017
- };
5018
- var ColorPicker = (props) => {
5019
- const {
5020
- prefix,
5021
- suffix,
5022
- value,
5023
- placeholder,
5024
- size,
5025
- rounded,
5026
- fillMode,
5027
- hover,
5028
- focus,
5029
- valid,
5030
- invalid,
5031
- required,
5032
- disabled,
5033
- valueIconName,
5034
- arrowIconName = defaultProps11.arrowIconName,
5035
- ...other
5036
- } = props;
5037
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
5038
- Picker,
5039
- {
5040
- ...other,
5041
- size,
5042
- rounded,
5043
- fillMode,
5044
- hover,
5045
- focus,
5046
- valid,
5047
- invalid,
5048
- required,
5049
- disabled,
5050
- className: classNames(
5051
- props.className,
5052
- COLORPICKER_CLASSNAME,
5053
- "k-icon-picker"
5054
- ),
5055
- children: [
5056
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InputPrefix, { children: prefix }),
5057
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5058
- InputInnerSpan,
5059
- {
5060
- placeholder,
5061
- value,
5062
- showValue: false,
5063
- valueIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5064
- ColorPreview,
5065
- {
5066
- className: "k-value-icon",
5067
- color: value,
5068
- iconName: valueIconName
5069
- }
5070
- ),
5071
- valueIconName
5072
- }
5073
- ),
5074
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InputSuffix, { children: suffix }),
5075
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5076
- Button,
5077
- {
5078
- className: "k-input-button",
5079
- icon: arrowIconName,
5080
- rounded: null,
5081
- size,
5082
- fillMode
5083
- }
5084
- )
5085
- ]
5086
- }
5087
- );
5088
- };
5089
- ColorPicker.states = states16;
5090
- ColorPicker.options = options14;
5091
- ColorPicker.className = COLORPICKER_CLASSNAME;
5092
- ColorPicker.defaultProps = defaultProps11;
5093
-
5094
- // src/animation-container/animation-container.spec.tsx
5095
- var import_jsx_runtime35 = require("react/jsx-runtime");
5096
- var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
5097
- var states17 = [];
5098
- var options15 = {};
5099
- var defaultProps12 = {
5100
- positionMode: "absolute"
5101
- };
5102
- var AnimationContainer = (props) => {
5103
- const {
5104
- positionMode,
5105
- animationStyle,
5106
- offset,
5107
- ...other
5108
- } = props;
5109
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5110
- "div",
5111
- {
5112
- ...other,
5113
- style: { ...offset, ...props.style },
5114
- className: classNames(
5115
- ANIMATION_CONTAINER_CLASSNAME,
5116
- "k-animation-container-shown",
5117
- {
5118
- ["k-animation-container-fixed"]: positionMode === "fixed"
5119
- }
5120
- ),
5121
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
5122
- }
5123
- );
5124
- };
5125
- AnimationContainer.states = states17;
5126
- AnimationContainer.options = options15;
5127
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5128
- AnimationContainer.defaultProps = defaultProps12;
5129
-
5130
- // src/popup/popup.spec.tsx
5131
- var import_jsx_runtime36 = require("react/jsx-runtime");
5132
- var POPUP_CLASSNAME = `k-popup`;
5133
- var states18 = [];
5134
- var options16 = {};
5135
- var defaultProps13 = {
5136
- positionMode: "absolute"
5137
- };
5138
- var Popup = (props) => {
5139
- const {
5140
- offset,
5141
- positionMode,
5142
- ...other
5143
- } = props;
5144
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5145
- AnimationContainer,
5146
- {
5147
- positionMode,
5148
- offset,
5149
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5150
- }
5151
- );
5152
- };
5153
- Popup.states = states18;
5154
- Popup.options = options16;
5155
- Popup.className = POPUP_CLASSNAME;
5156
- Popup.defaultProps = defaultProps13;
5157
-
5158
- // src/action-sheet/action-sheet.spec.tsx
5159
- var import_jsx_runtime37 = require("react/jsx-runtime");
5160
- var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
5161
- var states19 = [];
5162
- var options17 = {};
5163
- var defaultProps14 = {
5164
- side: "bottom",
5165
- fullscreen: false,
5166
- adaptive: false,
5167
- overlay: true
5168
- };
5169
- var ActionSheet = (props) => {
5170
- const {
5171
- children,
5172
- title,
5173
- header,
5174
- footer,
5175
- actions,
5176
- side = defaultProps14.side,
5177
- fullscreen = defaultProps14.fullscreen,
5178
- adaptive = defaultProps14.adaptive,
5179
- overlay = defaultProps14.overlay,
5180
- ...other
5181
- } = props;
5182
- const _ActionSheetHeader = title ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
5183
- const _ActionSheetFooter = actions ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
5184
- const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
5185
- switch (child.type) {
5186
- case ActionSheetHeader:
5187
- case ActionSheetFooter:
5188
- return false;
5189
- default:
5190
- return true;
5191
- }
5192
- return true;
5193
- }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_jsx_runtime37.Fragment, {});
5194
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "k-actionsheet-container", children: [
5195
- overlay && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "k-overlay" }),
5196
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5197
- AnimationContainer,
5198
- {
5199
- animationStyle: {
5200
- [`${fullscreen === true ? "top" : side}`]: 0,
5201
- [`${fullscreen === true ? "width" : null}`]: "100%",
5202
- [`${fullscreen === true ? "height" : null}`]: "100%",
5203
- [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
5204
- [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
5205
- },
5206
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5207
- "div",
5208
- {
5209
- ...other,
5210
- className: classNames(
5211
- props.className,
5212
- ACTIONSHEET_CLASSNAME,
5213
- {
5214
- [`k-actionsheet-${side}`]: fullscreen === false,
5215
- "k-actionsheet-fullscreen": fullscreen === true,
5216
- "k-adaptive-actionsheet": adaptive
5217
- }
5218
- ),
5219
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
5220
- _ActionSheetHeader,
5221
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: classNames(
5222
- "k-actionsheet-content",
5223
- {
5224
- "!k-overflow-hidden": adaptive
5225
- }
5226
- ), children: _ActionSheetContent }),
5227
- _ActionSheetFooter
5228
- ] })
5229
- }
5230
- )
5231
- }
5232
- )
5233
- ] });
5234
- };
5235
- ActionSheet.states = states19;
5236
- ActionSheet.options = options17;
5237
- ActionSheet.className = ACTIONSHEET_CLASSNAME;
5238
- ActionSheet.defaultProps = defaultProps14;
5239
-
5240
- // src/searchbox/searchbox.spec.tsx
5241
- var import_jsx_runtime38 = require("react/jsx-runtime");
5242
- var SEARCHBOX_CLASSNAME = `k-searchbox`;
5243
- var states20 = [
5244
- States.hover,
5245
- States.focus,
5246
- States.valid,
5247
- States.invalid,
5248
- States.required,
5249
- States.disabled,
5250
- States.loading
5251
- ];
5252
- var options18 = {
5253
- size: [Size.small, Size.medium, Size.large],
5254
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5255
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5256
- };
5257
- var defaultProps15 = {
5258
- showIcon: true,
5259
- icon: "search",
5260
- size: Input.defaultProps.size,
5261
- rounded: Input.defaultProps.rounded,
5262
- fillMode: Input.defaultProps.fillMode
5263
- };
5264
- var Searchbox = (props) => {
5265
- const {
5266
- value,
5267
- placeholder,
5268
- size,
5269
- rounded,
5270
- fillMode,
5271
- hover,
5272
- focus,
5273
- valid,
5274
- invalid,
5275
- required,
5276
- loading,
5277
- disabled,
5278
- showIcon = defaultProps15.showIcon,
5279
- icon = defaultProps15.icon,
5280
- ...other
5281
- } = props;
5282
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
5283
- Input,
5284
- {
5285
- ...other,
5286
- size,
5287
- rounded,
5288
- fillMode,
5289
- hover,
5290
- focus,
5291
- valid,
5292
- invalid,
5293
- required,
5294
- loading,
5295
- disabled,
5296
- className: classNames(props.className, SEARCHBOX_CLASSNAME),
5297
- children: [
5298
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { className: "k-input-icon", icon }),
5299
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputInnerInput, { placeholder, value }),
5300
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputLoadingIcon, { ...props }),
5301
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputValidationIcon, { ...props }),
5302
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputClearValue, { ...props })
5303
- ]
5304
- }
5305
- );
5306
- };
5307
- Searchbox.states = states20;
5308
- Searchbox.options = options18;
5309
- Searchbox.className = SEARCHBOX_CLASSNAME;
5310
- Searchbox.defaultProps = defaultProps15;
5311
-
5312
- // src/searchbox/templates/searchbox-normal.tsx
5313
- var import_jsx_runtime39 = require("react/jsx-runtime");
5314
-
5315
- // src/action-sheet/actionsheet-header.tsx
5316
- var import_jsx_runtime40 = require("react/jsx-runtime");
5317
- var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5318
- var ActionSheetHeader = (props) => {
5319
- const {
5320
- title,
5321
- subTitle,
5322
- actions,
5323
- filter,
5324
- ...other
5325
- } = props;
5326
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5327
- "div",
5328
- {
5329
- ...other,
5330
- className: classNames(
5331
- props.className,
5332
- ACTIONSHEETHEADER_CLASSNAME
5333
- ),
5334
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
5335
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5336
- !props.children && (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "k-actionsheet-title", children: [
5337
- title !== "" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-text-center", children: title }),
5338
- subTitle !== "" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5339
- ] }) }),
5340
- props.children && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-actionsheet-title", children: props.children }),
5341
- actions && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5342
- ] }),
5343
- filter && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5344
- ] })
5345
- }
5346
- );
5347
- };
5348
-
5349
- // src/action-buttons/action-buttons.spec.tsx
5350
- var import_jsx_runtime41 = require("react/jsx-runtime");
5351
- var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5352
- var states21 = [];
5353
- var options19 = {};
5354
- var defaultProps16 = {
5355
- alignment: "start",
5356
- orientation: "horizontal"
5357
- };
5358
- var ActionButtons = (props) => {
5359
- const {
5360
- alignment = defaultProps16.alignment,
5361
- orientation = defaultProps16.orientation,
5362
- ...other
5363
- } = props;
5364
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
5365
- "div",
5366
- {
5367
- ...other,
5368
- className: classNames(
5369
- ACTIONBUTTONS_CLASSNAME,
5370
- {
5371
- [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5372
- [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5373
- },
5374
- props.className
5375
- ),
5376
- children: props.children
5377
- }
5378
- );
5379
- };
5380
- ActionButtons.states = states21;
5381
- ActionButtons.options = options19;
5382
- ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5383
- ActionButtons.defaultProps = defaultProps16;
5384
- var action_buttons_spec_default = ActionButtons;
5385
-
5386
- // src/action-sheet/actionsheet-footer.tsx
5387
- var import_jsx_runtime42 = require("react/jsx-runtime");
5388
- var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5389
- var ActionSheetFooter = (props) => {
5390
- const {
5391
- actions,
5392
- ...other
5393
- } = props;
5394
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
5395
- action_buttons_spec_default,
5396
- {
5397
- ...other,
5398
- className: classNames(
5399
- props.className,
5400
- ACTIONSHEETFOOTER_CLASSNAME
5401
- ),
5402
- alignment: "stretched",
5403
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
5404
- actions && actions.map((action, index) => {
5405
- if (action === "|") {
5406
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "k-separator" }, index);
5407
- }
5408
- if (action === " ") {
5409
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "k-spacer" }, index);
5410
- }
5411
- const importantFlag = action.startsWith("!");
5412
- const actionName = importantFlag ? action.substring(1) : action;
5413
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5414
- }),
5415
- !actions && props.children
5416
- ] })
5417
- }
5418
- );
5419
- };
5420
-
5421
- // src/action-sheet/actionsheet-items.tsx
5422
- var import_jsx_runtime43 = require("react/jsx-runtime");
5423
- var ActionSheetItems = (props) => {
5424
- const {
5425
- ...other
5426
- } = props;
5427
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5428
- "div",
5429
- {
5430
- ...other,
5431
- className: classNames(
5432
- props.className,
5433
- "k-list-ul"
5434
- ),
5435
- children: props.children
5436
- }
5437
- );
5438
- };
5439
-
5440
- // src/action-sheet/actionsheet-item.tsx
5441
- var import_jsx_runtime44 = require("react/jsx-runtime");
5442
- var states22 = [
5443
- States.hover,
5444
- States.focus,
5445
- States.selected,
5446
- States.disabled
5447
- ];
5448
-
5449
- // src/nodata/nodata.tsx
5450
- var import_jsx_runtime45 = require("react/jsx-runtime");
5451
- var className9 = `k-nodata`;
5452
- var NoData = (props) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: classNames(className9, props.className), children: props.children });
5453
-
5454
- // src/list/list.spec.tsx
5455
- var import_jsx_runtime46 = require("react/jsx-runtime");
5456
- var LIST_CLASSNAME = `k-list`;
5457
- var states23 = [];
5458
- var options20 = {
5459
- size: [Size.small, Size.medium, Size.large]
5460
- };
5461
- var defaultProps17 = {
5462
- size: Size.medium
5463
- };
5464
- var List = (props) => {
5465
- const {
5466
- size = defaultProps17.size,
5467
- virtualization,
5468
- children,
5469
- optionLabel,
5470
- ...other
5471
- } = props;
5472
- let listHeader;
5473
- let listGroup;
5474
- let listContent;
5475
- const listChildren = [];
5476
- if (children) {
5477
- children.map((child, index) => {
5478
- if (child.type === ListGroup) {
5479
- if (child.props.root === true) {
5480
- listHeader = child.props.label;
5481
- child.props.children.map((optChild, index2) => {
5482
- listChildren.push(
5483
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5484
- ListItem,
5485
- {
5486
- ...optChild.props
5487
- },
5488
- `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5489
- )
5490
- );
5491
- });
5492
- } else {
5493
- child.props.children.forEach((optChild, index2) => {
5494
- let groupLabel = "";
5495
- if (index2 === 0) {
5496
- groupLabel = child.props.label;
5497
- }
5498
- listChildren.push(
5499
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5500
- ListItem,
5501
- {
5502
- className: index2 === 0 ? "k-first" : "",
5503
- ...optChild.props,
5504
- groupLabel
5505
- },
5506
- `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5507
- )
5508
- );
5509
- });
5510
- }
5511
- listGroup = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5512
- } else if (child.type === ListItem) {
5513
- listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5514
- listContent = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListContent, { virtualization, children: listChildren });
5515
- }
5516
- });
5517
- } else {
5518
- listContent = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NoData, { children: "No data found." });
5519
- }
5520
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5521
- "div",
5522
- {
5523
- ...other,
5524
- className: classNames(
5525
- props.className,
5526
- LIST_CLASSNAME,
5527
- optionClassNames(LIST_CLASSNAME, {
5528
- size
5529
- }),
5530
- {
5531
- ["k-virtual-list"]: virtualization
5532
- }
5533
- ),
5534
- children: [
5535
- optionLabel,
5536
- listGroup,
5537
- listContent
5538
- ]
5539
- }
5540
- );
5541
- };
5542
- List.states = states23;
5543
- List.options = options20;
5544
- List.className = LIST_CLASSNAME;
5545
- List.defaultProps = defaultProps17;
5546
-
5547
- // src/list/list-angular.spec.tsx
5548
- var import_jsx_runtime47 = require("react/jsx-runtime");
5549
- var LISTANGULAR_CLASSNAME = `k-list`;
5550
- var states24 = [];
5551
- var options21 = {
5552
- size: [Size.small, Size.medium, Size.large]
5553
- };
5554
- var defaultProps18 = {
5555
- size: Size.medium
5556
- };
5557
- var ListAngular = (props) => {
5558
- const {
5559
- size = defaultProps18.size,
5560
- virtualization,
5561
- children,
5562
- ...other
5563
- } = props;
5564
- let listHeader;
5565
- let listGroup;
5566
- let listContent;
5567
- const listChildren = [];
5568
- if (children) {
5569
- children.map((child, index) => {
5570
- if (child.type === ListGroup) {
5571
- if (child.props.root === true) {
5572
- listHeader = child.props.label;
5573
- child.props.children.map((optChild, index2) => {
5574
- listChildren.push(
5575
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5576
- ListItem,
5577
- {
5578
- ...optChild.props
5579
- },
5580
- `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5581
- )
5582
- );
5583
- });
5584
- } else {
5585
- listChildren.push(
5586
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5587
- ListGroupItem,
5588
- {
5589
- ...child.props,
5590
- children: child.props.label
5591
- },
5592
- `listChild-${index}`
5593
- )
5594
- );
5595
- child.props.children.map((optChild, index2) => {
5596
- listChildren.push(
5597
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5598
- ListItem,
5599
- {
5600
- ...optChild.props
5601
- },
5602
- `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5603
- )
5604
- );
5605
- });
5606
- }
5607
- listGroup = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5608
- } else if (child.type === ListItem) {
5609
- listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5610
- listContent = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ListContent, { virtualization, children: listChildren });
5611
- }
5612
- });
5613
- } else {
5614
- listContent = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(NoData, { children: "No data found." });
5615
- }
5616
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5617
- "div",
5618
- {
5619
- ...other,
5620
- className: classNames(
5621
- props.className,
5622
- LISTANGULAR_CLASSNAME,
5623
- optionClassNames(LISTANGULAR_CLASSNAME, {
5624
- size
5625
- }),
5626
- {
5627
- ["k-virtual-list"]: virtualization
5628
- }
5629
- ),
5630
- children: [
5631
- listGroup,
5632
- listContent
5633
- ]
5634
- }
5635
- );
5636
- };
5637
- ListAngular.states = states24;
5638
- ListAngular.options = options21;
5639
- ListAngular.className = LISTANGULAR_CLASSNAME;
5640
- ListAngular.defaultProps = defaultProps18;
5641
-
5642
- // src/checkbox/checkbox.spec.tsx
5643
- var import_jsx_runtime48 = require("react/jsx-runtime");
5644
- var CHECKBOX_CLASSNAME = `k-checkbox`;
5645
- var states25 = [
5646
- States.hover,
5647
- States.focus,
5648
- States.valid,
5649
- States.invalid,
5650
- States.required,
5651
- States.disabled,
5652
- States.checked,
5653
- States.indeterminate
5654
- ];
5655
- var options22 = {
5656
- size: [Size.small, Size.medium, Size.large],
5657
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5658
- };
5659
- var defaultProps19 = {
5660
- size: Size.medium,
5661
- rounded: Roundness.medium
5662
- };
5663
- var Checkbox = (props) => {
5664
- const {
5665
- id,
5666
- checked,
5667
- indeterminate,
5668
- hover,
5669
- focus,
5670
- disabled,
5671
- invalid,
5672
- valid,
5673
- required,
5674
- size = defaultProps19.size,
5675
- rounded = defaultProps19.rounded,
5676
- ...other
5677
- } = props;
5678
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5679
- "input",
5680
- {
5681
- ...other,
5682
- id,
5683
- type: "checkbox",
5684
- checked,
5685
- required,
5686
- className: classNames(
5687
- props.className,
5688
- CHECKBOX_CLASSNAME,
5689
- optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5690
- stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5691
- )
5692
- }
5693
- ) });
5694
- };
5695
- Checkbox.states = states25;
5696
- Checkbox.options = options22;
5697
- Checkbox.className = CHECKBOX_CLASSNAME;
5698
- Checkbox.defaultProps = defaultProps19;
5699
-
5700
- // src/checkbox/templates/checkbox-label.tsx
5701
- var import_jsx_runtime49 = require("react/jsx-runtime");
5702
-
5703
- // src/checkbox/templates/checkbox-normal.tsx
5704
- var import_jsx_runtime50 = require("react/jsx-runtime");
5705
-
5706
- // src/list/list-item.spec.tsx
5707
- var import_jsx_runtime51 = require("react/jsx-runtime");
5708
- var LISTITEM_CLASSNAME = `k-list-item`;
5709
- var states26 = [
5710
- States.hover,
5711
- States.focus,
5712
- States.selected,
5713
- States.disabled
5714
- ];
5715
- var options23 = {};
5716
- var defaultProps20 = {};
5717
- var ListItem = (props) => {
5718
- const {
5719
- text,
5720
- groupLabel,
5721
- showIcon,
5722
- iconName,
5723
- showCheckbox,
5724
- checked,
5725
- hover,
5726
- focus,
5727
- selected,
5728
- disabled,
5729
- ...other
5730
- } = props;
5731
- const textOrChildren = text ? text : props.children;
5732
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5733
- "li",
5734
- {
5735
- ...other,
5736
- className: classNames(
5737
- props.className,
5738
- LISTITEM_CLASSNAME,
5739
- stateClassNames(LISTITEM_CLASSNAME, {
5740
- hover,
5741
- focus,
5742
- disabled,
5743
- selected
5744
- })
5745
- ),
5746
- children: [
5747
- showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Checkbox, { checked }),
5748
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: iconName }),
5749
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "k-list-item-text", children: textOrChildren }),
5750
- groupLabel && groupLabel !== "" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "k-list-item-group-label", children: groupLabel })
5751
- ]
5752
- }
5753
- );
5754
- };
5755
- ListItem.states = states26;
5756
- ListItem.options = options23;
5757
- ListItem.className = LISTITEM_CLASSNAME;
5758
- ListItem.defaultProps = defaultProps20;
5759
-
5760
- // src/list/list-content.tsx
5761
- var import_jsx_runtime52 = require("react/jsx-runtime");
5762
- var className10 = `k-list-content`;
5763
- var ListContent = (props) => {
5764
- const {
5765
- virtualization
5766
- } = props;
5767
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: classNames(className10, props.className), children: [
5768
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: classNames("k-list-ul"), children: props.children }),
5769
- virtualization && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "k-height-container", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {}) })
5770
- ] });
5771
- };
5772
-
5773
- // src/list/list-header.tsx
5774
- var import_jsx_runtime53 = require("react/jsx-runtime");
5775
- var className11 = `k-list-group-sticky-header`;
5776
- var ListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "k-list-header-text", children: props.children }) });
5777
-
5778
- // src/list/list-group.tsx
5779
- var import_jsx_runtime54 = require("react/jsx-runtime");
5780
- var ListGroup = (props) => {
5781
- const {
5782
- virtualization,
5783
- label
5784
- } = props;
5785
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
5786
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ListHeader, { children: label }),
5787
- props.children && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ListContent, { virtualization, children: props.children })
5788
- ] });
5789
- };
5790
-
5791
- // src/list/list-group-item.tsx
5792
- var import_jsx_runtime55 = require("react/jsx-runtime");
5793
- var className12 = `k-list-group-item`;
5794
- var ListGroupItem = (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "k-list-item-text", children: props.children }) });
5795
-
5796
- // src/list/list-option-label.tsx
5797
- var import_jsx_runtime56 = require("react/jsx-runtime");
5798
- var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5799
- var states27 = [
5800
- States.hover,
5801
- States.focus,
5802
- States.selected,
5803
- States.disabled
5804
- ];
5805
- var options24 = {};
5806
- var defaultProps21 = {};
5807
- var ListOptionLabel = (props) => {
5808
- const {
5809
- text,
5810
- hover,
5811
- focus,
5812
- selected,
5813
- disabled,
5814
- ...other
5815
- } = props;
5816
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5817
- "div",
5818
- {
5819
- ...other,
5820
- className: classNames(
5821
- LIST_OPTIONLABEL_CLASSNAME,
5822
- stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
5823
- hover,
5824
- focus,
5825
- selected,
5826
- disabled
5827
- })
5828
- ),
5829
- children: text
5830
- }
5831
- );
5832
- };
5833
- ListOptionLabel.states = states27;
5834
- ListOptionLabel.options = options24;
5835
- ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5836
- ListOptionLabel.defaultProps = defaultProps21;
5837
-
5838
- // src/list/templates/list-normal.tsx
5839
- var import_jsx_runtime57 = require("react/jsx-runtime");
5840
-
5841
- // src/list/templates/list-virtualization.tsx
5842
- var import_jsx_runtime58 = require("react/jsx-runtime");
5843
-
5844
- // src/list/templates/list-grouping.tsx
5845
- var import_jsx_runtime59 = require("react/jsx-runtime");
5846
-
5847
- // src/list/templates/list-virualization-grouping.tsx
5848
- var import_jsx_runtime60 = require("react/jsx-runtime");
5849
-
5850
- // src/list/templates/list-virtualization-angular.tsx
5851
- var import_jsx_runtime61 = require("react/jsx-runtime");
5852
-
5853
- // src/list/templates/list-grouping-angular.tsx
5854
- var import_jsx_runtime62 = require("react/jsx-runtime");
5855
-
5856
- // src/list/templates/list-virualization-grouping-angular.tsx
5857
- var import_jsx_runtime63 = require("react/jsx-runtime");
5858
-
5859
- // src/combobox/combobox.spec.tsx
5860
- var import_jsx_runtime64 = require("react/jsx-runtime");
5861
- var COMBOBOX_CLASSNAME = `k-combobox`;
5862
- var states28 = [
5863
- States.hover,
5864
- States.focus,
5865
- States.valid,
5866
- States.invalid,
5867
- States.loading,
5868
- States.required,
5869
- States.disabled,
5870
- States.readonly
5871
- ];
5872
- var defaultProps22 = {
5873
- size: Input.defaultProps.size,
5874
- rounded: Input.defaultProps.rounded,
5875
- fillMode: Input.defaultProps.fillMode
5876
- };
5877
- var options25 = {
5878
- size: [Size.small, Size.medium, Size.large],
5879
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5880
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5881
- };
5882
- var Combobox = (props) => {
5883
- const {
5884
- prefix,
5885
- suffix,
5886
- value,
5887
- placeholder,
5888
- size,
5889
- rounded,
5890
- fillMode,
5891
- hover,
5892
- focus,
5893
- valid,
5894
- invalid,
5895
- required,
5896
- loading,
5897
- disabled,
5898
- popup,
5899
- opened,
5900
- readonly,
5901
- adaptive,
5902
- adaptiveSettings,
5903
- ...other
5904
- } = props;
5905
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
5906
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5907
- Input,
5908
- {
5909
- ...other,
5910
- size,
5911
- rounded,
5912
- fillMode,
5913
- hover,
5914
- focus,
5915
- valid,
5916
- invalid,
5917
- required,
5918
- loading,
5919
- disabled,
5920
- readonly,
5921
- className: classNames(props.className, COMBOBOX_CLASSNAME),
5922
- children: [
5923
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(InputPrefix, { children: prefix }),
5924
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(InputInnerInput, { placeholder, value }),
5925
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5926
- InputValidationIcon,
5927
- {
5928
- valid,
5929
- invalid,
5930
- loading,
5931
- disabled
5932
- }
5933
- ),
5934
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5935
- InputLoadingIcon,
5936
- {
5937
- loading,
5938
- disabled
5939
- }
5940
- ),
5941
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5942
- InputClearValue,
5943
- {
5944
- loading,
5945
- disabled,
5946
- readonly,
5947
- value
5948
- }
5949
- ),
5950
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(InputSuffix, { children: suffix }),
5951
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5952
- Button,
5953
- {
5954
- className: "k-input-button",
5955
- icon: "caret-alt-down",
5956
- rounded: null,
5957
- size,
5958
- fillMode
5959
- }
5960
- )
5961
- ]
5962
- }
5963
- ),
5964
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
5965
- adaptive && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5966
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5967
- ActionSheetHeader,
5968
- {
5969
- actions: ["x"],
5970
- filter: true,
5971
- title: "Select Item"
5972
- }
5973
- ),
5974
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "k-list-container", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(List, { size: "large", children: [
5975
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ListItem, { text: "List item" }),
5976
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ListItem, { text: "List item" }),
5977
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ListItem, { text: "List item" })
5978
- ] }) })
5979
- ] })
5980
- ] });
5981
- };
5982
- Combobox.states = states28;
5983
- Combobox.options = options25;
5984
- Combobox.className = COMBOBOX_CLASSNAME;
5985
- Combobox.defaultProps = defaultProps22;
5986
-
5987
- // src/combobox/templates/combobox-normal.tsx
5988
- var import_jsx_runtime65 = require("react/jsx-runtime");
5989
-
5990
- // src/combobox/templates/combobox-popup.tsx
5991
- var import_jsx_runtime66 = require("react/jsx-runtime");
5992
-
5993
- // src/combobox/templates/combobox-grouping.tsx
5994
- var import_jsx_runtime67 = require("react/jsx-runtime");
5995
-
5996
- // src/combobox/templates/combobox-adaptive.tsx
5997
- var import_jsx_runtime68 = require("react/jsx-runtime");
5998
-
5999
- // src/dropdownlist/dropdownlist.spec.tsx
6000
- var import_jsx_runtime69 = require("react/jsx-runtime");
6001
- var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
6002
- var states29 = [
6003
- States.hover,
6004
- States.focus,
6005
- States.valid,
6006
- States.invalid,
6007
- States.required,
6008
- States.disabled,
6009
- States.loading,
6010
- States.readonly
6011
- ];
6012
- var options26 = {
6013
- size: [Size.small, Size.medium, Size.large],
6014
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6015
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6016
- };
6017
- var defaultProps23 = {
6018
- showValue: true,
6019
- arrowIconName: "caret-alt-down",
6020
- size: Size.medium,
6021
- rounded: Roundness.medium,
6022
- fillMode: FillMode.solid
6023
- };
6024
- var DropdownList = (props) => {
6025
- const {
6026
- valueIconName,
6027
- arrowIconName = defaultProps23.arrowIconName,
6028
- prefix,
6029
- suffix,
6030
- value,
6031
- placeholder,
6032
- size,
6033
- rounded,
6034
- fillMode,
6035
- hover,
6036
- focus,
6037
- valid,
6038
- invalid,
6039
- required,
6040
- loading,
6041
- disabled,
6042
- readonly,
6043
- showValue = defaultProps23.showValue,
6044
- popup,
6045
- opened,
6046
- ...other
6047
- } = props;
6048
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
6049
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6050
- Picker,
6051
- {
6052
- ...other,
6053
- size,
6054
- rounded,
6055
- fillMode,
6056
- hover,
6057
- focus,
6058
- valid,
6059
- invalid,
6060
- required,
6061
- loading,
6062
- disabled,
6063
- readonly,
6064
- className: classNames(
6065
- props.className,
6066
- DROPDOWNLIST_CLASSNAME,
6067
- {
6068
- "k-icon-picker": !showValue && valueIconName
6069
- }
6070
- ),
6071
- children: [
6072
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(InputPrefix, { children: prefix }),
6073
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6074
- InputInnerSpan,
6075
- {
6076
- placeholder,
6077
- value,
6078
- showValue,
6079
- valueIconName
6080
- }
6081
- ),
6082
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6083
- InputValidationIcon,
6084
- {
6085
- valid,
6086
- invalid,
6087
- loading,
6088
- disabled
6089
- }
6090
- ),
6091
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6092
- InputLoadingIcon,
6093
- {
6094
- loading,
6095
- disabled
6096
- }
6097
- ),
6098
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(InputSuffix, { children: suffix }),
6099
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6100
- Button,
6101
- {
6102
- className: "k-input-button",
6103
- icon: arrowIconName,
6104
- rounded: null,
6105
- size: props.size,
6106
- fillMode: props.fillMode
6107
- }
6108
- )
6109
- ]
6110
- }
6111
- ),
6112
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
6113
- ] });
6114
- };
6115
- DropdownList.states = states29;
6116
- DropdownList.options = options26;
6117
- DropdownList.className = DROPDOWNLIST_CLASSNAME;
6118
- DropdownList.defaultProps = defaultProps23;
6119
-
6120
- // src/dropdownlist/templates/dropdownlist-normal.tsx
6121
- var import_jsx_runtime70 = require("react/jsx-runtime");
6122
-
6123
- // src/dropdownlist/templates/dropdownlist-popup.tsx
6124
- var import_jsx_runtime71 = require("react/jsx-runtime");
6125
-
6126
- // src/dropdownlist/templates/dropdownlist-filtering.tsx
6127
- var import_jsx_runtime72 = require("react/jsx-runtime");
6128
-
6129
- // src/dropdownlist/templates/dropdownlist-grouping.tsx
6130
- var import_jsx_runtime73 = require("react/jsx-runtime");
6131
-
6132
- // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
6133
- var import_jsx_runtime74 = require("react/jsx-runtime");
6134
-
6135
- // src/menu-button/menu-button.spec.tsx
6136
- var import_jsx_runtime75 = require("react/jsx-runtime");
6137
- var MENUBUTTON_CLASSNAME = `k-menu-button`;
6138
- var states30 = [
6139
- States.hover,
6140
- States.focus,
6141
- States.active,
6142
- States.selected,
6143
- States.disabled
6144
- ];
6145
- var options27 = {
6146
- size: [Size.small, Size.medium, Size.large],
6147
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6148
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
6149
- themeColor: [
6150
- ThemeColor.base,
6151
- ThemeColor.primary,
6152
- ThemeColor.secondary,
6153
- ThemeColor.tertiary,
6154
- ThemeColor.success,
6155
- ThemeColor.warning,
6156
- ThemeColor.error,
6157
- ThemeColor.info,
6158
- ThemeColor.light,
6159
- ThemeColor.dark,
6160
- ThemeColor.inverse
6161
- ]
6162
- };
6163
- var defaultProps24 = {
6164
- size: Size.medium,
6165
- rounded: Roundness.medium,
6166
- fillMode: FillMode.solid,
6167
- themeColor: ThemeColor.base,
6168
- showArrow: true,
6169
- arrowIconName: "caret-alt-down"
6170
- };
6171
- var MenuButton = (props) => {
6172
- const {
6173
- size = defaultProps24.size,
6174
- rounded = defaultProps24.rounded,
6175
- fillMode = defaultProps24.fillMode,
6176
- themeColor = defaultProps24.themeColor,
6177
- hover,
6178
- focus,
6179
- active,
6180
- selected,
6181
- disabled,
6182
- icon,
6183
- text,
6184
- showArrow = defaultProps24.showArrow,
6185
- arrowIconName = defaultProps24.arrowIconName,
6186
- popup,
6187
- opened,
6188
- ...other
6189
- } = props;
6190
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6191
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6192
- Button,
6193
- {
6194
- ...other,
6195
- className: classNames(
6196
- props.className,
6197
- MENUBUTTON_CLASSNAME
6198
- ),
6199
- text,
6200
- size,
6201
- rounded,
6202
- fillMode,
6203
- themeColor,
6204
- hover,
6205
- focus,
6206
- active,
6207
- selected,
6208
- disabled,
6209
- icon,
6210
- showArrow,
6211
- arrowIconName
6212
- }
6213
- ),
6214
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Popup, { className: "k-menu-popup", children: popup })
6215
- ] });
6216
- };
6217
- MenuButton.states = states30;
6218
- MenuButton.options = options27;
6219
- MenuButton.className = MENUBUTTON_CLASSNAME;
6220
- MenuButton.defaultProps = defaultProps24;
6221
-
6222
- // src/menu-button/templates/icon-menu-button.tsx
6223
- var import_jsx_runtime76 = require("react/jsx-runtime");
6224
-
6225
- // src/menu-button/templates/icon-text-menu-button.tsx
6226
- var import_jsx_runtime77 = require("react/jsx-runtime");
6227
-
6228
- // src/menu-button/templates/text-menu-button.tsx
6229
- var import_jsx_runtime78 = require("react/jsx-runtime");
6230
-
6231
- // src/menu/menu-item.spec.tsx
6232
- var import_jsx_runtime79 = require("react/jsx-runtime");
6233
- var MENUITEM_CLASSNAME = `k-menu-item`;
6234
- var states31 = [
6235
- States.hover,
6236
- States.focus,
6237
- States.active,
6238
- States.selected,
6239
- States.disabled
6240
- ];
6241
- var options28 = {};
6242
- var defaultProps25 = {
6243
- dir: "ltr"
6244
- };
6245
- var MenuItem = (props) => {
6246
- const {
6247
- hover,
6248
- focus,
6249
- active,
6250
- selected,
6251
- disabled,
6252
- icon,
6253
- text,
6254
- showArrow,
6255
- arrowIconName,
6256
- dir = defaultProps25.dir,
6257
- children,
6258
- ...other
6259
- } = props;
6260
- const contentTemplate = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, {});
6261
- if (children) {
6262
- children.forEach((child) => {
6263
- const component = child.type;
6264
- if (component === "MenuItemContent") {
6265
- contentTemplate.props.children.push(child);
6266
- return;
6267
- }
6268
- });
6269
- }
6270
- let expandArrowName = arrowIconName;
6271
- if (!expandArrowName) {
6272
- expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
6273
- }
6274
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
6275
- "li",
6276
- {
6277
- ...other,
6278
- className: classNames(
6279
- props.className,
6280
- MENUITEM_CLASSNAME,
6281
- //TODO
6282
- "k-item",
6283
- stateClassNames(MENUITEM_CLASSNAME, {
6284
- focus,
6285
- disabled
6286
- })
6287
- ),
6288
- children: [
6289
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
6290
- "span",
6291
- {
6292
- className: classNames(
6293
- "k-link k-menu-link",
6294
- stateClassNames("k-menu-link", {
6295
- hover,
6296
- active,
6297
- selected,
6298
- disabled
6299
- })
6300
- ),
6301
- children: [
6302
- icon && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { className: "k-menu-link-icon", icon }),
6303
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "k-menu-link-text", children: text }),
6304
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon: expandArrowName }) })
6305
- ]
6306
- }
6307
- ),
6308
- contentTemplate
6309
- ]
6310
- }
6311
- );
6312
- };
6313
- MenuItem.states = states31;
6314
- MenuItem.options = options28;
6315
- MenuItem.className = MENUITEM_CLASSNAME;
6316
- MenuItem.defaultProps = defaultProps25;
6317
- var menu_item_spec_default = MenuItem;
6318
-
6319
- // src/menu/menu-separator.spec.tsx
6320
- var import_jsx_runtime80 = require("react/jsx-runtime");
6321
- var SEPARATOR_CLASSNAME = `k-separator`;
6322
- var defaultProps26 = {
6323
- orientation: "horizontal"
6324
- };
6325
- var MenuSeparator = (props) => {
6326
- const {
6327
- orientation = defaultProps26.orientation,
6328
- ...other
6329
- } = props;
6330
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
6331
- "li",
6332
- {
6333
- ...other,
6334
- className: classNames(
6335
- props.className,
6336
- "k-item",
6337
- SEPARATOR_CLASSNAME,
6338
- {
6339
- [`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
6340
- }
6341
- )
6342
- }
6343
- );
6344
- };
6345
- var menu_separator_spec_default = MenuSeparator;
6346
-
6347
- // src/menu/menu-item-content.tsx
6348
- var import_jsx_runtime81 = require("react/jsx-runtime");
6349
-
6350
- // src/menu/menu-list.spec.tsx
6351
- var import_jsx_runtime82 = require("react/jsx-runtime");
6352
- var import_react = require("react");
6353
- var MENULIST_CLASSNAME = `k-menu-group`;
6354
- var states32 = [];
6355
- var options29 = {
6356
- size: [Size.small, Size.medium, Size.large]
6357
- };
6358
- var defaultProps27 = {
6359
- size: Size.medium,
6360
- dir: "ltr"
6361
- };
6362
- var MenuList = (props) => {
6363
- const {
6364
- children,
6365
- size = defaultProps27.size,
6366
- dir = defaultProps27.dir,
6367
- ...other
6368
- } = props;
6369
- const listChildren = [];
6370
- if (children) {
6371
- if (Array.isArray(children)) {
6372
- children.map((child, index) => {
6373
- if (child.type === menu_item_spec_default) {
6374
- listChildren.push(
6375
- /* @__PURE__ */ (0, import_react.createElement)(menu_item_spec_default, { ...child.props, dir, key: index })
6376
- );
6377
- } else if (child.type === menu_separator_spec_default) {
6378
- listChildren.push(
6379
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(menu_separator_spec_default, {})
6380
- );
6381
- } else {
6382
- listChildren.push(child);
6383
- }
6384
- });
6385
- }
6386
- }
6387
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
6388
- "ul",
6389
- {
6390
- ...other,
6391
- className: classNames(
6392
- props.className,
6393
- MENULIST_CLASSNAME,
6394
- optionClassNames(MENULIST_CLASSNAME, {
6395
- size
6396
- })
6397
- ),
6398
- children: listChildren
6399
- }
6400
- );
6401
- };
6402
- MenuList.states = states32;
6403
- MenuList.options = options29;
6404
- MenuList.className = MENULIST_CLASSNAME;
6405
- MenuList.defaultProps = defaultProps27;
6406
-
6407
- // src/menu-button/templates/menu-button-popup.tsx
6408
- var import_jsx_runtime83 = require("react/jsx-runtime");
6409
-
6410
- // src/split-button/split-button.spec.tsx
6411
- var import_jsx_runtime84 = require("react/jsx-runtime");
6412
- var SPLITBUTTON_CLASSNAME = `k-split-button`;
6413
- var states33 = [
6414
- States.hover,
6415
- States.focus,
6416
- States.active,
6417
- States.selected,
6418
- States.disabled
6419
- ];
6420
- var options30 = {
6421
- size: [Size.small, Size.medium, Size.large],
6422
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6423
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
6424
- themeColor: [
6425
- ThemeColor.base,
6426
- ThemeColor.primary,
6427
- ThemeColor.secondary,
6428
- ThemeColor.tertiary,
6429
- ThemeColor.success,
6430
- ThemeColor.warning,
6431
- ThemeColor.error,
6432
- ThemeColor.info,
6433
- ThemeColor.light,
6434
- ThemeColor.dark,
6435
- ThemeColor.inverse
6436
- ]
6437
- };
6438
- var defaultProps28 = {
6439
- size: Size.medium,
6440
- rounded: Roundness.medium,
6441
- fillMode: FillMode.solid,
6442
- themeColor: ThemeColor.base,
6443
- arrowIconName: "caret-alt-down"
6444
- };
6445
- var SplitButton = (props) => {
6446
- const {
6447
- size = defaultProps28.size,
6448
- rounded = defaultProps28.rounded,
6449
- fillMode = defaultProps28.fillMode,
6450
- themeColor = defaultProps28.themeColor,
6451
- hover,
6452
- focus,
6453
- active,
6454
- selected,
6455
- disabled,
6456
- icon,
6457
- text,
6458
- arrowIconName = defaultProps28.arrowIconName,
6459
- popup,
6460
- opened,
6461
- ...other
6462
- } = props;
6463
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
6464
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
6465
- "div",
6466
- {
6467
- ...other,
6468
- className: classNames(
6469
- props.className,
6470
- SPLITBUTTON_CLASSNAME,
6471
- "k-button-group",
6472
- optionClassNames(SPLITBUTTON_CLASSNAME, {
6473
- rounded
6474
- })
6475
- ),
6476
- children: [
6477
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
6478
- Button,
6479
- {
6480
- text,
6481
- icon,
6482
- size,
6483
- rounded,
6484
- fillMode,
6485
- themeColor,
6486
- hover,
6487
- focus,
6488
- active,
6489
- selected,
6490
- disabled,
6491
- children: props.children
6492
- }
6493
- ),
6494
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
6495
- Button,
6496
- {
6497
- className: "k-split-button-arrow",
6498
- icon: arrowIconName,
6499
- size,
6500
- rounded,
6501
- fillMode,
6502
- disabled
6503
- }
6504
- )
6505
- ]
6506
- }
6507
- ),
6508
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Popup, { className: "k-menu-popup", children: popup })
6509
- ] });
6510
- };
6511
- SplitButton.states = states33;
6512
- SplitButton.options = options30;
6513
- SplitButton.className = SPLITBUTTON_CLASSNAME;
6514
- SplitButton.defaultProps = defaultProps28;
6515
- var split_button_spec_default = SplitButton;
6516
-
6517
- // src/toolbar/toolbar.spec.tsx
6518
- var import_jsx_runtime85 = require("react/jsx-runtime");
6519
- var TOOLBAR_CLASSNAME = `k-toolbar`;
6520
- var states34 = [
6521
- States.focus
6522
- ];
6523
- var options31 = {
6524
- size: [Size.small, Size.medium, Size.large]
6525
- };
6526
- var defaultProps29 = {
6527
- size: Size.medium
6528
- };
6529
- var Toolbar = (props) => {
6530
- const {
6531
- size = defaultProps29.size,
6532
- focus,
6533
- resizable,
6534
- ...other
6535
- } = props;
6536
- const toolbarChildren = [];
6537
- const addUniqueToolClass = (child, index) => {
6538
- const tempToolbarChildren = [];
6539
- if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
6540
- tempToolbarChildren.push(
6541
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6542
- Button,
6543
- {
6544
- ...child.props,
6545
- className: `${child.props.className ? child.props.className : ""}`
6546
- },
6547
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6548
- )
6549
- );
6550
- } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
6551
- tempToolbarChildren.push(
6552
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6553
- Button,
6554
- {
6555
- ...child.props,
6556
- className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
6557
- },
6558
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6559
- )
6560
- );
6561
- } else if (child.type === Button) {
6562
- tempToolbarChildren.push(
6563
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6564
- Button,
6565
- {
6566
- ...child.props,
6567
- className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
6568
- },
6569
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6570
- )
6571
- );
6572
- } else if (child.type === MenuButton) {
6573
- tempToolbarChildren.push(
6574
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6575
- MenuButton,
6576
- {
6577
- ...child.props,
6578
- className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
6579
- },
6580
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6581
- )
6582
- );
6583
- } else if (child.type === split_button_spec_default) {
6584
- tempToolbarChildren.push(
6585
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6586
- split_button_spec_default,
6587
- {
6588
- ...child.props,
6589
- className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
6590
- },
6591
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6592
- )
6593
- );
6594
- } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
6595
- const buttonGroupItems = [];
6596
- const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
6597
- childrenArray.forEach((button, bindex) => {
6598
- buttonGroupItems.push(
6599
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6600
- Button,
6601
- {
6602
- ...button.props,
6603
- className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
6604
- },
6605
- `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
6606
- )
6607
- );
6608
- });
6609
- tempToolbarChildren.push(
6610
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6611
- ButtonGroup,
6612
- {
6613
- ...child.props,
6614
- className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
6615
- children: buttonGroupItems
6616
- },
6617
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6618
- )
6619
- );
6620
- } else if (child.type === Combobox) {
6621
- tempToolbarChildren.push(
6622
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6623
- Combobox,
6624
- {
6625
- ...child.props,
6626
- className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
6627
- },
6628
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6629
- )
6630
- );
6631
- } else if (child.type === DropdownList) {
6632
- tempToolbarChildren.push(
6633
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6634
- DropdownList,
6635
- {
6636
- ...child.props,
6637
- className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
6638
- },
6639
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6640
- )
6641
- );
6642
- } else if (child.type === ColorPicker) {
6643
- tempToolbarChildren.push(
6644
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6645
- ColorPicker,
6646
- {
6647
- ...child.props,
6648
- className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
6649
- },
6650
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6651
- )
6652
- );
6653
- } else {
6654
- tempToolbarChildren.push(child);
6655
- }
6656
- tempToolbarChildren.forEach((item) => {
6657
- toolbarChildren.push(item);
6658
- });
6659
- };
6660
- if (props.children) {
6661
- const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
6662
- childrenArray.forEach((child, index) => {
6663
- addUniqueToolClass(child, index);
6664
- });
6665
- }
6666
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
6667
- "div",
4668
+ };
4669
+ var defaultProps7 = {
4670
+ size: Size.medium,
4671
+ rounded: Roundness.medium,
4672
+ fillMode: FillMode.solid
4673
+ };
4674
+ var Picker = (props) => {
4675
+ const {
4676
+ hover,
4677
+ focus,
4678
+ disabled,
4679
+ invalid,
4680
+ valid,
4681
+ loading,
4682
+ readonly,
4683
+ size = defaultProps7.size,
4684
+ rounded = defaultProps7.rounded,
4685
+ fillMode = defaultProps7.fillMode,
4686
+ ...other
4687
+ } = props;
4688
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4689
+ "span",
6668
4690
  {
6669
4691
  ...other,
6670
4692
  className: classNames(
6671
4693
  props.className,
6672
- TOOLBAR_CLASSNAME,
6673
- optionClassNames(TOOLBAR_CLASSNAME, {
6674
- size
6675
- }),
6676
- stateClassNames(TOOLBAR_CLASSNAME, {
6677
- focus
6678
- }),
6679
- {
6680
- [`${TOOLBAR_CLASSNAME}-resizable`]: resizable
6681
- }
4694
+ PICKER_CLASSNAME,
4695
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4696
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
6682
4697
  ),
6683
- children: toolbarChildren
4698
+ children: props.children
6684
4699
  }
6685
4700
  );
6686
4701
  };
6687
- Toolbar.states = states34;
6688
- Toolbar.options = options31;
6689
- Toolbar.className = TOOLBAR_CLASSNAME;
6690
- Toolbar.defaultProps = defaultProps29;
4702
+ Picker.states = pickerStates;
4703
+ Picker.options = pickerOptions;
4704
+ Picker.className = PICKER_CLASSNAME;
4705
+ Picker.defaultProps = defaultProps7;
6691
4706
 
6692
- // src/toolbar/toolbar-angular.spec.tsx
6693
- var import_jsx_runtime86 = require("react/jsx-runtime");
6694
- var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
6695
- var states35 = [
6696
- States.focus
4707
+ // src/input/input-clear-value.tsx
4708
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4709
+ var className = `k-clear-value`;
4710
+ var states8 = [
4711
+ States.disabled,
4712
+ States.loading,
4713
+ States.readonly
6697
4714
  ];
6698
- var options32 = {
6699
- size: [Size.small, Size.medium, Size.large]
4715
+ var options7 = {};
4716
+ var InputClearValue = (props) => {
4717
+ const {
4718
+ disabled,
4719
+ loading,
4720
+ readonly,
4721
+ value
4722
+ } = props;
4723
+ if (disabled || readonly || loading || !value) {
4724
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {});
4725
+ }
4726
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: "x" }) });
6700
4727
  };
6701
- var defaultProps30 = {
6702
- size: Size.medium
4728
+ InputClearValue.states = states8;
4729
+ InputClearValue.options = options7;
4730
+ InputClearValue.className = className;
4731
+
4732
+ // src/input/input-inner-input.tsx
4733
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4734
+ var className2 = `k-input-inner`;
4735
+ var states9 = [];
4736
+ var options8 = {};
4737
+ var defaultProps8 = {
4738
+ type: "text",
4739
+ autocomplete: "off",
4740
+ value: "",
4741
+ placeholder: ""
6703
4742
  };
6704
- var ToolbarAngular = (props) => {
4743
+ var InputInnerInput = (props) => {
6705
4744
  const {
6706
- size = defaultProps30.size,
6707
- focus,
6708
- resizable,
4745
+ value = defaultProps8.value,
4746
+ type = defaultProps8.type,
4747
+ placeholder = defaultProps8.placeholder,
4748
+ autocomplete = defaultProps8.autocomplete,
6709
4749
  ...other
6710
4750
  } = props;
6711
- const toolbarChildren = [];
6712
- const addUniqueToolClass = (child, index) => {
6713
- const tempToolbarChildren = [];
6714
- if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
6715
- tempToolbarChildren.push(
6716
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6717
- Button,
6718
- {
6719
- ...child.props,
6720
- className: `${child.props.className ? child.props.className : ""}`
6721
- },
6722
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6723
- ) })
6724
- );
6725
- } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
6726
- tempToolbarChildren.push(
6727
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6728
- Button,
6729
- {
6730
- ...child.props,
6731
- className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
6732
- },
6733
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6734
- ) })
6735
- );
6736
- } else if (child.type === Button) {
6737
- tempToolbarChildren.push(
6738
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6739
- Button,
6740
- {
6741
- ...child.props,
6742
- className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
6743
- },
6744
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6745
- ) })
6746
- );
6747
- } else if (child.type === MenuButton) {
6748
- tempToolbarChildren.push(
6749
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6750
- MenuButton,
6751
- {
6752
- ...child.props,
6753
- className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
6754
- },
6755
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6756
- ) })
6757
- );
6758
- } else if (child.type === split_button_spec_default) {
6759
- tempToolbarChildren.push(
6760
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6761
- split_button_spec_default,
6762
- {
6763
- ...child.props,
6764
- className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
6765
- },
6766
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6767
- ) })
6768
- );
6769
- } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
6770
- const buttonGroupItems = [];
6771
- const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
6772
- childrenArray.forEach((button, bindex) => {
6773
- buttonGroupItems.push(
6774
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6775
- Button,
6776
- {
6777
- ...button.props,
6778
- className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
6779
- },
6780
- `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
6781
- )
6782
- );
6783
- });
6784
- tempToolbarChildren.push(
6785
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6786
- ButtonGroup,
6787
- {
6788
- ...child.props,
6789
- className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
6790
- children: buttonGroupItems
6791
- },
6792
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6793
- ) })
6794
- );
6795
- } else if (child.type === Combobox) {
6796
- tempToolbarChildren.push(
6797
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6798
- Combobox,
6799
- {
6800
- ...child.props,
6801
- className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
6802
- },
6803
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6804
- ) })
6805
- );
6806
- } else if (child.type === DropdownList) {
6807
- tempToolbarChildren.push(
6808
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6809
- DropdownList,
6810
- {
6811
- ...child.props,
6812
- className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
6813
- },
6814
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6815
- ) })
6816
- );
6817
- } else if (child.type === ColorPicker) {
6818
- tempToolbarChildren.push(
6819
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6820
- ColorPicker,
6821
- {
6822
- ...child.props,
6823
- className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
6824
- },
6825
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6826
- ) })
6827
- );
6828
- } else {
6829
- tempToolbarChildren.push(child);
6830
- }
6831
- tempToolbarChildren.forEach((item) => {
6832
- toolbarChildren.push(item);
6833
- });
6834
- };
6835
- if (props.children) {
6836
- const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
6837
- childrenArray.forEach((child, index) => {
6838
- addUniqueToolClass(child, index);
6839
- });
6840
- }
6841
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6842
- "div",
4751
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4752
+ "input",
6843
4753
  {
6844
4754
  ...other,
6845
- className: classNames(
6846
- props.className,
6847
- TOOLBARANGULAR_CLASSNAME,
6848
- optionClassNames(TOOLBARANGULAR_CLASSNAME, {
6849
- size
6850
- }),
6851
- stateClassNames(TOOLBARANGULAR_CLASSNAME, {
6852
- focus
6853
- }),
6854
- {
6855
- [`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
6856
- }
6857
- ),
6858
- children: toolbarChildren
4755
+ type,
4756
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
4757
+ placeholder,
4758
+ autoComplete: autocomplete,
4759
+ defaultValue: value
6859
4760
  }
6860
4761
  );
6861
4762
  };
6862
- ToolbarAngular.states = states35;
6863
- ToolbarAngular.options = options32;
6864
- ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
6865
- ToolbarAngular.defaultProps = defaultProps30;
4763
+ InputInnerInput.states = states9;
4764
+ InputInnerInput.options = options8;
4765
+ InputInnerInput.className = className2;
6866
4766
 
6867
- // src/toolbar/toolbar-separator.tsx
6868
- var import_jsx_runtime87 = require("react/jsx-runtime");
4767
+ // src/input/input-inner-span.tsx
4768
+ var import_jsx_runtime21 = require("react/jsx-runtime");
4769
+ var className3 = `k-input-inner`;
4770
+ var states10 = [];
4771
+ var options9 = {};
4772
+ var InputInnerSpan = (props) => {
4773
+ const {
4774
+ value,
4775
+ placeholder,
4776
+ showValue,
4777
+ valueIcon,
4778
+ valueIconName,
4779
+ ...other
4780
+ } = props;
4781
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4782
+ "span",
4783
+ {
4784
+ ...other,
4785
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
4786
+ children: [
4787
+ valueIcon,
4788
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4789
+ showValue && !value && placeholder,
4790
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "k-input-value-text", children: value })
4791
+ ]
4792
+ }
4793
+ );
4794
+ };
4795
+ InputInnerSpan.states = states10;
4796
+ InputInnerSpan.options = options9;
4797
+ InputInnerSpan.className = className3;
6869
4798
 
6870
- // src/toolbar/toolbar-item.spec.tsx
6871
- var import_jsx_runtime88 = require("react/jsx-runtime");
6872
- var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
6873
- var states36 = [
6874
- States.focus
6875
- ];
6876
- var options33 = {};
6877
- var defaultProps31 = {};
6878
- var ToolbarItem = (props) => {
4799
+ // src/input/input-inner-textarea.tsx
4800
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4801
+ var defaultProps9 = {
4802
+ value: "",
4803
+ placeholder: ""
4804
+ };
4805
+ var className4 = `k-input-inner`;
4806
+ var states11 = [];
4807
+ var options10 = {};
4808
+ var InputInnerTextarea = (props) => {
6879
4809
  const {
6880
- focus,
4810
+ value = defaultProps9.value,
4811
+ placeholder = defaultProps9.placeholder,
4812
+ rows,
6881
4813
  ...other
6882
4814
  } = props;
6883
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
6884
- "div",
4815
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4816
+ "textarea",
6885
4817
  {
6886
4818
  ...other,
6887
- className: classNames(
6888
- props.className,
6889
- TOOLBARITEM_CLASSNAME,
6890
- stateClassNames(TOOLBARITEM_CLASSNAME, {
6891
- focus
6892
- })
6893
- ),
6894
- children: props.children
4819
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
4820
+ placeholder,
4821
+ rows,
4822
+ children: value
6895
4823
  }
6896
4824
  );
6897
4825
  };
6898
- ToolbarItem.states = states36;
6899
- ToolbarItem.options = options33;
6900
- ToolbarItem.className = TOOLBARITEM_CLASSNAME;
6901
- ToolbarItem.defaultProps = defaultProps31;
4826
+ InputInnerTextarea.states = states11;
4827
+ InputInnerTextarea.options = options10;
4828
+ InputInnerTextarea.className = className4;
4829
+
4830
+ // src/input/input-loading-icon.tsx
4831
+ var import_jsx_runtime23 = require("react/jsx-runtime");
4832
+ var className5 = `k-input-loading-icon`;
4833
+ var states12 = [
4834
+ States.disabled,
4835
+ States.loading
4836
+ ];
4837
+ var InputLoadingIcon = (props) => {
4838
+ const {
4839
+ disabled,
4840
+ loading
4841
+ } = props;
4842
+ if (disabled || !loading) {
4843
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {});
4844
+ }
4845
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4846
+ };
4847
+
4848
+ // src/input/input-validation-icon.tsx
4849
+ var import_jsx_runtime24 = require("react/jsx-runtime");
4850
+ var className6 = `k-input-validation-icon`;
4851
+ var states13 = [
4852
+ States.valid,
4853
+ States.invalid,
4854
+ States.disabled,
4855
+ States.loading
4856
+ ];
4857
+ var options11 = {};
4858
+ var InputValidationIcon = (props) => {
4859
+ const {
4860
+ valid,
4861
+ invalid,
4862
+ disabled,
4863
+ loading
4864
+ } = props;
4865
+ const iconName = invalid ? "exclamation-circle" : "check";
4866
+ const renderValidationIcon = Boolean(valid || invalid);
4867
+ if (disabled || loading || !renderValidationIcon) {
4868
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {});
4869
+ }
4870
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { className: classNames(className6), icon: iconName });
4871
+ };
4872
+ InputValidationIcon.states = states13;
4873
+ InputValidationIcon.options = options11;
4874
+ InputValidationIcon.className = className6;
4875
+
4876
+ // src/input/input-prefix.tsx
4877
+ var import_jsx_runtime25 = require("react/jsx-runtime");
4878
+ var className7 = `k-input-prefix`;
4879
+ var InputPrefix = (props) => {
4880
+ if (!props.children) {
4881
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, {});
4882
+ }
4883
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4884
+ };
4885
+
4886
+ // src/input/input-suffix.tsx
4887
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4888
+ var className8 = `k-input-suffix`;
4889
+ var InputSuffix = (props) => {
4890
+ if (!props.children) {
4891
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, {});
4892
+ }
4893
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4894
+ };
4895
+
4896
+ // src/input/input-separator.tsx
4897
+ var import_jsx_runtime27 = require("react/jsx-runtime");
6902
4898
 
6903
4899
  // src/textbox/textbox.spec.tsx
6904
- var import_jsx_runtime89 = require("react/jsx-runtime");
4900
+ var import_jsx_runtime28 = require("react/jsx-runtime");
6905
4901
  var TEXTBOX_CLASSNAME = `k-textbox`;
6906
- var states37 = [
4902
+ var states14 = [
6907
4903
  States.hover,
6908
4904
  States.focus,
6909
4905
  States.valid,
@@ -6913,12 +4909,12 @@ var states37 = [
6913
4909
  States.loading,
6914
4910
  States.readonly
6915
4911
  ];
6916
- var options34 = {
4912
+ var options12 = {
6917
4913
  size: [Size.small, Size.medium, Size.large],
6918
4914
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6919
4915
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6920
4916
  };
6921
- var defaultProps32 = {
4917
+ var defaultProps10 = {
6922
4918
  showClearButton: true,
6923
4919
  size: Input.defaultProps.size,
6924
4920
  rounded: Input.defaultProps.rounded,
@@ -6941,10 +4937,10 @@ var Textbox = (props) => {
6941
4937
  loading,
6942
4938
  disabled,
6943
4939
  readonly,
6944
- showClearButton = defaultProps32.showClearButton,
4940
+ showClearButton = defaultProps10.showClearButton,
6945
4941
  ...other
6946
4942
  } = props;
6947
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
4943
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
6948
4944
  Input,
6949
4945
  {
6950
4946
  ...other,
@@ -6961,9 +4957,9 @@ var Textbox = (props) => {
6961
4957
  readonly,
6962
4958
  className: classNames(props.className, TEXTBOX_CLASSNAME),
6963
4959
  children: [
6964
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(InputPrefix, { children: prefix }),
6965
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(InputInnerInput, { placeholder, value }),
6966
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4960
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputPrefix, { children: prefix }),
4961
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputInnerInput, { placeholder, value }),
4962
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6967
4963
  InputValidationIcon,
6968
4964
  {
6969
4965
  valid,
@@ -6972,14 +4968,14 @@ var Textbox = (props) => {
6972
4968
  disabled
6973
4969
  }
6974
4970
  ),
6975
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4971
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6976
4972
  InputLoadingIcon,
6977
4973
  {
6978
4974
  loading,
6979
4975
  disabled
6980
4976
  }
6981
4977
  ),
6982
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4978
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6983
4979
  InputClearValue,
6984
4980
  {
6985
4981
  loading,
@@ -6988,30 +4984,30 @@ var Textbox = (props) => {
6988
4984
  value
6989
4985
  }
6990
4986
  ),
6991
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(InputSuffix, { children: suffix })
4987
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputSuffix, { children: suffix })
6992
4988
  ]
6993
4989
  }
6994
4990
  );
6995
4991
  };
6996
- Textbox.states = states37;
6997
- Textbox.options = options34;
4992
+ Textbox.states = states14;
4993
+ Textbox.options = options12;
6998
4994
  Textbox.className = TEXTBOX_CLASSNAME;
6999
- Textbox.defaultProps = defaultProps32;
4995
+ Textbox.defaultProps = defaultProps10;
7000
4996
 
7001
4997
  // src/textbox/templates/textbox-normal.tsx
7002
- var import_jsx_runtime90 = require("react/jsx-runtime");
4998
+ var import_jsx_runtime29 = require("react/jsx-runtime");
7003
4999
 
7004
5000
  // src/textbox/templates/textbox-prefix.tsx
7005
- var import_jsx_runtime91 = require("react/jsx-runtime");
5001
+ var import_jsx_runtime30 = require("react/jsx-runtime");
7006
5002
 
7007
5003
  // src/textbox/templates/textbox-suffix.tsx
7008
- var import_jsx_runtime92 = require("react/jsx-runtime");
5004
+ var import_jsx_runtime31 = require("react/jsx-runtime");
7009
5005
 
7010
5006
  // src/chat/chat.spec.tsx
7011
- var import_jsx_runtime93 = require("react/jsx-runtime");
5007
+ var import_jsx_runtime32 = require("react/jsx-runtime");
7012
5008
  var CHAT_CLASSNAME = "k-chat";
7013
- var states38 = [];
7014
- var options35 = {};
5009
+ var states15 = [];
5010
+ var options13 = {};
7015
5011
  var defaultOptions = {
7016
5012
  showToolbar: true,
7017
5013
  showMessageBox: true,
@@ -7025,7 +5021,7 @@ var Chat = (props) => {
7025
5021
  showMoreButton = defaultOptions.showMoreButton,
7026
5022
  ...other
7027
5023
  } = props;
7028
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
5024
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
7029
5025
  "div",
7030
5026
  {
7031
5027
  ...other,
@@ -7035,63 +5031,63 @@ var Chat = (props) => {
7035
5031
  ),
7036
5032
  dir,
7037
5033
  children: [
7038
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "k-message-list k-avatars", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "k-message-list-content", children: props.children }) }),
7039
- showMessageBox && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5034
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "k-message-list k-avatars", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "k-message-list-content", children: props.children }) }),
5035
+ showMessageBox && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
7040
5036
  Textbox,
7041
5037
  {
7042
5038
  className: "k-message-box",
7043
5039
  placeholder: "Type a message...",
7044
- suffix: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
7045
- showMoreButton && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "more-horizontal" }),
7046
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "paper-plane", className: "k-chat-send" })
5040
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
5041
+ showMoreButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { fillMode: "flat", icon: "more-horizontal" }),
5042
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { fillMode: "flat", icon: "paper-plane", className: "k-chat-send" })
7047
5043
  ] })
7048
5044
  }
7049
5045
  ),
7050
- showToolbar && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Toolbar, { className: "k-chat-toolbar", children: [
7051
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { className: "k-scroll-button k-scroll-button-left k-hidden", fillMode: "flat", rounded: null, size: null, icon: "chevron-left" }),
7052
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "k-toolbar-group k-button-list", children: [
7053
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "arrow-rotate-cw" }),
7054
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "gear" }),
7055
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "wrench" }),
7056
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "plus" }),
7057
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "search" }),
7058
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "star" }),
7059
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "bell" }),
7060
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "question-circle" }),
7061
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { fillMode: "flat", icon: "trash" })
5046
+ showToolbar && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "k-chat-toolbar k-toolbar", children: [
5047
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { className: "k-scroll-button k-scroll-button-left k-hidden", icon: "chevron-left" }),
5048
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "k-toolbar-group k-button-list", children: [
5049
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "arrow-rotate-cw" }),
5050
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "gear" }),
5051
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "wrench" }),
5052
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "plus" }),
5053
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "search" }),
5054
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "star" }),
5055
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "bell" }),
5056
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "question-circle" }),
5057
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "trash" })
7062
5058
  ] }),
7063
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { className: "k-scroll-button k-scroll-button-right", fillMode: "flat", rounded: null, size: null, icon: "chevron-right" })
5059
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { className: "k-scroll-button k-scroll-button-right", icon: "chevron-right" })
7064
5060
  ] })
7065
5061
  ]
7066
5062
  }
7067
5063
  );
7068
5064
  };
7069
- Chat.states = states38;
7070
- Chat.options = options35;
5065
+ Chat.states = states15;
5066
+ Chat.options = options13;
7071
5067
  Chat.className = CHAT_CLASSNAME;
7072
5068
  Chat.defaultOptions = defaultOptions;
7073
5069
 
7074
5070
  // src/chat/chat-message.tsx
7075
- var import_jsx_runtime94 = require("react/jsx-runtime");
5071
+ var import_jsx_runtime33 = require("react/jsx-runtime");
7076
5072
  var CHATMESSAGE_CLASSNAME = "k-message";
7077
- var states39 = [
5073
+ var states16 = [
7078
5074
  States.selected
7079
5075
  ];
7080
- var options36 = {};
7081
- var defaultProps33 = {
5076
+ var options14 = {};
5077
+ var defaultProps11 = {
7082
5078
  time: "Thu Feb 08 2018",
7083
5079
  text: "How can I help you?",
7084
5080
  status: "Seen"
7085
5081
  };
7086
5082
  var ChatMessage = (props) => {
7087
5083
  const {
7088
- time = defaultProps33.time,
7089
- text = defaultProps33.text,
7090
- status = defaultProps33.status,
5084
+ time = defaultProps11.time,
5085
+ text = defaultProps11.text,
5086
+ status = defaultProps11.status,
7091
5087
  selected,
7092
5088
  ...other
7093
5089
  } = props;
7094
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
5090
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
7095
5091
  "div",
7096
5092
  {
7097
5093
  ...other,
@@ -7101,29 +5097,29 @@ var ChatMessage = (props) => {
7101
5097
  stateClassNames(CHATMESSAGE_CLASSNAME, { selected })
7102
5098
  ),
7103
5099
  children: [
7104
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("time", { className: "k-message-time", children: time }),
7105
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "k-chat-bubble", children: text }),
7106
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "k-message-status", children: status })
5100
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("time", { className: "k-message-time", children: time }),
5101
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "k-chat-bubble", children: text }),
5102
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "k-message-status", children: status })
7107
5103
  ]
7108
5104
  }
7109
5105
  );
7110
5106
  };
7111
- ChatMessage.states = states39;
7112
- ChatMessage.options = options36;
5107
+ ChatMessage.states = states16;
5108
+ ChatMessage.options = options14;
7113
5109
  ChatMessage.className = CHATMESSAGE_CLASSNAME;
7114
- ChatMessage.defaultProps = defaultProps33;
5110
+ ChatMessage.defaultProps = defaultProps11;
7115
5111
 
7116
5112
  // src/avatar/avatar.spec.tsx
7117
- var import_jsx_runtime95 = require("react/jsx-runtime");
5113
+ var import_jsx_runtime34 = require("react/jsx-runtime");
7118
5114
  var AVATAR_CLASSNAME = `k-avatar`;
7119
- var states40 = [
5115
+ var states17 = [
7120
5116
  States.hover,
7121
5117
  States.focus,
7122
5118
  States.active,
7123
5119
  States.selected,
7124
5120
  States.disabled
7125
5121
  ];
7126
- var options37 = {
5122
+ var options15 = {
7127
5123
  size: [Size.small, Size.medium, Size.large],
7128
5124
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7129
5125
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
@@ -7141,7 +5137,7 @@ var options37 = {
7141
5137
  ThemeColor.inverse
7142
5138
  ]
7143
5139
  };
7144
- var defaultProps34 = {
5140
+ var defaultProps12 = {
7145
5141
  type: "text" /* TEXT */,
7146
5142
  size: Size.medium,
7147
5143
  rounded: Roundness.full,
@@ -7151,15 +5147,15 @@ var defaultProps34 = {
7151
5147
  };
7152
5148
  var Avatar = (props) => {
7153
5149
  const {
7154
- size = defaultProps34.size,
7155
- rounded = defaultProps34.rounded,
7156
- fillMode = defaultProps34.fillMode,
7157
- themeColor = defaultProps34.themeColor,
7158
- type = defaultProps34.type,
7159
- border = defaultProps34.border,
5150
+ size = defaultProps12.size,
5151
+ rounded = defaultProps12.rounded,
5152
+ fillMode = defaultProps12.fillMode,
5153
+ themeColor = defaultProps12.themeColor,
5154
+ type = defaultProps12.type,
5155
+ border = defaultProps12.border,
7160
5156
  ...other
7161
5157
  } = props;
7162
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5158
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
7163
5159
  "div",
7164
5160
  {
7165
5161
  ...other,
@@ -7176,45 +5172,45 @@ var Avatar = (props) => {
7176
5172
  [`${AVATAR_CLASSNAME}-bordered`]: border
7177
5173
  }
7178
5174
  ),
7179
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
5175
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
7180
5176
  }
7181
5177
  );
7182
5178
  };
7183
- Avatar.states = states40;
7184
- Avatar.options = options37;
5179
+ Avatar.states = states17;
5180
+ Avatar.options = options15;
7185
5181
  Avatar.className = AVATAR_CLASSNAME;
7186
- Avatar.defaultProps = defaultProps34;
5182
+ Avatar.defaultProps = defaultProps12;
7187
5183
 
7188
5184
  // src/avatar/templates/avatar-icon.tsx
7189
- var import_jsx_runtime96 = require("react/jsx-runtime");
5185
+ var import_jsx_runtime35 = require("react/jsx-runtime");
7190
5186
 
7191
5187
  // src/avatar/templates/avatar-text.tsx
7192
- var import_jsx_runtime97 = require("react/jsx-runtime");
5188
+ var import_jsx_runtime36 = require("react/jsx-runtime");
7193
5189
 
7194
5190
  // src/avatar/templates/avatar-image.tsx
7195
- var import_jsx_runtime98 = require("react/jsx-runtime");
5191
+ var import_jsx_runtime37 = require("react/jsx-runtime");
7196
5192
 
7197
5193
  // src/chat/chat-message-group.tsx
7198
- var import_jsx_runtime99 = require("react/jsx-runtime");
5194
+ var import_jsx_runtime38 = require("react/jsx-runtime");
7199
5195
  var CHATMESSAGEGROUP_CLASSNAME = "k-message-group";
7200
- var states41 = [
5196
+ var states18 = [
7201
5197
  States.selected
7202
5198
  ];
7203
- var options38 = {};
7204
- var defaultProps35 = {
5199
+ var options16 = {};
5200
+ var defaultProps13 = {
7205
5201
  author: "Bruv",
7206
5202
  avatar: "/packages/html/assets/avatar.jpg",
7207
5203
  alt: false
7208
5204
  };
7209
5205
  var ChatMessageGroup = (props) => {
7210
5206
  const {
7211
- alt = defaultProps35.alt,
7212
- author = defaultProps35.author,
7213
- avatar = defaultProps35.avatar,
5207
+ alt = defaultProps13.alt,
5208
+ author = defaultProps13.author,
5209
+ avatar = defaultProps13.avatar,
7214
5210
  selected,
7215
5211
  ...other
7216
5212
  } = props;
7217
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
5213
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
7218
5214
  "div",
7219
5215
  {
7220
5216
  ...other,
@@ -7228,23 +5224,23 @@ var ChatMessageGroup = (props) => {
7228
5224
  }
7229
5225
  ),
7230
5226
  children: [
7231
- author && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "k-author", children: author }),
7232
- avatar && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Avatar, { type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: avatar }) }),
5227
+ author && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "k-author", children: author }),
5228
+ avatar && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Avatar, { type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("img", { src: avatar }) }),
7233
5229
  props.children
7234
5230
  ]
7235
5231
  }
7236
5232
  );
7237
5233
  };
7238
- ChatMessageGroup.states = states41;
7239
- ChatMessageGroup.options = options38;
5234
+ ChatMessageGroup.states = states18;
5235
+ ChatMessageGroup.options = options16;
7240
5236
  ChatMessageGroup.className = CHATMESSAGEGROUP_CLASSNAME;
7241
- ChatMessageGroup.defaultProps = defaultProps35;
5237
+ ChatMessageGroup.defaultProps = defaultProps13;
7242
5238
 
7243
5239
  // src/chat/chat-quick-replies.tsx
7244
- var import_jsx_runtime100 = require("react/jsx-runtime");
5240
+ var import_jsx_runtime39 = require("react/jsx-runtime");
7245
5241
  var CHATQUICKREPLY_CLASSNAME = "k-quick-replies";
7246
- var states42 = [];
7247
- var options39 = {};
5242
+ var states19 = [];
5243
+ var options17 = {};
7248
5244
  var defaultOptions2 = {
7249
5245
  actions: ["Quick", "Reply", "Another quick", "Reply with different length"]
7250
5246
  };
@@ -7257,11 +5253,11 @@ var ChatQuickReply = (props) => {
7257
5253
  if (actions) {
7258
5254
  actions.map((action, index) => {
7259
5255
  children.push(
7260
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "k-quick-reply", children: action }, index)
5256
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "k-quick-reply", children: action }, index)
7261
5257
  );
7262
5258
  });
7263
5259
  }
7264
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5260
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7265
5261
  "div",
7266
5262
  {
7267
5263
  ...other,
@@ -7273,48 +5269,48 @@ var ChatQuickReply = (props) => {
7273
5269
  }
7274
5270
  );
7275
5271
  };
7276
- ChatQuickReply.states = states42;
7277
- ChatQuickReply.options = options39;
5272
+ ChatQuickReply.states = states19;
5273
+ ChatQuickReply.options = options17;
7278
5274
  ChatQuickReply.className = CHATQUICKREPLY_CLASSNAME;
7279
5275
  ChatQuickReply.defaultOptions = defaultOptions2;
7280
5276
 
7281
5277
  // src/chat/tests/chat-rtl.tsx
7282
- var import_jsx_runtime101 = require("react/jsx-runtime");
5278
+ var import_jsx_runtime40 = require("react/jsx-runtime");
7283
5279
  var styles = `
7284
5280
  /* needed for test */
7285
5281
  .k-chat .k-chat-bubble {
7286
5282
  white-space: normal;
7287
5283
  }
7288
5284
  `;
7289
- var chat_rtl_default = () => /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
7290
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("style", { children: styles }),
7291
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Chat, { dir: "rtl", showToolbar: false, showMoreButton: false, children: [
7292
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "k-timestamp", children: "Bubbles" }),
7293
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChatMessageGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChatMessage, { className: "k-only" }) }),
7294
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChatMessageGroup, { alt: true, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChatMessage, { className: "k-only" }) }),
7295
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "k-timestamp", children: "Quick Replies" }),
7296
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChatQuickReply, {}),
7297
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "k-timestamp", children: "Card Deck" }),
7298
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(CardDeck, { children: [
7299
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(CardBody, { children: [
7300
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
7301
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
7302
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
5285
+ var chat_rtl_default = () => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
5286
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("style", { children: styles }),
5287
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Chat, { dir: "rtl", showToolbar: false, showMoreButton: false, children: [
5288
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-timestamp", children: "Bubbles" }),
5289
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChatMessageGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChatMessage, { className: "k-only" }) }),
5290
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChatMessageGroup, { alt: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChatMessage, { className: "k-only" }) }),
5291
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-timestamp", children: "Quick Replies" }),
5292
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChatQuickReply, {}),
5293
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-timestamp", children: "Card Deck" }),
5294
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardDeck, { children: [
5295
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardBody, { children: [
5296
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
5297
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
5298
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
7303
5299
  ] }) }),
7304
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(CardBody, { children: [
7305
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
7306
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
7307
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
5300
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardBody, { children: [
5301
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
5302
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
5303
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
7308
5304
  ] }) }),
7309
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(CardBody, { children: [
7310
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
7311
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
7312
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
5305
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardBody, { children: [
5306
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
5307
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
5308
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
7313
5309
  ] }) }),
7314
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(CardBody, { children: [
7315
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
7316
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
7317
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
5310
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardBody, { children: [
5311
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h5", { className: "k-card-title", children: "Card Title" }),
5312
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
5313
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
7318
5314
  ] }) })
7319
5315
  ] })
7320
5316
  ] }) }) })