@true-engineering/true-react-common-ui-kit 3.28.2 → 3.28.4
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/README.md +14 -1
- package/dist/true-react-common-ui-kit.js +82 -44
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +82 -44
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +2 -1
- package/src/components/List/List.tsx +1 -1
- package/src/components/WithPopup/WithPopup.tsx +1 -1
package/package.json
CHANGED
|
@@ -75,7 +75,7 @@ export function FilterWrapper<Values, Key extends keyof Values>({
|
|
|
75
75
|
canBeFlipped
|
|
76
76
|
isDisabled={isBoolean || isDisabled}
|
|
77
77
|
tweakStyles={tweakWithPopupStyles}
|
|
78
|
-
trigger={({ isActive }) => (
|
|
78
|
+
trigger={({ isActive, isDisabled: _isDisabled, ...props }) => (
|
|
79
79
|
<div
|
|
80
80
|
className={clsx(classes.root, {
|
|
81
81
|
[classes.noValue]: !hasValue,
|
|
@@ -87,6 +87,7 @@ export function FilterWrapper<Values, Key extends keyof Values>({
|
|
|
87
87
|
})}
|
|
88
88
|
{...addDataTestId(testId)}
|
|
89
89
|
{...addDataAttributes(data)}
|
|
90
|
+
{...props}
|
|
90
91
|
>
|
|
91
92
|
<div
|
|
92
93
|
onClick={handleLabelClick}
|
|
@@ -33,7 +33,7 @@ export const List: FC<IListProps> = ({ items, testId, data, tweakStyles, onClick
|
|
|
33
33
|
<div className={classes.root} {...addDataTestId(testId)} {...addDataAttributes(data)}>
|
|
34
34
|
{items.map((item, i) => {
|
|
35
35
|
const itemProps: IListItemProps = {
|
|
36
|
-
testId: getTestId(
|
|
36
|
+
testId: getTestId(testId, `item-${i}`),
|
|
37
37
|
...item,
|
|
38
38
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
39
39
|
shouldDrawSpacerBelow: item.shouldDrawSpacerBelow && i !== items.length - 1,
|
|
@@ -127,7 +127,7 @@ export const WithPopup: FC<IWithPopupProps> = ({
|
|
|
127
127
|
|
|
128
128
|
const triggerElement = applyAction(trigger, {
|
|
129
129
|
isActive: isOpen,
|
|
130
|
-
isDisabled,
|
|
130
|
+
...(isDisabled ? { isDisabled: true } : undefined),
|
|
131
131
|
...(!isTriggerWrapped ? referenceProps : undefined),
|
|
132
132
|
});
|
|
133
133
|
|