@autoguru/overdrive 4.18.0 → 4.19.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.
|
@@ -2,6 +2,7 @@ import { ComponentProps, FunctionComponent, ReactElement } from 'react';
|
|
|
2
2
|
import { Columns } from '../Columns';
|
|
3
3
|
export interface Props extends Partial<Pick<ComponentProps<typeof Columns>, 'noWrap' | 'wrappingDirection'>> {
|
|
4
4
|
children: ReactElement | ReactElement[];
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const Actions: FunctionComponent<Props>;
|
|
7
8
|
export default Actions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../lib/components/Actions/Actions.tsx"],"names":[],"mappings":"AACA,OAAO,EAEN,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,OAAO,CAAC;AAGf,OAAO,EAAU,OAAO,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,KAChB,SAAQ,OAAO,CACd,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CACpE;IACD,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../lib/components/Actions/Actions.tsx"],"names":[],"mappings":"AACA,OAAO,EAEN,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,OAAO,CAAC;AAGf,OAAO,EAAU,OAAO,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,KAChB,SAAQ,OAAO,CACd,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CACpE;IACD,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAU5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../lib/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAIN,iBAAiB,EACjB,YAAY,EAKZ,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD,KAAK,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtC,MAAM,WAAW,KAAK;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../lib/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAIN,iBAAiB,EACjB,YAAY,EAKZ,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD,KAAK,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtC,MAAM,WAAW,KAAK;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAqE5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -42,7 +42,7 @@ export const Tooltip = _ref => {
|
|
|
42
42
|
if (isOpen && typeof closeAfter === 'number') timeout = setTimeout(() => setIsOpen(false), closeAfter);
|
|
43
43
|
return () => timeout ? clearTimeout(timeout) : void 0;
|
|
44
44
|
}, [closeAfter, isOpen]);
|
|
45
|
-
return _jsxs(_Fragment, {
|
|
45
|
+
return (label === null || label === void 0 ? void 0 : label.length) > 0 ? _jsxs(_Fragment, {
|
|
46
46
|
children: [cloneElement(Children.only(children), {
|
|
47
47
|
ref: triggerRef,
|
|
48
48
|
onMouseEnter: enterHandler,
|
|
@@ -70,6 +70,8 @@ export const Tooltip = _ref => {
|
|
|
70
70
|
})
|
|
71
71
|
})
|
|
72
72
|
})]
|
|
73
|
+
}) : _jsx(_Fragment, {
|
|
74
|
+
children: children
|
|
73
75
|
});
|
|
74
76
|
};
|
|
75
77
|
export default Tooltip;
|
|
@@ -74,10 +74,17 @@ const withLongTextProps = {
|
|
|
74
74
|
};
|
|
75
75
|
export const withLongText = Template.bind(withLongTextProps);
|
|
76
76
|
withLongText.args = withLongTextProps;
|
|
77
|
-
const
|
|
77
|
+
const withSmallTextSizeProps = {
|
|
78
78
|
label: 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.',
|
|
79
79
|
alignment: EAlignment.BOTTOM,
|
|
80
80
|
size: 'large'
|
|
81
81
|
};
|
|
82
|
-
export const withLargeTextSize = Template.bind(
|
|
83
|
-
withLargeTextSize.args =
|
|
82
|
+
export const withLargeTextSize = Template.bind(withSmallTextSizeProps);
|
|
83
|
+
withLargeTextSize.args = withSmallTextSizeProps;
|
|
84
|
+
const withEmptyLabelProps = {
|
|
85
|
+
label: '',
|
|
86
|
+
alignment: EAlignment.BOTTOM,
|
|
87
|
+
size: 'large'
|
|
88
|
+
};
|
|
89
|
+
export const withEmptyLabel = Template.bind(withEmptyLabelProps);
|
|
90
|
+
withEmptyLabel.args = withEmptyLabelProps;
|