@draftbit/core 46.9.1-26da3e.2 → 46.9.1-2a60b8.2
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/lib/commonjs/components/Container.js +4 -15
- package/lib/commonjs/components/YotubePlayer.js +38 -0
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/index.js +7 -19
- package/lib/commonjs/mappings/ActionSheet.js +1 -1
- package/lib/commonjs/mappings/ActionSheetCancel.js +1 -1
- package/lib/commonjs/mappings/ActionSheetItem.js +1 -1
- package/lib/commonjs/mappings/MapCallout.js +1 -1
- package/lib/commonjs/mappings/MapMarker.js +1 -1
- package/lib/commonjs/mappings/YoutubePlayer.js +44 -0
- package/lib/module/components/Accordion/AccordionItem.js +25 -4
- package/lib/module/components/YotubePlayer.js +30 -0
- package/lib/module/index.js +1 -1
- package/lib/module/mappings/ActionSheet.js +1 -1
- package/lib/module/mappings/ActionSheetCancel.js +1 -1
- package/lib/module/mappings/ActionSheetItem.js +1 -1
- package/lib/module/mappings/MapCallout.js +2 -2
- package/lib/module/mappings/MapMarker.js +2 -2
- package/lib/module/mappings/YoutubePlayer.js +37 -0
- package/lib/typescript/src/components/YotubePlayer.d.ts +12 -0
- package/lib/typescript/src/components/YotubePlayer.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts +37 -0
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -0
- package/package.json +6 -4
- package/src/components/YotubePlayer.js +10 -0
- package/src/components/YotubePlayer.tsx +38 -0
- package/src/index.js +1 -1
- package/src/index.tsx +1 -1
- package/src/mappings/ActionSheet.js +4 -1
- package/src/mappings/ActionSheet.ts +4 -1
- package/src/mappings/ActionSheetCancel.js +4 -1
- package/src/mappings/ActionSheetCancel.ts +4 -1
- package/src/mappings/ActionSheetItem.js +4 -1
- package/src/mappings/ActionSheetItem.ts +4 -1
- package/src/mappings/MapCallout.js +6 -2
- package/src/mappings/MapCallout.ts +6 -2
- package/src/mappings/MapMarker.js +6 -2
- package/src/mappings/MapMarker.ts +6 -2
- package/src/mappings/YoutubePlayer.js +37 -0
- package/src/mappings/YoutubePlayer.ts +43 -0
- package/lib/commonjs/components/Table/Table.js +0 -50
- package/lib/commonjs/components/Table/TableCell.js +0 -49
- package/lib/commonjs/components/Table/TableCommon.js +0 -30
- package/lib/commonjs/components/Table/TableRow.js +0 -57
- package/lib/commonjs/components/Table/index.js +0 -27
- package/lib/commonjs/mappings/Table.js +0 -143
- package/lib/module/components/Table/Table.js +0 -42
- package/lib/module/components/Table/TableCell.js +0 -41
- package/lib/module/components/Table/TableCommon.js +0 -21
- package/lib/module/components/Table/TableRow.js +0 -49
- package/lib/module/components/Table/index.js +0 -3
- package/lib/module/mappings/Table.js +0 -136
- package/lib/typescript/src/components/Table/Table.d.ts +0 -13
- package/lib/typescript/src/components/Table/Table.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts +0 -9
- package/lib/typescript/src/components/Table/TableCell.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/TableCommon.d.ts +0 -20
- package/lib/typescript/src/components/Table/TableCommon.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts +0 -9
- package/lib/typescript/src/components/Table/TableRow.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/index.d.ts +0 -4
- package/lib/typescript/src/components/Table/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Table.d.ts +0 -314
- package/lib/typescript/src/mappings/Table.d.ts.map +0 -1
- package/src/components/Table/Table.js +0 -25
- package/src/components/Table/Table.tsx +0 -56
- package/src/components/Table/TableCell.js +0 -31
- package/src/components/Table/TableCell.tsx +0 -63
- package/src/components/Table/TableCommon.js +0 -12
- package/src/components/Table/TableCommon.ts +0 -40
- package/src/components/Table/TableRow.js +0 -32
- package/src/components/Table/TableRow.tsx +0 -65
- package/src/components/Table/index.js +0 -3
- package/src/components/Table/index.tsx +0 -3
- package/src/mappings/Table.js +0 -137
- package/src/mappings/Table.ts +0 -161
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export const TableStyleContext = /*#__PURE__*/React.createContext({});
|
|
3
|
-
export function generateBorderStyles(_ref) {
|
|
4
|
-
let {
|
|
5
|
-
borderColor,
|
|
6
|
-
borderWidth,
|
|
7
|
-
borderStyle,
|
|
8
|
-
drawTopBorder,
|
|
9
|
-
drawBottomBorder,
|
|
10
|
-
drawStartBorder,
|
|
11
|
-
drawEndBorder
|
|
12
|
-
} = _ref;
|
|
13
|
-
return {
|
|
14
|
-
borderColor,
|
|
15
|
-
borderStyle,
|
|
16
|
-
borderTopWidth: drawTopBorder ? borderWidth : 0,
|
|
17
|
-
borderBottomWidth: drawBottomBorder ? borderWidth : 0,
|
|
18
|
-
borderStartWidth: drawStartBorder ? borderWidth : 0,
|
|
19
|
-
borderEndWidth: drawEndBorder ? borderWidth : 0
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import { generateBorderStyles, TableStyleContext } from "./TableCommon";
|
|
4
|
-
const TableRow = _ref => {
|
|
5
|
-
let {
|
|
6
|
-
borderWidth,
|
|
7
|
-
borderColor,
|
|
8
|
-
borderStyle,
|
|
9
|
-
drawTopBorder = false,
|
|
10
|
-
drawBottomBorder = true,
|
|
11
|
-
drawStartBorder = true,
|
|
12
|
-
drawEndBorder = false,
|
|
13
|
-
cellVerticalPadding,
|
|
14
|
-
cellHorizontalPadding,
|
|
15
|
-
children,
|
|
16
|
-
style
|
|
17
|
-
} = _ref;
|
|
18
|
-
const parentContextValue = React.useContext(TableStyleContext);
|
|
19
|
-
|
|
20
|
-
//Create context to use and pass to children based on own props or fall back to parent provided context
|
|
21
|
-
const contextValue = {
|
|
22
|
-
borderColor: borderColor || parentContextValue.borderColor,
|
|
23
|
-
borderStyle: borderStyle || parentContextValue.borderStyle,
|
|
24
|
-
borderWidth: borderWidth || parentContextValue.borderWidth,
|
|
25
|
-
cellHorizontalPadding: cellHorizontalPadding || parentContextValue.cellHorizontalPadding,
|
|
26
|
-
cellVerticalPadding: cellVerticalPadding || parentContextValue.cellVerticalPadding
|
|
27
|
-
};
|
|
28
|
-
const borderViewStyle = generateBorderStyles({
|
|
29
|
-
borderColor: contextValue.borderColor,
|
|
30
|
-
borderWidth: contextValue.borderWidth,
|
|
31
|
-
borderStyle: contextValue.borderStyle,
|
|
32
|
-
drawTopBorder,
|
|
33
|
-
drawBottomBorder,
|
|
34
|
-
drawStartBorder,
|
|
35
|
-
drawEndBorder
|
|
36
|
-
});
|
|
37
|
-
return /*#__PURE__*/React.createElement(TableStyleContext.Provider, {
|
|
38
|
-
value: contextValue
|
|
39
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
40
|
-
style: [borderViewStyle, style, styles.cellsContainer]
|
|
41
|
-
}, children));
|
|
42
|
-
};
|
|
43
|
-
const styles = StyleSheet.create({
|
|
44
|
-
cellsContainer: {
|
|
45
|
-
flex: 1,
|
|
46
|
-
flexDirection: "row"
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export default TableRow;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, StylesPanelSections, createColorProp, createStaticBoolProp, createStaticNumberProp, BLOCK_STYLES_SECTIONS, CONTAINER_COMPONENT_STYLES_SECTIONS, createTextEnumProp } from "@draftbit/types";
|
|
2
|
-
const SHARED_SEED_DATA_PROPS = {
|
|
3
|
-
borderWidth: createStaticNumberProp({
|
|
4
|
-
label: "Border Width",
|
|
5
|
-
description: "Specifies the width of the border. Passed down to child Table(Row/Cell) components unless overridden",
|
|
6
|
-
required: false,
|
|
7
|
-
defaultValue: null
|
|
8
|
-
}),
|
|
9
|
-
borderColor: createColorProp({
|
|
10
|
-
label: "Border Color",
|
|
11
|
-
description: "Specifies the color of the border. Passed down to child Table(Row/Cell) components unless overridden",
|
|
12
|
-
defaultValue: null
|
|
13
|
-
}),
|
|
14
|
-
borderStyle: createTextEnumProp({
|
|
15
|
-
label: "Border Style",
|
|
16
|
-
description: "Specifies the style of the border. Passed down to child Table(Row/Cell) components unless overridden",
|
|
17
|
-
options: ["solid", "dotted", "dashed"],
|
|
18
|
-
defaultValue: null
|
|
19
|
-
}),
|
|
20
|
-
drawTopBorder: createStaticBoolProp({
|
|
21
|
-
label: "Draw Top Border",
|
|
22
|
-
description: "Whether to draw the top border at this layer of the Table tree or not",
|
|
23
|
-
defaultValue: false
|
|
24
|
-
}),
|
|
25
|
-
drawBottomBorder: createStaticBoolProp({
|
|
26
|
-
label: "Draw Bottom Border",
|
|
27
|
-
description: "Whether to draw the bottom border at this layer of the Table tree or not",
|
|
28
|
-
defaultValue: false
|
|
29
|
-
}),
|
|
30
|
-
drawStartBorder: createStaticBoolProp({
|
|
31
|
-
label: "Draw Start Border",
|
|
32
|
-
description: "Whether to draw the start border at this layer of the Table tree or not",
|
|
33
|
-
defaultValue: false
|
|
34
|
-
}),
|
|
35
|
-
drawEndBorder: createStaticBoolProp({
|
|
36
|
-
label: "Draw End Border",
|
|
37
|
-
description: "Whether to draw the end border at this layer of the Table tree or not",
|
|
38
|
-
defaultValue: false
|
|
39
|
-
})
|
|
40
|
-
};
|
|
41
|
-
export const SEED_DATA = [{
|
|
42
|
-
name: "Table",
|
|
43
|
-
tag: "Table",
|
|
44
|
-
description: "Top level table container",
|
|
45
|
-
category: COMPONENT_TYPES.table,
|
|
46
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
47
|
-
props: {
|
|
48
|
-
...SHARED_SEED_DATA_PROPS,
|
|
49
|
-
borderWidth: {
|
|
50
|
-
...SHARED_SEED_DATA_PROPS.borderWidth,
|
|
51
|
-
defaultValue: 1
|
|
52
|
-
},
|
|
53
|
-
borderColor: {
|
|
54
|
-
...SHARED_SEED_DATA_PROPS.borderColor,
|
|
55
|
-
defaultValue: "divider"
|
|
56
|
-
},
|
|
57
|
-
borderStyle: {
|
|
58
|
-
...SHARED_SEED_DATA_PROPS.borderStyle,
|
|
59
|
-
defaultValue: "solid"
|
|
60
|
-
},
|
|
61
|
-
drawTopBorder: {
|
|
62
|
-
...SHARED_SEED_DATA_PROPS.drawTopBorder,
|
|
63
|
-
defaultValue: true
|
|
64
|
-
},
|
|
65
|
-
cellVerticalPadding: createStaticNumberProp({
|
|
66
|
-
label: "Cell Vertical Padding",
|
|
67
|
-
description: "Specifies the vertical padding of the cell. Passed down to child Table Row components unless overridden",
|
|
68
|
-
required: false,
|
|
69
|
-
defaultValue: 10
|
|
70
|
-
}),
|
|
71
|
-
cellHorizontalPadding: createStaticNumberProp({
|
|
72
|
-
label: "Cell Horizontal Padding",
|
|
73
|
-
description: "Specifies the horizontal padding of the cell. Passed down to child Table Row components unless overridden",
|
|
74
|
-
required: false,
|
|
75
|
-
defaultValue: 10
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
name: "Table Row",
|
|
80
|
-
tag: "TableRow",
|
|
81
|
-
description: "Table Row container",
|
|
82
|
-
category: COMPONENT_TYPES.table,
|
|
83
|
-
stylesPanelSections: [StylesPanelSections.Background],
|
|
84
|
-
props: {
|
|
85
|
-
...SHARED_SEED_DATA_PROPS,
|
|
86
|
-
drawStartBorder: {
|
|
87
|
-
...SHARED_SEED_DATA_PROPS.drawStartBorder,
|
|
88
|
-
defaultValue: true
|
|
89
|
-
},
|
|
90
|
-
drawBottomBorder: {
|
|
91
|
-
...SHARED_SEED_DATA_PROPS.drawBottomBorder,
|
|
92
|
-
defaultValue: true
|
|
93
|
-
},
|
|
94
|
-
cellVerticalPadding: createStaticNumberProp({
|
|
95
|
-
label: "Cell Vertical Padding",
|
|
96
|
-
description: "Specifies the vertical padding of the cell. Passed down to child Table Cell components unless overridden",
|
|
97
|
-
required: false,
|
|
98
|
-
defaultValue: null
|
|
99
|
-
}),
|
|
100
|
-
cellHorizontalPadding: createStaticNumberProp({
|
|
101
|
-
label: "Cell Horizontal Padding",
|
|
102
|
-
description: "Specifies the horizontal padding of the cell. Passed down to child Table Cell components unless overridden",
|
|
103
|
-
required: false,
|
|
104
|
-
defaultValue: null
|
|
105
|
-
})
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
name: "Table Cell",
|
|
109
|
-
tag: "TableCell",
|
|
110
|
-
description: "Table Cell container",
|
|
111
|
-
category: COMPONENT_TYPES.table,
|
|
112
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS.filter(item => item !== StylesPanelSections.Borders),
|
|
113
|
-
layout: {
|
|
114
|
-
flex: 1,
|
|
115
|
-
flexDirection: "row"
|
|
116
|
-
},
|
|
117
|
-
props: {
|
|
118
|
-
...SHARED_SEED_DATA_PROPS,
|
|
119
|
-
drawEndBorder: {
|
|
120
|
-
...SHARED_SEED_DATA_PROPS.drawEndBorder,
|
|
121
|
-
defaultValue: true
|
|
122
|
-
},
|
|
123
|
-
cellVerticalPadding: createStaticNumberProp({
|
|
124
|
-
label: "Vertical Padding",
|
|
125
|
-
description: "Specifies the vertical padding of the cell",
|
|
126
|
-
required: false,
|
|
127
|
-
defaultValue: null
|
|
128
|
-
}),
|
|
129
|
-
cellHorizontalPadding: createStaticNumberProp({
|
|
130
|
-
label: "Horizontal Padding",
|
|
131
|
-
description: "Specifies the horizontal padding of the cell",
|
|
132
|
-
required: false,
|
|
133
|
-
defaultValue: null
|
|
134
|
-
})
|
|
135
|
-
}
|
|
136
|
-
}];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
import { Theme } from "../../styles/DefaultTheme";
|
|
4
|
-
import { TableProps } from "./TableCommon";
|
|
5
|
-
export interface Props extends TableProps {
|
|
6
|
-
style?: StyleProp<ViewStyle>;
|
|
7
|
-
theme: Theme;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
|
|
10
|
-
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
11
|
-
}> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAEL,UAAU,EAGX,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AAyCD,wBAAgC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
import { TableProps } from "./TableCommon";
|
|
4
|
-
export interface Props extends TableProps {
|
|
5
|
-
style?: StyleProp<ViewStyle>;
|
|
6
|
-
}
|
|
7
|
-
declare const TableCell: React.FC<React.PropsWithChildren<Props>>;
|
|
8
|
-
export default TableCell;
|
|
9
|
-
//# sourceMappingURL=TableCell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAc,MAAM,cAAc,CAAC;AACtE,OAAO,EAEL,UAAU,EAEX,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAyCvD,CAAC;AASF,eAAe,SAAS,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ViewStyle } from "react-native";
|
|
3
|
-
declare type BorderStyle = "solid" | "dotted" | "dashed";
|
|
4
|
-
export declare const TableStyleContext: React.Context<TableStyleProps>;
|
|
5
|
-
export interface TableStyleProps {
|
|
6
|
-
borderWidth?: number;
|
|
7
|
-
borderColor?: string;
|
|
8
|
-
borderStyle?: BorderStyle;
|
|
9
|
-
cellVerticalPadding?: number;
|
|
10
|
-
cellHorizontalPadding?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface TableProps extends TableStyleProps {
|
|
13
|
-
drawTopBorder?: boolean;
|
|
14
|
-
drawBottomBorder?: boolean;
|
|
15
|
-
drawStartBorder?: boolean;
|
|
16
|
-
drawEndBorder?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function generateBorderStyles({ borderColor, borderWidth, borderStyle, drawTopBorder, drawBottomBorder, drawStartBorder, drawEndBorder, }: TableProps): ViewStyle;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=TableCommon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCommon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableCommon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,aAAK,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjD,eAAO,MAAM,iBAAiB,gCAA2C,CAAC;AAE1E,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,GACd,EAAE,UAAU,GAAG,SAAS,CASxB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
import { TableProps } from "./TableCommon";
|
|
4
|
-
export interface Props extends TableProps {
|
|
5
|
-
style?: StyleProp<ViewStyle>;
|
|
6
|
-
}
|
|
7
|
-
declare const TableRow: React.FC<React.PropsWithChildren<Props>>;
|
|
8
|
-
export default TableRow;
|
|
9
|
-
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAc,MAAM,cAAc,CAAC;AACtE,OAAO,EAEL,UAAU,EAGX,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CA0CtD,CAAC;AASF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
export declare const SEED_DATA: ({
|
|
2
|
-
name: string;
|
|
3
|
-
tag: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category: string;
|
|
6
|
-
stylesPanelSections: string[];
|
|
7
|
-
props: {
|
|
8
|
-
borderWidth: {
|
|
9
|
-
defaultValue: number;
|
|
10
|
-
label: string;
|
|
11
|
-
description: string;
|
|
12
|
-
formType: string;
|
|
13
|
-
propType: string;
|
|
14
|
-
group: string;
|
|
15
|
-
editable: boolean;
|
|
16
|
-
required: boolean;
|
|
17
|
-
step: number;
|
|
18
|
-
};
|
|
19
|
-
borderColor: {
|
|
20
|
-
defaultValue: string;
|
|
21
|
-
group: string;
|
|
22
|
-
label: string;
|
|
23
|
-
description: string;
|
|
24
|
-
editable: boolean;
|
|
25
|
-
required: boolean;
|
|
26
|
-
formType: string;
|
|
27
|
-
propType: string;
|
|
28
|
-
};
|
|
29
|
-
borderStyle: {
|
|
30
|
-
defaultValue: string;
|
|
31
|
-
group: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description: string;
|
|
34
|
-
editable: boolean;
|
|
35
|
-
required: boolean;
|
|
36
|
-
formType: string;
|
|
37
|
-
propType: string;
|
|
38
|
-
options: never[];
|
|
39
|
-
};
|
|
40
|
-
drawTopBorder: {
|
|
41
|
-
defaultValue: boolean;
|
|
42
|
-
label: string;
|
|
43
|
-
description: string;
|
|
44
|
-
formType: string;
|
|
45
|
-
propType: string;
|
|
46
|
-
editable: boolean;
|
|
47
|
-
required: boolean;
|
|
48
|
-
group: string;
|
|
49
|
-
};
|
|
50
|
-
cellVerticalPadding: {
|
|
51
|
-
label: string;
|
|
52
|
-
description: string;
|
|
53
|
-
formType: string;
|
|
54
|
-
propType: string;
|
|
55
|
-
group: string;
|
|
56
|
-
defaultValue: null;
|
|
57
|
-
editable: boolean;
|
|
58
|
-
required: boolean;
|
|
59
|
-
step: number;
|
|
60
|
-
};
|
|
61
|
-
cellHorizontalPadding: {
|
|
62
|
-
label: string;
|
|
63
|
-
description: string;
|
|
64
|
-
formType: string;
|
|
65
|
-
propType: string;
|
|
66
|
-
group: string;
|
|
67
|
-
defaultValue: null;
|
|
68
|
-
editable: boolean;
|
|
69
|
-
required: boolean;
|
|
70
|
-
step: number;
|
|
71
|
-
};
|
|
72
|
-
drawBottomBorder: {
|
|
73
|
-
label: string;
|
|
74
|
-
description: string;
|
|
75
|
-
formType: string;
|
|
76
|
-
propType: string;
|
|
77
|
-
defaultValue: boolean;
|
|
78
|
-
editable: boolean;
|
|
79
|
-
required: boolean;
|
|
80
|
-
group: string;
|
|
81
|
-
};
|
|
82
|
-
drawStartBorder: {
|
|
83
|
-
label: string;
|
|
84
|
-
description: string;
|
|
85
|
-
formType: string;
|
|
86
|
-
propType: string;
|
|
87
|
-
defaultValue: boolean;
|
|
88
|
-
editable: boolean;
|
|
89
|
-
required: boolean;
|
|
90
|
-
group: string;
|
|
91
|
-
};
|
|
92
|
-
drawEndBorder: {
|
|
93
|
-
label: string;
|
|
94
|
-
description: string;
|
|
95
|
-
formType: string;
|
|
96
|
-
propType: string;
|
|
97
|
-
defaultValue: boolean;
|
|
98
|
-
editable: boolean;
|
|
99
|
-
required: boolean;
|
|
100
|
-
group: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
layout?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
name: string;
|
|
106
|
-
tag: string;
|
|
107
|
-
description: string;
|
|
108
|
-
category: string;
|
|
109
|
-
stylesPanelSections: string[];
|
|
110
|
-
props: {
|
|
111
|
-
drawStartBorder: {
|
|
112
|
-
defaultValue: boolean;
|
|
113
|
-
label: string;
|
|
114
|
-
description: string;
|
|
115
|
-
formType: string;
|
|
116
|
-
propType: string;
|
|
117
|
-
editable: boolean;
|
|
118
|
-
required: boolean;
|
|
119
|
-
group: string;
|
|
120
|
-
};
|
|
121
|
-
drawBottomBorder: {
|
|
122
|
-
defaultValue: boolean;
|
|
123
|
-
label: string;
|
|
124
|
-
description: string;
|
|
125
|
-
formType: string;
|
|
126
|
-
propType: string;
|
|
127
|
-
editable: boolean;
|
|
128
|
-
required: boolean;
|
|
129
|
-
group: string;
|
|
130
|
-
};
|
|
131
|
-
cellVerticalPadding: {
|
|
132
|
-
label: string;
|
|
133
|
-
description: string;
|
|
134
|
-
formType: string;
|
|
135
|
-
propType: string;
|
|
136
|
-
group: string;
|
|
137
|
-
defaultValue: null;
|
|
138
|
-
editable: boolean;
|
|
139
|
-
required: boolean;
|
|
140
|
-
step: number;
|
|
141
|
-
};
|
|
142
|
-
cellHorizontalPadding: {
|
|
143
|
-
label: string;
|
|
144
|
-
description: string;
|
|
145
|
-
formType: string;
|
|
146
|
-
propType: string;
|
|
147
|
-
group: string;
|
|
148
|
-
defaultValue: null;
|
|
149
|
-
editable: boolean;
|
|
150
|
-
required: boolean;
|
|
151
|
-
step: number;
|
|
152
|
-
};
|
|
153
|
-
borderWidth: {
|
|
154
|
-
label: string;
|
|
155
|
-
description: string;
|
|
156
|
-
formType: string;
|
|
157
|
-
propType: string;
|
|
158
|
-
group: string;
|
|
159
|
-
defaultValue: null;
|
|
160
|
-
editable: boolean;
|
|
161
|
-
required: boolean;
|
|
162
|
-
step: number;
|
|
163
|
-
};
|
|
164
|
-
borderColor: {
|
|
165
|
-
group: string;
|
|
166
|
-
label: string;
|
|
167
|
-
description: string;
|
|
168
|
-
editable: boolean;
|
|
169
|
-
required: boolean;
|
|
170
|
-
defaultValue: null;
|
|
171
|
-
formType: string;
|
|
172
|
-
propType: string;
|
|
173
|
-
};
|
|
174
|
-
borderStyle: {
|
|
175
|
-
group: string;
|
|
176
|
-
label: string;
|
|
177
|
-
description: string;
|
|
178
|
-
editable: boolean;
|
|
179
|
-
required: boolean;
|
|
180
|
-
formType: string;
|
|
181
|
-
propType: string;
|
|
182
|
-
defaultValue: null;
|
|
183
|
-
options: never[];
|
|
184
|
-
};
|
|
185
|
-
drawTopBorder: {
|
|
186
|
-
label: string;
|
|
187
|
-
description: string;
|
|
188
|
-
formType: string;
|
|
189
|
-
propType: string;
|
|
190
|
-
defaultValue: boolean;
|
|
191
|
-
editable: boolean;
|
|
192
|
-
required: boolean;
|
|
193
|
-
group: string;
|
|
194
|
-
};
|
|
195
|
-
drawEndBorder: {
|
|
196
|
-
label: string;
|
|
197
|
-
description: string;
|
|
198
|
-
formType: string;
|
|
199
|
-
propType: string;
|
|
200
|
-
defaultValue: boolean;
|
|
201
|
-
editable: boolean;
|
|
202
|
-
required: boolean;
|
|
203
|
-
group: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
layout?: undefined;
|
|
207
|
-
} | {
|
|
208
|
-
name: string;
|
|
209
|
-
tag: string;
|
|
210
|
-
description: string;
|
|
211
|
-
category: string;
|
|
212
|
-
stylesPanelSections: string[];
|
|
213
|
-
layout: {
|
|
214
|
-
flex: number;
|
|
215
|
-
flexDirection: string;
|
|
216
|
-
};
|
|
217
|
-
props: {
|
|
218
|
-
drawEndBorder: {
|
|
219
|
-
defaultValue: boolean;
|
|
220
|
-
label: string;
|
|
221
|
-
description: string;
|
|
222
|
-
formType: string;
|
|
223
|
-
propType: string;
|
|
224
|
-
editable: boolean;
|
|
225
|
-
required: boolean;
|
|
226
|
-
group: string;
|
|
227
|
-
};
|
|
228
|
-
cellVerticalPadding: {
|
|
229
|
-
label: string;
|
|
230
|
-
description: string;
|
|
231
|
-
formType: string;
|
|
232
|
-
propType: string;
|
|
233
|
-
group: string;
|
|
234
|
-
defaultValue: null;
|
|
235
|
-
editable: boolean;
|
|
236
|
-
required: boolean;
|
|
237
|
-
step: number;
|
|
238
|
-
};
|
|
239
|
-
cellHorizontalPadding: {
|
|
240
|
-
label: string;
|
|
241
|
-
description: string;
|
|
242
|
-
formType: string;
|
|
243
|
-
propType: string;
|
|
244
|
-
group: string;
|
|
245
|
-
defaultValue: null;
|
|
246
|
-
editable: boolean;
|
|
247
|
-
required: boolean;
|
|
248
|
-
step: number;
|
|
249
|
-
};
|
|
250
|
-
borderWidth: {
|
|
251
|
-
label: string;
|
|
252
|
-
description: string;
|
|
253
|
-
formType: string;
|
|
254
|
-
propType: string;
|
|
255
|
-
group: string;
|
|
256
|
-
defaultValue: null;
|
|
257
|
-
editable: boolean;
|
|
258
|
-
required: boolean;
|
|
259
|
-
step: number;
|
|
260
|
-
};
|
|
261
|
-
borderColor: {
|
|
262
|
-
group: string;
|
|
263
|
-
label: string;
|
|
264
|
-
description: string;
|
|
265
|
-
editable: boolean;
|
|
266
|
-
required: boolean;
|
|
267
|
-
defaultValue: null;
|
|
268
|
-
formType: string;
|
|
269
|
-
propType: string;
|
|
270
|
-
};
|
|
271
|
-
borderStyle: {
|
|
272
|
-
group: string;
|
|
273
|
-
label: string;
|
|
274
|
-
description: string;
|
|
275
|
-
editable: boolean;
|
|
276
|
-
required: boolean;
|
|
277
|
-
formType: string;
|
|
278
|
-
propType: string;
|
|
279
|
-
defaultValue: null;
|
|
280
|
-
options: never[];
|
|
281
|
-
};
|
|
282
|
-
drawTopBorder: {
|
|
283
|
-
label: string;
|
|
284
|
-
description: string;
|
|
285
|
-
formType: string;
|
|
286
|
-
propType: string;
|
|
287
|
-
defaultValue: boolean;
|
|
288
|
-
editable: boolean;
|
|
289
|
-
required: boolean;
|
|
290
|
-
group: string;
|
|
291
|
-
};
|
|
292
|
-
drawBottomBorder: {
|
|
293
|
-
label: string;
|
|
294
|
-
description: string;
|
|
295
|
-
formType: string;
|
|
296
|
-
propType: string;
|
|
297
|
-
defaultValue: boolean;
|
|
298
|
-
editable: boolean;
|
|
299
|
-
required: boolean;
|
|
300
|
-
group: string;
|
|
301
|
-
};
|
|
302
|
-
drawStartBorder: {
|
|
303
|
-
label: string;
|
|
304
|
-
description: string;
|
|
305
|
-
formType: string;
|
|
306
|
-
propType: string;
|
|
307
|
-
defaultValue: boolean;
|
|
308
|
-
editable: boolean;
|
|
309
|
-
required: boolean;
|
|
310
|
-
group: string;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
})[];
|
|
314
|
-
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Table.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsGrB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ScrollView } from "react-native";
|
|
3
|
-
import { withTheme } from "../../theming";
|
|
4
|
-
import { generateBorderStyles, TableStyleContext, } from "./TableCommon";
|
|
5
|
-
const Table = ({ theme, borderWidth = 1, borderColor = theme.colors.divider, borderStyle = "solid", drawTopBorder = true, drawBottomBorder = false, drawStartBorder = false, drawEndBorder = false, cellVerticalPadding = 10, cellHorizontalPadding = 10, children, style, }) => {
|
|
6
|
-
const contextValue = {
|
|
7
|
-
borderColor,
|
|
8
|
-
borderStyle,
|
|
9
|
-
borderWidth,
|
|
10
|
-
cellHorizontalPadding,
|
|
11
|
-
cellVerticalPadding,
|
|
12
|
-
};
|
|
13
|
-
const borderViewStyle = generateBorderStyles({
|
|
14
|
-
borderColor,
|
|
15
|
-
borderWidth,
|
|
16
|
-
borderStyle,
|
|
17
|
-
drawTopBorder,
|
|
18
|
-
drawBottomBorder,
|
|
19
|
-
drawStartBorder,
|
|
20
|
-
drawEndBorder,
|
|
21
|
-
});
|
|
22
|
-
return (React.createElement(TableStyleContext.Provider, { value: contextValue },
|
|
23
|
-
React.createElement(ScrollView, { style: [borderViewStyle, style] }, children)));
|
|
24
|
-
};
|
|
25
|
-
export default withTheme(Table);
|