ferns-ui 0.35.0 → 0.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/package.json +35 -34
  2. package/src/Common.ts +0 -1
  3. package/src/Field.tsx +1 -2
  4. package/src/Modal.tsx +18 -19
  5. package/src/SegmentedControl.tsx +6 -1
  6. package/src/TapToEdit.tsx +3 -1
  7. package/updateDeps.js +14 -0
  8. package/dist/ActionSheet.d.ts +0 -492
  9. package/dist/ActionSheet.js +0 -649
  10. package/dist/ActionSheet.js.map +0 -1
  11. package/dist/Avatar.d.ts +0 -68
  12. package/dist/Avatar.js +0 -152
  13. package/dist/Avatar.js.map +0 -1
  14. package/dist/Badge.d.ts +0 -10
  15. package/dist/Badge.js +0 -36
  16. package/dist/Badge.js.map +0 -1
  17. package/dist/Banner.d.ts +0 -27
  18. package/dist/Banner.js +0 -56
  19. package/dist/Banner.js.map +0 -1
  20. package/dist/BlurBox.d.ts +0 -5
  21. package/dist/BlurBox.js +0 -28
  22. package/dist/BlurBox.js.map +0 -1
  23. package/dist/BlurBox.native.d.ts +0 -6
  24. package/dist/BlurBox.native.js +0 -30
  25. package/dist/BlurBox.native.js.map +0 -1
  26. package/dist/Body.d.ts +0 -6
  27. package/dist/Body.js +0 -21
  28. package/dist/Body.js.map +0 -1
  29. package/dist/Box.d.ts +0 -3
  30. package/dist/Box.js +0 -251
  31. package/dist/Box.js.map +0 -1
  32. package/dist/Button.d.ts +0 -26
  33. package/dist/Button.js +0 -120
  34. package/dist/Button.js.map +0 -1
  35. package/dist/Card.d.ts +0 -5
  36. package/dist/Card.js +0 -8
  37. package/dist/Card.js.map +0 -1
  38. package/dist/CheckBox.d.ts +0 -3
  39. package/dist/CheckBox.js +0 -40
  40. package/dist/CheckBox.js.map +0 -1
  41. package/dist/Common.d.ts +0 -869
  42. package/dist/Common.js +0 -46
  43. package/dist/Common.js.map +0 -1
  44. package/dist/Constants.d.ts +0 -4
  45. package/dist/Constants.js +0 -54
  46. package/dist/Constants.js.map +0 -1
  47. package/dist/CustomSelect.d.ts +0 -14
  48. package/dist/CustomSelect.js +0 -43
  49. package/dist/CustomSelect.js.map +0 -1
  50. package/dist/DateTimeActionSheet.d.ts +0 -12
  51. package/dist/DateTimeActionSheet.js +0 -248
  52. package/dist/DateTimeActionSheet.js.map +0 -1
  53. package/dist/DateTimeField.android.d.ts +0 -3
  54. package/dist/DateTimeField.android.js +0 -66
  55. package/dist/DateTimeField.android.js.map +0 -1
  56. package/dist/DateTimeField.d.ts +0 -3
  57. package/dist/DateTimeField.ios.d.ts +0 -3
  58. package/dist/DateTimeField.ios.js +0 -48
  59. package/dist/DateTimeField.ios.js.map +0 -1
  60. package/dist/DateTimeField.js +0 -35
  61. package/dist/DateTimeField.js.map +0 -1
  62. package/dist/DecimalRangeActionSheet.d.ts +0 -18
  63. package/dist/DecimalRangeActionSheet.js +0 -65
  64. package/dist/DecimalRangeActionSheet.js.map +0 -1
  65. package/dist/ErrorBoundary.d.ts +0 -19
  66. package/dist/ErrorBoundary.js +0 -29
  67. package/dist/ErrorBoundary.js.map +0 -1
  68. package/dist/ErrorPage.d.ts +0 -10
  69. package/dist/ErrorPage.js +0 -20
  70. package/dist/ErrorPage.js.map +0 -1
  71. package/dist/FernsProvider.d.ts +0 -4
  72. package/dist/FernsProvider.js +0 -9
  73. package/dist/FernsProvider.js.map +0 -1
  74. package/dist/Field.d.ts +0 -17
  75. package/dist/Field.js +0 -114
  76. package/dist/Field.js.map +0 -1
  77. package/dist/FieldWithLabels.d.ts +0 -3
  78. package/dist/FieldWithLabels.js +0 -8
  79. package/dist/FieldWithLabels.js.map +0 -1
  80. package/dist/FlatList.d.ts +0 -2
  81. package/dist/FlatList.js +0 -3
  82. package/dist/FlatList.js.map +0 -1
  83. package/dist/Form.d.ts +0 -22
  84. package/dist/Form.js +0 -89
  85. package/dist/Form.js.map +0 -1
  86. package/dist/HeaderButtons.d.ts +0 -31
  87. package/dist/HeaderButtons.js +0 -53
  88. package/dist/HeaderButtons.js.map +0 -1
  89. package/dist/Heading.d.ts +0 -11
  90. package/dist/Heading.js +0 -46
  91. package/dist/Heading.js.map +0 -1
  92. package/dist/HeightActionSheet.d.ts +0 -16
  93. package/dist/HeightActionSheet.js +0 -58
  94. package/dist/HeightActionSheet.js.map +0 -1
  95. package/dist/Hyperlink.d.ts +0 -43
  96. package/dist/Hyperlink.js +0 -135
  97. package/dist/Hyperlink.js.map +0 -1
  98. package/dist/Icon.d.ts +0 -4
  99. package/dist/Icon.js +0 -14
  100. package/dist/Icon.js.map +0 -1
  101. package/dist/IconButton.d.ts +0 -26
  102. package/dist/IconButton.js +0 -78
  103. package/dist/IconButton.js.map +0 -1
  104. package/dist/Image.d.ts +0 -8
  105. package/dist/Image.js +0 -37
  106. package/dist/Image.js.map +0 -1
  107. package/dist/ImageBackground.d.ts +0 -10
  108. package/dist/ImageBackground.js +0 -8
  109. package/dist/ImageBackground.js.map +0 -1
  110. package/dist/InfoTooltipButton.d.ts +0 -8
  111. package/dist/InfoTooltipButton.js +0 -6
  112. package/dist/InfoTooltipButton.js.map +0 -1
  113. package/dist/Layer.d.ts +0 -9
  114. package/dist/Layer.js +0 -12
  115. package/dist/Layer.js.map +0 -1
  116. package/dist/Link.d.ts +0 -9
  117. package/dist/Link.js +0 -12
  118. package/dist/Link.js.map +0 -1
  119. package/dist/Mask.d.ts +0 -2
  120. package/dist/Mask.js +0 -19
  121. package/dist/Mask.js.map +0 -1
  122. package/dist/MediaQuery.d.ts +0 -4
  123. package/dist/MediaQuery.js +0 -52
  124. package/dist/MediaQuery.js.map +0 -1
  125. package/dist/Meta.d.ts +0 -5
  126. package/dist/Meta.js +0 -7
  127. package/dist/Meta.js.map +0 -1
  128. package/dist/Modal.d.ts +0 -19
  129. package/dist/Modal.js +0 -101
  130. package/dist/Modal.js.map +0 -1
  131. package/dist/ModalSheet.d.ts +0 -7
  132. package/dist/ModalSheet.js +0 -42
  133. package/dist/ModalSheet.js.map +0 -1
  134. package/dist/NumberPickerActionSheet.d.ts +0 -16
  135. package/dist/NumberPickerActionSheet.js +0 -29
  136. package/dist/NumberPickerActionSheet.js.map +0 -1
  137. package/dist/Page.d.ts +0 -26
  138. package/dist/Page.js +0 -38
  139. package/dist/Page.js.map +0 -1
  140. package/dist/Permissions.d.ts +0 -2
  141. package/dist/Permissions.js +0 -35
  142. package/dist/Permissions.js.map +0 -1
  143. package/dist/PickerSelect.d.ts +0 -109
  144. package/dist/PickerSelect.js +0 -296
  145. package/dist/PickerSelect.js.map +0 -1
  146. package/dist/Pill.d.ts +0 -5
  147. package/dist/Pill.js +0 -10
  148. package/dist/Pill.js.map +0 -1
  149. package/dist/Pog.d.ts +0 -15
  150. package/dist/Pog.js +0 -48
  151. package/dist/Pog.js.map +0 -1
  152. package/dist/ProgressBar.d.ts +0 -9
  153. package/dist/ProgressBar.js +0 -41
  154. package/dist/ProgressBar.js.map +0 -1
  155. package/dist/ScrollView.d.ts +0 -2
  156. package/dist/ScrollView.js +0 -3
  157. package/dist/ScrollView.js.map +0 -1
  158. package/dist/SegmentedControl.d.ts +0 -3
  159. package/dist/SegmentedControl.js +0 -55
  160. package/dist/SegmentedControl.js.map +0 -1
  161. package/dist/SelectList.d.ts +0 -18
  162. package/dist/SelectList.js +0 -48
  163. package/dist/SelectList.js.map +0 -1
  164. package/dist/SideDrawer.d.ts +0 -13
  165. package/dist/SideDrawer.js +0 -22
  166. package/dist/SideDrawer.js.map +0 -1
  167. package/dist/Spinner.d.ts +0 -3
  168. package/dist/Spinner.js +0 -16
  169. package/dist/Spinner.js.map +0 -1
  170. package/dist/SplitPage.d.ts +0 -3
  171. package/dist/SplitPage.js +0 -149
  172. package/dist/SplitPage.js.map +0 -1
  173. package/dist/SplitPage.native.d.ts +0 -3
  174. package/dist/SplitPage.native.js +0 -79
  175. package/dist/SplitPage.native.js.map +0 -1
  176. package/dist/Switch.d.ts +0 -5
  177. package/dist/Switch.js +0 -10
  178. package/dist/Switch.js.map +0 -1
  179. package/dist/Table.d.ts +0 -30
  180. package/dist/Table.js +0 -31
  181. package/dist/Table.js.map +0 -1
  182. package/dist/TableHeader.d.ts +0 -22
  183. package/dist/TableHeader.js +0 -11
  184. package/dist/TableHeader.js.map +0 -1
  185. package/dist/TableHeaderCell.d.ts +0 -15
  186. package/dist/TableHeaderCell.js +0 -36
  187. package/dist/TableHeaderCell.js.map +0 -1
  188. package/dist/TableRow.d.ts +0 -29
  189. package/dist/TableRow.js +0 -30
  190. package/dist/TableRow.js.map +0 -1
  191. package/dist/TapToEdit.d.ts +0 -19
  192. package/dist/TapToEdit.js +0 -136
  193. package/dist/TapToEdit.js.map +0 -1
  194. package/dist/Text.d.ts +0 -19
  195. package/dist/Text.js +0 -91
  196. package/dist/Text.js.map +0 -1
  197. package/dist/TextArea.d.ts +0 -6
  198. package/dist/TextArea.js +0 -24
  199. package/dist/TextArea.js.map +0 -1
  200. package/dist/TextField.d.ts +0 -3
  201. package/dist/TextField.js +0 -260
  202. package/dist/TextField.js.map +0 -1
  203. package/dist/TextFieldNumberActionSheet.d.ts +0 -15
  204. package/dist/TextFieldNumberActionSheet.js +0 -28
  205. package/dist/TextFieldNumberActionSheet.js.map +0 -1
  206. package/dist/Toast.d.ts +0 -12
  207. package/dist/Toast.js +0 -46
  208. package/dist/Toast.js.map +0 -1
  209. package/dist/Tooltip.d.ts +0 -9
  210. package/dist/Tooltip.js +0 -174
  211. package/dist/Tooltip.js.map +0 -1
  212. package/dist/UnifiedScreens.d.ts +0 -9
  213. package/dist/UnifiedScreens.js +0 -25
  214. package/dist/UnifiedScreens.js.map +0 -1
  215. package/dist/Unifier.d.ts +0 -45
  216. package/dist/Unifier.js +0 -291
  217. package/dist/Unifier.js.map +0 -1
  218. package/dist/Utilities.d.ts +0 -31
  219. package/dist/Utilities.js +0 -73
  220. package/dist/Utilities.js.map +0 -1
  221. package/dist/WithLabel.d.ts +0 -14
  222. package/dist/WithLabel.js +0 -15
  223. package/dist/WithLabel.js.map +0 -1
  224. package/dist/dayjsExtended.d.ts +0 -2
  225. package/dist/dayjsExtended.js +0 -9
  226. package/dist/dayjsExtended.js.map +0 -1
  227. package/dist/index.d.ts +0 -1299
  228. package/dist/index.js.map +0 -1
  229. package/dist/tableContext.d.ts +0 -21
  230. package/dist/tableContext.js +0 -35
  231. package/dist/tableContext.js.map +0 -1
