@draftbit/core 46.8.2-feb14e.2 → 46.8.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 (186) hide show
  1. package/lib/commonjs/components/Justification.js +1 -5
  2. package/lib/commonjs/components/ResizeMode.js +1 -5
  3. package/lib/module/components/Justification.js +0 -1
  4. package/lib/module/components/ResizeMode.js +0 -1
  5. package/package.json +4 -5
  6. package/lib/commonjs/mappings/HtmlElements.js +0 -175
  7. package/lib/module/mappings/HtmlElements.js +0 -168
  8. package/lib/typescript/src/mappings/HtmlElements.d.ts +0 -73
  9. package/lib/typescript/src/mappings/HtmlElements.d.ts.map +0 -1
  10. package/src/Provider.js +0 -9
  11. package/src/components/Accordion/AccordionGroup.js +0 -44
  12. package/src/components/Accordion/AccordionItem.js +0 -32
  13. package/src/components/Accordion/index.js +0 -2
  14. package/src/components/ActionSheet/ActionSheet.js +0 -45
  15. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  16. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  17. package/src/components/ActionSheet/index.js +0 -3
  18. package/src/components/AnimatedCircularProgress.js +0 -43
  19. package/src/components/AspectRatio.js +0 -18
  20. package/src/components/AvatarEdit.js +0 -30
  21. package/src/components/Banner.js +0 -109
  22. package/src/components/Button.js +0 -114
  23. package/src/components/Card.js +0 -57
  24. package/src/components/Checkbox/Checkbox.js +0 -62
  25. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  26. package/src/components/Checkbox/CheckboxGroupRow.js +0 -76
  27. package/src/components/Checkbox/CheckboxRow.js +0 -77
  28. package/src/components/Checkbox/context.js +0 -14
  29. package/src/components/Checkbox/index.js +0 -3
  30. package/src/components/CircleImage.js +0 -8
  31. package/src/components/CircularProgress.js +0 -81
  32. package/src/components/Config.js +0 -64
  33. package/src/components/Container.js +0 -43
  34. package/src/components/DatePicker/DatePicker.js +0 -382
  35. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  36. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  37. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  38. package/src/components/DeckSwiper/DeckSwiper.js +0 -65
  39. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  40. package/src/components/DeckSwiper/index.js +0 -2
  41. package/src/components/DeprecatedButton.js +0 -83
  42. package/src/components/DeprecatedCardWrapper.js +0 -18
  43. package/src/components/DeprecatedFAB.js +0 -114
  44. package/src/components/Divider.js +0 -13
  45. package/src/components/Elevation.js +0 -20
  46. package/src/components/FAB.js +0 -46
  47. package/src/components/FieldSearchBarFull.js +0 -53
  48. package/src/components/FormRow.js +0 -19
  49. package/src/components/IconButton.js +0 -35
  50. package/src/components/Image.js +0 -47
  51. package/src/components/Justification.js +0 -1
  52. package/src/components/Layout.js +0 -50
  53. package/src/components/NumberInput.js +0 -49
  54. package/src/components/Picker/Picker.js +0 -266
  55. package/src/components/Picker/PickerComponent.android.js +0 -69
  56. package/src/components/Picker/PickerComponent.ios.js +0 -79
  57. package/src/components/Picker/PickerComponent.web.js +0 -70
  58. package/src/components/Picker/PickerTypes.js +0 -1
  59. package/src/components/Portal/Portal.js +0 -35
  60. package/src/components/Portal/PortalConsumer.js +0 -27
  61. package/src/components/Portal/PortalHost.js +0 -107
  62. package/src/components/Portal/PortalManager.js +0 -32
  63. package/src/components/Pressable.js +0 -12
  64. package/src/components/ProgressBar.js +0 -118
  65. package/src/components/ProgressCircle.js +0 -13
  66. package/src/components/ProgressIndicator.js +0 -27
  67. package/src/components/RadioButton/RadioButton.js +0 -17
  68. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  69. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  70. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  71. package/src/components/RadioButton/context.js +0 -14
  72. package/src/components/RadioButton/index.js +0 -4
  73. package/src/components/ResizeMode.js +0 -1
  74. package/src/components/Row.js +0 -48
  75. package/src/components/RowBodyIcon.js +0 -8
  76. package/src/components/RowHeadlineImageCaption.js +0 -12
  77. package/src/components/RowHeadlineImageIcon.js +0 -14
  78. package/src/components/SVG.js +0 -13
  79. package/src/components/ScreenContainer.js +0 -35
  80. package/src/components/Slider.js +0 -63
  81. package/src/components/StarRating.js +0 -50
  82. package/src/components/StepIndicator.js +0 -346
  83. package/src/components/Stepper.js +0 -41
  84. package/src/components/Surface.js +0 -32
  85. package/src/components/Swiper/Swiper.js +0 -29
  86. package/src/components/Swiper/SwiperItem.js +0 -9
  87. package/src/components/Swiper/index.js +0 -2
  88. package/src/components/Switch.js +0 -56
  89. package/src/components/Text.js +0 -33
  90. package/src/components/TextField.js +0 -428
  91. package/src/components/ToggleButton.js +0 -39
  92. package/src/components/Touchable.js +0 -12
  93. package/src/components/Touchable.web.js +0 -2
  94. package/src/components/Typography.js +0 -36
  95. package/src/components/useAuthState.js +0 -31
  96. package/src/constants.js +0 -10
  97. package/src/hooks.js +0 -12
  98. package/src/index.js +0 -46
  99. package/src/interfaces/Icon.js +0 -8
  100. package/src/mappings/Accordion.js +0 -50
  101. package/src/mappings/AccordionItem.js +0 -17
  102. package/src/mappings/ActionSheet.js +0 -14
  103. package/src/mappings/ActionSheetCancel.js +0 -20
  104. package/src/mappings/ActionSheetItem.js +0 -24
  105. package/src/mappings/ActivityIndicator.js +0 -58
  106. package/src/mappings/AudioPlayer.js +0 -57
  107. package/src/mappings/AvatarEdit.js +0 -38
  108. package/src/mappings/Banner.js +0 -32
  109. package/src/mappings/BlurView.js +0 -42
  110. package/src/mappings/Button.js +0 -116
  111. package/src/mappings/Card.js +0 -52
  112. package/src/mappings/CardBlock.js +0 -123
  113. package/src/mappings/CardContainer.js +0 -104
  114. package/src/mappings/CardContainerRating.js +0 -126
  115. package/src/mappings/CardContainerShortImage.js +0 -120
  116. package/src/mappings/CardInline.js +0 -52
  117. package/src/mappings/Carousel.js +0 -19
  118. package/src/mappings/Checkbox.js +0 -46
  119. package/src/mappings/CheckboxGroup.js +0 -26
  120. package/src/mappings/CheckboxRow.js +0 -61
  121. package/src/mappings/CircleImage.js +0 -25
  122. package/src/mappings/Container.js +0 -30
  123. package/src/mappings/CustomCode.js +0 -8
  124. package/src/mappings/DatePicker.js +0 -182
  125. package/src/mappings/DeckSwiper.js +0 -48
  126. package/src/mappings/DeckSwiperCard.js +0 -16
  127. package/src/mappings/Divider.js +0 -27
  128. package/src/mappings/FAB.js +0 -37
  129. package/src/mappings/Fetch.js +0 -13
  130. package/src/mappings/FieldSearchBarFull.js +0 -50
  131. package/src/mappings/FlashList.js +0 -113
  132. package/src/mappings/FlatList.js +0 -51
  133. package/src/mappings/HeaderLarge.js +0 -29
  134. package/src/mappings/HeaderMedium.js +0 -55
  135. package/src/mappings/HeaderOverline.js +0 -55
  136. package/src/mappings/HtmlElements.js +0 -191
  137. package/src/mappings/HtmlElements.ts +0 -204
  138. package/src/mappings/Icon.js +0 -32
  139. package/src/mappings/IconButton.js +0 -33
  140. package/src/mappings/Image.js +0 -35
  141. package/src/mappings/ImageBackground.js +0 -29
  142. package/src/mappings/KeyboardAvoidingView.js +0 -41
  143. package/src/mappings/KeyboardAwareScrollView.js +0 -50
  144. package/src/mappings/Layout.js +0 -200
  145. package/src/mappings/LinearGradient.js +0 -82
  146. package/src/mappings/MapCallout.js +0 -22
  147. package/src/mappings/MapMarker.js +0 -48
  148. package/src/mappings/MapView.js +0 -142
  149. package/src/mappings/Modal.js +0 -42
  150. package/src/mappings/NumberInput.js +0 -254
  151. package/src/mappings/Picker.js +0 -153
  152. package/src/mappings/ProgressBar.js +0 -101
  153. package/src/mappings/ProgressCircle.js +0 -109
  154. package/src/mappings/ProgressIndicator.js +0 -181
  155. package/src/mappings/RadioButton.js +0 -51
  156. package/src/mappings/RadioButtonGroup.js +0 -17
  157. package/src/mappings/RadioButtonRow.js +0 -42
  158. package/src/mappings/RowBodyIcon.js +0 -75
  159. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  160. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  161. package/src/mappings/SVG.js +0 -20
  162. package/src/mappings/SafeAreaView.js +0 -33
  163. package/src/mappings/ScrollView.js +0 -37
  164. package/src/mappings/Slider.js +0 -60
  165. package/src/mappings/StarRating.js +0 -43
  166. package/src/mappings/Stepper.js +0 -32
  167. package/src/mappings/Surface.js +0 -14
  168. package/src/mappings/Swiper.js +0 -71
  169. package/src/mappings/SwiperItem.js +0 -9
  170. package/src/mappings/Switch.js +0 -81
  171. package/src/mappings/Text.js +0 -251
  172. package/src/mappings/TextArea.js +0 -283
  173. package/src/mappings/TextField.js +0 -400
  174. package/src/mappings/TextInput.js +0 -402
  175. package/src/mappings/ToggleButton.js +0 -50
  176. package/src/mappings/Touchable.js +0 -67
  177. package/src/mappings/Video.js +0 -81
  178. package/src/mappings/View.js +0 -207
  179. package/src/mappings/WebView.js +0 -88
  180. package/src/styles/DarkTheme.js +0 -26
  181. package/src/styles/DefaultTheme.js +0 -111
  182. package/src/styles/fonts.js +0 -62
  183. package/src/styles/overlay.js +0 -60
  184. package/src/styles/shadow.js +0 -51
  185. package/src/theming.js +0 -3
  186. package/src/utilities.js +0 -102
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.8.2-feb14e.2+feb14e8",
3
+ "version": "46.8.2",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -40,9 +40,8 @@
40
40
  "homepage": "https://github.com/draftbit/react-native-jigsaw#readme",
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
- "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.8.2-feb14e.2+feb14e8",
45
- "@expo/html-elements": "^0.3.1",
43
+ "@draftbit/react-theme-provider": "~2.1.1",
44
+ "@draftbit/types": "~46.8.1",
46
45
  "@material-ui/core": "^4.11.0",
