etendo-ui-library 1.3.35 → 1.3.36
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/components/cards/components/card/components/switchRowCard/SwitchRowCard.js +1 -1
- package/dist-native/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.d.ts +3 -0
- package/dist-native/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.js +1 -1
- package/dist-native/components/cards/components/card/components/switchTitleCard/SwitchTitleCard.style.d.ts +1 -0
- package/dist-native/components/cards/components/card/components/switchTitleCard/SwitchTitleCard.style.js +1 -1
- package/dist-web/components/cards/components/card/components/switchRowCard/SwitchRowCard.js +2 -0
- package/dist-web/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.d.ts +3 -0
- package/dist-web/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.js +4 -1
- package/dist-web/components/cards/components/card/components/switchTitleCard/SwitchTitleCard.style.d.ts +1 -0
- package/dist-web/components/cards/components/card/components/switchTitleCard/SwitchTitleCard.style.js +1 -0
- package/package.json +1 -1
package/dist-native/components/cards/components/card/components/switchRowCard/SwitchRowCard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.getIconByType=exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../../../../../../assets/images/icons");var _SwitchRowCard=require("./SwitchRowCard.style");var _this=this,_jsxFileName="/home/jenkins/agent/workspace/etendo_ui_library_develop/etendo_ui_library/src/components/cards/components/card/components/switchRowCard/SwitchRowCard.tsx";var DOTS='··································································································';var getIconByType=exports.getIconByType=function getIconByType(_ref){var row=_ref.row,item=_ref.item,_ref$color=_ref.color,color=_ref$color===void 0?{}:_ref$color;if(row!=null&&row.key&&item[row.key]){switch(row.type){case'date':return _react.default.createElement(_icons.CalendarIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:16}});case'time':return _react.default.createElement(_icons.TimeIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:16}});case'boolean':return item[row.key]?_react.default.createElement(_icons.CheckTrueIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:11}}):_react.default.createElement(_icons.CheckFalseIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:33,columnNumber:11}});default:break;}}};var SwitchRowCard=function SwitchRowCard(_ref2){var row=_ref2.row,item=_ref2.item,_ref2$color=_ref2.color,color=_ref2$color===void 0?{}:_ref2$color;if(!row){return;}if(row.type!=='string'&&row.type){return _react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textName,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:11}},row==null?void 0:row.label),_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.dots,_SwitchRowCard.styles.alignDotsRight],__self:_this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:11}},DOTS)),_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.getIconByType=exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../../../../../../assets/images/icons");var _SwitchRowCard=require("./SwitchRowCard.style");var _this=this,_jsxFileName="/home/jenkins/agent/workspace/etendo_ui_library_develop/etendo_ui_library/src/components/cards/components/card/components/switchRowCard/SwitchRowCard.tsx";var DOTS='··································································································';var getIconByType=exports.getIconByType=function getIconByType(_ref){var row=_ref.row,item=_ref.item,_ref$color=_ref.color,color=_ref$color===void 0?{}:_ref$color;if(row!=null&&row.key&&item[row.key]){switch(row.type){case'date':return _react.default.createElement(_icons.CalendarIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:16}});case'time':return _react.default.createElement(_icons.TimeIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:16}});case'boolean':return item[row.key]?_react.default.createElement(_icons.CheckTrueIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:11}}):_react.default.createElement(_icons.CheckFalseIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:33,columnNumber:11}});default:break;}}};var SwitchRowCard=function SwitchRowCard(_ref2){var row=_ref2.row,item=_ref2.item,_ref2$color=_ref2.color,color=_ref2$color===void 0?{}:_ref2$color;if(!row){return;}if(row.type!=='string'&&row.type){return _react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textName,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:11}},row==null?void 0:row.label),_react.default.createElement(_reactNative.Text,{numberOfLines:1,style:[_SwitchRowCard.styles.dots,_SwitchRowCard.styles.alignDotsRight],__self:_this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:11}},DOTS)),_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:9}},_react.default.createElement(_reactNative.Text,{numberOfLines:1,style:[_SwitchRowCard.styles.dots,_SwitchRowCard.styles.alignDotsLeft],__self:_this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:11}},DOTS),getIconByType({row:row,item:item,color:color}),row.type!=='boolean'&&_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textValue,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:69,columnNumber:13}},row!=null&&row.key?item[row.key]:'')));}return _react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.column,__self:_this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:5}},_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textName,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:83,columnNumber:7}},row==null?void 0:row.label),_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textValue,color],ellipsizeMode:"tail",numberOfLines:2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:89,columnNumber:7}},row!=null&&row.key?item[row.key]:''));};var _default=exports.default=SwitchRowCard;
|
|
@@ -14,6 +14,7 @@ export declare const styles: {
|
|
|
14
14
|
lineHeight: number;
|
|
15
15
|
};
|
|
16
16
|
row: {
|
|
17
|
+
width: "100%";
|
|
17
18
|
flexDirection: "row";
|
|
18
19
|
paddingHorizontal: number;
|
|
19
20
|
paddingBottom: number;
|
|
@@ -38,8 +39,10 @@ export declare const styles: {
|
|
|
38
39
|
letterSpacing: number;
|
|
39
40
|
color: string;
|
|
40
41
|
fontWeight: "700";
|
|
42
|
+
overflow: "hidden";
|
|
41
43
|
};
|
|
42
44
|
rowWitchdotsContainer: {
|
|
45
|
+
overflow: "hidden";
|
|
43
46
|
width: "50%";
|
|
44
47
|
flexDirection: "row";
|
|
45
48
|
alignItems: "center";
|
package/dist-native/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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({textName:{fontFamily:'Inter',color:_colors.NEUTRAL_800,fontWeight:'700',fontSize:14,lineHeight:20},textValue:{fontFamily:'Inter',color:_colors.NEUTRAL_1000,fontWeight:'600',fontSize:14,lineHeight:20},row:{flexDirection:'row',paddingHorizontal:12,paddingBottom:8,alignItems:'center'},column:{flexDirection:'column',paddingHorizontal:12,paddingBottom:8},check:{width:16,height:16},calendar:{width:16,height:16,marginRight:4},dots:{flex:1,letterSpacing:8,color:_colors.NEUTRAL_400,fontWeight:'700'},rowWitchdotsContainer:{width:'50%',flexDirection:'row',alignItems:'center',height:20},alignDotsRight:{textAlign:'right',paddingLeft:8},alignDotsLeft:{textAlign:'left',paddingRight:8},paddingCalendar:{paddingRight:16}});
|
|
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({textName:{fontFamily:'Inter',color:_colors.NEUTRAL_800,fontWeight:'700',fontSize:14,lineHeight:20},textValue:{fontFamily:'Inter',color:_colors.NEUTRAL_1000,fontWeight:'600',fontSize:14,lineHeight:20},row:{width:'100%',flexDirection:'row',paddingHorizontal:12,paddingBottom:8,alignItems:'center'},column:{flexDirection:'column',paddingHorizontal:12,paddingBottom:8},check:{width:16,height:16},calendar:{width:16,height:16,marginRight:4},dots:{flex:1,letterSpacing:8,color:_colors.NEUTRAL_400,fontWeight:'700',overflow:'hidden'},rowWitchdotsContainer:{overflow:'hidden',width:'50%',flexDirection:'row',alignItems:'center',height:20},alignDotsRight:{textAlign:'right',paddingLeft:8},alignDotsLeft:{textAlign:'left',paddingRight:8},paddingCalendar:{paddingRight:16}});
|
|
@@ -1 +1 @@
|
|
|
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({textName:{fontFamily:'Inter',color:_colors.NEUTRAL_700,fontWeight:'700',fontSize:14,lineHeight:22},textValueBold:{fontFamily:'Inter',color:_colors.NEUTRAL_1000,fontWeight:'800',fontSize:16,lineHeight:24},row:{marginHorizontal:12,paddingBottom:8,marginBottom:8,borderBottomWidth:1,borderBottomColor:_colors.NEUTRAL_300},titleRowValue:{flexDirection:'row',alignItems:'center'},check:{width:16,height:16},calendar:{width:16,height:16,marginRight:3}});
|
|
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({textName:{fontFamily:'Inter',color:_colors.NEUTRAL_700,fontWeight:'700',fontSize:14,lineHeight:22},textValueBold:{fontFamily:'Inter',color:_colors.NEUTRAL_1000,fontWeight:'800',fontSize:16,lineHeight:24},row:{width:'100%',marginHorizontal:12,paddingBottom:8,marginBottom:8,borderBottomWidth:1,borderBottomColor:_colors.NEUTRAL_300},titleRowValue:{flexDirection:'row',alignItems:'center'},check:{width:16,height:16},calendar:{width:16,height:16,marginRight:3}});
|
|
@@ -53,10 +53,12 @@ var SwitchRowCard = function SwitchRowCard(_ref2) {
|
|
|
53
53
|
ellipsizeMode: "tail",
|
|
54
54
|
numberOfLines: 1
|
|
55
55
|
}, row === null || row === void 0 ? void 0 : row.label), /*#__PURE__*/React.createElement(Text, {
|
|
56
|
+
numberOfLines: 1,
|
|
56
57
|
style: [styles.dots, styles.alignDotsRight]
|
|
57
58
|
}, DOTS)), /*#__PURE__*/React.createElement(View, {
|
|
58
59
|
style: styles.rowWitchdotsContainer
|
|
59
60
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
61
|
+
numberOfLines: 1,
|
|
60
62
|
style: [styles.dots, styles.alignDotsLeft]
|
|
61
63
|
}, DOTS), getIconByType({
|
|
62
64
|
row: row,
|
package/dist-web/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const styles: {
|
|
|
14
14
|
lineHeight: number;
|
|
15
15
|
};
|
|
16
16
|
row: {
|
|
17
|
+
width: "100%";
|
|
17
18
|
flexDirection: "row";
|
|
18
19
|
paddingHorizontal: number;
|
|
19
20
|
paddingBottom: number;
|
|
@@ -38,8 +39,10 @@ export declare const styles: {
|
|
|
38
39
|
letterSpacing: number;
|
|
39
40
|
color: string;
|
|
40
41
|
fontWeight: "700";
|
|
42
|
+
overflow: "hidden";
|
|
41
43
|
};
|
|
42
44
|
rowWitchdotsContainer: {
|
|
45
|
+
overflow: "hidden";
|
|
43
46
|
width: "50%";
|
|
44
47
|
flexDirection: "row";
|
|
45
48
|
alignItems: "center";
|
package/dist-web/components/cards/components/card/components/switchRowCard/SwitchRowCard.style.js
CHANGED
|
@@ -16,6 +16,7 @@ export var styles = StyleSheet.create({
|
|
|
16
16
|
lineHeight: 20
|
|
17
17
|
},
|
|
18
18
|
row: {
|
|
19
|
+
width: '100%',
|
|
19
20
|
flexDirection: 'row',
|
|
20
21
|
paddingHorizontal: 12,
|
|
21
22
|
paddingBottom: 8,
|
|
@@ -39,9 +40,11 @@ export var styles = StyleSheet.create({
|
|
|
39
40
|
flex: 1,
|
|
40
41
|
letterSpacing: 8,
|
|
41
42
|
color: NEUTRAL_400,
|
|
42
|
-
fontWeight: '700'
|
|
43
|
+
fontWeight: '700',
|
|
44
|
+
overflow: 'hidden'
|
|
43
45
|
},
|
|
44
46
|
rowWitchdotsContainer: {
|
|
47
|
+
overflow: 'hidden',
|
|
45
48
|
width: '50%',
|
|
46
49
|
flexDirection: 'row',
|
|
47
50
|
alignItems: 'center',
|