@epam/uui 5.7.1 → 5.8.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 (168) hide show
  1. package/assets/styles/buttonLayout.scss +70 -70
  2. package/assets/styles/clickable.scss +26 -26
  3. package/assets/styles/controlLayout.scss +28 -28
  4. package/assets/styles/dnd.scss +9 -9
  5. package/assets/styles/effects.scss +7 -7
  6. package/assets/styles/icons.scss +54 -54
  7. package/assets/styles/index.scss +9 -9
  8. package/assets/styles/inputs.scss +74 -74
  9. package/assets/styles/text-size.scss +42 -42
  10. package/assets/styles/typography.scss +174 -174
  11. package/components/buttons/Button.d.ts +8 -5
  12. package/components/buttons/Button.d.ts.map +1 -1
  13. package/components/buttons/IconButton.d.ts +8 -4
  14. package/components/buttons/IconButton.d.ts.map +1 -1
  15. package/components/buttons/LinkButton.d.ts +6 -14
  16. package/components/buttons/LinkButton.d.ts.map +1 -1
  17. package/components/buttons/TabButton.d.ts +5 -13
  18. package/components/buttons/TabButton.d.ts.map +1 -1
  19. package/components/buttons/VerticalTabButton.d.ts +4 -4
  20. package/components/buttons/VerticalTabButton.d.ts.map +1 -1
  21. package/components/datePickers/Calendar.d.ts +3 -2
  22. package/components/datePickers/Calendar.d.ts.map +1 -1
  23. package/components/datePickers/CalendarPresets.d.ts +2 -1
  24. package/components/datePickers/CalendarPresets.d.ts.map +1 -1
  25. package/components/datePickers/DatePicker.d.ts +3 -10
  26. package/components/datePickers/DatePicker.d.ts.map +1 -1
  27. package/components/datePickers/DatePickerBody.d.ts +18 -10
  28. package/components/datePickers/DatePickerBody.d.ts.map +1 -1
  29. package/components/datePickers/DatePickerHeader.d.ts +12 -8
  30. package/components/datePickers/DatePickerHeader.d.ts.map +1 -1
  31. package/components/datePickers/RangeDatePicker.d.ts +3 -15
  32. package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
  33. package/components/datePickers/RangeDatePickerBody.d.ts +13 -30
  34. package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
  35. package/components/datePickers/RangeDatePickerInput.d.ts +43 -0
  36. package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -0
  37. package/components/datePickers/helpers.d.ts +34 -0
  38. package/components/datePickers/helpers.d.ts.map +1 -0
  39. package/components/datePickers/index.d.ts +4 -1
  40. package/components/datePickers/index.d.ts.map +1 -1
  41. package/components/datePickers/types.d.ts +132 -0
  42. package/components/datePickers/types.d.ts.map +1 -0
  43. package/components/filters/FilterDatePickerBody.d.ts +7 -11
  44. package/components/filters/FilterDatePickerBody.d.ts.map +1 -1
  45. package/components/filters/FilterNumericBody.d.ts.map +1 -1
  46. package/components/filters/FilterPanelItemToggler.d.ts +1 -1
  47. package/components/filters/FilterPickerBody.d.ts +1 -1
  48. package/components/filters/FilterPickerBody.d.ts.map +1 -1
  49. package/components/filters/FilterRangeDatePickerBody.d.ts +4 -17
  50. package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
  51. package/components/filters/FiltersPanel.d.ts.map +1 -1
  52. package/components/filters/FiltersPanelItem.d.ts.map +1 -1
  53. package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
  54. package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
  55. package/components/inputs/Checkbox.d.ts +6 -2
  56. package/components/inputs/Checkbox.d.ts.map +1 -1
  57. package/components/inputs/InputAddon.d.ts +2 -1
  58. package/components/inputs/InputAddon.d.ts.map +1 -1
  59. package/components/inputs/NumericInput.d.ts +8 -12
  60. package/components/inputs/NumericInput.d.ts.map +1 -1
  61. package/components/inputs/RadioInput.d.ts +3 -2
  62. package/components/inputs/RadioInput.d.ts.map +1 -1
  63. package/components/inputs/Slider.d.ts +2 -1
  64. package/components/inputs/Slider.d.ts.map +1 -1
  65. package/components/inputs/Switch.d.ts +6 -2
  66. package/components/inputs/Switch.d.ts.map +1 -1
  67. package/components/inputs/TextArea.d.ts +7 -11
  68. package/components/inputs/TextArea.d.ts.map +1 -1
  69. package/components/inputs/TextInput.d.ts +5 -9
  70. package/components/inputs/TextInput.d.ts.map +1 -1
  71. package/components/inputs/timePicker/TimePicker.d.ts +6 -2
  72. package/components/inputs/timePicker/TimePicker.d.ts.map +1 -1
  73. package/components/inputs/timePicker/TimePickerBody.d.ts.map +1 -1
  74. package/components/layout/Accordion.d.ts +6 -2
  75. package/components/layout/Accordion.d.ts.map +1 -1
  76. package/components/layout/Blocker.d.ts +1 -1
  77. package/components/layout/Blocker.d.ts.map +1 -1
  78. package/components/layout/ControlGroup.d.ts +2 -1
  79. package/components/layout/ControlGroup.d.ts.map +1 -1
  80. package/components/layout/FlexItems/FlexCell.d.ts +3 -2
  81. package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
  82. package/components/layout/FlexItems/FlexRow.d.ts +2 -6
  83. package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
  84. package/components/layout/FlexItems/Panel.d.ts +3 -2
  85. package/components/layout/FlexItems/Panel.d.ts.map +1 -1
  86. package/components/layout/LabeledInput.d.ts +11 -4
  87. package/components/layout/LabeledInput.d.ts.map +1 -1
  88. package/components/layout/ScrollBars.d.ts +2 -1
  89. package/components/layout/ScrollBars.d.ts.map +1 -1
  90. package/components/layout/index.d.ts +1 -0
  91. package/components/layout/index.d.ts.map +1 -1
  92. package/components/navigation/Anchor.d.ts +2 -1
  93. package/components/navigation/Anchor.d.ts.map +1 -1
  94. package/components/navigation/MainMenu/Burger/Burger.d.ts +2 -4
  95. package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
  96. package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +5 -3
  97. package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
  98. package/components/navigation/MainMenu/MainMenu.d.ts +3 -6
  99. package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
  100. package/components/navigation/MainMenu/MainMenuButton.d.ts +1 -11
  101. package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
  102. package/components/navigation/MainMenu/MainMenuIcon.d.ts +0 -1
  103. package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
  104. package/components/overlays/Dropdown.d.ts +2 -1
  105. package/components/overlays/Dropdown.d.ts.map +1 -1
  106. package/components/overlays/DropdownContainer.d.ts +2 -1
  107. package/components/overlays/DropdownContainer.d.ts.map +1 -1
  108. package/components/overlays/DropdownMenu.d.ts +2 -2
  109. package/components/overlays/DropdownMenu.d.ts.map +1 -1
  110. package/components/overlays/Modals.d.ts +2 -2
  111. package/components/overlays/Modals.d.ts.map +1 -1
  112. package/components/overlays/NotificationCard.d.ts +2 -6
  113. package/components/overlays/NotificationCard.d.ts.map +1 -1
  114. package/components/overlays/Snackbar.d.ts +2 -8
  115. package/components/overlays/Snackbar.d.ts.map +1 -1
  116. package/components/overlays/Tooltip.d.ts +2 -1
  117. package/components/overlays/Tooltip.d.ts.map +1 -1
  118. package/components/pickers/PickerInput.d.ts +10 -3
  119. package/components/pickers/PickerInput.d.ts.map +1 -1
  120. package/components/pickers/PickerItem.d.ts +7 -10
  121. package/components/pickers/PickerItem.d.ts.map +1 -1
  122. package/components/pickers/PickerList.d.ts.map +1 -1
  123. package/components/pickers/PickerModal.d.ts.map +1 -1
  124. package/components/pickers/PickerToggler.d.ts +4 -4
  125. package/components/pickers/PickerToggler.d.ts.map +1 -1
  126. package/components/pickers/PickerTogglerTag.d.ts +10 -0
  127. package/components/pickers/PickerTogglerTag.d.ts.map +1 -0
  128. package/components/pickers/index.d.ts +1 -0
  129. package/components/pickers/index.d.ts.map +1 -1
  130. package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +1 -1
  131. package/components/tables/DataTable.d.ts +13 -1
  132. package/components/tables/DataTable.d.ts.map +1 -1
  133. package/components/tables/DataTableCell.d.ts.map +1 -1
  134. package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
  135. package/components/tables/DataTableHeaderRow.d.ts +3 -2
  136. package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
  137. package/components/tables/DataTableRow.d.ts +3 -2
  138. package/components/tables/DataTableRow.d.ts.map +1 -1
  139. package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
  140. package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
  141. package/components/tables/types.d.ts +20 -0
  142. package/components/tables/types.d.ts.map +1 -1
  143. package/components/typography/RichTextView.d.ts +6 -2
  144. package/components/typography/RichTextView.d.ts.map +1 -1
  145. package/components/typography/Text.d.ts +7 -3
  146. package/components/typography/Text.d.ts.map +1 -1
  147. package/components/widgets/AvatarStack.d.ts +2 -1
  148. package/components/widgets/AvatarStack.d.ts.map +1 -1
  149. package/components/widgets/Badge.d.ts +5 -13
  150. package/components/widgets/Badge.d.ts.map +1 -1
  151. package/components/widgets/ProgressBar.d.ts +4 -3
  152. package/components/widgets/ProgressBar.d.ts.map +1 -1
  153. package/components/widgets/Spinner.d.ts +2 -1
  154. package/components/widgets/Spinner.d.ts.map +1 -1
  155. package/components/widgets/Tag.d.ts +5 -13
  156. package/components/widgets/Tag.d.ts.map +1 -1
  157. package/helpers/dayJsHelper.d.ts +6 -0
  158. package/helpers/dayJsHelper.d.ts.map +1 -0
  159. package/i18n.d.ts.map +1 -1
  160. package/index.esm.js +1699 -1322
  161. package/index.esm.js.map +1 -1
  162. package/index.js +1690 -1308
  163. package/index.js.map +1 -1
  164. package/package.json +7 -7
  165. package/readme.md +4 -4
  166. package/stats.html +32 -28
  167. package/styles.css +4576 -4696
  168. package/styles.css.map +1 -1
