@dmsi/wedgekit-react 0.0.540 → 0.0.542

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/{chunk-RB7F6QWD.js → chunk-WNGFRQ4Y.js} +6 -3
  2. package/dist/components/CalendarRange.cjs +6 -3
  3. package/dist/components/CalendarRange.js +1 -1
  4. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -3
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -1
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +6 -3
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -1
  8. package/dist/components/DataGrid/PinnedColumns.cjs +6 -3
  9. package/dist/components/DataGrid/PinnedColumns.js +1 -1
  10. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +6 -3
  11. package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -1
  12. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +6 -3
  13. package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -1
  14. package/dist/components/DataGrid/TableBody/index.cjs +6 -3
  15. package/dist/components/DataGrid/TableBody/index.js +1 -1
  16. package/dist/components/DataGrid/index.cjs +6 -3
  17. package/dist/components/DataGrid/index.js +1 -1
  18. package/dist/components/DataGrid/utils.cjs +6 -3
  19. package/dist/components/DataGrid/utils.js +1 -1
  20. package/dist/components/DateInput.cjs +6 -3
  21. package/dist/components/DateInput.js +1 -1
  22. package/dist/components/DateRangeInput.cjs +6 -3
  23. package/dist/components/DateRangeInput.js +1 -1
  24. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +6 -3
  25. package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -1
  26. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +6 -3
  27. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -1
  28. package/dist/components/MobileDataGrid/index.cjs +6 -3
  29. package/dist/components/MobileDataGrid/index.js +1 -1
  30. package/dist/components/index.cjs +6 -3
  31. package/dist/components/index.js +1 -1
  32. package/package.json +1 -1
  33. package/src/components/DateInput.tsx +9 -0
@@ -1729,7 +1729,8 @@ var DateInput = (_a) => {
1729
1729
  placeholder = "MM/DD/YYYY",
1730
1730
  disabled,
1731
1731
  readOnly = false,
1732
- label
1732
+ label,
1733
+ isDateAvailable
1733
1734
  } = _b, props = __objRest(_b, [
1734
1735
  "id",
1735
1736
  "testid",
@@ -1738,7 +1739,8 @@ var DateInput = (_a) => {
1738
1739
  "placeholder",
1739
1740
  "disabled",
1740
1741
  "readOnly",
1741
- "label"
1742
+ "label",
1743
+ "isDateAvailable"
1742
1744
  ]);
1743
1745
  const [visible, setVisible] = useState5(false);
1744
1746
  const [inputValue, setInputValue] = useState5("");
@@ -1926,7 +1928,8 @@ var DateInput = (_a) => {
1926
1928
  onChange: handleDateChange,
1927
1929
  cardStyle: true,
1928
1930
  mode: "single",
1929
- disableRange: true
1931
+ disableRange: true,
1932
+ isDateAvailable
1930
1933
  }
1931
1934
  )
1932
1935
  }
@@ -4344,7 +4344,8 @@ var DateInput = (_a) => {
4344
4344
  placeholder = "MM/DD/YYYY",
4345
4345
  disabled,
4346
4346
  readOnly = false,
4347
- label
4347
+ label,
4348
+ isDateAvailable
4348
4349
  } = _b, props = __objRest(_b, [
4349
4350
  "id",
4350
4351
  "testid",
@@ -4353,7 +4354,8 @@ var DateInput = (_a) => {
4353
4354
  "placeholder",
4354
4355
  "disabled",
4355
4356
  "readOnly",
4356
- "label"
4357
+ "label",
4358
+ "isDateAvailable"
4357
4359
  ]);
4358
4360
  const [visible, setVisible] = (0, import_react19.useState)(false);
4359
4361
  const [inputValue, setInputValue] = (0, import_react19.useState)("");
@@ -4541,7 +4543,8 @@ var DateInput = (_a) => {
4541
4543
  onChange: handleDateChange,
4542
4544
  cardStyle: true,
4543
4545
  mode: "single",
4544
- disableRange: true
4546
+ disableRange: true,
4547
+ isDateAvailable
4545
4548
  }
4546
4549
  )
4547
4550
  }
@@ -2,7 +2,7 @@ import {
2
2
  CalendarRange,
3
3
  CalendarRange_default,
4
4
  isWeekend
5
- } from "../chunk-RB7F6QWD.js";
5
+ } from "../chunk-WNGFRQ4Y.js";
6
6
  import "../chunk-M7INAUAJ.js";
