@indico-data/design-system 2.37.0 → 2.38.0

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 (66) hide show
  1. package/lib/index.css +40 -408
  2. package/lib/index.d.ts +120 -82
  3. package/lib/index.esm.css +40 -408
  4. package/lib/index.esm.js +15630 -16558
  5. package/lib/index.esm.js.map +1 -1
  6. package/lib/index.js +14164 -15091
  7. package/lib/index.js.map +1 -1
  8. package/lib/src/components/forms/date/datePicker/DatePicker.d.ts +3 -0
  9. package/lib/src/components/forms/date/datePicker/DatePicker.stories.d.ts +9 -0
  10. package/lib/src/components/forms/date/datePicker/contants.d.ts +21 -0
  11. package/lib/src/components/forms/date/datePicker/types.d.ts +48 -0
  12. package/lib/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.d.ts +22 -0
  13. package/lib/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.stories.d.ts +6 -0
  14. package/lib/src/components/forms/date/iconTriggerDatePicker/index.d.ts +1 -0
  15. package/lib/src/components/forms/date/inputDatePicker/SingleInputDatePicker.d.ts +23 -0
  16. package/lib/src/components/forms/date/inputDatePicker/SingleInputDatePicker.stories.d.ts +6 -0
  17. package/lib/src/components/forms/date/inputDatePicker/index.d.ts +1 -0
  18. package/lib/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.d.ts +23 -0
  19. package/lib/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.stories.d.ts +6 -0
  20. package/lib/src/components/forms/date/inputDateRangePicker/index.d.ts +1 -0
  21. package/lib/src/components/forms/input/Input.d.ts +1 -0
  22. package/lib/src/components/index.d.ts +3 -0
  23. package/lib/src/index.d.ts +4 -1
  24. package/lib/src/legacy/components/index.d.ts +1 -1
  25. package/lib/src/legacy/components/inputs/index.d.ts +0 -2
  26. package/package.json +2 -2
  27. package/src/components/forms/date/datePicker/DatePicker.mdx +41 -0
  28. package/src/components/forms/date/datePicker/DatePicker.stories.tsx +307 -0
  29. package/src/components/forms/date/datePicker/DatePicker.tsx +68 -0
  30. package/src/components/forms/date/datePicker/contants.ts +22 -0
  31. package/src/components/forms/date/datePicker/styles/DatePicker.scss +85 -0
  32. package/src/components/forms/date/datePicker/types.ts +59 -0
  33. package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.mdx +17 -0
  34. package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.stories.tsx +201 -0
  35. package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.tsx +89 -0
  36. package/src/components/forms/date/iconTriggerDatePicker/index.ts +1 -0
  37. package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.mdx +18 -0
  38. package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.stories.tsx +208 -0
  39. package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.tsx +117 -0
  40. package/src/components/forms/date/inputDatePicker/index.ts +1 -0
  41. package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.mdx +18 -0
  42. package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.stories.tsx +208 -0
  43. package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.tsx +117 -0
  44. package/src/components/forms/date/inputDateRangePicker/index.ts +1 -0
  45. package/src/components/forms/input/Input.tsx +3 -0
  46. package/src/components/index.ts +3 -0
  47. package/src/index.ts +3 -2
  48. package/src/legacy/components/index.ts +0 -2
  49. package/src/legacy/components/inputs/index.ts +0 -2
  50. package/src/styles/index.scss +2 -1
  51. package/lib/src/legacy/components/inputs/DatePicker/DatePicker.d.ts +0 -15
  52. package/lib/src/legacy/components/inputs/DatePicker/DatePicker.stories.d.ts +0 -6
  53. package/lib/src/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +0 -1
  54. package/lib/src/legacy/components/inputs/DatePicker/index.d.ts +0 -1
  55. package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +0 -21
  56. package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.d.ts +0 -7
  57. package/lib/src/legacy/components/inputs/NoInputDatePicker/index.d.ts +0 -1
  58. package/src/legacy/components/inputs/DatePicker/DatePicker.stories.tsx +0 -30
  59. package/src/legacy/components/inputs/DatePicker/DatePicker.styles.ts +0 -437
  60. package/src/legacy/components/inputs/DatePicker/DatePicker.tsx +0 -165
  61. package/src/legacy/components/inputs/DatePicker/index.ts +0 -1
  62. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.scss +0 -441
  63. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.tsx +0 -52
  64. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +0 -245
  65. package/src/legacy/components/inputs/NoInputDatePicker/index.ts +0 -1
  66. /package/src/{legacy/components/inputs/NoInputDatePicker/__tests__/NoInputDatePicker.test.tsx → components/forms/date/iconTriggerDatePicker/__tests__/IconTriggerDatePicker.test.tsx} +0 -0