47
46
  "@material-ui/pickers": "^3.2.10",
48
47
  "@react-native-community/slider": "4.2.3",
@@ -93,5 +92,5 @@
93
92
  ]
94
93
  ]
95
94
  },
96
- "gitHead": "feb14e87ddf0b82ca481143102a4c2d37989dbc9"
95
+ "gitHead": "418be230820228bdd01314d7757a218c882ff6a5"
97
96
  }
@@ -1,175 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const ELEMENT_SEED_DATA = {
9
- doc_link: "https://www.npmjs.com/package/@expo/html-elements",
10
- code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
11
- packageName: "@expo/html-elements",
12
- stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Effects],
13
- layout: {
14
- margin: 0
15
- },
16
- category: _types.COMPONENT_TYPES.webelement
17
- };
18
- const HEADING_SEED_DATA = {
19
- ...ELEMENT_SEED_DATA,
20
- category: _types.COMPONENT_TYPES.text,
21
- props: {
22
- accessibilityLabel: {
23
- group: _types.GROUPS.accessibility,
24
- name: "accessibilityLabel",
25
- label: "accessibilityLabel",
26
- description: "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
27
- editable: true,
28
- required: false,
29
- formType: _types.FORM_TYPES.string,
30
- propType: _types.PROP_TYPES.STRING,
31
- defaultValue: null
32
- },
33
- selectable: {
34
- group: _types.GROUPS.advanced,
35
- name: "selectable",
36
- label: "selectable",
37
- description: "Lets the user select text, to use the native copy and paste functionality.",
38
- editable: true,
39
- required: false,
40
- formType: _types.FORM_TYPES.boolean,
41
- propType: _types.PROP_TYPES.BOOLEAN,
42
- defaultValue: null
43
- },
44
- children: {
45
- group: _types.GROUPS.data,
46
- label: "Text",
47
- description: "Text",
48
- editable: true,
49
- required: true,
50
- formType: _types.FORM_TYPES.string,
51
- propType: _types.PROP_TYPES.STRING,
52
- defaultValue: "Your Headline Here"
53
- }
54
- }
55
- };
56
- const TEXT_SEED_DATA = {
57
- ...ELEMENT_SEED_DATA,
58
- category: _types.COMPONENT_TYPES.text,
59
- props: {
60
- children: {
61
- group: _types.GROUPS.data,
62
- label: "Text",
63
- description: "Text",
64
- defaultValue: "Your Text Here",
65
- editable: true,
66
- required: true,
67
- formType: _types.FORM_TYPES.string,
68
- propType: _types.PROP_TYPES.STRING
69
- }
70
- }
71
- };
72
- const SEED_DATA = [{
73
- name: "H1",
74
- tag: "H1",
75
- ...HEADING_SEED_DATA
76
- }, {
77
- name: "H2",
78
- tag: "H2",
79
- ...HEADING_SEED_DATA
80
- }, {
81
- name: "H3",
82
- tag: "H3",
83
- ...HEADING_SEED_DATA
84
- }, {
85
- name: "H4",
86
- tag: "H4",
87
- ...HEADING_SEED_DATA
88
- }, {
89
- name: "H5",
90
- tag: "H5",
91
- ...HEADING_SEED_DATA
92
- }, {
93
- name: "H6",
94
- tag: "H6",
95
- ...HEADING_SEED_DATA
96
- }, {
97
- name: "Anchor",
98
- tag: "A",
99
- ...TEXT_SEED_DATA,
100
- props: {
101
- href: (0, _types.createTextProp)({
102
- label: "href",
103
- description: "Specify the URL",
104
- defaultValue: ""
105
- }),
106
- target: {
107
- group: _types.GROUPS.basic,
108
- label: "target",
109
- description: "decide where link should open",
110
- formType: _types.FORM_TYPES.flatArray,
111
- defaultValue: "_blank",
112
- options: ["_blank", "_self", "_parent", "_top"]
113
- }
114
- }
115
- }, {
116
- name: "Paragraph",
117
- tag: "P",
118
- ...TEXT_SEED_DATA,
119
- props: {
120
- // NOTE - Keeping the props commented until we figure out a way to use this props from draftbit side.
121
- // strong: createBoolProp({
122
- // label: "Strong",
123
- // description: "Strong",
124
- // }),
125
- // strike: createBoolProp({
126
- // label: "Strike",
127
- // description: "Strike through",
128
- // }),
129
- // italic: createBoolProp({
130
- // label: "Italic",
131
- // description: "Italic Fonts",
132
- // }),
133
- // bold: createBoolProp({
134
- // label: "Bold",
135
- // description: "Bold",
136
- // }),
137
- }
138
- }, {
139
- name: "Code",
140
- tag: "Code",
141
- ...TEXT_SEED_DATA
142
- }, {
143
- name: "Pre",
144
- tag: "Pre",
145
- ...TEXT_SEED_DATA
146
- }, {
147
- name: "Mark",
148
- tag: "Mark",
149
- ...TEXT_SEED_DATA
150
- }, {
151
- name: "BR",
152
- tag: "BR",
153
- ...TEXT_SEED_DATA
154
- }, {
155
- name: "BlockQuote",
156
- tag: "BlockQuote",
157
- ...TEXT_SEED_DATA
158
- }, {
159
- name: "HR",
160
- tag: "HR",
161
- ...TEXT_SEED_DATA
162
- }, {
163
- name: "Time",
164
- tag: "Time",
165
- ...ELEMENT_SEED_DATA
166
- }, {
167
- name: "UL",
168
- tag: "UL",
169
- ...ELEMENT_SEED_DATA
170
- }, {
171
- name: "LI",
172
- tag: "LI",
173
- ...ELEMENT_SEED_DATA
174
- }];
175
- exports.SEED_DATA = SEED_DATA;
@@ -1,168 +0,0 @@
1
- import { COMPONENT_TYPES, createTextProp, FORM_TYPES, PROP_TYPES, GROUPS, StylesPanelSections } from "@draftbit/types";
2
- const ELEMENT_SEED_DATA = {
3
- doc_link: "https://www.npmjs.com/package/@expo/html-elements",
4
- code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
5
- packageName: "@expo/html-elements",
6
- stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
7
- layout: {
8
- margin: 0
9
- },
10
- category: COMPONENT_TYPES.webelement
11
- };
12
- const HEADING_SEED_DATA = {
13
- ...ELEMENT_SEED_DATA,
14
- category: COMPONENT_TYPES.text,
15
- props: {
16
- accessibilityLabel: {
17
- group: GROUPS.accessibility,
18
- name: "accessibilityLabel",
19
- label: "accessibilityLabel",
20
- description: "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
21
- editable: true,
22
- required: false,
23
- formType: FORM_TYPES.string,
24
- propType: PROP_TYPES.STRING,
25
- defaultValue: null
26
- },
27
- selectable: {
28
- group: GROUPS.advanced,
29
- name: "selectable",
30
- label: "selectable",
31
- description: "Lets the user select text, to use the native copy and paste functionality.",
32
- editable: true,
33
- required: false,
34
- formType: FORM_TYPES.boolean,
35
- propType: PROP_TYPES.BOOLEAN,
36
- defaultValue: null
37
- },
38
- children: {
39
- group: GROUPS.data,
40
- label: "Text",
41
- description: "Text",
42
- editable: true,
43
- required: true,
44
- formType: FORM_TYPES.string,
45
- propType: PROP_TYPES.STRING,
46
- defaultValue: "Your Headline Here"
47
- }
48
- }
49
- };
50
- const TEXT_SEED_DATA = {
51
- ...ELEMENT_SEED_DATA,
52
- category: COMPONENT_TYPES.text,
53
- props: {
54
- children: {
55
- group: GROUPS.data,
56
- label: "Text",
57
- description: "Text",
58
- defaultValue: "Your Text Here",
59
- editable: true,
60
- required: true,
61
- formType: FORM_TYPES.string,
62
- propType: PROP_TYPES.STRING
63
- }
64
- }
65
- };
66
- export const SEED_DATA = [{
67
- name: "H1",
68
- tag: "H1",
69
- ...HEADING_SEED_DATA
70
- }, {
71
- name: "H2",
72
- tag: "H2",
73
- ...HEADING_SEED_DATA
74
- }, {
75
- name: "H3",
76
- tag: "H3",
77
- ...HEADING_SEED_DATA
78
- }, {
79
- name: "H4",
80
- tag: "H4",
81
- ...HEADING_SEED_DATA
82
- }, {
83
- name: "H5",
84
- tag: "H5",
85
- ...HEADING_SEED_DATA
86
- }, {
87
- name: "H6",
88
- tag: "H6",
89
- ...HEADING_SEED_DATA
90
- }, {
91
- name: "Anchor",
92
- tag: "A",
93
- ...TEXT_SEED_DATA,
94
- props: {
95
- href: createTextProp({
96
- label: "href",
97
- description: "Specify the URL",
98
- defaultValue: ""
99
- }),
100
- target: {
101
- group: GROUPS.basic,
102
- label: "target",
103
- description: "decide where link should open",
104
- formType: FORM_TYPES.flatArray,
105
- defaultValue: "_blank",
106
- options: ["_blank", "_self", "_parent", "_top"]
107
- }
108
- }
109
- }, {
110
- name: "Paragraph",
111
- tag: "P",
112
- ...TEXT_SEED_DATA,
113
- props: {
114
- // NOTE - Keeping the props commented until we figure out a way to use this props from draftbit side.
115
- // strong: createBoolProp({
116
- // label: "Strong",
117
- // description: "Strong",
118
- // }),
119
- // strike: createBoolProp({
120
- // label: "Strike",
121
- // description: "Strike through",
122
- // }),
123
- // italic: createBoolProp({
124
- // label: "Italic",
125
- // description: "Italic Fonts",
126
- // }),
127
- // bold: createBoolProp({
128
- // label: "Bold",
129
- // description: "Bold",
130
- // }),
131
- }
132
- }, {
133
- name: "Code",
134
- tag: "Code",
135
- ...TEXT_SEED_DATA
136
- }, {
137
- name: "Pre",
138
- tag: "Pre",
139
- ...TEXT_SEED_DATA
140
- }, {
141
- name: "Mark",
142
- tag: "Mark",
143
- ...TEXT_SEED_DATA
144
- }, {
145
- name: "BR",
146
- tag: "BR",
147
- ...TEXT_SEED_DATA
148
- }, {
149
- name: "BlockQuote",
150
- tag: "BlockQuote",
151
- ...TEXT_SEED_DATA
152
- }, {
153
- name: "HR",
154
- tag: "HR",
155
- ...TEXT_SEED_DATA
156
- }, {
157
- name: "Time",
158
- tag: "Time",
159
- ...ELEMENT_SEED_DATA
160
- }, {
161
- name: "UL",
162
- tag: "UL",
163
- ...ELEMENT_SEED_DATA
164
- }, {
165
- name: "LI",
166
- tag: "LI",
167
- ...ELEMENT_SEED_DATA
168
- }];
@@ -1,73 +0,0 @@
1
- export declare const SEED_DATA: ({
2
- props: {
3
- href: any;
4
- target: {
5
- group: string;
6
- label: string;
7
- description: string;
8
- formType: string;
9
- defaultValue: string;
10
- options: string[];
11
- };
12
- };
13
- category: string;
14
- doc_link: string;
15
- code_link: string;
16
- packageName: string;
17
- stylesPanelSections: string[];
18
- layout: {
19
- margin: number;
20
- };
21
- name: string;
22
- tag: string;
23
- } | {
24
- props: {
25
- href?: undefined;
26
- target?: undefined;
27
- };
28
- category: string;
29
- doc_link: string;
30
- code_link: string;
31
- packageName: string;
32
- stylesPanelSections: string[];
33
- layout: {
34
- margin: number;
35
- };
36
- name: string;
37
- tag: string;
38
- } | {
39
- category: string;
40
- props: {
41
- children: {
42
- group: string;
43
- label: string;
44
- description: string;
45
- defaultValue: string;
46
- editable: boolean;
47
- required: boolean;
48
- formType: string;
49
- propType: string;
50
- };
51
- };
52
- doc_link: string;
53
- code_link: string;
54
- packageName: string;
55
- stylesPanelSections: string[];
56
- layout: {
57
- margin: number;
58
- };
59
- name: string;
60
- tag: string;
61
- } | {
62
- doc_link: string;
63
- code_link: string;
64
- packageName: string;
65
- stylesPanelSections: string[];
66
- layout: {
67
- margin: number;
68
- };
69
- category: string;
70
- name: string;
71
- tag: string;
72
- })[];
73
- //# sourceMappingURL=HtmlElements.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HtmlElements.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HtmlElements.ts"],"names":[],"mappings":"AAmFA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwHrB,CAAC"}
package/src/Provider.js DELETED
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { ThemeProvider } from "./theming";
3
- import PortalHost from "./components/Portal/PortalHost";
4
- export default class Provider extends React.Component {
5
- render() {
6
- return (React.createElement(PortalHost, null,
7
- React.createElement(ThemeProvider, { theme: this.props.theme }, this.props.children)));
8
- }
9
- }
@@ -1,44 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, Pressable, } from "react-native";
3
- import Text from "../Text";
4
- import { withTheme } from "../../theming";
5
- import { extractStyles } from "../../utilities";
6
- const AccordionGroup = ({ label, expanded: expandedProp = false, openColor, closedColor, caretColor: caretColorProp, caretSize = 24, icon, iconSize = 24, style, children, theme, Icon, }) => {
7
- const [expanded, setExpanded] = React.useState(expandedProp);
8
- const { textStyles, viewStyles } = extractStyles(style);
9
- const expandedColor = openColor || theme.colors.primary;
10
- const collapsedColor = closedColor || theme.colors.primary;
11
- const labelColor = expanded ? expandedColor : collapsedColor;
12
- const caretColor = caretColorProp || labelColor;
13
- const handlePressAction = () => {
14
- setExpanded(!expanded);
15
- };
16
- return (React.createElement(React.Fragment, null,
17
- React.createElement(Pressable, { style: [styles.row, viewStyles], onPress: handlePressAction, accessibilityRole: "button" },
18
- icon ? (React.createElement(Icon, { name: icon, size: iconSize, color: labelColor, style: styles.icon })) : null,
19
- React.createElement(View, { style: styles.content },
20
- React.createElement(Text, { selectable: false, style: [
21
- textStyles,
22
- {
23
- color: labelColor,
24
- },
25
- ] }, label)),
26
- React.createElement(Icon, { name: expanded
27
- ? "MaterialIcons/keyboard-arrow-up"
28
- : "MaterialIcons/keyboard-arrow-down", color: caretColor, size: caretSize })),
29
- expanded ? children : null));
30
- };
31
- const styles = StyleSheet.create({
32
- row: {
33
- flexDirection: "row",
34
- alignItems: "center",
35
- },
36
- content: {
37
- flex: 1,
38
- justifyContent: "center",
39
- },
40
- icon: {
41
- marginRight: 8,
42
- },
43
- });
44
- export default withTheme(AccordionGroup);
@@ -1,32 +0,0 @@
1
- import * as React from "react";
2
- import { Pressable, StyleSheet, View, } from "react-native";
3
- import Text from "../Text";
4
- import { extractStyles } from "../../utilities";
5
- import { withTheme } from "../../theming";
6
- const AccordionItem = ({ Icon, icon, label, style, iconColor, theme, ...rest }) => {
7
- const { textStyles, viewStyles } = extractStyles(style);
8
- return (React.createElement(Pressable, { style: [styles.container, viewStyles], ...rest },
9
- React.createElement(View, { style: styles.row },
10
- icon ? (React.createElement(Icon, { name: icon, size: 24, color: iconColor || theme.colors.primary })) : null,
11
- React.createElement(View, { style: [styles.item, styles.content] },
12
- React.createElement(Text, { selectable: false, style: textStyles }, label)))));
13
- };
14
- const styles = StyleSheet.create({
15
- container: {
16
- padding: 8,
17
- },
18
- row: {
19
- flexDirection: "row",
20
- alignItems: "center",
21
- paddingLeft: 8,
22
- },
23
- item: {
24
- marginVertical: 6,
25
- paddingLeft: 8,
26
- },
27
- content: {
28
- flex: 1,
29
- justifyContent: "center",
30
- },
31
- });
32
- export default withTheme(AccordionItem);
@@ -1,2 +0,0 @@
1
- export { default as AccordionGroup } from "./AccordionGroup";
2
- export { default as AccordionItem } from "./AccordionItem";
@@ -1,45 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import Portal from "../Portal/Portal";
4
- import Touchable from "../Touchable";
5
- import ActionSheetCancel from "./ActionSheetCancel";
6
- const ActionSheet = ({ visible = false, onClose, children }) => {
7
- return visible ? (React.createElement(Portal, null,
8
- React.createElement(Touchable, { style: styles.wrapper, onPress: onClose },
9
- React.createElement(View, { style: styles.overlay }),
10
- React.createElement(View, { style: styles.groupWrapper },
11
- React.createElement(View, { style: styles.group }, React.Children.toArray(children).filter((child) => (child === null || child === void 0 ? void 0 : child.type) !== ActionSheetCancel)),
12
- React.createElement(View, { style: styles.group }, React.Children.toArray(children).filter((child) => child.type === ActionSheetCancel)))))) : (React.createElement(React.Fragment, null));
13
- };
14
- const styles = StyleSheet.create({
15
- wrapper: {
16
- flex: 1,
17
- display: "flex",
18
- flexDirection: "column",
19
- },
20
- overlay: {
21
- position: "absolute",
22
- top: 0,
23
- left: 0,
24
- right: 0,
25
- bottom: 0,
26
- backgroundColor: "#000000",
27
- opacity: 0.3,
28
- },
29
- groupWrapper: {
30
- flex: 1,
31
- flexDirection: "column",
32
- justifyContent: "flex-end",
33
- display: "flex",
34
- marginBottom: 25,
35
- },
36
- group: {
37
- display: "flex",
38
- flexDirection: "column",
39
- borderRadius: 10,
40
- marginHorizontal: 7,
41
- marginVertical: 2.5,
42
- overflow: "hidden",
43
- },
44
- });
45
- export default ActionSheet;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import ActionSheetItem from "./ActionSheetItem";
3
- const ActionSheetCancel = ({ label = "Cancel", color, style, onPress, }) => {
4
- return (React.createElement(ActionSheetItem, { label: label, color: color || "#FF453A", style: [style], onPress: onPress }));
5
- };
6
- export default ActionSheetCancel;
@@ -1,30 +0,0 @@
1
- import React from "react";
2
- import { Text, StyleSheet, TouchableOpacity, } from "react-native";
3
- import { extractStyles } from "../../utilities";
4
- const ActionSheetItem = ({ label, style, color, onPress, }) => {
5
- const { textStyles, viewStyles } = extractStyles(style);
6
- return (React.createElement(TouchableOpacity, { activeOpacity: 0.7, style: [styles.wrapper, viewStyles], onPress: onPress },
7
- React.createElement(Text, { style: [styles.label, textStyles, { color }] }, label)));
8
- };
9
- const styles = StyleSheet.create({
10
- wrapper: {
11
- borderBottomWidth: StyleSheet.hairlineWidth,
12
- borderBottomColor: "#CCCCCC",
13
- backgroundColor: "#F1F1F1",
14
- minHeight: 50,
15
- overflow: "hidden",
16
- display: "flex",
17
- justifyContent: "center",
18
- },
19
- label: {
20
- fontSize: 16,
21
- textAlign: "center",
22
- color: "#0A84FF",
23
- fontWeight: "500",
24
- overflow: "hidden",
25
- paddingHorizontal: 20,
26
- paddingVertical: 10,
27
- alignSelf: "center",
28
- },
29
- });
30
- export default ActionSheetItem;
@@ -1,3 +0,0 @@
1
- export { default as ActionSheet } from "./ActionSheet";
2
- export { default as ActionSheetItem } from "./ActionSheetItem";
3
- export { default as ActionSheetCancel } from "./ActionSheetCancel";