@salutejs/plasma-new-hope 0.163.0-dev.0 → 0.164.0-canary.1475.11273924584.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/cjs/components/DatePicker/RangeDate/RangeDate.css +1 -1
  2. package/cjs/components/DatePicker/RangeDate/RangeDate.js +77 -15
  3. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  4. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  5. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  6. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  7. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -1
  8. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1d0sbzw.css +1 -0
  9. package/cjs/components/DatePicker/SingleDate/SingleDate.js +32 -8
  10. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  11. package/cjs/components/DatePicker/hooks/useDatePicker.js +20 -48
  12. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -1
  13. package/cjs/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  14. package/cjs/components/DatePicker/hooks/useKeyboardNavigation.js.map +1 -1
  15. package/cjs/components/DatePicker/utils/dateHelper.js +31 -0
  16. package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -1
  17. package/cjs/index.css +1 -1
  18. package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +77 -15
  19. package/emotion/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  20. package/emotion/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  21. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +32 -8
  22. package/emotion/cjs/components/DatePicker/hooks/useDatePicker.js +20 -48
  23. package/emotion/cjs/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  24. package/emotion/cjs/components/DatePicker/utils/dateHelper.js +31 -1
  25. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +2 -0
  26. package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +79 -17
  27. package/emotion/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  28. package/emotion/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  29. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +33 -9
  30. package/emotion/es/components/DatePicker/hooks/useDatePicker.js +21 -49
  31. package/emotion/es/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  32. package/emotion/es/components/DatePicker/utils/dateHelper.js +30 -0
  33. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +2 -0
  34. package/es/components/DatePicker/RangeDate/RangeDate.css +1 -1
  35. package/es/components/DatePicker/RangeDate/RangeDate.js +79 -17
  36. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  37. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  38. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  39. package/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  40. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -1
  41. package/es/components/DatePicker/RangeDate/variations/_size/base_1d0sbzw.css +1 -0
  42. package/es/components/DatePicker/SingleDate/SingleDate.js +33 -9
  43. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  44. package/es/components/DatePicker/hooks/useDatePicker.js +21 -49
  45. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -1
  46. package/es/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  47. package/es/components/DatePicker/hooks/useKeyboardNavigation.js.map +1 -1
  48. package/es/components/DatePicker/utils/dateHelper.js +31 -1
  49. package/es/components/DatePicker/utils/dateHelper.js.map +1 -1
  50. package/es/index.css +1 -1
  51. package/package.json +2 -2
  52. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +77 -15
  53. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  54. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  55. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +32 -8
  56. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +20 -48
  57. package/styled-components/cjs/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  58. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +31 -1
  59. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +2 -0
  60. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +79 -17
  61. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  62. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  63. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +33 -9
  64. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +21 -49
  65. package/styled-components/es/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  66. package/styled-components/es/components/DatePicker/utils/dateHelper.js +30 -0
  67. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +2 -0
  68. package/types/components/DatePicker/DatePickerBase.types.d.ts +7 -5
  69. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -1
  70. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +8 -8
  71. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
  72. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +14 -4
  73. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -1
  74. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +1 -1
  75. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
  76. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +2 -1
  77. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -1
  78. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -1
  79. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  80. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +12 -2
  81. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  82. package/types/components/DatePicker/hooks/useDatePicker.d.ts +2 -3
  83. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -1
  84. package/types/components/DatePicker/hooks/useKeyboardNavigation.d.ts +3 -1
  85. package/types/components/DatePicker/hooks/useKeyboardNavigation.d.ts.map +1 -1
  86. package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
  87. package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -1
  88. package/types/components/Popover/Popover.types.d.ts +1 -1
  89. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +4 -4
  90. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +4 -4
  91. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  92. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