7
7
  import "../chunk-ZIPJMN2E.js";
8
8
  import "../chunk-FJFZBIRG.js";
@@ -4777,7 +4777,8 @@ var DateInput = (_a) => {
4777
4777
  placeholder = "MM/DD/YYYY",
4778
4778
  disabled,
4779
4779
  readOnly = false,
4780
- label
4780
+ label,
4781
+ isDateAvailable
4781
4782
  } = _b, props = __objRest(_b, [
4782
4783
  "id",
4783
4784
  "testid",
@@ -4786,7 +4787,8 @@ var DateInput = (_a) => {
4786
4787
  "placeholder",
4787
4788
  "disabled",
4788
4789
  "readOnly",
4789
- "label"
4790
+ "label",
4791
+ "isDateAvailable"
4790
4792
  ]);
4791
4793
  const [visible, setVisible] = (0, import_react19.useState)(false);
4792
4794
  const [inputValue, setInputValue] = (0, import_react19.useState)("");
@@ -4974,7 +4976,8 @@ var DateInput = (_a) => {
4974
4976
  onChange: handleDateChange,
4975
4977
  cardStyle: true,
4976
4978
  mode: "single",
4977
- disableRange: true
4979
+ disableRange: true,
4980
+ isDateAvailable
4978
4981
  }
4979
4982
  )
4980
4983
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnSelectorMenuOption
3
- } from "../../../chunk-RB7F6QWD.js";
3
+ } from "../../../chunk-WNGFRQ4Y.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -4699,7 +4699,8 @@ var DateInput = (_a) => {
4699
4699
  placeholder = "MM/DD/YYYY",
4700
4700
  disabled,
4701
4701
  readOnly = false,
4702
- label
4702
+ label,
4703
+ isDateAvailable
4703
4704
  } = _b, props = __objRest(_b, [
4704
4705
  "id",
4705
4706
  "testid",
@@ -4708,7 +4709,8 @@ var DateInput = (_a) => {
4708
4709
  "placeholder",
4709
4710
  "disabled",
4710
4711
  "readOnly",
4711
- "label"
4712
+ "label",
4713
+ "isDateAvailable"
4712
4714
  ]);
4713
4715
  const [visible, setVisible] = (0, import_react18.useState)(false);
4714
4716
  const [inputValue, setInputValue] = (0, import_react18.useState)("");
@@ -4896,7 +4898,8 @@ var DateInput = (_a) => {
4896
4898
  onChange: handleDateChange,
4897
4899
  cardStyle: true,
4898
4900
  mode: "single",
4899
- disableRange: true
4901
+ disableRange: true,
4902
+ isDateAvailable
4900
4903
  }
4901
4904
  )
4902
4905
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnSelectorHeaderCell
3
- } from "../../../chunk-RB7F6QWD.js";
3
+ } from "../../../chunk-WNGFRQ4Y.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -4552,7 +4552,8 @@ var DateInput = (_a) => {
4552
4552
  placeholder = "MM/DD/YYYY",
4553
4553
  disabled,
4554
4554
  readOnly = false,
4555
- label
4555
+ label,
4556
+ isDateAvailable
4556
4557
  } = _b, props = __objRest(_b, [
4557
4558
  "id",
4558
4559
  "testid",
@@ -4561,7 +4562,8 @@ var DateInput = (_a) => {
4561
4562
  "placeholder",
4562
4563
  "disabled",
4563
4564
  "readOnly",
4564
- "label"
4565
+ "label",
4566
+ "isDateAvailable"
4565
4567
  ]);
4566
4568
  const [visible, setVisible] = (0, import_react17.useState)(false);
4567
4569
  const [inputValue, setInputValue] = (0, import_react17.useState)("");
@@ -4749,7 +4751,8 @@ var DateInput = (_a) => {
4749
4751
  onChange: handleDateChange,
4750
4752
  cardStyle: true,
4751
4753
  mode: "single",
4752
- disableRange: true
4754
+ disableRange: true,
4755
+ isDateAvailable
4753
4756
  }
4754
4757
  )
4755
4758
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PinnedColumns
3
- } from "../../chunk-RB7F6QWD.js";
3
+ } from "../../chunk-WNGFRQ4Y.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
5
  import "../../chunk-ZIPJMN2E.js";
6
6
  import "../../chunk-FJFZBIRG.js";
