@progress/kendo-themes-html 6.7.0-dev.3 → 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.
@@ -4359,67 +4359,10 @@ import { jsx as jsx6 } from "react/jsx-runtime";
4359
4359
  // src/button/templates/text-button.tsx
4360
4360
  import { jsx as jsx7 } from "react/jsx-runtime";
4361
4361
 
4362
- // src/button-group/button-group.spec.tsx
4363
- import { jsx as jsx8 } from "react/jsx-runtime";
4364
- var BUTTONGROUP_CLASSNAME = `k-button-group`;
4365
- var states5 = [
4366
- States.disabled
4367
- ];
4368
- var options5 = {
4369
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
4370
- };
4371
- var defaultProps5 = {
4372
- fillMode: FillMode.solid
4373
- };
4374
- var ButtonGroup = (props) => {
4375
- const {
4376
- fillMode = defaultProps5.fillMode,
4377
- disabled,
4378
- stretched,
4379
- ...other
4380
- } = props;
4381
- return /* @__PURE__ */ jsx8(
4382
- "div",
4383
- {
4384
- ...other,
4385
- className: classNames(
4386
- props.className,
4387
- BUTTONGROUP_CLASSNAME,
4388
- optionClassNames(BUTTONGROUP_CLASSNAME, {
4389
- fillMode
4390
- }),
4391
- stateClassNames(BUTTONGROUP_CLASSNAME, {
4392
- disabled
4393
- }),
4394
- {
4395
- [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
4396
- }
4397
- ),
4398
- children: props.children
4399
- }
4400
- );
4401
- };
4402
- ButtonGroup.states = states5;
4403
- ButtonGroup.options = options5;
4404
- ButtonGroup.className = BUTTONGROUP_CLASSNAME;
4405
- ButtonGroup.defaultProps = defaultProps5;
4406
-
4407
- // src/button-group/templates/icon-button-group.tsx
4408
- import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
4409
-
4410
- // src/button-group/templates/icon-text-button-group.tsx
4411
- import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
4412
-
4413
- // src/button-group/templates/text-button-group.tsx
4414
- import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
4415
-
4416
- // src/button-group/templates/mixed-button-group.tsx
4417
- import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
4418
-
4419
4362
  // src/input/input.spec.tsx
4420
- import { jsx as jsx13 } from "react/jsx-runtime";
4363
+ import { jsx as jsx8 } from "react/jsx-runtime";
4421
4364
  var INPUT_CLASSNAME = `k-input`;
4422
- var states6 = [
4365
+ var states5 = [
4423
4366
  States.hover,
4424
4367
  States.focus,
4425
4368
  States.valid,
@@ -4429,12 +4372,12 @@ var states6 = [
4429
4372
  States.loading,
4430
4373
  States.readonly
4431
4374
  ];
4432
- var options6 = {
4375
+ var options5 = {
4433
4376
  size: [Size.small, Size.medium, Size.large],
4434
4377
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4435
4378
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4436
4379
  };
4437
- var defaultProps6 = {
4380
+ var defaultProps5 = {
4438
4381
  size: Size.medium,
4439
4382
  rounded: Size.medium,
4440
4383
  fillMode: FillMode.solid
@@ -4448,12 +4391,12 @@ var Input = (props) => {
4448
4391
  valid,
4449
4392
  loading,
4450
4393
  readonly,
4451
- size = defaultProps6.size,
4452
- rounded = defaultProps6.rounded,
4453
- fillMode = defaultProps6.fillMode,
4394
+ size = defaultProps5.size,
4395
+ rounded = defaultProps5.rounded,
4396
+ fillMode = defaultProps5.fillMode,
4454
4397
  ...other
4455
4398
  } = props;
4456
- return /* @__PURE__ */ jsx13(
4399
+ return /* @__PURE__ */ jsx8(
4457
4400
  "span",
4458
4401
  {
4459
4402
  ...other,
@@ -4466,13 +4409,13 @@ var Input = (props) => {
4466
4409
  }
4467
4410
  );
4468
4411
  };
4469
- Input.states = states6;
4470
- Input.options = options6;
4412
+ Input.states = states5;
4413
+ Input.options = options5;
4471
4414
  Input.className = INPUT_CLASSNAME;
4472
- Input.defaultProps = defaultProps6;
4415
+ Input.defaultProps = defaultProps5;
4473
4416
 
4474
4417
  // src/input/picker.spec.tsx
4475
- import { jsx as jsx14 } from "react/jsx-runtime";
4418
+ import { jsx as jsx9 } from "react/jsx-runtime";
4476
4419
  var PICKER_CLASSNAME = `k-picker`;
4477
4420
  var pickerStates = [
4478
4421
  States.hover,
@@ -4489,7 +4432,7 @@ var pickerOptions = {
4489
4432
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4490
4433
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4491
4434
  };
4492
- var defaultProps7 = {
4435
+ var defaultProps6 = {
4493
4436
  size: Size.medium,
4494
4437
  rounded: Roundness.medium,
4495
4438
  fillMode: FillMode.solid
@@ -4503,12 +4446,12 @@ var Picker = (props) => {
4503
4446
  valid,
4504
4447
  loading,
4505
4448
  readonly,
4506
- size = defaultProps7.size,
4507
- rounded = defaultProps7.rounded,
4508
- fillMode = defaultProps7.fillMode,
4449
+ size = defaultProps6.size,
4450
+ rounded = defaultProps6.rounded,
4451
+ fillMode = defaultProps6.fillMode,
4509
4452
  ...other
4510
4453
  } = props;
4511
- return /* @__PURE__ */ jsx14(
4454
+ return /* @__PURE__ */ jsx9(
4512
4455
  "span",
4513
4456
  {
4514
4457
  ...other,
@@ -4525,17 +4468,17 @@ var Picker = (props) => {
4525
4468
  Picker.states = pickerStates;
4526
4469
  Picker.options = pickerOptions;
4527
4470
  Picker.className = PICKER_CLASSNAME;
4528
- Picker.defaultProps = defaultProps7;
4471
+ Picker.defaultProps = defaultProps6;
4529
4472
 
4530
4473
  // src/input/input-clear-value.tsx
4531
- import { Fragment as Fragment5, jsx as jsx15 } from "react/jsx-runtime";
4474
+ import { Fragment as Fragment5, jsx as jsx10 } from "react/jsx-runtime";
4532
4475
  var className = `k-clear-value`;
4533
- var states7 = [
4476
+ var states6 = [
4534
4477
  States.disabled,
4535
4478
  States.loading,
4536
4479
  States.readonly
4537
4480
  ];
4538
- var options7 = {};
4481
+ var options6 = {};
4539
4482
  var InputClearValue = (props) => {
4540
4483
  const {
4541
4484
  disabled,
@@ -4544,20 +4487,20 @@ var InputClearValue = (props) => {
4544
4487
  value
4545
4488
  } = props;
4546
4489
  if (disabled || readonly || loading || !value) {
4547
- return /* @__PURE__ */ jsx15(Fragment5, {});
4490
+ return /* @__PURE__ */ jsx10(Fragment5, {});
4548
4491
  }
4549
- return /* @__PURE__ */ jsx15("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx15(Icon, { icon: "x" }) });
4492
+ return /* @__PURE__ */ jsx10("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx10(Icon, { icon: "x" }) });
4550
4493
  };
4551
- InputClearValue.states = states7;
4552
- InputClearValue.options = options7;
4494
+ InputClearValue.states = states6;
4495
+ InputClearValue.options = options6;
4553
4496
  InputClearValue.className = className;
4554
4497
 
4555
4498
  // src/input/input-inner-input.tsx
4556
- import { jsx as jsx16 } from "react/jsx-runtime";
4499
+ import { jsx as jsx11 } from "react/jsx-runtime";
4557
4500
  var className2 = `k-input-inner`;
4558
- var states8 = [];
4559
- var options8 = {};
4560
- var defaultProps8 = {
4501
+ var states7 = [];
4502
+ var options7 = {};
4503
+ var defaultProps7 = {
4561
4504
  type: "text",
4562
4505
  autocomplete: "off",
4563
4506
  value: "",
@@ -4565,13 +4508,13 @@ var defaultProps8 = {
4565
4508
  };
4566
4509
  var InputInnerInput = (props) => {
4567
4510
  const {
4568
- value = defaultProps8.value,
4569
- type = defaultProps8.type,
4570
- placeholder = defaultProps8.placeholder,
4571
- autocomplete = defaultProps8.autocomplete,
4511
+ value = defaultProps7.value,
4512
+ type = defaultProps7.type,
4513
+ placeholder = defaultProps7.placeholder,
4514
+ autocomplete = defaultProps7.autocomplete,
4572
4515
  ...other
4573
4516
  } = props;
4574
- return /* @__PURE__ */ jsx16(
4517
+ return /* @__PURE__ */ jsx11(
4575
4518
  "input",
4576
4519
  {
4577
4520
  ...other,
@@ -4583,15 +4526,15 @@ var InputInnerInput = (props) => {
4583
4526
  }
4584
4527
  );
4585
4528
  };
4586
- InputInnerInput.states = states8;
4587
- InputInnerInput.options = options8;
4529
+ InputInnerInput.states = states7;
4530
+ InputInnerInput.options = options7;
4588
4531
  InputInnerInput.className = className2;
4589
4532
 
4590
4533
  // src/input/input-inner-span.tsx
4591
- import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
4534
+ import { jsx as jsx12, jsxs as jsxs2 } from "react/jsx-runtime";
4592
4535
  var className3 = `k-input-inner`;
4593
- var states9 = [];
4594
- var options9 = {};
4536
+ var states8 = [];
4537
+ var options8 = {};
4595
4538
  var InputInnerSpan = (props) => {
4596
4539
  const {
4597
4540
  value,
@@ -4601,41 +4544,41 @@ var InputInnerSpan = (props) => {
4601
4544
  valueIconName,
4602
4545
  ...other
4603
4546
  } = props;
4604
- return /* @__PURE__ */ jsxs6(
4547
+ return /* @__PURE__ */ jsxs2(
4605
4548
  "span",
4606
4549
  {
4607
4550
  ...other,
4608
4551
  className: classNames(props.className, className3, optionClassNames(className3, props)),
4609
4552
  children: [
4610
4553
  valueIcon,
4611
- !valueIcon && valueIconName && /* @__PURE__ */ jsx17(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4554
+ !valueIcon && valueIconName && /* @__PURE__ */ jsx12(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4612
4555
  showValue && !value && placeholder,
4613
- showValue && value && /* @__PURE__ */ jsx17("span", { className: "k-input-value-text", children: value })
4556
+ showValue && value && /* @__PURE__ */ jsx12("span", { className: "k-input-value-text", children: value })
4614
4557
  ]
4615
4558
  }
4616
4559
  );
4617
4560
  };
4618
- InputInnerSpan.states = states9;
4619
- InputInnerSpan.options = options9;
4561
+ InputInnerSpan.states = states8;
4562
+ InputInnerSpan.options = options8;
4620
4563
  InputInnerSpan.className = className3;
4621
4564
 
4622
4565
  // src/input/input-inner-textarea.tsx
4623
- import { jsx as jsx18 } from "react/jsx-runtime";
4624
- var defaultProps9 = {
4566
+ import { jsx as jsx13 } from "react/jsx-runtime";
4567
+ var defaultProps8 = {
4625
4568
  value: "",
4626
4569
  placeholder: ""
4627
4570
  };
4628
4571
  var className4 = `k-input-inner`;
4629
- var states10 = [];
4630
- var options10 = {};
4572
+ var states9 = [];
4573
+ var options9 = {};
4631
4574
  var InputInnerTextarea = (props) => {
4632
4575
  const {
4633
- value = defaultProps9.value,
4634
- placeholder = defaultProps9.placeholder,
4576
+ value = defaultProps8.value,
4577
+ placeholder = defaultProps8.placeholder,
4635
4578
  rows,
4636
4579
  ...other
4637
4580
  } = props;
4638
- return /* @__PURE__ */ jsx18(
4581
+ return /* @__PURE__ */ jsx13(
4639
4582
  "textarea",
4640
4583
  {
4641
4584
  ...other,
@@ -4646,14 +4589,14 @@ var InputInnerTextarea = (props) => {
4646
4589
  }
4647
4590
  );
4648
4591
  };
4649
- InputInnerTextarea.states = states10;
4650
- InputInnerTextarea.options = options10;
4592
+ InputInnerTextarea.states = states9;
4593
+ InputInnerTextarea.options = options9;
4651
4594
  InputInnerTextarea.className = className4;
4652
4595
 
4653
4596
  // src/input/input-loading-icon.tsx
4654
- import { Fragment as Fragment6, jsx as jsx19 } from "react/jsx-runtime";
4597
+ import { Fragment as Fragment6, jsx as jsx14 } from "react/jsx-runtime";
4655
4598
  var className5 = `k-input-loading-icon`;
4656
- var states11 = [
4599
+ var states10 = [
4657
4600
  States.disabled,
4658
4601
  States.loading
4659
4602
  ];
@@ -4663,21 +4606,21 @@ var InputLoadingIcon = (props) => {
4663
4606
  loading
4664
4607
  } = props;
4665
4608
  if (disabled || !loading) {
4666
- return /* @__PURE__ */ jsx19(Fragment6, {});
4609
+ return /* @__PURE__ */ jsx14(Fragment6, {});
4667
4610
  }
4668
- return /* @__PURE__ */ jsx19(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4611
+ return /* @__PURE__ */ jsx14(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4669
4612
  };
4670
4613
 
4671
4614
  // src/input/input-validation-icon.tsx
4672
- import { Fragment as Fragment7, jsx as jsx20 } from "react/jsx-runtime";
4615
+ import { Fragment as Fragment7, jsx as jsx15 } from "react/jsx-runtime";
4673
4616
  var className6 = `k-input-validation-icon`;
4674
- var states12 = [
4617
+ var states11 = [
4675
4618
  States.valid,
4676
4619
  States.invalid,
4677
4620
  States.disabled,
4678
4621
  States.loading
4679
4622
  ];
4680
- var options11 = {};
4623
+ var options10 = {};
4681
4624
  var InputValidationIcon = (props) => {
4682
4625
  const {
4683
4626
  valid,
@@ -4688,100 +4631,62 @@ var InputValidationIcon = (props) => {
4688
4631
  const iconName = invalid ? "exclamation-circle" : "check";
4689
4632
  const renderValidationIcon = Boolean(valid || invalid);
4690
4633
  if (disabled || loading || !renderValidationIcon) {
4691
- return /* @__PURE__ */ jsx20(Fragment7, {});
4634
+ return /* @__PURE__ */ jsx15(Fragment7, {});
4692
4635
  }
4693
- return /* @__PURE__ */ jsx20(Icon, { className: classNames(className6), icon: iconName });
4636
+ return /* @__PURE__ */ jsx15(Icon, { className: classNames(className6), icon: iconName });
4694
4637
  };
4695
- InputValidationIcon.states = states12;
4696
- InputValidationIcon.options = options11;
4638
+ InputValidationIcon.states = states11;
4639
+ InputValidationIcon.options = options10;
4697
4640
  InputValidationIcon.className = className6;
4698
4641
 
4699
4642
  // src/input/input-prefix.tsx
4700
- import { Fragment as Fragment8, jsx as jsx21 } from "react/jsx-runtime";
4643
+ import { Fragment as Fragment8, jsx as jsx16 } from "react/jsx-runtime";
4701
4644
  var className7 = `k-input-prefix`;
4702
4645
  var InputPrefix = (props) => {
4703
4646
  if (!props.children) {
4704
- return /* @__PURE__ */ jsx21(Fragment8, {});
4647
+ return /* @__PURE__ */ jsx16(Fragment8, {});
4705
4648
  }
4706
- return /* @__PURE__ */ jsx21("span", { className: classNames(className7, props.className), children: props.children });
4649
+ return /* @__PURE__ */ jsx16("span", { className: classNames(className7, props.className), children: props.children });
4707
4650
  };
4708
4651
 
4709
4652
  // src/input/input-suffix.tsx
4710
- import { Fragment as Fragment9, jsx as jsx22 } from "react/jsx-runtime";
4653
+ import { Fragment as Fragment9, jsx as jsx17 } from "react/jsx-runtime";
4711
4654
  var className8 = `k-input-suffix`;
4712
4655
  var InputSuffix = (props) => {
4713
4656
  if (!props.children) {
4714
- return /* @__PURE__ */ jsx22(Fragment9, {});
4657
+ return /* @__PURE__ */ jsx17(Fragment9, {});
4715
4658
  }
4716
- return /* @__PURE__ */ jsx22("span", { className: classNames(className8, props.className), children: props.children });
4659
+ return /* @__PURE__ */ jsx17("span", { className: classNames(className8, props.className), children: props.children });
4717
4660
  };
4718
4661
 
4719
4662
  // src/input/input-separator.tsx
4720
- import { jsx as jsx23 } from "react/jsx-runtime";
4721
-
4722
- // src/color-preview/color-preview.tsx
4723
- import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
4724
- var COLORPREVIEW_CLASSNAME = `k-color-preview`;
4725
- var states13 = [];
4726
- var options12 = {};
4727
- var ColorPreview = (props) => {
4728
- const {
4729
- color,
4730
- iconName,
4731
- ...other
4732
- } = props;
4733
- return /* @__PURE__ */ jsxs7(
4734
- "span",
4735
- {
4736
- ...other,
4737
- className: classNames(
4738
- props.className,
4739
- COLORPREVIEW_CLASSNAME,
4740
- {
4741
- "k-icon-color-preview": iconName,
4742
- "k-no-color": !color
4743
- }
4744
- ),
4745
- children: [
4746
- iconName && /* @__PURE__ */ jsx24(Icon, { icon: iconName, className: "k-color-preview-icon" }),
4747
- /* @__PURE__ */ jsx24(
4748
- "span",
4749
- {
4750
- className: "k-color-preview-mask",
4751
- style: { backgroundColor: color }
4752
- }
4753
- )
4754
- ]
4755
- }
4756
- );
4757
- };
4758
- ColorPreview.states = states13;
4759
- ColorPreview.options = options12;
4760
- ColorPreview.className = COLORPREVIEW_CLASSNAME;
4663
+ import { jsx as jsx18 } from "react/jsx-runtime";
4761
4664
 
4762
- // src/colorpicker/colorpicker.spec.tsx
4763
- import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
4764
- var COLORPICKER_CLASSNAME = `k-colorpicker`;
4765
- var states14 = [
4665
+ // src/textbox/textbox.spec.tsx
4666
+ import { jsx as jsx19, jsxs as jsxs3 } from "react/jsx-runtime";
4667
+ var TEXTBOX_CLASSNAME = `k-textbox`;
4668
+ var states12 = [
4766
4669
  States.hover,
4767
4670
  States.focus,
4768
4671
  States.valid,
4769
4672
  States.invalid,
4770
4673
  States.required,
4771
- States.disabled
4674
+ States.disabled,
4675
+ States.loading,
4676
+ States.readonly
4772
4677
  ];
4773
- var options13 = {
4678
+ var options11 = {
4774
4679
  size: [Size.small, Size.medium, Size.large],
4775
4680
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4776
4681
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4777
4682
  };
4778
- var defaultProps10 = {
4779
- arrowIconName: "caret-alt-down",
4780
- size: Picker.defaultProps.size,
4781
- rounded: Picker.defaultProps.rounded,
4782
- fillMode: Picker.defaultProps.fillMode
4683
+ var defaultProps9 = {
4684
+ showClearButton: true,
4685
+ size: Input.defaultProps.size,
4686
+ rounded: Input.defaultProps.rounded,
4687
+ fillMode: Input.defaultProps.fillMode
4783
4688
  };
4784
- var ColorPicker = (props) => {
4689
+ var Textbox = (props) => {
4785
4690
  const {
4786
4691
  prefix,
4787
4692
  suffix,
@@ -4795,13 +4700,14 @@ var ColorPicker = (props) => {
4795
4700
  valid,
4796
4701
  invalid,
4797
4702
  required,
4703
+ loading,
4798
4704
  disabled,
4799
- valueIconName,
4800
- arrowIconName = defaultProps10.arrowIconName,
4705
+ readonly,
4706
+ showClearButton = defaultProps9.showClearButton,
4801
4707
  ...other
4802
4708
  } = props;
4803
- return /* @__PURE__ */ jsxs8(
4804
- Picker,
4709
+ return /* @__PURE__ */ jsxs3(
4710
+ Input,
4805
4711
  {
4806
4712
  ...other,
4807
4713
  size,
@@ -4812,1986 +4718,76 @@ var ColorPicker = (props) => {
4812
4718
  valid,
4813
4719
  invalid,
4814
4720
  required,
4721
+ loading,
4815
4722
  disabled,
4816
- className: classNames(
4817
- props.className,
4818
- COLORPICKER_CLASSNAME,
4819
- "k-icon-picker"
4820
- ),
4723
+ readonly,
4724
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
4821
4725
  children: [
4822
- /* @__PURE__ */ jsx25(InputPrefix, { children: prefix }),
4823
- /* @__PURE__ */ jsx25(
4824
- InputInnerSpan,
4726
+ /* @__PURE__ */ jsx19(InputPrefix, { children: prefix }),
4727
+ /* @__PURE__ */ jsx19(InputInnerInput, { placeholder, value }),
4728
+ /* @__PURE__ */ jsx19(
4729
+ InputValidationIcon,
4730
+ {
4731
+ valid,
4732
+ invalid,
4733
+ loading,
4734
+ disabled
4735
+ }
4736
+ ),
4737
+ /* @__PURE__ */ jsx19(
4738
+ InputLoadingIcon,
4825
4739
  {
4826
- placeholder,
4827
- value,
4828
- showValue: false,
4829
- valueIcon: /* @__PURE__ */ jsx25(
4830
- ColorPreview,
4831
- {
4832
- className: "k-value-icon",
4833
- color: value,
4834
- iconName: valueIconName
4835
- }
4836
- ),
4837
- valueIconName
4740
+ loading,
4741
+ disabled
4838
4742
  }
4839
4743
  ),
4840
- /* @__PURE__ */ jsx25(InputSuffix, { children: suffix }),
4841
- /* @__PURE__ */ jsx25(
4842
- Button,
4744
+ showClearButton && /* @__PURE__ */ jsx19(
4745
+ InputClearValue,
4843
4746
  {
4844
- className: "k-input-button",
4845
- icon: arrowIconName,
4846
- rounded: null,
4847
- size,
4848
- fillMode
4747
+ loading,
4748
+ disabled,
4749
+ readonly,
4750
+ value
4849
4751
  }
4850
- )
4752
+ ),
4753
+ /* @__PURE__ */ jsx19(InputSuffix, { children: suffix })
4851
4754
  ]
4852
4755
  }
4853
4756
  );
4854
4757
  };
4855
- ColorPicker.states = states14;
4856
- ColorPicker.options = options13;
4857
- ColorPicker.className = COLORPICKER_CLASSNAME;
4858
- ColorPicker.defaultProps = defaultProps10;
4859
-
4860
- // src/animation-container/animation-container.spec.tsx
4861
- import { jsx as jsx26 } from "react/jsx-runtime";
4862
- var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4863
- var states15 = [];
4864
- var options14 = {};
4865
- var defaultProps11 = {
4866
- positionMode: "absolute"
4867
- };
4868
- var AnimationContainer = (props) => {
4869
- const {
4870
- positionMode,
4871
- animationStyle,
4872
- offset,
4873
- ...other
4874
- } = props;
4875
- return /* @__PURE__ */ jsx26(
4876
- "div",
4877
- {
4878
- ...other,
4879
- style: { ...offset, ...props.style },
4880
- className: classNames(
4881
- ANIMATION_CONTAINER_CLASSNAME,
4882
- "k-animation-container-shown",
4883
- {
4884
- ["k-animation-container-fixed"]: positionMode === "fixed"
4885
- }
4886
- ),
4887
- children: /* @__PURE__ */ jsx26("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4888
- }
4889
- );
4890
- };
4891
- AnimationContainer.states = states15;
4892
- AnimationContainer.options = options14;
4893
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
4894
- AnimationContainer.defaultProps = defaultProps11;
4895
-
4896
- // src/popup/popup.spec.tsx
4897
- import { jsx as jsx27 } from "react/jsx-runtime";
4898
- var POPUP_CLASSNAME = `k-popup`;
4899
- var states16 = [];
4900
- var options15 = {};
4901
- var defaultProps12 = {
4902
- positionMode: "absolute"
4903
- };
4904
- var Popup = (props) => {
4905
- const {
4906
- offset,
4907
- positionMode,
4908
- ...other
4909
- } = props;
4910
- return /* @__PURE__ */ jsx27(
4911
- AnimationContainer,
4912
- {
4913
- positionMode,
4914
- offset,
4915
- children: /* @__PURE__ */ jsx27("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4916
- }
4917
- );
4918
- };
4919
- Popup.states = states16;
4920
- Popup.options = options15;
4921
- Popup.className = POPUP_CLASSNAME;
4922
- Popup.defaultProps = defaultProps12;
4758
+ Textbox.states = states12;
4759
+ Textbox.options = options11;
4760
+ Textbox.className = TEXTBOX_CLASSNAME;
4761
+ Textbox.defaultProps = defaultProps9;
4923
4762
 
4924
- // src/action-sheet/action-sheet.spec.tsx
4925
- import { Fragment as Fragment10, jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
4926
- var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
4927
- var states17 = [];
4928
- var options16 = {};
4929
- var defaultProps13 = {
4930
- side: "bottom",
4931
- fullscreen: false,
4932
- adaptive: false,
4933
- overlay: true
4934
- };
4935
- var ActionSheet = (props) => {
4936
- const {
4937
- children,
4938
- title,
4939
- header,
4940
- footer,
4941
- actions,
4942
- side = defaultProps13.side,
4943
- fullscreen = defaultProps13.fullscreen,
4944
- adaptive = defaultProps13.adaptive,
4945
- overlay = defaultProps13.overlay,
4946
- ...other
4947
- } = props;
4948
- const _ActionSheetHeader = title ? /* @__PURE__ */ jsx28(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
4949
- const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx28(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx28(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
4950
- const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
4951
- switch (child.type) {
4952
- case ActionSheetHeader:
4953
- case ActionSheetFooter:
4954
- return false;
4955
- default:
4956
- return true;
4957
- }
4958
- return true;
4959
- }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx28(Fragment10, {});
4960
- return /* @__PURE__ */ jsxs9("div", { className: "k-actionsheet-container", children: [
4961
- overlay && /* @__PURE__ */ jsx28("div", { className: "k-overlay" }),
4962
- /* @__PURE__ */ jsx28(
4963
- AnimationContainer,
4964
- {
4965
- animationStyle: {
4966
- [`${fullscreen === true ? "top" : side}`]: 0,
4967
- [`${fullscreen === true ? "width" : null}`]: "100%",
4968
- [`${fullscreen === true ? "height" : null}`]: "100%",
4969
- [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
4970
- [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
4971
- },
4972
- children: /* @__PURE__ */ jsx28(
4973
- "div",
4974
- {
4975
- ...other,
4976
- className: classNames(
4977
- props.className,
4978
- ACTIONSHEET_CLASSNAME,
4979
- {
4980
- [`k-actionsheet-${side}`]: fullscreen === false,
4981
- "k-actionsheet-fullscreen": fullscreen === true,
4982
- "k-adaptive-actionsheet": adaptive
4983
- }
4984
- ),
4985
- children: /* @__PURE__ */ jsxs9(Fragment10, { children: [
4986
- _ActionSheetHeader,
4987
- /* @__PURE__ */ jsx28("div", { className: classNames(
4988
- "k-actionsheet-content",
4989
- {
4990
- "!k-overflow-hidden": adaptive
4991
- }
4992
- ), children: _ActionSheetContent }),
4993
- _ActionSheetFooter
4994
- ] })
4995
- }
4996
- )
4997
- }
4998
- )
4999
- ] });
5000
- };
5001
- ActionSheet.states = states17;
5002
- ActionSheet.options = options16;
5003
- ActionSheet.className = ACTIONSHEET_CLASSNAME;
5004
- ActionSheet.defaultProps = defaultProps13;
4763
+ // src/textbox/templates/textbox-normal.tsx
4764
+ import { jsx as jsx20 } from "react/jsx-runtime";
5005
4765
 
5006
- // src/searchbox/searchbox.spec.tsx
5007
- import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
5008
- var SEARCHBOX_CLASSNAME = `k-searchbox`;
5009
- var states18 = [
5010
- States.hover,
5011
- States.focus,
5012
- States.valid,
5013
- States.invalid,
5014
- States.required,
5015
- States.disabled,
5016
- States.loading
5017
- ];
5018
- var options17 = {
5019
- size: [Size.small, Size.medium, Size.large],
5020
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5021
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5022
- };
5023
- var defaultProps14 = {
5024
- showIcon: true,
5025
- icon: "search",
5026
- size: Input.defaultProps.size,
5027
- rounded: Input.defaultProps.rounded,
5028
- fillMode: Input.defaultProps.fillMode
5029
- };
5030
- var Searchbox = (props) => {
5031
- const {
5032
- value,
5033
- placeholder,
5034
- size,
5035
- rounded,
5036
- fillMode,
5037
- hover,
5038
- focus,
5039
- valid,
5040
- invalid,
5041
- required,
5042
- loading,
5043
- disabled,
5044
- showIcon = defaultProps14.showIcon,
5045
- icon = defaultProps14.icon,
5046
- ...other
5047
- } = props;
5048
- return /* @__PURE__ */ jsxs10(
5049
- Input,
5050
- {
5051
- ...other,
5052
- size,
5053
- rounded,
5054
- fillMode,
5055
- hover,
5056
- focus,
5057
- valid,
5058
- invalid,
5059
- required,
5060
- loading,
5061
- disabled,
5062
- className: classNames(props.className, SEARCHBOX_CLASSNAME),
5063
- children: [
5064
- showIcon && /* @__PURE__ */ jsx29(Icon, { className: "k-input-icon", icon }),
5065
- /* @__PURE__ */ jsx29(InputInnerInput, { placeholder, value }),
5066
- /* @__PURE__ */ jsx29(InputLoadingIcon, { ...props }),
5067
- /* @__PURE__ */ jsx29(InputValidationIcon, { ...props }),
5068
- /* @__PURE__ */ jsx29(InputClearValue, { ...props })
5069
- ]
5070
- }
5071
- );
5072
- };
5073
- Searchbox.states = states18;
5074
- Searchbox.options = options17;
5075
- Searchbox.className = SEARCHBOX_CLASSNAME;
5076
- Searchbox.defaultProps = defaultProps14;
4766
+ // src/textbox/templates/textbox-prefix.tsx
4767
+ import { jsx as jsx21, jsxs as jsxs4 } from "react/jsx-runtime";
5077
4768
 
5078
- // src/searchbox/templates/searchbox-normal.tsx
5079
- import { jsx as jsx30 } from "react/jsx-runtime";
4769
+ // src/textbox/templates/textbox-suffix.tsx
4770
+ import { jsx as jsx22, jsxs as jsxs5 } from "react/jsx-runtime";
5080
4771
 
5081
- // src/action-sheet/actionsheet-header.tsx
5082
- import { Fragment as Fragment11, jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
5083
- var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5084
- var ActionSheetHeader = (props) => {
5085
- const {
5086
- title,
5087
- subTitle,
5088
- actions,
5089
- filter,
5090
- ...other
5091
- } = props;
5092
- return /* @__PURE__ */ jsx31(
5093
- "div",
5094
- {
5095
- ...other,
5096
- className: classNames(
5097
- props.className,
5098
- ACTIONSHEETHEADER_CLASSNAME
5099
- ),
5100
- children: /* @__PURE__ */ jsxs11(Fragment11, { children: [
5101
- /* @__PURE__ */ jsxs11("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5102
- !props.children && (title || subTitle) && /* @__PURE__ */ jsx31(Fragment11, { children: /* @__PURE__ */ jsxs11("div", { className: "k-actionsheet-title", children: [
5103
- title !== "" && /* @__PURE__ */ jsx31("div", { className: "k-text-center", children: title }),
5104
- subTitle !== "" && /* @__PURE__ */ jsx31("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5105
- ] }) }),
5106
- props.children && /* @__PURE__ */ jsx31("div", { className: "k-actionsheet-title", children: props.children }),
5107
- actions && /* @__PURE__ */ jsx31(Fragment11, { children: /* @__PURE__ */ jsx31("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx31(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5108
- ] }),
5109
- filter && /* @__PURE__ */ jsx31(Fragment11, { children: /* @__PURE__ */ jsx31("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx31(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5110
- ] })
5111
- }
5112
- );
4772
+ // src/chat/chat.spec.tsx
4773
+ import { Fragment as Fragment10, jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
4774
+ var CHAT_CLASSNAME = "k-chat";
4775
+ var states13 = [];
4776
+ var options12 = {};
4777
+ var defaultOptions = {
4778
+ showToolbar: true,
4779
+ showMessageBox: true,
4780
+ showMoreButton: true
5113
4781
  };
5114
-
5115
- // src/action-buttons/action-buttons.spec.tsx
5116
- import { jsx as jsx32 } from "react/jsx-runtime";
5117
- var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5118
- var states19 = [];
5119
- var options18 = {};
5120
- var defaultProps15 = {
5121
- alignment: "start",
5122
- orientation: "horizontal"
5123
- };
5124
- var ActionButtons = (props) => {
4782
+ var Chat = (props) => {
5125
4783
  const {
5126
- alignment = defaultProps15.alignment,
5127
- orientation = defaultProps15.orientation,
4784
+ dir,
4785
+ showToolbar = defaultOptions.showToolbar,
4786
+ showMessageBox = defaultOptions.showMessageBox,
4787
+ showMoreButton = defaultOptions.showMoreButton,
5128
4788
  ...other
5129
4789
  } = props;
5130
- return /* @__PURE__ */ jsx32(
5131
- "div",
5132
- {
5133
- ...other,
5134
- className: classNames(
5135
- ACTIONBUTTONS_CLASSNAME,
5136
- {
5137
- [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5138
- [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5139
- },
5140
- props.className
5141
- ),
5142
- children: props.children
5143
- }
5144
- );
5145
- };
5146
- ActionButtons.states = states19;
5147
- ActionButtons.options = options18;
5148
- ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5149
- ActionButtons.defaultProps = defaultProps15;
5150
- var action_buttons_spec_default = ActionButtons;
5151
-
5152
- // src/action-sheet/actionsheet-footer.tsx
5153
- import { Fragment as Fragment12, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
5154
- var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5155
- var ActionSheetFooter = (props) => {
5156
- const {
5157
- actions,
5158
- ...other
5159
- } = props;
5160
- return /* @__PURE__ */ jsx33(
5161
- action_buttons_spec_default,
5162
- {
5163
- ...other,
5164
- className: classNames(
5165
- props.className,
5166
- ACTIONSHEETFOOTER_CLASSNAME
5167
- ),
5168
- alignment: "stretched",
5169
- children: /* @__PURE__ */ jsxs12(Fragment12, { children: [
5170
- actions && actions.map((action, index) => {
5171
- if (action === "|") {
5172
- return /* @__PURE__ */ jsx33("span", { className: "k-separator" }, index);
5173
- }
5174
- if (action === " ") {
5175
- return /* @__PURE__ */ jsx33("span", { className: "k-spacer" }, index);
5176
- }
5177
- const importantFlag = action.startsWith("!");
5178
- const actionName = importantFlag ? action.substring(1) : action;
5179
- return /* @__PURE__ */ jsx33(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5180
- }),
5181
- !actions && props.children
5182
- ] })
5183
- }
5184
- );
5185
- };
5186
-
5187
- // src/action-sheet/actionsheet-items.tsx
5188
- import { jsx as jsx34 } from "react/jsx-runtime";
5189
- var ActionSheetItems = (props) => {
5190
- const {
5191
- ...other
5192
- } = props;
5193
- return /* @__PURE__ */ jsx34(
5194
- "div",
5195
- {
5196
- ...other,
5197
- className: classNames(
5198
- props.className,
5199
- "k-list-ul"
5200
- ),
5201
- children: props.children
5202
- }
5203
- );
5204
- };
5205
-
5206
- // src/action-sheet/actionsheet-item.tsx
5207
- import { Fragment as Fragment13, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
5208
- var states20 = [
5209
- States.hover,
5210
- States.focus,
5211
- States.selected,
5212
- States.disabled
5213
- ];
5214
-
5215
- // src/nodata/nodata.tsx
5216
- import { jsx as jsx36 } from "react/jsx-runtime";
5217
- var className9 = `k-nodata`;
5218
- var NoData = (props) => /* @__PURE__ */ jsx36("span", { className: classNames(className9, props.className), children: props.children });
5219
-
5220
- // src/list/list.spec.tsx
5221
- import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
5222
- var LIST_CLASSNAME = `k-list`;
5223
- var states21 = [];
5224
- var options19 = {
5225
- size: [Size.small, Size.medium, Size.large]
5226
- };
5227
- var defaultProps16 = {
5228
- size: Size.medium
5229
- };
5230
- var List = (props) => {
5231
- const {
5232
- size = defaultProps16.size,
5233
- virtualization,
5234
- children,
5235
- optionLabel,
5236
- ...other
5237
- } = props;
5238
- let listHeader;
5239
- let listGroup;
5240
- let listContent;
5241
- const listChildren = [];
5242
- if (children) {
5243
- children.map((child, index) => {
5244
- if (child.type === ListGroup) {
5245
- if (child.props.root === true) {
5246
- listHeader = child.props.label;
5247
- child.props.children.map((optChild, index2) => {
5248
- listChildren.push(
5249
- /* @__PURE__ */ jsx37(
5250
- ListItem,
5251
- {
5252
- ...optChild.props
5253
- },
5254
- `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5255
- )
5256
- );
5257
- });
5258
- } else {
5259
- child.props.children.forEach((optChild, index2) => {
5260
- let groupLabel = "";
5261
- if (index2 === 0) {
5262
- groupLabel = child.props.label;
5263
- }
5264
- listChildren.push(
5265
- /* @__PURE__ */ jsx37(
5266
- ListItem,
5267
- {
5268
- className: index2 === 0 ? "k-first" : "",
5269
- ...optChild.props,
5270
- groupLabel
5271
- },
5272
- `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5273
- )
5274
- );
5275
- });
5276
- }
5277
- listGroup = /* @__PURE__ */ jsx37(ListGroup, { label: listHeader, virtualization, children: listChildren });
5278
- } else if (child.type === ListItem) {
5279
- listChildren.push(/* @__PURE__ */ jsx37(ListItem, { ...child.props }, `${child.type}-${index}`));
5280
- listContent = /* @__PURE__ */ jsx37(ListContent, { virtualization, children: listChildren });
5281
- }
5282
- });
5283
- } else {
5284
- listContent = /* @__PURE__ */ jsx37(NoData, { children: "No data found." });
5285
- }
5286
- return /* @__PURE__ */ jsxs14(
5287
- "div",
5288
- {
5289
- ...other,
5290
- className: classNames(
5291
- props.className,
5292
- LIST_CLASSNAME,
5293
- optionClassNames(LIST_CLASSNAME, {
5294
- size
5295
- }),
5296
- {
5297
- ["k-virtual-list"]: virtualization
5298
- }
5299
- ),
5300
- children: [
5301
- optionLabel,
5302
- listGroup,
5303
- listContent
5304
- ]
5305
- }
5306
- );
5307
- };
5308
- List.states = states21;
5309
- List.options = options19;
5310
- List.className = LIST_CLASSNAME;
5311
- List.defaultProps = defaultProps16;
5312
-
5313
- // src/list/list-angular.spec.tsx
5314
- import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
5315
- var LISTANGULAR_CLASSNAME = `k-list`;
5316
- var states22 = [];
5317
- var options20 = {
5318
- size: [Size.small, Size.medium, Size.large]
5319
- };
5320
- var defaultProps17 = {
5321
- size: Size.medium
5322
- };
5323
- var ListAngular = (props) => {
5324
- const {
5325
- size = defaultProps17.size,
5326
- virtualization,
5327
- children,
5328
- ...other
5329
- } = props;
5330
- let listHeader;
5331
- let listGroup;
5332
- let listContent;
5333
- const listChildren = [];
5334
- if (children) {
5335
- children.map((child, index) => {
5336
- if (child.type === ListGroup) {
5337
- if (child.props.root === true) {
5338
- listHeader = child.props.label;
5339
- child.props.children.map((optChild, index2) => {
5340
- listChildren.push(
5341
- /* @__PURE__ */ jsx38(
5342
- ListItem,
5343
- {
5344
- ...optChild.props
5345
- },
5346
- `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5347
- )
5348
- );
5349
- });
5350
- } else {
5351
- listChildren.push(
5352
- /* @__PURE__ */ jsx38(
5353
- ListGroupItem,
5354
- {
5355
- ...child.props,
5356
- children: child.props.label
5357
- },
5358
- `listChild-${index}`
5359
- )
5360
- );
5361
- child.props.children.map((optChild, index2) => {
5362
- listChildren.push(
5363
- /* @__PURE__ */ jsx38(
5364
- ListItem,
5365
- {
5366
- ...optChild.props
5367
- },
5368
- `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5369
- )
5370
- );
5371
- });
5372
- }
5373
- listGroup = /* @__PURE__ */ jsx38(ListGroup, { label: listHeader, virtualization, children: listChildren });
5374
- } else if (child.type === ListItem) {
5375
- listChildren.push(/* @__PURE__ */ jsx38(ListItem, { ...child.props }, `${child.type}-${index}`));
5376
- listContent = /* @__PURE__ */ jsx38(ListContent, { virtualization, children: listChildren });
5377
- }
5378
- });
5379
- } else {
5380
- listContent = /* @__PURE__ */ jsx38(NoData, { children: "No data found." });
5381
- }
5382
- return /* @__PURE__ */ jsxs15(
5383
- "div",
5384
- {
5385
- ...other,
5386
- className: classNames(
5387
- props.className,
5388
- LISTANGULAR_CLASSNAME,
5389
- optionClassNames(LISTANGULAR_CLASSNAME, {
5390
- size
5391
- }),
5392
- {
5393
- ["k-virtual-list"]: virtualization
5394
- }
5395
- ),
5396
- children: [
5397
- listGroup,
5398
- listContent
5399
- ]
5400
- }
5401
- );
5402
- };
5403
- ListAngular.states = states22;
5404
- ListAngular.options = options20;
5405
- ListAngular.className = LISTANGULAR_CLASSNAME;
5406
- ListAngular.defaultProps = defaultProps17;
5407
-
5408
- // src/checkbox/checkbox.spec.tsx
5409
- import { jsx as jsx39 } from "react/jsx-runtime";
5410
- var CHECKBOX_CLASSNAME = `k-checkbox`;
5411
- var states23 = [
5412
- States.hover,
5413
- States.focus,
5414
- States.valid,
5415
- States.invalid,
5416
- States.required,
5417
- States.disabled,
5418
- States.checked,
5419
- States.indeterminate
5420
- ];
5421
- var options21 = {
5422
- size: [Size.small, Size.medium, Size.large],
5423
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5424
- };
5425
- var defaultProps18 = {
5426
- size: Size.medium,
5427
- rounded: Roundness.medium
5428
- };
5429
- var Checkbox = (props) => {
5430
- const {
5431
- id,
5432
- checked,
5433
- indeterminate,
5434
- hover,
5435
- focus,
5436
- disabled,
5437
- invalid,
5438
- valid,
5439
- required,
5440
- size = defaultProps18.size,
5441
- rounded = defaultProps18.rounded,
5442
- ...other
5443
- } = props;
5444
- return /* @__PURE__ */ jsx39("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx39(
5445
- "input",
5446
- {
5447
- ...other,
5448
- id,
5449
- type: "checkbox",
5450
- checked,
5451
- required,
5452
- className: classNames(
5453
- props.className,
5454
- CHECKBOX_CLASSNAME,
5455
- optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5456
- stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5457
- )
5458
- }
5459
- ) });
5460
- };
5461
- Checkbox.states = states23;
5462
- Checkbox.options = options21;
5463
- Checkbox.className = CHECKBOX_CLASSNAME;
5464
- Checkbox.defaultProps = defaultProps18;
5465
-
5466
- // src/checkbox/templates/checkbox-label.tsx
5467
- import { Fragment as Fragment14, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
5468
-
5469
- // src/checkbox/templates/checkbox-normal.tsx
5470
- import { jsx as jsx41 } from "react/jsx-runtime";
5471
-
5472
- // src/list/list-item.spec.tsx
5473
- import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
5474
- var LISTITEM_CLASSNAME = `k-list-item`;
5475
- var states24 = [
5476
- States.hover,
5477
- States.focus,
5478
- States.selected,
5479
- States.disabled
5480
- ];
5481
- var options22 = {};
5482
- var defaultProps19 = {};
5483
- var ListItem = (props) => {
5484
- const {
5485
- text,
5486
- groupLabel,
5487
- showIcon,
5488
- iconName,
5489
- showCheckbox,
5490
- checked,
5491
- hover,
5492
- focus,
5493
- selected,
5494
- disabled,
5495
- ...other
5496
- } = props;
5497
- const textOrChildren = text ? text : props.children;
5498
- return /* @__PURE__ */ jsxs17(
5499
- "li",
5500
- {
5501
- ...other,
5502
- className: classNames(
5503
- props.className,
5504
- LISTITEM_CLASSNAME,
5505
- stateClassNames(LISTITEM_CLASSNAME, {
5506
- hover,
5507
- focus,
5508
- disabled,
5509
- selected
5510
- })
5511
- ),
5512
- children: [
5513
- showCheckbox && /* @__PURE__ */ jsx42(Checkbox, { checked }),
5514
- showIcon && /* @__PURE__ */ jsx42(Icon, { icon: iconName }),
5515
- /* @__PURE__ */ jsx42("span", { className: "k-list-item-text", children: textOrChildren }),
5516
- groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx42("div", { className: "k-list-item-group-label", children: groupLabel })
5517
- ]
5518
- }
5519
- );
5520
- };
5521
- ListItem.states = states24;
5522
- ListItem.options = options22;
5523
- ListItem.className = LISTITEM_CLASSNAME;
5524
- ListItem.defaultProps = defaultProps19;
5525
-
5526
- // src/list/list-content.tsx
5527
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
5528
- var className10 = `k-list-content`;
5529
- var ListContent = (props) => {
5530
- const {
5531
- virtualization
5532
- } = props;
5533
- return /* @__PURE__ */ jsxs18("div", { className: classNames(className10, props.className), children: [
5534
- /* @__PURE__ */ jsx43("ul", { className: classNames("k-list-ul"), children: props.children }),
5535
- virtualization && /* @__PURE__ */ jsx43("div", { className: "k-height-container", children: /* @__PURE__ */ jsx43("div", {}) })
5536
- ] });
5537
- };
5538
-
5539
- // src/list/list-header.tsx
5540
- import { jsx as jsx44 } from "react/jsx-runtime";
5541
- var className11 = `k-list-group-sticky-header`;
5542
- var ListHeader = (props) => /* @__PURE__ */ jsx44("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ jsx44("div", { className: "k-list-header-text", children: props.children }) });
5543
-
5544
- // src/list/list-group.tsx
5545
- import { Fragment as Fragment15, jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
5546
- var ListGroup = (props) => {
5547
- const {
5548
- virtualization,
5549
- label
5550
- } = props;
5551
- return /* @__PURE__ */ jsxs19(Fragment15, { children: [
5552
- label && /* @__PURE__ */ jsx45(ListHeader, { children: label }),
5553
- props.children && /* @__PURE__ */ jsx45(ListContent, { virtualization, children: props.children })
5554
- ] });
5555
- };
5556
-
5557
- // src/list/list-group-item.tsx
5558
- import { jsx as jsx46 } from "react/jsx-runtime";
5559
- var className12 = `k-list-group-item`;
5560
- var ListGroupItem = (props) => /* @__PURE__ */ jsx46("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ jsx46("span", { className: "k-list-item-text", children: props.children }) });
5561
-
5562
- // src/list/list-option-label.tsx
5563
- import { jsx as jsx47 } from "react/jsx-runtime";
5564
- var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5565
- var states25 = [
5566
- States.hover,
5567
- States.focus,
5568
- States.selected,
5569
- States.disabled
5570
- ];
5571
- var options23 = {};
5572
- var defaultProps20 = {};
5573
- var ListOptionLabel = (props) => {
5574
- const {
5575
- text,
5576
- hover,
5577
- focus,
5578
- selected,
5579
- disabled,
5580
- ...other
5581
- } = props;
5582
- return /* @__PURE__ */ jsx47(
5583
- "div",
5584
- {
5585
- ...other,
5586
- className: classNames(
5587
- LIST_OPTIONLABEL_CLASSNAME,
5588
- stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
5589
- hover,
5590
- focus,
5591
- selected,
5592
- disabled
5593
- })
5594
- ),
5595
- children: text
5596
- }
5597
- );
5598
- };
5599
- ListOptionLabel.states = states25;
5600
- ListOptionLabel.options = options23;
5601
- ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5602
- ListOptionLabel.defaultProps = defaultProps20;
5603
-
5604
- // src/list/templates/list-normal.tsx
5605
- import { jsx as jsx48 } from "react/jsx-runtime";
5606
-
5607
- // src/list/templates/list-virtualization.tsx
5608
- import { jsx as jsx49 } from "react/jsx-runtime";
5609
-
5610
- // src/list/templates/list-grouping.tsx
5611
- import { jsx as jsx50, jsxs as jsxs20 } from "react/jsx-runtime";
5612
-
5613
- // src/list/templates/list-virualization-grouping.tsx
5614
- import { jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
5615
-
5616
- // src/list/templates/list-virtualization-angular.tsx
5617
- import { jsx as jsx52 } from "react/jsx-runtime";
5618
-
5619
- // src/list/templates/list-grouping-angular.tsx
5620
- import { jsx as jsx53, jsxs as jsxs22 } from "react/jsx-runtime";
5621
-
5622
- // src/list/templates/list-virualization-grouping-angular.tsx
5623
- import { jsx as jsx54, jsxs as jsxs23 } from "react/jsx-runtime";
5624
-
5625
- // src/combobox/combobox.spec.tsx
5626
- import { Fragment as Fragment16, jsx as jsx55, jsxs as jsxs24 } from "react/jsx-runtime";
5627
- var COMBOBOX_CLASSNAME = `k-combobox`;
5628
- var states26 = [
5629
- States.hover,
5630
- States.focus,
5631
- States.valid,
5632
- States.invalid,
5633
- States.loading,
5634
- States.required,
5635
- States.disabled,
5636
- States.readonly
5637
- ];
5638
- var defaultProps21 = {
5639
- size: Input.defaultProps.size,
5640
- rounded: Input.defaultProps.rounded,
5641
- fillMode: Input.defaultProps.fillMode
5642
- };
5643
- var options24 = {
5644
- size: [Size.small, Size.medium, Size.large],
5645
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5646
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5647
- };
5648
- var Combobox = (props) => {
5649
- const {
5650
- prefix,
5651
- suffix,
5652
- value,
5653
- placeholder,
5654
- size,
5655
- rounded,
5656
- fillMode,
5657
- hover,
5658
- focus,
5659
- valid,
5660
- invalid,
5661
- required,
5662
- loading,
5663
- disabled,
5664
- popup,
5665
- opened,
5666
- readonly,
5667
- adaptive,
5668
- adaptiveSettings,
5669
- ...other
5670
- } = props;
5671
- return /* @__PURE__ */ jsxs24(Fragment16, { children: [
5672
- /* @__PURE__ */ jsxs24(
5673
- Input,
5674
- {
5675
- ...other,
5676
- size,
5677
- rounded,
5678
- fillMode,
5679
- hover,
5680
- focus,
5681
- valid,
5682
- invalid,
5683
- required,
5684
- loading,
5685
- disabled,
5686
- readonly,
5687
- className: classNames(props.className, COMBOBOX_CLASSNAME),
5688
- children: [
5689
- /* @__PURE__ */ jsx55(InputPrefix, { children: prefix }),
5690
- /* @__PURE__ */ jsx55(InputInnerInput, { placeholder, value }),
5691
- /* @__PURE__ */ jsx55(
5692
- InputValidationIcon,
5693
- {
5694
- valid,
5695
- invalid,
5696
- loading,
5697
- disabled
5698
- }
5699
- ),
5700
- /* @__PURE__ */ jsx55(
5701
- InputLoadingIcon,
5702
- {
5703
- loading,
5704
- disabled
5705
- }
5706
- ),
5707
- /* @__PURE__ */ jsx55(
5708
- InputClearValue,
5709
- {
5710
- loading,
5711
- disabled,
5712
- readonly,
5713
- value
5714
- }
5715
- ),
5716
- /* @__PURE__ */ jsx55(InputSuffix, { children: suffix }),
5717
- /* @__PURE__ */ jsx55(
5718
- Button,
5719
- {
5720
- className: "k-input-button",
5721
- icon: "caret-alt-down",
5722
- rounded: null,
5723
- size,
5724
- fillMode
5725
- }
5726
- )
5727
- ]
5728
- }
5729
- ),
5730
- opened && popup && /* @__PURE__ */ jsx55(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
5731
- adaptive && /* @__PURE__ */ jsxs24(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5732
- /* @__PURE__ */ jsx55(
5733
- ActionSheetHeader,
5734
- {
5735
- actions: ["x"],
5736
- filter: true,
5737
- title: "Select Item"
5738
- }
5739
- ),
5740
- /* @__PURE__ */ jsx55("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs24(List, { size: "large", children: [
5741
- /* @__PURE__ */ jsx55(ListItem, { text: "List item" }),
5742
- /* @__PURE__ */ jsx55(ListItem, { text: "List item" }),
5743
- /* @__PURE__ */ jsx55(ListItem, { text: "List item" })
5744
- ] }) })
5745
- ] })
5746
- ] });
5747
- };
5748
- Combobox.states = states26;
5749
- Combobox.options = options24;
5750
- Combobox.className = COMBOBOX_CLASSNAME;
5751
- Combobox.defaultProps = defaultProps21;
5752
-
5753
- // src/combobox/templates/combobox-normal.tsx
5754
- import { jsx as jsx56 } from "react/jsx-runtime";
5755
-
5756
- // src/combobox/templates/combobox-popup.tsx
5757
- import { jsx as jsx57, jsxs as jsxs25 } from "react/jsx-runtime";
5758
-
5759
- // src/combobox/templates/combobox-grouping.tsx
5760
- import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
5761
-
5762
- // src/combobox/templates/combobox-adaptive.tsx
5763
- import { jsx as jsx59 } from "react/jsx-runtime";
5764
-
5765
- // src/dropdownlist/dropdownlist.spec.tsx
5766
- import { Fragment as Fragment17, jsx as jsx60, jsxs as jsxs27 } from "react/jsx-runtime";
5767
- var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
5768
- var states27 = [
5769
- States.hover,
5770
- States.focus,
5771
- States.valid,
5772
- States.invalid,
5773
- States.required,
5774
- States.disabled,
5775
- States.loading,
5776
- States.readonly
5777
- ];
5778
- var options25 = {
5779
- size: [Size.small, Size.medium, Size.large],
5780
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5781
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5782
- };
5783
- var defaultProps22 = {
5784
- showValue: true,
5785
- arrowIconName: "caret-alt-down",
5786
- size: Size.medium,
5787
- rounded: Roundness.medium,
5788
- fillMode: FillMode.solid
5789
- };
5790
- var DropdownList = (props) => {
5791
- const {
5792
- valueIconName,
5793
- arrowIconName = defaultProps22.arrowIconName,
5794
- prefix,
5795
- suffix,
5796
- value,
5797
- placeholder,
5798
- size,
5799
- rounded,
5800
- fillMode,
5801
- hover,
5802
- focus,
5803
- valid,
5804
- invalid,
5805
- required,
5806
- loading,
5807
- disabled,
5808
- readonly,
5809
- showValue = defaultProps22.showValue,
5810
- popup,
5811
- opened,
5812
- ...other
5813
- } = props;
5814
- return /* @__PURE__ */ jsxs27(Fragment17, { children: [
5815
- /* @__PURE__ */ jsxs27(
5816
- Picker,
5817
- {
5818
- ...other,
5819
- size,
5820
- rounded,
5821
- fillMode,
5822
- hover,
5823
- focus,
5824
- valid,
5825
- invalid,
5826
- required,
5827
- loading,
5828
- disabled,
5829
- readonly,
5830
- className: classNames(
5831
- props.className,
5832
- DROPDOWNLIST_CLASSNAME,
5833
- {
5834
- "k-icon-picker": !showValue && valueIconName
5835
- }
5836
- ),
5837
- children: [
5838
- /* @__PURE__ */ jsx60(InputPrefix, { children: prefix }),
5839
- /* @__PURE__ */ jsx60(
5840
- InputInnerSpan,
5841
- {
5842
- placeholder,
5843
- value,
5844
- showValue,
5845
- valueIconName
5846
- }
5847
- ),
5848
- /* @__PURE__ */ jsx60(
5849
- InputValidationIcon,
5850
- {
5851
- valid,
5852
- invalid,
5853
- loading,
5854
- disabled
5855
- }
5856
- ),
5857
- /* @__PURE__ */ jsx60(
5858
- InputLoadingIcon,
5859
- {
5860
- loading,
5861
- disabled
5862
- }
5863
- ),
5864
- /* @__PURE__ */ jsx60(InputSuffix, { children: suffix }),
5865
- /* @__PURE__ */ jsx60(
5866
- Button,
5867
- {
5868
- className: "k-input-button",
5869
- icon: arrowIconName,
5870
- rounded: null,
5871
- size: props.size,
5872
- fillMode: props.fillMode
5873
- }
5874
- )
5875
- ]
5876
- }
5877
- ),
5878
- opened && popup && /* @__PURE__ */ jsx60(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
5879
- ] });
5880
- };
5881
- DropdownList.states = states27;
5882
- DropdownList.options = options25;
5883
- DropdownList.className = DROPDOWNLIST_CLASSNAME;
5884
- DropdownList.defaultProps = defaultProps22;
5885
-
5886
- // src/dropdownlist/templates/dropdownlist-normal.tsx
5887
- import { jsx as jsx61 } from "react/jsx-runtime";
5888
-
5889
- // src/dropdownlist/templates/dropdownlist-popup.tsx
5890
- import { jsx as jsx62, jsxs as jsxs28 } from "react/jsx-runtime";
5891
-
5892
- // src/dropdownlist/templates/dropdownlist-filtering.tsx
5893
- import { Fragment as Fragment18, jsx as jsx63, jsxs as jsxs29 } from "react/jsx-runtime";
5894
-
5895
- // src/dropdownlist/templates/dropdownlist-grouping.tsx
5896
- import { jsx as jsx64, jsxs as jsxs30 } from "react/jsx-runtime";
5897
-
5898
- // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
5899
- import { Fragment as Fragment19, jsx as jsx65, jsxs as jsxs31 } from "react/jsx-runtime";
5900
-
5901
- // src/menu-button/menu-button.spec.tsx
5902
- import { Fragment as Fragment20, jsx as jsx66, jsxs as jsxs32 } from "react/jsx-runtime";
5903
- var MENUBUTTON_CLASSNAME = `k-menu-button`;
5904
- var states28 = [
5905
- States.hover,
5906
- States.focus,
5907
- States.active,
5908
- States.selected,
5909
- States.disabled
5910
- ];
5911
- var options26 = {
5912
- size: [Size.small, Size.medium, Size.large],
5913
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5914
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
5915
- themeColor: [
5916
- ThemeColor.base,
5917
- ThemeColor.primary,
5918
- ThemeColor.secondary,
5919
- ThemeColor.tertiary,
5920
- ThemeColor.success,
5921
- ThemeColor.warning,
5922
- ThemeColor.error,
5923
- ThemeColor.info,
5924
- ThemeColor.light,
5925
- ThemeColor.dark,
5926
- ThemeColor.inverse
5927
- ]
5928
- };
5929
- var defaultProps23 = {
5930
- size: Size.medium,
5931
- rounded: Roundness.medium,
5932
- fillMode: FillMode.solid,
5933
- themeColor: ThemeColor.base,
5934
- showArrow: true,
5935
- arrowIconName: "caret-alt-down"
5936
- };
5937
- var MenuButton = (props) => {
5938
- const {
5939
- size = defaultProps23.size,
5940
- rounded = defaultProps23.rounded,
5941
- fillMode = defaultProps23.fillMode,
5942
- themeColor = defaultProps23.themeColor,
5943
- hover,
5944
- focus,
5945
- active,
5946
- selected,
5947
- disabled,
5948
- icon,
5949
- text,
5950
- showArrow = defaultProps23.showArrow,
5951
- arrowIconName = defaultProps23.arrowIconName,
5952
- popup,
5953
- opened,
5954
- ...other
5955
- } = props;
5956
- return /* @__PURE__ */ jsxs32(Fragment20, { children: [
5957
- /* @__PURE__ */ jsx66(
5958
- Button,
5959
- {
5960
- ...other,
5961
- className: classNames(
5962
- props.className,
5963
- MENUBUTTON_CLASSNAME
5964
- ),
5965
- text,
5966
- size,
5967
- rounded,
5968
- fillMode,
5969
- themeColor,
5970
- hover,
5971
- focus,
5972
- active,
5973
- selected,
5974
- disabled,
5975
- icon,
5976
- showArrow,
5977
- arrowIconName
5978
- }
5979
- ),
5980
- opened && popup && /* @__PURE__ */ jsx66(Popup, { className: "k-menu-popup", children: popup })
5981
- ] });
5982
- };
5983
- MenuButton.states = states28;
5984
- MenuButton.options = options26;
5985
- MenuButton.className = MENUBUTTON_CLASSNAME;
5986
- MenuButton.defaultProps = defaultProps23;
5987
-
5988
- // src/menu-button/templates/icon-menu-button.tsx
5989
- import { jsx as jsx67 } from "react/jsx-runtime";
5990
-
5991
- // src/menu-button/templates/icon-text-menu-button.tsx
5992
- import { jsx as jsx68 } from "react/jsx-runtime";
5993
-
5994
- // src/menu-button/templates/text-menu-button.tsx
5995
- import { jsx as jsx69 } from "react/jsx-runtime";
5996
-
5997
- // src/menu/menu-item.spec.tsx
5998
- import { Fragment as Fragment21, jsx as jsx70, jsxs as jsxs33 } from "react/jsx-runtime";
5999
- var MENUITEM_CLASSNAME = `k-menu-item`;
6000
- var states29 = [
6001
- States.hover,
6002
- States.focus,
6003
- States.active,
6004
- States.selected,
6005
- States.disabled
6006
- ];
6007
- var options27 = {};
6008
- var defaultProps24 = {
6009
- dir: "ltr"
6010
- };
6011
- var MenuItem = (props) => {
6012
- const {
6013
- hover,
6014
- focus,
6015
- active,
6016
- selected,
6017
- disabled,
6018
- icon,
6019
- text,
6020
- showArrow,
6021
- arrowIconName,
6022
- dir = defaultProps24.dir,
6023
- children,
6024
- ...other
6025
- } = props;
6026
- const contentTemplate = /* @__PURE__ */ jsx70(Fragment21, {});
6027
- if (children) {
6028
- children.forEach((child) => {
6029
- const component = child.type;
6030
- if (component === "MenuItemContent") {
6031
- contentTemplate.props.children.push(child);
6032
- return;
6033
- }
6034
- });
6035
- }
6036
- let expandArrowName = arrowIconName;
6037
- if (!expandArrowName) {
6038
- expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
6039
- }
6040
- return /* @__PURE__ */ jsxs33(
6041
- "li",
6042
- {
6043
- ...other,
6044
- className: classNames(
6045
- props.className,
6046
- MENUITEM_CLASSNAME,
6047
- //TODO
6048
- "k-item",
6049
- stateClassNames(MENUITEM_CLASSNAME, {
6050
- focus,
6051
- disabled
6052
- })
6053
- ),
6054
- children: [
6055
- /* @__PURE__ */ jsxs33(
6056
- "span",
6057
- {
6058
- className: classNames(
6059
- "k-link k-menu-link",
6060
- stateClassNames("k-menu-link", {
6061
- hover,
6062
- active,
6063
- selected,
6064
- disabled
6065
- })
6066
- ),
6067
- children: [
6068
- icon && /* @__PURE__ */ jsx70(Icon, { className: "k-menu-link-icon", icon }),
6069
- /* @__PURE__ */ jsx70("span", { className: "k-menu-link-text", children: text }),
6070
- showArrow && /* @__PURE__ */ jsx70("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx70(Icon, { icon: expandArrowName }) })
6071
- ]
6072
- }
6073
- ),
6074
- contentTemplate
6075
- ]
6076
- }
6077
- );
6078
- };
6079
- MenuItem.states = states29;
6080
- MenuItem.options = options27;
6081
- MenuItem.className = MENUITEM_CLASSNAME;
6082
- MenuItem.defaultProps = defaultProps24;
6083
- var menu_item_spec_default = MenuItem;
6084
-
6085
- // src/menu/menu-separator.spec.tsx
6086
- import { jsx as jsx71 } from "react/jsx-runtime";
6087
- var SEPARATOR_CLASSNAME = `k-separator`;
6088
- var defaultProps25 = {
6089
- orientation: "horizontal"
6090
- };
6091
- var MenuSeparator = (props) => {
6092
- const {
6093
- orientation = defaultProps25.orientation,
6094
- ...other
6095
- } = props;
6096
- return /* @__PURE__ */ jsx71(
6097
- "li",
6098
- {
6099
- ...other,
6100
- className: classNames(
6101
- props.className,
6102
- "k-item",
6103
- SEPARATOR_CLASSNAME,
6104
- {
6105
- [`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
6106
- }
6107
- )
6108
- }
6109
- );
6110
- };
6111
- var menu_separator_spec_default = MenuSeparator;
6112
-
6113
- // src/menu/menu-item-content.tsx
6114
- import { Fragment as Fragment22, jsx as jsx72 } from "react/jsx-runtime";
6115
-
6116
- // src/menu/menu-list.spec.tsx
6117
- import { jsx as jsx73 } from "react/jsx-runtime";
6118
- import { createElement } from "react";
6119
- var MENULIST_CLASSNAME = `k-menu-group`;
6120
- var states30 = [];
6121
- var options28 = {
6122
- size: [Size.small, Size.medium, Size.large]
6123
- };
6124
- var defaultProps26 = {
6125
- size: Size.medium,
6126
- dir: "ltr"
6127
- };
6128
- var MenuList = (props) => {
6129
- const {
6130
- children,
6131
- size = defaultProps26.size,
6132
- dir = defaultProps26.dir,
6133
- ...other
6134
- } = props;
6135
- const listChildren = [];
6136
- if (children) {
6137
- if (Array.isArray(children)) {
6138
- children.map((child, index) => {
6139
- if (child.type === menu_item_spec_default) {
6140
- listChildren.push(
6141
- /* @__PURE__ */ createElement(menu_item_spec_default, { ...child.props, dir, key: index })
6142
- );
6143
- } else if (child.type === menu_separator_spec_default) {
6144
- listChildren.push(
6145
- /* @__PURE__ */ jsx73(menu_separator_spec_default, {})
6146
- );
6147
- } else {
6148
- listChildren.push(child);
6149
- }
6150
- });
6151
- }
6152
- }
6153
- return /* @__PURE__ */ jsx73(
6154
- "ul",
6155
- {
6156
- ...other,
6157
- className: classNames(
6158
- props.className,
6159
- MENULIST_CLASSNAME,
6160
- optionClassNames(MENULIST_CLASSNAME, {
6161
- size
6162
- })
6163
- ),
6164
- children: listChildren
6165
- }
6166
- );
6167
- };
6168
- MenuList.states = states30;
6169
- MenuList.options = options28;
6170
- MenuList.className = MENULIST_CLASSNAME;
6171
- MenuList.defaultProps = defaultProps26;
6172
-
6173
- // src/menu-button/templates/menu-button-popup.tsx
6174
- import { jsx as jsx74, jsxs as jsxs34 } from "react/jsx-runtime";
6175
-
6176
- // src/split-button/split-button.spec.tsx
6177
- import { Fragment as Fragment23, jsx as jsx75, jsxs as jsxs35 } from "react/jsx-runtime";
6178
- var SPLITBUTTON_CLASSNAME = `k-split-button`;
6179
- var states31 = [
6180
- States.hover,
6181
- States.focus,
6182
- States.active,
6183
- States.selected,
6184
- States.disabled
6185
- ];
6186
- var options29 = {
6187
- size: [Size.small, Size.medium, Size.large],
6188
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6189
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
6190
- themeColor: [
6191
- ThemeColor.base,
6192
- ThemeColor.primary,
6193
- ThemeColor.secondary,
6194
- ThemeColor.tertiary,
6195
- ThemeColor.success,
6196
- ThemeColor.warning,
6197
- ThemeColor.error,
6198
- ThemeColor.info,
6199
- ThemeColor.light,
6200
- ThemeColor.dark,
6201
- ThemeColor.inverse
6202
- ]
6203
- };
6204
- var defaultProps27 = {
6205
- size: Size.medium,
6206
- rounded: Roundness.medium,
6207
- fillMode: FillMode.solid,
6208
- themeColor: ThemeColor.base,
6209
- arrowIconName: "caret-alt-down"
6210
- };
6211
- var SplitButton = (props) => {
6212
- const {
6213
- size = defaultProps27.size,
6214
- rounded = defaultProps27.rounded,
6215
- fillMode = defaultProps27.fillMode,
6216
- themeColor = defaultProps27.themeColor,
6217
- hover,
6218
- focus,
6219
- active,
6220
- selected,
6221
- disabled,
6222
- icon,
6223
- text,
6224
- arrowIconName = defaultProps27.arrowIconName,
6225
- popup,
6226
- opened,
6227
- ...other
6228
- } = props;
6229
- return /* @__PURE__ */ jsxs35(Fragment23, { children: [
6230
- /* @__PURE__ */ jsxs35(
6231
- "div",
6232
- {
6233
- ...other,
6234
- className: classNames(
6235
- props.className,
6236
- SPLITBUTTON_CLASSNAME,
6237
- "k-button-group",
6238
- optionClassNames(SPLITBUTTON_CLASSNAME, {
6239
- rounded
6240
- })
6241
- ),
6242
- children: [
6243
- /* @__PURE__ */ jsx75(
6244
- Button,
6245
- {
6246
- text,
6247
- icon,
6248
- size,
6249
- rounded,
6250
- fillMode,
6251
- themeColor,
6252
- hover,
6253
- focus,
6254
- active,
6255
- selected,
6256
- disabled,
6257
- children: props.children
6258
- }
6259
- ),
6260
- /* @__PURE__ */ jsx75(
6261
- Button,
6262
- {
6263
- className: "k-split-button-arrow",
6264
- icon: arrowIconName,
6265
- size,
6266
- rounded,
6267
- fillMode,
6268
- disabled
6269
- }
6270
- )
6271
- ]
6272
- }
6273
- ),
6274
- opened && popup && /* @__PURE__ */ jsx75(Popup, { className: "k-menu-popup", children: popup })
6275
- ] });
6276
- };
6277
- SplitButton.states = states31;
6278
- SplitButton.options = options29;
6279
- SplitButton.className = SPLITBUTTON_CLASSNAME;
6280
- SplitButton.defaultProps = defaultProps27;
6281
- var split_button_spec_default = SplitButton;
6282
-
6283
- // src/toolbar/toolbar.spec.tsx
6284
- import { jsx as jsx76 } from "react/jsx-runtime";
6285
- var TOOLBAR_CLASSNAME = `k-toolbar`;
6286
- var states32 = [
6287
- States.focus
6288
- ];
6289
- var options30 = {
6290
- size: [Size.small, Size.medium, Size.large]
6291
- };
6292
- var defaultProps28 = {
6293
- size: Size.medium
6294
- };
6295
- var Toolbar = (props) => {
6296
- const {
6297
- size = defaultProps28.size,
6298
- focus,
6299
- resizable,
6300
- ...other
6301
- } = props;
6302
- const toolbarChildren = [];
6303
- const addUniqueToolClass = (child, index) => {
6304
- const tempToolbarChildren = [];
6305
- if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
6306
- tempToolbarChildren.push(
6307
- /* @__PURE__ */ jsx76(
6308
- Button,
6309
- {
6310
- ...child.props,
6311
- className: `${child.props.className ? child.props.className : ""}`
6312
- },
6313
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6314
- )
6315
- );
6316
- } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
6317
- tempToolbarChildren.push(
6318
- /* @__PURE__ */ jsx76(
6319
- Button,
6320
- {
6321
- ...child.props,
6322
- className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
6323
- },
6324
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6325
- )
6326
- );
6327
- } else if (child.type === Button) {
6328
- tempToolbarChildren.push(
6329
- /* @__PURE__ */ jsx76(
6330
- Button,
6331
- {
6332
- ...child.props,
6333
- className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
6334
- },
6335
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6336
- )
6337
- );
6338
- } else if (child.type === MenuButton) {
6339
- tempToolbarChildren.push(
6340
- /* @__PURE__ */ jsx76(
6341
- MenuButton,
6342
- {
6343
- ...child.props,
6344
- className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
6345
- },
6346
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6347
- )
6348
- );
6349
- } else if (child.type === split_button_spec_default) {
6350
- tempToolbarChildren.push(
6351
- /* @__PURE__ */ jsx76(
6352
- split_button_spec_default,
6353
- {
6354
- ...child.props,
6355
- className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
6356
- },
6357
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6358
- )
6359
- );
6360
- } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
6361
- const buttonGroupItems = [];
6362
- const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
6363
- childrenArray.forEach((button, bindex) => {
6364
- buttonGroupItems.push(
6365
- /* @__PURE__ */ jsx76(
6366
- Button,
6367
- {
6368
- ...button.props,
6369
- className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
6370
- },
6371
- `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
6372
- )
6373
- );
6374
- });
6375
- tempToolbarChildren.push(
6376
- /* @__PURE__ */ jsx76(
6377
- ButtonGroup,
6378
- {
6379
- ...child.props,
6380
- className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
6381
- children: buttonGroupItems
6382
- },
6383
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6384
- )
6385
- );
6386
- } else if (child.type === Combobox) {
6387
- tempToolbarChildren.push(
6388
- /* @__PURE__ */ jsx76(
6389
- Combobox,
6390
- {
6391
- ...child.props,
6392
- className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
6393
- },
6394
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6395
- )
6396
- );
6397
- } else if (child.type === DropdownList) {
6398
- tempToolbarChildren.push(
6399
- /* @__PURE__ */ jsx76(
6400
- DropdownList,
6401
- {
6402
- ...child.props,
6403
- className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
6404
- },
6405
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6406
- )
6407
- );
6408
- } else if (child.type === ColorPicker) {
6409
- tempToolbarChildren.push(
6410
- /* @__PURE__ */ jsx76(
6411
- ColorPicker,
6412
- {
6413
- ...child.props,
6414
- className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
6415
- },
6416
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6417
- )
6418
- );
6419
- } else {
6420
- tempToolbarChildren.push(child);
6421
- }
6422
- tempToolbarChildren.forEach((item) => {
6423
- toolbarChildren.push(item);
6424
- });
6425
- };
6426
- if (props.children) {
6427
- const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
6428
- childrenArray.forEach((child, index) => {
6429
- addUniqueToolClass(child, index);
6430
- });
6431
- }
6432
- return /* @__PURE__ */ jsx76(
6433
- "div",
6434
- {
6435
- ...other,
6436
- className: classNames(
6437
- props.className,
6438
- TOOLBAR_CLASSNAME,
6439
- optionClassNames(TOOLBAR_CLASSNAME, {
6440
- size
6441
- }),
6442
- stateClassNames(TOOLBAR_CLASSNAME, {
6443
- focus
6444
- }),
6445
- {
6446
- [`${TOOLBAR_CLASSNAME}-resizable`]: resizable
6447
- }
6448
- ),
6449
- children: toolbarChildren
6450
- }
6451
- );
6452
- };
6453
- Toolbar.states = states32;
6454
- Toolbar.options = options30;
6455
- Toolbar.className = TOOLBAR_CLASSNAME;
6456
- Toolbar.defaultProps = defaultProps28;
6457
-
6458
- // src/toolbar/toolbar-angular.spec.tsx
6459
- import { jsx as jsx77 } from "react/jsx-runtime";
6460
- var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
6461
- var states33 = [
6462
- States.focus
6463
- ];
6464
- var options31 = {
6465
- size: [Size.small, Size.medium, Size.large]
6466
- };
6467
- var defaultProps29 = {
6468
- size: Size.medium
6469
- };
6470
- var ToolbarAngular = (props) => {
6471
- const {
6472
- size = defaultProps29.size,
6473
- focus,
6474
- resizable,
6475
- ...other
6476
- } = props;
6477
- const toolbarChildren = [];
6478
- const addUniqueToolClass = (child, index) => {
6479
- const tempToolbarChildren = [];
6480
- if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
6481
- tempToolbarChildren.push(
6482
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6483
- Button,
6484
- {
6485
- ...child.props,
6486
- className: `${child.props.className ? child.props.className : ""}`
6487
- },
6488
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6489
- ) })
6490
- );
6491
- } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
6492
- tempToolbarChildren.push(
6493
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6494
- Button,
6495
- {
6496
- ...child.props,
6497
- className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
6498
- },
6499
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6500
- ) })
6501
- );
6502
- } else if (child.type === Button) {
6503
- tempToolbarChildren.push(
6504
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6505
- Button,
6506
- {
6507
- ...child.props,
6508
- className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
6509
- },
6510
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6511
- ) })
6512
- );
6513
- } else if (child.type === MenuButton) {
6514
- tempToolbarChildren.push(
6515
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6516
- MenuButton,
6517
- {
6518
- ...child.props,
6519
- className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
6520
- },
6521
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6522
- ) })
6523
- );
6524
- } else if (child.type === split_button_spec_default) {
6525
- tempToolbarChildren.push(
6526
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6527
- split_button_spec_default,
6528
- {
6529
- ...child.props,
6530
- className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
6531
- },
6532
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6533
- ) })
6534
- );
6535
- } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
6536
- const buttonGroupItems = [];
6537
- const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
6538
- childrenArray.forEach((button, bindex) => {
6539
- buttonGroupItems.push(
6540
- /* @__PURE__ */ jsx77(
6541
- Button,
6542
- {
6543
- ...button.props,
6544
- className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
6545
- },
6546
- `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
6547
- )
6548
- );
6549
- });
6550
- tempToolbarChildren.push(
6551
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6552
- ButtonGroup,
6553
- {
6554
- ...child.props,
6555
- className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
6556
- children: buttonGroupItems
6557
- },
6558
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6559
- ) })
6560
- );
6561
- } else if (child.type === Combobox) {
6562
- tempToolbarChildren.push(
6563
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6564
- Combobox,
6565
- {
6566
- ...child.props,
6567
- className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
6568
- },
6569
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6570
- ) })
6571
- );
6572
- } else if (child.type === DropdownList) {
6573
- tempToolbarChildren.push(
6574
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6575
- DropdownList,
6576
- {
6577
- ...child.props,
6578
- className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
6579
- },
6580
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6581
- ) })
6582
- );
6583
- } else if (child.type === ColorPicker) {
6584
- tempToolbarChildren.push(
6585
- /* @__PURE__ */ jsx77("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx77(
6586
- ColorPicker,
6587
- {
6588
- ...child.props,
6589
- className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
6590
- },
6591
- `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
6592
- ) })
6593
- );
6594
- } else {
6595
- tempToolbarChildren.push(child);
6596
- }
6597
- tempToolbarChildren.forEach((item) => {
6598
- toolbarChildren.push(item);
6599
- });
6600
- };
6601
- if (props.children) {
6602
- const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
6603
- childrenArray.forEach((child, index) => {
6604
- addUniqueToolClass(child, index);
6605
- });
6606
- }
6607
- return /* @__PURE__ */ jsx77(
6608
- "div",
6609
- {
6610
- ...other,
6611
- className: classNames(
6612
- props.className,
6613
- TOOLBARANGULAR_CLASSNAME,
6614
- optionClassNames(TOOLBARANGULAR_CLASSNAME, {
6615
- size
6616
- }),
6617
- stateClassNames(TOOLBARANGULAR_CLASSNAME, {
6618
- focus
6619
- }),
6620
- {
6621
- [`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
6622
- }
6623
- ),
6624
- children: toolbarChildren
6625
- }
6626
- );
6627
- };
6628
- ToolbarAngular.states = states33;
6629
- ToolbarAngular.options = options31;
6630
- ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
6631
- ToolbarAngular.defaultProps = defaultProps29;
6632
-
6633
- // src/toolbar/toolbar-separator.tsx
6634
- import { jsx as jsx78 } from "react/jsx-runtime";
6635
-
6636
- // src/toolbar/toolbar-item.spec.tsx
6637
- import { jsx as jsx79 } from "react/jsx-runtime";
6638
- var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
6639
- var states34 = [
6640
- States.focus
6641
- ];
6642
- var options32 = {};
6643
- var defaultProps30 = {};
6644
- var ToolbarItem = (props) => {
6645
- const {
6646
- focus,
6647
- ...other
6648
- } = props;
6649
- return /* @__PURE__ */ jsx79(
6650
- "div",
6651
- {
6652
- ...other,
6653
- className: classNames(
6654
- props.className,
6655
- TOOLBARITEM_CLASSNAME,
6656
- stateClassNames(TOOLBARITEM_CLASSNAME, {
6657
- focus
6658
- })
6659
- ),
6660
- children: props.children
6661
- }
6662
- );
6663
- };
6664
- ToolbarItem.states = states34;
6665
- ToolbarItem.options = options32;
6666
- ToolbarItem.className = TOOLBARITEM_CLASSNAME;
6667
- ToolbarItem.defaultProps = defaultProps30;
6668
-
6669
- // src/textbox/textbox.spec.tsx
6670
- import { jsx as jsx80, jsxs as jsxs36 } from "react/jsx-runtime";
6671
- var TEXTBOX_CLASSNAME = `k-textbox`;
6672
- var states35 = [
6673
- States.hover,
6674
- States.focus,
6675
- States.valid,
6676
- States.invalid,
6677
- States.required,
6678
- States.disabled,
6679
- States.loading,
6680
- States.readonly
6681
- ];
6682
- var options33 = {
6683
- size: [Size.small, Size.medium, Size.large],
6684
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6685
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6686
- };
6687
- var defaultProps31 = {
6688
- showClearButton: true,
6689
- size: Input.defaultProps.size,
6690
- rounded: Input.defaultProps.rounded,
6691
- fillMode: Input.defaultProps.fillMode
6692
- };
6693
- var Textbox = (props) => {
6694
- const {
6695
- prefix,
6696
- suffix,
6697
- value,
6698
- placeholder,
6699
- size,
6700
- rounded,
6701
- fillMode,
6702
- hover,
6703
- focus,
6704
- valid,
6705
- invalid,
6706
- required,
6707
- loading,
6708
- disabled,
6709
- readonly,
6710
- showClearButton = defaultProps31.showClearButton,
6711
- ...other
6712
- } = props;
6713
- return /* @__PURE__ */ jsxs36(
6714
- Input,
6715
- {
6716
- ...other,
6717
- size,
6718
- rounded,
6719
- fillMode,
6720
- hover,
6721
- focus,
6722
- valid,
6723
- invalid,
6724
- required,
6725
- loading,
6726
- disabled,
6727
- readonly,
6728
- className: classNames(props.className, TEXTBOX_CLASSNAME),
6729
- children: [
6730
- /* @__PURE__ */ jsx80(InputPrefix, { children: prefix }),
6731
- /* @__PURE__ */ jsx80(InputInnerInput, { placeholder, value }),
6732
- /* @__PURE__ */ jsx80(
6733
- InputValidationIcon,
6734
- {
6735
- valid,
6736
- invalid,
6737
- loading,
6738
- disabled
6739
- }
6740
- ),
6741
- /* @__PURE__ */ jsx80(
6742
- InputLoadingIcon,
6743
- {
6744
- loading,
6745
- disabled
6746
- }
6747
- ),
6748
- showClearButton && /* @__PURE__ */ jsx80(
6749
- InputClearValue,
6750
- {
6751
- loading,
6752
- disabled,
6753
- readonly,
6754
- value
6755
- }
6756
- ),
6757
- /* @__PURE__ */ jsx80(InputSuffix, { children: suffix })
6758
- ]
6759
- }
6760
- );
6761
- };
6762
- Textbox.states = states35;
6763
- Textbox.options = options33;
6764
- Textbox.className = TEXTBOX_CLASSNAME;
6765
- Textbox.defaultProps = defaultProps31;
6766
-
6767
- // src/textbox/templates/textbox-normal.tsx
6768
- import { jsx as jsx81 } from "react/jsx-runtime";
6769
-
6770
- // src/textbox/templates/textbox-prefix.tsx
6771
- import { jsx as jsx82, jsxs as jsxs37 } from "react/jsx-runtime";
6772
-
6773
- // src/textbox/templates/textbox-suffix.tsx
6774
- import { jsx as jsx83, jsxs as jsxs38 } from "react/jsx-runtime";
6775
-
6776
- // src/chat/chat.spec.tsx
6777
- import { Fragment as Fragment24, jsx as jsx84, jsxs as jsxs39 } from "react/jsx-runtime";
6778
- var CHAT_CLASSNAME = "k-chat";
6779
- var states36 = [];
6780
- var options34 = {};
6781
- var defaultOptions = {
6782
- showToolbar: true,
6783
- showMessageBox: true,
6784
- showMoreButton: true
6785
- };
6786
- var Chat = (props) => {
6787
- const {
6788
- dir,
6789
- showToolbar = defaultOptions.showToolbar,
6790
- showMessageBox = defaultOptions.showMessageBox,
6791
- showMoreButton = defaultOptions.showMoreButton,
6792
- ...other
6793
- } = props;
6794
- return /* @__PURE__ */ jsxs39(
4790
+ return /* @__PURE__ */ jsxs6(
6795
4791
  "div",
6796
4792
  {
6797
4793
  ...other,
@@ -6801,39 +4797,39 @@ var Chat = (props) => {
6801
4797
  ),
6802
4798
  dir,
6803
4799
  children: [
6804
- /* @__PURE__ */ jsx84("div", { className: "k-message-list k-avatars", children: /* @__PURE__ */ jsx84("div", { className: "k-message-list-content", children: props.children }) }),
6805
- showMessageBox && /* @__PURE__ */ jsx84(
4800
+ /* @__PURE__ */ jsx23("div", { className: "k-message-list k-avatars", children: /* @__PURE__ */ jsx23("div", { className: "k-message-list-content", children: props.children }) }),
4801
+ showMessageBox && /* @__PURE__ */ jsx23(
6806
4802
  Textbox,
6807
4803
  {
6808
4804
  className: "k-message-box",
6809
4805
  placeholder: "Type a message...",
6810
- suffix: /* @__PURE__ */ jsxs39(Fragment24, { children: [
6811
- showMoreButton && /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "more-horizontal" }),
6812
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "paper-plane", className: "k-chat-send" })
4806
+ suffix: /* @__PURE__ */ jsxs6(Fragment10, { children: [
4807
+ showMoreButton && /* @__PURE__ */ jsx23(Button, { fillMode: "flat", icon: "more-horizontal" }),
4808
+ /* @__PURE__ */ jsx23(Button, { fillMode: "flat", icon: "paper-plane", className: "k-chat-send" })
6813
4809
  ] })
6814
4810
  }
6815
4811
  ),
6816
- showToolbar && /* @__PURE__ */ jsxs39(Toolbar, { className: "k-chat-toolbar", children: [
6817
- /* @__PURE__ */ jsx84(Button, { className: "k-scroll-button k-scroll-button-left k-hidden", fillMode: "flat", rounded: null, size: null, icon: "chevron-left" }),
6818
- /* @__PURE__ */ jsxs39("div", { className: "k-toolbar-group k-button-list", children: [
6819
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "arrow-rotate-cw" }),
6820
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "gear" }),
6821
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "wrench" }),
6822
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "plus" }),
6823
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "search" }),
6824
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "star" }),
6825
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "bell" }),
6826
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "question-circle" }),
6827
- /* @__PURE__ */ jsx84(Button, { fillMode: "flat", icon: "trash" })
4812
+ showToolbar && /* @__PURE__ */ jsxs6("div", { className: "k-chat-toolbar k-toolbar", children: [
4813
+ /* @__PURE__ */ jsx23(Button, { className: "k-scroll-button k-scroll-button-left k-hidden", icon: "chevron-left" }),
4814
+ /* @__PURE__ */ jsxs6("div", { className: "k-toolbar-group k-button-list", children: [
4815
+ /* @__PURE__ */ jsx23(Button, { icon: "arrow-rotate-cw" }),
4816
+ /* @__PURE__ */ jsx23(Button, { icon: "gear" }),
4817
+ /* @__PURE__ */ jsx23(Button, { icon: "wrench" }),
4818
+ /* @__PURE__ */ jsx23(Button, { icon: "plus" }),
4819
+ /* @__PURE__ */ jsx23(Button, { icon: "search" }),
4820
+ /* @__PURE__ */ jsx23(Button, { icon: "star" }),
4821
+ /* @__PURE__ */ jsx23(Button, { icon: "bell" }),
4822
+ /* @__PURE__ */ jsx23(Button, { icon: "question-circle" }),
4823
+ /* @__PURE__ */ jsx23(Button, { icon: "trash" })
6828
4824
  ] }),
6829
- /* @__PURE__ */ jsx84(Button, { className: "k-scroll-button k-scroll-button-right", fillMode: "flat", rounded: null, size: null, icon: "chevron-right" })
4825
+ /* @__PURE__ */ jsx23(Button, { className: "k-scroll-button k-scroll-button-right", icon: "chevron-right" })
6830
4826
  ] })
6831
4827
  ]
6832
4828
  }
6833
4829
  );
6834
4830
  };
6835
- Chat.states = states36;
6836
- Chat.options = options34;
4831
+ Chat.states = states13;
4832
+ Chat.options = options12;
6837
4833
  Chat.className = CHAT_CLASSNAME;
6838
4834
  Chat.defaultOptions = defaultOptions;
6839
4835
  var chat_spec_default = Chat;