@mackin.com/styleguide 9.8.1 → 9.9.1
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/index.d.ts +8 -1
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -663,6 +663,8 @@ interface PopoverProps {
|
|
|
663
663
|
backgroundColor?: string;
|
|
664
664
|
/** Order of positions as the Popover colides with the window edge. The default order is ['right', 'top', 'left', 'bottom']. */
|
|
665
665
|
positions?: ("bottom" | "left" | "right" | "top")[] | undefined;
|
|
666
|
+
/** Targets the wrapper around `parent`. Use if you're having positioning issues when the tooltip is showing. */
|
|
667
|
+
parentWrapperClassName?: string;
|
|
666
668
|
}
|
|
667
669
|
declare const Popover: (p: PopoverProps) => JSX.Element;
|
|
668
670
|
|
|
@@ -1093,7 +1095,9 @@ declare const ThemeRenderer: (p: ThemeRendererProps) => JSX.Element;
|
|
|
1093
1095
|
|
|
1094
1096
|
interface TabContainerProps {
|
|
1095
1097
|
tabs: {
|
|
1096
|
-
name: string;
|
|
1098
|
+
name: string | JSX.Element;
|
|
1099
|
+
/** The HTML title of the tab button. Defaults to 'name' prop. */
|
|
1100
|
+
title?: string;
|
|
1097
1101
|
getContent: () => JSX.Element;
|
|
1098
1102
|
}[];
|
|
1099
1103
|
id?: string;
|
|
@@ -1102,8 +1106,11 @@ interface TabContainerProps {
|
|
|
1102
1106
|
/** Defaults to 'tab'. */
|
|
1103
1107
|
variant?: 'tab' | 'button';
|
|
1104
1108
|
contentClassName?: string;
|
|
1109
|
+
/** This is applied to the `containerClassName` prop of TabHeader. */
|
|
1105
1110
|
tabHeaderClassName?: string;
|
|
1111
|
+
/** This is applied to the `tabClassName` prop of TabHeader. */
|
|
1106
1112
|
tabClassName?: string;
|
|
1113
|
+
/** This is applied to the `tabHeaderDividerClassName` prop of TabHeader. */
|
|
1107
1114
|
tabHeaderDividerClassName?: string;
|
|
1108
1115
|
/** Defaults to 0. */
|
|
1109
1116
|
startingIndex?: number;
|
package/index.esm.js
CHANGED
|
@@ -2241,7 +2241,7 @@ const Popover = (p) => {
|
|
|
2241
2241
|
backgroundColor: (_d = p.backgroundColor) !== null && _d !== void 0 ? _d : theme.colors.bg,
|
|
2242
2242
|
}) }, p.content))));
|
|
2243
2243
|
} },
|
|
2244
|
-
React.createElement("span",
|
|
2244
|
+
React.createElement("span", { className: p.parentWrapperClassName }, p.parent)));
|
|
2245
2245
|
};
|
|
2246
2246
|
|
|
2247
2247
|
const InfoTip = (props) => {
|
package/index.js
CHANGED
|
@@ -2268,7 +2268,7 @@ const Popover = (p) => {
|
|
|
2268
2268
|
backgroundColor: (_d = p.backgroundColor) !== null && _d !== void 0 ? _d : theme.colors.bg,
|
|
2269
2269
|
}) }, p.content))));
|
|
2270
2270
|
} },
|
|
2271
|
-
React__namespace.createElement("span",
|
|
2271
|
+
React__namespace.createElement("span", { className: p.parentWrapperClassName }, p.parent)));
|
|
2272
2272
|
};
|
|
2273
2273
|
|
|
2274
2274
|
const InfoTip = (props) => {
|