@@ -4769,7 +4769,8 @@ var DateInput = (_a) => {
4769
4769
  placeholder = "MM/DD/YYYY",
4770
4770
  disabled,
4771
4771
  readOnly = false,
4772
- label
4772
+ label,
4773
+ isDateAvailable
4773
4774
  } = _b, props = __objRest(_b, [
4774
4775
  "id",
4775
4776
  "testid",
@@ -4778,7 +4779,8 @@ var DateInput = (_a) => {
4778
4779
  "placeholder",
4779
4780
  "disabled",
4780
4781
  "readOnly",
4781
- "label"
4782
+ "label",
4783
+ "isDateAvailable"
4782
4784
  ]);
4783
4785
  const [visible, setVisible] = (0, import_react20.useState)(false);
4784
4786
  const [inputValue, setInputValue] = (0, import_react20.useState)("");
@@ -4966,7 +4968,8 @@ var DateInput = (_a) => {
4966
4968
  onChange: handleDateChange,
4967
4969
  cardStyle: true,
4968
4970
  mode: "single",
4969
- disableRange: true
4971
+ disableRange: true,
4972
+ isDateAvailable
4970
4973
  }
4971
4974
  )
4972
4975
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LoadingCell
3
- } from "../../../chunk-RB7F6QWD.js";
3
+ } from "../../../chunk-WNGFRQ4Y.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -4701,7 +4701,8 @@ var DateInput = (_a) => {
4701
4701
  placeholder = "MM/DD/YYYY",
4702
4702
  disabled,
4703
4703
  readOnly = false,
4704
- label
4704
+ label,
4705
+ isDateAvailable
4705
4706
  } = _b, props = __objRest(_b, [
4706
4707
  "id",
4707
4708
  "testid",
@@ -4710,7 +4711,8 @@ var DateInput = (_a) => {
4710
4711
  "placeholder",
4711
4712
  "disabled",
4712
4713
  "readOnly",
4713
- "label"
4714
+ "label",
4715
+ "isDateAvailable"
4714
4716
  ]);
4715
4717
  const [visible, setVisible] = (0, import_react19.useState)(false);
4716
4718
  const [inputValue, setInputValue] = (0, import_react19.useState)("");
@@ -4898,7 +4900,8 @@ var DateInput = (_a) => {
4898
4900
  onChange: handleDateChange,
4899
4901
  cardStyle: true,
4900
4902
  mode: "single",
4901
- disableRange: true
4903
+ disableRange: true,
4904
+ isDateAvailable
4902
4905
  }
4903
4906
  )
4904
4907
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TableBodyRow
3
- } from "../../../chunk-RB7F6QWD.js";
3
+ } from "../../../chunk-WNGFRQ4Y.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -4517,7 +4517,8 @@ var DateInput = (_a) => {
4517
4517
  placeholder = "MM/DD/YYYY",
4518
4518
  disabled,
4519
4519
  readOnly = false,
4520
- label
4520
+ label,
4521
+ isDateAvailable
4521
4522
  } = _b, props = __objRest(_b, [
4522
4523
  "id",
4523
4524
  "testid",
@@ -4526,7 +4527,8 @@ var DateInput = (_a) => {
4526
4527
  "placeholder",
4527
4528
  "disabled",
4528
4529
  "readOnly",
4529
- "label"
4530
+ "label",
4531
+ "isDateAvailable"
4530
4532
  ]);
4531
4533
  const [visible, setVisible] = (0, import_react19.useState)(false);
4532
4534
  const [inputValue, setInputValue] = (0, import_react19.useState)("");
@@ -4714,7 +4716,8 @@ var DateInput = (_a) => {
4714
4716
  onChange: handleDateChange,
4715
4717
  cardStyle: true,
4716
4718
  mode: "single",
4717
- disableRange: true
4719
+ disableRange: true,
4720
+ isDateAvailable
4718
4721
  }
4719
4722
  )
4720
4723
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TableBody
3
- } from "../../../chunk-RB7F6QWD.js";
3
+ } from "../../../chunk-WNGFRQ4Y.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -3664,7 +3664,8 @@ var DateInput = (_a) => {
3664
3664
  placeholder = "MM/DD/YYYY",
3665
3665
  disabled,
3666
3666
  readOnly = false,