@@ -6,8 +6,10 @@ export declare const datePickerRangeRoot: (Root: RootProps<HTMLDivElement, Omit<
6
6
  defaultFirstDate?: Date | undefined;
7
7
  defaultSecondDate?: Date | undefined;
8
8
  name?: string | undefined;
9
- onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
10
- onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
9
+ onChangeFirstValue?: import("./RangeDate.types").CallbackChangeInstance | undefined;
10
+ onChangeSecondValue?: import("./RangeDate.types").CallbackChangeInstance | undefined;
11
+ onCommitFirstDate?: import("./RangeDate.types").CallbackSearchInstance | undefined;
12
+ onCommitSecondDate?: import("./RangeDate.types").CallbackSearchInstance | undefined;
11
13
  onChange?: ((event: {
12
14
  target: {
13
15
  value?: string | undefined;
@@ -39,8 +41,6 @@ export declare const datePickerRangeRoot: (Root: RootProps<HTMLDivElement, Omit<
39
41
  secondTextfieldTextBefore?: string | undefined;
40
42
  firstTextfieldTextAfter?: string | undefined;
41
43
  secondTextfieldTextAfter?: string | undefined;
42
- onChangeFirstValue?: import("../../Range/Range.types").BaseCallbackChangeInstance | undefined;
43
- onChangeSecondValue?: import("../../Range/Range.types").BaseCallbackChangeInstance | undefined;
44
44
  onFocusFirstTextfield?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
45
45
  onFocusSecondTextfield?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
46
46
  onBlurFirstTextfield?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
@@ -56,8 +56,10 @@ export declare const datePickerRangeConfig: {
56
56
  defaultFirstDate?: Date | undefined;
57
57
  defaultSecondDate?: Date | undefined;
58
58
  name?: string | undefined;
59
- onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
60
- onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
59
+ onChangeFirstValue?: import("./RangeDate.types").CallbackChangeInstance | undefined;
60
+ onChangeSecondValue?: import("./RangeDate.types").CallbackChangeInstance | undefined;
61
+ onCommitFirstDate?: import("./RangeDate.types").CallbackSearchInstance | undefined;
62
+ onCommitSecondDate?: import("./RangeDate.types").CallbackSearchInstance | undefined;
61
63
  onChange?: ((event: {
62
64
  target: {
63
65
  value?: string | undefined;
@@ -89,8 +91,6 @@ export declare const datePickerRangeConfig: {
89
91
  secondTextfieldTextBefore?: string | undefined;
90
92
  firstTextfieldTextAfter?: string | undefined;
91
93
  secondTextfieldTextAfter?: string | undefined;
92
- onChangeFirstValue?: import("../../Range/Range.types").BaseCallbackChangeInstance | undefined;
93
- onChangeSecondValue?: import("../../Range/Range.types").BaseCallbackChangeInstance | undefined;
94
94
  onFocusFirstTextfield?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
95
95
  onFocusSecondTextfield?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
96
96
  onBlurFirstTextfield?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAQ9D,eAAO,MAAM,mBAAmB,SACtB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA6VvG,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;mBA/VxB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwX3G,CAAC"}
1
+ {"version":3,"file":"RangeDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAW/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAQ9D,eAAO,MAAM,mBAAmB,SACtB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA6ZvG,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;mBA/ZxB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwb3G,CAAC"}
@@ -1,10 +1,12 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import type { ChangeEvent, HTMLAttributes } from 'react';
2
2
  import type { RangeInnerProps } from '../../Range/Range.types';
3
3
  import type { DatePickerCalendarProps, DatePickerdVariationProps } from '../DatePickerBase.types';
4
4
  import type { DatePickerPopoverProps } from '../SingleDate/SingleDate.types';
5
5
  import type { DateInfo } from '../../Calendar/Calendar.types';
6
6
  export declare type DatePickerRangePlacement = 'top' | 'bottom';
7
- declare type BaseRangeProps = Omit<RangeInnerProps, 'firstValue' | 'secondValue' | 'onSearchFirstValue' | 'onSearchSecondValue'>;
7
+ export declare type CallbackChangeInstance = (event: ChangeEvent<HTMLInputElement> | null, value?: string) => void;
8
+ export declare type CallbackSearchInstance = (value: Date | string, error?: boolean, success?: boolean, dateInfo?: DateInfo) => void;
9
+ declare type BaseRangeProps = Omit<RangeInnerProps, 'firstValue' | 'secondValue' | 'onSearchFirstValue' | 'onSearchSecondValue' | 'onChangeFirstValue' | 'onChangeSecondValue'>;
8
10
  export declare type DatePickerRangeFieldProps = {
9
11
  /**
10
12
  * Значение по умолчанию для первого поля.
@@ -18,14 +20,22 @@ export declare type DatePickerRangeFieldProps = {
18
20
  * Свойство для названия поля при работе с формой
19
21
  */
20
22
  name?: string;
23
+ /**
24
+ * Коллбэк, вызываемый при изменении первого поля ввода
25
+ */
26
+ onChangeFirstValue?: CallbackChangeInstance;
27
+ /**
28
+ * Коллбэк, вызываемый при изменении второго поля ввода
29
+ */
30
+ onChangeSecondValue?: CallbackChangeInstance;
21
31
  /**
22
32
  * Callback по нажатию Enter в поле ввода или выборе дня на календаре для первой даты.
23
33
  */
24
- onCommitFirstDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?: DateInfo) => void;
34
+ onCommitFirstDate?: CallbackSearchInstance;
25
35
  /**
26
36
  * Callback по нажатию Enter в поле ввода или выборе дня на календаре для первой даты.
27
37
  */
28
- onCommitSecondDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?: DateInfo) => void;
38
+ onCommitSecondDate?: CallbackSearchInstance;
29
39
  /**
30
40
  * Свойство устарело, используется формой. Вместо используйте onCommitFirstDate и onCommitSecondDate
31
41
  * @deprecated
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDate.types.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE9D,oBAAY,wBAAwB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAExD,aAAK,cAAc,GAAG,IAAI,CACtB,eAAe,EACf,YAAY,GAAG,aAA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H,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CAC7E,GAAG,cAAc,CAAC;AAEnB,oBAAY,4BAA4B,GAAG,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC,GAAG;IACnF;;;;OAIG;IACH,SAAS,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACvE;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,oBAAY,oBAAoB,GAAG,yBAAyB,GACxD,yBAAyB,GACzB,uBAAuB,GACvB,4BAA4B,GAC5B,cAAc,CAAC,cAAc,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { RangeDatePopoverProps } from './RangeDatePopover.types';
3
- export declare const RangeDatePopover: ({ target, isOpen, opened, isDoubleCalendar, calendarValue, min, max, includeEdgeDates, eventList, disabledList, eventMonthList, disabledMonthList, eventQuarterList, disabledQuarterList, eventYearList, disabledYearList, placement, closeOnOverlayClick, closeOnEsc, offset, type, size, lang, onChangeValue, onChangeStartOfRange, onToggle, }: RangeDatePopoverProps) => JSX.Element;
3
+ export declare const RangeDatePopover: ({ rootWrapper: Root, target, isOpen, opened, isDoubleCalendar, calendarValue, min, max, includeEdgeDates, eventList, disabledList, eventMonthList, disabledMonthList, eventQuarterList, disabledQuarterList, eventYearList, disabledYearList, frame, usePortal, placement, closeOnOverlayClick, closeOnEsc, offset, type, size, lang, onChangeValue, onChangeStartOfRange, onToggle, }: RangeDatePopoverProps) => JSX.Element;
4
4
  //# sourceMappingURL=RangeDatePopover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDatePopover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE,eAAO,MAAM,gBAAgB,sVA+B1B,qBAAqB,gBA0EvB,CAAC"}
1
+ {"version":3,"file":"RangeDatePopover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE,eAAO,MAAM,gBAAgB,2XAoC1B,qBAAqB,gBAgFvB,CAAC"}
@@ -1,8 +1,9 @@
1
- import type { ReactNode } from 'react';
1
+ import type { FC, PropsWithChildren, ReactNode } from 'react';
2
2
  import type { DatePickerPopoverProps } from '../../SingleDate/SingleDate.types';
3
3
  import type { DateInfo } from '../../../Calendar/Calendar.types';
4
4
  import type { DatePickerCalendarProps } from '../../DatePickerBase.types';
5
5
  export declare type RangeDatePopoverProps = DatePickerCalendarProps & DatePickerPopoverProps & {
6
+ rootWrapper: FC<PropsWithChildren>;
6
7
  /**
7
8
  * Обработчик изменения значения.
8
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDatePopover.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,oBAAY,qBAAqB,GAAG,uBAAuB,GACvD,sBAAsB,GAAG;IACrB;;OAEG;IACH,aAAa,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpE;;OAEG;IACH,aAAa,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IAClE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"RangeDatePopover.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,oBAAY,qBAAqB,GAAG,uBAAuB,GACvD,sBAAsB,GAAG;IACrB,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,aAAa,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpE;;OAEG;IACH,aAAa,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IAClE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DatePicker/RangeDate/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAwBhB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DatePicker/RangeDate/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAsBhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAEpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,eAAO,MAAM,cAAc,SACjB,UAAU,cAAc,EAAE,KAAK,eAAe,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC,gXA8LlG,CAAC;AAEN,eAAO,MAAM,gBAAgB;;;mBAhMnB,UAAU,cAAc,EAAE,KAAK,eAAe,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;CAyNtG,CAAC"}
1
+ {"version":3,"file":"SingleDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+E,MAAM,OAAO,CAAC;AAGpG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,eAAO,MAAM,cAAc,SACjB,UAAU,cAAc,EAAE,KAAK,eAAe,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC,gXA0NlG,CAAC;AAEN,eAAO,MAAM,gBAAgB;;;mBA5NnB,UAAU,cAAc,EAAE,KAAK,eAAe,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;CAqPtG,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes, SyntheticEvent } from 'react';
1
+ import type { HTMLAttributes, RefObject, SyntheticEvent } from 'react';
2
2
  import type { DatePickerCalendarProps, DatePickerdVariationProps } from '../DatePickerBase.types';
3
3
  import type { DateInfo } from '../../Calendar/Calendar.types';
4
4
  export declare type DatePickerPlacementBasic = 'top' | 'bottom' | 'right' | 'left';
@@ -55,7 +55,7 @@ export declare type DatePickerTextFieldProps = {
55
55
  /**
56
56
  * Обработчик изменения значения.
57
57
  */
58
- onChangeValue?: (event: SyntheticEvent<HTMLInputElement>, value?: string) => void;
58
+ onChangeValue?: (event: SyntheticEvent<HTMLInputElement> | null, value?: string) => void;
59
59
  /**
60
60
  * Свойство устарело, используется формой. Вместо используйте onChangeValue и onCommitDate
61
61
  * @deprecated
@@ -88,6 +88,10 @@ export declare type DatePickerPopoverProps = {
88
88
  * @default [0, 0]
89
89
  */
90
90
  offset?: [number, number];
91
+ /**
92
+ * В каком контейнере позиционируется(по умолчанию document), можно также указать id элемента или ref для него.
93
+ */
94
+ frame?: 'document' | string | RefObject<HTMLElement>;
91
95
  /**
92
96
  * Закрывать календарь при нажатии вне области элемента.
93
97
  * @default true
@@ -98,6 +102,12 @@ export declare type DatePickerPopoverProps = {
98
102
  * @default true
99
103
  */
100
104
  closeOnEsc?: boolean;
105
+ /**
106
+ * Находится ли в портале.
107
+ * @default
108
+ * false
109
+ */
110
+ usePortal?: boolean;
101
111
  /**
102
112
  * Событие сворачивания/разворачивания календаря.
103
113
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDate.types.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE9D,oBAAY,wBAAwB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAC3E,oBAAY,mBAAmB,GAAG,wBAAwB,GAAG,MAAM,CAAC;AAEpE,oBAAY,wBAAwB,GAAG;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvG;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClF;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CAC7E,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAClE;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,oBAAY,eAAe,GAAG,yBAAyB,GACnD,wBAAwB,GACxB,uBAAuB,GACvB,sBAAsB,GACtB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"SingleDate.types.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO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AAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CAC7E,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAClE;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IACrD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,oBAAY,eAAe,GAAG,yBAAyB,GACnD,wBAAwB,GACxB,uBAAuB,GACvB,sBAAsB,GACtB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAAC"}
@@ -1,10 +1,9 @@
1
- import { ChangeEvent, SyntheticEvent } from 'react';
1
+ import { ChangeEvent } from 'react';
2
2
  import type { UseDatePickerProps } from '../DatePickerBase.types';
3
3
  import type { DateInfo } from '../../Calendar/Calendar.types';
4
- export declare const useDatePicker: ({ currentValue, setInputValue, setCalendarValue, setIsInnerOpen, dateFormatDelimiter, format, lang, disabled, readOnly, maskWithFormat, valueError, valueSuccess, inputRef, name, onToggle, onChangeValue, onCommitDate, onChange, }: UseDatePickerProps) => {
4
+ export declare const useDatePicker: ({ currentValue, setInputValue, setCalendarValue, dateFormatDelimiter, format, lang, disabled, readOnly, maskWithFormat, valueError, valueSuccess, name, onChangeValue, onCommitDate, onChange, }: UseDatePickerProps) => {
5
5
  datePickerErrorClass: string | undefined;
6
6
  datePickerSuccessClass: string | undefined;
7
- handleToggle: (opened: boolean, event: SyntheticEvent | Event) => void;
8
7
  handleChangeValue: (event: ChangeEvent<HTMLInputElement>) => void;
9
8
  handleCommitDate: (date?: string | Date | undefined, applyFormat?: boolean | undefined, isCalendarValue?: boolean | undefined, dateInfo?: DateInfo | undefined) => void;
10
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/hooks/useDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAG9D,eAAO,MAAM,aAAa,yOAmBvB,kBAAkB;;;2BAIa,OAAO,SAAS,cAAc,GAAG,KAAK;+BAclC,YAAY,gBAAgB,CAAC;;CAoGlE,CAAC"}
1
+ {"version":3,"file":"useDatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/hooks/useDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAQlE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE9D,eAAO,MAAM,aAAa,qMAgBvB,kBAAkB;;;+BAIiB,YAAY,gBAAgB,CAAC;;CAsFlE,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import type { ChangeEvent, KeyboardEvent, SyntheticEvent } from 'react';
2
2
  interface Props {
3
3
  isCalendarOpen: boolean;
4
+ closeOnEsc: boolean;
4
5
  onToggle: (isOpen: boolean, event: SyntheticEvent | Event) => void;
5
6
  }
6
7
  export declare const keys: {
7
8
  Space: string;
9
+ Escape: string;
8
10
  };
9
- export declare const useKeyNavigation: ({ isCalendarOpen, onToggle }: Props) => {
11
+ export declare const useKeyNavigation: ({ isCalendarOpen, closeOnEsc, onToggle }: Props) => {
10
12
  onKeyDown: (event: ChangeEvent<HTMLInputElement> & KeyboardEvent<HTMLInputElement>) => void;
11
13
  };
12
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/hooks/useKeyboardNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,UAAU,KAAK;IACX,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;CACtE;AAED,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iCAAkC,KAAK;uBACtC,YAAY,gBAAgB,CAAC,GAAG,cAAc,gBAAgB,CAAC;CAiB5F,CAAC"}
1
+ {"version":3,"file":"useKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/hooks/useKeyboardNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,UAAU,KAAK;IACX,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;CACtE;AAED,eAAO,MAAM,IAAI;;;CAGhB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6CAA8C,KAAK;uBAClD,YAAY,gBAAgB,CAAC,GAAG,cAAc,gBAAgB,CAAC;CAwB5F,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { ValidateDateArgs } from '../DatePickerBase.types';
1
2
  export declare type Langs = 'ru' | 'en';
2
3
  declare type FormatInputValueArgs = {
3
4
  value?: Date | string;
@@ -16,5 +17,14 @@ export declare const getDateFromFormat: (value: Date | string, format?: string |
16
17
  };
17
18
  export declare const getDateFormatDelimiter: (format?: string | undefined) => string;
18
19
  export declare const getMaskedDateOnInput: (value?: string | undefined, format?: string | undefined, delimiter?: string | undefined, prevValue?: string | undefined) => string;
20
+ export declare const validateDateWithFullMonth: ({ currentValue, format, lang }: ValidateDateArgs) => {
21
+ hasMonthFullName: false;
22
+ isValidMonth: boolean;
23
+ isLengthEqual: boolean;
24
+ } | {
25
+ hasMonthFullName: true;
26
+ isValidMonth: boolean;
27
+ isLengthEqual: boolean;
28
+ };
19
29
  export {};
20
30
  //# sourceMappingURL=dateHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dateHelper.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/utils/dateHelper.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhC,aAAK,oBAAoB,GAAG;IACxB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,4EAO1B,oBAAoB,WAkBtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gHAc/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,IAAI,GAAG,MAAM;;;;CAUrD,CAAC;AAEF,eAAO,MAAM,sBAAsB,yCAQlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,qIAsBhC,CAAC"}
1
+ {"version":3,"file":"dateHelper.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/utils/dateHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,oBAAY,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhC,aAAK,oBAAoB,GAAG;IACxB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,4EAO1B,oBAAoB,WAkBtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gHAc/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,IAAI,GAAG,MAAM;;;;CAUrD,CAAC;AAEF,eAAO,MAAM,sBAAsB,yCAQlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,qIAsBhC,CAAC;AAEF,eAAO,MAAM,yBAAyB,mCAAoC,gBAAgB;;;;;;;;CAmCzF,CAAC"}
@@ -77,7 +77,7 @@ export declare type CustomPopoverProps = {
77
77
  /**
78
78
  * Находится ли в портале.
79
79
  * @default
80
- * true
80
+ * false
81
81
  */
82
82
  usePortal?: boolean;
83
83
  view?: string;
@@ -36,8 +36,10 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
36
36
  defaultFirstDate?: Date | undefined;
37
37
  defaultSecondDate?: Date | undefined;
38
38
  name?: string | undefined;
39
- onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../../../components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
40
- onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../../../components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
39
+ onChangeFirstValue?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackChangeInstance | undefined;
40
+ onChangeSecondValue?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackChangeInstance | undefined;
41
+ onCommitFirstDate?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackSearchInstance | undefined;
42
+ onCommitSecondDate?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackSearchInstance | undefined;
41
43
  onChange?: ((event: {
42
44
  target: {
43
45
  value?: string | undefined;
@@ -69,8 +71,6 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
69
71
  secondTextfieldTextBefore?: string | undefined;
70
72
  firstTextfieldTextAfter?: string | undefined;
71
73
  secondTextfieldTextAfter?: string | undefined;
72
- onChangeFirstValue?: import("../../../../components/Range/Range.types").BaseCallbackChangeInstance | undefined;
73
- onChangeSecondValue?: import("../../../../components/Range/Range.types").BaseCallbackChangeInstance | undefined;
74
74
  onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
75
75
  onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
76
76
  onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
@@ -36,8 +36,10 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
36
36
  defaultFirstDate?: Date | undefined;
37
37
  defaultSecondDate?: Date | undefined;
38
38
  name?: string | undefined;
39
- onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../../../components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
40
- onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("../../../../components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
39
+ onChangeFirstValue?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackChangeInstance | undefined;
40
+ onChangeSecondValue?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackChangeInstance | undefined;
41
+ onCommitFirstDate?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackSearchInstance | undefined;
42
+ onCommitSecondDate?: import("../../../../components/DatePicker/RangeDate/RangeDate.types").CallbackSearchInstance | undefined;
41
43
  onChange?: ((event: {
42
44
  target: {
43
45
  value?: string | undefined;
@@ -69,8 +71,6 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
69
71
  secondTextfieldTextBefore?: string | undefined;
70
72
  firstTextfieldTextAfter?: string | undefined;
71
73
  secondTextfieldTextAfter?: string | undefined;
72
- onChangeFirstValue?: import("../../../../components/Range/Range.types").BaseCallbackChangeInstance | undefined;
73
- onChangeSecondValue?: import("../../../../components/Range/Range.types").BaseCallbackChangeInstance | undefined;
74
74
  onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
75
75
  onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
76
76
  onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
@@ -1 +0,0 @@
1
- .bxpb4df{width:var(--plasma-date-picker-width);}.bxpb4df .ss94ai0{margin:var(--plasma-date-picker__label-offset);font-family:var(--plasma-date-picker__label-font-family);font-size:var(--plasma-date-picker__label-font-size);font-style:var(--plasma-date-picker__label-font-style);font-weight:var(--plasma-date-picker__label-font-weight);-webkit-letter-spacing:var(--plasma-date-picker__label-letter-spacing);-moz-letter-spacing:var(--plasma-date-picker__label-letter-spacing);-ms-letter-spacing:var(--plasma-date-picker__label-letter-spacing);letter-spacing:var(--plasma-date-picker__label-letter-spacing);line-height:var(--plasma-date-picker__label-line-height);}.bxpb4df .l1b381ow{margin:var(--plasma-date-picker__left-helper-offset);font-family:var(--plasma-date-picker__left-helper-font-family);font-size:var(--plasma-date-picker__left-helper-font-size);font-style:var(--plasma-date-picker__left-helper-font-style);font-weight:var(--plasma-date-picker__left-helper-font-weight);-webkit-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);-moz-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);-ms-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);line-height:var(--plasma-date-picker__left-helper-line-height);}
@@ -1 +0,0 @@
1
- .bxpb4df{width:var(--plasma-date-picker-width);}.bxpb4df .ss94ai0{margin:var(--plasma-date-picker__label-offset);font-family:var(--plasma-date-picker__label-font-family);font-size:var(--plasma-date-picker__label-font-size);font-style:var(--plasma-date-picker__label-font-style);font-weight:var(--plasma-date-picker__label-font-weight);-webkit-letter-spacing:var(--plasma-date-picker__label-letter-spacing);-moz-letter-spacing:var(--plasma-date-picker__label-letter-spacing);-ms-letter-spacing:var(--plasma-date-picker__label-letter-spacing);letter-spacing:var(--plasma-date-picker__label-letter-spacing);line-height:var(--plasma-date-picker__label-line-height);}.bxpb4df .l1b381ow{margin:var(--plasma-date-picker__left-helper-offset);font-family:var(--plasma-date-picker__left-helper-font-family);font-size:var(--plasma-date-picker__left-helper-font-size);font-style:var(--plasma-date-picker__left-helper-font-style);font-weight:var(--plasma-date-picker__left-helper-font-weight);-webkit-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);-moz-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);-ms-letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);letter-spacing:var(--plasma-date-picker__left-helper-letter-spacing);line-height:var(--plasma-date-picker__left-helper-line-height);}