@synerise/ds-date-picker 0.11.7 → 0.11.9

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.11.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@0.11.8...@synerise/ds-date-picker@0.11.9) (2024-07-31)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-date-picker
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.11.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@0.11.7...@synerise/ds-date-picker@0.11.8) (2024-07-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **date-picker:** fixed types ([5980e37](https://github.com/Synerise/synerise-design/commit/5980e376bb80aa9fd272907c5ee88e397f0dacce))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.11.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@0.11.6...@synerise/ds-date-picker@0.11.7) (2024-07-15)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-date-picker
@@ -1,5 +1,5 @@
1
- import type { ReactNode, ReactElement } from 'react';
2
1
  import type { IntlShape } from 'react-intl';
2
+ import type { ReactNode, ReactElement } from 'react';
3
3
  import type { DropdownProps } from '@synerise/ds-dropdown/dist/Dropdown';
4
4
  import type { DateToFormatOptions } from '@synerise/ds-data-format';
5
5
  import type { InputProps } from '@synerise/ds-input';
@@ -16,7 +16,10 @@ export type DatePickerProps = {
16
16
  */
17
17
  format?: string;
18
18
  valueFormatOptions?: DateToFormatOptions;
19
- intl: IntlShape;
19
+ /**
20
+ * @deprecated - will be dropped in 1.0
21
+ */
22
+ intl?: IntlShape;
20
23
  onApply: (date?: Date) => void;
21
24
  onClear?: () => void;
22
25
  onDropdownVisibleChange?: (visible: boolean) => void;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode, CSSProperties } from 'react';
2
2
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
3
3
  import type { DateToFormatOptions } from '@synerise/ds-data-format';
4
- import type { Props as DatePickerProps } from '../../DatePicker.types';
4
+ import type { DatePickerProps } from '../../DatePicker.types';
5
5
  type InputProps = DatePickerProps['inputProps'];
6
6
  export type Props = InputProps & {
7
7
  autoFocus?: boolean;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<import("../DatePicker.types").DatePickerProps, "intl"> & {
2
+ import { WrappedComponentProps } from 'react-intl';
3
+ import { RawDatePickerProps } from './RawDatePicker.types';
4
+ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<RawDatePickerProps & WrappedComponentProps<"intl">, "intl"> & {
3
5
  forwardedRef?: React.Ref<any> | undefined;
4
6
  } & React.RefAttributes<any>> & {
5
- WrappedComponent: React.ComponentType<import("../DatePicker.types").DatePickerProps>;
7
+ WrappedComponent: React.ComponentType<RawDatePickerProps & WrappedComponentProps<"intl">>;
6
8
  };
7
9
  export default _default;
@@ -1,2 +1,2 @@
1
- import { Props } from '../DatePicker.types';
2
- export type RawDatePickerProps = Omit<Props, 'dropdownProps'>;
1
+ import { DatePickerProps } from '../DatePicker.types';
2
+ export type RawDatePickerProps = Omit<DatePickerProps, 'dropdownProps'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-date-picker",
3
- "version": "0.11.7",
3
+ "version": "0.11.9",
4
4
  "description": "DatePicker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,14 +34,14 @@
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
36
  "@date-fns/upgrade": "^1.0.3",
37
- "@synerise/ds-button": "^0.21.3",
37
+ "@synerise/ds-button": "^0.21.4",
38
38
  "@synerise/ds-data-format": "^0.5.1",
39
- "@synerise/ds-dropdown": "^0.18.5",
39
+ "@synerise/ds-dropdown": "^0.18.7",
40
40
  "@synerise/ds-icon": "^0.64.1",
41
- "@synerise/ds-input": "^0.23.2",
42
- "@synerise/ds-time-picker": "^0.10.15",
43
- "@synerise/ds-tooltip": "^0.14.33",
44
- "@synerise/ds-utils": "^0.28.0",
41
+ "@synerise/ds-input": "^0.23.4",
42
+ "@synerise/ds-time-picker": "^0.10.17",
43
+ "@synerise/ds-tooltip": "^0.14.34",
44
+ "@synerise/ds-utils": "^0.28.1",
45
45
  "classnames": "2.3.2",
46
46
  "date-fns": "2.16.1",
47
47
  "lodash": "^4.17.20",
@@ -55,5 +55,5 @@
55
55
  "react": ">=16.9.0 <= 17.0.2",
56
56
  "styled-components": "5.0.1"
57
57
  },
58
- "gitHead": "6f4996380356c1e5cb9a9d8b553069ad9cea7c27"
58
+ "gitHead": "9780605713f2ee1cb62d79a8ab027058117c4e4a"
59
59
  }