etendo-ui-library 1.3.21 → 1.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-native/assets/images/icons/MaximizeIcon.d.ts +7 -0
- package/dist-native/assets/images/icons/MaximizeIcon.js +1 -0
- package/dist-native/assets/images/icons/index.d.ts +2 -1
- package/dist-native/assets/images/icons/index.js +1 -1
- package/dist-native/components/button/Button.js +1 -1
- package/dist-native/components/modal/Modal.d.ts +4 -0
- package/dist-native/components/modal/Modal.js +1 -0
- package/dist-native/components/modal/Modal.styles.d.ts +28 -0
- package/dist-native/components/modal/Modal.styles.js +1 -0
- package/dist-native/components/modal/Modal.types.d.ts +17 -0
- package/dist-native/components/modal/Modal.types.js +1 -0
- package/dist-native/components/modal/components/maximizedView/MaximizedView.d.ts +4 -0
- package/dist-native/components/modal/components/maximizedView/MaximizedView.js +1 -0
- package/dist-native/components/modal/components/maximizedView/MaximizedView.styles.d.ts +34 -0
- package/dist-native/components/modal/components/maximizedView/MaximizedView.styles.js +1 -0
- package/dist-native/components/modal/components/maximizedView/MaximizedView.types.d.ts +9 -0
- package/dist-native/components/modal/components/maximizedView/MaximizedView.types.js +1 -0
- package/dist-native/components/modal/components/minimizedView/MinimizedView.d.ts +4 -0
- package/dist-native/components/modal/components/minimizedView/MinimizedView.js +1 -0
- package/dist-native/components/modal/components/minimizedView/MinimizedView.styles.d.ts +51 -0
- package/dist-native/components/modal/components/minimizedView/MinimizedView.styles.js +1 -0
- package/dist-native/components/modal/components/minimizedView/MinimizedView.types.d.ts +8 -0
- package/dist-native/components/modal/components/minimizedView/MinimizedView.types.js +1 -0
- package/dist-native/components/modal/index.d.ts +2 -0
- package/dist-native/components/modal/index.js +1 -0
- package/dist-web/assets/images/icons/MaximizeIcon.d.ts +7 -0
- package/dist-web/assets/images/icons/MaximizeIcon.js +23 -0
- package/dist-web/assets/images/icons/index.d.ts +2 -1
- package/dist-web/assets/images/icons/index.js +2 -1
- package/dist-web/components/button/Button.js +6 -4
- package/dist-web/components/button/Button.styles.js +2 -2
- package/dist-web/components/containers/layout/Layout.style.js +2 -2
- package/dist-web/components/input/Input.style.js +2 -2
- package/dist-web/components/modal/Modal.d.ts +4 -0
- package/dist-web/components/modal/Modal.js +81 -0
- package/dist-web/components/modal/Modal.styles.d.ts +28 -0
- package/dist-web/components/modal/Modal.styles.js +31 -0
- package/dist-web/components/modal/Modal.types.d.ts +17 -0
- package/dist-web/components/modal/Modal.types.js +1 -0
- package/dist-web/components/modal/components/maximizedView/MaximizedView.d.ts +4 -0
- package/dist-web/components/modal/components/maximizedView/MaximizedView.js +49 -0
- package/dist-web/components/modal/components/maximizedView/MaximizedView.styles.d.ts +34 -0
- package/dist-web/components/modal/components/maximizedView/MaximizedView.styles.js +27 -0
- package/dist-web/components/modal/components/maximizedView/MaximizedView.types.d.ts +9 -0
- package/dist-web/components/modal/components/maximizedView/MaximizedView.types.js +1 -0
- package/dist-web/components/modal/components/minimizedView/MinimizedView.d.ts +4 -0
- package/dist-web/components/modal/components/minimizedView/MinimizedView.js +44 -0
- package/dist-web/components/modal/components/minimizedView/MinimizedView.styles.d.ts +51 -0
- package/dist-web/components/modal/components/minimizedView/MinimizedView.styles.js +54 -0
- package/dist-web/components/modal/components/minimizedView/MinimizedView.types.d.ts +8 -0
- package/dist-web/components/modal/components/minimizedView/MinimizedView.types.js +1 -0
- package/dist-web/components/modal/index.d.ts +2 -0
- package/dist-web/components/modal/index.js +2 -0
- package/dist-web/components/navbar/components/DrawerLateral/DrawerLateralSubMenu.js +2 -2
- package/dist-web/components/tab/Tab.js +2 -2
- package/dist-web/components/tab/Tab.styles.js +2 -2
- package/dist-web/components/viewEtendo/ViewEtendo.js +2 -2
- package/package.json +1 -1
- package/dist-native/components/docs/screens/changelog/ChangeLogScreen.d.ts +0 -3
- package/dist-native/components/docs/screens/changelog/ChangeLogScreen.js +0 -1
- package/dist-native/components/docs/screens/changelog/ChangeLogScreen.style.d.ts +0 -27
- package/dist-native/components/docs/screens/changelog/ChangeLogScreen.style.js +0 -1
- package/dist-native/components/docs/screens/getStarted/GetStartedScreen.d.ts +0 -3
- package/dist-native/components/docs/screens/getStarted/GetStartedScreen.js +0 -1
- package/dist-native/components/docs/screens/getStarted/GetStartedScreen.style.d.ts +0 -67
- package/dist-native/components/docs/screens/getStarted/GetStartedScreen.style.js +0 -1
- package/dist-web/components/docs/screens/changelog/ChangeLogScreen.d.ts +0 -3
- package/dist-web/components/docs/screens/changelog/ChangeLogScreen.js +0 -32
- package/dist-web/components/docs/screens/changelog/ChangeLogScreen.style.d.ts +0 -27
- package/dist-web/components/docs/screens/changelog/ChangeLogScreen.style.js +0 -29
- package/dist-web/components/docs/screens/getStarted/GetStartedScreen.d.ts +0 -3
- package/dist-web/components/docs/screens/getStarted/GetStartedScreen.js +0 -148
- package/dist-web/components/docs/screens/getStarted/GetStartedScreen.style.d.ts +0 -67
- package/dist-web/components/docs/screens/getStarted/GetStartedScreen.style.js +0 -69
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
modalContainer: {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
flex: number;
|
|
6
|
+
height: "100%";
|
|
7
|
+
justifyContent: "center";
|
|
8
|
+
width: "100%";
|
|
9
|
+
};
|
|
10
|
+
modalContent: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
borderRadius: number;
|
|
13
|
+
flexDirection: "column";
|
|
14
|
+
height: "auto";
|
|
15
|
+
justifyContent: "space-between";
|
|
16
|
+
maxHeight: "45%" | "85%";
|
|
17
|
+
maxWidth: "85%";
|
|
18
|
+
padding: number;
|
|
19
|
+
width: "auto";
|
|
20
|
+
};
|
|
21
|
+
modalFullScreen: {
|
|
22
|
+
height: "100%";
|
|
23
|
+
maxHeight: "100%";
|
|
24
|
+
maxWidth: "100%";
|
|
25
|
+
width: "100%";
|
|
26
|
+
borderRadius: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native-web";
|
|
2
|
+
import { NEUTRAL_300 } from "../../styles/colors";
|
|
3
|
+
import { isDeviceTablet } from "../../helpers/table_utils";
|
|
4
|
+
export var styles = StyleSheet.create({
|
|
5
|
+
modalContainer: {
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
8
|
+
flex: 1,
|
|
9
|
+
height: '100%',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
width: '100%'
|
|
12
|
+
},
|
|
13
|
+
modalContent: {
|
|
14
|
+
backgroundColor: NEUTRAL_300,
|
|
15
|
+
borderRadius: 28,
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
height: 'auto',
|
|
18
|
+
justifyContent: 'space-between',
|
|
19
|
+
maxHeight: isDeviceTablet ? '45%' : '85%',
|
|
20
|
+
maxWidth: '85%',
|
|
21
|
+
padding: 24,
|
|
22
|
+
width: 'auto'
|
|
23
|
+
},
|
|
24
|
+
modalFullScreen: {
|
|
25
|
+
height: '100%',
|
|
26
|
+
maxHeight: '100%',
|
|
27
|
+
maxWidth: '100%',
|
|
28
|
+
width: '100%',
|
|
29
|
+
borderRadius: 0
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface IModalProps {
|
|
4
|
+
buttons?: ReactNode[];
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
disableTapOutside?: boolean;
|
|
7
|
+
fullScreen?: boolean;
|
|
8
|
+
handleSave?: any;
|
|
9
|
+
imageHeader?: ReactNode;
|
|
10
|
+
labelCloseButton: string;
|
|
11
|
+
labelSaveButton?: string;
|
|
12
|
+
setVisible: any;
|
|
13
|
+
styles?: ViewStyle;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
title: string;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollView, Text, TouchableOpacity, View } from "react-native-web";
|
|
3
|
+
import { ButtonContainer } from "../../../containers";
|
|
4
|
+
import { styles } from "./MaximizedView.styles";
|
|
5
|
+
import { Button } from "../../../button";
|
|
6
|
+
import { CancelIcon } from "../../../../assets/images/icons";
|
|
7
|
+
var MaximizedView = function MaximizedView(_ref) {
|
|
8
|
+
var buttonsToDisplay = _ref.buttonsToDisplay,
|
|
9
|
+
children = _ref.children,
|
|
10
|
+
setVisible = _ref.setVisible,
|
|
11
|
+
title = _ref.title;
|
|
12
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
13
|
+
style: {
|
|
14
|
+
justifyContent: 'flex-start'
|
|
15
|
+
}
|
|
16
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
17
|
+
style: styles.headerContainer
|
|
18
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
19
|
+
style: styles.titleCloseContainer
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
21
|
+
typeStyle: 'white',
|
|
22
|
+
iconLeft: /*#__PURE__*/React.createElement(CancelIcon, null),
|
|
23
|
+
onPress: function onPress() {
|
|
24
|
+
return setVisible(false);
|
|
25
|
+
}
|
|
26
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
27
|
+
numberOfLines: 1,
|
|
28
|
+
style: styles.modalTitle,
|
|
29
|
+
ellipsizeMode: "tail"
|
|
30
|
+
}, title)), (buttonsToDisplay === null || buttonsToDisplay === void 0 ? void 0 : buttonsToDisplay.length) && /*#__PURE__*/React.createElement(ButtonContainer, {
|
|
31
|
+
components: [buttonsToDisplay[buttonsToDisplay.length - 1]],
|
|
32
|
+
style: {
|
|
33
|
+
justifyContent: 'flex-end',
|
|
34
|
+
paddingVertical: 0
|
|
35
|
+
}
|
|
36
|
+
})), children && /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
37
|
+
activeOpacity: 1,
|
|
38
|
+
style: styles.childrenModalContainer
|
|
39
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
40
|
+
style: {
|
|
41
|
+
flexGrow: 0
|
|
42
|
+
}
|
|
43
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
onStartShouldSetResponder: function onStartShouldSetResponder() {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
}, children))));
|
|
48
|
+
};
|
|
49
|
+
export default MaximizedView;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
headerContainer: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
paddingTop: number;
|
|
5
|
+
justifyContent: "space-between";
|
|
6
|
+
width: "100%";
|
|
7
|
+
alignItems: "center";
|
|
8
|
+
};
|
|
9
|
+
titleCloseContainer: {
|
|
10
|
+
flexDirection: "row";
|
|
11
|
+
};
|
|
12
|
+
modalTitle: {
|
|
13
|
+
paddingBottom: number;
|
|
14
|
+
alignSelf: "center";
|
|
15
|
+
color: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
fontWeight: "500";
|
|
18
|
+
maxWidth: "95%";
|
|
19
|
+
textAlign: "center";
|
|
20
|
+
};
|
|
21
|
+
childrenModalContainer: {
|
|
22
|
+
borderBottomWidth: number;
|
|
23
|
+
maxHeight: "90%";
|
|
24
|
+
alignItems: "center";
|
|
25
|
+
borderBottomColor: string;
|
|
26
|
+
borderTopColor: string;
|
|
27
|
+
borderTopWidth: number;
|
|
28
|
+
display: "flex";
|
|
29
|
+
flexDirection: "column";
|
|
30
|
+
justifyContent: "center";
|
|
31
|
+
marginVertical: number;
|
|
32
|
+
paddingVertical: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { StyleSheet } from "react-native-web";
|
|
8
|
+
import { styles as modalBasicStyles } from "../minimizedView/MinimizedView.styles";
|
|
9
|
+
export var styles = StyleSheet.create({
|
|
10
|
+
headerContainer: _objectSpread(_objectSpread({}, modalBasicStyles.headerContainer), {}, {
|
|
11
|
+
flexDirection: 'row',
|
|
12
|
+
paddingTop: 16,
|
|
13
|
+
justifyContent: 'space-between',
|
|
14
|
+
width: '100%'
|
|
15
|
+
}),
|
|
16
|
+
titleCloseContainer: {
|
|
17
|
+
flexDirection: 'row'
|
|
18
|
+
},
|
|
19
|
+
modalTitle: _objectSpread(_objectSpread({}, modalBasicStyles.modalTitle), {}, {
|
|
20
|
+
paddingBottom: 0,
|
|
21
|
+
alignSelf: 'center'
|
|
22
|
+
}),
|
|
23
|
+
childrenModalContainer: _objectSpread(_objectSpread({}, modalBasicStyles.childrenModalContainer), {}, {
|
|
24
|
+
borderBottomWidth: 0,
|
|
25
|
+
maxHeight: '90%'
|
|
26
|
+
})
|
|
27
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollView, Text, TouchableOpacity, View } from "react-native-web";
|
|
3
|
+
import { ButtonContainer } from "../../../containers";
|
|
4
|
+
import { styles } from "./MinimizedView.styles";
|
|
5
|
+
var MinimizedView = function MinimizedView(_ref) {
|
|
6
|
+
var buttonsToDisplay = _ref.buttonsToDisplay,
|
|
7
|
+
children = _ref.children,
|
|
8
|
+
imageHeader = _ref.imageHeader,
|
|
9
|
+
subtitle = _ref.subtitle,
|
|
10
|
+
title = _ref.title;
|
|
11
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
|
|
12
|
+
style: styles.headerContainer
|
|
13
|
+
}, imageHeader && /*#__PURE__*/React.createElement(View, {
|
|
14
|
+
style: styles.imageHeaderContainer
|
|
15
|
+
}, imageHeader), /*#__PURE__*/React.createElement(Text, {
|
|
16
|
+
numberOfLines: 1,
|
|
17
|
+
style: styles.modalTitle,
|
|
18
|
+
ellipsizeMode: "tail"
|
|
19
|
+
}, title), subtitle && /*#__PURE__*/React.createElement(Text, {
|
|
20
|
+
numberOfLines: 2,
|
|
21
|
+
style: styles.modalSubtitle,
|
|
22
|
+
ellipsizeMode: "tail"
|
|
23
|
+
}, subtitle)), children && /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
24
|
+
activeOpacity: 1,
|
|
25
|
+
style: styles.childrenModalContainer
|
|
26
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
27
|
+
style: {
|
|
28
|
+
flexGrow: 0
|
|
29
|
+
}
|
|
30
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
31
|
+
onStartShouldSetResponder: function onStartShouldSetResponder() {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}, children))), /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
style: styles.buttonModalContainer
|
|
36
|
+
}, (buttonsToDisplay === null || buttonsToDisplay === void 0 ? void 0 : buttonsToDisplay.length) && /*#__PURE__*/React.createElement(ButtonContainer, {
|
|
37
|
+
components: buttonsToDisplay,
|
|
38
|
+
style: {
|
|
39
|
+
justifyContent: 'flex-end',
|
|
40
|
+
paddingVertical: 0
|
|
41
|
+
}
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
44
|
+
export default MinimizedView;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
headerContainer: {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
flexDirection: "column";
|
|
5
|
+
justifyContent: "space-between";
|
|
6
|
+
width: "100%";
|
|
7
|
+
};
|
|
8
|
+
imageHeaderContainer: {
|
|
9
|
+
alignItems: "center";
|
|
10
|
+
flexDirection: "row";
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
paddingBottom: number;
|
|
13
|
+
};
|
|
14
|
+
modalTitle: {
|
|
15
|
+
alignSelf: "flex-start";
|
|
16
|
+
color: string;
|
|
17
|
+
fontSize: number;
|
|
18
|
+
fontWeight: "500";
|
|
19
|
+
maxWidth: "95%";
|
|
20
|
+
paddingBottom: number;
|
|
21
|
+
textAlign: "center";
|
|
22
|
+
};
|
|
23
|
+
modalSubtitle: {
|
|
24
|
+
alignSelf: "flex-start";
|
|
25
|
+
color: string;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
fontWeight: "500";
|
|
28
|
+
maxWidth: "95%";
|
|
29
|
+
textAlign: "left";
|
|
30
|
+
};
|
|
31
|
+
childrenModalContainer: {
|
|
32
|
+
alignItems: "center";
|
|
33
|
+
borderBottomColor: string;
|
|
34
|
+
borderBottomWidth: number;
|
|
35
|
+
borderTopColor: string;
|
|
36
|
+
borderTopWidth: number;
|
|
37
|
+
display: "flex";
|
|
38
|
+
flexDirection: "column";
|
|
39
|
+
justifyContent: "center";
|
|
40
|
+
marginVertical: number;
|
|
41
|
+
maxHeight: "60%";
|
|
42
|
+
paddingVertical: number;
|
|
43
|
+
};
|
|
44
|
+
buttonModalContainer: {
|
|
45
|
+
flexDirection: "row";
|
|
46
|
+
justifyContent: "flex-end";
|
|
47
|
+
};
|
|
48
|
+
buttonContainer: {
|
|
49
|
+
width: "40%" | "45%";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native-web";
|
|
2
|
+
import { NEUTRAL_400, NEUTRAL_800, PRIMARY_100 } from "../../../../styles/colors";
|
|
3
|
+
import { isDeviceTablet } from "../../../../helpers/table_utils";
|
|
4
|
+
export var styles = StyleSheet.create({
|
|
5
|
+
headerContainer: {
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
justifyContent: 'space-between',
|
|
9
|
+
width: '100%'
|
|
10
|
+
},
|
|
11
|
+
imageHeaderContainer: {
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
flexDirection: 'row',
|
|
14
|
+
justifyContent: 'center',
|
|
15
|
+
paddingBottom: 16
|
|
16
|
+
},
|
|
17
|
+
modalTitle: {
|
|
18
|
+
alignSelf: 'flex-start',
|
|
19
|
+
color: PRIMARY_100,
|
|
20
|
+
fontSize: 22,
|
|
21
|
+
fontWeight: '500',
|
|
22
|
+
maxWidth: '95%',
|
|
23
|
+
paddingBottom: 12,
|
|
24
|
+
textAlign: 'center'
|
|
25
|
+
},
|
|
26
|
+
modalSubtitle: {
|
|
27
|
+
alignSelf: 'flex-start',
|
|
28
|
+
color: NEUTRAL_800,
|
|
29
|
+
fontSize: 14,
|
|
30
|
+
fontWeight: '500',
|
|
31
|
+
maxWidth: '95%',
|
|
32
|
+
textAlign: 'left'
|
|
33
|
+
},
|
|
34
|
+
childrenModalContainer: {
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
borderBottomColor: NEUTRAL_400,
|
|
37
|
+
borderBottomWidth: 1,
|
|
38
|
+
borderTopColor: NEUTRAL_400,
|
|
39
|
+
borderTopWidth: 1,
|
|
40
|
+
display: 'flex',
|
|
41
|
+
flexDirection: 'column',
|
|
42
|
+
justifyContent: 'center',
|
|
43
|
+
marginVertical: 12,
|
|
44
|
+
maxHeight: '60%',
|
|
45
|
+
paddingVertical: 8
|
|
46
|
+
},
|
|
47
|
+
buttonModalContainer: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
justifyContent: 'flex-end'
|
|
50
|
+
},
|
|
51
|
+
buttonContainer: {
|
|
52
|
+
width: isDeviceTablet ? '40%' : '45%'
|
|
53
|
+
}
|
|
54
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { NEUTRAL_0, NEUTRAL_50, NEUTRAL_500, NEUTRAL_600, NEUTRAL_700, PRIMARY_100 } from "../../styles/colors";
|
|
8
8
|
var commonTabStyles = {
|
|
9
9
|
alignItems: 'center',
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Platform, View } from "react-native-web";
|
|
9
9
|
export var ViewEtendo = function ViewEtendo(props) {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var _react=_interopRequireDefault(require("react"));var _ChangeLogScreen=require("./ChangeLogScreen.style");var _addMargin=_interopRequireDefault(require("../../../../helpers/addMargin"));var _this=this,_jsxFileName="/home/jenkins/agent/workspace/etendo_ui_library_develop/etendo_ui_library/src/components/docs/screens/changelog/ChangeLogScreen.tsx";var ChangeLogScreen=function ChangeLogScreen(){return _react.default.createElement(_reactNative.View,{style:(0,_addMargin.default)(),__self:_this,__source:{fileName:_jsxFileName,lineNumber:8,columnNumber:5}},_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.title,__self:_this,__source:{fileName:_jsxFileName,lineNumber:9,columnNumber:7}},"Change Log"),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.version,__self:_this,__source:{fileName:_jsxFileName,lineNumber:10,columnNumber:7}},"1.1.0"),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.feature,__self:_this,__source:{fileName:_jsxFileName,lineNumber:11,columnNumber:7}},"Features"),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:12,columnNumber:7}},"\u25CF Add Button component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:13,columnNumber:7}},"\u25CF Add CardDropdown component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:14,columnNumber:7}},"\u25CF Add Input component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:15,columnNumber:7}},"\u25CF Add Navbar component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:16,columnNumber:7}},"\u25CF Add Pagination component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:17,columnNumber:7}},"\u25CF Add Statusbar component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:18,columnNumber:7}},"\u25CF Add Tab component."),_react.default.createElement(_reactNative.Text,{style:_ChangeLogScreen.styles.items,__self:_this,__source:{fileName:_jsxFileName,lineNumber:19,columnNumber:7}},"\u25CF Add Table component."));};var _default=exports.default=ChangeLogScreen;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const styles: {
|
|
2
|
-
title: {
|
|
3
|
-
fontSize: number;
|
|
4
|
-
fontWeight: "600";
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
version: {
|
|
8
|
-
fontSize: number;
|
|
9
|
-
fontWeight: "600";
|
|
10
|
-
marginBottom: number;
|
|
11
|
-
color: string;
|
|
12
|
-
borderBottomWidth: number;
|
|
13
|
-
borderColor: string;
|
|
14
|
-
};
|
|
15
|
-
feature: {
|
|
16
|
-
fontSize: number;
|
|
17
|
-
fontWeight: "600";
|
|
18
|
-
color: string;
|
|
19
|
-
marginBottom: number;
|
|
20
|
-
};
|
|
21
|
-
items: {
|
|
22
|
-
color: string;
|
|
23
|
-
fontSize: number;
|
|
24
|
-
marginLeft: number;
|
|
25
|
-
marginBottom: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.styles=void 0;var _reactNative=require("react-native");var _colors=require("../../../../styles/colors");var styles=exports.styles=_reactNative.StyleSheet.create({title:{fontSize:30,fontWeight:'600',color:_colors.NEUTRAL_100},version:{fontSize:30,fontWeight:'600',marginBottom:10,color:_colors.NEUTRAL_100,borderBottomWidth:1,borderColor:_colors.NEUTRAL_10},feature:{fontSize:18,fontWeight:'600',color:_colors.NEUTRAL_100,marginBottom:10},items:{color:_colors.NEUTRAL_100,fontSize:15,marginLeft:20,marginBottom:10}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var _react=_interopRequireDefault(require("react"));var _clipboard=_interopRequireDefault(require("@react-native-clipboard/clipboard"));var _GetStartedScreen=require("./GetStartedScreen.style");var _addMargin=_interopRequireDefault(require("../../../../helpers/addMargin"));var _this=this,_jsxFileName="/home/jenkins/agent/workspace/etendo_ui_library_develop/etendo_ui_library/src/components/docs/screens/getStarted/GetStartedScreen.tsx";var GetStartedScreen=function GetStartedScreen(){var copyToClipboardYarn=function copyToClipboardYarn(){_clipboard.default.setString('yarn add etendo-ui-library');};var copyToClipboardNpm=function copyToClipboardNpm(){_clipboard.default.setString('npm install etendo-ui-library');};return _react.default.createElement(_reactNative.View,{style:(0,_addMargin.default)(),__self:_this,__source:{fileName:_jsxFileName,lineNumber:17,columnNumber:5}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.title,__self:_this,__source:{fileName:_jsxFileName,lineNumber:18,columnNumber:7}},"Etendo UI"),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.title,__self:_this,__source:{fileName:_jsxFileName,lineNumber:20,columnNumber:7}}),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.description,__self:_this,__source:{fileName:_jsxFileName,lineNumber:21,columnNumber:7}},"Etendo UI Library is a versatile and easy-to-use collection of user interface components, specifically designed for React Native projects and compiled for web using react-native-web. This library aims to simplify the development process and enhance user experience by providing a consistent and visually appealing set of UI components. These components are built with performance and customization in mind, ensuring your project stands out with a Etendo unique appearance."),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.subTitle,__self:_this,__source:{fileName:_jsxFileName,lineNumber:30,columnNumber:7}},"Installation"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:31,columnNumber:7}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardTitle,__self:_this,__source:{fileName:_jsxFileName,lineNumber:32,columnNumber:9}},"NPM"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:33,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:34,columnNumber:11}},"$ npm install etendo-ui-library"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardNpm,__self:_this,__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:13}},"Copy")))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:45,columnNumber:7}},"Or"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:46,columnNumber:7}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardTitle,__self:_this,__source:{fileName:_jsxFileName,lineNumber:47,columnNumber:9}},"Yarn"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:48,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:11}},"$ yarn add etendo-ui-library"),_react.default.createElement(_reactNative.TouchableOpacity,{style:[_GetStartedScreen.styles.clipboardCopyContainer],onPress:copyToClipboardYarn,__self:_this,__source:{fileName:_jsxFileName,lineNumber:50,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.titleSetup,__self:_this,__source:{fileName:_jsxFileName,lineNumber:57,columnNumber:9}},"Android Project Setup"),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:58,columnNumber:9}},"When creating a new React Native project the following must be added in the metro.config.js file:"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:11}},"const {getDefaultConfig} = require('metro-config');\n\n module.exports = (async () => {\n const {\n resolver: {sourceExts, assetExts},\n } = await getDefaultConfig();\n return {\n transformer: {\n getTransformOptions: async () => ({\n transform: {\n experimentalImportSupport: false,\n inlineRequires: true,\n },\n }),\n babelTransformerPath: require.resolve('react-native-svg-transformer'),\n },\n resolver: {\n assetExts: assetExts.filter(ext => ext !== 'svg'),\n sourceExts: [...sourceExts, 'svg'],\n },\n };\n })();"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardYarn,__self:_this,__source:{fileName:_jsxFileName,lineNumber:87,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:91,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:9}},"And the version of react native should be: ",_react.default.createElement("b",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:54}},"\"0.68.1\"")," ",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:70}}),' ',_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:11}}),"Using the next command:"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:99,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:100,columnNumber:11}},' ',"npx react-native init appName --version 0.68.1"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardYarn,__self:_this,__source:{fileName:_jsxFileName,lineNumber:104,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:108,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:111,columnNumber:9}},"and install the next dependencies whit the follow commands:"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:114,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:115,columnNumber:11}},"yarn add react-native-svg"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardNpm,__self:_this,__source:{fileName:_jsxFileName,lineNumber:116,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:123,columnNumber:9}},"And"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:11}},"yarn add react-native-svg-tranformer"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardNpm,__self:_this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:132,columnNumber:13}},"Copy")))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.titleSetup,__self:_this,__source:{fileName:_jsxFileName,lineNumber:136,columnNumber:7}},"Web Project Setup (React Web)"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:137,columnNumber:7}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:9}},"To create a new Next.js project:"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:141,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:142,columnNumber:11}},"npx create-next-app "),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardNpm,__self:_this,__source:{fileName:_jsxFileName,lineNumber:143,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:147,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:150,columnNumber:9}},"After initializing the Next.js project, modify your next.config.js file to include the following configuration:"),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:154,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:155,columnNumber:11}},"const path = require('path');\n const withTM = require('next-transpile-modules')(['etendo-ui-library']);\n\n module.exports = withTM({\n webpack: (config, {defaultLoaders}) => {\n config.resolve.alias = {\n ...(config.resolve.alias || {}),\n 'react-native$': 'react-native-web',\n 'react-native-svg$': 'react-native-svg-web',\n };\n\n config.module.rules.push({\n test: /.tsx?$/,\n use: [\n defaultLoaders.babel,\n {\n loader: 'ts-loader',\n options: {\n transpileOnly: true,\n experimentalWatchApi: true,\n },\n },\n ],\n });\n\n config.module.rules.push({\n test: /.css$/,\n use: [\n defaultLoaders.babel,\n {\n loader: 'etendo-ui-library/dist/webpack/css-loader.js',\n options: {\n importLoaders: 1,\n modules: {\n localIdentName: '[name]__[local]__[hash:base64:5]',\n },\n },\n },\n 'postcss-loader',\n ],\n });\n return config;\n },\n });"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardYarn,__self:_this,__source:{fileName:_jsxFileName,lineNumber:201,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:205,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:208,columnNumber:9}},_react.default.createElement("b",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:209,columnNumber:11}},"Next, install the following dependencies using the commands below:")),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:213,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:214,columnNumber:11}},"yarn add react-native-web",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:216,columnNumber:13}}),"yarn add next-transpile-modules",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:218,columnNumber:13}}),"yarn add -D ts-loader",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:220,columnNumber:13}}),"yarn add babel-loader --dev",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:222,columnNumber:13}}),"yarn add react-native-svg-transformer",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:13}}),"yarn add react-native-svg",_react.default.createElement("br",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:13}}),"yarn add --dev babel-plugin-module-resolver"),_react.default.createElement(_reactNative.TouchableOpacity,{style:_GetStartedScreen.styles.clipboardCopyContainer,onPress:copyToClipboardYarn,__self:_this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:11}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardCopyText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:233,columnNumber:13}},"Copy"))),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:9}},"Usage To use a component from the etendo-ui-library, import it and use it in your JSX code. Below is an example of how to use the Input component."),_react.default.createElement(_reactNative.View,{style:_GetStartedScreen.styles.clipboardContent,__self:_this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.clipboardText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:242,columnNumber:11}},"//import\n import Input from 'etendo-ui-library/components/input/Input';\n\n //usage\n <Input\n titleLabel=\"ReadOnly\"\n helperText=\"Start Date\"\n placeholder=\"Write a text\"\n disabled={false}\n value=\"password\"\n typeField=\"textInputPassword\"\n isError={true}\n keyboardType=\"text\"\n />;")),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:9}},_react.default.createElement("b",{__self:_this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:11}},"Remember to replace the attribute values with your desired ones!!")),_react.default.createElement(_reactNative.Text,{style:_GetStartedScreen.styles.descriptionInstall,__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:9}},"That's it! You are now ready to use the etendo-ui-library in your React Web application. Please refer to the detailed documentation on Storybook and NPM for more examples and use cases.")));};var _default=exports.default=GetStartedScreen;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export declare const styles: {
|
|
2
|
-
title: {
|
|
3
|
-
fontSize: number;
|
|
4
|
-
fontWeight: "600";
|
|
5
|
-
marginBottom: number;
|
|
6
|
-
color: string;
|
|
7
|
-
};
|
|
8
|
-
titleSetup: {
|
|
9
|
-
fontSize: number;
|
|
10
|
-
fontWeight: "600";
|
|
11
|
-
marginBottom: number;
|
|
12
|
-
color: string;
|
|
13
|
-
marginTop: number;
|
|
14
|
-
borderBottomWidth: number;
|
|
15
|
-
width: "100%";
|
|
16
|
-
borderBottomColor: string;
|
|
17
|
-
};
|
|
18
|
-
description: {
|
|
19
|
-
color: string;
|
|
20
|
-
marginBottom: number;
|
|
21
|
-
};
|
|
22
|
-
subTitle: {
|
|
23
|
-
fontSize: number;
|
|
24
|
-
fontWeight: "600";
|
|
25
|
-
borderBottomWidth: number;
|
|
26
|
-
borderBottomColor: string;
|
|
27
|
-
color: string;
|
|
28
|
-
};
|
|
29
|
-
clipboardContainer: {
|
|
30
|
-
alignItems: "flex-start";
|
|
31
|
-
};
|
|
32
|
-
clipboardTitle: {
|
|
33
|
-
fontSize: number;
|
|
34
|
-
fontWeight: "600";
|
|
35
|
-
marginTop: number;
|
|
36
|
-
color: string;
|
|
37
|
-
};
|
|
38
|
-
clipboardContent: {
|
|
39
|
-
alignItems: "flex-end";
|
|
40
|
-
borderWidth: number;
|
|
41
|
-
borderColor: string;
|
|
42
|
-
padding: number;
|
|
43
|
-
paddingBottom: number;
|
|
44
|
-
paddingRight: number;
|
|
45
|
-
};
|
|
46
|
-
clipboardText: {
|
|
47
|
-
fontSize: number;
|
|
48
|
-
color: string;
|
|
49
|
-
letterSpacing: number;
|
|
50
|
-
width: number;
|
|
51
|
-
};
|
|
52
|
-
clipboardCopyContainer: {
|
|
53
|
-
borderLeftWidth: number;
|
|
54
|
-
borderTopWidth: number;
|
|
55
|
-
borderColor: string;
|
|
56
|
-
padding: number;
|
|
57
|
-
};
|
|
58
|
-
clipboardCopyText: {
|
|
59
|
-
fontWeight: "600";
|
|
60
|
-
paddingHorizontal: number;
|
|
61
|
-
color: string;
|
|
62
|
-
};
|
|
63
|
-
descriptionInstall: {
|
|
64
|
-
marginTop: number;
|
|
65
|
-
marginBottom: number;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.styles=void 0;var _reactNative=require("react-native");var _colors=require("../../../../styles/colors");var styles=exports.styles=_reactNative.StyleSheet.create({title:{fontSize:30,fontWeight:'600',marginBottom:20,color:_colors.NEUTRAL_100},titleSetup:{fontSize:30,fontWeight:'600',marginBottom:20,color:_colors.NEUTRAL_100,marginTop:20,borderBottomWidth:1,width:'100%',borderBottomColor:_colors.NEUTRAL_10},description:{color:_colors.NEUTRAL_100,marginBottom:20},subTitle:{fontSize:26,fontWeight:'600',borderBottomWidth:1,borderBottomColor:_colors.NEUTRAL_10,color:_colors.NEUTRAL_100},clipboardContainer:{alignItems:'flex-start'},clipboardTitle:{fontSize:22,fontWeight:'600',marginTop:20,color:_colors.NEUTRAL_100},clipboardContent:{alignItems:'flex-end',borderWidth:1,borderColor:_colors.NEUTRAL_10,padding:15,paddingBottom:0,paddingRight:0},clipboardText:{fontSize:15,color:_colors.NEUTRAL_100,letterSpacing:1,width:400},clipboardCopyContainer:{borderLeftWidth:1,borderTopWidth:1,borderColor:_colors.NEUTRAL_10,padding:2},clipboardCopyText:{fontWeight:'600',paddingHorizontal:10,color:_colors.NEUTRAL_100},descriptionInstall:{marginTop:30,marginBottom:10}});
|