secullum-react-native-ui 4.3.13 → 4.4.0-beta.0

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 (61) hide show
  1. package/lib/components/AppShell.d.ts +29 -3
  2. package/lib/components/AppShell.js +2 -1
  3. package/lib/components/Button.js +5 -4
  4. package/lib/components/Card.d.ts +5 -5
  5. package/lib/components/Card.js +13 -8
  6. package/lib/components/CheckBox.js +3 -2
  7. package/lib/components/DatePicker.js +8 -8
  8. package/lib/components/DatePicker.web.js +7 -6
  9. package/lib/components/Delay.d.ts +1 -1
  10. package/lib/components/Delay.js +1 -0
  11. package/lib/components/Details.js +4 -3
  12. package/lib/components/DetailsHeader.d.ts +1 -1
  13. package/lib/components/DetailsHeader.js +8 -7
  14. package/lib/components/DimensionsMonitor.d.ts +1 -1
  15. package/lib/components/DimensionsMonitor.js +1 -0
  16. package/lib/components/DropDown.js +10 -9
  17. package/lib/components/ErrorMessage.js +2 -1
  18. package/lib/components/FilePicker.d.ts +1 -0
  19. package/lib/components/FilePicker.js +7 -6
  20. package/lib/components/Header.d.ts +2 -2
  21. package/lib/components/Header.js +14 -11
  22. package/lib/components/HeaderDesktop.js +11 -8
  23. package/lib/components/ImageButton.js +2 -1
  24. package/lib/components/KeyboardAvoidingView.d.ts +1 -1
  25. package/lib/components/KeyboardAvoidingView.js +7 -4
  26. package/lib/components/Link.js +2 -1
  27. package/lib/components/Loading.js +1 -0
  28. package/lib/components/Menu.d.ts +1 -1
  29. package/lib/components/Menu.js +5 -4
  30. package/lib/components/MenuDesktop.js +3 -2
  31. package/lib/components/MenuMobile.js +4 -3
  32. package/lib/components/Message.js +10 -9
  33. package/lib/components/Modal.js +1 -0
  34. package/lib/components/MultiSelect.d.ts +1 -1
  35. package/lib/components/MultiSelect.js +10 -9
  36. package/lib/components/NoRecordMessage.js +3 -2
  37. package/lib/components/Question.js +10 -9
  38. package/lib/components/RadioButton.js +2 -1
  39. package/lib/components/RadioGroup.js +5 -4
  40. package/lib/components/RangeDatePicker.js +7 -7
  41. package/lib/components/RangeDatePicker.web.js +7 -6
  42. package/lib/components/Space.js +2 -1
  43. package/lib/components/StatusBar.js +3 -2
  44. package/lib/components/Switch.js +3 -2
  45. package/lib/components/Table.js +5 -2
  46. package/lib/components/Table.web.d.ts +1 -1
  47. package/lib/components/Table.web.js +7 -4
  48. package/lib/components/Text.d.ts +1 -1
  49. package/lib/components/Text.js +4 -3
  50. package/lib/components/TextBox.d.ts +3 -35
  51. package/lib/components/TextBox.js +6 -5
  52. package/lib/components/TextBoxMask.js +8 -3
  53. package/lib/components/TimePicker.js +8 -8
  54. package/lib/components/TimePicker.web.js +7 -6
  55. package/lib/index.js +53 -42
  56. package/lib/modules/browser.js +1 -0
  57. package/lib/modules/format.js +14 -8
  58. package/lib/modules/layout.js +3 -1
  59. package/lib/modules/theme.js +7 -4
  60. package/lib/modules/validation.js +7 -3
  61. package/package.json +3 -4
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Header = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
@@ -9,11 +10,11 @@ class Header extends React.Component {
9
10
  constructor() {
10
11
  super(...arguments);
11
12
  this.getStyles = () => {
12
- const theme = theme_1.getTheme();
13
+ const theme = (0, theme_1.getTheme)();
13
14
  const styles = react_native_1.StyleSheet.create({
14
15
  header: {
15
16
  backgroundColor: theme.backgroundColor3,
16
- height: layout_1.isTablet() ? 65 : 50,
17
+ height: (0, layout_1.isTablet)() ? 65 : 50,
17
18
  flexDirection: 'row',
18
19
  alignItems: 'center',
19
20
  justifyContent: 'center'
@@ -21,17 +22,17 @@ class Header extends React.Component {
21
22
  title: {
22
23
  color: theme.textColor4,
23
24
  fontFamily: theme.fontFamily1,
24
- fontSize: layout_1.isTablet() ? 25 : 18,
25
+ fontSize: (0, layout_1.isTablet)() ? 25 : 18,
25
26
  marginHorizontal: 35
26
27
  },
27
28
  button: {
28
- padding: layout_1.isTablet() ? 14 : 10
29
+ padding: (0, layout_1.isTablet)() ? 14 : 10
29
30
  },
30
31
  counterContainer: {
31
32
  position: 'absolute',
32
33
  backgroundColor: theme.counterBackgroundColor,
33
- height: layout_1.isTablet() ? 20 : 15,
34
- width: layout_1.isTablet() ? 20 : 15,
34
+ height: (0, layout_1.isTablet)() ? 20 : 15,
35
+ width: (0, layout_1.isTablet)() ? 20 : 15,
35
36
  top: 5,
36
37
  left: 18,
37
38
  borderRadius: 50
@@ -39,16 +40,18 @@ class Header extends React.Component {
39
40
  counterText: {
40
41
  textAlign: 'center',
41
42
  color: theme.counterTextColor,
42
- fontSize: layout_1.isTablet() ? 15 : 10
43
+ fontSize: (0, layout_1.isTablet)() ? 15 : 10
43
44
  }
44
45
  });
45
46
  return styles;
46
47
  };
47
48
  this.renderButton = (button, type) => {
48
49
  const styles = this.getStyles();
49
- const theme = theme_1.getTheme();
50
+ const theme = (0, theme_1.getTheme)();
50
51
  const icon = (React.createElement(React.Fragment, null,
51
- React.createElement(FontAwesome_1.default, { nativeID: button.nativeID, name: button.icon, size: layout_1.isTablet() ? 30 : 20, color: button.disabled ? theme.textColor1 : theme.textColor4, style: button.buttonStyle }),
52
+ React.createElement(FontAwesome_1.default, { nativeID: button.nativeID, name: button.icon, size: (0, layout_1.isTablet)() ? 30 : 20, color: button.disabled ? theme.textColor1 : theme.textColor4,
53
+ // @ts-ignore : The component uses a different version of typing
54
+ style: button.buttonStyle }),
52
55
  button.counter ? (React.createElement(react_native_1.View, { style: styles.counterContainer },
53
56
  React.createElement(react_native_1.Text, { style: styles.counterText }, button.counter))) : null));
54
57
  const style = [
@@ -82,8 +85,8 @@ class Header extends React.Component {
82
85
  : this.renderButtonInvisible('right')));
83
86
  }
84
87
  }
88
+ exports.Header = Header;
85
89
  Header.defaultProps = {
86
90
  leftButtonType: 'menu'
87
91
  };
88
- Header.height = layout_1.isTablet() ? 65 : 50;
89
- exports.Header = Header;
92
+ Header.height = (0, layout_1.isTablet)() ? 65 : 50;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderDesktop = void 0;
3
4
  const React = require("react");
4
5
  const theme_1 = require("../modules/theme");
5
6
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
@@ -9,7 +10,7 @@ class HeaderDesktop extends React.Component {
9
10
  constructor() {
10
11
  super(...arguments);
11
12
  this.getStyles = () => {
12
- const theme = theme_1.getTheme();
13
+ const theme = (0, theme_1.getTheme)();
13
14
  const styles = react_native_1.StyleSheet.create({
14
15
  container: {
15
16
  backgroundColor: theme.backgroundColor3,
@@ -33,13 +34,13 @@ class HeaderDesktop extends React.Component {
33
34
  marginRight: 20
34
35
  },
35
36
  button: {
36
- padding: layout_1.isTablet() ? 14 : 10
37
+ padding: (0, layout_1.isTablet)() ? 14 : 10
37
38
  },
38
39
  counterContainer: {
39
40
  position: 'absolute',
40
41
  backgroundColor: theme.counterBackgroundColor,
41
- height: layout_1.isTablet() ? 20 : 15,
42
- width: layout_1.isTablet() ? 20 : 15,
42
+ height: (0, layout_1.isTablet)() ? 20 : 15,
43
+ width: (0, layout_1.isTablet)() ? 20 : 15,
43
44
  top: 5,
44
45
  left: 18,
45
46
  borderRadius: 50
@@ -47,16 +48,18 @@ class HeaderDesktop extends React.Component {
47
48
  counterText: {
48
49
  textAlign: 'center',
49
50
  color: theme.counterTextColor,
50
- fontSize: layout_1.isTablet() ? 15 : 10
51
+ fontSize: (0, layout_1.isTablet)() ? 15 : 10
51
52
  }
52
53
  });
53
54
  return styles;
54
55
  };
55
56
  this.renderRightButton = (button) => {
56
57
  const styles = this.getStyles();
57
- const theme = theme_1.getTheme();
58
+ const theme = (0, theme_1.getTheme)();
58
59
  const icon = (React.createElement(React.Fragment, null,
59
- React.createElement(FontAwesome_1.default, { nativeID: button.nativeID, name: button.icon, size: layout_1.isTablet() ? 30 : 20, color: button.disabled ? theme.textColor1 : theme.textColor4, style: button.buttonStyle }),
60
+ React.createElement(FontAwesome_1.default, { nativeID: button.nativeID, name: button.icon, size: (0, layout_1.isTablet)() ? 30 : 20, color: button.disabled ? theme.textColor1 : theme.textColor4,
61
+ // @ts-ignore : The component uses a different version of typing
62
+ style: button.buttonStyle }),
60
63
  button.counter ? (React.createElement(react_native_1.View, { style: styles.counterContainer },
61
64
  React.createElement(react_native_1.Text, { nativeID: `${button.nativeID}-counter`, style: styles.counterText }, button.counter))) : null));
62
65
  const style = [styles.button];
@@ -76,5 +79,5 @@ class HeaderDesktop extends React.Component {
76
79
  rightButton && this.renderRightButton(rightButton)));
77
80
  }
78
81
  }
79
- HeaderDesktop.height = 60;
80
82
  exports.HeaderDesktop = HeaderDesktop;
83
+ HeaderDesktop.height = 60;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImageButton = void 0;
3
4
  const React = require("react");
4
5
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
5
6
  const theme_1 = require("../modules/theme");
@@ -19,7 +20,7 @@ class ImageButton extends React.Component {
19
20
  }
20
21
  }
21
22
  exports.ImageButton = ImageButton;
22
- const theme = theme_1.getTheme();
23
+ const theme = (0, theme_1.getTheme)();
23
24
  const styles = react_native_1.StyleSheet.create({
24
25
  container: {
25
26
  borderWidth: 1,
@@ -3,7 +3,7 @@ import { EmitterSubscription, KeyboardEvent, NativeScrollEvent, RefreshControlPr
3
3
  export interface KeyboardAvoidingViewProperties {
4
4
  extraFieldHeight: number;
5
5
  extraWindowHeight: number;
6
- refreshControl?: React.ReactElement<RefreshControlProps>;
6
+ refreshControl?: React.ReactElement<RefreshControlProps> | undefined;
7
7
  children: (options: {
8
8
  availableHeight: number;
9
9
  }) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KeyboardAvoidingView = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  class KeyboardAvoidingView extends React.Component {
@@ -25,9 +26,9 @@ class KeyboardAvoidingView extends React.Component {
25
26
  return;
26
27
  }
27
28
  const { extraFieldHeight, extraWindowHeight } = this.props;
28
- const currentlyFocusedInputNode = react_native_1.findNodeHandle(currentlyFocusedInput);
29
+ const currentlyFocusedInputNode = (0, react_native_1.findNodeHandle)(currentlyFocusedInput);
29
30
  // @ts-ignore: no types :(
30
- react_native_1.UIManager.viewIsDescendantOf(currentlyFocusedInputNode, react_native_1.findNodeHandle(scrollView), (isDescendant) => {
31
+ react_native_1.UIManager.viewIsDescendantOf(currentlyFocusedInputNode, (0, react_native_1.findNodeHandle)(scrollView), (isDescendant) => {
31
32
  if (!isDescendant) {
32
33
  return;
33
34
  }
@@ -77,16 +78,18 @@ class KeyboardAvoidingView extends React.Component {
77
78
  this.state.keyboardHeight -
78
79
  this.props.extraWindowHeight;
79
80
  return (React.createElement(react_native_1.View, { style: [{ height: availableHeight }, !keyBoardShow && { flex: 1 }] },
80
- React.createElement(react_native_1.ScrollView, { ref: this.scrollViewRef, refreshControl: refreshControl, scrollEnabled: scrollEnabled, onScroll: (e) => {
81
+ React.createElement(react_native_1.ScrollView, { ref: this.scrollViewRef,
82
+ // @ts-ignore: O react-native não tem auto, mas o react-native-web aceita
83
+ refreshControl: refreshControl, scrollEnabled: scrollEnabled, onScroll: (e) => {
81
84
  if (onScroll) {
82
85
  onScroll(e.nativeEvent);
83
86
  }
84
87
  }, scrollEventThrottle: 16 }, children({ availableHeight }))));
85
88
  }
86
89
  }
90
+ exports.KeyboardAvoidingView = KeyboardAvoidingView;
87
91
  KeyboardAvoidingView.defaultProps = {
88
92
  extraFieldHeight: 0,
89
93
  extraWindowHeight: 0,
90
94
  scrollEnabled: true
91
95
  };
92
- exports.KeyboardAvoidingView = KeyboardAvoidingView;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Link = void 0;
3
4
  const React = require("react");
4
5
  const theme_1 = require("../modules/theme");
5
6
  const react_native_1 = require("react-native");
@@ -7,7 +8,7 @@ class Link extends React.Component {
7
8
  constructor() {
8
9
  super(...arguments);
9
10
  this.getStyles = () => {
10
- const theme = theme_1.getTheme();
11
+ const theme = (0, theme_1.getTheme)();
11
12
  const styles = react_native_1.StyleSheet.create({
12
13
  link: {
13
14
  fontFamily: theme.fontFamily2,
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Loading = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  class Loading extends React.Component {
@@ -31,7 +31,7 @@ export declare class Menu extends React.Component<MenuProperties, MenuState> {
31
31
  state: MenuState;
32
32
  componentDidMount(): void;
33
33
  handleParentMenuPress: (index: number) => void;
34
- handleMenuPress: (path?: string | undefined) => void;
34
+ handleMenuPress: (path?: string) => void;
35
35
  getStyles: () => {
36
36
  submenuText: {
37
37
  paddingLeft: number;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Menu = exports.MenuItem = void 0;
3
4
  const React = require("react");
4
5
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
5
6
  const theme_1 = require("../modules/theme");
6
7
  const layout_1 = require("../modules/layout");
7
8
  const react_native_1 = require("react-native");
8
9
  function MenuItem(props) {
9
- const theme = theme_1.getTheme();
10
+ const theme = (0, theme_1.getTheme)();
10
11
  const styles = react_native_1.StyleSheet.create({
11
12
  container: {
12
13
  flexDirection: 'row',
@@ -17,8 +18,8 @@ function MenuItem(props) {
17
18
  text: {
18
19
  color: theme.textColor1,
19
20
  fontFamily: theme.fontFamily1,
20
- fontSize: layout_1.isTablet() ? 20 : 16,
21
- paddingVertical: layout_1.isTablet() ? 15 : 14
21
+ fontSize: (0, layout_1.isTablet)() ? 20 : 16,
22
+ paddingVertical: (0, layout_1.isTablet)() ? 15 : 14
22
23
  },
23
24
  textDisabled: {
24
25
  color: theme.borderColor1
@@ -73,7 +74,7 @@ class Menu extends React.Component {
73
74
  const styles = react_native_1.StyleSheet.create({
74
75
  submenuText: {
75
76
  paddingLeft: 20,
76
- paddingVertical: layout_1.isTablet() ? 10 : 8
77
+ paddingVertical: (0, layout_1.isTablet)() ? 10 : 8
77
78
  }
78
79
  });
79
80
  return styles;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MenuDesktop = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const theme_1 = require("../modules/theme");
@@ -8,7 +9,7 @@ class MenuDesktop extends React.Component {
8
9
  constructor() {
9
10
  super(...arguments);
10
11
  this.getStyles = () => {
11
- const theme = theme_1.getTheme();
12
+ const theme = (0, theme_1.getTheme)();
12
13
  const styles = react_native_1.StyleSheet.create({
13
14
  container: {
14
15
  backgroundColor: theme.backgroundColor1,
@@ -32,7 +33,7 @@ class MenuDesktop extends React.Component {
32
33
  React.createElement(Menu_1.Menu, { menu: menu, isCurrentMenuPath: isCurrentMenuPath, onMenuPress: onMenuPress })));
33
34
  }
34
35
  }
36
+ exports.MenuDesktop = MenuDesktop;
35
37
  MenuDesktop.defaultProps = {
36
38
  headerHeight: 0
37
39
  };
38
- exports.MenuDesktop = MenuDesktop;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MenuMobile = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const react_native_drawer_layout_1 = require("react-native-drawer-layout");
@@ -35,7 +36,7 @@ class MenuMobile extends React.Component {
35
36
  }
36
37
  };
37
38
  this.getStyles = () => {
38
- const theme = theme_1.getTheme();
39
+ const theme = (0, theme_1.getTheme)();
39
40
  const styles = react_native_1.StyleSheet.create({
40
41
  container: {
41
42
  flex: 1
@@ -78,8 +79,8 @@ class MenuMobile extends React.Component {
78
79
  react_native_1.BackHandler.removeEventListener('hardwareBackPress', this.handleBackButton);
79
80
  }
80
81
  render() {
81
- const theme = theme_1.getTheme();
82
- return (React.createElement(react_native_drawer_layout_1.default, { ref: drawer => (this.drawer = drawer), drawerLockMode: this.props.drawerLockMode, drawerBackgroundColor: theme.backgroundColor1, drawerWidth: layout_1.isTablet() ? 450 : 300, drawerPosition: react_native_drawer_layout_1.default.positions.Left, renderNavigationView: this.renderNavigationView, onDrawerOpen: () => this.setState({ opened: true }), onDrawerClose: () => this.setState({ opened: false }) }, this.props.children));
82
+ const theme = (0, theme_1.getTheme)();
83
+ return (React.createElement(react_native_drawer_layout_1.default, { ref: drawer => (this.drawer = drawer), drawerLockMode: this.props.drawerLockMode, drawerBackgroundColor: theme.backgroundColor1, drawerWidth: (0, layout_1.isTablet)() ? 450 : 300, drawerPosition: react_native_drawer_layout_1.default.positions.Left, renderNavigationView: this.renderNavigationView, onDrawerOpen: () => this.setState({ opened: true }), onDrawerClose: () => this.setState({ opened: false }) }, this.props.children));
83
84
  }
84
85
  }
85
86
  exports.MenuMobile = MenuMobile;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Message = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
@@ -10,7 +11,7 @@ class Message extends React.Component {
10
11
  constructor() {
11
12
  super(...arguments);
12
13
  this.getStyles = () => {
13
- const theme = theme_1.getTheme();
14
+ const theme = (0, theme_1.getTheme)();
14
15
  return react_native_1.StyleSheet.create({
15
16
  overlay: {
16
17
  alignItems: 'center'
@@ -18,17 +19,17 @@ class Message extends React.Component {
18
19
  container: {
19
20
  backgroundColor: theme.backgroundColor1,
20
21
  borderRadius: 6,
21
- padding: layout_1.isTablet() ? 25 : 16,
22
- width: layout_1.isTablet() ? 350 : 250,
23
- marginTop: layout_1.isTablet() ? 250 : 140,
22
+ padding: (0, layout_1.isTablet)() ? 25 : 16,
23
+ width: (0, layout_1.isTablet)() ? 350 : 250,
24
+ marginTop: (0, layout_1.isTablet)() ? 250 : 140,
24
25
  alignItems: 'center'
25
26
  },
26
27
  text: {
27
28
  color: theme.textColor3,
28
29
  fontFamily: theme.fontFamily1,
29
- fontSize: layout_1.isTablet() ? 25 : 16,
30
+ fontSize: (0, layout_1.isTablet)() ? 25 : 16,
30
31
  textAlign: 'center',
31
- marginTop: layout_1.isTablet() ? 15 : 5,
32
+ marginTop: (0, layout_1.isTablet)() ? 15 : 5,
32
33
  width: '100%'
33
34
  }
34
35
  });
@@ -37,14 +38,14 @@ class Message extends React.Component {
37
38
  render() {
38
39
  const { message, visible, type, onRequestClose, nativeID, textStyle } = this.props;
39
40
  const styles = this.getStyles();
40
- const theme = theme_1.getTheme();
41
+ const theme = (0, theme_1.getTheme)();
41
42
  return (React.createElement(Modal_1.Modal, { visible: visible, onRequestClose: onRequestClose, overlayStyle: styles.overlay },
42
43
  React.createElement(react_native_1.View, { nativeID: nativeID, style: styles.container },
43
- React.createElement(FontAwesome_1.default, { name: type === 'warning' ? 'warning' : 'check-circle', color: type === 'warning' ? theme.warningColor : theme.successColor, size: layout_1.isTablet() ? 52 : 42 }),
44
+ React.createElement(FontAwesome_1.default, { name: type === 'warning' ? 'warning' : 'check-circle', color: type === 'warning' ? theme.warningColor : theme.successColor, size: (0, layout_1.isTablet)() ? 52 : 42 }),
44
45
  React.createElement(react_native_1.Text, { style: [styles.text, textStyle] }, message))));
45
46
  }
46
47
  }
48
+ exports.Message = Message;
47
49
  Message.defaultProps = {
48
50
  type: 'info'
49
51
  };
50
- exports.Message = Message;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Modal = void 0;
3
4
  const React = require("react");
4
5
  const react_native_web_modal_1 = require("react-native-web-modal");
5
6
  const react_native_1 = require("react-native");
@@ -43,7 +43,7 @@ export declare class MultiSelect extends React.Component<MultiSelectProperties,
43
43
  renderClosedWithOneLabel: (label: string) => JSX.Element;
44
44
  renderClosedWithOneIcon: (icon: string) => JSX.Element;
45
45
  renderClosedWithOneLabelAndIcon: (label: string, icon: string) => JSX.Element;
46
- renderClosedWithOne: (label?: string | undefined, icon?: string | undefined) => JSX.Element | null;
46
+ renderClosedWithOne: (label?: string, icon?: string) => JSX.Element | null;
47
47
  renderClosedWithMany: () => JSX.Element;
48
48
  renderClosedMultiSelect: (items: any, numOptions: number) => JSX.Element | null;
49
49
  getStyles: () => any;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MultiSelect = void 0;
3
4
  const React = require("react");
4
5
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
5
6
  const theme_1 = require("../modules/theme");
@@ -13,7 +14,7 @@ class MultiSelectItem extends React.Component {
13
14
  constructor() {
14
15
  super(...arguments);
15
16
  this.getStyles = () => {
16
- const theme = theme_1.getTheme();
17
+ const theme = (0, theme_1.getTheme)();
17
18
  const width = react_native_1.Dimensions.get('screen').width;
18
19
  const styles = react_native_1.StyleSheet.create({
19
20
  text: {
@@ -60,7 +61,7 @@ class MultiSelectItem extends React.Component {
60
61
  };
61
62
  this.renderWithLabelAndIcon = (label, icon) => {
62
63
  const { value, iconComponent, handleAdd, handleRemove } = this.props;
63
- const theme = theme_1.getTheme();
64
+ const theme = (0, theme_1.getTheme)();
64
65
  const styles = this.getStyles();
65
66
  return (React.createElement(react_native_1.View, { style: styles.rowView },
66
67
  React.createElement(react_native_1.View, { style: styles.switch },
@@ -97,7 +98,7 @@ class MultiSelectItem extends React.Component {
97
98
  };
98
99
  this.renderWithIcon = (icon) => {
99
100
  const { value, iconComponent, handleAdd, handleRemove } = this.props;
100
- const theme = theme_1.getTheme();
101
+ const theme = (0, theme_1.getTheme)();
101
102
  const styles = this.getStyles();
102
103
  return (React.createElement(react_native_1.View, { style: styles.rowView },
103
104
  React.createElement(react_native_1.View, { style: styles.switch },
@@ -188,7 +189,7 @@ class MultiSelect extends React.Component {
188
189
  };
189
190
  this.renderClosedWithOneIcon = (icon) => {
190
191
  const { iconComponent } = this.props;
191
- const theme = theme_1.getTheme();
192
+ const theme = (0, theme_1.getTheme)();
192
193
  const styles = this.getStyles();
193
194
  return (React.createElement(react_native_1.View, { style: styles.rowView },
194
195
  iconComponent ? (React.createElement(iconComponent, {
@@ -200,7 +201,7 @@ class MultiSelect extends React.Component {
200
201
  };
201
202
  this.renderClosedWithOneLabelAndIcon = (label, icon) => {
202
203
  const { iconComponent } = this.props;
203
- const theme = theme_1.getTheme();
204
+ const theme = (0, theme_1.getTheme)();
204
205
  const styles = this.getStyles();
205
206
  return (React.createElement(react_native_1.View, { style: styles.rowView },
206
207
  React.createElement(react_native_1.View, { style: styles.iconView }, iconComponent ? (React.createElement(iconComponent, {
@@ -246,7 +247,7 @@ class MultiSelect extends React.Component {
246
247
  }
247
248
  };
248
249
  this.getStyles = () => {
249
- const theme = theme_1.getTheme();
250
+ const theme = (0, theme_1.getTheme)();
250
251
  const styles = react_native_1.StyleSheet.create({
251
252
  container: {
252
253
  paddingHorizontal: 16,
@@ -258,7 +259,7 @@ class MultiSelect extends React.Component {
258
259
  label: {
259
260
  color: theme.textColor2,
260
261
  fontFamily: theme.fontFamily2,
261
- fontSize: layout_1.isTablet() ? 15 : 12,
262
+ fontSize: (0, layout_1.isTablet)() ? 15 : 12,
262
263
  lineHeight: 16
263
264
  },
264
265
  textView: {
@@ -332,7 +333,7 @@ class MultiSelect extends React.Component {
332
333
  const { label, items, emptyMessage, disabled, iconComponent, okButtonDescription, cancelButtonDescription } = this.props;
333
334
  const selectedItems = items.filter(x => selectedValues.includes(x.value));
334
335
  const styles = this.getStyles();
335
- const theme = theme_1.getTheme();
336
+ const theme = (0, theme_1.getTheme)();
336
337
  return (React.createElement(react_native_1.TouchableWithoutFeedback, { onPress: () => this.setState({ modalOpen: true }), disabled: disabled },
337
338
  React.createElement(react_native_1.View, { style: [styles.container, disabled ? styles.readonly : null] },
338
339
  React.createElement(react_native_1.Text, { style: styles.label }, label),
@@ -365,6 +366,7 @@ class MultiSelect extends React.Component {
365
366
  React.createElement(Button_1.Button, { text: okButtonDescription || 'Ok', style: styles.buttonOk, onPress: this.handleSave })))))));
366
367
  }
367
368
  }
369
+ exports.MultiSelect = MultiSelect;
368
370
  MultiSelect.defaultProps = {
369
371
  emptyMessage: 'Não há registros cadastrados',
370
372
  selectedAllDescription: 'Todos',
@@ -373,4 +375,3 @@ MultiSelect.defaultProps = {
373
375
  okButtonDescription: 'Ok',
374
376
  cancelButtonDescription: 'Cancelar'
375
377
  };
376
- exports.MultiSelect = MultiSelect;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoRecordMessage = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
@@ -11,7 +12,7 @@ class NoRecordMessage extends React.Component {
11
12
  this.getStyles = () => {
12
13
  return react_native_1.StyleSheet.create({
13
14
  text: {
14
- fontSize: layout_1.isTablet() ? 28 : 18,
15
+ fontSize: (0, layout_1.isTablet)() ? 28 : 18,
15
16
  color: '#969696',
16
17
  textAlign: 'center'
17
18
  },
@@ -27,7 +28,7 @@ class NoRecordMessage extends React.Component {
27
28
  }
28
29
  const styles = this.getStyles();
29
30
  return (React.createElement(react_native_1.View, { style: styles.view },
30
- React.createElement(FontAwesome_1.default, { name: 'exclamation-triangle', size: layout_1.isTablet() ? 80 : 60, style: styles.icon }),
31
+ React.createElement(FontAwesome_1.default, { name: 'exclamation-triangle', size: (0, layout_1.isTablet)() ? 80 : 60, style: styles.icon }),
31
32
  React.createElement(Space_1.Space, { height: 5 }),
32
33
  React.createElement(react_native_1.Text, { style: styles.text }, message)));
33
34
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Question = void 0;
3
4
  const React = require("react");
4
5
  const react_native_web_modal_1 = require("react-native-web-modal");
5
6
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
@@ -12,7 +13,7 @@ class Question extends React.Component {
12
13
  constructor() {
13
14
  super(...arguments);
14
15
  this.getStyles = () => {
15
- const theme = theme_1.getTheme();
16
+ const theme = (0, theme_1.getTheme)();
16
17
  const styles = react_native_1.StyleSheet.create({
17
18
  botoesAcao: {
18
19
  flexDirection: 'row',
@@ -28,22 +29,22 @@ class Question extends React.Component {
28
29
  text: {
29
30
  color: theme.questionTextColor,
30
31
  fontFamily: theme.fontFamily1,
31
- fontSize: layout_1.isTablet() ? 25 : 16,
32
+ fontSize: (0, layout_1.isTablet)() ? 25 : 16,
32
33
  textAlign: 'center',
33
- marginTop: layout_1.isTablet() ? 15 : 5,
34
+ marginTop: (0, layout_1.isTablet)() ? 15 : 5,
34
35
  width: '100%'
35
36
  },
36
37
  container: {
37
38
  backgroundColor: theme.backgroundColor1,
38
39
  borderRadius: 6,
39
- padding: layout_1.isTablet() ? 25 : 16,
40
- width: layout_1.isTablet() ? 350 : 250,
41
- marginTop: layout_1.isTablet() ? 250 : 140,
40
+ padding: (0, layout_1.isTablet)() ? 25 : 16,
41
+ width: (0, layout_1.isTablet)() ? 350 : 250,
42
+ marginTop: (0, layout_1.isTablet)() ? 250 : 140,
42
43
  alignItems: 'center'
43
44
  },
44
45
  icon: {
45
46
  color: theme.textColor3,
46
- fontSize: layout_1.isTablet() ? 52 : 42
47
+ fontSize: (0, layout_1.isTablet)() ? 52 : 42
47
48
  }
48
49
  });
49
50
  return styles;
@@ -60,11 +61,11 @@ class Question extends React.Component {
60
61
  React.createElement(Space_1.Space, null),
61
62
  React.createElement(react_native_1.View, { style: styles.botoesAcao },
62
63
  React.createElement(Button_1.Button, { text: cancelButton.text, onPress: cancelButton.onPress, style: [
63
- { flex: 1, marginRight: layout_1.isTablet() ? 13 : 8 },
64
+ { flex: 1, marginRight: (0, layout_1.isTablet)() ? 13 : 8 },
64
65
  cancelButton.style
65
66
  ], textStyle: cancelButton.textStyle, primary: false, nativeID: cancelButton.nativeID }),
66
67
  React.createElement(Button_1.Button, { text: okButton.text, onPress: okButton.onPress, style: [
67
- { flex: 1, marginLeft: layout_1.isTablet() ? 13 : 8 },
68
+ { flex: 1, marginLeft: (0, layout_1.isTablet)() ? 13 : 8 },
68
69
  okButton.style
69
70
  ], textStyle: okButton.textStyle, primary: true, nativeID: okButton.nativeID }))))));
70
71
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RadioButton = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const theme_1 = require("../modules/theme");
@@ -7,7 +8,7 @@ class RadioButton extends React.Component {
7
8
  constructor() {
8
9
  super(...arguments);
9
10
  this.getStyles = () => {
10
- const theme = theme_1.getTheme();
11
+ const theme = (0, theme_1.getTheme)();
11
12
  const styles = react_native_1.StyleSheet.create({
12
13
  radioContainer: {
13
14
  flexDirection: 'row',
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RadioGroup = void 0;
3
4
  const React = require("react");
4
5
  const react_native_1 = require("react-native");
5
6
  const theme_1 = require("../modules/theme");
@@ -8,7 +9,7 @@ class RadioGroup extends React.Component {
8
9
  constructor() {
9
10
  super(...arguments);
10
11
  this.getStyles = () => {
11
- const theme = theme_1.getTheme();
12
+ const theme = (0, theme_1.getTheme)();
12
13
  const styles = react_native_1.StyleSheet.create({
13
14
  container: {
14
15
  borderColor: theme.borderColor1,
@@ -19,15 +20,15 @@ class RadioGroup extends React.Component {
19
20
  justifyContent: 'space-around'
20
21
  },
21
22
  item: {
22
- paddingVertical: layout_1.isTablet() ? 10 : 5,
23
+ paddingVertical: (0, layout_1.isTablet)() ? 10 : 5,
23
24
  borderColor: theme.borderColor1,
24
25
  flex: 1,
25
26
  alignItems: 'center'
26
27
  },
27
28
  itemText: {
28
29
  fontFamily: theme.fontFamily1,
29
- fontSize: layout_1.isTablet() ? 16 : 12,
30
- lineHeight: layout_1.isTablet() ? 20 : 16,
30
+ fontSize: (0, layout_1.isTablet)() ? 16 : 12,
31
+ lineHeight: (0, layout_1.isTablet)() ? 20 : 16,
31
32
  color: theme.textColor3
32
33
  },
33
34
  selectedItem: {