@thecb/components 7.0.1-beta.1 → 7.0.1-beta.2
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.d.ts
CHANGED
|
@@ -334,6 +334,30 @@ interface FooterWithSubfooterProps {
|
|
|
334
334
|
declare const FooterWithSubfooter: React.FC<Expand<FooterWithSubfooterProps> &
|
|
335
335
|
React.HTMLAttributes<HTMLElement>>;
|
|
336
336
|
|
|
337
|
+
interface PopoverProps {
|
|
338
|
+
triggerText?: string | JSX.Element;
|
|
339
|
+
content?: string | JSX.Element;
|
|
340
|
+
hasIcon?: boolean;
|
|
341
|
+
iconHelpText?: string; // for screen-readers, required if using an icon for trigger
|
|
342
|
+
popoverID?: number;
|
|
343
|
+
popoverFocus?: boolean;
|
|
344
|
+
extraStyles?: string;
|
|
345
|
+
textExtraStyles?: string;
|
|
346
|
+
minWidth?: string;
|
|
347
|
+
maxWidth?: string;
|
|
348
|
+
height?: string;
|
|
349
|
+
position?: { top: string; right: string; bottom: string; left: string };
|
|
350
|
+
arrowPosition?: {
|
|
351
|
+
arrowTop: string;
|
|
352
|
+
arrowRight: string;
|
|
353
|
+
arrowBottom: string;
|
|
354
|
+
arrowLeft: string;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare const Popover: React.FC<Expand<PopoverProps> &
|
|
359
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
360
|
+
|
|
337
361
|
interface DefaultPageTemplateProps {
|
|
338
362
|
content: JSX.Element;
|
|
339
363
|
header?: JSX.Element;
|
|
@@ -348,5 +372,5 @@ interface DefaultPageTemplateProps {
|
|
|
348
372
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
349
373
|
React.HTMLAttributes<HTMLElement>>;
|
|
350
374
|
|
|
351
|
-
export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Stack, StackProps, Switcher, SwitcherProps, TableListItem, TableListItemProps, Text, TextProps, Title, TitleProps };
|
|
375
|
+
export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Popover, PopoverProps, Stack, StackProps, Switcher, SwitcherProps, TableListItem, TableListItemProps, Text, TextProps, Title, TitleProps };
|
|
352
376
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Expand from "../../../util/expand";
|
|
3
|
+
|
|
4
|
+
export interface PopoverProps {
|
|
5
|
+
triggerText?: string | JSX.Element;
|
|
6
|
+
content?: string | JSX.Element;
|
|
7
|
+
hasIcon?: boolean;
|
|
8
|
+
iconHelpText?: string; // for screen-readers, required if using an icon for trigger
|
|
9
|
+
popoverID?: number;
|
|
10
|
+
popoverFocus?: boolean;
|
|
11
|
+
extraStyles?: string;
|
|
12
|
+
textExtraStyles?: string;
|
|
13
|
+
minWidth?: string;
|
|
14
|
+
maxWidth?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
position?: { top: string; right: string; bottom: string; left: string };
|
|
17
|
+
arrowPosition?: {
|
|
18
|
+
arrowTop: string;
|
|
19
|
+
arrowRight: string;
|
|
20
|
+
arrowBottom: string;
|
|
21
|
+
arrowLeft: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const Popover: React.FC<Expand<PopoverProps> &
|
|
26
|
+
React.HTMLAttributes<HTMLElement>>;
|