@synerise/ds-date-picker 2.1.1 → 2.1.3
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 +19 -0
- package/dist/Elements/PickerInput/PickerInput.js +1 -1
- package/dist/fns.d.ts +1 -22
- package/dist/index.d.ts +6 -7
- package/dist/index.js +12 -12
- package/package.json +10 -10
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
|
+
## [2.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@2.1.2...@synerise/ds-date-picker@2.1.3) (2026-09-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** move test helpers to a ./testing subpath export ([b38cd82](https://github.com/Synerise/synerise-design/commit/b38cd82c956111d2331d5c1e0efd1935366f1139))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@2.1.1...@synerise/ds-date-picker@2.1.2) (2026-09-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-date-picker
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@2.1.0...@synerise/ds-date-picker@2.1.1) (2026-09-16)
|
|
7
26
|
|
|
8
27
|
### Bug Fixes
|
|
@@ -55,7 +55,7 @@ const PickerInput = forwardRef(({
|
|
|
55
55
|
event.stopPropagation();
|
|
56
56
|
onClick && onClick();
|
|
57
57
|
}, [onClick]);
|
|
58
|
-
const iconInput = useMemo(() => (hovered || highlight) && allowClear && !readOnly &&
|
|
58
|
+
const iconInput = useMemo(() => (hovered || highlight) && allowClear && !readOnly && value ? /* @__PURE__ */ jsx(ClearIconWrapper, { children: /* @__PURE__ */ jsx(Tooltip, { title: clearTooltip, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Close3S, {}), onClick: handleIconClick }) }) }) : /* @__PURE__ */ jsx(DefaultIconWrapper, { children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(CalendarM, {}), color: theme.palette["grey-400"] }) }), [hovered, highlight, allowClear, readOnly, value, theme, clearTooltip, handleIconClick]);
|
|
59
59
|
const {
|
|
60
60
|
className,
|
|
61
61
|
...restAttributes
|
package/dist/fns.d.ts
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
1
|
import { addDays as fnsAddDays, addMonths as fnsAddMonths, addSeconds as fnsAddSeconds, addYears as fnsAddYears, differenceInSeconds as fnsDifferenceInSeconds, differenceInYears as fnsDifferenceInYears, endOfDay as fnsEndOfDay, endOfMonth as fnsEndOfMonth, format as fnsFormat, getSeconds as fnsGetSeconds, getYear as fnsGetYear, isAfter as fnsIsAfter, isBefore as fnsIsBefore, isEqual as fnsIsEqual, isSameDay as fnsIsSameDay, isSameMonth as fnsIsSameMonth, isSameYear as fnsIsSameYear, setDate as fnsSetDate, setMonth as fnsSetMonth, setYear as fnsSetYear, startOfDay as fnsStartOfDay, startOfMonth as fnsStartOfMonth } from 'date-fns';
|
|
2
|
-
export { fnsGetSeconds };
|
|
3
|
-
export { fnsDifferenceInSeconds };
|
|
4
|
-
export { fnsStartOfMonth };
|
|
5
|
-
export { fnsSetDate };
|
|
6
|
-
export { fnsSetMonth };
|
|
7
|
-
export { fnsSetYear };
|
|
8
|
-
export { fnsStartOfDay };
|
|
9
|
-
export { fnsEndOfDay };
|
|
10
|
-
export { fnsAddYears };
|
|
11
|
-
export { fnsEndOfMonth };
|
|
12
|
-
export { fnsIsSameMonth };
|
|
13
|
-
export { fnsIsBefore };
|
|
14
|
-
export { fnsIsAfter };
|
|
15
|
-
export { fnsAddMonths };
|
|
16
|
-
export { fnsFormat };
|
|
17
|
-
export { fnsIsSameYear };
|
|
18
|
-
export { fnsGetYear };
|
|
19
|
-
export { fnsAddDays };
|
|
20
|
-
export { fnsAddSeconds };
|
|
21
|
-
export { fnsDifferenceInYears };
|
|
22
|
-
export { fnsIsEqual };
|
|
23
|
-
export { fnsIsSameDay };
|
|
2
|
+
export { fnsAddDays, fnsAddMonths, fnsAddSeconds, fnsAddYears, fnsDifferenceInSeconds, fnsDifferenceInYears, fnsEndOfDay, fnsEndOfMonth, fnsFormat, fnsGetSeconds, fnsGetYear, fnsIsAfter, fnsIsBefore, fnsIsEqual, fnsIsSameDay, fnsIsSameMonth, fnsIsSameYear, fnsSetDate, fnsSetMonth, fnsSetYear, fnsStartOfDay, fnsStartOfMonth, };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export { default } from './DatePicker';
|
|
2
|
-
export {
|
|
3
|
-
export { default as DatePicker } from './DatePicker';
|
|
4
|
-
export { default as MonthPicker } from './Elements/MonthPicker/MonthPicker';
|
|
5
|
-
export { default as YearPicker } from './Elements/YearPicker/YearPicker';
|
|
1
|
+
export { default, default as DatePicker } from './DatePicker';
|
|
2
|
+
export type { DatePickerProps } from './DatePicker.types';
|
|
6
3
|
export { default as DayPicker } from './Elements/DayPicker/DayPicker';
|
|
4
|
+
export { default as MonthPicker } from './Elements/MonthPicker/MonthPicker';
|
|
7
5
|
export { default as TimePicker } from './Elements/TimePicker/TimePicker';
|
|
8
|
-
export
|
|
6
|
+
export { default as YearPicker } from './Elements/YearPicker/YearPicker';
|
|
7
|
+
export * from './fns';
|
|
9
8
|
export { default as datePickerFormat } from './format';
|
|
10
9
|
export { default as localeUtils } from './localeUtils';
|
|
11
|
-
export
|
|
10
|
+
export { default as RawDatePicker } from './RawDatePicker/RawDatePicker';
|
|
12
11
|
export { getDefaultTexts } from './utils/getDefaultTexts';
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { default as default2, default as default3 } from "./DatePicker.js";
|
|
2
|
-
import { default as default4 } from "./
|
|
2
|
+
import { default as default4 } from "./Elements/DayPicker/DayPicker.js";
|
|
3
3
|
import { default as default5 } from "./Elements/MonthPicker/MonthPicker.js";
|
|
4
|
-
import { default as default6 } from "./Elements/
|
|
5
|
-
import { default as default7 } from "./Elements/
|
|
6
|
-
import { default as default8 } from "./Elements/TimePicker/TimePicker.js";
|
|
7
|
-
import { default as default9 } from "./format.js";
|
|
8
|
-
import { default as default10 } from "./localeUtils.js";
|
|
4
|
+
import { default as default6 } from "./Elements/TimePicker/TimePicker.js";
|
|
5
|
+
import { default as default7 } from "./Elements/YearPicker/YearPicker.js";
|
|
9
6
|
import { addDays, addMonths, addSeconds, addYears, differenceInSeconds, differenceInYears, endOfDay, endOfMonth, format, getSeconds, getYear, isAfter, isBefore, isEqual, isSameDay, isSameMonth, isSameYear, setDate, setMonth, setYear, startOfDay, startOfMonth } from "date-fns";
|
|
7
|
+
import { default as default8 } from "./format.js";
|
|
8
|
+
import { default as default9 } from "./localeUtils.js";
|
|
9
|
+
import { default as default10 } from "./RawDatePicker/RawDatePicker.js";
|
|
10
10
|
import { getDefaultTexts } from "./utils/getDefaultTexts.js";
|
|
11
11
|
export {
|
|
12
12
|
default2 as DatePicker,
|
|
13
|
-
|
|
13
|
+
default4 as DayPicker,
|
|
14
14
|
default5 as MonthPicker,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
default10 as RawDatePicker,
|
|
16
|
+
default6 as TimePicker,
|
|
17
|
+
default7 as YearPicker,
|
|
18
|
+
default8 as datePickerFormat,
|
|
19
19
|
default3 as default,
|
|
20
20
|
addDays as fnsAddDays,
|
|
21
21
|
addMonths as fnsAddMonths,
|
|
@@ -40,5 +40,5 @@ export {
|
|
|
40
40
|
startOfDay as fnsStartOfDay,
|
|
41
41
|
startOfMonth as fnsStartOfMonth,
|
|
42
42
|
getDefaultTexts,
|
|
43
|
-
|
|
43
|
+
default9 as localeUtils
|
|
44
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-picker",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "DatePicker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
],
|
|
44
44
|
"types": "dist/index.d.ts",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@synerise/ds-button": "^2.0
|
|
47
|
-
"@synerise/ds-dropdown": "^2.1.
|
|
48
|
-
"@synerise/ds-icon": "^2.1.
|
|
49
|
-
"@synerise/ds-input": "^2.0.
|
|
50
|
-
"@synerise/ds-time-picker": "^2.0.
|
|
51
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
52
|
-
"@synerise/ds-typography": "^2.0.
|
|
53
|
-
"@synerise/ds-utils": "^2.
|
|
46
|
+
"@synerise/ds-button": "^2.1.0",
|
|
47
|
+
"@synerise/ds-dropdown": "^2.1.2",
|
|
48
|
+
"@synerise/ds-icon": "^2.1.3",
|
|
49
|
+
"@synerise/ds-input": "^2.0.6",
|
|
50
|
+
"@synerise/ds-time-picker": "^2.0.6",
|
|
51
|
+
"@synerise/ds-tooltip": "^2.0.5",
|
|
52
|
+
"@synerise/ds-typography": "^2.0.5",
|
|
53
|
+
"@synerise/ds-utils": "^2.2.0",
|
|
54
54
|
"classnames": "^2.5.1",
|
|
55
55
|
"date-fns": "^4.1.0",
|
|
56
56
|
"lodash.range": "^3.2.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
68
68
|
"styled-components": "^5.3.3"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "5e795fa4fd23f6b07277edb517a84bb9b5b6d256"
|
|
71
71
|
}
|