@synerise/ds-date-range-picker 2.1.8 → 2.2.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.
- package/CHANGELOG.md +11 -0
- package/CLAUDE.md +1 -0
- package/dist/DateRangePicker.js +1 -1
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@2.1.8...@synerise/ds-date-range-picker@2.2.0) (2026-10-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **popover:** add stickyPlacement option, enable it in date-range-picker ([03d3017](https://github.com/Synerise/synerise-design/commit/03d3017450512e958b5bf9d598a87c789b176037))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@2.1.7...@synerise/ds-date-range-picker@2.1.8) (2026-10-26)
|
|
7
18
|
|
|
8
19
|
|
package/CLAUDE.md
CHANGED
|
@@ -210,6 +210,7 @@ Addons (relative picker, filter) appear below the calendar and are toggled via `
|
|
|
210
210
|
|
|
211
211
|
## Implementation notes
|
|
212
212
|
|
|
213
|
+
- The popover is opened with `autoUpdate` and `stickyPlacement`: it keeps the side it opened on while its content changes height (expanding the custom relative range, collapsing an addon) and chooses again on scroll, viewport resize or a move of the trigger. `popoverProps={{ stickyPlacement: false }}` restores the old behaviour.
|
|
213
214
|
- `disabled` and `readOnly` both suppress the popover entirely — the component renders just the trigger element without `<Popover>`.
|
|
214
215
|
- `renderPopoverTrigger` takes precedence if it returns a non-undefined value; `popoverTrigger` is checked before that; the default `RangePickerInput` is used otherwise.
|
|
215
216
|
- `valueTransformer` is applied inside `RawDateRangePicker` before calling `onApply` — default transformer strips `ALL_TIME`-specific props.
|
package/dist/DateRangePicker.js
CHANGED
|
@@ -75,7 +75,7 @@ const DateRangePicker = forwardRef((props, forwardedRef) => {
|
|
|
75
75
|
setPopupVisible(openState);
|
|
76
76
|
setInputActive(openState);
|
|
77
77
|
onVisibleChange && onVisibleChange(openState);
|
|
78
|
-
}, placement: floatingPlacement, testId: "date-range-picker", componentId: "date-range-picker", returnFocus: false, offsetConfig: POPOVER_OFFSET_CONFIG, flipConfig: POPOVER_FLIP_CONFIG, shiftConfig: POPOVER_SHIFT_CONFIG, autoUpdate: true, ...conditionalVisibilityProps, ...popoverProps, children: [
|
|
78
|
+
}, placement: floatingPlacement, testId: "date-range-picker", componentId: "date-range-picker", returnFocus: false, offsetConfig: POPOVER_OFFSET_CONFIG, flipConfig: POPOVER_FLIP_CONFIG, shiftConfig: POPOVER_SHIFT_CONFIG, autoUpdate: true, stickyPlacement: true, ...conditionalVisibilityProps, ...popoverProps, children: [
|
|
79
79
|
/* @__PURE__ */ jsx(PopoverContent, { children: /* @__PURE__ */ jsx(DateRangePickerOverlay, { className: "ds-date-range-popover", "data-testid": "ds-date-range-picker-overlay", children: /* @__PURE__ */ jsx(RawDateRangePicker, { ...props, showTime, onApply: onApplyCallback, value: selectedDate, texts: allTexts, forceAdjacentMonths }) }) }),
|
|
80
80
|
/* @__PURE__ */ jsx(PickerTrigger, { asChild: false, children: /* @__PURE__ */ jsx(PickerWrapper, { ref: forwardedRef, onClick: handleTriggerClick, children: triggerElement }) })
|
|
81
81
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-range-picker",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Date-Range-Picker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -46,25 +46,25 @@
|
|
|
46
46
|
],
|
|
47
47
|
"types": "dist/index.d.ts",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@synerise/ds-badge": "^2.0.
|
|
50
|
-
"@synerise/ds-button": "^2.1.
|
|
51
|
-
"@synerise/ds-button-group": "^2.0.
|
|
52
|
-
"@synerise/ds-date-picker": "^2.1.
|
|
53
|
-
"@synerise/ds-dropdown": "^2.1.
|
|
54
|
-
"@synerise/ds-form-field": "^2.0.
|
|
49
|
+
"@synerise/ds-badge": "^2.0.11",
|
|
50
|
+
"@synerise/ds-button": "^2.1.6",
|
|
51
|
+
"@synerise/ds-button-group": "^2.0.11",
|
|
52
|
+
"@synerise/ds-date-picker": "^2.1.9",
|
|
53
|
+
"@synerise/ds-dropdown": "^2.1.8",
|
|
54
|
+
"@synerise/ds-form-field": "^2.0.11",
|
|
55
55
|
"@synerise/ds-icon": "^2.2.3",
|
|
56
|
-
"@synerise/ds-inline-edit": "^2.0.
|
|
57
|
-
"@synerise/ds-input": "^2.0.
|
|
58
|
-
"@synerise/ds-input-number": "^2.0.
|
|
59
|
-
"@synerise/ds-list-item": "^2.2.
|
|
60
|
-
"@synerise/ds-manageable-list": "^2.1.
|
|
61
|
-
"@synerise/ds-popover": "^2.0
|
|
56
|
+
"@synerise/ds-inline-edit": "^2.0.12",
|
|
57
|
+
"@synerise/ds-input": "^2.0.12",
|
|
58
|
+
"@synerise/ds-input-number": "^2.0.12",
|
|
59
|
+
"@synerise/ds-list-item": "^2.2.4",
|
|
60
|
+
"@synerise/ds-manageable-list": "^2.1.9",
|
|
61
|
+
"@synerise/ds-popover": "^2.1.0",
|
|
62
62
|
"@synerise/ds-scrollbar": "^2.0.9",
|
|
63
|
-
"@synerise/ds-select": "^2.1.
|
|
64
|
-
"@synerise/ds-slider": "^2.0.
|
|
65
|
-
"@synerise/ds-tag": "^2.0.
|
|
66
|
-
"@synerise/ds-time-picker": "^2.0.
|
|
67
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
63
|
+
"@synerise/ds-select": "^2.1.8",
|
|
64
|
+
"@synerise/ds-slider": "^2.0.11",
|
|
65
|
+
"@synerise/ds-tag": "^2.0.11",
|
|
66
|
+
"@synerise/ds-time-picker": "^2.0.12",
|
|
67
|
+
"@synerise/ds-tooltip": "^2.0.11",
|
|
68
68
|
"@synerise/ds-utils": "^2.2.2",
|
|
69
69
|
"date-fns": "^4.1.0",
|
|
70
70
|
"dayjs": "^1.8.35",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
104
104
|
"styled-components": "^5.3.3"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
|
|
107
107
|
}
|