@draftbit/core 46.2.2-088abf.0 → 46.2.2-49d821.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.
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import * as React from "react";
|
|
4
2
|
import { StyleSheet, View, Platform } from "react-native";
|
|
5
3
|
import { isString } from "lodash";
|
|
@@ -8,7 +6,7 @@ import { usePrevious } from "../../hooks";
|
|
|
8
6
|
import Text from "../Text";
|
|
9
7
|
import Touchable from "../Touchable";
|
|
10
8
|
import Checkbox from "./Checkbox";
|
|
11
|
-
export
|
|
9
|
+
export var Direction;
|
|
12
10
|
|
|
13
11
|
(function (Direction) {
|
|
14
12
|
Direction["Row"] = "row";
|
|
@@ -80,13 +78,14 @@ const CheckboxRow = _ref => {
|
|
|
80
78
|
textStyles,
|
|
81
79
|
viewStyles
|
|
82
80
|
} = extractStyles(style);
|
|
83
|
-
return /*#__PURE__*/React.createElement(Touchable,
|
|
81
|
+
return /*#__PURE__*/React.createElement(Touchable, {
|
|
84
82
|
onPress: handlePress,
|
|
85
83
|
style: [viewStyles, styles.mainParent, {
|
|
86
84
|
flexDirection: direction
|
|
87
85
|
}],
|
|
88
|
-
disabled: disabled
|
|
89
|
-
|
|
86
|
+
disabled: disabled,
|
|
87
|
+
...rest
|
|
88
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
90
89
|
style: [styles.label, {
|
|
91
90
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
92
91
|
}, labelContainerStyle]
|
|
@@ -124,4 +123,22 @@ const styles = StyleSheet.create({
|
|
|
124
123
|
}
|
|
125
124
|
});
|
|
126
125
|
export default CheckboxRow;
|
|
126
|
+
//# sourceMappingURL=CheckboxRow.js.maptems: "center",
|
|
127
|
+
justifyContent: "space-around",
|
|
128
|
+
paddingStart: 20,
|
|
129
|
+
minHeight: 50,
|
|
130
|
+
paddingEnd: 20,
|
|
131
|
+
display: "flex",
|
|
132
|
+
...Platform.select({
|
|
133
|
+
web: {
|
|
134
|
+
cursor: "pointer",
|
|
135
|
+
userSelect: "none"
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
},
|
|
139
|
+
label: {
|
|
140
|
+
flex: 3
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
export default CheckboxRow;
|
|
127
144
|
//# sourceMappingURL=CheckboxRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["COMPONENT_TYPES","GROUPS","createIconProp","createColorProp","createNumberProp","createBoolProp","createActionProp","Triggers","StylesPanelSections","SEED_DATA","name","tag","category","button","layout","triggers","OnPress","stylesPanelSections","Margins","Effects","Position","props","onPress","icon","color","label","group","basic","disabled","size","description","defaultValue","min","max","step","precision"],"sources":["IconButton.
|
|
1
|
+
{"version":3,"names":["COMPONENT_TYPES","GROUPS","createIconProp","createColorProp","createNumberProp","createBoolProp","createActionProp","Triggers","StylesPanelSections","SEED_DATA","name","tag","category","button","layout","triggers","OnPress","stylesPanelSections","Margins","Effects","Position","props","onPress","icon","color","label","group","basic","disabled","size","description","defaultValue","min","max","step","precision"],"sources":["IconButton.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n GROUPS,\n createIconProp,\n createColorProp,\n createNumberProp,\n createBoolProp,\n createActionProp,\n Triggers,\n StylesPanelSections,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Icon Button\",\n tag: \"IconButton\",\n category: COMPONENT_TYPES.button,\n layout: {},\n triggers: [Triggers.OnPress],\n stylesPanelSections: [\n StylesPanelSections.Margins,\n StylesPanelSections.Effects,\n StylesPanelSections.Position,\n ],\n props: {\n onPress: createActionProp(),\n icon: createIconProp(),\n color: createColorProp({\n label: \"Color\",\n group: GROUPS.basic,\n }),\n disabled: createBoolProp({\n label: \"Disabled\",\n group: GROUPS.basic,\n }),\n size: createNumberProp({\n group: GROUPS.basic,\n label: \"Size\",\n description: \"Width and height of your icon\",\n defaultValue: 32,\n min: 16,\n max: 128,\n step: 1,\n precision: 0,\n }),\n },\n};\n"],"mappings":"AAAA,SACEA,eADF,EAEEC,MAFF,EAGEC,cAHF,EAIEC,eAJF,EAKEC,gBALF,EAMEC,cANF,EAOEC,gBAPF,EAQEC,QARF,EASEC,mBATF,QAUO,iBAVP;AAYA,OAAO,MAAMC,SAAS,GAAG;EACvBC,IAAI,EAAE,aADiB;EAEvBC,GAAG,EAAE,YAFkB;EAGvBC,QAAQ,EAAEZ,eAAe,CAACa,MAHH;EAIvBC,MAAM,EAAE,EAJe;EAKvBC,QAAQ,EAAE,CAACR,QAAQ,CAACS,OAAV,CALa;EAMvBC,mBAAmB,EAAE,CACnBT,mBAAmB,CAACU,OADD,EAEnBV,mBAAmB,CAACW,OAFD,EAGnBX,mBAAmB,CAACY,QAHD,CANE;EAWvBC,KAAK,EAAE;IACLC,OAAO,EAAEhB,gBAAgB,EADpB;IAELiB,IAAI,EAAErB,cAAc,EAFf;IAGLsB,KAAK,EAAErB,eAAe,CAAC;MACrBsB,KAAK,EAAE,OADc;MAErBC,KAAK,EAAEzB,MAAM,CAAC0B;IAFO,CAAD,CAHjB;IAOLC,QAAQ,EAAEvB,cAAc,CAAC;MACvBoB,KAAK,EAAE,UADgB;MAEvBC,KAAK,EAAEzB,MAAM,CAAC0B;IAFS,CAAD,CAPnB;IAWLE,IAAI,EAAEzB,gBAAgB,CAAC;MACrBsB,KAAK,EAAEzB,MAAM,CAAC0B,KADO;MAErBF,KAAK,EAAE,MAFc;MAGrBK,WAAW,EAAE,+BAHQ;MAIrBC,YAAY,EAAE,EAJO;MAKrBC,GAAG,EAAE,EALgB;MAMrBC,GAAG,EAAE,GANgB;MAOrBC,IAAI,EAAE,CAPe;MAQrBC,SAAS,EAAE;IARU,CAAD;EAXjB;AAXgB,CAAlB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.2.2-
|
|
3
|
+
"version": "46.2.2-49d821.0+49d82107",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
]
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "49d821073fe8224581a89efe0445f013a6bcd374"
|
|
83
83
|
}
|