@progress/kendo-themes-html 6.7.0-dev.3 → 6.7.0-dev.5

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