@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.0.0",
3
+ "version": "7.0.1-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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>>;
@@ -1 +1,3 @@
1
+ export * from "./collapsible-section";
2
+ export * from "./editable-table";
1
3
  export * from "./footer-with-subfooter";