package/dist/Common.d.ts DELETED
@@ -1,869 +0,0 @@
1
- import React, { ReactElement, ReactNode, SyntheticEvent } from "react";
2
- import { ListRenderItemInfo } from "react-native";
3
- export interface BaseProfile {
4
- email: string;
5
- id: string;
6
- backOffice: {
7
- testUser?: boolean;
8
- };
9
- }
10
- export interface TrackingConfig {
11
- MIXPANEL_TOKEN: string;
12
- SENTRY_WEB_DSN: string;
13
- SENTRY_MOBILE_DSN: string;
14
- USER_PROPERTY_KEYS: string[];
15
- }
16
- export interface IConfig extends TrackingConfig {
17
- FEEDBACK_URL: string;
18
- PRIVACY_POLICY_URL: string;
19
- PROFILE_COLLECTION: string;
20
- TERMS_URL: string;
21
- BASE_URL: string;
22
- PRODUCTION: boolean;
23
- primaryLighterColor: string;
24
- primaryLightColor: string;
25
- primaryColor: string;
26
- primaryDarkColor: string;
27
- primaryDarkerColor: string;
28
- secondaryLighterColor: string;
29
- secondaryLightColor: string;
30
- secondaryColor: string;
31
- secondaryDarkColor: string;
32
- secondaryDarkerColor: string;
33
- accentLighterColor: string;
34
- accentLightColor: string;
35
- accentColor: string;
36
- accentDarkColor: string;
37
- accentDarkerColor: string;
38
- tertiaryLighterColor: string;
39
- tertiaryLightColor: string;
40
- tertiaryColor: string;
41
- tertiaryDarkColor: string;
42
- tertiaryDarkerColor: string;
43
- neutral900: string;
44
- neutral800: string;
45
- neutral700: string;
46
- neutral600: string;
47
- neutral500: string;
48
- neutral400: string;
49
- neutral300: string;
50
- neutral200: string;
51
- neutral100: string;
52
- neutral90: string;
53
- neutral80: string;
54
- neutral70: string;
55
- neutral60: string;
56
- neutral50: string;
57
- neutral40: string;
58
- neutral30: string;
59
- neutral20: string;
60
- neutral10: string;
61
- }
62
- export interface UnifiedTheme {
63
- blue: string;
64
- darkGray: string;
65
- eggplant: string;
66
- gray: string;
67
- green: string;
68
- springGreen: string;
69
- lightGray: string;
70
- maroon: string;
71
- midnight: string;
72
- navy: string;
73
- olive: string;
74
- orange: string;
75
- orchid: string;
76
- pine: string;
77
- purple: string;
78
- red: string;
79
- watermelon: string;
80
- white: string;
81
- black: string;
82
- primaryLighter: string;
83
- primaryLight: string;
84
- primary: string;
85
- primaryDark: string;
86
- primaryDarker: string;
87
- secondaryLighter: string;
88
- secondaryLight: string;
89
- secondary: string;
90
- secondaryDark: string;
91
- secondaryDarker: string;
92
- accentLighter: string;
93
- accentLight: string;
94
- accent: string;
95
- accentDark: string;
96
- accentDarker: string;
97
- tertiaryLighter: string;
98
- tertiaryLight: string;
99
- tertiary: string;
100
- tertiaryDark: string;
101
- tertiaryDarker: string;
102
- neutral900: string;
103
- neutral800: string;
104
- neutral700: string;
105
- neutral600: string;
106
- neutral500: string;
107
- neutral400: string;
108
- neutral300: string;
109
- neutral200: string;
110
- neutral100: string;
111
- neutral90: string;
112
- neutral80: string;
113
- neutral70: string;
114
- neutral60: string;
115
- neutral50: string;
116
- neutral40: string;
117
- neutral30: string;
118
- neutral20: string;
119
- neutral10: string;
120
- primaryFont: string;
121
- primaryBoldFont: string;
122
- secondaryFont: string;
123
- secondaryBoldFont: string;
124
- buttonFont: string;
125
- accentFont: string;
126
- accentBoldFont: string;
127
- titleFont: string;
128
- }
129
- export type Font = "primary" | "primaryBold" | "secondary" | "secondaryBold" | "accent" | "accentBold" | "title" | "button";
130
- export type Direction = "up" | "right" | "down" | "left";
131
- export type Color = "blue" | "darkGray" | "eggplant" | "gray" | "green" | "springGreen" | "lightGray" | "maroon" | "midnight" | "navy" | "olive" | "orange" | "orchid" | "pine" | "purple" | "red" | "watermelon" | "white" | "black";
132
- export type ThemeColor = "primaryLighter" | "primaryLight" | "primary" | "primaryDark" | "primaryDarker" | "secondaryLighter" | "secondaryLight" | "secondary" | "secondaryDark" | "secondaryDarker" | "tertiaryLighter" | "tertiaryLight" | "tertiary" | "tertiaryDark" | "tertiaryDarker" | "accentLighter" | "accentLight" | "accent" | "accentDark" | "accentDarker";
133
- export type NeutralColor = "neutral900" | "neutral800" | "neutral700" | "neutral600" | "neutral500" | "neutral400" | "neutral300" | "neutral200" | "neutral100" | "neutral90" | "neutral80" | "neutral70" | "neutral60" | "neutral50" | "neutral40" | "neutral30" | "neutral20" | "neutral10";
134
- export type AllColors = Color | ThemeColor | NeutralColor;
135
- export interface OnChangeResult {
136
- event?: SyntheticEvent<any>;
137
- value: string;
138
- }
139
- export type OnChangeCallback = (result: OnChangeResult) => void;
140
- export type IconName = FontAwesome5IconName;
141
- export type FontAwesome5IconName = "500px" | "accessible-icon" | "accusoft" | "acquisitions-incorporated" | "ad" | "address-book" | "address-card" | "adjust" | "adn" | "adversal" | "affiliatetheme" | "air-freshener" | "airbnb" | "algolia" | "align-center" | "align-justify" | "align-left" | "align-right" | "alipay" | "allergies" | "amazon" | "amazon-pay" | "ambulance" | "american-sign-language-interpreting" | "amilia" | "anchor" | "android" | "angellist" | "angle-double-down" | "angle-double-left" | "angle-double-right" | "angle-double-up" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "angry" | "angrycreative" | "angular" | "ankh" | "app-store" | "app-store-ios" | "apper" | "apple" | "apple-alt" | "apple-pay" | "archive" | "archway" | "arrow-alt-circle-down" | "arrow-alt-circle-left" | "arrow-alt-circle-right" | "arrow-alt-circle-up" | "arrow-circle-down" | "arrow-circle-left" | "arrow-circle-right" | "arrow-circle-up" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "arrows-alt" | "arrows-alt-h" | "arrows-alt-v" | "artstation" | "assistive-listening-systems" | "asterisk" | "asymmetrik" | "at" | "atlas" | "atlassian" | "atom" | "audible" | "audio-description" | "autoprefixer" | "avianex" | "aviato" | "award" | "aws" | "baby" | "baby-carriage" | "backspace" | "backward" | "bacon" | "bacteria" | "bacterium" | "bahai" | "balance-scale" | "balance-scale-left" | "balance-scale-right" | "ban" | "band-aid" | "bandcamp" | "barcode" | "bars" | "baseball-ball" | "basketball-ball" | "bath" | "battery-empty" | "battery-full" | "battery-half" | "battery-quarter" | "battery-three-quarters" | "battle-net" | "bed" | "beer" | "behance" | "behance-square" | "bell" | "bell-slash" | "bezier-curve" | "bible" | "bicycle" | "biking" | "bimobject" | "binoculars" | "biohazard" | "birthday-cake" | "bitbucket" | "bitcoin" | "bity" | "black-tie" | "blackberry" | "blender" | "blender-phone" | "blind" | "blog" | "blogger" | "blogger-b" | "bluetooth" | "bluetooth-b" | "bold" | "bolt" | "bomb" | "bone" | "bong" | "book" | "book-dead" | "book-medical" | "book-open" | "book-reader" | "bookmark" | "bootstrap" | "border-all" | "border-none" | "border-style" | "bowling-ball" | "box" | "box-open" | "box-tissue" | "boxes" | "braille" | "brain" | "bread-slice" | "briefcase" | "briefcase-medical" | "broadcast-tower" | "broom" | "brush" | "btc" | "buffer" | "bug" | "building" | "bullhorn" | "bullseye" | "burn" | "buromobelexperte" | "bus" | "bus-alt" | "business-time" | "buy-n-large" | "buysellads" | "calculator" | "calendar" | "calendar-alt" | "calendar-check" | "calendar-day" | "calendar-minus" | "calendar-plus" | "calendar-times" | "calendar-week" | "camera" | "camera-retro" | "campground" | "canadian-maple-leaf" | "candy-cane" | "cannabis" | "capsules" | "car" | "car-alt" | "car-battery" | "car-crash" | "car-side" | "caravan" | "caret-down" | "caret-left" | "caret-right" | "caret-square-down" | "caret-square-left" | "caret-square-right" | "caret-square-up" | "caret-up" | "carrot" | "cart-arrow-down" | "cart-plus" | "cash-register" | "cat" | "cc-amazon-pay" | "cc-amex" | "cc-apple-pay" | "cc-diners-club" | "cc-discover" | "cc-jcb" | "cc-mastercard" | "cc-paypal" | "cc-stripe" | "cc-visa" | "centercode" | "centos" | "certificate" | "chair" | "chalkboard" | "chalkboard-teacher" | "charging-station" | "chart-area" | "chart-bar" | "chart-line" | "chart-pie" | "check" | "check-circle" | "check-double" | "check-square" | "cheese" | "chess" | "chess-bishop" | "chess-board" | "chess-king" | "chess-knight" | "chess-pawn" | "chess-queen" | "chess-rook" | "chevron-circle-down" | "chevron-circle-left" | "chevron-circle-right" | "chevron-circle-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "child" | "chrome" | "chromecast" | "church" | "circle" | "circle-notch" | "city" | "clinic-medical" | "clipboard" | "clipboard-check" | "clipboard-list" | "clock" | "clone" | "closed-captioning" | "cloud" | "cloud-download-alt" | "cloud-meatball" | "cloud-moon" | "cloud-moon-rain" | "cloud-rain" | "cloud-showers-heavy" | "cloud-sun" | "cloud-sun-rain" | "cloud-upload-alt" | "cloudflare" | "cloudscale" | "cloudsmith" | "cloudversify" | "cocktail" | "code" | "code-branch" | "codepen" | "codiepie" | "coffee" | "cog" | "cogs" | "coins" | "columns" | "comment" | "comment-alt" | "comment-dollar" | "comment-dots" | "comment-medical" | "comment-slash" | "comments" | "comments-dollar" | "compact-disc" | "compass" | "compress" | "compress-alt" | "compress-arrows-alt" | "concierge-bell" | "confluence" | "connectdevelop" | "contao" | "cookie" | "cookie-bite" | "copy" | "copyright" | "cotton-bureau" | "couch" | "cpanel" | "creative-commons" | "creative-commons-by" | "creative-commons-nc" | "creative-commons-nc-eu" | "creative-commons-nc-jp" | "creative-commons-nd" | "creative-commons-pd" | "creative-commons-pd-alt" | "creative-commons-remix" | "creative-commons-sa" | "creative-commons-sampling" | "creative-commons-sampling-plus" | "creative-commons-share" | "creative-commons-zero" | "credit-card" | "critical-role" | "crop" | "crop-alt" | "cross" | "crosshairs" | "crow" | "crown" | "crutch" | "css3" | "css3-alt" | "cube" | "cubes" | "cut" | "cuttlefish" | "d-and-d" | "d-and-d-beyond" | "dailymotion" | "dashcube" | "database" | "deaf" | "deezer" | "delicious" | "democrat" | "deploydog" | "deskpro" | "desktop" | "dev" | "deviantart" | "dharmachakra" | "dhl" | "diagnoses" | "diaspora" | "dice" | "dice-d20" | "dice-d6" | "dice-five" | "dice-four" | "dice-one" | "dice-six" | "dice-three" | "dice-two" | "digg" | "digital-ocean" | "digital-tachograph" | "directions" | "discord" | "discourse" | "disease" | "divide" | "dizzy" | "dna" | "dochub" | "docker" | "dog" | "dollar-sign" | "dolly" | "dolly-flatbed" | "donate" | "door-closed" | "door-open" | "dot-circle" | "dove" | "download" | "draft2digital" | "drafting-compass" | "dragon" | "draw-polygon" | "dribbble" | "dribbble-square" | "dropbox" | "drum" | "drum-steelpan" | "drumstick-bite" | "drupal" | "dumbbell" | "dumpster" | "dumpster-fire" | "dungeon" | "dyalog" | "earlybirds" | "ebay" | "edge" | "edge-legacy" | "edit" | "egg" | "eject" | "elementor" | "ellipsis-h" | "ellipsis-v" | "ello" | "ember" | "empire" | "envelope" | "envelope-open" | "envelope-open-text" | "envelope-square" | "envira" | "equals" | "eraser" | "erlang" | "ethereum" | "ethernet" | "etsy" | "euro-sign" | "evernote" | "exchange-alt" | "exclamation" | "exclamation-circle" | "exclamation-triangle" | "expand" | "expand-alt" | "expand-arrows-alt" | "expeditedssl" | "external-link-alt" | "external-link-square-alt" | "eye" | "eye-dropper" | "eye-slash" | "facebook" | "facebook-f" | "facebook-messenger" | "facebook-square" | "fan" | "fantasy-flight-games" | "fast-backward" | "fast-forward" | "faucet" | "fax" | "feather" | "feather-alt" | "fedex" | "fedora" | "female" | "fighter-jet" | "figma" | "file" | "file-alt" | "file-archive" | "file-audio" | "file-code" | "file-contract" | "file-csv" | "file-download" | "file-excel" | "file-export" | "file-image" | "file-import" | "file-invoice" | "file-invoice-dollar" | "file-medical" | "file-medical-alt" | "file-pdf" | "file-powerpoint" | "file-prescription" | "file-signature" | "file-upload" | "file-video" | "file-word" | "fill" | "fill-drip" | "film" | "filter" | "fingerprint" | "fire" | "fire-alt" | "fire-extinguisher" | "firefox" | "firefox-browser" | "first-aid" | "first-order" | "first-order-alt" | "firstdraft" | "fish" | "fist-raised" | "flag" | "flag-checkered" | "flag-usa" | "flask" | "flickr" | "flipboard" | "flushed" | "fly" | "folder" | "folder-minus" | "folder-open" | "folder-plus" | "font" | "font-awesome" | "font-awesome-alt" | "font-awesome-flag" | "font-awesome-logo-full" | "fonticons" | "fonticons-fi" | "football-ball" | "fort-awesome" | "fort-awesome-alt" | "forumbee" | "forward" | "foursquare" | "free-code-camp" | "freebsd" | "frog" | "frown" | "frown-open" | "fulcrum" | "funnel-dollar" | "futbol" | "galactic-republic" | "galactic-senate" | "gamepad" | "gas-pump" | "gavel" | "gem" | "genderless" | "get-pocket" | "gg" | "gg-circle" | "ghost" | "gift" | "gifts" | "git" | "git-alt" | "git-square" | "github" | "github-alt" | "github-square" | "gitkraken" | "gitlab" | "gitter" | "glass-cheers" | "glass-martini" | "glass-martini-alt" | "glass-whiskey" | "glasses" | "glide" | "glide-g" | "globe" | "globe-africa" | "globe-americas" | "globe-asia" | "globe-europe" | "gofore" | "golf-ball" | "goodreads" | "goodreads-g" | "google" | "google-drive" | "google-pay" | "google-play" | "google-plus" | "google-plus-g" | "google-plus-square" | "google-wallet" | "gopuram" | "graduation-cap" | "gratipay" | "grav" | "greater-than" | "greater-than-equal" | "grimace" | "grin" | "grin-alt" | "grin-beam" | "grin-beam-sweat" | "grin-hearts" | "grin-squint" | "grin-squint-tears" | "grin-stars" | "grin-tears" | "grin-tongue" | "grin-tongue-squint" | "grin-tongue-wink" | "grin-wink" | "grip-horizontal" | "grip-lines" | "grip-lines-vertical" | "grip-vertical" | "gripfire" | "grunt" | "guilded" | "guitar" | "gulp" | "h-square" | "hacker-news" | "hacker-news-square" | "hackerrank" | "hamburger" | "hammer" | "hamsa" | "hand-holding" | "hand-holding-heart" | "hand-holding-medical" | "hand-holding-usd" | "hand-holding-water" | "hand-lizard" | "hand-middle-finger" | "hand-paper" | "hand-peace" | "hand-point-down" | "hand-point-left" | "hand-point-right" | "hand-point-up" | "hand-pointer" | "hand-rock" | "hand-scissors" | "hand-sparkles" | "hand-spock" | "hands" | "hands-helping" | "hands-wash" | "handshake" | "handshake-alt-slash" | "handshake-slash" | "hanukiah" | "hard-hat" | "hashtag" | "hat-cowboy" | "hat-cowboy-side" | "hat-wizard" | "hdd" | "head-side-cough" | "head-side-cough-slash" | "head-side-mask" | "head-side-virus" | "heading" | "headphones" | "headphones-alt" | "headset" | "heart" | "heart-broken" | "heartbeat" | "helicopter" | "highlighter" | "hiking" | "hippo" | "hips" | "hire-a-helper" | "history" | "hive" | "hockey-puck" | "holly-berry" | "home" | "hooli" | "hornbill" | "horse" | "horse-head" | "hospital" | "hospital-alt" | "hospital-symbol" | "hospital-user" | "hot-tub" | "hotdog" | "hotel" | "hotjar" | "hourglass" | "hourglass-end" | "hourglass-half" | "hourglass-start" | "house-damage" | "house-user" | "houzz" | "hryvnia" | "html5" | "hubspot" | "i-cursor" | "ice-cream" | "icicles" | "icons" | "id-badge" | "id-card" | "id-card-alt" | "ideal" | "igloo" | "image" | "images" | "imdb" | "inbox" | "indent" | "industry" | "infinity" | "info" | "info-circle" | "innosoft" | "instagram" | "instagram-square" | "instalod" | "intercom" | "internet-explorer" | "invision" | "ioxhost" | "italic" | "itch-io" | "itunes" | "itunes-note" | "java" | "jedi" | "jedi-order" | "jenkins" | "jira" | "joget" | "joint" | "joomla" | "journal-whills" | "js" | "js-square" | "jsfiddle" | "kaaba" | "kaggle" | "key" | "keybase" | "keyboard" | "keycdn" | "khanda" | "kickstarter" | "kickstarter-k" | "kiss" | "kiss-beam" | "kiss-wink-heart" | "kiwi-bird" | "korvue" | "landmark" | "language" | "laptop" | "laptop-code" | "laptop-house" | "laptop-medical" | "laravel" | "lastfm" | "lastfm-square" | "laugh" | "laugh-beam" | "laugh-squint" | "laugh-wink" | "layer-group" | "leaf" | "leanpub" | "lemon" | "less" | "less-than" | "less-than-equal" | "level-down-alt" | "level-up-alt" | "life-ring" | "lightbulb" | "line" | "link" | "linkedin" | "linkedin-in" | "linode" | "linux" | "lira-sign" | "list" | "list-alt" | "list-ol" | "list-ul" | "location-arrow" | "lock" | "lock-open" | "long-arrow-alt-down" | "long-arrow-alt-left" | "long-arrow-alt-right" | "long-arrow-alt-up" | "low-vision" | "luggage-cart" | "lungs" | "lungs-virus" | "lyft" | "magento" | "magic" | "magnet" | "mail-bulk" | "mailchimp" | "male" | "mandalorian" | "map" | "map-marked" | "map-marked-alt" | "map-marker" | "map-marker-alt" | "map-pin" | "map-signs" | "markdown" | "marker" | "mars" | "mars-double" | "mars-stroke" | "mars-stroke-h" | "mars-stroke-v" | "mask" | "mastodon" | "maxcdn" | "mdb" | "medal" | "medapps" | "medium" | "medium-m" | "medkit" | "medrt" | "meetup" | "megaport" | "meh" | "meh-blank" | "meh-rolling-eyes" | "memory" | "mendeley" | "menorah" | "mercury" | "meteor" | "microblog" | "microchip" | "microphone" | "microphone-alt" | "microphone-alt-slash" | "microphone-slash" | "microscope" | "microsoft" | "minus" | "minus-circle" | "minus-square" | "mitten" | "mix" | "mixcloud" | "mixer" | "mizuni" | "mobile" | "mobile-alt" | "modx" | "monero" | "money-bill" | "money-bill-alt" | "money-bill-wave" | "money-bill-wave-alt" | "money-check" | "money-check-alt" | "monument" | "moon" | "mortar-pestle" | "mosque" | "motorcycle" | "mountain" | "mouse" | "mouse-pointer" | "mug-hot" | "music" | "napster" | "neos" | "network-wired" | "neuter" | "newspaper" | "nimblr" | "node" | "node-js" | "not-equal" | "notes-medical" | "npm" | "ns8" | "nutritionix" | "object-group" | "object-ungroup" | "octopus-deploy" | "odnoklassniki" | "odnoklassniki-square" | "oil-can" | "old-republic" | "om" | "opencart" | "openid" | "opera" | "optin-monster" | "orcid" | "osi" | "otter" | "outdent" | "page4" | "pagelines" | "pager" | "paint-brush" | "paint-roller" | "palette" | "palfed" | "pallet" | "paper-plane" | "paperclip" | "parachute-box" | "paragraph" | "parking" | "passport" | "pastafarianism" | "paste" | "patreon" | "pause" | "pause-circle" | "paw" | "paypal" | "peace" | "pen" | "pen-alt" | "pen-fancy" | "pen-nib" | "pen-square" | "pencil-alt" | "pencil-ruler" | "penny-arcade" | "people-arrows" | "people-carry" | "pepper-hot" | "perbyte" | "percent" | "percentage" | "periscope" | "person-booth" | "phabricator" | "phoenix-framework" | "phoenix-squadron" | "phone" | "phone-alt" | "phone-slash" | "phone-square" | "phone-square-alt" | "phone-volume" | "photo-video" | "php" | "pied-piper" | "pied-piper-alt" | "pied-piper-hat" | "pied-piper-pp" | "pied-piper-square" | "piggy-bank" | "pills" | "pinterest" | "pinterest-p" | "pinterest-square" | "pizza-slice" | "place-of-worship" | "plane" | "plane-arrival" | "plane-departure" | "plane-slash" | "play" | "play-circle" | "playstation" | "plug" | "plus" | "plus-circle" | "plus-square" | "podcast" | "poll" | "poll-h" | "poo" | "poo-storm" | "poop" | "portrait" | "pound-sign" | "power-off" | "pray" | "praying-hands" | "prescription" | "prescription-bottle" | "prescription-bottle-alt" | "print" | "procedures" | "product-hunt" | "project-diagram" | "pump-medical" | "pump-soap" | "pushed" | "puzzle-piece" | "python" | "qq" | "qrcode" | "question" | "question-circle" | "quidditch" | "quinscape" | "quora" | "quote-left" | "quote-right" | "quran" | "r-project" | "radiation" | "radiation-alt" | "rainbow" | "random" | "raspberry-pi" | "ravelry" | "react" | "reacteurope" | "readme" | "rebel" | "receipt" | "record-vinyl" | "recycle" | "red-river" | "reddit" | "reddit-alien" | "reddit-square" | "redhat" | "redo" | "redo-alt" | "registered" | "remove-format" | "renren" | "reply" | "reply-all" | "replyd" | "republican" | "researchgate" | "resolving" | "restroom" | "retweet" | "rev" | "ribbon" | "ring" | "road" | "robot" | "rocket" | "rocketchat" | "rockrms" | "route" | "rss" | "rss-square" | "ruble-sign" | "ruler" | "ruler-combined" | "ruler-horizontal" | "ruler-vertical" | "running" | "rupee-sign" | "rust" | "sad-cry" | "sad-tear" | "safari" | "salesforce" | "sass" | "satellite" | "satellite-dish" | "save" | "schlix" | "school" | "screwdriver" | "scribd" | "scroll" | "sd-card" | "search" | "search-dollar" | "search-location" | "search-minus" | "search-plus" | "searchengin" | "seedling" | "sellcast" | "sellsy" | "server" | "servicestack" | "shapes" | "share" | "share-alt" | "share-alt-square" | "share-square" | "shekel-sign" | "shield-alt" | "shield-virus" | "ship" | "shipping-fast" | "shirtsinbulk" | "shoe-prints" | "shopify" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shopware" | "shower" | "shuttle-van" | "sign" | "sign-in-alt" | "sign-language" | "sign-out-alt" | "signal" | "signature" | "sim-card" | "simplybuilt" | "sink" | "sistrix" | "sitemap" | "sith" | "skating" | "sketch" | "skiing" | "skiing-nordic" | "skull" | "skull-crossbones" | "skyatlas" | "skype" | "slack" | "slack-hash" | "slash" | "sleigh" | "sliders-h" | "slideshare" | "smile" | "smile-beam" | "smile-wink" | "smog" | "smoking" | "smoking-ban" | "sms" | "snapchat" | "snapchat-ghost" | "snapchat-square" | "snowboarding" | "snowflake" | "snowman" | "snowplow" | "soap" | "socks" | "solar-panel" | "sort" | "sort-alpha-down" | "sort-alpha-down-alt" | "sort-alpha-up" | "sort-alpha-up-alt" | "sort-amount-down" | "sort-amount-down-alt" | "sort-amount-up" | "sort-amount-up-alt" | "sort-down" | "sort-numeric-down" | "sort-numeric-down-alt" | "sort-numeric-up" | "sort-numeric-up-alt" | "sort-up" | "soundcloud" | "sourcetree" | "spa" | "space-shuttle" | "speakap" | "speaker-deck" | "spell-check" | "spider" | "spinner" | "splotch" | "spotify" | "spray-can" | "square" | "square-full" | "square-root-alt" | "squarespace" | "stack-exchange" | "stack-overflow" | "stackpath" | "stamp" | "star" | "star-and-crescent" | "star-half" | "star-half-alt" | "star-of-david" | "star-of-life" | "staylinked" | "steam" | "steam-square" | "steam-symbol" | "step-backward" | "step-forward" | "stethoscope" | "sticker-mule" | "sticky-note" | "stop" | "stop-circle" | "stopwatch" | "stopwatch-20" | "store" | "store-alt" | "store-alt-slash" | "store-slash" | "strava" | "stream" | "street-view" | "strikethrough" | "stripe" | "stripe-s" | "stroopwafel" | "studiovinari" | "stumbleupon" | "stumbleupon-circle" | "subscript" | "subway" | "suitcase" | "suitcase-rolling" | "sun" | "superpowers" | "superscript" | "supple" | "surprise" | "suse" | "swatchbook" | "swift" | "swimmer" | "swimming-pool" | "symfony" | "synagogue" | "sync" | "sync-alt" | "syringe" | "table" | "table-tennis" | "tablet" | "tablet-alt" | "tablets" | "tachometer-alt" | "tag" | "tags" | "tape" | "tasks" | "taxi" | "teamspeak" | "teeth" | "teeth-open" | "telegram" | "telegram-plane" | "temperature-high" | "temperature-low" | "tencent-weibo" | "tenge" | "terminal" | "text-height" | "text-width" | "th" | "th-large" | "th-list" | "the-red-yeti" | "theater-masks" | "themeco" | "themeisle" | "thermometer" | "thermometer-empty" | "thermometer-full" | "thermometer-half" | "thermometer-quarter" | "thermometer-three-quarters" | "think-peaks" | "thumbs-down" | "thumbs-up" | "thumbtack" | "ticket-alt" | "tiktok" | "times" | "times-circle" | "tint" | "tint-slash" | "tired" | "toggle-off" | "toggle-on" | "toilet" | "toilet-paper" | "toilet-paper-slash" | "toolbox" | "tools" | "tooth" | "torah" | "torii-gate" | "tractor" | "trade-federation" | "trademark" | "traffic-light" | "trailer" | "train" | "tram" | "transgender" | "transgender-alt" | "trash" | "trash-alt" | "trash-restore" | "trash-restore-alt" | "tree" | "trello" | "tripadvisor" | "trophy" | "truck" | "truck-loading" | "truck-monster" | "truck-moving" | "truck-pickup" | "tshirt" | "tty" | "tumblr" | "tumblr-square" | "tv" | "twitch" | "twitter" | "twitter-square" | "typo3" | "uber" | "ubuntu" | "uikit" | "umbraco" | "umbrella" | "umbrella-beach" | "uncharted" | "underline" | "undo" | "undo-alt" | "uniregistry" | "unity" | "universal-access" | "university" | "unlink" | "unlock" | "unlock-alt" | "unsplash" | "untappd" | "upload" | "ups" | "usb" | "user" | "user-alt" | "user-alt-slash" | "user-astronaut" | "user-check" | "user-circle" | "user-clock" | "user-cog" | "user-edit" | "user-friends" | "user-graduate" | "user-injured" | "user-lock" | "user-md" | "user-minus" | "user-ninja" | "user-nurse" | "user-plus" | "user-secret" | "user-shield" | "user-slash" | "user-tag" | "user-tie" | "user-times" | "users" | "users-cog" | "users-slash" | "usps" | "ussunnah" | "utensil-spoon" | "utensils" | "vaadin" | "vector-square" | "venus" | "venus-double" | "venus-mars" | "vest" | "vest-patches" | "viacoin" | "viadeo" | "viadeo-square" | "vial" | "vials" | "viber" | "video" | "video-slash" | "vihara" | "vimeo" | "vimeo-square" | "vimeo-v" | "vine" | "virus" | "virus-slash" | "viruses" | "vk" | "vnv" | "voicemail" | "volleyball-ball" | "volume-down" | "volume-mute" | "volume-off" | "volume-up" | "vote-yea" | "vr-cardboard" | "vuejs" | "walking" | "wallet" | "warehouse" | "watchman-monitoring" | "water" | "wave-square" | "waze" | "weebly" | "weibo" | "weight" | "weight-hanging" | "weixin" | "whatsapp" | "whatsapp-square" | "wheelchair" | "whmcs" | "wifi" | "wikipedia-w" | "wind" | "window-close" | "window-maximize" | "window-minimize" | "window-restore" | "windows" | "wine-bottle" | "wine-glass" | "wine-glass-alt" | "wix" | "wizards-of-the-coast" | "wodu" | "wolf-pack-battalion" | "won-sign" | "wordpress" | "wordpress-simple" | "wpbeginner" | "wpexplorer" | "wpforms" | "wpressr" | "wrench" | "x-ray" | "xbox" | "xing" | "xing-square" | "y-combinator" | "yahoo" | "yammer" | "yandex" | "yandex-international" | "yarn" | "yelp" | "yen-sign" | "yin-yang" | "yoast" | "youtube" | "youtube-square" | "zhihu";
142
- export type AlignContent = "start" | "end" | "center" | "between" | "around" | "stretch";
143
- export type AlignSelf = "auto" | "start" | "end" | "center" | "baseline" | "stretch";
144
- export type AlignItems = "start" | "end" | "center" | "baseline" | "stretch";
145
- export type JustifyContent = "start" | "end" | "center" | "between" | "around";
146
- export type UnsignedUpTo12 = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
147
- export type SignedUpTo12 = -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | UnsignedUpTo12;
148
- export type Margin = SignedUpTo12 | "auto";
149
- export declare const SPACING = 4;
150
- export type TextFieldType = "date" | "datetime" | "decimal" | "decimalRange" | "email" | "height" | "password" | "phoneNumber" | "number" | "numberRange" | "search" | "text" | "time" | "url" | "username";
151
- export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
152
- export declare const iconSizeToNumber: (size?: IconSize) => number;
153
- export declare const iconNumberToSize: (size?: number) => IconSize;
154
- export declare function getSectionColor(section: "Breakfast" | "Lunch" | "Dinner" | "Snack" | "workouts"): Color;
155
- export type TextSize = "sm" | "md" | "lg";
156
- export type TextColor = "blue" | "darkGray" | "eggplant" | "gray" | "green" | "lightGray" | "maroon" | "midnight" | "navy" | "olive" | "orange" | "orchid" | "pine" | "purple" | "red" | "watermelon" | "white";
157
- export type ButtonColor = "blue" | "gray" | "red" | "white" | "primary" | "secondary" | "accent" | "tertiary";
158
- export type IconPrefix = "far" | "fas";
159
- export interface ActionBannerProps {
160
- /** The text to show in the banner. */
161
- text: string;
162
- color?: AllColors;
163
- textColor?: TextColor;
164
- negativeXMargin?: number;
165
- onClick: () => void;
166
- shape?: Rounding;
167
- }
168
- export interface BlurBoxProps extends BoxProps {
169
- blurType?: "regular" | "dark" | "prominent";
170
- }
171
- export interface LayerProps {
172
- children: ReactChildren;
173
- }
174
- export interface ModalProps {
175
- header?: React.ReactNode;
176
- accessibilityModalLabel: string;
177
- children?: ReactChildren;
178
- closeOnOutsideClick?: boolean;
179
- footer?: ReactChild;
180
- heading?: string | ReactChild;
181
- onDismiss: () => void;
182
- role?: "alertdialog" | "dialog";
183
- size?: "sm" | "md" | "lg" | number;
184
- }
185
- export interface BoxProps {
186
- alignContent?: AlignContent;
187
- alignItems?: AlignItems;
188
- alignSelf?: AlignSelf;
189
- bottom?: boolean;
190
- children?: ReactChildren;
191
- color?: BoxColor;
192
- column?: UnsignedUpTo12;
193
- smColumn?: UnsignedUpTo12;
194
- mdColumn?: UnsignedUpTo12;
195
- lgColumn?: UnsignedUpTo12;
196
- dangerouslySetInlineStyle?: {
197
- __style: {
198
- [key: string]: any;
199
- };
200
- };
201
- direction?: "row" | "column";
202
- smDirection?: "row" | "column";
203
- mdDirection?: "row" | "column";
204
- lgDirection?: "row" | "column";
205
- display?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
206
- smDisplay?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
207
- mdDisplay?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
208
- lgDisplay?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
209
- fit?: boolean;
210
- flex?: "grow" | "shrink" | "none";
211
- height?: number | string;
212
- justifyContent?: "start" | "end" | "center" | "between" | "around";
213
- left?: boolean;
214
- margin?: SignedUpTo12;
215
- smMargin?: SignedUpTo12;
216
- mdMargin?: SignedUpTo12;
217
- lgMargin?: SignedUpTo12;
218
- marginBottom?: SignedUpTo12;
219
- smMarginBottom?: SignedUpTo12;
220
- mdMarginBottom?: SignedUpTo12;
221
- lgMarginBottom?: SignedUpTo12;
222
- marginEnd?: SignedUpTo12;
223
- smMarginEnd?: SignedUpTo12;
224
- mdMarginEnd?: SignedUpTo12;
225
- lgMarginEnd?: SignedUpTo12;
226
- marginLeft?: SignedUpTo12;
227
- smMarginLeft?: SignedUpTo12;
228
- mdMarginLeft?: SignedUpTo12;
229
- lgMarginLeft?: SignedUpTo12;
230
- marginRight?: SignedUpTo12;
231
- smMarginRight?: SignedUpTo12;
232
- mdMarginRight?: SignedUpTo12;
233
- lgMarginRight?: SignedUpTo12;
234
- marginStart?: SignedUpTo12;
235
- smMarginStart?: SignedUpTo12;
236
- mdMarginStart?: SignedUpTo12;
237
- lgMarginStart?: SignedUpTo12;
238
- marginTop?: SignedUpTo12;
239
- smMarginTop?: SignedUpTo12;
240
- mdMarginTop?: SignedUpTo12;
241
- lgMarginTop?: SignedUpTo12;
242
- maxHeight?: number | string;
243
- maxWidth?: number | string;
244
- minHeight?: number | string;
245
- minWidth?: number | string;
246
- overflow?: "visible" | "hidden" | "scroll" | "scrollX" | "scrollY" | "auto";
247
- padding?: UnsignedUpTo12;
248
- smPadding?: UnsignedUpTo12;
249
- mdPadding?: UnsignedUpTo12;
250
- lgPadding?: UnsignedUpTo12;
251
- paddingX?: UnsignedUpTo12;
252
- smPaddingX?: UnsignedUpTo12;
253
- mdPaddingX?: UnsignedUpTo12;
254
- lgPaddingX?: UnsignedUpTo12;
255
- paddingY?: UnsignedUpTo12;
256
- smPaddingY?: UnsignedUpTo12;
257
- mdPaddingY?: UnsignedUpTo12;
258
- lgPaddingY?: UnsignedUpTo12;
259
- position?: "static" | "absolute" | "relative" | "fixed";
260
- right?: boolean;
261
- rounding?: "pill" | "circle" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
262
- top?: boolean;
263
- width?: number | string;
264
- wrap?: boolean;
265
- zIndex?: number | "auto";
266
- onClick?: () => void | Promise<void>;
267
- className?: string;
268
- style?: any;
269
- onHoverStart?: () => void | Promise<void>;
270
- onHoverEnd?: () => void | Promise<void>;
271
- scroll?: boolean;
272
- shadow?: boolean;
273
- border?: AllColors;
274
- borderBottom?: AllColors;
275
- borderTop?: AllColors;
276
- borderLeft?: AllColors;
277
- borderRight?: AllColors;
278
- avoidKeyboard?: boolean;
279
- keyboardOffset?: number;
280
- scrollRef?: React.RefObject<any>;
281
- onScroll?: (offsetY: number) => void;
282
- onLayout?: (event: LayoutChangeEvent) => void;
283
- testID?: string;
284
- }
285
- export type BoxColor = AllColors | "transparent";
286
- export interface DrawerProps {
287
- animationOpenTime: number;
288
- animationCloseTime: number;
289
- direction: Direction;
290
- dismissWhenTouchOutside?: boolean;
291
- fadeOpacity?: number;
292
- drawerScreenWidth: number;
293
- drawerScreenHeight: number;
294
- style?: any;
295
- parent: any;
296
- dismiss?: any;
297
- }
298
- export type DrawerDirection = "left" | "right" | "bottom" | "top";
299
- export interface ErrorBoundaryProps {
300
- onError?: (error: Error, stack: any) => void;
301
- children?: ReactNode;
302
- }
303
- export interface FaceBookButtonProps {
304
- errorMessageColor?: "red" | "white";
305
- signUp: boolean;
306
- }
307
- export interface IconProps {
308
- prefix?: IconPrefix;
309
- name: IconName;
310
- color?: AllColors;
311
- size?: IconSize;
312
- iconStyle?: any;
313
- containerStyle?: any;
314
- }
315
- export interface NavigatorProps {
316
- config?: any;
317
- }
318
- export type TooltipDirection = "top" | "bottom" | "left" | "right";
319
- export type IndicatorDirection = "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
320
- export interface PillProps {
321
- text: string;
322
- color: AllColors;
323
- enabled?: boolean;
324
- onClick: (enabled: boolean) => void;
325
- }
326
- export interface SegmentedControlProps {
327
- items: string[];
328
- onChange?: ({ activeIndex }: {
329
- activeIndex: number | number[];
330
- }) => void;
331
- selectedItemIndex?: number;
332
- selectedItemIndexes?: number[];
333
- responsive?: boolean;
334
- size?: "md" | "lg";
335
- multiselect?: boolean;
336
- selectLimit?: number;
337
- }
338
- export interface FieldWithLabelsProps {
339
- errorMessage?: string;
340
- errorMessageColor?: AllColors;
341
- label?: string;
342
- labelColor?: AllColors;
343
- helperText?: string;
344
- helperTextColor?: AllColors;
345
- children?: ReactChildren;
346
- }
347
- export interface DateTimeFieldProps extends FieldWithLabelsProps {
348
- label?: string;
349
- mode: "date" | "time" | "datetime";
350
- value: Date;
351
- onChange: (date: Date) => void;
352
- dateFormat?: string;
353
- pickerType?: "default" | "compact" | "inline" | "spinner";
354
- }
355
- export interface TextFieldProps extends FieldWithLabelsProps {
356
- innerRef?: any;
357
- id?: string;
358
- onChange: OnChangeCallback;
359
- autoComplete?: "current-password" | "on" | "off" | "username";
360
- disabled?: boolean;
361
- idealErrorDirection?: Direction;
362
- name?: string;
363
- onBlur?: OnChangeCallback;
364
- onFocus?: OnChangeCallback;
365
- placeholder?: string;
366
- type?: TextFieldType;
367
- value?: string;
368
- style?: any;
369
- searching?: boolean;
370
- returnKeyType?: "done" | "go" | "next" | "search" | "send";
371
- autoFocus?: boolean;
372
- grow?: boolean;
373
- inputRef?: any;
374
- onSubmitEditing?: any;
375
- onEnter?: any;
376
- blurOnSubmit?: boolean;
377
- multiline?: boolean;
378
- rows?: number;
379
- height?: number;
380
- paddingX?: number;
381
- paddingY?: number;
382
- min?: number;
383
- max?: number;
384
- }
385
- export type TextAreaProps = TextFieldProps;
386
- export interface SubmittingFormProps {
387
- onSubmitEditting: () => void;
388
- }
389
- export interface SwitchProps extends FieldWithLabelsProps {
390
- id?: string;
391
- onChange: (value: boolean) => void;
392
- disabled?: boolean;
393
- name?: string;
394
- switched: boolean;
395
- label?: string;
396
- }
397
- export interface SpinnerProps {
398
- size?: "sm" | "md";
399
- color?: Color;
400
- }
401
- export interface MaskProps {
402
- children?: ReactChildren;
403
- shape?: "circle" | "rounded" | "square";
404
- height?: number | string;
405
- width?: number | string;
406
- maxHeight?: number | string;
407
- maxWidth?: number | string;
408
- rounding?: "circle" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
409
- willChangeTransform?: boolean;
410
- wash?: boolean;
411
- }
412
- export interface IconRowProps {
413
- icon: string;
414
- label: string;
415
- value: string;
416
- }
417
- export interface LinkProps {
418
- href: string;
419
- inline?: boolean;
420
- children?: ReactChild;
421
- onClick?: () => void;
422
- target?: null | "blank";
423
- }
424
- export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | "circle" | "pill";
425
- export interface HeadingProps {
426
- align?: "left" | "right" | "center" | "justify";
427
- children?: React.ReactNode;
428
- color?: AllColors;
429
- overflow?: "normal" | "breakWord";
430
- size?: "sm" | "md" | "lg";
431
- truncate?: boolean;
432
- }
433
- export interface MetaProps {
434
- itemProp?: string;
435
- content?: string;
436
- itemType?: string;
437
- key?: string;
438
- property?: string;
439
- children?: ReactNode;
440
- }
441
- export interface ImageProps {
442
- alt?: string;
443
- color: BoxColor;
444
- naturalHeight?: number;
445
- naturalWidth?: number;
446
- maxWidth?: number;
447
- maxHeight?: number;
448
- src: string;
449
- children?: ReactChildren;
450
- fit?: "cover" | "contain" | "none";
451
- onError?: () => void;
452
- onLoad?: () => void;
453
- size?: string;
454
- srcSet?: string;
455
- fullWidth?: boolean;
456
- style?: any;
457
- }
458
- export interface SearchButtonProps {
459
- color: ButtonColor;
460
- onClick: () => void;
461
- }
462
- export interface BackButtonInterface {
463
- onBack: () => void;
464
- }
465
- export interface CheckBoxProps {
466
- id: string;
467
- onChange: ({ value }: {
468
- value: boolean;
469
- }) => void;
470
- checked?: boolean;
471
- disabled?: boolean;
472
- hasError?: boolean;
473
- indeterminate?: boolean;
474
- name?: string;
475
- onClick?: any;
476
- size?: "sm" | "md";
477
- color?: AllColors;
478
- radio?: boolean;
479
- label?: string;
480
- subLabel?: string;
481
- labelColor?: AllColors;
482
- }
483
- export interface BodyProps {
484
- scroll?: boolean;
485
- loading?: boolean;
486
- useBox?: boolean;
487
- style?: any;
488
- padding?: UnsignedUpTo12;
489
- height?: number | string;
490
- avoidKeyboard?: boolean;
491
- children?: ReactNode;
492
- }
493
- export interface ChatPaneProps {
494
- messagesView: any;
495
- textFormView: any;
496
- ref: any;
497
- }
498
- export interface ScrollViewProps {
499
- scrollTo?: (y?: number | {
500
- x?: number;
501
- y?: number;
502
- animated?: boolean;
503
- }, x?: number, animated?: boolean) => void;
504
- /**
505
- * These styles will be applied to the scroll view content container which
506
- * wraps all of the child views. Example:
507
- *
508
- * return (
509
- * <ScrollView contentContainerStyle={styles.contentContainer}>
510
- * </ScrollView>
511
- * );
512
- * ...
513
- * const styles = StyleSheet.create({
514
- * contentContainer: {
515
- * paddingVertical: 20
516
- * }
517
- * });
518
- */
519
- contentContainerStyle?: any;
520
- /**
521
- * When true the scroll view's children are arranged horizontally in a row
522
- * instead of vertically in a column. The default value is false.
523
- */
524
- horizontal?: boolean | null;
525
- /**
526
- * If sticky headers should stick at the bottom instead of the top of the
527
- * ScrollView. This is usually used with inverted ScrollViews.
528
- */
529
- /**
530
- * Determines whether the keyboard gets dismissed in response to a drag.
531
- * - 'none' (the default) drags do not dismiss the keyboard.
532
- * - 'onDrag' the keyboard is dismissed when a drag begins.
533
- * - 'interactive' the keyboard is dismissed interactively with the drag
534
- * and moves in synchrony with the touch; dragging upwards cancels the
535
- * dismissal.
536
- */
537
- /**
538
- * Determines when the keyboard should stay visible after a tap.
539
- * - 'never' (the default), tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When this happens, children won't receive the tap.
540
- * - 'always', the keyboard will not dismiss automatically, and the scroll view will not catch taps, but children of the scroll view can catch taps.
541
- * - 'handled', the keyboard will not dismiss automatically when the tap was handled by a children, (or captured by an ancestor).
542
- * - false, deprecated, use 'never' instead
543
- * - true, deprecated, use 'always' instead
544
- */
545
- keyboardShouldPersistTaps?: boolean | "always" | "never" | "handled";
546
- /**
547
- * Called when scrollable content view of the ScrollView changes.
548
- * Handler function is passed the content width and content height as parameters: (contentWidth, contentHeight)
549
- * It's implemented using onLayout handler attached to the content container which this ScrollView renders.
550
- *
551
- */
552
- /**
553
- * Fires at most once per frame during scrolling.
554
- * The frequency of the events can be contolled using the scrollEventThrottle prop.
555
- */
556
- onScroll?: (event: any) => void;
557
- /**
558
- * Fires if a user initiates a scroll gesture.
559
- */
560
- /**
561
- * Fires when a user has finished scrolling.
562
- */
563
- /**
564
- * Fires when scroll view has finished moving
565
- */
566
- /**
567
- * Fires when scroll view has begun moving
568
- */
569
- /**
570
- * When true the scroll view stops on multiples of the scroll view's size
571
- * when scrolling. This can be used for horizontal pagination. The default
572
- * value is false.
573
- */
574
- /**
575
- * When false, the content does not scroll. The default value is true
576
- */
577
- /**
578
- * Experimental: When true offscreen child views (whose `overflow` value is
579
- * `hidden`) are removed from their native backing superview when offscreen.
580
- * This canimprove scrolling performance on long lists. The default value is
581
- * false.
582
- */
583
- /**
584
- * When true, shows a horizontal scroll indicator.
585
- */
586
- /**
587
- * When true, shows a vertical scroll indicator.
588
- */
589
- /**
590
- * Style
591
- */
592
- style?: any;
593
- }
594
- type ItemT = any;
595
- type ViewStyle = any;
596
- export interface StyleProp {
597
- [key: string]: any;
598
- }
599
- interface LayoutRectangle {
600
- x: number;
601
- y: number;
602
- width: number;
603
- height: number;
604
- }
605
- interface LayoutChangeEvent {
606
- nativeEvent: {
607
- layout: LayoutRectangle;
608
- };
609
- }
610
- interface RenderItemData {
611
- item: any;
612
- index: number;
613
- }
614
- export interface FlatListProps extends ScrollViewProps {
615
- /**
616
- * Rendered in between each item, but not at the top or bottom
617
- */
618
- ItemSeparatorComponent?: React.ComponentType<any> | null;
619
- /**
620
- * Rendered when the list is empty.
621
- */
622
- ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null;
623
- /**
624
- * Rendered at the very end of the list.
625
- */
626
- ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null;
627
- /**
628
- * Styling for internal View for ListFooterComponent
629
- */
630
- ListFooterComponentStyle?: ViewStyle | null;
631
- /**
632
- * Rendered at the very beginning of the list.
633
- */
634
- ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null;
635
- /**
636
- * Styling for internal View for ListHeaderComponent
637
- */
638
- ListHeaderComponentStyle?: ViewStyle | null;
639
- /**
640
- * Optional custom style for multi-item rows generated when numColumns > 1
641
- */
642
- columnWrapperStyle?: StyleProp;
643
- /**
644
- * Determines when the keyboard should stay visible after a tap.
645
- * - 'never' (the default), tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When this happens, children won't receive the tap.
646
- * - 'always', the keyboard will not dismiss automatically, and the scroll view will not catch taps, but children of the scroll view can catch taps.
647
- * - 'handled', the keyboard will not dismiss automatically when the tap was handled by a children, (or captured by an ancestor).
648
- * - false, deprecated, use 'never' instead
649
- * - true, deprecated, use 'always' instead
650
- */
651
- keyboardShouldPersistTaps?: boolean | "always" | "never" | "handled";
652
- /**
653
- * Multiple columns can only be rendered with `horizontal={false}` and will zig-zag like a `flexWrap` layout.
654
- * Items should all be the same height - masonry layouts are not supported.
655
- */
656
- numColumns?: number;
657
- /**
658
- * The default accessor functions assume this is an Array<{key: string}> but you can override
659
- * getItem, getItemCount, and keyExtractor to handle any type of index-based data.
660
- */
661
- data?: any;
662
- /**
663
- * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and
664
- * implementation, but with a significant perf hit.
665
- */
666
- debug?: boolean;
667
- /**
668
- * DEPRECATED: Virtualization provides significant performance and memory optimizations, but fully
669
- * unmounts react instances that are outside of the render window. You should only need to disable
670
- * this for debugging purposes.
671
- */
672
- disableVirtualization?: boolean;
673
- /**
674
- * A marker property for telling the list to re-render (since it implements `PureComponent`). If
675
- * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the
676
- * `data` prop, stick it here and treat it immutably.
677
- */
678
- extraData?: any;
679
- /**
680
- * A generic accessor for extracting an item from any sort of data blob.
681
- */
682
- getItem?: (data: any, index: number) => ItemT;
683
- /**
684
- * Determines how many items are in the data blob.
685
- */
686
- getItemCount?: (data: any) => number;
687
- getItemLayout?: (data: any, index: number) => {
688
- length: number;
689
- offset: number;
690
- index: number;
691
- };
692
- horizontal?: boolean | null;
693
- /**
694
- * How many items to render in the initial batch. This should be enough to fill the screen but not
695
- * much more. Note these items will never be unmounted as part of the windowed rendering in order
696
- * to improve perceived performance of scroll-to-top actions.
697
- */
698
- initialNumToRender?: number;
699
- /**
700
- * Instead of starting at the top with the first item, start at `initialScrollIndex`. This
701
- * disables the "scroll to top" optimization that keeps the first `initialNumToRender` items
702
- * always rendered and immediately renders the items starting at this initial index. Requires
703
- * `getItemLayout` to be implemented.
704
- */
705
- initialScrollIndex?: number | null;
706
- /**
707
- * Reverses the direction of scroll. Uses scale transforms of -1.
708
- */
709
- inverted?: boolean | null;
710
- keyExtractor?: (item: ItemT, index: number) => string;
711
- listKey?: string;
712
- /**
713
- * The maximum number of items to render in each incremental render batch. The more rendered at
714
- * once, the better the fill rate, but responsiveness my suffer because rendering content may
715
- * interfere with responding to button taps or other interactions.
716
- */
717
- maxToRenderPerBatch?: number;
718
- onEndReached?: ((info: {
719
- distanceFromEnd: number;
720
- }) => void) | null;
721
- onEndReachedThreshold?: number | null;
722
- onLayout?: (event: LayoutChangeEvent) => void;
723
- /**
724
- * If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make
725
- * sure to also set the `refreshing` prop correctly.
726
- */
727
- onRefresh?: (() => void) | null;
728
- /**
729
- * Used to handle failures when scrolling to an index that has not been measured yet.
730
- * Recommended action is to either compute your own offset and `scrollTo` it, or scroll as far
731
- * as possible and then try again after more items have been rendered.
732
- */
733
- onScrollToIndexFailed?: (info: {
734
- index: number;
735
- highestMeasuredFrameIndex: number;
736
- averageItemLength: number;
737
- }) => void;
738
- /**
739
- * Called when the viewability of rows changes, as defined by the
740
- * `viewabilityConfig` prop.
741
- */
742
- onViewableItemsChanged?: ((info: {
743
- viewableItems: any[];
744
- changed: any[];
745
- }) => void) | null;
746
- /**
747
- * Set this when offset is needed for the loading indicator to show correctly.
748
- * @platform android
749
- */
750
- progressViewOffset?: number;
751
- /**
752
- * Set this true while waiting for new data from a refresh.
753
- */
754
- refreshing?: boolean | null;
755
- /**
756
- * Note: may have bugs (missing content) in some circumstances - use at your own risk.
757
- *
758
- * This may improve scroll performance for large lists.
759
- */
760
- removeClippedSubviews?: boolean;
761
- /**
762
- * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.
763
- */
764
- renderScrollComponent?: (props: ScrollViewProps) => React.ReactElement<ScrollViewProps>;
765
- /**
766
- * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off
767
- * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`.
768
- */
769
- updateCellsBatchingPeriod?: number;
770
- viewabilityConfig?: any;
771
- viewabilityConfigCallbackPairs?: any;
772
- /**
773
- * Determines the maximum number of items rendered outside of the visible area, in units of
774
- * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will
775
- * render the visible screen area plus up to 10 screens above and 10 below the viewport. Reducing
776
- * this number will reduce memory consumption and may improve performance, but will increase the
777
- * chance that fast scrolling may reveal momentary blank areas of unrendered content.
778
- */
779
- windowSize?: number;
780
- renderItem: (info: RenderItemData) => React.ReactElement | null;
781
- }
782
- export interface PickerProps {
783
- onValueChange?: (itemValue: any, itemPosition: number) => void;
784
- selectedValue?: any;
785
- style?: StyleProp;
786
- testID?: string;
787
- itemStyle?: StyleProp;
788
- enabled?: boolean;
789
- mode?: "dialog" | "dropdown";
790
- prompt?: string;
791
- }
792
- export interface SplitPageProps {
793
- /**
794
- * can accept either one React Child or any array of ReactChild. If this is not provided,
795
- * renderContent must return one or many ReactChild.
796
- */
797
- children?: ReactChild | ReactChild[] | null;
798
- /**
799
- * The names of the tabs that will be generated per ReactChild provided. Tabs will not be generated if renderContent is provided in place of children
800
- */
801
- tabs?: string[];
802
- selectLimit?: number;
803
- bottomNavBarHeight?: number;
804
- showItemList?: boolean;
805
- loading?: boolean;
806
- color?: Color;
807
- keyboardOffset?: number;
808
- renderListViewItem: (itemInfo: ListRenderItemInfo<any>) => ReactElement | null;
809
- renderListViewHeader?: () => ReactElement | null;
810
- renderContent?: (index?: number) => ReactElement | ReactElement[] | null;
811
- listViewData: any[];
812
- listViewExtraData?: any;
813
- listViewWidth?: number;
814
- renderChild?: () => ReactChild;
815
- onSelectionChange?: (value?: any) => void | Promise<void>;
816
- }
817
- export type LogLevel = "fatal" | "error" | "warning" | "info" | "debug" | "critical";
818
- export type PermissionKind = "location" | "locationAlways" | "camera" | "microphone" | "photo" | "contacts" | "event" | "reminder" | "bluetooth" | "notification" | "backgroundRefresh" | "speechRecognition" | "mediaLibrary" | "motion";
819
- export type PermissionStatus = "authorized" | "denied" | "softDenied" | "restricted" | "undetermined";
820
- export interface TrackingProperties {
821
- [name: string]: any;
822
- }
823
- export declare function isTestUser(profile?: BaseProfile): boolean | "" | undefined;
824
- export interface TrackerInterface {
825
- initFinished: boolean;
826
- init: (config: TrackingConfig) => void;
827
- trackPages: () => void;
828
- setUser: (user: BaseProfile) => void;
829
- setUserProperty: (property: string, value: string | {
830
- object: {
831
- [id: string]: any;
832
- };
833
- }) => void;
834
- track: (eventName: string, properties?: TrackingProperties) => void;
835
- trackNavigation: (screen: string, properties?: TrackingProperties) => void;
836
- trackLogin: (method: string, success: boolean, properties?: TrackingProperties) => void;
837
- trackSignup: (method: string, success: boolean, properties?: TrackingProperties) => void;
838
- trackSignOut: () => void;
839
- log: (message: string, properties?: TrackingProperties, level?: LogLevel) => void;
840
- error: (message: string, properties?: TrackingProperties) => void;
841
- warn: (message: string, properties?: TrackingProperties) => void;
842
- debug: (message: string, properties?: TrackingProperties) => void;
843
- handleErrorAlert: (text: string, exception?: Error, showAlert?: boolean) => void;
844
- trackPermission: (kind: PermissionKind, status: PermissionStatus, requested: boolean) => void;
845
- updateAppInfo: () => void;
846
- }
847
- export interface NavConfig {
848
- url?: string;
849
- wrapper?: (component: any) => any;
850
- store?: any;
851
- provider?: any;
852
- }
853
- export interface ProgressBarProps {
854
- color: Color;
855
- completed: number;
856
- }
857
- export interface AddressInterface {
858
- address1: string;
859
- address2?: string;
860
- city: string;
861
- state: string;
862
- zipcode: string;
863
- }
864
- export type ReactChild = ReactNode;
865
- export type ReactChildren = ReactNode;
866
- export type WithChildren<P> = P & {
867
- children?: ReactNode;
868
- };
869
- export {};