@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/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Expand from "../../../util/expand";
|
|
3
|
+
|
|
4
|
+
export interface CollapsibleSectionProps {
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
toggleSection: (
|
|
7
|
+
event?: React.MouseEvent<HTMLElement> | React.TouchEvent<HTMLElement>
|
|
8
|
+
) => void;
|
|
9
|
+
isMobile?: boolean;
|
|
10
|
+
supportsTouch?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
customPadding?: string;
|
|
13
|
+
initiallyOpen?: boolean;
|
|
14
|
+
openHeight?: string;
|
|
15
|
+
children?: JSX.Element;
|
|
16
|
+
customTitle?: boolean;
|
|
17
|
+
stackTitle?: boolean;
|
|
18
|
+
stackTitleContent?: string | JSX.Element;
|
|
19
|
+
sectionGap?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
index?: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &
|
|
25
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Expand from "../../../util/expand";
|
|
3
|
+
|
|
4
|
+
export interface EditableTableProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
renderItem?: (items: any[]) => JSX.Element;
|
|
7
|
+
items?: any[];
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const EditableTable: React.FC<Expand<EditableTableProps> &
|
|
12
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
13
|
+
|
|
14
|
+
export interface TableListItemProps {
|
|
15
|
+
title: string | JSX.Element;
|
|
16
|
+
value: string | JSX.Element;
|
|
17
|
+
canEdit?: boolean;
|
|
18
|
+
canRemove?: boolean;
|
|
19
|
+
isMobile?: boolean;
|
|
20
|
+
borderTopItem?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const TableListItem: React.FC<Expand<TableListItemProps>>;
|