@draftbit/core 44.1.13-91822a.0 → 44.1.13-c10e64.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.
- package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
- package/lib/commonjs/components/CircularProgress.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +4 -19
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/Picker/Picker.js +27 -264
- package/lib/commonjs/components/Picker/Picker.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.android.js +110 -34
- package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +112 -38
- package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.web.js +111 -34
- package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerTypes.js +6 -0
- package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -0
- package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
- package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
- package/lib/commonjs/mappings/FAB.js.map +1 -1
- package/lib/commonjs/mappings/Picker.js +1 -7
- package/lib/commonjs/mappings/Picker.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
- package/lib/commonjs/mappings/ScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Slider.js.map +1 -1
- package/lib/commonjs/mappings/Swiper.js.map +1 -1
- package/lib/commonjs/mappings/View.js.map +1 -1
- package/lib/commonjs/utilities.js +0 -19
- package/lib/commonjs/utilities.js.map +1 -1
- package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/module/components/Picker/Picker.js +28 -258
- package/lib/module/components/Picker/Picker.js.map +1 -1
- package/lib/module/components/Picker/PickerComponent.android.js +103 -32
- package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
- package/lib/module/components/Picker/PickerComponent.ios.js +107 -36
- package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
- package/lib/module/components/Picker/PickerComponent.web.js +104 -32
- package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
- package/lib/module/components/Picker/PickerTypes.js +2 -0
- package/lib/module/components/Picker/PickerTypes.js.map +1 -0
- package/lib/module/components/StepIndicator.js.map +1 -1
- package/lib/module/mappings/Picker.js +2 -8
- package/lib/module/mappings/Picker.js.map +1 -1
- package/lib/module/utilities.js +1 -12
- package/lib/module/utilities.js.map +1 -1
- package/lib/typescript/src/components/Picker/Picker.d.ts +4 -28
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +5 -12
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +5 -11
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +5 -12
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts +18 -0
- package/lib/typescript/src/mappings/Picker.d.ts +0 -21
- package/lib/typescript/src/utilities.d.ts +0 -7
- package/package.json +2 -2
- package/src/components/Picker/Picker.js +17 -228
- package/src/components/Picker/Picker.tsx +34 -431
- package/src/components/Picker/PickerComponent.android.js +62 -14
- package/src/components/Picker/PickerComponent.android.tsx +101 -44
- package/src/components/Picker/PickerComponent.ios.js +57 -19
- package/src/components/Picker/PickerComponent.ios.tsx +114 -58
- package/src/components/Picker/PickerComponent.web.js +63 -14
- package/src/components/Picker/PickerComponent.web.tsx +102 -44
- package/src/components/Picker/PickerTypes.js +1 -0
- package/src/components/Picker/PickerTypes.ts +18 -0
- package/src/mappings/Picker.js +1 -3
- package/src/mappings/Picker.ts +0 -4
- package/src/utilities.js +1 -49
- package/src/utilities.ts +1 -65
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
@@ -11,49 +11,126 @@ var _reactNative = require("react-native");
|
|
|
11
11
|
|
|
12
12
|
var _picker = require("@react-native-picker/picker");
|
|
13
13
|
|
|
14
|
+
var _lodash = _interopRequireDefault(require("lodash.omit"));
|
|
15
|
+
|
|
16
|
+
var _theming = require("../../theming");
|
|
17
|
+
|
|
18
|
+
var _utilities = require("../../utilities");
|
|
19
|
+
|
|
20
|
+
var _TextField = _interopRequireDefault(require("../TextField"));
|
|
21
|
+
|
|
22
|
+
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
14
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
27
|
|
|
16
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
29
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
31
|
+
|
|
32
|
+
const Picker = _ref => {
|
|
33
|
+
var _options$find$label, _options$find;
|
|
22
34
|
|
|
23
|
-
const PickerComponent = _ref => {
|
|
24
35
|
let {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
style,
|
|
37
|
+
options,
|
|
38
|
+
placeholder,
|
|
39
|
+
selectedValue,
|
|
40
|
+
disabled = false,
|
|
41
|
+
onValueChange: onValueChangeOverride = () => {},
|
|
42
|
+
...props
|
|
30
43
|
} = _ref;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
const {
|
|
45
|
+
viewStyles: {
|
|
46
|
+
borderRadius,
|
|
47
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
48
|
+
borderWidth,
|
|
49
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
50
|
+
borderTopWidth,
|
|
51
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
52
|
+
borderRightWidth,
|
|
53
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
54
|
+
borderBottomWidth,
|
|
55
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
56
|
+
borderLeftWidth,
|
|
57
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
58
|
+
borderColor,
|
|
59
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
60
|
+
backgroundColor,
|
|
61
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
62
|
+
padding,
|
|
63
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
64
|
+
paddingTop,
|
|
65
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
66
|
+
paddingRight,
|
|
67
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
68
|
+
paddingBottom,
|
|
69
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
70
|
+
paddingLeft,
|
|
71
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
72
|
+
...viewStyles
|
|
73
|
+
}
|
|
74
|
+
} = (0, _utilities.extractStyles)(style);
|
|
75
|
+
const textField = React.useRef(undefined);
|
|
76
|
+
|
|
77
|
+
const onValueChange = (itemValue, itemIndex) => {
|
|
78
|
+
toggleFocus();
|
|
79
|
+
onValueChangeOverride(itemValue, itemIndex);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const toggleFocus = () => {
|
|
83
|
+
if (!disabled) {
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
|
|
86
|
+
}
|
|
87
|
+
};
|
|
43
88
|
|
|
44
|
-
|
|
89
|
+
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
90
|
+
const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
|
|
91
|
+
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
92
|
+
disabled: disabled,
|
|
93
|
+
onPress: toggleFocus,
|
|
94
|
+
style: [styles.container, viewStyles]
|
|
95
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, null, /*#__PURE__*/React.createElement(_picker.Picker, {
|
|
96
|
+
enabled: !disabled,
|
|
97
|
+
selectedValue: selectedValue,
|
|
98
|
+
onValueChange: onValueChange,
|
|
99
|
+
style: {
|
|
100
|
+
flex: 1,
|
|
101
|
+
opacity: 0,
|
|
102
|
+
position: "absolute",
|
|
103
|
+
top: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
right: 0,
|
|
106
|
+
bottom: 0,
|
|
107
|
+
width: "100%"
|
|
108
|
+
}
|
|
109
|
+
}, options.map(o => /*#__PURE__*/React.createElement(_picker.Picker.Item, {
|
|
110
|
+
label: o.label,
|
|
111
|
+
value: o.value,
|
|
112
|
+
key: o.value
|
|
113
|
+
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
114
|
+
pointerEvents: "none"
|
|
115
|
+
}, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
|
|
116
|
+
value: selectedLabel,
|
|
117
|
+
placeholder: placeholder // @ts-ignore
|
|
118
|
+
,
|
|
119
|
+
ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
|
|
120
|
+
,
|
|
121
|
+
disabled: disabled // @ts-expect-error
|
|
122
|
+
,
|
|
123
|
+
style: stylesWithoutMargin
|
|
124
|
+
})))));
|
|
125
|
+
};
|
|
45
126
|
|
|
46
127
|
const styles = _reactNative.StyleSheet.create({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
position: "absolute",
|
|
50
|
-
top: 0,
|
|
51
|
-
left: 0,
|
|
52
|
-
right: 0,
|
|
53
|
-
bottom: 0,
|
|
54
|
-
width: "100%",
|
|
55
|
-
maxWidth: deviceWidth,
|
|
56
|
-
maxHeight: deviceHeight
|
|
128
|
+
container: {
|
|
129
|
+
alignSelf: "stretch"
|
|
57
130
|
}
|
|
58
131
|
});
|
|
132
|
+
|
|
133
|
+
var _default = (0, _theming.withTheme)(Picker);
|
|
134
|
+
|
|
135
|
+
exports.default = _default;
|
|
59
136
|
//# sourceMappingURL=PickerComponent.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["PickerComponent.web.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["PickerComponent.web.tsx"],"names":["Picker","style","options","placeholder","selectedValue","disabled","onValueChange","onValueChangeOverride","props","viewStyles","borderRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","backgroundColor","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","textField","React","useRef","undefined","itemValue","itemIndex","toggleFocus","current","stylesWithoutMargin","StyleSheet","flatten","selectedLabel","find","o","value","label","styles","container","flex","opacity","position","top","left","right","bottom","width","map","create","alignSelf"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAGA,MAAMA,MAAsC,GAAG,QAQzC;AAAA;;AAAA,MAR0C;AAC9CC,IAAAA,KAD8C;AAE9CC,IAAAA,OAF8C;AAG9CC,IAAAA,WAH8C;AAI9CC,IAAAA,aAJ8C;AAK9CC,IAAAA,QAAQ,GAAG,KALmC;AAM9CC,IAAAA,aAAa,EAAEC,qBAAqB,GAAG,MAAM,CAAE,CAND;AAO9C,OAAGC;AAP2C,GAQ1C;AACJ,QAAM;AACJC,IAAAA,UAAU,EAAE;AACVC,MAAAA,YADU;AACI;AACdC,MAAAA,WAFU;AAEG;AACbC,MAAAA,cAHU;AAGM;AAChBC,MAAAA,gBAJU;AAIQ;AAClBC,MAAAA,iBALU;AAKS;AACnBC,MAAAA,eANU;AAMO;AACjBC,MAAAA,WAPU;AAOG;AACbC,MAAAA,eARU;AAQO;AACjBC,MAAAA,OATU;AASD;AACTC,MAAAA,UAVU;AAUE;AACZC,MAAAA,YAXU;AAWI;AACdC,MAAAA,aAZU;AAYK;AACfC,MAAAA,WAbU;AAaG;AACb,SAAGb;AAdO;AADR,MAiBF,8BAAcR,KAAd,CAjBJ;AAmBA,QAAMsB,SAAS,GAAGC,KAAK,CAACC,MAAN,CAA2CC,SAA3C,CAAlB;;AAEA,QAAMpB,aAAa,GAAG,CAACqB,SAAD,EAAoBC,SAApB,KAA0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CAAc,IAAd;AAAmB,IAAA,KAAK,EAAEA,CAAC,CAACE,KAA5B;AAAmC,IAAA,KAAK,EAAEF,CAAC,CAACC,KAA5C;AAAmD,IAAA,GAAG,EAAED,CAAC,CAACC;AAA1D,IADD,CAfH,CADF,eAoBE,oBAAC,iBAAD;AAAM,IAAA,aAAa,EAAC;AAApB,kBACE,oBAAC,kBAAD,eACM7B,KADN;AAEE,IAAA,KAAK,EAAE0B,aAFT;AAGE,IAAA,WAAW,EAAE/B,WAHf,CAIE;AAJF;AAKE,IAAA,GAAG,EAAEoB,SALP,CAKkB;AALlB;AAME,IAAA,QAAQ,EAAElB,QANZ,CAOE;AAPF;AAQE,IAAA,KAAK,EAAE0B;AART,KADF,CApBF,CALF,CADF;AAyCD,CAjGD;;AAmGA,MAAMQ,MAAM,GAAGP,wBAAWkB,MAAX,CAAkB;AAC/BV,EAAAA,SAAS,EAAE;AACTW,IAAAA,SAAS,EAAE;AADF;AADoB,CAAlB,CAAf;;eAMe,wBAAUnD,MAAV,C","sourcesContent":["import * as React from \"react\";\nimport { View, StyleSheet } from \"react-native\";\nimport { Picker as NativePicker } from \"@react-native-picker/picker\";\nimport omit from \"lodash.omit\";\nimport { withTheme } from \"../../theming\";\nimport { extractStyles } from \"../../utilities\";\n\nimport TextField from \"../TextField\";\nimport Touchable from \"../Touchable\";\nimport { PickerComponentProps } from \"./PickerTypes\";\n\nconst Picker: React.FC<PickerComponentProps> = ({\n style,\n options,\n placeholder,\n selectedValue,\n disabled = false,\n onValueChange: onValueChangeOverride = () => {},\n ...props\n}) => {\n const {\n viewStyles: {\n borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars\n borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars\n borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars\n borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars\n borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars\n borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars\n borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars\n backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars\n padding, // eslint-disable-line @typescript-eslint/no-unused-vars\n paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars\n paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars\n paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars\n paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars\n ...viewStyles\n },\n } = extractStyles(style);\n\n const textField = React.useRef<typeof TextField | undefined>(undefined);\n\n const onValueChange = (itemValue: string, itemIndex: number) => {\n toggleFocus();\n onValueChangeOverride(itemValue, itemIndex);\n };\n\n const toggleFocus = () => {\n if (!disabled) {\n // @ts-ignore\n textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()\n }\n };\n\n const stylesWithoutMargin =\n style &&\n omit(StyleSheet.flatten(style), [\n \"margin\",\n \"marginTop\",\n \"marginRight\",\n \"marginBottom\",\n \"marginLeft\",\n ]);\n\n const selectedLabel =\n selectedValue &&\n (options.find((o) => o.value === selectedValue)?.label ?? selectedValue);\n\n return (\n <Touchable\n disabled={disabled}\n onPress={toggleFocus}\n style={[styles.container, viewStyles]}\n >\n <View>\n <NativePicker\n enabled={!disabled}\n selectedValue={selectedValue}\n onValueChange={onValueChange}\n style={{\n flex: 1,\n opacity: 0,\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n width: \"100%\",\n }}\n >\n {options.map((o) => (\n <NativePicker.Item label={o.label} value={o.value} key={o.value} />\n ))}\n </NativePicker>\n <View pointerEvents=\"none\">\n <TextField\n {...props}\n value={selectedLabel}\n placeholder={placeholder}\n // @ts-ignore\n ref={textField} // cannot determine if ref is of correct type due to component being wrapped in a withTheme()\n disabled={disabled}\n // @ts-expect-error\n style={stylesWithoutMargin}\n />\n </View>\n </View>\n </Touchable>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: \"stretch\",\n },\n});\n\nexport default withTheme(Picker);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["PortalManager.
|
|
1
|
+
{"version":3,"sources":["PortalManager.tsx"],"names":["PortalManager","React","PureComponent","portals","key","children","setState","state","map","item","filter","render","StyleSheet","absoluteFill"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;AASA;AACA;AACA;AACe,MAAMA,aAAN,SAA4BC,KAAK,CAACC,aAAlC,CAA2D;AAAA;AAAA;;AAAA,mCACzD;AACbC,MAAAA,OAAO,EAAE;AADI,KADyD;;AAAA,mCAKhE,CAACC,GAAD,EAAcC,QAAd,KAA4C;AAClD,WAAKC,QAAL,CAAeC,KAAD,KAAY;AACxBJ,QAAAA,OAAO,EAAE,CAAC,GAAGI,KAAK,CAACJ,OAAV,EAAmB;AAAEC,UAAAA,GAAF;AAAOC,UAAAA;AAAP,SAAnB;AADe,OAAZ,CAAd;AAGD,KATuE;;AAAA,oCAW/D,CAACD,GAAD,EAAcC,QAAd,KACP,KAAKC,QAAL,CAAeC,KAAD,KAAY;AACxBJ,MAAAA,OAAO,EAAEI,KAAK,CAACJ,OAAN,CAAcK,GAAd,CAAmBC,IAAD,IAAU;AACnC,YAAIA,IAAI,CAACL,GAAL,KAAaA,GAAjB,EAAsB;AACpB,iBAAO,EAAE,GAAGK,IAAL;AAAWJ,YAAAA;AAAX,WAAP;AACD;;AACD,eAAOI,IAAP;AACD,OALQ;AADe,KAAZ,CAAd,CAZsE;;AAAA,qCAqB7DL,GAAD,IACR,KAAKE,QAAL,CAAeC,KAAD,KAAY;AACxBJ,MAAAA,OAAO,EAAEI,KAAK,CAACJ,OAAN,CAAcO,MAAd,CAAsBD,IAAD,IAAUA,IAAI,CAACL,GAAL,KAAaA,GAA5C;AADe,KAAZ,CAAd,CAtBsE;AAAA;;AA0BxEO,EAAAA,MAAM,GAAG;AACP,WAAO,KAAKJ,KAAL,CAAWJ,OAAX,CAAmBK,GAAnB,CAAuB;AAAA,UAAC;AAAEJ,QAAAA,GAAF;AAAOC,QAAAA;AAAP,OAAD;AAAA,0BAC5B,oBAAC,iBAAD;AACE,QAAA,GAAG,EAAED,GADP;AAEE,QAAA,WAAW,EACT;AAAM;AAHV;AAKE,QAAA,aAAa,EAAC,UALhB;AAME,QAAA,KAAK,EAAEQ,wBAAWC;AANpB,SAQGR,QARH,CAD4B;AAAA,KAAvB,CAAP;AAYD;;AAvCuE","sourcesContent":["import * as React from \"react\";\nimport { View, StyleSheet } from \"react-native\";\n\ntype State = {\n portals: Array<{\n key: number;\n children: React.ReactNode;\n }>;\n};\n\n/**\n * Portal host is the component which actually renders all Portals.\n */\nexport default class PortalManager extends React.PureComponent<{}, State> {\n state: State = {\n portals: [],\n };\n\n mount = (key: number, children: React.ReactNode) => {\n this.setState((state) => ({\n portals: [...state.portals, { key, children }],\n }));\n };\n\n update = (key: number, children: React.ReactNode) =>\n this.setState((state) => ({\n portals: state.portals.map((item) => {\n if (item.key === key) {\n return { ...item, children };\n }\n return item;\n }),\n }));\n\n unmount = (key: number) =>\n this.setState((state) => ({\n portals: state.portals.filter((item) => item.key !== key),\n }));\n\n render() {\n return this.state.portals.map(({ key, children }) => (\n <View\n key={key}\n collapsable={\n false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */\n }\n pointerEvents=\"box-none\"\n style={StyleSheet.absoluteFill}\n >\n {children}\n </View>\n ));\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Swiper.
|
|
1
|
+
{"version":3,"sources":["Swiper.tsx"],"names":["Swiper","vertical","loop","timeout","from","prevTitle","nextTitle","prevTitleColor","nextTitleColor","dotsTouchable","dotColor","dotActiveColor","data","keyExtractor","renderItem","children","style","prevTitleStyle","color","nextTitleStyle","dotProps","badgeStyle","backgroundColor","dotActiveStyle","map","item","index","component","key","React","cloneElement"],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,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACxB,UAAMC,SAAS,GAAGb,UAAU,CAAC;AAAEW,MAAAA,IAAF;AAAQC,MAAAA;AAAR,KAAD,CAA5B;;AAEA,QAAI,CAACC,SAAL,EAAgB;AACd,aAAO,IAAP;AACD;;AAED,UAAMC,GAAG,GAAGf,YAAY,GAAGA,YAAY,CAACY,IAAD,EAAOC,KAAP,CAAf,GAA+BA,KAAvD;AACA,wBAAOG,eAAMC,YAAN,CAAmBH,SAAnB,EAA8B;AACnCC,MAAAA;AADmC,KAA9B,CAAP;AAGD,GAXD,CADH,GAaGb,QAhCN,CADF,CAlBa;AAAA,CAAf;;eAwDef,M","sourcesContent":["import React from \"react\";\nimport { View, StyleProp, ViewStyle } from \"react-native\";\nimport SwiperComponent from \"react-native-web-swiper\";\n\nexport interface SwiperProps<T> {\n vertical?: boolean;\n loop?: boolean;\n from?: number;\n timeout?: number;\n prevTitle?: string;\n nextTitle?: string;\n prevTitleColor?: string;\n nextTitleColor?: string;\n dotsTouchable?: boolean;\n dotColor?: string;\n dotActiveColor?: string;\n children: React.ReactNode;\n data?: Array<T>;\n keyExtractor: (item: T, index: number) => string;\n renderItem?: ({ item, index }: { item: T; index: number }) => JSX.Element;\n style?: StyleProp<ViewStyle>;\n}\n\nconst Swiper = ({\n vertical = false,\n loop = false,\n timeout = 0,\n from = 0,\n prevTitle = \"\",\n nextTitle = \"\",\n prevTitleColor,\n nextTitleColor,\n dotsTouchable = true,\n dotColor,\n dotActiveColor,\n data,\n keyExtractor,\n renderItem,\n children,\n style,\n}: SwiperProps<any>) => (\n <View style={style}>\n <SwiperComponent\n from={from}\n loop={loop}\n timeout={timeout}\n vertical={vertical}\n controlsProps={{\n prevTitle,\n nextTitle,\n prevTitleStyle: { color: prevTitleColor },\n nextTitleStyle: { color: nextTitleColor },\n dotsTouchable,\n ...(dotColor\n ? { dotProps: { badgeStyle: { backgroundColor: dotColor } } }\n : {}),\n ...(dotActiveColor\n ? { dotActiveStyle: { backgroundColor: dotActiveColor } }\n : {}),\n }}\n >\n {data && renderItem\n ? data.map((item, index) => {\n const component = renderItem({ item, index });\n\n if (!component) {\n return null;\n }\n\n const key = keyExtractor ? keyExtractor(item, index) : index;\n return React.cloneElement(component, {\n key,\n });\n })\n : children}\n </SwiperComponent>\n </View>\n);\n\nexport default Swiper;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["FAB.
|
|
1
|
+
{"version":3,"sources":["FAB.ts"],"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","button","description","layout","triggers","Triggers","OnPress","props","onPress","disabled","label","group","GROUPS","basic","loading","iconName","defaultValue","iconColor","bgColor","size"],"mappings":";;;;;;;AAAA;;AAWO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,KADiB;AAEvBC,EAAAA,GAAG,EAAE,KAFkB;AAGvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,MAHH;AAIvBC,EAAAA,WAAW,EAAE,uBAJU;AAKvBC,EAAAA,MAAM,EAAE,EALe;AAMvBC,EAAAA,QAAQ,EAAE,CAACC,gBAASC,OAAV,CANa;AAOvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,8BADJ;AAELC,IAAAA,QAAQ,EAAE,2BAAe;AACvBC,MAAAA,KAAK,EAAE,UADgB;AAEvBC,MAAAA,KAAK,EAAEC,cAAOC;AAFS,KAAf,CAFL;AAMLC,IAAAA,OAAO,EAAE,2BAAe;AACtBJ,MAAAA,KAAK,EAAE,SADe;AAEtBC,MAAAA,KAAK,EAAEC,cAAOC;AAFQ,KAAf,CANJ;AAULE,IAAAA,QAAQ,EAAE,2BAAe;AACvBL,MAAAA,KAAK,EAAE,MADgB;AAEvBM,MAAAA,YAAY,EAAE,IAFS;AAGvBL,MAAAA,KAAK,EAAEC,cAAOC;AAHS,KAAf,CAVL;AAeLI,IAAAA,SAAS,EAAE,4BAAgB;AACzBP,MAAAA,KAAK,EAAE,YADkB;AAEzBM,MAAAA,YAAY,EAAE,IAFW;AAGzBL,MAAAA,KAAK,EAAEC,cAAOC;AAHW,KAAhB,CAfN;AAoBLK,IAAAA,OAAO,EAAE,4BAAgB;AACvBR,MAAAA,KAAK,EAAE,kBADgB;AAEvBM,MAAAA,YAAY,EAAE,IAFS;AAGvBL,MAAAA,KAAK,EAAEC,cAAOC;AAHS,KAAhB,CApBJ;AAyBLM,IAAAA,IAAI,EAAE;AAzBD;AAPgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createIconProp,\n createColorProp,\n GROUPS,\n createBoolProp,\n createIconSizeProp,\n createActionProp,\n Triggers,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"FAB\",\n tag: \"FAB\",\n category: COMPONENT_TYPES.button,\n description: \"A mini round icon FAB\",\n layout: {},\n triggers: [Triggers.OnPress],\n props: {\n onPress: createActionProp(),\n disabled: createBoolProp({\n label: \"Disabled\",\n group: GROUPS.basic,\n }),\n loading: createBoolProp({\n label: \"Loading\",\n group: GROUPS.basic,\n }),\n iconName: createIconProp({\n label: \"Icon\",\n defaultValue: null,\n group: GROUPS.basic,\n }),\n iconColor: createColorProp({\n label: \"Icon color\",\n defaultValue: null,\n group: GROUPS.basic,\n }),\n bgColor: createColorProp({\n label: \"Background color\",\n defaultValue: null,\n group: GROUPS.basic,\n }),\n size: createIconSizeProp(),\n },\n};\n"]}
|
|
@@ -135,13 +135,7 @@ const SEED_DATA = [{
|
|
|
135
135
|
editable: true,
|
|
136
136
|
required: true,
|
|
137
137
|
group: _types.GROUPS.basic
|
|
138
|
-
}
|
|
139
|
-
iconSize: (0, _types.createIconSizeProp)({
|
|
140
|
-
defaultValue: 24
|
|
141
|
-
}),
|
|
142
|
-
iconColor: (0, _types.createColorProp)({
|
|
143
|
-
label: "Icon Color"
|
|
144
|
-
})
|
|
138
|
+
}
|
|
145
139
|
},
|
|
146
140
|
layout: {}
|
|
147
141
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Picker.ts"],"names":["SEED_DATA_PROPS","label","group","GROUPS","data","description","formType","FORM_TYPES","string","propType","PROP_TYPES","STRING","defaultValue","editable","required","placeholder","basic","placeholderTextColor","color","assistiveText","options","array","OBJECT","disabled","boolean","BOOLEAN","error","leftIconName","icon","ASSET","leftIconMode","flatArray","rightIconName","fieldName","FIELD_NAME","handlerPropName","SEED_DATA_TRIGGERS","Triggers","OnValueChange","SEED_DATA","name","tag","category","COMPONENT_TYPES","input","preview_image_url","supports_list_render","triggers","props","type","
|
|
1
|
+
{"version":3,"sources":["Picker.ts"],"names":["SEED_DATA_PROPS","label","group","GROUPS","data","description","formType","FORM_TYPES","string","propType","PROP_TYPES","STRING","defaultValue","editable","required","placeholder","basic","placeholderTextColor","color","assistiveText","options","array","OBJECT","disabled","boolean","BOOLEAN","error","leftIconName","icon","ASSET","leftIconMode","flatArray","rightIconName","fieldName","FIELD_NAME","handlerPropName","SEED_DATA_TRIGGERS","Triggers","OnValueChange","SEED_DATA","name","tag","category","COMPONENT_TYPES","input","preview_image_url","supports_list_render","triggers","props","type","layout"],"mappings":";;;;;;;AAAA;;AASA,MAAMA,eAAe,GAAG;AACtBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAEC,cAAOC,IADT;AAELH,IAAAA,KAAK,EAAE,OAFF;AAGLI,IAAAA,WAAW,EAAE,yCAHR;AAILC,IAAAA,QAAQ,EAAEC,kBAAWC,MAJhB;AAKLC,IAAAA,QAAQ,EAAEC,kBAAWC,MALhB;AAMLC,IAAAA,YAAY,EAAE,IANT;AAOLC,IAAAA,QAAQ,EAAE,IAPL;AAQLC,IAAAA,QAAQ,EAAE;AARL,GADe;AAWtBC,EAAAA,WAAW,EAAE;AACXb,IAAAA,KAAK,EAAEC,cAAOa,KADH;AAEXf,IAAAA,KAAK,EAAE,aAFI;AAGXI,IAAAA,WAAW,EAAE,oCAHF;AAIXC,IAAAA,QAAQ,EAAEC,kBAAWC,MAJV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Q,EAAE,IARN;AASJZ,MAAAA,KAAK,EAAEC,cAAOa;AATV;AAFD,GART;AAsBEkC,EAAAA,MAAM,EAAE;AAtBV,CADuB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n Triggers,\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n FIELD_NAME,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n label: {\n group: GROUPS.data,\n label: \"Label\",\n description: \"The label to be displayed on the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: true,\n },\n placeholder: {\n group: GROUPS.basic,\n label: \"Placeholder\",\n description: \"The placeholder text of the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Select an option\",\n editable: true,\n required: false,\n },\n placeholderTextColor: {\n group: GROUPS.basic,\n label: \"Placeholder Text Color\",\n description: \"The color of the placeholder text.\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.STRING,\n },\n assistiveText: {\n group: GROUPS.basic,\n label: \"Assistive text\",\n description: \"Helper text to display below the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n },\n options: {\n group: GROUPS.data,\n label: \"Options\",\n description:\n \"Array of picker options. An array of objects containing a label and value.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.array,\n propType: PROP_TYPES.OBJECT,\n options: [],\n defaultValue: null,\n },\n disabled: {\n group: GROUPS.basic,\n label: \"Disabled\",\n description:\n \"Whether the picker should be disabled. Will prevent selection and show a greyed out state.\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: false,\n editable: true,\n required: false,\n },\n error: {\n group: GROUPS.data,\n label: \"Error\",\n description: \"Whether the picker should display the error state\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: false,\n editable: true,\n required: false,\n },\n leftIconName: {\n group: GROUPS.basic,\n label: \"Left icon name\",\n description: \"The icon to display on the left\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.ASSET,\n defaultValue: null,\n editable: true,\n required: false,\n },\n leftIconMode: {\n group: GROUPS.basic,\n label: \"Left icon mode\",\n description:\n \"The mode of the icon to display on the left. 'inset' or 'outset'.\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"inset\",\n options: [\"inset\", \"outset\"],\n editable: true,\n required: true,\n },\n rightIconName: {\n group: GROUPS.basic,\n label: \"Right icon name\",\n description: \"The icon to display on the right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.ASSET,\n defaultValue: null,\n editable: true,\n required: false,\n },\n fieldName: {\n ...FIELD_NAME,\n defaultValue: \"pickerValue\",\n handlerPropName: \"onValueChange\",\n },\n};\n\nconst SEED_DATA_TRIGGERS = [Triggers.OnValueChange];\nexport const SEED_DATA = [\n {\n name: \"Picker\",\n tag: \"Picker\",\n description: \"A component used to pick a value from a set of options\",\n category: COMPONENT_TYPES.input,\n preview_image_url: \"{CLOUDINARY_URL}/Picker.png\",\n supports_list_render: false,\n triggers: SEED_DATA_TRIGGERS,\n props: {\n ...SEED_DATA_PROPS,\n type: {\n label: \"Appearance\",\n description: \"Type of Picker\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"solid\",\n options: [\"solid\", \"underline\"],\n editable: true,\n required: true,\n group: GROUPS.basic,\n },\n },\n layout: {},\n },\n];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["RadioButtonRow.
|
|
1
|
+
{"version":3,"sources":["RadioButtonRow.js"],"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","props","label","description","required","defaultValue","direction","options","value","color","group","GROUPS","basic","unselectedColor"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,kBADe;AAErBC,EAAAA,GAAG,EAAE,gBAFgB;AAGrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAHL;AAIrBC,EAAAA,MAAM,EAAE,EAJa;AAKrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAE,2BAAe;AAClBA,MAAAA,KAAK,EAAE,OADW;AAElBC,MAAAA,WAAW,EAAE,qCAFK;AAGlBC,MAAAA,QAAQ,EAAE,IAHQ;AAIlBC,MAAAA,YAAY,EAAE;AAJI,KAAf,CADJ;AAOHC,IAAAA,SAAS,EAAE,+BAAmB;AAC1BJ,MAAAA,KAAK,EAAE,WADmB;AAE1BC,MAAAA,WAAW,EAAE,8DAFa;AAG1BI,MAAAA,OAAO,EAAE,CAAC,KAAD,EAAQ,aAAR;AAHiB,KAAnB,CAPR;AAYHC,IAAAA,KAAK,EAAE,2BAAe;AAClBN,MAAAA,KAAK,EAAE,OADW;AAElBC,MAAAA,WAAW,EAAE,2BAFK;AAGlBE,MAAAA,YAAY,EAAE,IAHI;AAIlBD,MAAAA,QAAQ,EAAE;AAJQ,KAAf,CAZJ;AAkBHK,IAAAA,KAAK,EAAE,4BAAgB;AACnBC,MAAAA,KAAK,EAAEC,cAAOC,KADK;AAEnBT,MAAAA,WAAW,EAAE,sBAFM;AAGnBE,MAAAA,YAAY,EAAE;AAHK,KAAhB,CAlBJ;AAuBHQ,IAAAA,eAAe,EAAE,4BAAgB;AAC7BH,MAAAA,KAAK,EAAEC,cAAOC,KADe;AAE7BV,MAAAA,KAAK,EAAE,kBAFsB;AAG7BC,MAAAA,WAAW,EAAE,iCAHgB;AAI7BE,MAAAA,YAAY,EAAE;AAJe,KAAhB;AAvBd;AALc,CAAlB","sourcesContent":["import { createTextProp, createTextEnumProp, COMPONENT_TYPES, createColorProp, GROUPS, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Radio Button Row\",\n tag: \"RadioButtonRow\",\n category: COMPONENT_TYPES.input,\n layout: {},\n props: {\n label: createTextProp({\n label: \"Label\",\n description: \"Label to show with the radio button\",\n required: true,\n defaultValue: \"First Option\",\n }),\n direction: createTextEnumProp({\n label: \"Direction\",\n description: \"Whether the checkbox will appear on the left or on the right\",\n options: [\"row\", \"row-reverse\"],\n }),\n value: createTextProp({\n label: \"Value\",\n description: \"Value of the radio button\",\n defaultValue: null,\n required: true,\n }),\n color: createColorProp({\n group: GROUPS.basic,\n description: \"Color for the button\",\n defaultValue: \"primary\",\n }),\n unselectedColor: createColorProp({\n group: GROUPS.basic,\n label: \"Unselected Color\",\n description: \"Unselected Color for the button\",\n defaultValue: \"primary\",\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["RowBodyIcon.
|
|
1
|
+
{"version":3,"sources":["RowBodyIcon.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","row","preview_image_url","supports_list_render","props","title","group","GROUPS","data","label","formType","FORM_TYPES","string","propType","PROP_TYPES","STRING","defaultValue","editable","required","icon","basic","ASSET","layout","subtitle"],"mappings":";;;;;;;AAAA;;AAOO,MAAMA,SAAS,GAAG,CACvB;AACEC,EAAAA,IAAI,EAAE,2BADR;AAEEC,EAAAA,GAAG,EAAE,aAFP;AAGEC,EAAAA,WAAW,EAAE,4DAHf;AAIEC,EAAAA,QAAQ,EAAEC,uBAAgBC,GAJ5B;AAKEC,EAAAA,iBAAiB,EAAE,8CALrB;AAMEC,EAAAA,oBAAoB,EAAE,IANxB;AAOEC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAEC,cAAOC,IADT;AAELC,MAAAA,KAAK,EAAE,OAFF;AAGLX,MAAAA,WAAW,EAAE,iBAHR;AAILY,MAAAA,QAAQ,EAAEC,kBAAWC,MAJhB;AAKLC,MAAAA,QAAQ,EAAEC,kBAAWC,MALhB;AAMLC,MAAAA,YAAY,EAAE,4BANT;AAOLC,MAAAA,QAAQ,EAAE,IAPL;AAQLC,MAA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AQ,EAAE,IAPF;AAQRC,MAAAA,QAAQ,EAAE;AARF,KAXL;AAqBLC,IAAAA,IAAI,EAAE;AACJb,MAAAA,KAAK,EAAEC,cAAOa,KADV;AAEJX,MAAAA,KAAK,EAAE,MAFH;AAGJX,MAAAA,WAAW,EAAE,iBAHT;AAIJY,MAAAA,QAAQ,EAAEC,kBAAWQ,IAJjB;AAKJN,MAAAA,QAAQ,EAAEC,kBAAWO,KALjB;AAMJL,MAAAA,YAAY,EAAE,IANV;AAOJC,MAAAA,QAAQ,EAAE,IAPN;AAQJC,MAAAA,QAAQ,EAAE;AARN;AArBD,GART;AAwCEI,EAAAA,MAAM,EAAE;AAxCV,CAhCuB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n GROUPS,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = [\n {\n name: \"Row Single Line Body Icon\",\n tag: \"RowBodyIcon\",\n description: \"A row with left aligned body text and a right aligned icon\",\n category: COMPONENT_TYPES.row,\n preview_image_url: \"{CLOUDINARY_URL}/Row_SingleLine_BodyIcon.png\",\n supports_list_render: true,\n props: {\n title: {\n group: GROUPS.data,\n label: \"Title\",\n description: \"Text to display\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Beautiful West Coast Villa\",\n editable: true,\n required: false,\n },\n icon: {\n group: GROUPS.basic,\n label: \"Icon\",\n description: \"Icon to display\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.ASSET,\n defaultValue: null,\n editable: true,\n required: false,\n },\n },\n layout: {},\n },\n {\n name: \"Row Double Line Body Icon\",\n tag: \"RowBodyIcon\",\n description:\n \"A row with left aligned body text and subtitle text and a right aligned icon\",\n category: COMPONENT_TYPES.row,\n preview_image_url: \"{CLOUDINARY_URL}/Row_DoubleLine_BodyIcon.png\",\n supports_list_render: true,\n props: {\n title: {\n group: GROUPS.data,\n label: \"Title\",\n description: \"Text to display\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Beautiful West Coast Villa\",\n editable: true,\n required: false,\n },\n subtitle: {\n group: GROUPS.data,\n label: \"Subtitle\",\n description: \"Subtitle text to display\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"San Diego\",\n editable: true,\n required: false,\n },\n icon: {\n group: GROUPS.basic,\n label: \"Icon\",\n description: \"Icon to display\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.ASSET,\n defaultValue: null,\n editable: true,\n required: false,\n },\n },\n layout: {},\n },\n];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ScrollView.
|
|
1
|
+
{"version":3,"sources":["ScrollView.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","layout","props","horizontal","label","defaultValue","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","bounces"],"mappings":";;;;;;;AAAA;;AAEO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,aADiB;AAEvBC,EAAAA,GAAG,EAAE,YAFkB;AAGvBC,EAAAA,WAAW,EAAE,8BAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,MAJH;AAKvBA,EAAAA,MAAM,EAAE,EALe;AAMvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE,iCAAqB;AAC/BC,MAAAA,KAAK,EAAE,YADwB;AAE/BN,MAAAA,WAAW,EAAE,+BAFkB;AAG/BO,MAAAA,YAAY,EAAE;AAHiB,KAArB,CADP;AAMLC,IAAAA,8BAA8B,EAAE,iCAAqB;AACnDF,MAAAA,KAAK,EAAE,kCAD4C;AAEnDN,MAAAA,WAAW,EACT,4EAHiD;AAInDO,MAAAA,YAAY,EAAE;AAJqC,KAArB,CAN3B;AAYLE,IAAAA,4BAA4B,EAAE,iCAAqB;AACjDH,MAAAA,KAAK,EAAE,gCAD0C;AAEjDN,MAAAA,WAAW,EACT,0EAH+C;AAIjDO,MAAAA,YAAY,EAAE;AAJmC,KAArB,CAZzB;AAkBLG,IAAAA,OAAO,EAAE,iCAAqB;AAC5BJ,MAAAA,KAAK,EAAE,QADqB;AAE5BN,MAAAA,WAAW,EACT,iKAH0B;AAI5BO,MAAAA,YAAY,EAAE;AAJc,KAArB;AAlBJ;AANgB,CAAlB","sourcesContent":["import { COMPONENT_TYPES, createStaticBoolProp } from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Scroll View\",\n tag: \"ScrollView\",\n description: \"A basic ScrollView component\",\n category: COMPONENT_TYPES.layout,\n layout: {},\n props: {\n horizontal: createStaticBoolProp({\n label: \"Horizontal\",\n description: \"Render your list horizontally\",\n defaultValue: false,\n }),\n showsHorizontalScrollIndicator: createStaticBoolProp({\n label: \"Show Horizontal Scroll Indicator\",\n description:\n \"When true, shows a horizontal scroll indicator. The default value is true.\",\n defaultValue: false,\n }),\n showsVerticalScrollIndicator: createStaticBoolProp({\n label: \"Show Vertical Scroll Indicator\",\n description:\n \"When true, shows a vertical scroll indicator. The default value is true.\",\n defaultValue: true,\n }),\n bounces: createStaticBoolProp({\n label: \"Bounce\",\n description:\n \"When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.\",\n defaultValue: true,\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Slider.
|
|
1
|
+
{"version":3,"sources":["Slider.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","input","layout","marginLeft","marginRight","triggers","Triggers","OnValueChange","props","fieldName","defaultValue","handlerPropName","valuePropName","minimumValue","group","GROUPS","basic","label","min","max","maximumValue","step","precision","leftIcon","rightIcon","minimumTrackTintColor","maximumTrackTintColor","thumbTintColor"],"mappings":";;;;;;;AAAA;;AAUO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,QADiB;AAEvBC,EAAAA,GAAG,EAAE,QAFkB;AAGvBC,EAAAA,WAAW,EAAE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AAf,CA9BN;AAkCLe,IAAAA,qBAAqB,EAAE,4BAAgB;AACrCR,MAAAA,KAAK,EAAE,iBAD8B;AAErCP,MAAAA,YAAY,EAAE;AAFuB,KAAhB,CAlClB;AAsCLgB,IAAAA,qBAAqB,EAAE,4BAAgB;AACrCT,MAAAA,KAAK,EAAE,iBAD8B;AAErCP,MAAAA,YAAY,EAAE;AAFuB,KAAhB,CAtClB;AA0CLiB,IAAAA,cAAc,EAAE,4BAAgB;AAC9BV,MAAAA,KAAK,EAAE,aADuB;AAE9BP,MAAAA,YAAY,EAAE;AAFgB,KAAhB;AA1CX;AAVgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n GROUPS,\n createNumberProp,\n createColorProp,\n createFieldNameProp,\n createIconProp,\n Triggers,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Slider\",\n tag: \"Slider\",\n description: \"A component used to set a value in a range\",\n category: COMPONENT_TYPES.input,\n layout: {\n marginLeft: 12,\n marginRight: 12,\n },\n triggers: [Triggers.OnValueChange],\n props: {\n fieldName: createFieldNameProp({\n defaultValue: \"sliderValue\",\n handlerPropName: \"onValueChange\",\n valuePropName: \"value\",\n }),\n minimumValue: createNumberProp({\n group: GROUPS.basic,\n label: \"Min Value\",\n min: 0,\n max: 1000,\n }),\n maximumValue: createNumberProp({\n group: GROUPS.basic,\n label: \"Max Value\",\n min: 1,\n max: 10000,\n }),\n step: createNumberProp({\n group: GROUPS.basic,\n label: \"Step\",\n min: 0,\n max: 100,\n step: 0.01,\n precision: 2,\n }),\n leftIcon: createIconProp({\n label: \"Left Icon\",\n defaultValue: null,\n }),\n rightIcon: createIconProp({\n label: \"Right Icon\",\n defaultValue: null,\n }),\n minimumTrackTintColor: createColorProp({\n label: \"Min Track Color\",\n defaultValue: null,\n }),\n maximumTrackTintColor: createColorProp({\n label: \"Max Track Color\",\n defaultValue: null,\n }),\n thumbTintColor: createColorProp({\n label: \"Thumb Color\",\n defaultValue: null,\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Swiper.
|
|
1
|
+
{"version":3,"sources":["Swiper.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","container","layout","height","width","props","from","group","GROUPS","basic","label","loop","timeout","defaultValue","vertical","prevTitle","nextTitle","prevTitleColor","nextTitleColor","dotColor","dotActiveColor","dotsTouchable"],"mappings":";;;;;;;AAAA;;AASO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,QADiB;AAEvBC,EAAAA,GAAG,EAAE,QAFkB;AAGvBC,EAAAA,WAAW,EAAE,kBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,SAJH;AAKvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,MAAM,EAAE,GADF;AAENC,IAAAA,KAAK,EAAE;AAFD,GALe;AASvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,6BAAiB;AACrBC,MAAAA,KAAK,EAAEC,cAAOC,KADO;AAErBC,MAAAA,KAAK,EAAE;AAFc,KAAjB,CADD;AAKLC,IAAAA,IAAI,EAAE,2BAAe;AACnBJ,MAAAA,KAAK,EAAEC,cAAOC,KADK;AAEnBC,MAAAA,KAAK,EAAE;AAFY,KAAf,CALD;AASLE,IAAAA,OAAO,EAAE,6BAAiB;AACxBL,MAAAA,KAAK,EAAEC,cAAOC,KADU;AAExBC,MAAAA,KAAK,EAAE,SAFiB;AAGxBG,MAAAA,YAAY,EAAE;AAHU,KAAjB,CATJ;AAcLC,IAAAA,QAAQ,EAAE,2BAAe;AACvBP,MAAAA,KAAK,EAAEC,cAAOC,KADS;AAEvBC,MAAAA,KAAK,EAAE,UAFgB;AAGvBG,MAAAA,YAAY,EAAE;AAHS,KAAf,CAdL;AAmBLE,IAAAA,SAAS,EAAE,2BAAe;AACxBR,MAAAA,KAAK,EAAEC,cAAOC,KADU;AAExBC,MAAAA,KAAK,EAAE,gBAFiB;AAGxBG,MAAAA,YAAY,EAAE;AAHU,KAAf,CAnBN;AAwBLG,IAAAA,SAAS,EAAE,2BAAe;AACxBT,MAAAA,KAAK,EAAEC,cAAOC,KADU;AAExBC,MAAAA,KAAK,EAAE,YAFiB;AAGxBG,MAAAA,YAAY,EAAE;AAHU,KAAf,CAxBN;AA6BLI,IAAAA,cAAc,EAAE,4BAAgB;AAC9BP,MAAAA,KAAK,EAAE;AADuB,KAAhB,CA7BX;AAgCLQ,IAAAA,cAAc,EAAE,4BAAgB;AAC9BR,MAAAA,KAAK,EAAE;AADuB,KAAhB,CAhCX;AAmCLS,IAAAA,QAAQ,EAAE,4BAAgB;AACxBT,MAAAA,KAAK,EAAE,WADiB;AAExBG,MAAAA,YAAY,EAAE;AAFU,KAAhB,CAnCL;AAuCLO,IAAAA,cAAc,EAAE,4BAAgB;AAC9BV,MAAAA,KAAK,EAAE,kBADuB;AAE9BG,MAAAA,YAAY,EAAE;AAFgB,KAAhB,CAvCX;AA2CLQ,IAAAA,aAAa,EAAE,2BAAe;AAC5Bd,MAAAA,KAAK,EAAEC,cAAOC,KADc;AAE5BC,MAAAA,KAAK,EAAE,gBAFqB;AAG5BG,MAAAA,YAAY,EAAE;AAHc,KAAf;AA3CV;AATgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createBoolProp,\n createNumberProp,\n createTextProp,\n createColorProp,\n GROUPS,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Swiper\",\n tag: \"Swiper\",\n description: \"Swiper container\",\n category: COMPONENT_TYPES.container,\n layout: {\n height: 300,\n width: \"100%\",\n },\n props: {\n from: createNumberProp({\n group: GROUPS.basic,\n label: \"Initial Slide\",\n }),\n loop: createBoolProp({\n group: GROUPS.basic,\n label: \"Loop\",\n }),\n timeout: createNumberProp({\n group: GROUPS.basic,\n label: \"Timeout\",\n defaultValue: 0,\n }),\n vertical: createBoolProp({\n group: GROUPS.basic,\n label: \"Vertical\",\n defaultValue: false,\n }),\n prevTitle: createTextProp({\n group: GROUPS.basic,\n label: \"Previous Title\",\n defaultValue: \"\",\n }),\n nextTitle: createTextProp({\n group: GROUPS.basic,\n label: \"Next Title\",\n defaultValue: \"\",\n }),\n prevTitleColor: createColorProp({\n label: \"Previous Title Color\",\n }),\n nextTitleColor: createColorProp({\n label: \"Next Title Color\",\n }),\n dotColor: createColorProp({\n label: \"Dot Color\",\n defaultValue: \"light\",\n }),\n dotActiveColor: createColorProp({\n label: \"Dot Active Color\",\n defaultValue: \"primary\",\n }),\n dotsTouchable: createBoolProp({\n group: GROUPS.basic,\n label: \"Dots Touchable\",\n defaultValue: true,\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["View.js"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","accessible","group","GROUPS","accessibility","label","editable","required","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","defaultValue","accessibilityLabel","string","STRING","accessibilityHint","accessibilityRole","options","flatArray","accessibilityElementsHidden","accessibilityIgnoresInvertColors","accessibilityLiveRegion","importantForAccessibility","hitSlop","advanced","position","OBJECT","pointerEvents","removeClippedSubviews","collapsable","needsOffscreenAlphaCompositing","renderToHardwareTextureAndroid","shouldRasterizeIOS"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,MADe;AAErBC,EAAAA,GAAG,EAAE,MAFgB;AAGrBC,EAAAA,WAAW,EAAE,wBAHQ;AAIrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJL;AAKrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,UAAU,EAAE;AACRC,MAAAA,KAAK,EAAEC,cAAOC,aADN;AAERV,MAAAA,IAAI,EAAE,YAFE;AAGRW,MAAAA,KAAK,EAAE,YAHC;AAIRT,MAAAA,WAAW,EAAE,wHAJL;AAKRU,MAAAA,QAAQ,EAAE,IALF;AAMRC,MAAAA,QAAQ,EAAE,KANF;AAOR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AAE,gCAHqB;AAI5BT,MAAAA,WAAW,EAAE,2nCAJe;AAK5BU,MAAAA,QAAQ,EAAE,IALkB;AAM5BC,MAAAA,QAAQ,EAAE,KANkB;AAO5BC,MAAAA,QAAQ,EAAEC,kBAAWC,OAPO;AAQ5BC,MAAAA,QAAQ,EAAEC,kBAAWC,OARO;AAS5BC,MAAAA,YAAY,EAAE;AATc,KArK7B;AAgLHoB,IAAAA,8BAA8B,EAAE;AAC5BhC,MAAAA,KAAK,EAAEC,cAAOwB,QADc;AAE5BjC,MAAAA,IAAI,EAAE,gCAFsB;AAG5BW,MAAAA,KAAK,EAAE,gCAHqB;AAI5BT,MAAAA,WAAW,EAAE,+hBAJe;AAK5BU,MAAAA,QAAQ,EAAE,IALkB;AAM5BC,MAAAA,QAAQ,EAAE,KANkB;AAO5BC,MAAAA,QAAQ,EAAEC,kBAAWC,OAPO;AAQ5BC,MAAAA,QAAQ,EAAEC,kBAAWC,OARO;AAS5BC,MAAAA,YAAY,EAAE;AATc,KAhL7B;AA2LHqB,IAAAA,kBAAkB,EAAE;AAChBjC,MAAAA,KAAK,EAAEC,cAAOwB,QADE;AAEhBjC,MAAAA,IAAI,EAAE,oBAFU;AAGhBW,MAAAA,KAAK,EAAE,oBAHS;AAIhBT,MAAAA,WAAW,EAAE,4eAJG;AAKhBU,MAAAA,QAAQ,EAAE,IALM;AAMhBC,MAAAA,QAAQ,EAAE,KANM;AAOhBC,MAAAA,QAAQ,EAAEC,kBAAWC,OAPL;AAQhBC,MAAAA,QAAQ,EAAEC,kBAAWC,OARL;AAShBC,MAAAA,YAAY,EAAE;AATE;AA3LjB;AALc,CAAlB","sourcesContent":["import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"View\",\n tag: \"View\",\n description: \"A basic View component\",\n category: COMPONENT_TYPES.basic,\n props: {\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description: \"When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description: \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: null,\n },\n accessibilityHint: {\n group: GROUPS.accessibility,\n name: \"accessibilityHint\",\n label: \"accessibilityHint\",\n description: \"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description: \"accessibilityRole communicates the purpose of a component to the user of an assistive technology.accessibilityRole can be one of the following:\\n'none' - Used when the element has no role.\\n'button' - Used when the element should be treated as a button.\\n'link' - Used when the element should be treated as a link.\\n'search' - Used when the text field element should also be treated as a search field.\\n'image' - Used when the element should be treated as an image. Can be combined with button or link, for example.\\n'keyboardkey' - Used when the element acts as a keyboard key.\\n'text' - Used when the element should be treated as static text that cannot change.\\n'adjustable' - Used when an element can be \\\"adjusted\\\" (e.g. a slider).\\n'imagebutton' - Used when the element should be treated as a button and is also an image.\\n'header' - Used when an element acts as a header for a content section (e.g. the title of a navigation bar).\\n'summary' - Used when an element can be used to provide a quick summary of current conditions in the app when the app first launches.\\n'alert' - Used when an element contains important text to be presented to the user.\\n'checkbox' - Used when an element represents a checkbox which can be checked, unchecked, or have mixed checked state.\\n'combobox' - Used when an element represents a combo box, which allows the user to select among several choices.\\n'menu' - Used when the component is a menu of choices.\\n'menubar' - Used when a component is a container of multiple menus.\\n'menuitem' - Used to represent an item within a menu.\\n'progressbar' - Used to represent a component which indicates progress of a task.\\n'radio' - Used to represent a radio button.\\n'radiogroup' - Used to represent a group of radio buttons.\\n'scrollbar' - Used to represent a scroll bar.\\n'spinbutton' - Used to represent a button which opens a list of choices.\\n'switch' - Used to represent a switch which can be turned on and off.\\n'tab' - Used to represent a tab.\\n'tablist' - Used to represent a list of tabs.\\n'timer' - Used to represent a timer.\\n'toolbar' - Used to represent a tool bar (a container of action buttons or components).\\n\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"search\",\n \"image\",\n \"keyboardkey\",\n \"text\",\n \"adjustable\",\n \"imagebutton\",\n \"header\",\n \"summary\",\n \"alert\",\n \"checkbox\",\n \"combobox\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"scrollbar\",\n \"spinbutton\",\n \"switch\",\n \"tab\",\n \"tablist\",\n \"timer\",\n \"toolbar\",\n ],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityElementsHidden: {\n group: GROUPS.accessibility,\n name: \"accessibilityElementsHidden\",\n label: \"accessibilityElementsHidden\",\n description: \"A value indicating whether the accessibility elements contained within this accessibility element are hidden. Default is false.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityIgnoresInvertColors: {\n group: GROUPS.accessibility,\n name: \"accessibilityIgnoresInvertColors\",\n label: \"accessibilityIgnoresInvertColors\",\n description: \"A value indicating this view should or should not be inverted when color inversion is turned on. A value of true will tell the view to not be inverted even if color inversion is turned on.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLiveRegion: {\n group: GROUPS.accessibility,\n name: \"accessibilityLiveRegion\",\n label: \"accessibilityLiveRegion\",\n description: \"Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values:\\n'none' - Accessibility services should not announce changes to this view.\\n'polite'- Accessibility services should announce changes to this view.\\n'assertive' - Accessibility services should interrupt ongoing speech to immediately announce changes to this view.\\nSee the Android View docs for reference.\",\n options: [\"none\", \"polite\", \"assertive\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n importantForAccessibility: {\n group: GROUPS.accessibility,\n name: \"importantForAccessibility\",\n label: \"importantForAccessibility\",\n defaultValue: null,\n description: \"Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only.Possible values:\\n'auto' - The system determines whether the view is important for accessibility - default (recommended).\\n'yes' - The view is important for accessibility.\\n'no' - The view is not important for accessibility.\\n'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.\\nSee the Android importantForAccessibility docs for reference.\",\n options: [\"auto\", \"yes\", \"no\", \"no-hide-descendants\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n hitSlop: {\n group: GROUPS.advanced,\n name: \"hitSlop\",\n label: \"hitSlop\",\n description: \"This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.For example, if a touchable view has a height of 20 the touchable height can be extended to 40 with hitSlop={{top: 10, bottom: 10, left: 0, right: 0}}\\nThe touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.\\n\",\n editable: true,\n required: false,\n formType: FORM_TYPES.position,\n propType: PROP_TYPES.OBJECT,\n defaultValue: null,\n },\n pointerEvents: {\n group: GROUPS.advanced,\n name: \"pointerEvents\",\n label: \"pointerEvents\",\n description: \"Controls whether the View can be the target of touch events.\\n'auto': The View can be the target of touch events.\\n'none': The View is never the target of touch events.\\n'box-none': The View is never the target of touch events but its subviews can be. It behaves like if the view had the following classes in CSS:\\n.box-none {\\n pointer-events: none;\\n}\\n.box-none * {\\n pointer-events: auto;\\n}\\n\\n'box-only': The view can be the target of touch events but its subviews cannot be. It behaves like if the view had the following classes in CSS:\\n.box-only {\\n pointer-events: auto;\\n}\\n.box-only * {\\n pointer-events: none;\\n}\\n\\nSince pointerEvents does not affect layout/appearance, and we are already deviating from the spec by adding additional modes, we opt to not include pointerEvents on style. On some platforms, we would need to implement it as a className anyways. Using style or not is an implementation detail of the platform.\\n\",\n options: [\"auto\", \"none\", \"box-none\", \"box-only\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n removeClippedSubviews: {\n group: GROUPS.advanced,\n name: \"removeClippedSubviews\",\n label: \"removeClippedSubviews\",\n description: \"This is a reserved performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n collapsable: {\n group: GROUPS.advanced,\n name: \"collapsable\",\n label: \"collapsable\",\n description: \"Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n needsOffscreenAlphaCompositing: {\n group: GROUPS.advanced,\n name: \"needsOffscreenAlphaCompositing\",\n label: \"needsOffscreenAlphaCompositing\",\n description: \"Whether this View needs to rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with an alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default. If you do need to enable this property for an animation, consider combining it with renderToHardwareTextureAndroid if the view contents are static (i.e. it doesn't need to be redrawn each frame). If that property is enabled, this View will be rendered off-screen once, saved in a hardware texture, and then composited onto the screen with an alpha each frame without having to switch rendering targets on the GPU.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n renderToHardwareTextureAndroid: {\n group: GROUPS.advanced,\n name: \"renderToHardwareTextureAndroid\",\n label: \"renderToHardwareTextureAndroid\",\n description: \"Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/animation.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n shouldRasterizeIOS: {\n group: GROUPS.advanced,\n name: \"shouldRasterizeIOS\",\n label: \"shouldRasterizeIOS\",\n description: \"Whether this View should be rendered as a bitmap before compositing.On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to reuse a cached bitmap of a static view and quickly composite it during each frame.Rasterization incurs an off-screen drawing pass and the bitmap consumes memory. Test and measure when using this property.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["View.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","accessible","group","GROUPS","accessibility","label","editable","required","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","defaultValue","accessibilityLabel","string","STRING","accessibilityHint","accessibilityRole","options","flatArray","accessibilityElementsHidden","accessibilityIgnoresInvertColors","accessibilityLiveRegion","importantForAccessibility","hitSlop","advanced","position","OBJECT","pointerEvents","removeClippedSubviews","collapsable","needsOffscreenAlphaCompositing","renderToHardwareTextureAndroid","shouldRasterizeIOS"],"mappings":";;;;;;;AAAA;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,wBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE;AACVC,MAAAA,KAAK,EAAEC,cAAOC,aADJ;AAEVV,MAAAA,IAAI,EAAE,YAFI;AAGVW,MAAAA,KAAK,EAAE,YAHG;AAIVT,MAAAA,WAAW,EACT,wHALQ;AAMVU,MAAAA,QAAQ,EAAE,IANA;AAOVC,MAAAA,QAAQ,EAAE,KAPA;AAQVC,MAAAA,QAAQ,EAAEC,kBAAWC,OARX;AASVC,MAAAA,QAAQ,EAAEC,kBAAWC,OATX;AAUVC,MAAAA,YAAY,EAAE;AAVJ,KADP;AAaLC,IAAAA,kBAAkB,EAAE;AAClBb,MAAAA,KAAK,EAAEC,cAAOC,aADI;AAElBV,MAAAA,IAAI,EAAE,oBAFY;AAGlBW,MAAAA,KAAK,EAAE,oBAHW;AAIlBT,MAAAA,WAAW,EACT,2NALgB;AAMlBY,MAAAA,QAAQ,EAAEC,kBAAWO,MANH;AAOlBL,MAAAA,QAAQ,EAAEC,kBAAWK,MAPH;AAQlBX,MAAAA,QAAQ,EAAE,IARQ;AASlBC,MAAAA,QAAQ,EAAE,KATQ;AAUlBO,MAAAA,YAAY,EAAE;AAVI,KAbf;AAyBLI,IAAAA,iBAAiB,EAAE;AACjBhB,MAAAA,KAAK,EAAEC,cAAOC,aADG;AAEjBV,MAAAA,IAAI,EAAE,mBAFW;AAGjBW,MAAAA,KAAK,EAAE,mBAHU;AAIjBT,M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,YAAY,EAAE;AAVgB,KA7L3B;AAyMLqB,IAAAA,kBAAkB,EAAE;AAClBjC,MAAAA,KAAK,EAAEC,cAAOwB,QADI;AAElBjC,MAAAA,IAAI,EAAE,oBAFY;AAGlBW,MAAAA,KAAK,EAAE,oBAHW;AAIlBT,MAAAA,WAAW,EACT,4eALgB;AAMlBU,MAAAA,QAAQ,EAAE,IANQ;AAOlBC,MAAAA,QAAQ,EAAE,KAPQ;AAQlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OARH;AASlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OATH;AAUlBC,MAAAA,YAAY,EAAE;AAVI;AAzMf;AALgB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"View\",\n tag: \"View\",\n description: \"A basic View component\",\n category: COMPONENT_TYPES.basic,\n props: {\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: null,\n },\n accessibilityHint: {\n group: GROUPS.accessibility,\n name: \"accessibilityHint\",\n label: \"accessibilityHint\",\n description:\n \"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"accessibilityRole communicates the purpose of a component to the user of an assistive technology.accessibilityRole can be one of the following:\\n'none' - Used when the element has no role.\\n'button' - Used when the element should be treated as a button.\\n'link' - Used when the element should be treated as a link.\\n'search' - Used when the text field element should also be treated as a search field.\\n'image' - Used when the element should be treated as an image. Can be combined with button or link, for example.\\n'keyboardkey' - Used when the element acts as a keyboard key.\\n'text' - Used when the element should be treated as static text that cannot change.\\n'adjustable' - Used when an element can be \\\"adjusted\\\" (e.g. a slider).\\n'imagebutton' - Used when the element should be treated as a button and is also an image.\\n'header' - Used when an element acts as a header for a content section (e.g. the title of a navigation bar).\\n'summary' - Used when an element can be used to provide a quick summary of current conditions in the app when the app first launches.\\n'alert' - Used when an element contains important text to be presented to the user.\\n'checkbox' - Used when an element represents a checkbox which can be checked, unchecked, or have mixed checked state.\\n'combobox' - Used when an element represents a combo box, which allows the user to select among several choices.\\n'menu' - Used when the component is a menu of choices.\\n'menubar' - Used when a component is a container of multiple menus.\\n'menuitem' - Used to represent an item within a menu.\\n'progressbar' - Used to represent a component which indicates progress of a task.\\n'radio' - Used to represent a radio button.\\n'radiogroup' - Used to represent a group of radio buttons.\\n'scrollbar' - Used to represent a scroll bar.\\n'spinbutton' - Used to represent a button which opens a list of choices.\\n'switch' - Used to represent a switch which can be turned on and off.\\n'tab' - Used to represent a tab.\\n'tablist' - Used to represent a list of tabs.\\n'timer' - Used to represent a timer.\\n'toolbar' - Used to represent a tool bar (a container of action buttons or components).\\n\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"search\",\n \"image\",\n \"keyboardkey\",\n \"text\",\n \"adjustable\",\n \"imagebutton\",\n \"header\",\n \"summary\",\n \"alert\",\n \"checkbox\",\n \"combobox\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"scrollbar\",\n \"spinbutton\",\n \"switch\",\n \"tab\",\n \"tablist\",\n \"timer\",\n \"toolbar\",\n ],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityElementsHidden: {\n group: GROUPS.accessibility,\n name: \"accessibilityElementsHidden\",\n label: \"accessibilityElementsHidden\",\n description:\n \"A value indicating whether the accessibility elements contained within this accessibility element are hidden. Default is false.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityIgnoresInvertColors: {\n group: GROUPS.accessibility,\n name: \"accessibilityIgnoresInvertColors\",\n label: \"accessibilityIgnoresInvertColors\",\n description:\n \"A value indicating this view should or should not be inverted when color inversion is turned on. A value of true will tell the view to not be inverted even if color inversion is turned on.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLiveRegion: {\n group: GROUPS.accessibility,\n name: \"accessibilityLiveRegion\",\n label: \"accessibilityLiveRegion\",\n description:\n \"Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values:\\n'none' - Accessibility services should not announce changes to this view.\\n'polite'- Accessibility services should announce changes to this view.\\n'assertive' - Accessibility services should interrupt ongoing speech to immediately announce changes to this view.\\nSee the Android View docs for reference.\",\n options: [\"none\", \"polite\", \"assertive\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n importantForAccessibility: {\n group: GROUPS.accessibility,\n name: \"importantForAccessibility\",\n label: \"importantForAccessibility\",\n defaultValue: null,\n description:\n \"Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only.Possible values:\\n'auto' - The system determines whether the view is important for accessibility - default (recommended).\\n'yes' - The view is important for accessibility.\\n'no' - The view is not important for accessibility.\\n'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.\\nSee the Android importantForAccessibility docs for reference.\",\n options: [\"auto\", \"yes\", \"no\", \"no-hide-descendants\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n hitSlop: {\n group: GROUPS.advanced,\n name: \"hitSlop\",\n label: \"hitSlop\",\n description:\n \"This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.For example, if a touchable view has a height of 20 the touchable height can be extended to 40 with hitSlop={{top: 10, bottom: 10, left: 0, right: 0}}\\nThe touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.\\n\",\n editable: true,\n required: false,\n formType: FORM_TYPES.position,\n propType: PROP_TYPES.OBJECT,\n defaultValue: null,\n },\n pointerEvents: {\n group: GROUPS.advanced,\n name: \"pointerEvents\",\n label: \"pointerEvents\",\n description:\n \"Controls whether the View can be the target of touch events.\\n'auto': The View can be the target of touch events.\\n'none': The View is never the target of touch events.\\n'box-none': The View is never the target of touch events but its subviews can be. It behaves like if the view had the following classes in CSS:\\n.box-none {\\n pointer-events: none;\\n}\\n.box-none * {\\n pointer-events: auto;\\n}\\n\\n'box-only': The view can be the target of touch events but its subviews cannot be. It behaves like if the view had the following classes in CSS:\\n.box-only {\\n pointer-events: auto;\\n}\\n.box-only * {\\n pointer-events: none;\\n}\\n\\nSince pointerEvents does not affect layout/appearance, and we are already deviating from the spec by adding additional modes, we opt to not include pointerEvents on style. On some platforms, we would need to implement it as a className anyways. Using style or not is an implementation detail of the platform.\\n\",\n options: [\"auto\", \"none\", \"box-none\", \"box-only\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n removeClippedSubviews: {\n group: GROUPS.advanced,\n name: \"removeClippedSubviews\",\n label: \"removeClippedSubviews\",\n description:\n \"This is a reserved performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n collapsable: {\n group: GROUPS.advanced,\n name: \"collapsable\",\n label: \"collapsable\",\n description:\n \"Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n needsOffscreenAlphaCompositing: {\n group: GROUPS.advanced,\n name: \"needsOffscreenAlphaCompositing\",\n label: \"needsOffscreenAlphaCompositing\",\n description:\n \"Whether this View needs to rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with an alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default. If you do need to enable this property for an animation, consider combining it with renderToHardwareTextureAndroid if the view contents are static (i.e. it doesn't need to be redrawn each frame). If that property is enabled, this View will be rendered off-screen once, saved in a hardware texture, and then composited onto the screen with an alpha each frame without having to switch rendering targets on the GPU.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n renderToHardwareTextureAndroid: {\n group: GROUPS.advanced,\n name: \"renderToHardwareTextureAndroid\",\n label: \"renderToHardwareTextureAndroid\",\n description:\n \"Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/animation.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n shouldRasterizeIOS: {\n group: GROUPS.advanced,\n name: \"shouldRasterizeIOS\",\n label: \"shouldRasterizeIOS\",\n description:\n \"Whether this View should be rendered as a bitmap before compositing.On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to reuse a cached bitmap of a static view and quickly composite it during each frame.Rasterization incurs an off-screen drawing pass and the bitmap consumes memory. Test and measure when using this property.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n },\n};\n"]}
|