@ssa-ui-kit/core 0.0.22-alpha → 0.0.24-alpha
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/Tooltip/types.d.ts +3 -1
- package/dist/components/TooltipContent/constants.d.ts +1 -0
- package/dist/components/TooltipContent/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/src/components/Popover/hooks/usePopover.tsx +4 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +29 -14
- package/src/components/Tooltip/types.ts +3 -1
- package/src/components/TooltipContent/TooltipContent.tsx +26 -4
- package/src/components/TooltipContent/constants.ts +16 -0
- package/src/components/TooltipContent/index.ts +1 -0
- package/tsbuildcache +1 -1
|
@@ -32,9 +32,11 @@ export type TooltipContextType = (UseFloatingReturn & ReturnType<typeof useInter
|
|
|
32
32
|
} & Pick<ITooltipProps, 'size' | 'hasArrow' | 'arrowProps'>) | null;
|
|
33
33
|
export type TooltipArrowProps = Omit<React.ComponentProps<typeof FloatingArrow>, 'context'>;
|
|
34
34
|
export interface ITooltipContentProps {
|
|
35
|
-
children: React.
|
|
35
|
+
children: React.ReactElement;
|
|
36
36
|
className?: string;
|
|
37
37
|
style?: React.CSSProperties;
|
|
38
|
+
allowTags?: boolean;
|
|
39
|
+
allowedTags?: string[];
|
|
38
40
|
}
|
|
39
41
|
export interface ITooltipContentSizes {
|
|
40
42
|
small: SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ALLOWED_TAGS: string[];
|