3667
- label
3667
+ label,
3668
+ isDateAvailable
3668
3669
  } = _b, props = __objRest(_b, [
3669
3670
  "id",
3670
3671
  "testid",
@@ -3673,7 +3674,8 @@ var DateInput = (_a) => {
3673
3674
  "placeholder",
3674
3675
  "disabled",
3675
3676
  "readOnly",
3676
- "label"
3677
+ "label",
3678
+ "isDateAvailable"
3677
3679
  ]);
3678
3680
  const [visible, setVisible] = (0, import_react15.useState)(false);
3679
3681
  const [inputValue, setInputValue] = (0, import_react15.useState)("");
@@ -3861,7 +3863,8 @@ var DateInput = (_a) => {
3861
3863
  onChange: handleDateChange,
3862
3864
  cardStyle: true,
3863
3865
  mode: "single",
3864
- disableRange: true
3866
+ disableRange: true,
3867
+ isDateAvailable
3865
3868
  }
3866
3869
  )
3867
3870
  }
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  DataGrid,
4
4
  DataGrid_default
5
- } from "../../chunk-RB7F6QWD.js";
5
+ } from "../../chunk-WNGFRQ4Y.js";
6
6
  import "../../chunk-M7INAUAJ.js";
7
7
  import "../../chunk-ZIPJMN2E.js";
8
8
  import "../../chunk-FJFZBIRG.js";
@@ -4788,7 +4788,8 @@ var DateInput = (_a) => {
4788
4788
  placeholder = "MM/DD/YYYY",
4789
4789
  disabled,
4790
4790
  readOnly = false,
4791
- label
4791
+ label,
4792
+ isDateAvailable
4792
4793
  } = _b, props = __objRest(_b, [
4793
4794
  "id",
4794
4795
  "testid",
@@ -4797,7 +4798,8 @@ var DateInput = (_a) => {
4797
4798
  "placeholder",
4798
4799
  "disabled",
4799
4800
  "readOnly",
4800
- "label"
4801
+ "label",
4802
+ "isDateAvailable"
4801
4803
  ]);
4802
4804
  const [visible, setVisible] = (0, import_react20.useState)(false);
4803
4805
  const [inputValue, setInputValue] = (0, import_react20.useState)("");
@@ -4985,7 +4987,8 @@ var DateInput = (_a) => {
4985
4987
  onChange: handleDateChange,
4986
4988
  cardStyle: true,
4987
4989
  mode: "single",
4988
- disableRange: true
4990
+ disableRange: true,
4991
+ isDateAvailable
4989
4992
  }
4990
4993
  )
4991
4994
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getSortIcon
3
- } from "../../chunk-RB7F6QWD.js";
3
+ } from "../../chunk-WNGFRQ4Y.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
5
  import "../../chunk-ZIPJMN2E.js";
6
6
  import "../../chunk-FJFZBIRG.js";
@@ -5594,7 +5594,8 @@ var DateInput = (_a) => {
5594
5594
  placeholder = "MM/DD/YYYY",
5595
5595
  disabled,
5596
5596
  readOnly = false,
5597
- label
5597
+ label,
5598
+ isDateAvailable
5598
5599
  } = _b, props = __objRest(_b, [
5599
5600
  "id",
5600
5601
  "testid",
@@ -5603,7 +5604,8 @@ var DateInput = (_a) => {
5603
5604
  "placeholder",
5604
5605
  "disabled",
5605
5606
  "readOnly",
5606
- "label"
5607
+ "label",
5608
+ "isDateAvailable"
5607
5609
  ]);
5608
5610
  const [visible, setVisible] = (0, import_react37.useState)(false);
5609
5611
  const [inputValue, setInputValue] = (0, import_react37.useState)("");
@@ -5791,7 +5793,8 @@ var DateInput = (_a) => {
5791
5793
  onChange: handleDateChange,
5792
5794
  cardStyle: true,
5793
5795
  mode: "single",
5794
- disableRange: true
5796
+ disableRange: true,
5797
+ isDateAvailable
5795
5798
  }
5796
5799
  )
5797
5800
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DateInput
3
- } from "../chunk-RB7F6QWD.js";
3
+ } from "../chunk-WNGFRQ4Y.js";
4
4
  import "../chunk-M7INAUAJ.js";
5
5
  import "../chunk-ZIPJMN2E.js";
6
6
  import "../chunk-FJFZBIRG.js";