@@ -1,9 +1,10 @@
1
- import { Dayjs } from 'dayjs';
2
- import { DatePickerBodyBase, DatePickerBodyBaseProps } from '@epam/uui-components';
3
- export interface DatePickerBodyProps extends DatePickerBodyBaseProps<string> {
4
- getDayCX?(day: Dayjs): string[];
1
+ import React from 'react';
2
+ import { IControlled } from '@epam/uui-core';
3
+ import { CommonDatePickerBodyProps, ViewType } from './types';
4
+ import { Dayjs } from '../../helpers/dayJsHelper';
5
+ export interface DatePickerBodyProps extends CommonDatePickerBodyProps, IControlled<string | null> {
5
6
  /**
6
- * A pure function that gets whether day is holiday for each day.
7
+ * Manually handles holidays
7
8
  */
8
9
  isHoliday?: (day: Dayjs) => boolean;
9
10
  }
@@ -11,10 +12,17 @@ export declare const uuiDatePickerBody: {
11
12
  readonly wrapper: "uui-datepickerBody-wrapper";
12
13
  readonly separator: "uui-datepickerBody-separator";
13
14
  };
14
- export declare class DatePickerBody extends DatePickerBodyBase<string, DatePickerBodyProps> {
15
- constructor(props: DatePickerBodyProps);
16
- onDayClick: (day: Dayjs) => void;
17
- getView: () => JSX.Element;
18
- renderBody: () => JSX.Element;
15
+ export declare const DatePickerBody: React.ForwardRefExoticComponent<DatePickerBodyProps & React.RefAttributes<HTMLDivElement>>;
16
+ export interface StatelessDatePickerBodyValue<TSelection> {
17
+ value: TSelection | null;
18
+ month: Dayjs;
19
+ view: ViewType;
19
20
  }
21
+ export interface StatelessDatePickerBodyProps extends CommonDatePickerBodyProps, StatelessDatePickerBodyValue<string> {
22
+ onValueChange: (value: string | null) => void;
23
+ onMonthChange: (m: Dayjs) => void;
24
+ onViewChange: (v: ViewType) => void;
25
+ isHoliday?: (day: Dayjs) => boolean;
26
+ }
27
+ export declare const StatelessDatePickerBody: React.ForwardRefExoticComponent<StatelessDatePickerBodyProps & React.RefAttributes<HTMLDivElement>>;
20
28
  //# sourceMappingURL=DatePickerBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePickerBody.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAGrC,OAAO,EAAiC,kBAAkB,EAAE,uBAAuB,EAAqB,MAAM,sBAAsB,CAAC;AAOrI,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB,CAAC,MAAM,CAAC;IAIxE,QAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC;IAChC;;OAEG;IACH,S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AI,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,uBAAuB,qGAA0C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Icon, IEditable, IHasCX } from '@epam/uui-core';
3
- import dayjs, { Dayjs } from 'dayjs';
4
- import { PickerBodyValue } from '@epam/uui-components';
2
+ import { Icon, IHasCX } from '@epam/uui-core';
3
+ import { type Dayjs } from '../../helpers/dayJsHelper';
4
+ import { ViewType } from './types';
5
5
  export declare const uuiHeader: {
6
6
  container: string;
7
7
  header: string;
@@ -9,12 +9,16 @@ export declare const uuiHeader: {
9
9
  navIconRight: string;
10
10
  navIconLeft: string;
11
11
  };
12
- export interface DatePickerHeaderProps extends IEditable<PickerBodyValue<string>>, IHasCX {
12
+ interface DatePickerHeaderValue {
13
+ view: ViewType;
14
+ month: Dayjs;
15
+ }
16
+ export interface DatePickerHeaderProps extends IHasCX {
17
+ value: DatePickerHeaderValue;
18
+ onValueChange: (value: DatePickerHeaderValue) => void;
13
19
  navIconLeft?: Icon;
14
20
  navIconRight?: Icon;
15
21
  }
16
- export declare const getNextMonthFromCurrent: (currentDate: Dayjs) => dayjs.Dayjs;
17
- export declare const getNextYearFromCurrent: (currentDate: Dayjs) => dayjs.Dayjs;
18
- export declare const getNextListYearFromCurrent: (currentDate: Dayjs) => dayjs.Dayjs;
19
- export declare function DatePickerHeader(props: DatePickerHeaderProps): JSX.Element;
22
+ export declare function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, onValueChange, }: DatePickerHeaderProps): JSX.Element;
23
+ export {};
20
24
  //# sourceMappingURL=DatePickerHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerHeader.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePickerHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBA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AK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,aAAa,GACnE,EAAE,qBAAqB,eAqGvB"}
@@ -1,16 +1,4 @@
1
- import * as React from 'react';
2
- import { BaseRangeDatePickerProps } from '@epam/uui-core';
3
- import { SizeMod } from '../types';
4
- export interface RangeDatePickerProps extends BaseRangeDatePickerProps, SizeMod {
5
- /**
6
- * A pure function that gets placeholder for 'from' or 'to' input.
7
- */
8
- getPlaceholder?(type: InputType): string;
9
- /**
10
- * HTML ID attribute for the first input into toggler
11
- */
12
- id?: string;
13
- }
14
- export type InputType = 'from' | 'to';
15
- export declare const RangeDatePicker: (props: RangeDatePickerProps & React.RefAttributes<any>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
1
+ import React from 'react';
2
+ import { RangeDatePickerProps } from './types';
3
+ export declare const RangeDatePicker: React.ForwardRefExoticComponent<RangeDatePickerProps & React.RefAttributes<HTMLElement>>;
16
4
  //# sourceMappingURL=RangeDatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAU,wBAAwB,EAAiE,MAAM,gBAAgB,CAAC;AAKjI,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAOnC,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB,EAAE,OAAO;IAC3E;;OAEG;IACH,cAAc,CAAC,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzC;;MAEE;IACF,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAKD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;AAyFtC,eAAO,MAAM,eAAe,gIAAqC,CAAC"}
1
+ {"version":3,"file":"RangeDatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,EACiD,oBAAoB,EAC3E,MAAM,SAAS,CAAC;AA4HjB,eAAO,MAAM,eAAe,0FAA6C,CAAC"}
@@ -1,35 +1,18 @@
1
- import * as React from 'react';
2
- import { Dayjs } from 'dayjs';
3
- import { IEditable, RangeDatePickerPresets } from '@epam/uui-core';
4
- import { DatePickerBodyBaseOptions, PickerBodyValue, ViewType } from '@epam/uui-components';
5
- export declare function weekCount(displayedDate: Dayjs): number;
6
- export type PickerPart = 'from' | 'to' | null;
1
+ import React from 'react';
2
+ import { Dayjs } from '../../helpers/dayJsHelper';
3
+ import { IControlled } from '@epam/uui-core';
4
+ import { RangeDatePickerPresets } from '@epam/uui-components';
5
+ import { CommonDatePickerBodyProps, RangeDatePickerValue, RangeDatePickerBodyValue } from './types';
6
+ export declare const uuiRangeDatePickerBody: {
7
+ inRange: string;
8
+ firstDayInRangeWrapper: string;
9
+ lastDayInRangeWrapper: string;
10
+ separator: string;
11
+ };
7
12
  export declare const rangeDatePickerPresets: RangeDatePickerPresets;
8
- export interface RangeDatePickerValue {
9
- from: string | null;
10
- to: string | null;
11
- }
12
- interface RangeDatePickerBodyState {
13
- activePart: PickerPart;
14
- }
15
- type InputType = 'from' | 'to';
16
- export interface RangeDatePickerBodyProps<T> extends DatePickerBodyBaseOptions, IEditable<PickerBodyValue<T>> {
17
- focusPart: InputType;
13
+ export interface RangeDatePickerBodyProps<T> extends CommonDatePickerBodyProps, IControlled<RangeDatePickerBodyValue<T>> {
18
14
  renderFooter?(): React.ReactNode;
19
15
  isHoliday?: (day: Dayjs) => boolean;
20
- renderHeader?: (props: IEditable<PickerBodyValue<string>>) => React.ReactNode;
21
- }
22
- export declare class RangeDatePickerBody extends React.Component<RangeDatePickerBodyProps<RangeDatePickerValue>, RangeDatePickerBodyState> {
23
- state: RangeDatePickerBodyState;
24
- getDayCX: (day: Dayjs) => string[];
25
- getRange(selectedDate: string): RangeDatePickerValue;
26
- setSelectedDate(selectedDate: string): void;
27
- setDisplayedDateAndView(displayedDate: Dayjs, view: ViewType, part: PickerPart): void;
28
- getFromValue: () => PickerBodyValue<string>;
29
- getToValue: () => PickerBodyValue<string>;
30
- renderPresets: (presets: RangeDatePickerPresets) => JSX.Element;
31
- renderDatePicker: () => JSX.Element;
32
- render(): JSX.Element;
33
16
  }
34
- export {};
17
+ export declare const RangeDatePickerBody: React.ForwardRefExoticComponent<RangeDatePickerBodyProps<RangeDatePickerValue> & React.RefAttributes<HTMLDivElement>>;
35
18
  //# sourceMappingURL=RangeDatePickerBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAqB,SAAS,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EACH,yBAAyB,EAAyB,eAAe,EAAe,QAAQ,EAC3F,MAAM,sBAAsB,CAAC;AAQ9B,wBAAgB,SAAS,CAAC,aAAa,EAAE,KAAK,UAO7C;AASD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,eAAO,MAAM,sBAAsB,EAAE,sBAiCpC,CAAC;AAEF,MAAM,WAAW,oBAAoB;IAIjC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAIpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,UAAU,wBAAwB;IAI9B,UAAU,EAAE,UAAU,CAAC;CAC1B;AAKD,KAAK,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;AAE/B,MAAM,WAAW,wBAAwB,CAAC,CAAC,CAAE,SAAQ,yBAAyB,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IACzG,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BAiEpC,CAAC;AAEF,MAAM,WAAW,wBAAwB,CAAC,CAAC,CAAE,SAAQ,yBAAyB,EAAE,WAAW,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACpH,YAAY,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,mBAAmB,uHAAsC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { IEditable, IHasCX, IClickable, IHasRawProps } from '@epam/uui-core';
3
+ import { RangeDatePickerInputType, RangeDatePickerProps, RangeDatePickerValue } from './types';
4
+ /**
5
+ * Represents RangeDatePickerInputProps
6
+ */
7
+ export interface RangeDatePickerInputProps extends IEditable<RangeDatePickerValue>, IHasCX, IClickable, Pick<RangeDatePickerProps, 'getPlaceholder' | 'disableClear' | 'filter' | 'id' | 'format'> {
8
+ /**
9
+ * Defines component size.
10
+ */
11
+ size?: '24' | '30' | '36' | '42' | '48';
12
+ /**
13
+ * rawProps as HTML attributes
14
+ */
15
+ rawProps?: {
16
+ /**
17
+ * Any HTML attributes (native or 'data-') to put on 'from' input
18
+ */
19
+ from?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
20
+ /**
21
+ * Any HTML attributes (native or 'data-') to put on 'to' input
22
+ */
23
+ to?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
24
+ };
25
+ /**
26
+ * Currently setting date
27
+ */
28
+ inFocus: RangeDatePickerInputType;
29
+ /**
30
+ * Handles focus event on input element
31
+ */
32
+ onFocusInput: (event: React.FocusEvent<HTMLInputElement>, inputType: RangeDatePickerInputType) => void;
33
+ /**
34
+ * Handles blur event on input element
35
+ */
36
+ onBlurInput?: (event: React.FocusEvent<HTMLInputElement, Element>, inputType: RangeDatePickerInputType) => void;
37
+ /**
38
+ * Handles blur event on root element
39
+ */
40
+ onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void;
41
+ }
42
+ export declare const RangeDatePickerInput: React.ForwardRefExoticComponent<RangeDatePickerInputProps & React.RefAttributes<HTMLDivElement>>;
43
+ //# sourceMappingURL=RangeDatePickerInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RangeDatePickerInput.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAEN,MAAM,OAAO,CAAC;AAEf,OAAO,EACH,SAAS,EAAc,MAAM,EAAE,UAAU,EAAE,YAAY,EAC1D,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,wBAAwB,EAAE,oBAAoB,EAAE,oBAAoB,EACvE,MAAM,SAAS,CAAC;AAQjB;;GAEG;AACH,MAAM,WAAW,yBACb,SAAQ,SAAS,CAAC,oBAAoB,CAAC,EACvC,MAAM,EACN,UAAU,EACV,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;IAC1F;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,EAAE;QACP;;WAEG;QACH,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QACtE;;WAEG;QACH,EAAE,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;KACvE,CAAC;IACF;;OAEG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;MAEE;IACF,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACvG;;KAEC;IACD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAChH;;KAEC;IACD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,oBAAoB,kGAiH/B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { Dayjs } from '../../helpers/dayJsHelper';
2
+ import { RangeDatePickerInputType, RangeDatePickerValue } from './types';
3
+ export declare const defaultFormat = "MMM D, YYYY";
4
+ export declare const valueFormat = "YYYY-MM-DD";
5
+ export declare const supportedDateFormats: (format?: string) => string[];
6
+ export declare const uuiDatePickerBodyBase: {
7
+ readonly container: "uui-datepicker-container";
8
+ };
9
+ export declare const getNewMonth: (value: string | Dayjs | null) => Dayjs;
10
+ export declare const defaultRangeValue: RangeDatePickerValue;
11
+ export declare const rangeIsEmpty: (range: RangeDatePickerValue) => boolean;
12
+ export declare const getValidMonth: (i: RangeDatePickerValue, focus: RangeDatePickerInputType, format: string, filter?: (day: Dayjs) => boolean) => Dayjs;
13
+ export declare const getMonthOnOpen: (selectedDate: RangeDatePickerValue, focus: RangeDatePickerInputType) => Dayjs;
14
+ export declare const isValidDate: (input: string | null, format: string, filter?: (day: Dayjs) => boolean) => boolean | undefined;
15
+ export declare const isValidRange: (range: RangeDatePickerValue) => boolean;
16
+ export declare const getWithFrom: (selectedDate: RangeDatePickerValue, newValue: string | null) => {
17
+ from: string;
18
+ to: string;
19
+ };
20
+ export declare const getWithTo: (selectedDate: RangeDatePickerValue, newValue: string | null) => {
21
+ from: string;
22
+ to: string;
23
+ };
24
+ export declare const toValueDateRangeFormat: (value: RangeDatePickerValue, format?: string) => RangeDatePickerValue;
25
+ export declare const toCustomDateRangeFormat: (value: RangeDatePickerValue, format?: string) => RangeDatePickerValue;
26
+ export declare const toValueDateFormat: (value: string | null, format?: string) => string | null;
27
+ export declare const toCustomDateFormat: (value: string | null, format?: string) => string | null;
28
+ export declare const getPrevMonth: (currentDate: Dayjs) => Dayjs;
29
+ export declare const getNextMonth: (currentDate: Dayjs) => Dayjs;
30
+ export declare const getPrevYear: (currentDate: Dayjs) => Dayjs;
31
+ export declare const getNextYear: (currentDate: Dayjs) => Dayjs;
32
+ export declare const getPrevYearsList: (currentDate: Dayjs) => Dayjs;
33
+ export declare const getNextYearsList: (currentDate: Dayjs) => Dayjs;
34
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../components/datePickers/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEzE,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAC3C,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,eAAO,MAAM,oBAAoB,YAAa,MAAM,aAInD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;CAExB,CAAC;AAEX,eAAO,MAAM,WAAW,UAAW,MAAM,GAAG,KAAK,GAAG,IAAI,UAEvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,oBAG/B,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,oBAAoB,YAEvD,CAAC;AAEF,eAAO,MAAM,aAAa,MAAO,oBAAoB,SAAS,wBAAwB,UAAU,MAAM,iBAAiB,KAAK,KAAK,OAAO,UAUvI,CAAC;AAEF,eAAO,MAAM,cAAc,iBAAkB,oBAAoB,SAAS,wBAAwB,UASjG,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,GAAG,IAAI,UAAU,MAAM,iBAAgB,KAAK,KAAK,OAAO,KAAG,OAAO,GAAG,SAG7G,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,oBAAoB,YAMvD,CAAC;AAEF,eAAO,MAAM,WAAW,iBAAkB,oBAAoB,YAAY,MAAM,GAAG,IAAI;;;CActF,CAAC;AAEF,eAAO,MAAM,SAAS,iBAAiB,oBAAoB,YAAY,MAAM,GAAG,IAAI;;;CAoBnF,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAW,oBAAoB,WAAW,MAAM,KAAG,oBAWrF,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,oBAAoB,WAAW,MAAM,KAAG,oBAYtF,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,MAAM,GAAG,IAAI,WAAW,MAAM,KAAG,MAAM,GAAG,IAElF,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,GAAG,IAAI,WAAW,MAAM,KAAG,MAAM,GAAG,IAInF,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,KAAK,UAE9C,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,KAAK,UAE9C,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAiB,KAAK,UAE7C,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAiB,KAAK,UAE7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,KAAK,UAElD,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,KAAK,UAElD,CAAC"}
@@ -1,6 +1,9 @@
1
1
  export * from './DatePicker';
2
- export * from './DatePickerBody';
2
+ export { DatePickerBody, uuiDatePickerBody } from './DatePickerBody';
3
3
  export * from './Calendar';
4
+ export * from './RangeDatePickerInput';
4
5
  export * from './RangeDatePicker';
5
6
  export * from './RangeDatePickerBody';
7
+ export type { DatePickerBodyProps } from './DatePickerBody';
8
+ export type { DatePickerProps, RangeDatePickerProps, RangeDatePickerValue, RangeDatePickerBodyValue, } from './types';
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/datePickers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/datePickers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrE,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AAEtC,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EACR,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GAC3B,MAAM,SAAS,CAAC"}
@@ -0,0 +1,132 @@
1
+ import { CommonDatePickerProps, IAnalyticableOnChange, ICanFocus, IEditable, IHasCX, IHasPlaceholder, IHasRawProps } from '@epam/uui-core';
2
+ import { IHasEditMode } from '../types';
3
+ import { ReactElement, ReactNode } from 'react';
4
+ import { DayProps, RangeDatePickerPresets } from '@epam/uui-components';
5
+ import { type Dayjs } from '../../helpers/dayJsHelper';
6
+ /**
7
+ * Represents RangeDatePicker value
8
+ */
9
+ type RangeDatePickerValue = {
10
+ /**
11
+ * Defines DatePicker value 'from'.
12
+ */
13
+ from: string | null;
14
+ /**
15
+ * Defines DatePicker value 'to'.
16
+ */
17
+ to: string | null;
18
+ };
19
+ /**
20
+ * Represents the properties of the DatePicker component
21
+ */
22
+ interface DatePickerProps extends CommonDatePickerProps, IHasEditMode, ICanFocus<HTMLInputElement>, IEditable<string | null>, IAnalyticableOnChange<string>, IHasPlaceholder {
23
+ /**
24
+ * Defines component size.
25
+ */
26
+ size?: '24' | '30' | '36' | '42' | '48';
27
+ /**
28
+ * Defines where to place calendar icon
29
+ */
30
+ iconPosition?: 'left' | 'right';
31
+ /**
32
+ * Render prop to add a custom footer inside the DatePicker dropdown body
33
+ */
34
+ renderFooter?(): ReactNode;
35
+ /**
36
+ * Overrides rendering of the single day. For example, to highlight certain days
37
+ */
38
+ renderDay?: (renderProps: DayProps) => ReactElement<Element>;
39
+ /**
40
+ * Any HTML attributes (native or 'data-') to put on date picker parts
41
+ */
42
+ rawProps?: {
43
+ /**
44
+ * Any HTML attributes (native or 'data-') to put on date picker input
45
+ */
46
+ input?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
47
+ /**
48
+ * Any HTML attributes (native or 'data-') to put on date picker body
49
+ */
50
+ body?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
51
+ };
52
+ }
53
+ /**
54
+ * Represents the properties of the RangeDatePicker component
55
+ */
56
+ interface RangeDatePickerProps extends IEditable<RangeDatePickerValue | null>, IAnalyticableOnChange<RangeDatePickerValue | null>, CommonDatePickerProps {
57
+ /**
58
+ * Defines component size.
59
+ */
60
+ size?: '24' | '30' | '36' | '42' | '48';
61
+ /**
62
+ * Range presets (like 'this week', 'this month', etc.) to display at the right of the Picker's body.
63
+ * UUI provides defaults in the 'rangeDatePickerPresets' exported variable - you can use it as is, or build on top of it (e.g. add your presets)
64
+ */
65
+ presets?: RangeDatePickerPresets;
66
+ /**
67
+ * Allows to add a custom footer to the Picker's dropdown body
68
+ */
69
+ renderFooter?(value: RangeDatePickerValue): ReactNode;
70
+ /**
71
+ * Called when component gets input focus
72
+ */
73
+ onFocus?: (e: React.FocusEvent<HTMLInputElement>, inputType: RangeDatePickerInputType) => void;
74
+ /**
75
+ * Called when component looses input focus
76
+ */
77
+ onBlur?: (e: React.FocusEvent<HTMLInputElement>, inputType: RangeDatePickerInputType) => void;
78
+ /**
79
+ * Called when component is opened/closed
80
+ */
81
+ onOpenChange?: (isOpen: boolean) => void;
82
+ /**
83
+ * A pure function that gets placeholder for 'from' or 'to' input.
84
+ */
85
+ getPlaceholder?(type: RangeDatePickerInputType): string;
86
+ /**
87
+ * Overrides rendering of the single day. For example, to highlight certain days
88
+ */
89
+ renderDay?: (renderProps: DayProps) => ReactElement<Element>;
90
+ /**
91
+ * rawProps as HTML attributes
92
+ */
93
+ rawProps?: {
94
+ /**
95
+ * Any HTML attributes (native or 'data-') to put on 'from' input
96
+ */
97
+ from?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
98
+ /**
99
+ * Any HTML attributes (native or 'data-') to put on 'to' input
100
+ */
101
+ to?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
102
+ /**
103
+ * Any HTML attributes (native or 'data-') to put on date picker body
104
+ */
105
+ body?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
106
+ };
107
+ }
108
+ /**
109
+ * Represents RangeDatePicker input type
110
+ */
111
+ type RangeDatePickerInputType = 'from' | 'to' | null;
112
+ interface CommonDatePickerBodyProps extends IHasCX, IHasRawProps<React.HTMLAttributes<HTMLDivElement>> {
113
+ filter?(day: Dayjs): boolean;
114
+ presets?: RangeDatePickerPresets;
115
+ renderDay?: (renderProps: DayProps) => React.ReactElement<Element>;
116
+ }
117
+ type ViewType = 'DAY_SELECTION' | 'MONTH_SELECTION' | 'YEAR_SELECTION';
118
+ /**
119
+ * Represents date picker body value
120
+ */
121
+ interface RangeDatePickerBodyValue<TSelection> {
122
+ /**
123
+ * Currently setting date
124
+ */
125
+ inFocus: RangeDatePickerInputType;
126
+ /**
127
+ * Date currently set
128
+ */
129
+ selectedDate: TSelection;
130
+ }
131
+ export type { RangeDatePickerValue, DatePickerProps, RangeDatePickerProps, RangeDatePickerInputType, CommonDatePickerBodyProps, ViewType, RangeDatePickerBodyValue, };
132
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../components/datePickers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EAAE,qBAAqB,EAAE,SAAS,EAAE,SAA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CAAC,CAAC,UAAU,CAAC,CAAC;KACzE,CAAC;CACL;AAED;;GAEG;AACH,KAAK,wBAAwB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,UAAU,yBAA0B,SAAQ,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAClG,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,KAAK,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;CACtE;AAED,KAAK,QAAQ,GAAG,eAAe,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AAEvE;;GAEG;AACH,UAAU,wBAAwB,CAAC,UAAU;IACzC;;OAEG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,UAAU,CAAC;CAC5B;AAED,YAAY,EACR,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,QAAQ,EACR,wBAAwB,GAC3B,CAAC"}
@@ -1,14 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { DatePickerCoreProps, IDropdownBodyProps } from '@epam/uui-core';
3
- import { BaseDatePicker } from '@epam/uui-components';
4
- /** Represents the properties of the DatePicker. */
5
- export interface DatePickerProps extends DatePickerCoreProps, IDropdownBodyProps {
6
- }
7
- export declare class FilterDatePickerBody extends BaseDatePicker<DatePickerProps> {
8
- renderInput: () => any;
9
- onToggleHandler: (val: boolean) => void;
10
- handleCancel: () => void;
11
- renderBody(): JSX.Element;
12
- render(): JSX.Element;
2
+ import { IDropdownBodyProps } from '@epam/uui-core';
3
+ import { DatePickerProps } from '../datePickers';
4
+ /**
5
+ * Represents the properties of the FiterDatePicker
6
+ */
7
+ export interface FilterDatePickerProps extends DatePickerProps, IDropdownBodyProps {
13
8
  }
9
+ export declare function FilterDatePickerBody(props: FilterDatePickerProps): JSX.Element;
14
10
  //# sourceMappingURL=FilterDatePickerBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterDatePickerBody.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAMtD,mDAAmD;AACnD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,EAAE,kBAAkB;CAAG;AAEnF,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,WAAW,QAAO,GAAG,CAEnB;IAEF,eAAe,QAAS,OAAO,UAG7B;IAEF,YAAY,aAGV;IAEF,UAAU;IA0BV,MAAM;CAGT"}
1
+ {"version":3,"file":"FilterDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterDatePickerBody.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,gBAAgB,CAAC;AAMnE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe,EAAE,kBAAkB;CAAG;AAErF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,qBAAqB,eAoDhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterNumericBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterNumericBody.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAY,MAAM,gBAAgB,CAAC;AAM7D,UAAU,kBAAkB;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,UAAU,uBAAwB,SAAQ,iBAAiB;IACvD;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,kBAAkB,CAAC;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,eA+F/D"}
1
+ {"version":3,"file":"FilterNumericBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterNumericBody.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAY,MAAM,gBAAgB,CAAC;AAM7D,UAAU,kBAAkB;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,UAAU,uBAAwB,SAAQ,iBAAiB;IACvD;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,kBAAkB,CAAC;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,eAkH/D"}
@@ -8,5 +8,5 @@ export interface FilterToolbarItemTogglerProps extends IDropdownTogglerProps, ID
8
8
  size?: '24' | '30' | '36' | '42' | '48';
9
9
  predicateName: string | null;
10
10
  }
11
- export declare const FilterPanelItemToggler: React.ForwardRefExoticComponent<Pick<FilterToolbarItemTogglerProps, "isDisabled" | "toggleDropdownOpening" | "isInteractedOutside" | "isOpen" | "isDropdown" | "onClick" | "selection" | "cx" | "title" | "maxWidth" | "size" | "postfix" | "predicateName"> & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const FilterPanelItemToggler: React.ForwardRefExoticComponent<Pick<FilterToolbarItemTogglerProps, "isDisabled" | "toggleDropdownOpening" | "isInteractedOutside" | "isOpen" | "isDropdown" | "onClick" | "cx" | "title" | "selection" | "maxWidth" | "size" | "postfix" | "predicateName"> & React.RefAttributes<HTMLDivElement>>;
12
12
  //# sourceMappingURL=FilterPanelItemToggler.d.ts.map
@@ -4,6 +4,6 @@ import { PickerInputBaseProps } from '@epam/uui-components';
4
4
  type FilterPickerBodyProps<TItem, TId> = DropdownBodyProps & PickerInputBaseProps<TItem, TId> & PickerFilterConfig<any> & {
5
5
  showSearch?: boolean;
6
6
  };
7
- export declare function FilterPickerBody<TItem, TId>(props: FilterPickerBodyProps<TItem, TId>): JSX.Element;
7
+ export declare function FilterPickerBody<TItem, TId>({ highlightSearchMatches, ...restProps }: FilterPickerBodyProps<TItem, TId>): JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=FilterPickerBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterPickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterPickerBody.tsx"],"names":[],"mappings":";AACA,OAAO,EAAqC,iBAAiB,EAAY,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpH,OAAO,EAAuB,oBAAoB,EAAkB,MAAM,sBAAsB,CAAC;AAKjG,KAAK,qBAAqB,CAAC,KAAK,EAAE,GAAG,IAAI,iBAAiB,GAAG,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,GAAG;IACtH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,qBAAqB,CAAC,KAAK,EAAE,GAAG,CAAC,eA+DpF"}
1
+ {"version":3,"file":"FilterPickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterPickerBody.tsx"],"names":[],"mappings":";AACA,OAAO,EAAsD,iBAAiB,EAAY,kBAAkB,EAAe,MAAM,gBAAgB,CAAC;AAClJ,OAAO,EAAuB,oBAAoB,EAAkB,MAAM,sBAAsB,CAAC;AAKjG,KAAK,qBAAqB,CAAC,KAAK,EAAE,GAAG,IAAI,iBAAiB,GAAG,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,GAAG;IACtH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,EACzC,sBAA6B,EAC7B,GAAG,SAAS,EACf,EAAE,qBAAqB,CAAC,KAAK,EAAE,GAAG,CAAC,eAsGnC"}
@@ -1,20 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { BaseRangeDatePickerProps, IDropdownBodyProps, RangeDatePickerInputType } from '@epam/uui-core';
3
- import { BaseRangeDatePicker } from '@epam/uui-components';
4
- export interface RangeDatePickerProps extends BaseRangeDatePickerProps, IDropdownBodyProps {
5
- }
6
- export declare class FilterRangeDatePickerBody extends BaseRangeDatePicker<RangeDatePickerProps> {
7
- state: {
8
- inFocus: RangeDatePickerInputType;
9
- isOpen: boolean;
10
- inputValue: import("@epam/uui-core").RangeDatePickerValue;
11
- selectedDate: import("@epam/uui-core").RangeDatePickerValue;
12
- displayedDate: import("dayjs").Dayjs;
13
- view: import("@epam/uui-components").ViewType;
14
- };
15
- changeIsOpen: (open: boolean) => void;
16
- renderBody(): JSX.Element;
17
- renderInput: () => any;
18
- render(): JSX.Element;
2
+ import { IDropdownBodyProps } from '@epam/uui-core';
3
+ import { RangeDatePickerProps } from '../datePickers/types';
4
+ export interface FilterRangeDatePickerProps extends RangeDatePickerProps, IDropdownBodyProps {
19
5
  }
6
+ export declare function FilterRangeDatePickerBody(props: FilterRangeDatePickerProps): JSX.Element;
20
7
  //# sourceMappingURL=FilterRangeDatePickerBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterRangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterRangeDatePickerBody.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,wBAAwB,EAAE,kBAAkB,EAAE,wBAAwB,EACzE,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAS3D,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB,EAAE,kBAAkB;CAAG;AAE7F,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,oBAAoB,CAAC;IACpF,KAAK;;;;;;;MAGH;IAEF,YAAY,SAAU,OAAO,UAG3B;IAEF,UAAU;IAkDV,WAAW,QAAO,GAAG,CAEnB;IAEF,MAAM;CAGT"}
1
+ {"version":3,"file":"FilterRangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterRangeDatePickerBody.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,gBAAgB,CAAC;AAQnE,OAAO,EACiD,oBAAoB,EAC3E,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB,EAAE,kBAAkB;CAAG;AAE/F,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,0BAA0B,eAmF1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiltersPanel.d.ts","sourceRoot":"","sources":["../../../components/filters/FiltersPanel.tsx"],"names":[],"mappings":";AAOA,OAAO,EACa,kBAAkB,EAAmD,cAAc,EACtG,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,iBAAiB,CAAC,OAAO;IACtC,uDAAuD;IACvD,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;IACvC,6CAA6C;IAC7C,UAAU,EAAE,cAAc,CAAC;IAC3B,4CAA4C;IAC5C,aAAa,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD,uDAAuD;IACvD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3C;AAyCD,iBAAS,kBAAkB,CAAC,OAAO,SAAS,MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,eA2JpF;AAED,eAAO,MAAM,YAAY,2BAA8D,CAAC"}
1
+ {"version":3,"file":"FiltersPanel.d.ts","sourceRoot":"","sources":["../../../components/filters/FiltersPanel.tsx"],"names":[],"mappings":";AAMA,OAAO,EACa,kBAAkB,EAAmD,cAAc,EAEtG,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,iBAAiB,CAAC,OAAO;IACtC,uDAAuD;IACvD,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;IACvC,6CAA6C;IAC7C,UAAU,EAAE,cAAc,CAAC;IAC3B,4CAA4C;IAC5C,aAAa,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD,uDAAuD;IACvD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3C;AAyCD,iBAAS,kBAAkB,CAAC,OAAO,SAAS,MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,eAoKpF;AAED,eAAO,MAAM,YAAY,2BAA8D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiltersPanelItem.d.ts","sourceRoot":"","sources":["../../../components/filters/FiltersPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAIzE,OAAO,EAAqB,kBAAkB,EAAoB,SAAS,EAAsG,MAAM,gBAAgB,CAAC;AAcxM,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,GAAG,CAAC,GAC7D,SAAS,CAAC,GAAG,CAAC,GAAG;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,eAiP7D;AAED,eAAO,MAAM,gBAAgB,0DAAqC,CAAC"}
1
+ {"version":3,"file":"FiltersPanelItem.d.ts","sourceRoot":"","sources":["../../../components/filters/FiltersPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAIzE,OAAO,EAAqB,kBAAkB,EAAoB,SAAS,EAAoI,MAAM,gBAAgB,CAAC;AActO,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,GAAG,CAAC,GAC7D,SAAS,CAAC,GAAG,CAAC,GAAG;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3C,CAAC;AAqBF,iBAAS,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,eA8O7D;AAED,eAAO,MAAM,gBAAgB,0DAAqC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PresetActionsDropdown.d.ts","sourceRoot":"","sources":["../../../../components/filters/PresetPanel/PresetActionsDropdown.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAoB,YAAY,EAAiB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAe5G,UAAU,uBAAwB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAClE,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,uBAAuB,eAkHnE"}
1
+ {"version":3,"file":"PresetActionsDropdown.d.ts","sourceRoot":"","sources":["../../../../components/filters/PresetPanel/PresetActionsDropdown.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAoB,YAAY,EAAiB,cAAc,EAAqB,MAAM,gBAAgB,CAAC;AAc/H,UAAU,uBAAwB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAClE,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,uBAAuB,eA0GnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"PresetsPanel.d.ts","sourceRoot":"","sources":["../../../../components/filters/PresetPanel/PresetsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,EACH,cAAc,EAAE,YAAY,EAAE,WAAW,EAC5C,MAAM,gBAAgB,CAAC;AAYxB,MAAM,WAAW,iBAAkB,SAAQ,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtG,6CAA6C;IAC7C,UAAU,EAAE,cAAc,CAAC;CAC9B;AAID,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAwFpD"}
1
+ {"version":3,"file":"PresetsPanel.d.ts","sourceRoot":"","sources":["../../../../components/filters/PresetPanel/PresetsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EACH,cAAc,EAAE,YAAY,EAAE,WAAW,EAC5C,MAAM,gBAAgB,CAAC;AAYxB,MAAM,WAAW,iBAAkB,SAAQ,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtG,6CAA6C;IAC7C,UAAU,EAAE,cAAc,CAAC;CAC9B;AAID,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,eA2FpD"}
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { Overwrite } from '@epam/uui-core';
1
3
  import * as uuiComponents from '@epam/uui-components';
2
4
  interface CheckboxMods {
3
5
  /**
@@ -11,8 +13,10 @@ interface CheckboxMods {
11
13
  */
12
14
  mode?: 'form' | 'cell';
13
15
  }
16
+ export interface CheckboxModsOverride {
17
+ }
14
18
  /** Represents the properties of the Checkbox component. */
15
- export type CheckboxProps = CheckboxMods & uuiComponents.CheckboxProps;
16
- export declare const Checkbox: (props: uuiComponents.CheckboxProps & CheckboxMods & import("react").RefAttributes<any>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
19
+ export type CheckboxProps = uuiComponents.CheckboxProps & Overwrite<CheckboxMods, CheckboxModsOverride>;
20
+ export declare const Checkbox: import("react").ComponentType<uuiComponents.CheckboxProps & Omit<CheckboxMods, never> & CheckboxModsOverride & import("react").RefAttributes<any>>;
17
21
  export {};
18
22
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../components/inputs/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAKtD,UAAU,YAAY;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC;AAoBvE,eAAO,MAAM,QAAQ,oLAAwH,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../components/inputs/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAKtD,UAAU,YAAY;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;CAAG;AAExC,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC;AAoBxG,eAAO,MAAM,QAAQ,oJAIpB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputAddonProps as uuiInputAddonProps } from '@epam/uui-components';
2
- export declare const InputAddon: (props: uuiInputAddonProps & import("react").RefAttributes<any>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3
+ export declare const InputAddon: import("react").ComponentType<uuiInputAddonProps & import("react").RefAttributes<any>>;
3
4
  //# sourceMappingURL=InputAddon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputAddon.d.ts","sourceRoot":"","sources":["../../../components/inputs/InputAddon.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,eAAe,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAS1G,eAAO,MAAM,UAAU,4JAAmE,CAAC"}
1
+ {"version":3,"file":"InputAddon.d.ts","sourceRoot":"","sources":["../../../components/inputs/InputAddon.tsx"],"names":[],"mappings":";AACA,OAAO,EAA+B,eAAe,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAS1G,eAAO,MAAM,UAAU,wFAAuF,CAAC"}