@thecb/components 11.10.0-beta.2 → 11.10.1-beta.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/dist/index.cjs.js +86 -109
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +86 -109
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card-type/CardType.js +1 -9
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +7 -10
- package/src/components/atoms/icons/AmExSmallIcon.js +0 -2
- package/src/components/atoms/icons/DiscoverSmallIcon.js +0 -2
- package/src/components/atoms/icons/GenericCardLarge.js +1 -1
- package/src/components/atoms/icons/GenericSmallIcon.js +0 -2
- package/src/components/atoms/icons/MasterCardSmallIcon.js +0 -2
- package/src/components/atoms/icons/VisaSmallIcon.js +0 -2
- package/src/components/molecules/radio-section/InnerRadioSection.js +2 -2
- package/src/components/molecules/tooltip/Tooltip.js +61 -94
- package/src/components/molecules/tooltip/Tooltip.mdx +12 -2
- package/src/components/molecules/tooltip/Tooltip.stories.js +79 -71
- package/src/components/molecules/tooltip/Tooltip.theme.js +15 -5
- package/src/components/molecules/tooltip/index.d.ts +4 -7
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
MATISSE_BLUE,
|
|
3
|
+
PEACOCK_BLUE,
|
|
4
|
+
SAPPHIRE_BLUE
|
|
5
|
+
} from "../../../constants/colors";
|
|
6
|
+
|
|
7
|
+
const hoverColor = SAPPHIRE_BLUE;
|
|
8
|
+
const activeColor = PEACOCK_BLUE;
|
|
9
|
+
const linkColor = MATISSE_BLUE;
|
|
10
|
+
const borderColor = "rgba(255, 255, 255, 0.85)";
|
|
11
|
+
|
|
12
|
+
export const TOOLTIP_THEME_SOURCE = "Button";
|
|
4
13
|
|
|
5
14
|
export const fallbackValues = {
|
|
15
|
+
borderColor,
|
|
16
|
+
linkColor,
|
|
6
17
|
hoverColor,
|
|
7
|
-
activeColor
|
|
8
|
-
tooltipTriggerColor
|
|
18
|
+
activeColor
|
|
9
19
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Expand from "../../../util/expand";
|
|
3
|
+
|
|
3
4
|
export interface TooltipProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
content: string | React.ReactNode;
|
|
4
7
|
tooltipID: string;
|
|
5
|
-
|
|
6
|
-
IconTrigger?: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
7
|
-
iconHelpText?: string;
|
|
8
|
-
triggerText?: string | JSX.Element;
|
|
9
|
-
tooltipContent: string;
|
|
8
|
+
triggerText?: string;
|
|
10
9
|
contentPosition?: {
|
|
11
10
|
top: string;
|
|
12
11
|
right: string;
|
|
@@ -24,8 +23,6 @@ export interface TooltipProps {
|
|
|
24
23
|
maxWidth?: string;
|
|
25
24
|
height?: string;
|
|
26
25
|
containerExtraStyles?: string;
|
|
27
|
-
triggerExtraStyles?: string;
|
|
28
|
-
triggerButtonVariant?: string;
|
|
29
26
|
contentExtraStyles?: string;
|
|
30
27
|
contentBackgroundColor?: string;
|
|
31
28
|
}
|