@@ -4352,7 +4352,8 @@ var DateInput = (_a) => {
4352
4352
  placeholder = "MM/DD/YYYY",
4353
4353
  disabled,
4354
4354
  readOnly = false,
4355
- label
4355
+ label,
4356
+ isDateAvailable
4356
4357
  } = _b, props = __objRest(_b, [
4357
4358
  "id",
4358
4359
  "testid",
@@ -4361,7 +4362,8 @@ var DateInput = (_a) => {
4361
4362
  "placeholder",
4362
4363
  "disabled",
4363
4364
  "readOnly",
4364
- "label"
4365
+ "label",
4366
+ "isDateAvailable"
4365
4367
  ]);
4366
4368
  const [visible, setVisible] = (0, import_react19.useState)(false);
4367
4369
  const [inputValue, setInputValue] = (0, import_react19.useState)("");
@@ -4549,7 +4551,8 @@ var DateInput = (_a) => {
4549
4551
  onChange: handleDateChange,
4550
4552
  cardStyle: true,
4551
4553
  mode: "single",
4552
- disableRange: true
4554
+ disableRange: true,
4555
+ isDateAvailable
4553
4556
  }
4554
4557
  )
4555
4558
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-RB7F6QWD.js";
3
+ } from "../chunk-WNGFRQ4Y.js";
4
4
  import "../chunk-M7INAUAJ.js";
5
5
  import "../chunk-ZIPJMN2E.js";
6
6
  import "../chunk-FJFZBIRG.js";
@@ -4805,7 +4805,8 @@ var DateInput = (_a) => {
4805
4805
  placeholder = "MM/DD/YYYY",
4806
4806
  disabled,
4807
4807
  readOnly = false,
4808
- label
4808
+ label,
4809
+ isDateAvailable
4809
4810
  } = _b, props = __objRest(_b, [
4810
4811
  "id",
4811
4812
  "testid",
@@ -4814,7 +4815,8 @@ var DateInput = (_a) => {
4814
4815
  "placeholder",
4815
4816
  "disabled",
4816
4817
  "readOnly",
4817
- "label"
4818
+ "label",
4819
+ "isDateAvailable"
4818
4820
  ]);
4819
4821
  const [visible, setVisible] = (0, import_react20.useState)(false);
4820
4822
  const [inputValue, setInputValue] = (0, import_react20.useState)("");
@@ -5002,7 +5004,8 @@ var DateInput = (_a) => {
5002
5004
  onChange: handleDateChange,
5003
5005
  cardStyle: true,
5004
5006
  mode: "single",
5005
- disableRange: true
5007
+ disableRange: true,
5008
+ isDateAvailable
5006
5009
  }
5007
5010
  )
5008
5011
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnSelector
3
- } from "../../../chunk-RB7F6QWD.js";
3
+ } from "../../../chunk-WNGFRQ4Y.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -5109,7 +5109,8 @@ var DateInput = (_a) => {
5109
5109
  placeholder = "MM/DD/YYYY",
5110
5110
  disabled,
5111
5111
  readOnly = false,
5112
- label
5112
+ label,
5113
+ isDateAvailable
5113
5114
  } = _b, props = __objRest(_b, [
5114
5115
  "id",
5115
5116
  "testid",
@@ -5118,7 +5119,8 @@ var DateInput = (_a) => {
5118
5119
  "placeholder",
5119
5120
  "disabled",
5120
5121
  "readOnly",
5121
- "label"
5122
+ "label",
5123
+ "isDateAvailable"
5122
5124
  ]);
5123
5125
  const [visible, setVisible] = (0, import_react20.useState)(false);
5124
5126
  const [inputValue, setInputValue] = (0, import_react20.useState)("");
@@ -5306,7 +5308,8 @@ var DateInput = (_a) => {
5306
5308
  onChange: handleDateChange,
5307
5309
  cardStyle: true,
5308
5310
  mode: "single",
5309
- disableRange: true
5311
+ disableRange: true,
5312
+ isDateAvailable
5310
5313
  }
5311
5314
  )
5312
5315
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGridHeader
3
- } from "../../chunk-RB7F6QWD.js";
3
+ } from "../../chunk-WNGFRQ4Y.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
5
  import "../../chunk-ZIPJMN2E.js";
6
6
  import "../../chunk-FJFZBIRG.js";
