@thecb/components 7.0.0 → 7.0.1-beta.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/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +45 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/collapsible-section/index.d.ts +25 -0
- package/src/components/molecules/editable-table/index.d.ts +23 -0
- package/src/components/molecules/index.d.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,50 @@ 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 EditableTableProps {
|
|
305
|
+
title?: string;
|
|
306
|
+
renderItem?: (items: any[]) => JSX.Element;
|
|
307
|
+
items?: any[];
|
|
308
|
+
isMobile?: boolean;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare const EditableTable: React.FC<Expand<EditableTableProps> &
|
|
312
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
313
|
+
|
|
314
|
+
interface TableListItemProps {
|
|
315
|
+
title: string | JSX.Element;
|
|
316
|
+
value: string | JSX.Element;
|
|
317
|
+
canEdit?: boolean;
|
|
318
|
+
canRemove?: boolean;
|
|
319
|
+
isMobile?: boolean;
|
|
320
|
+
borderTopItem?: boolean;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare const TableListItem: React.FC<Expand<TableListItemProps>>;
|
|
324
|
+
|
|
281
325
|
interface FooterWithSubfooterProps {
|
|
282
326
|
footerLargeSide?: "left" | "right";
|
|
283
327
|
footerLargeSideSize?: string;
|
|
@@ -304,5 +348,5 @@ interface DefaultPageTemplateProps {
|
|
|
304
348
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
305
349
|
React.HTMLAttributes<HTMLElement>>;
|
|
306
350
|
|
|
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 };
|
|
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 };
|
|
308
352
|
//# sourceMappingURL=index.d.ts.map
|