@true-engineering/true-react-common-ui-kit 4.0.0-alpha73 → 4.0.0-alpha75
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/dist/components/FiltersPane/components/FilterDateSingle/FilterDateSingle.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +3 -2
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FiltersPane/components/FilterDateSingle/FilterDateSingle.tsx +7 -1
- package/src/components/WithPopup/WithPopup.tsx +4 -2
package/package.json
CHANGED
|
@@ -14,7 +14,13 @@ export interface IFilterDateSingleProps
|
|
|
14
14
|
Partial<
|
|
15
15
|
Pick<
|
|
16
16
|
IDatePickerProps,
|
|
17
|
-
|
|
17
|
+
| 'label'
|
|
18
|
+
| 'minDate'
|
|
19
|
+
| 'maxDate'
|
|
20
|
+
| 'calendarStartDay'
|
|
21
|
+
| 'popperModifiers'
|
|
22
|
+
| 'popperPlacement'
|
|
23
|
+
| 'customInput'
|
|
18
24
|
>
|
|
19
25
|
> {
|
|
20
26
|
value?: Date | null;
|
|
@@ -175,12 +175,14 @@ export const WithPopup: FC<IWithPopupProps> = ({
|
|
|
175
175
|
}),
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
+
const triggerData: IDataAttributes = { popupOpen: isActive, ...data };
|
|
179
|
+
|
|
178
180
|
const triggerElement = applyAction(trigger, {
|
|
179
181
|
referenceProps: !isTriggerWrapped ? referenceProps : undefined,
|
|
180
182
|
triggerProps: {
|
|
181
183
|
isActive,
|
|
182
184
|
isDisabled,
|
|
183
|
-
...(!isTriggerWrapped && { data, testId, ...referenceProps }),
|
|
185
|
+
...(!isTriggerWrapped && { data: triggerData, testId, ...referenceProps }),
|
|
184
186
|
},
|
|
185
187
|
});
|
|
186
188
|
|
|
@@ -194,7 +196,7 @@ export const WithPopup: FC<IWithPopupProps> = ({
|
|
|
194
196
|
[classes.active]: isActive,
|
|
195
197
|
})}
|
|
196
198
|
{...referenceProps}
|
|
197
|
-
{...addDataAttributes(
|
|
199
|
+
{...addDataAttributes(triggerData, testId)}
|
|
198
200
|
>
|
|
199
201
|
{triggerElement}
|
|
200
202
|
</div>
|