package/lib/index.d.ts CHANGED
@@ -6,10 +6,10 @@ import React$1, { ChangeEvent, MouseEventHandler, ReactElement } from 'react';
6
6
  import { PermafrostComponent as PermafrostComponent$1, IconName as IconName$1, IconSizes as IconSizes$1, SemanticColor as SemanticColor$1 } from '@/types';
7
7
  import { AriaButtonProps } from '@react-types/button';
8
8
  import { AriaRadioProps, RadioGroupProps as RadioGroupProps$1, AriaRadioGroupProps } from '@react-types/radio';
9
- import { DateRange } from 'react-day-picker';
10
9
  import { ContainerProps, RowProps, ColProps } from 'react-grid-system';
11
10
  import { TableProps as TableProps$1, Direction as Direction$1, Alignment as Alignment$1 } from 'react-data-table-component';
12
- import { Props as Props$r } from 'react-select';
11
+ import { Props as Props$q } from 'react-select';
12
+ import { DateRange, OnSelectHandler, Mode, CustomComponents, Matcher, Formatters, MonthChangeEventHandler, DayEventHandler } from 'react-day-picker';
13
13
 
14
14
  declare const GlobalStyles: () => react_jsx_runtime.JSX.Element;
15
15
 
@@ -223,25 +223,25 @@ declare const allColors: {
223
223
  readonly backgroundColor: "#182432";
224
224
  };
225
225
 
