@fibery/ui-kit 1.41.0 → 1.42.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 +12 -0
- package/package.json +3 -3
- package/src/date-picker/date-range-picker-popup-content.tsx +1 -2
- package/src/date-picker/date-range-picker.tsx +28 -29
- package/src/date-picker/single-date-picker-popup-content.tsx +1 -2
- package/src/date-picker/single-date-picker.tsx +23 -26
- package/src/date-picker/types.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @fibery/ui-kit
|
|
2
2
|
|
|
3
|
+
## 1.42.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c465007: Add typedObjectEntries into fibery/helpers
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [c465007]
|
|
12
|
+
- @fibery/helpers@1.5.0
|
|
13
|
+
- @fibery/react@1.5.0
|
|
14
|
+
|
|
3
15
|
## 1.41.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"dependencies": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"screenfull": "6.0.2",
|
|
48
48
|
"tabbable": "5.2.1",
|
|
49
49
|
"@fibery/emoji-data": "2.7.1",
|
|
50
|
-
"@fibery/helpers": "1.
|
|
51
|
-
"@fibery/react": "1.
|
|
50
|
+
"@fibery/helpers": "1.5.0",
|
|
51
|
+
"@fibery/react": "1.5.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "18.3.1",
|
|
@@ -41,7 +41,6 @@ export const DateRangePickerPopupContent = forwardRef<
|
|
|
41
41
|
timeFormat,
|
|
42
42
|
dateTimeFormat,
|
|
43
43
|
header,
|
|
44
|
-
bypassedRef,
|
|
45
44
|
onKeyDown,
|
|
46
45
|
weekStartsOn,
|
|
47
46
|
weekends,
|
|
@@ -148,7 +147,7 @@ export const DateRangePickerPopupContent = forwardRef<
|
|
|
148
147
|
const weekendsForMonth = useMemo(() => getWeekendsForMonth(month, weekends), [month, weekends]);
|
|
149
148
|
|
|
150
149
|
return (
|
|
151
|
-
<div className={datePickerStylesOverrideClassName}
|
|
150
|
+
<div className={datePickerStylesOverrideClassName} onKeyDown={onKeyDown}>
|
|
152
151
|
{header}
|
|
153
152
|
{showInput && (
|
|
154
153
|
<DateRangeInput
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {ControlledDatePickerProps, DatePickerCommonProps, MomentDateRangeProps} from "./types";
|
|
2
|
-
import {
|
|
2
|
+
import {Popover} from "../popover";
|
|
3
3
|
import {space} from "../design-system";
|
|
4
4
|
import {withPopupControl} from "./with-popup-control";
|
|
5
5
|
import {DateRangePickerPopupContent} from "./date-range-picker-popup-content";
|
|
@@ -24,7 +24,6 @@ export const DateRangePicker = forwardRef<
|
|
|
24
24
|
onOpen,
|
|
25
25
|
onClose,
|
|
26
26
|
children,
|
|
27
|
-
bypassedRef,
|
|
28
27
|
value,
|
|
29
28
|
disabled = false,
|
|
30
29
|
onChange,
|
|
@@ -89,36 +88,36 @@ export const DateRangePicker = forwardRef<
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
return (
|
|
92
|
-
<div
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
offset={[0, space.s6]}
|
|
96
|
-
trigger={
|
|
91
|
+
<div>
|
|
92
|
+
<Popover.Root open={open} onOpen={onOpen} onClose={onClose}>
|
|
93
|
+
<Popover.Trigger>
|
|
97
94
|
<div ref={fakeWrapperRef} onClick={stopPropagation}>
|
|
98
95
|
{pickerValue}
|
|
99
96
|
</div>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
97
|
+
</Popover.Trigger>
|
|
98
|
+
<Popover.Portal>
|
|
99
|
+
<Popover.Content
|
|
100
|
+
title={title}
|
|
101
|
+
offset={[0, space.s6]}
|
|
102
|
+
supportMobile
|
|
103
|
+
placement="bottom-start"
|
|
104
|
+
popupContainerClassName={css`
|
|
105
|
+
z-index: 10001;
|
|
106
|
+
`}
|
|
107
|
+
preventOverflowOptions={{
|
|
108
|
+
altAxis: true,
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
111
|
+
<DateRangePickerPopupContent
|
|
112
|
+
ref={ref}
|
|
113
|
+
{...omit(props, ["onChange", "value"])}
|
|
114
|
+
onChange={onDatesChange}
|
|
115
|
+
value={dateValue}
|
|
116
|
+
onKeyDown={onDatePickerKeyDown}
|
|
117
|
+
/>
|
|
118
|
+
</Popover.Content>
|
|
119
|
+
</Popover.Portal>
|
|
120
|
+
</Popover.Root>
|
|
122
121
|
</div>
|
|
123
122
|
);
|
|
124
123
|
});
|
|
@@ -28,7 +28,6 @@ export const SingleDatePickerPopupContent = forwardRef<
|
|
|
28
28
|
timeFormat,
|
|
29
29
|
dateTimeFormat,
|
|
30
30
|
onKeyDown,
|
|
31
|
-
bypassedRef,
|
|
32
31
|
weekStartsOn,
|
|
33
32
|
weekends,
|
|
34
33
|
} = props;
|
|
@@ -47,7 +46,7 @@ export const SingleDatePickerPopupContent = forwardRef<
|
|
|
47
46
|
const weekendsForMonth = useMemo(() => getWeekendsForMonth(month, weekends), [month, weekends]);
|
|
48
47
|
|
|
49
48
|
return (
|
|
50
|
-
<div className={datePickerStylesOverrideClassName}
|
|
49
|
+
<div className={datePickerStylesOverrideClassName} onKeyDown={onKeyDown}>
|
|
51
50
|
<SingleDateInput
|
|
52
51
|
ref={ref}
|
|
53
52
|
value={dateValue}
|
|
@@ -207,7 +207,6 @@ export const SingleDatePicker: SingleDatePickerWithForwardRefType = forwardRef<
|
|
|
207
207
|
onOpen,
|
|
208
208
|
onClose,
|
|
209
209
|
children,
|
|
210
|
-
bypassedRef,
|
|
211
210
|
value,
|
|
212
211
|
disabled = false,
|
|
213
212
|
placeholder,
|
|
@@ -242,31 +241,29 @@ export const SingleDatePicker: SingleDatePickerWithForwardRefType = forwardRef<
|
|
|
242
241
|
}
|
|
243
242
|
|
|
244
243
|
return (
|
|
245
|
-
<
|
|
246
|
-
<Popover.
|
|
247
|
-
<
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<Popover.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
</Popover.Root>
|
|
269
|
-
</div>
|
|
244
|
+
<Popover.Root open={open} onOpen={onOpen} onClose={onClose}>
|
|
245
|
+
<Popover.Trigger>
|
|
246
|
+
<div ref={fakeWrapperRef} onClick={stopPropagation}>
|
|
247
|
+
{pickerValue}
|
|
248
|
+
</div>
|
|
249
|
+
</Popover.Trigger>
|
|
250
|
+
<Popover.Portal>
|
|
251
|
+
<Popover.Content
|
|
252
|
+
title={title}
|
|
253
|
+
offset={[0, space.s6]}
|
|
254
|
+
placement="bottom-start"
|
|
255
|
+
supportMobile
|
|
256
|
+
popupContainerClassName={css`
|
|
257
|
+
z-index: 10001;
|
|
258
|
+
`}
|
|
259
|
+
preventOverflowOptions={{
|
|
260
|
+
altAxis: true,
|
|
261
|
+
}}
|
|
262
|
+
>
|
|
263
|
+
<SingleDatePickerPopoverContent ref={ref} {...props} />
|
|
264
|
+
</Popover.Content>
|
|
265
|
+
</Popover.Portal>
|
|
266
|
+
</Popover.Root>
|
|
270
267
|
);
|
|
271
268
|
});
|
|
272
269
|
|
package/src/date-picker/types.ts
CHANGED