@bigbinary/neeto-molecules 1.0.16 → 1.0.18
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/README.md +2 -0
- package/dist/DynamicVariables.cjs.js +30 -31
- package/dist/DynamicVariables.cjs.js.map +1 -1
- package/dist/DynamicVariables.js +30 -31
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailPreview.cjs.js +88 -77
- package/dist/EmailPreview.cjs.js.map +1 -1
- package/dist/EmailPreview.js +88 -77
- package/dist/EmailPreview.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +218 -218
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +218 -218
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +8560 -0
- package/dist/PhoneNumber.cjs.js.map +1 -0
- package/dist/PhoneNumber.js +8528 -0
- package/dist/PhoneNumber.js.map +1 -0
- package/dist/ShareViaEmail.cjs.js +217 -125
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +217 -125
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/TableWrapper.cjs.js +235 -0
- package/dist/TableWrapper.cjs.js.map +1 -0
- package/dist/TableWrapper.js +229 -0
- package/dist/TableWrapper.js.map +1 -0
- package/package.json +5 -2
- package/src/translations/en.json +6 -0
- package/types/Header.d.ts +25 -12
- package/types/PhoneNumber.d.ts +110 -0
- package/types/SubHeader.d.ts +31 -6
- package/types/TableWrapper.d.ts +34 -0
package/types/SubHeader.d.ts
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* The SubHeader component is used alongside the header component to display
|
|
5
|
+
*
|
|
6
|
+
* additional information or actions.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* import SubHeader from "@bigbinary/neeto-molecules/SubHeader";
|
|
11
|
+
*
|
|
12
|
+
* const App = () => (
|
|
13
|
+
* <SubHeader
|
|
14
|
+
* leftActionBlock={
|
|
15
|
+
* <Typography component="h4" style="h4">
|
|
16
|
+
* 118 Contacts
|
|
17
|
+
* </Typography>
|
|
18
|
+
* }
|
|
19
|
+
* rightActionBlock={
|
|
20
|
+
* <>
|
|
21
|
+
* <Button icon={Delete} label="Delete" style="secondary" />
|
|
22
|
+
* <Button label="Disable" style="secondary" />
|
|
23
|
+
* </>
|
|
24
|
+
* }
|
|
25
|
+
* />
|
|
26
|
+
* );
|
|
27
|
+
* @endexample
|
|
28
|
+
*/
|
|
3
29
|
const SubHeader: React.FC<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
30
|
+
className?: string;
|
|
31
|
+
leftActionBlock?: React.ReactNode;
|
|
32
|
+
rightActionBlock?: React.ReactNode;
|
|
7
33
|
}>;
|
|
8
|
-
|
|
9
|
-
export default SubHeader;
|
|
34
|
+
export default SubHeader;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* TableWrapper is used to wrap the table component.
|
|
5
|
+
*
|
|
6
|
+
* It is used to avoid the dynamic height calculation and
|
|
7
|
+
*
|
|
8
|
+
* inconsistency in heights for the parent container of the table component.
|
|
9
|
+
*
|
|
10
|
+
* TableWrapper should be used only with Tables used in the listing layout as
|
|
11
|
+
*
|
|
12
|
+
* shown below.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* import TableWrapper from "@bigbinary/neeto-molecules/TableWrapper";
|
|
17
|
+
*
|
|
18
|
+
* const App = () => (
|
|
19
|
+
* <Container>
|
|
20
|
+
* <Header />
|
|
21
|
+
* <SubHeader />
|
|
22
|
+
* <TableWrapper>
|
|
23
|
+
* <Table columnData={columnData} rowData={rowData} />
|
|
24
|
+
* </TableWrapper>
|
|
25
|
+
* </Container>
|
|
26
|
+
* );
|
|
27
|
+
* @endexample
|
|
28
|
+
*/
|
|
29
|
+
const TableWrapper: React.FC<{
|
|
30
|
+
hasPagination?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
}>;
|
|
34
|
+
export default TableWrapper;
|