226
- type Props$q = PermafrostComponent$1 & {
226
+ type Props$p = PermafrostComponent$1 & {
227
227
  content: React$1.ReactNode;
228
228
  header?: React$1.ReactNode | string;
229
229
  open?: boolean;
230
230
  };
231
- declare const Accordion: (props: Props$q) => react_jsx_runtime.JSX.Element;
231
+ declare const Accordion: (props: Props$p) => react_jsx_runtime.JSX.Element;
232
232
 
233
- type Props$p = PermafrostComponent$1 & {
233
+ type Props$o = PermafrostComponent$1 & {
234
234
  style?: object;
235
235
  children: React$1.ReactNode;
236
236
  };
237
- declare const Section: (props: Props$p) => react_jsx_runtime.JSX.Element;
237
+ declare const Section: (props: Props$o) => react_jsx_runtime.JSX.Element;
238
238
 
239
- type Props$o = PermafrostComponent$1 & {
239
+ type Props$n = PermafrostComponent$1 & {
240
240
  title?: string;
241
241
  style?: object;
242
242
  children: React$1.ReactNode;
243
243
  };
244
- declare const SectionBlock: (props: Props$o) => react_jsx_runtime.JSX.Element;
244
+ declare const SectionBlock: (props: Props$n) => react_jsx_runtime.JSX.Element;
245
245
 
246
246
  type SectionBodyProps = PermafrostComponent$1 & {
247
247
  style?: object;
@@ -249,11 +249,11 @@ type SectionBodyProps = PermafrostComponent$1 & {
249
249
  };
250
250
  declare const SectionBody: (props: SectionBodyProps) => react_jsx_runtime.JSX.Element;
251
251
 
252
- type Props$n = PermafrostComponent$1 & {
252
+ type Props$m = PermafrostComponent$1 & {
253
253
  style?: object;
254
254
  children?: React$1.ReactNode;
255
255
  };
256
- declare const SectionHeader: (props: Props$n) => react_jsx_runtime.JSX.Element;
256
+ declare const SectionHeader: (props: Props$m) => react_jsx_runtime.JSX.Element;
257
257
 
258
258
  declare const SectionTable: (props: any) => react_jsx_runtime.JSX.Element;
259
259
 
@@ -280,7 +280,7 @@ declare function Button$1(props: ButtonProps$1): React$1.ReactElement;
280
280
  type IconButtonVariant = 'default' | 'primary' | 'destructive' | 'outline';
281
281
  type ButtonSize = 'normal' | 'large';
282
282
 
283
- type Props$m = PermafrostComponent$1 & {
283
+ type Props$l = PermafrostComponent$1 & {
284
284
  /**
285
285
  * Adjusts vertical alignment of the text label, in relation to the icon
286
286
  */
@@ -306,9 +306,9 @@ type Props$m = PermafrostComponent$1 & {
306
306
  *
307
307
  * @see {@link https://react-spectrum.adobe.com/blog/building-a-button-part-1.html}
308
308
  */
309
- declare function IconButton(props: Props$m): react_jsx_runtime.JSX.Element;
309
+ declare function IconButton(props: Props$l): react_jsx_runtime.JSX.Element;
310
310
 
311
- type Props$l = PermafrostComponent$1 & {
311
+ type Props$k = PermafrostComponent$1 & {
312
312
  defaultValue?: string;
313
313
  disabled?: boolean;
314
314
  horizontal?: boolean;
@@ -323,7 +323,7 @@ type Props$l = PermafrostComponent$1 & {
323
323
  value?: string | number;
324
324
  validationErrors?: string[];
325
325
  };
326
- declare const BorderSelect: (props: Props$l) => react_jsx_runtime.JSX.Element;
326
+ declare const BorderSelect: (props: Props$k) => react_jsx_runtime.JSX.Element;
327
327
 
328
328
  type ComboboxProps = {
329
329
  'aria-label'?: string;
@@ -371,7 +371,7 @@ type ComboboxOption = {
371
371
  type ComboboxSize = 'small' | 'medium';
372
372
  type ComboboxVariant = 'default' | 'light';
373
373
 
374
- type Props$k = PermafrostComponent$1 & {
374
+ type Props$j = PermafrostComponent$1 & {
375
375
  disabled?: boolean;
376
376
  initialText?: string;
377
377
  options: {
@@ -385,7 +385,7 @@ type Props$k = PermafrostComponent$1 & {
385
385
  onChange(e: React$1.ChangeEvent<HTMLSelectElement>): void;
386
386
  onClick?(e: React$1.MouseEvent<HTMLDivElement, MouseEvent>): void;
387
387
  };
388
- declare const Select$1: (props: Props$k) => react_jsx_runtime.JSX.Element;
388
+ declare const Select$1: (props: Props$j) => react_jsx_runtime.JSX.Element;
389
389
 
390
390
  /**
391
391
  * Multiselect combobox component. If selections are not bound to outside state
@@ -426,7 +426,7 @@ declare const SingleCombobox: React$1.ForwardRefExoticComponent<PermafrostCompon
426
426
  onChange: (selectedOption: ComboboxOption) => void;
427
427
  } & React$1.RefAttributes<unknown>>;
428
428
 
429
- type Props$j = PermafrostComponent$1 & {
429
+ type Props$i = PermafrostComponent$1 & {
430
430
  children: React$1.ReactNode | string;
431
431
  minLength?: number;
432
432
  onUpdate?(newValue: string): void;
@@ -435,9 +435,9 @@ type Props$j = PermafrostComponent$1 & {
435
435
  * Wrapper component which enables text editing in place directly on a child component,
436
436
  * element, or plain text.
437
437
  */
438
- declare function EditableInput(props: Props$j): react_jsx_runtime.JSX.Element;
438
+ declare function EditableInput(props: Props$i): react_jsx_runtime.JSX.Element;
439
439
 
440
- type Props$i = PermafrostComponent$1 & {
440
+ type Props$h = PermafrostComponent$1 & {
441
441
  autoFocus?: boolean;
442
442
  decrement?(): void;
443
443
  disabled?: boolean;
@@ -457,9 +457,9 @@ type Props$i = PermafrostComponent$1 & {
457
457
  * Basic numeric input field. A label is required, but may be visually hidden
458
458
  * using the `hiddenLabel` property.
459
459
  */
460
- declare function NumberInput(props: Props$i): React$1.ReactElement;
460
+ declare function NumberInput(props: Props$h): React$1.ReactElement;
461
461
 
462
- type Props$h = PermafrostComponent$1 & {
462
+ type Props$g = PermafrostComponent$1 & {
463
463
  inputBorder?: boolean;
464
464
  showClearInputIcon?: boolean;
465
465
  showSearchIcon?: boolean;
@@ -472,9 +472,9 @@ type Props$h = PermafrostComponent$1 & {
472
472
  placeholder?: string;
473
473
  value?: string;
474
474
  };
475
- declare const SearchInput: (props: Props$h) => react_jsx_runtime.JSX.Element;
475
+ declare const SearchInput: (props: Props$g) => react_jsx_runtime.JSX.Element;
476
476
 
477
- type Props$g = PermafrostComponent$1 & {
477
+ type Props$f = PermafrostComponent$1 & {
478
478
  autoComplete?: 'email' | 'current-password' | 'new-password' | string;
479
479
  autoFocus?: boolean;
480
480
  defaultValue?: string;
@@ -495,9 +495,9 @@ type Props$g = PermafrostComponent$1 & {
495
495
  value?: string;
496
496
  readOnly?: boolean;
497
497
  };
498
- declare function TextInput(props: Props$g): React$1.ReactElement;
498
+ declare function TextInput(props: Props$f): React$1.ReactElement;
499
499
 
500
- type Props$f = {
500
+ type Props$e = {
501
501
  ['aria-label']: string;
502
502
  children?: React$1.ReactNode;
503
503
  hideFocusRing: boolean;
@@ -513,7 +513,7 @@ type Props$f = {
513
513
  * A group label must be included: either pass a string or markup into the
514
514
  * `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
515
515
  */
516
- declare function RadioGroup$1({ children, ...props }: Props$f): react_jsx_runtime.JSX.Element;
516
+ declare function RadioGroup$1({ children, ...props }: Props$e): react_jsx_runtime.JSX.Element;
517
517
  /**
518
518
  * A single radio button and its label.
519
519
  */
@@ -542,63 +542,30 @@ declare function Radio$1(props: AriaRadioProps & {
542
542
  isVisuallySelected?: (selectedValue: string) => void;
543
543
  }): react_jsx_runtime.JSX.Element;
544
544
 
545
- type Props$e = PermafrostComponent$1 & {
546
- ariaLabel?: string;
547
- disableBeforeDate?: Date;
548
- disableAfterDate?: Date;
549
- disabled?: boolean;
550
- id: string;
551
- label?: string;
552
- onChange: (value: Date | undefined) => void;
553
- placeholder?: string;
554
- selected?: Date | undefined;
555
- value: Date | undefined;
556
- };
557
- declare const DatePicker: (props: Props$e) => react_jsx_runtime.JSX.Element;
558
-
559
545
  type Props$d = PermafrostComponent$1 & {
560
- ariaLabel?: string;
561
- disableBeforeDate?: Date;
562
- disableAfterDate?: Date;
563
- disabled?: boolean;
564
- id: string;
565
- label?: string;
566
- onChange: (value: Date | DateRange | undefined) => void;
567
- selected?: Date | undefined;
568
- selectedRange?: DateRange | undefined;
569
- value: Date | undefined;
570
- triggerIcon: IconName$1;
571
- triggerIconSize: IconSizes$1;
572
- isRangePicker?: boolean;
573
- isOpen?: boolean;
574
- clearOnClose?: boolean;
575
- };
576
- declare const NoInputDatePicker: (props: Props$d) => react_jsx_runtime.JSX.Element;
577
-
578
- type Props$c = PermafrostComponent$1 & {
579
546
  ariaLabel?: string;
580
547
  size?: IconSizes$1;
581
548
  style?: React$1.CSSProperties;
582
549
  fill?: string;
583
550
  };
584
- declare function CircleSpinner(props: Props$c): React$1.ReactElement;
551
+ declare function CircleSpinner(props: Props$d): React$1.ReactElement;
585
552
 
586
- type Props$b = PermafrostComponent$1 & {
553
+ type Props$c = PermafrostComponent$1 & {
587
554
  width?: string;
588
555
  };
589
- declare function BarSpinner(props: Props$b): React$1.ReactElement;
556
+ declare function BarSpinner(props: Props$c): React$1.ReactElement;
590
557
 
591
- type Props$a = PermafrostComponent$1 & {
558
+ type Props$b = PermafrostComponent$1 & {
592
559
  color?: string;
593
560
  overallSize?: string | number;
594
561
  rippleSize?: string | number;
595
562
  showRandomMessage?: boolean;
596
563
  };
597
- declare function CirclePulse(props: Props$a): React$1.ReactElement;
564
+ declare function CirclePulse(props: Props$b): React$1.ReactElement;
598
565
 
599
566
  declare const RandomLoadingMessage: () => react_jsx_runtime.JSX.Element;
600
567
 
601
- type Props$9 = PermafrostComponent$1 & {
568
+ type Props$a = PermafrostComponent$1 & {
602
569
  backgroundColor?: string;
603
570
  foregroundColor?: string;
604
571
  ringRadius?: number;
@@ -607,11 +574,11 @@ type Props$9 = PermafrostComponent$1 & {
607
574
  value: number;
608
575
  valueFontSize?: number;
609
576
  };
610
- declare function PercentageRing(props: Props$9): react_jsx_runtime.JSX.Element;
577
+ declare function PercentageRing(props: Props$a): react_jsx_runtime.JSX.Element;
611
578
 
612
579
  declare const LoadingList: () => react_jsx_runtime.JSX.Element;
613
580
 
614
- type Props$8 = PermafrostComponent$1 & {
581
+ type Props$9 = PermafrostComponent$1 & {
615
582
  accordion?: boolean;
616
583
  accordionDefaultOpen?: boolean;
617
584
  emptyListMessage?: string;
@@ -648,9 +615,9 @@ type Props$8 = PermafrostComponent$1 & {
648
615
  title: string;
649
616
  totalCount?: number;
650
617
  };
651
- declare const ListTable: (props: Props$8) => react_jsx_runtime.JSX.Element;
618
+ declare const ListTable: (props: Props$9) => react_jsx_runtime.JSX.Element;
652
619
 
653
- type Props$7 = PermafrostComponent$1 & {
620
+ type Props$8 = PermafrostComponent$1 & {
654
621
  currentPage: number;
655
622
  limit: number;
656
623
  pageInfo: {
@@ -665,9 +632,9 @@ type Props$7 = PermafrostComponent$1 & {
665
632
  getNextPage(cursor: number): void;
666
633
  getPreviousPage(cursor: number): void;
667
634
  };
668
- declare function Pagination(props: Props$7): react_jsx_runtime.JSX.Element;
635
+ declare function Pagination(props: Props$8): react_jsx_runtime.JSX.Element;
669
636
 
670
- type Props$6 = PermafrostComponent$1 & {
637
+ type Props$7 = PermafrostComponent$1 & {
671
638
  actionLink?: string;
672
639
  actionText?: string;
673
640
  buttonAction?(): void;
@@ -677,7 +644,7 @@ type Props$6 = PermafrostComponent$1 & {
677
644
  'data-cy': string;
678
645
  };
679
646
  };
680
- declare function Shrug(props: Props$6): React$1.ReactElement;
647
+ declare function Shrug(props: Props$7): React$1.ReactElement;
681
648
 
682
649
  type ModalBaseProps = PermafrostComponent$1 & {
683
650
  children: React$1.ReactNode | React$1.ReactNode[];
@@ -704,7 +671,7 @@ type ModalBaseProps = PermafrostComponent$1 & {
704
671
  */
705
672
  declare function ModalBase(props: ModalBaseProps): react_jsx_runtime.JSX.Element;
706
673
 
707
- type Props$5 = PermafrostComponent$1 & Pick<ModalBaseProps, 'open'> & {
674
+ type Props$6 = PermafrostComponent$1 & Pick<ModalBaseProps, 'open'> & {
708
675
  describedBy?: string;
709
676
  clickOutsideHandler(e?: React$1.SyntheticEvent): void;
710
677
  confirmText?: string;
@@ -716,9 +683,9 @@ type Props$5 = PermafrostComponent$1 & Pick<ModalBaseProps, 'open'> & {
716
683
  title?: string | React$1.ReactNode;
717
684
  width?: number;
718
685
  };
719
- declare function ConfirmModal(props: Props$5): react_jsx_runtime.JSX.Element;
686
+ declare function ConfirmModal(props: Props$6): react_jsx_runtime.JSX.Element;
720
687
 
721
- type Props$4 = {
688
+ type Props$5 = {
722
689
  children: React$1.ReactNode | React$1.ReactNode[];
723
690
  className?: string;
724
691
  isLoading?: boolean;
@@ -730,7 +697,7 @@ type Props$4 = {
730
697
  *
731
698
  * todo: this is an extremely simple version of this component; as I get more familiar with LoadingIndicator use cases, this will be refactored. - jm 9/1/2020
732
699
  */
733
- declare function LoadingAwareContainer(props: Props$4): React$1.ReactElement;
700
+ declare function LoadingAwareContainer(props: Props$5): React$1.ReactElement;
734
701
 
735
702
  interface TextTruncateProps {
736
703
  string: string;
@@ -740,7 +707,7 @@ interface TextTruncateProps {
740
707
  }
741
708
  declare function TextTruncate({ string, maxChars, children, noTitle }: TextTruncateProps): react_jsx_runtime.JSX.Element;
742
709
 
743
- type Props$3 = {
710
+ type Props$4 = {
744
711
  disabled: boolean;
745
712
  onChange: any;
746
713
  value: boolean;
@@ -749,9 +716,9 @@ type Props$3 = {
749
716
  checkedIconName?: IconName$1;
750
717
  notCheckedIconName?: IconName$1;
751
718
  } & PermafrostComponent$1;
752
- declare const Toggle$1: (props: Props$3) => react_jsx_runtime.JSX.Element;
719
+ declare const Toggle$1: (props: Props$4) => react_jsx_runtime.JSX.Element;
753
720
 
754
- type Props$2 = PermafrostComponent$1 & {
721
+ type Props$3 = PermafrostComponent$1 & {
755
722
  questionMark?: boolean;
756
723
  for?: string | null;
757
724
  place?: string;
@@ -762,7 +729,7 @@ type Props$2 = PermafrostComponent$1 & {
762
729
  children: React$1.ReactNode;
763
730
  block?: boolean;
764
731
  };
765
- declare const Tooltip: (props: Props$2) => react_jsx_runtime.JSX.Element;
732
+ declare const Tooltip: (props: Props$3) => react_jsx_runtime.JSX.Element;
766
733
 
767
734
  declare const mix: (color_1: string, color_2: string, weight: number) => string;
768
735
  declare const shade: (color: string, percentage: number) => string;
@@ -938,6 +905,7 @@ interface LabelProps {
938
905
  }
939
906
 
940
907
  interface BaseInputProps {
908
+ id?: string;
941
909
  value?: string | undefined;
942
910
  placeholder?: string;
943
911
  isDisabled?: boolean;
@@ -1027,11 +995,81 @@ interface PasswordInputProps extends LabelProps {
1027
995
  }
1028
996
  declare const LabeledPasswordInput: React$1.ForwardRefExoticComponent<Omit<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement> & LabelProps, "ref"> & React$1.RefAttributes<any>>;
1029
997
 
1030
- interface SelectProps<OptionType extends SelectOption> extends Props$r<OptionType> {
998
+ interface SelectProps<OptionType extends SelectOption> extends Props$q<OptionType> {
1031
999
  options: OptionType[];
1032
1000
  }
1033
1001
  declare const Select: <OptionType extends SelectOption>({ classNamePrefix, className, components: customComponents, ...props }: SelectProps<OptionType>) => react_jsx_runtime.JSX.Element;
1034
1002
 
1003
+ interface DatePickerProps {
1004
+ selected?: Date | DateRange | undefined;
1005
+ onSelect?: OnSelectHandler<Date> | OnSelectHandler<DateRange>;
1006
+ mode?: Mode;
1007
+ className?: string;
1008
+ captionLayout?: 'dropdown' | 'dropdown-months' | 'dropdown-years' | 'label';
1009
+ id?: string;
1010
+ month?: Date;
1011
+ defaultMonth?: Date;
1012
+ startMonth?: Date | undefined;
1013
+ endMonth?: Date;
1014
+ components?: Partial<CustomComponents>;
1015
+ numberOfMonths?: number;
1016
+ isDisabled?: Matcher | Matcher[] | undefined;
1017
+ formatters?: Partial<Formatters>;
1018
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
1019
+ firstWeekContainsDate?: 1 | 4;
1020
+ today?: Date;
1021
+ isRequired?: any;
1022
+ min?: number;
1023
+ max?: number;
1024
+ onMonthChange?: MonthChangeEventHandler;
1025
+ onNextClick?: MonthChangeEventHandler;
1026
+ onPrevClick?: MonthChangeEventHandler;
1027
+ onDayClick?: DayEventHandler<React.MouseEvent>;
1028
+ }
1029
+
1030
+ declare const DatePicker: React$1.ForwardRefExoticComponent<DatePickerProps & React$1.RefAttributes<HTMLInputElement>>;
1031
+
1032
+ interface Props$2 {
1033
+ mode?: Mode;
1034
+ ariaLabel: string;
1035
+ disableBeforeDate?: Date;
1036
+ disableAfterDate?: Date;
1037
+ isDisabled?: boolean;
1038
+ id: string;
1039
+ label?: string;
1040
+ onSelect?: (selected: Date | DateRange | Date[] | undefined) => void;
1041
+ month?: Date;
1042
+ selected?: Date | DateRange | Date[] | undefined;
1043
+ triggerIcon: IconName$1;
1044
+ triggerIconSize: IconSizes$1;
1045
+ isOpen?: boolean;
1046
+ clearOnClose?: boolean;
1047
+ className?: string;
1048
+ 'data-testid'?: string;
1049
+ }
1050
+ declare const IconTriggerDatePicker: (props: Props$2) => react_jsx_runtime.JSX.Element;
1051
+
1052
+ interface SingleInputDatePickerProps {
1053
+ ariaLabel: string;
1054
+ disableBeforeDate?: Date;
1055
+ disableAfterDate?: Date;
1056
+ isDisabled?: boolean;
1057
+ id?: string;
1058
+ label?: string;
1059
+ onSelect?: (selected: Date | undefined) => void;
1060
+ month?: Date;
1061
+ selected?: Date | DateRange | Date[] | undefined;
1062
+ isOpen?: boolean;
1063
+ clearOnClose?: boolean;
1064
+ className?: string;
1065
+ inputIconName?: IconName$1;
1066
+ isClearable?: boolean;
1067
+ inputPlaceholder?: string;
1068
+ errorMessage?: string | undefined;
1069
+ 'data-testid'?: string;
1070
+ }
1071
+ declare function SingleInputDatePicker(props: SingleInputDatePickerProps): react_jsx_runtime.JSX.Element;
1072
+
1035
1073
  interface FormProps {
1036
1074
  children: React$1.ReactNode;
1037
1075
  className?: string;
@@ -1085,4 +1123,4 @@ declare function Menu({ children }: MenuProps): react_jsx_runtime.JSX.Element;
1085
1123
 
1086
1124
  declare const Pill: ({ children, className, color, size, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
1087
1125
 
1088
- export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, FloatUI, Form, GlobalStyles, Icon, IconButton, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, Menu, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Pill, Radio$2 as Radio, RadioGroup$1 as RadioGroup, Radio as RadioInput, RandomLoadingMessage, Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select$1 as Select, Select as SelectInput, Shrug, SingleCombobox, Skeleton, typography as TYPOGRAPHY, Table, TextInput, TextTruncate, LabeledTextarea as Textarea, Toggle$1 as Toggle, Toggle as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };
1126
+ export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, FloatUI, Form, GlobalStyles, Icon, IconButton, IconTriggerDatePicker, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, Menu, ModalBase, MultiCombobox, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Pill, Radio$2 as Radio, RadioGroup$1 as RadioGroup, Radio as RadioInput, RandomLoadingMessage, Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select$1 as Select, Select as SelectInput, Shrug, SingleCombobox, SingleInputDatePicker, Skeleton, typography as TYPOGRAPHY, Table, TextInput, TextTruncate, LabeledTextarea as Textarea, Toggle$1 as Toggle, Toggle as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };