@draftbit/core 46.10.1-bdc763.2 → 46.10.2-078a87.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.
Files changed (78) hide show
  1. package/lib/commonjs/components/Picker/Picker.js +13 -3
  2. package/lib/commonjs/index.js +0 -40
  3. package/lib/commonjs/mappings/NativeBase/Layout.js +98 -0
  4. package/lib/module/components/Picker/Picker.js +13 -3
  5. package/lib/module/index.js +0 -4
  6. package/lib/module/mappings/NativeBase/Layout.js +91 -0
  7. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  8. package/lib/typescript/src/index.d.ts +0 -4
  9. package/lib/typescript/src/index.d.ts.map +1 -1
  10. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +97 -0
  11. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  12. package/package.json +3 -3
  13. package/src/components/Picker/Picker.js +12 -3
  14. package/src/components/Picker/Picker.tsx +12 -3
  15. package/src/index.js +0 -4
  16. package/src/index.tsx +0 -5
  17. package/src/mappings/NativeBase/Layout.js +102 -0
  18. package/src/mappings/NativeBase/Layout.ts +117 -0
  19. package/lib/commonjs/components/Row.js +0 -73
  20. package/lib/commonjs/components/RowBodyIcon.js +0 -45
  21. package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -45
  22. package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -51
  23. package/lib/commonjs/components/Table/Table.js +0 -123
  24. package/lib/commonjs/components/Table/TableCell.js +0 -49
  25. package/lib/commonjs/components/Table/TableCommon.js +0 -30
  26. package/lib/commonjs/components/Table/TableRow.js +0 -61
  27. package/lib/commonjs/components/Table/index.js +0 -27
  28. package/lib/commonjs/mappings/Table.js +0 -140
  29. package/lib/module/components/Row.js +0 -63
  30. package/lib/module/components/RowBodyIcon.js +0 -35
  31. package/lib/module/components/RowHeadlineImageCaption.js +0 -35
  32. package/lib/module/components/RowHeadlineImageIcon.js +0 -41
  33. package/lib/module/components/Table/Table.js +0 -114
  34. package/lib/module/components/Table/TableCell.js +0 -41
  35. package/lib/module/components/Table/TableCommon.js +0 -21
  36. package/lib/module/components/Table/TableRow.js +0 -53
  37. package/lib/module/components/Table/index.js +0 -3
  38. package/lib/module/mappings/Table.js +0 -133
  39. package/lib/typescript/src/components/Row.d.ts +0 -21
  40. package/lib/typescript/src/components/Row.d.ts.map +0 -1
  41. package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
  42. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
  43. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
  44. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
  45. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
  46. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
  47. package/lib/typescript/src/components/Table/Table.d.ts +0 -19
  48. package/lib/typescript/src/components/Table/Table.d.ts.map +0 -1
  49. package/lib/typescript/src/components/Table/TableCell.d.ts +0 -9
  50. package/lib/typescript/src/components/Table/TableCell.d.ts.map +0 -1
  51. package/lib/typescript/src/components/Table/TableCommon.d.ts +0 -20
  52. package/lib/typescript/src/components/Table/TableCommon.d.ts.map +0 -1
  53. package/lib/typescript/src/components/Table/TableRow.d.ts +0 -14
  54. package/lib/typescript/src/components/Table/TableRow.d.ts.map +0 -1
  55. package/lib/typescript/src/components/Table/index.d.ts +0 -4
  56. package/lib/typescript/src/components/Table/index.d.ts.map +0 -1
  57. package/lib/typescript/src/mappings/Table.d.ts +0 -337
  58. package/lib/typescript/src/mappings/Table.d.ts.map +0 -1
  59. package/src/components/Row.js +0 -48
  60. package/src/components/Row.tsx +0 -108
  61. package/src/components/RowBodyIcon.js +0 -8
  62. package/src/components/RowBodyIcon.tsx +0 -47
  63. package/src/components/RowHeadlineImageCaption.js +0 -12
  64. package/src/components/RowHeadlineImageCaption.tsx +0 -49
  65. package/src/components/RowHeadlineImageIcon.js +0 -14
  66. package/src/components/RowHeadlineImageIcon.tsx +0 -61
  67. package/src/components/Table/Table.js +0 -93
  68. package/src/components/Table/Table.tsx +0 -176
  69. package/src/components/Table/TableCell.js +0 -31
  70. package/src/components/Table/TableCell.tsx +0 -63
  71. package/src/components/Table/TableCommon.js +0 -12
  72. package/src/components/Table/TableCommon.ts +0 -40
  73. package/src/components/Table/TableRow.js +0 -37
  74. package/src/components/Table/TableRow.tsx +0 -77
  75. package/src/components/Table/index.js +0 -3
  76. package/src/components/Table/index.tsx +0 -3
  77. package/src/mappings/Table.js +0 -150
  78. package/src/mappings/Table.ts +0 -170
@@ -1,133 +0,0 @@
1
- import { COMPONENT_TYPES, StylesPanelSections, createColorProp, createStaticBoolProp, createStaticNumberProp, 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
- cellVerticalPadding: createStaticNumberProp({
41
- label: "Cell Vertical Padding",
42
- description: "Specifies the vertical padding of the cell. Passed down to TableCell components unless overridden",
43
- required: false,
44
- defaultValue: null
45
- }),
46
- cellHorizontalPadding: createStaticNumberProp({
47
- label: "Cell Horizontal Padding",
48
- description: "Specifies the horizontal padding of the cell. Passed down to TableCell components unless overridden",
49
- required: false,
50
- defaultValue: null
51
- })
52
- };
53
- export const SEED_DATA = [{
54
- name: "Table",
55
- tag: "Table",
56
- description: "Top level table container",
57
- category: COMPONENT_TYPES.table,
58
- stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Position, StylesPanelSections.Effects, StylesPanelSections.Background, StylesPanelSections.LayoutSelectedItem],
59
- layout: {
60
- flex: 1
61
- },
62
- props: {
63
- ...SHARED_SEED_DATA_PROPS,
64
- borderWidth: {
65
- ...SHARED_SEED_DATA_PROPS.borderWidth,
66
- defaultValue: 1
67
- },
68
- borderColor: {
69
- ...SHARED_SEED_DATA_PROPS.borderColor,
70
- defaultValue: "divider"
71
- },
72
- borderStyle: {
73
- ...SHARED_SEED_DATA_PROPS.borderStyle,
74
- defaultValue: "solid"
75
- },
76
- drawTopBorder: {
77
- ...SHARED_SEED_DATA_PROPS.drawTopBorder,
78
- defaultValue: true
79
- },
80
- cellVerticalPadding: {
81
- ...SHARED_SEED_DATA_PROPS.cellVerticalPadding,
82
- defaultValue: 10
83
- },
84
- cellHorizontalPadding: {
85
- ...SHARED_SEED_DATA_PROPS.cellHorizontalPadding,
86
- defaultValue: 10
87
- },
88
- showsVerticalScrollIndicator: createStaticBoolProp({
89
- label: "Show Vertical Scroll Indicator",
90
- description: "When true, shows a vertical scroll indicator. The default value is true.",
91
- defaultValue: true
92
- })
93
- }
94
- }, {
95
- name: "Table Row",
96
- tag: "TableRow",
97
- description: "Table Row container",
98
- category: COMPONENT_TYPES.table,
99
- stylesPanelSections: [StylesPanelSections.Background],
100
- props: {
101
- ...SHARED_SEED_DATA_PROPS,
102
- drawStartBorder: {
103
- ...SHARED_SEED_DATA_PROPS.drawStartBorder,
104
- defaultValue: true
105
- },
106
- drawBottomBorder: {
107
- ...SHARED_SEED_DATA_PROPS.drawBottomBorder,
108
- defaultValue: true
109
- },
110
- isTableHeader: createStaticBoolProp({
111
- label: "Header",
112
- description: "Whether this row is a header or not (changes background and sticks while scrolling)",
113
- defaultValue: false
114
- })
115
- }
116
- }, {
117
- name: "Table Cell",
118
- tag: "TableCell",
119
- description: "Table Cell container",
120
- category: COMPONENT_TYPES.table,
121
- stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
122
- layout: {
123
- flex: 1,
124
- flexDirection: "row"
125
- },
126
- props: {
127
- ...SHARED_SEED_DATA_PROPS,
128
- drawEndBorder: {
129
- ...SHARED_SEED_DATA_PROPS.drawEndBorder,
130
- defaultValue: true
131
- }
132
- }
133
- }];
@@ -1,21 +0,0 @@
1
- import * as React from "react";
2
- import { ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from "react-native";
3
- import theme from "../styles/DefaultTheme";
4
- declare type Props = {
5
- titleTypeStyle?: StyleProp<TextStyle>;
6
- titleColor?: string;
7
- subtitleTypeStyle?: StyleProp<TextStyle>;
8
- subtitleColor?: string;
9
- title?: string;
10
- subtitle?: string;
11
- multilineSubtitle?: boolean;
12
- image?: string | ImageSourcePropType;
13
- right?: () => React.ReactNode;
14
- style?: StyleProp<ViewStyle>;
15
- theme: typeof theme;
16
- };
17
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
18
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
19
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
20
- export default _default;
21
- //# sourceMappingURL=Row.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/Row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,mBAAmB,EAEnB,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAgFF,wBAA8B"}
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import type { Theme } from "../styles/DefaultTheme";
3
- import type { IconSlot } from "../interfaces/Icon";
4
- import { StyleProp, ViewStyle } from "react-native";
5
- declare type Props = {
6
- title?: string;
7
- subtitle?: string;
8
- icon: string;
9
- style?: StyleProp<ViewStyle>;
10
- theme: Theme;
11
- } & IconSlot;
12
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
13
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
14
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
15
- export default _default;
16
- //# sourceMappingURL=RowBodyIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowBodyIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/RowBodyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC;;;;AA+Bb,wBAAsC"}
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
3
- import theme from "../styles/DefaultTheme";
4
- declare type Props = {
5
- title?: string;
6
- subtitle?: string;
7
- caption?: string;
8
- image: string | ImageSourcePropType;
9
- style?: StyleProp<ViewStyle>;
10
- theme: typeof theme;
11
- };
12
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
13
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
14
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
15
- export default _default;
16
- //# sourceMappingURL=RowHeadlineImageCaption.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowHeadlineImageCaption.d.ts","sourceRoot":"","sources":["../../../../src/components/RowHeadlineImageCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG/E,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAmCF,wBAAkD"}
@@ -1,18 +0,0 @@
1
- import * as React from "react";
2
- import type { Theme } from "../styles/DefaultTheme";
3
- import type { IconSlot } from "../interfaces/Icon";
4
- import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
5
- declare type Props = {
6
- title?: string;
7
- image: string | ImageSourcePropType;
8
- subtitle?: string;
9
- multilineSubtitle?: boolean;
10
- icon: string;
11
- style?: StyleProp<ViewStyle>;
12
- theme: Theme;
13
- } & IconSlot;
14
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
15
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
16
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
17
- export default _default;
18
- //# sourceMappingURL=RowHeadlineImageIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowHeadlineImageIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/RowHeadlineImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC;;;;AA2Cb,wBAA+C"}
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { StyleProp, ViewStyle, ScrollViewProps } from "react-native";
3
- import { Theme } from "../../styles/DefaultTheme";
4
- import { TableProps } from "./TableCommon";
5
- export interface Props<T> extends TableProps, ScrollViewProps {
6
- data?: Array<T>;
7
- keyExtractor?: (item: T, index: number) => string;
8
- renderItem?: ({ item, index }: {
9
- item: T;
10
- index: number;
11
- }) => JSX.Element;
12
- style?: StyleProp<ViewStyle>;
13
- theme: Theme;
14
- }
15
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props<object>>, "theme"> & {
16
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
17
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props<object>>> & (<T extends object>({ theme, borderWidth, borderColor, borderStyle, drawTopBorder, drawBottomBorder, drawStartBorder, drawEndBorder, cellVerticalPadding, cellHorizontalPadding, data, keyExtractor, renderItem, children: childrenProp, style, ...rest }: React.PropsWithChildren<Props<T>>) => JSX.Element), {}>;
18
- export default _default;
19
- //# 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,EAEL,SAAS,EACT,SAAS,EAGT,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAEL,UAAU,EAGX,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK,CAAC,CAAC,CAAE,SAAQ,UAAU,EAAE,eAAe;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,UAAU,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AAuJD,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,14 +0,0 @@
1
- import React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- import { TableProps } from "./TableCommon";
4
- import { Theme } from "../../styles/DefaultTheme";
5
- export interface Props extends TableProps {
6
- isTableHeader?: boolean;
7
- style?: StyleProp<ViewStyle>;
8
- theme: Theme;
9
- }
10
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
11
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
12
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
13
- export default _default;
14
- //# 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;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA6DD,wBAAmC"}
@@ -1,4 +0,0 @@
1
- export { default as Table } from "./Table";
2
- export { default as TableRow } from "./TableRow";
3
- export { default as TableCell } from "./TableCell";
4
- //# sourceMappingURL=index.d.ts.map
@@ -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,337 +0,0 @@
1
- export declare const SEED_DATA: ({
2
- name: string;
3
- tag: string;
4
- description: string;
5
- category: string;
6
- stylesPanelSections: string[];
7
- layout: {
8
- flex: number;
9
- flexDirection?: undefined;
10
- };
11
- props: {
12
- borderWidth: {
13
- defaultValue: number;
14
- label: string;
15
- description: string;
16
- formType: string;
17
- propType: string;
18
- group: string;
19
- editable: boolean;
20
- required: boolean;
21
- step: number;
22
- };
23
- borderColor: {
24
- defaultValue: string;
25
- group: string;
26
- label: string;
27
- description: string;
28
- editable: boolean;
29
- required: boolean;
30
- formType: string;
31
- propType: string;
32
- };
33
- borderStyle: {
34
- defaultValue: string;
35
- group: string;
36
- label: string;
37
- description: string;
38
- editable: boolean;
39
- required: boolean;
40
- formType: string;
41
- propType: string;
42
- options: never[];
43
- };
44
- drawTopBorder: {
45
- defaultValue: boolean;
46
- label: string;
47
- description: string;
48
- formType: string;
49
- propType: string;
50
- editable: boolean;
51
- required: boolean;
52
- group: string;
53
- };
54
- cellVerticalPadding: {
55
- defaultValue: number;
56
- label: string;
57
- description: string;
58
- formType: string;
59
- propType: string;
60
- group: string;
61
- editable: boolean;
62
- required: boolean;
63
- step: number;
64
- };
65
- cellHorizontalPadding: {
66
- defaultValue: number;
67
- label: string;
68
- description: string;
69
- formType: string;
70
- propType: string;
71
- group: string;
72
- editable: boolean;
73
- required: boolean;
74
- step: number;
75
- };
76
- showsVerticalScrollIndicator: {
77
- label: string;
78
- description: string;
79
- formType: string;
80
- propType: string;
81
- defaultValue: boolean;
82
- editable: boolean;
83
- required: boolean;
84
- group: string;
85
- };
86
- drawBottomBorder: {
87
- label: string;
88
- description: string;
89
- formType: string;
90
- propType: string;
91
- defaultValue: boolean;
92
- editable: boolean;
93
- required: boolean;
94
- group: string;
95
- };
96
- drawStartBorder: {
97
- label: string;
98
- description: string;
99
- formType: string;
100
- propType: string;
101
- defaultValue: boolean;
102
- editable: boolean;
103
- required: boolean;
104
- group: string;
105
- };
106
- drawEndBorder: {
107
- label: string;
108
- description: string;
109
- formType: string;
110
- propType: string;
111
- defaultValue: boolean;
112
- editable: boolean;
113
- required: boolean;
114
- group: string;
115
- };
116
- };
117
- } | {
118
- name: string;
119
- tag: string;
120
- description: string;
121
- category: string;
122
- stylesPanelSections: string[];
123
- props: {
124
- drawStartBorder: {
125
- defaultValue: boolean;
126
- label: string;
127
- description: string;
128
- formType: string;
129
- propType: string;
130
- editable: boolean;
131
- required: boolean;
132
- group: string;
133
- };
134
- drawBottomBorder: {
135
- defaultValue: boolean;
136
- label: string;
137
- description: string;
138
- formType: string;
139
- propType: string;
140
- editable: boolean;
141
- required: boolean;
142
- group: string;
143
- };
144
- isTableHeader: {
145
- label: string;
146
- description: string;
147
- formType: string;
148
- propType: string;
149
- defaultValue: boolean;
150
- editable: boolean;
151
- required: boolean;
152
- group: string;
153
- };
154
- borderWidth: {
155
- label: string;
156
- description: string;
157
- formType: string;
158
- propType: string;
159
- group: string;
160
- defaultValue: null;
161
- editable: boolean;
162
- required: boolean;
163
- step: number;
164
- };
165
- borderColor: {
166
- group: string;
167
- label: string;
168
- description: string;
169
- editable: boolean;
170
- required: boolean;
171
- defaultValue: null;
172
- formType: string;
173
- propType: string;
174
- };
175
- borderStyle: {
176
- group: string;
177
- label: string;
178
- description: string;
179
- editable: boolean;
180
- required: boolean;
181
- formType: string;
182
- propType: string;
183
- defaultValue: null;
184
- options: never[];
185
- };
186
- drawTopBorder: {
187
- label: string;
188
- description: string;
189
- formType: string;
190
- propType: string;
191
- defaultValue: boolean;
192
- editable: boolean;
193
- required: boolean;
194
- group: string;
195
- };
196
- drawEndBorder: {
197
- label: string;
198
- description: string;
199
- formType: string;
200
- propType: string;
201
- defaultValue: boolean;
202
- editable: boolean;
203
- required: boolean;
204
- group: string;
205
- };
206
- cellVerticalPadding: {
207
- label: string;
208
- description: string;
209
- formType: string;
210
- propType: string;
211
- group: string;
212
- defaultValue: null;
213
- editable: boolean;
214
- required: boolean;
215
- step: number;
216
- };
217
- cellHorizontalPadding: {
218
- label: string;
219
- description: string;
220
- formType: string;
221
- propType: string;
222
- group: string;
223
- defaultValue: null;
224
- editable: boolean;
225
- required: boolean;
226
- step: number;
227
- };
228
- };
229
- layout?: undefined;
230
- } | {
231
- name: string;
232
- tag: string;
233
- description: string;
234
- category: string;
235
- stylesPanelSections: string[];
236
- layout: {
237
- flex: number;
238
- flexDirection: string;
239
- };
240
- props: {
241
- drawEndBorder: {
242
- defaultValue: boolean;
243
- label: string;
244
- description: string;
245
- formType: string;
246
- propType: string;
247
- editable: boolean;
248
- required: boolean;
249
- group: string;
250
- };
251
- borderWidth: {
252
- label: string;
253
- description: string;
254
- formType: string;
255
- propType: string;
256
- group: string;
257
- defaultValue: null;
258
- editable: boolean;
259
- required: boolean;
260
- step: number;
261
- };
262
- borderColor: {
263
- group: string;
264
- label: string;
265
- description: string;
266
- editable: boolean;
267
- required: boolean;
268
- defaultValue: null;
269
- formType: string;
270
- propType: string;
271
- };
272
- borderStyle: {
273
- group: string;
274
- label: string;
275
- description: string;
276
- editable: boolean;
277
- required: boolean;
278
- formType: string;
279
- propType: string;
280
- defaultValue: null;
281
- options: never[];
282
- };
283
- drawTopBorder: {
284
- label: string;
285
- description: string;
286
- formType: string;
287
- propType: string;
288
- defaultValue: boolean;
289
- editable: boolean;
290
- required: boolean;
291
- group: string;
292
- };
293
- drawBottomBorder: {
294
- label: string;
295
- description: string;
296
- formType: string;
297
- propType: string;
298
- defaultValue: boolean;
299
- editable: boolean;
300
- required: boolean;
301
- group: string;
302
- };
303
- drawStartBorder: {
304
- label: string;
305
- description: string;
306
- formType: string;
307
- propType: string;
308
- defaultValue: boolean;
309
- editable: boolean;
310
- required: boolean;
311
- group: string;
312
- };
313
- cellVerticalPadding: {
314
- label: string;
315
- description: string;
316
- formType: string;
317
- propType: string;
318
- group: string;
319
- defaultValue: null;
320
- editable: boolean;
321
- required: boolean;
322
- step: number;
323
- };
324
- cellHorizontalPadding: {
325
- label: string;
326
- description: string;
327
- formType: string;
328
- propType: string;
329
- group: string;
330
- defaultValue: null;
331
- editable: boolean;
332
- required: boolean;
333
- step: number;
334
- };
335
- };
336
- })[];
337
- //# sourceMappingURL=Table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Table.ts"],"names":[],"mappings":"AAsEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmGrB,CAAC"}