@thecb/components 7.1.0-beta.2 → 7.2.0-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 +347 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +88 -1
- package/dist/index.esm.js +345 -50
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/ClipboardIcon.js +42 -0
- package/src/components/atoms/icons/WalletBannerIcon.js +52 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/nav-tabs/NavTab.js +1 -1
- package/src/components/molecules/banner/Banner.js +51 -0
- package/src/components/molecules/banner/Banner.stories.js +29 -0
- package/src/components/molecules/banner/Banner.theme.js +5 -0
- package/src/components/molecules/banner/index.js +3 -0
- package/src/components/molecules/collapsible-section/index.d.ts +25 -0
- package/src/components/molecules/copyable/Copyable.js +139 -0
- package/src/components/molecules/copyable/index.d.ts +18 -0
- package/src/components/molecules/copyable/index.js +3 -0
- package/src/components/molecules/editable-table/index.d.ts +23 -0
- package/src/components/molecules/index.d.ts +4 -0
- package/src/components/molecules/index.js +2 -0
- package/src/components/molecules/modal/Modal.js +8 -3
- package/src/components/molecules/popover/Popover.js +33 -3
- package/src/components/molecules/popover/index.d.ts +29 -0
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,66 @@ interface TitleProps {
|
|
|
278
278
|
declare const Title: React.FC<Expand<TitleProps> &
|
|
279
279
|
React.HTMLAttributes<HTMLElement>>;
|
|
280
280
|
|
|
281
|
+
interface CollapsibleSectionProps {
|
|
282
|
+
isOpen?: boolean;
|
|
283
|
+
toggleSection: (
|
|
284
|
+
event?: React.MouseEvent<HTMLElement> | React.TouchEvent<HTMLElement>
|
|
285
|
+
) => void;
|
|
286
|
+
isMobile?: boolean;
|
|
287
|
+
supportsTouch?: boolean;
|
|
288
|
+
title?: string;
|
|
289
|
+
customPadding?: string;
|
|
290
|
+
initiallyOpen?: boolean;
|
|
291
|
+
openHeight?: string;
|
|
292
|
+
children?: JSX.Element;
|
|
293
|
+
customTitle?: boolean;
|
|
294
|
+
stackTitle?: boolean;
|
|
295
|
+
stackTitleContent?: string | JSX.Element;
|
|
296
|
+
sectionGap?: string;
|
|
297
|
+
name?: string;
|
|
298
|
+
index?: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &
|
|
302
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
303
|
+
|
|
304
|
+
interface CopyableProps {
|
|
305
|
+
content: string;
|
|
306
|
+
onCopy?: () => void;
|
|
307
|
+
initialPopoverContent?: string;
|
|
308
|
+
copySuccessPopoverContent?: string;
|
|
309
|
+
copyErrorPopoverContent?: string;
|
|
310
|
+
copiedPopoverContentDuration?: number;
|
|
311
|
+
hasPopover?: boolean;
|
|
312
|
+
popoverID?: number;
|
|
313
|
+
popoverMinWidth?: string;
|
|
314
|
+
popoverExtraStyles?: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
declare const Copyable: React.FC<Expand<CopyableProps> &
|
|
318
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
319
|
+
|
|
320
|
+
interface EditableTableProps {
|
|
321
|
+
title?: string;
|
|
322
|
+
renderItem?: (items: any[]) => JSX.Element;
|
|
323
|
+
items?: any[];
|
|
324
|
+
isMobile?: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare const EditableTable: React.FC<Expand<EditableTableProps> &
|
|
328
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
329
|
+
|
|
330
|
+
interface TableListItemProps {
|
|
331
|
+
title: string | JSX.Element;
|
|
332
|
+
value: string | JSX.Element;
|
|
333
|
+
canEdit?: boolean;
|
|
334
|
+
canRemove?: boolean;
|
|
335
|
+
isMobile?: boolean;
|
|
336
|
+
borderTopItem?: boolean;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare const TableListItem: React.FC<Expand<TableListItemProps>>;
|
|
340
|
+
|
|
281
341
|
interface FooterWithSubfooterProps {
|
|
282
342
|
footerLargeSide?: "left" | "right";
|
|
283
343
|
footerLargeSideSize?: string;
|
|
@@ -290,6 +350,33 @@ interface FooterWithSubfooterProps {
|
|
|
290
350
|
declare const FooterWithSubfooter: React.FC<Expand<FooterWithSubfooterProps> &
|
|
291
351
|
React.HTMLAttributes<HTMLElement>>;
|
|
292
352
|
|
|
353
|
+
interface PopoverProps {
|
|
354
|
+
triggerText?: string | JSX.Element;
|
|
355
|
+
content?: string | JSX.Element;
|
|
356
|
+
hasIcon?: boolean;
|
|
357
|
+
iconHelpText?: string; // for screen-readers, required if using an icon for trigger
|
|
358
|
+
popoverID?: number;
|
|
359
|
+
popoverFocus?: boolean;
|
|
360
|
+
extraStyles?: string;
|
|
361
|
+
textExtraStyles?: string;
|
|
362
|
+
minWidth?: string;
|
|
363
|
+
maxWidth?: string;
|
|
364
|
+
height?: string;
|
|
365
|
+
position?: { top: string; right: string; bottom: string; left: string };
|
|
366
|
+
arrowPosition?: {
|
|
367
|
+
arrowTop: string;
|
|
368
|
+
arrowRight: string;
|
|
369
|
+
arrowBottom: string;
|
|
370
|
+
arrowLeft: string;
|
|
371
|
+
};
|
|
372
|
+
arrowDirection?: "left" | "right" | "top" | "bottom";
|
|
373
|
+
transform?: string;
|
|
374
|
+
disclosedExtraStyles?: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare const Popover: React.FC<Expand<PopoverProps> &
|
|
378
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
379
|
+
|
|
293
380
|
interface DefaultPageTemplateProps {
|
|
294
381
|
content: JSX.Element;
|
|
295
382
|
header?: JSX.Element;
|
|
@@ -304,5 +391,5 @@ interface DefaultPageTemplateProps {
|
|
|
304
391
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
305
392
|
React.HTMLAttributes<HTMLElement>>;
|
|
306
393
|
|
|
307
|
-
export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Stack, StackProps, Switcher, SwitcherProps, Text, TextProps, Title, TitleProps };
|
|
394
|
+
export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, 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 };
|
|
308
395
|
//# sourceMappingURL=index.d.ts.map
|