@@ -5109,7 +5109,8 @@ var DateInput = (_a) => {
5109
5109
  placeholder = "MM/DD/YYYY",
5110
5110
  disabled,
5111
5111
  readOnly = false,
5112
- label
5112
+ label,
5113
+ isDateAvailable
5113
5114
  } = _b, props = __objRest(_b, [
5114
5115
  "id",
5115
5116
  "testid",
@@ -5118,7 +5119,8 @@ var DateInput = (_a) => {
5118
5119
  "placeholder",
5119
5120
  "disabled",
5120
5121
  "readOnly",
5121
- "label"
5122
+ "label",
5123
+ "isDateAvailable"
5122
5124
  ]);
5123
5125
  const [visible, setVisible] = (0, import_react20.useState)(false);
5124
5126
  const [inputValue, setInputValue] = (0, import_react20.useState)("");
@@ -5306,7 +5308,8 @@ var DateInput = (_a) => {
5306
5308
  onChange: handleDateChange,
5307
5309
  cardStyle: true,
5308
5310
  mode: "single",
5309
- disableRange: true
5311
+ disableRange: true,
5312
+ isDateAvailable
5310
5313
  }
5311
5314
  )
5312
5315
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGrid
3
- } from "../../chunk-RB7F6QWD.js";
3
+ } from "../../chunk-WNGFRQ4Y.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
5
  import "../../chunk-ZIPJMN2E.js";
6
6
  import "../../chunk-FJFZBIRG.js";
@@ -4834,7 +4834,8 @@ var DateInput = (_a) => {
4834
4834
  placeholder = "MM/DD/YYYY",
4835
4835
  disabled,
4836
4836
  readOnly = false,
4837
- label
4837
+ label,
4838
+ isDateAvailable
4838
4839
  } = _b, props = __objRest(_b, [
4839
4840
  "id",
4840
4841
  "testid",
@@ -4843,7 +4844,8 @@ var DateInput = (_a) => {
4843
4844
  "placeholder",
4844
4845
  "disabled",
4845
4846
  "readOnly",
4846
- "label"
4847
+ "label",
4848
+ "isDateAvailable"
4847
4849
  ]);
4848
4850
  const [visible, setVisible] = (0, import_react20.useState)(false);
4849
4851
  const [inputValue, setInputValue] = (0, import_react20.useState)("");
@@ -5031,7 +5033,8 @@ var DateInput = (_a) => {
5031
5033
  onChange: handleDateChange,
5032
5034
  cardStyle: true,
5033
5035
  mode: "single",
5034
- disableRange: true
5036
+ disableRange: true,
5037
+ isDateAvailable
5035
5038
  }
5036
5039
  )
5037
5040
  }
@@ -2,7 +2,7 @@ import {
2
2
  DataGrid,
3
3
  DateInput,
4
4
  MobileDataGrid
5
- } from "../chunk-RB7F6QWD.js";
5
+ } from "../chunk-WNGFRQ4Y.js";
6
6
  import "../chunk-M7INAUAJ.js";
7
7
  import "../chunk-ZIPJMN2E.js";
8
8
  import "../chunk-FJFZBIRG.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmsi/wedgekit-react",
3
3
  "private": false,
4
- "version": "0.0.540",
4
+ "version": "0.0.542",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",
@@ -11,6 +11,7 @@ import {
11
11
  calculateCursorPosition,
12
12
  formatDate,
13
13
  } from "../utils/date";
14
+ import { Temporal } from "@js-temporal/polyfill";
14
15
 
15
16
  type DateInputProps = Omit<InputBaseProps, "id"> & {
16
17
  id?: string;
@@ -39,6 +40,12 @@ type DateInputProps = Omit<InputBaseProps, "id"> & {
39
40
  */
40
41
  readOnly?: boolean; // If true, input is read-only and cannot be focused
41
42
  label?: string; // Optional label for the input
43
+ /**
44
+ * Optional to check if a day is enabled/disabled
45
+ * @param value The date to check for availability as a Temporal.PlainDate
46
+ * @returns Is date enabled/disabled
47
+ */
48
+ isDateAvailable?: (value: Temporal.PlainDate) => boolean;
42
49
  };
43
50
 
44
51
  export const DateInput = ({
@@ -50,6 +57,7 @@ export const DateInput = ({
50
57
  disabled,
51
58
  readOnly = false,
52
59
  label,
60
+ isDateAvailable,
53
61
  ...props
54
62
  }: DateInputProps) => {
55
63
  const [visible, setVisible] = useState(false);
@@ -275,6 +283,7 @@ export const DateInput = ({
275
283
  cardStyle
276
284
  mode="single"
277
285
  disableRange
286
+ isDateAvailable={isDateAvailable}
278
287
  />
279
288
  </div>,
280
289
  findDocumentRoot(popoverRef.current),