@draftbit/core 46.10.3-e89832.2 → 46.10.3-f6ea70.2
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 +23 -4
- package/lib/commonjs/components/AnimatedCircularProgress.js +1 -12
- package/lib/commonjs/components/AvatarEdit.js +4 -15
- package/lib/commonjs/components/Banner.js +4 -23
- package/lib/commonjs/components/Button.js +10 -33
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +5 -23
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
- package/lib/commonjs/components/CircleImage.js +15 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js +15 -1
- package/lib/commonjs/components/Divider.js +1 -14
- package/lib/commonjs/components/FieldSearchBarFull.js +2 -1
- package/lib/commonjs/components/Layout.js +19 -40
- package/lib/commonjs/components/NumberInput.js +3 -12
- package/lib/commonjs/components/Picker/PickerComponent.android.js +3 -20
- package/lib/commonjs/components/Picker/PickerComponent.web.js +20 -3
- package/lib/commonjs/components/Portal/PortalConsumer.js +7 -22
- package/lib/commonjs/components/Portal/PortalManager.js +8 -34
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -9
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +2 -15
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +5 -23
- package/lib/commonjs/components/ScreenContainer.js +6 -24
- package/lib/commonjs/components/Shadow.js +2 -15
- package/lib/commonjs/components/Slider.js +4 -21
- package/lib/commonjs/components/StarRating.js +4 -23
- package/lib/commonjs/components/StepIndicator.js +18 -57
- package/lib/commonjs/components/Surface.js +2 -14
- package/lib/commonjs/components/TabView/TabView.js +7 -13
- package/lib/commonjs/components/Table/Table.js +123 -0
- package/lib/commonjs/components/Table/TableCell.js +49 -0
- package/lib/commonjs/components/Table/TableCommon.js +30 -0
- package/lib/commonjs/components/Table/TableRow.js +61 -0
- package/lib/commonjs/components/Table/index.js +27 -0
- package/lib/commonjs/components/Text.js +4 -50
- package/lib/commonjs/components/TextField.js +28 -76
- package/lib/commonjs/components/ToggleButton.js +2 -15
- package/lib/commonjs/components/Touchable.js +2 -15
- package/lib/commonjs/index.js +19 -28
- package/lib/commonjs/mappings/FieldSearchBarFull.js +3 -1
- package/lib/commonjs/mappings/NativeBase/Layout.js +108 -0
- package/lib/commonjs/mappings/StarRating.js +6 -2
- package/lib/commonjs/mappings/Table.js +140 -0
- package/lib/commonjs/styles/overlay.js +3 -1
- package/lib/commonjs/utilities.js +2 -1
- package/lib/module/components/Table/Table.js +114 -0
- package/lib/module/components/Table/TableCell.js +41 -0
- package/lib/module/components/Table/TableCommon.js +21 -0
- package/lib/module/components/Table/TableRow.js +53 -0
- package/lib/module/components/Table/index.js +3 -0
- package/lib/module/index.js +1 -4
- package/lib/module/mappings/NativeBase/Layout.js +101 -0
- package/lib/module/mappings/Table.js +133 -0
- package/lib/typescript/src/components/Table/Table.d.ts +19 -0
- package/lib/typescript/src/components/Table/Table.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/TableCell.d.ts +9 -0
- package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/TableCommon.d.ts +20 -0
- package/lib/typescript/src/components/Table/TableCommon.d.ts.map +1 -0
- package/lib/typescript/src/components/{RowBodyIcon.d.ts → Table/TableRow.d.ts} +7 -9
- package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/index.d.ts +4 -0
- package/lib/typescript/src/components/Table/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -4
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +133 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Table.d.ts +337 -0
- package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/components/Table/Table.js +93 -0
- package/src/components/Table/Table.tsx +176 -0
- package/src/components/Table/TableCell.js +31 -0
- package/src/components/Table/TableCell.tsx +63 -0
- package/src/components/Table/TableCommon.js +12 -0
- package/src/components/Table/TableCommon.ts +40 -0
- package/src/components/Table/TableRow.js +37 -0
- package/src/components/Table/TableRow.tsx +77 -0
- package/src/components/Table/index.js +3 -0
- package/src/components/Table/index.tsx +3 -0
- package/src/index.js +1 -4
- package/src/index.tsx +2 -4
- package/src/mappings/NativeBase/Layout.js +124 -0
- package/src/mappings/NativeBase/Layout.ts +145 -0
- package/src/mappings/Table.js +150 -0
- package/src/mappings/Table.ts +170 -0
- package/lib/commonjs/components/Container.js +0 -104
- package/lib/commonjs/components/Row.js +0 -73
- package/lib/commonjs/components/RowBodyIcon.js +0 -45
- package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -45
- package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -51
- package/lib/commonjs/mappings/Container.js +0 -37
- package/lib/module/components/Container.js +0 -83
- package/lib/module/components/Row.js +0 -63
- package/lib/module/components/RowBodyIcon.js +0 -35
- package/lib/module/components/RowHeadlineImageCaption.js +0 -35
- package/lib/module/components/RowHeadlineImageIcon.js +0 -41
- package/lib/module/mappings/Container.js +0 -30
- package/lib/typescript/src/components/Container.d.ts +0 -21
- package/lib/typescript/src/components/Container.d.ts.map +0 -1
- package/lib/typescript/src/components/Row.d.ts +0 -21
- package/lib/typescript/src/components/Row.d.ts.map +0 -1
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Container.d.ts +0 -55
- package/lib/typescript/src/mappings/Container.d.ts.map +0 -1
- package/src/components/Container.js +0 -43
- package/src/components/Container.tsx +0 -116
- package/src/components/Row.js +0 -48
- package/src/components/Row.tsx +0 -108
- package/src/components/RowBodyIcon.js +0 -8
- package/src/components/RowBodyIcon.tsx +0 -47
- package/src/components/RowHeadlineImageCaption.js +0 -12
- package/src/components/RowHeadlineImageCaption.tsx +0 -49
- package/src/components/RowHeadlineImageIcon.js +0 -14
- package/src/components/RowHeadlineImageIcon.tsx +0 -61
- package/src/mappings/Container.js +0 -30
- package/src/mappings/Container.ts +0 -41
|
@@ -10,6 +10,10 @@ var _theming = require("../theming");
|
|
|
10
10
|
var _utilities = require("../utilities");
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
|
+
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); }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
17
|
const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
|
|
14
18
|
const FOCUS_ANIMATION_DURATION = 150;
|
|
15
19
|
const BLUR_ANIMATION_DURATION = 180;
|
|
@@ -17,7 +21,7 @@ const ICON_SIZE = 24;
|
|
|
17
21
|
class TextField extends React.Component {
|
|
18
22
|
constructor() {
|
|
19
23
|
super(...arguments);
|
|
20
|
-
this
|
|
24
|
+
_defineProperty(this, "state", {
|
|
21
25
|
nativeProps: {},
|
|
22
26
|
labeled: new _reactNative.Animated.Value(this.props.value || this.props.error ? 0 : 1),
|
|
23
27
|
focused: false,
|
|
@@ -26,46 +30,47 @@ class TextField extends React.Component {
|
|
|
26
30
|
measured: false,
|
|
27
31
|
width: 0
|
|
28
32
|
}
|
|
29
|
-
};
|
|
30
|
-
this
|
|
31
|
-
this
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "_timer", setTimeout(() => {}, 0));
|
|
35
|
+
_defineProperty(this, "_showPlaceholder", () => {
|
|
32
36
|
clearTimeout(this._timer);
|
|
37
|
+
|
|
33
38
|
// Set the placeholder in a delay to offset the label animation
|
|
34
39
|
// If we show it immediately, they'll overlap and look ugly
|
|
35
40
|
this._timer = setTimeout(() => this.setState({
|
|
36
41
|
placeholder: this.props.placeholder
|
|
37
42
|
}), 50);
|
|
38
|
-
};
|
|
39
|
-
this._hidePlaceholder = () => this.setState({
|
|
40
|
-
placeholder: ""
|
|
41
43
|
});
|
|
42
|
-
this
|
|
44
|
+
_defineProperty(this, "_hidePlaceholder", () => this.setState({
|
|
45
|
+
placeholder: ""
|
|
46
|
+
}));
|
|
47
|
+
_defineProperty(this, "_restoreLabel", () => _reactNative.Animated.timing(this.state.labeled, {
|
|
43
48
|
toValue: 1,
|
|
44
49
|
duration: FOCUS_ANIMATION_DURATION,
|
|
45
50
|
useNativeDriver: true
|
|
46
|
-
}).start();
|
|
47
|
-
this
|
|
51
|
+
}).start());
|
|
52
|
+
_defineProperty(this, "_minmizeLabel", () => _reactNative.Animated.timing(this.state.labeled, {
|
|
48
53
|
toValue: 0,
|
|
49
54
|
duration: BLUR_ANIMATION_DURATION,
|
|
50
55
|
useNativeDriver: true
|
|
51
|
-
}).start();
|
|
52
|
-
this
|
|
56
|
+
}).start());
|
|
57
|
+
_defineProperty(this, "_handleFocus", () => {
|
|
53
58
|
if (this.props.disabled) {
|
|
54
59
|
return;
|
|
55
60
|
}
|
|
56
61
|
this.setState({
|
|
57
62
|
focused: true
|
|
58
63
|
});
|
|
59
|
-
};
|
|
60
|
-
this
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "_handleBlur", () => {
|
|
61
66
|
if (this.props.disabled) {
|
|
62
67
|
return;
|
|
63
68
|
}
|
|
64
69
|
this.setState({
|
|
65
70
|
focused: false
|
|
66
71
|
});
|
|
67
|
-
};
|
|
68
|
-
this
|
|
72
|
+
});
|
|
73
|
+
_defineProperty(this, "_handleChangeText", value => {
|
|
69
74
|
if (this.props.disabled) {
|
|
70
75
|
return;
|
|
71
76
|
}
|
|
@@ -80,8 +85,8 @@ class TextField extends React.Component {
|
|
|
80
85
|
});
|
|
81
86
|
this.props.onChangeText && this.props.onChangeText(value.nativeEvent.text);
|
|
82
87
|
}
|
|
83
|
-
};
|
|
84
|
-
this
|
|
88
|
+
});
|
|
89
|
+
_defineProperty(this, "_root", undefined);
|
|
85
90
|
}
|
|
86
91
|
static getDerivedStateFromProps(nextProps, prevState) {
|
|
87
92
|
return {
|
|
@@ -168,9 +173,7 @@ class TextField extends React.Component {
|
|
|
168
173
|
roundness,
|
|
169
174
|
disabledOpacity
|
|
170
175
|
},
|
|
171
|
-
render = props => /*#__PURE__*/React.createElement(_reactNative.TextInput,
|
|
172
|
-
...props
|
|
173
|
-
}),
|
|
176
|
+
render = props => /*#__PURE__*/React.createElement(_reactNative.TextInput, props),
|
|
174
177
|
...rest
|
|
175
178
|
} = this.props;
|
|
176
179
|
const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
|
|
@@ -310,10 +313,9 @@ class TextField extends React.Component {
|
|
|
310
313
|
} = _reactNative.StyleSheet.flatten(style || {});
|
|
311
314
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
312
315
|
style: [styles.container, styleProp]
|
|
313
|
-
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, {
|
|
314
|
-
...leftIconProps,
|
|
316
|
+
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
315
317
|
style: leftIconStyle
|
|
316
|
-
}) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
318
|
+
})) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
317
319
|
style: (0, _utilities.applyStyles)([containerStyle], {
|
|
318
320
|
height: style === null || style === void 0 ? void 0 : style.height,
|
|
319
321
|
backgroundColor: bgColor,
|
|
@@ -381,10 +383,9 @@ class TextField extends React.Component {
|
|
|
381
383
|
style: {
|
|
382
384
|
justifyContent: type === "solid" ? "center" : undefined
|
|
383
385
|
}
|
|
384
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
385
|
-
...leftIconProps,
|
|
386
|
+
}, /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
386
387
|
style: leftIconStyle
|
|
387
|
-
})) : null, render({
|
|
388
|
+
}))) : null, render({
|
|
388
389
|
ref: c => {
|
|
389
390
|
this._root = c;
|
|
390
391
|
},
|
|
@@ -422,55 +423,6 @@ class TextField extends React.Component {
|
|
|
422
423
|
}
|
|
423
424
|
var _default = (0, _theming.withTheme)(TextField);
|
|
424
425
|
exports.default = _default;
|
|
425
|
-
const styles = _reactNative.StyleSheet.create({
|
|
426
|
-
container: {
|
|
427
|
-
alignSelf: "stretch"
|
|
428
|
-
},
|
|
429
|
-
placeholder: {
|
|
430
|
-
position: "absolute",
|
|
431
|
-
left: 0
|
|
432
|
-
},
|
|
433
|
-
underline: {
|
|
434
|
-
position: "absolute",
|
|
435
|
-
left: 0,
|
|
436
|
-
right: 0,
|
|
437
|
-
bottom: 0,
|
|
438
|
-
height: 2
|
|
439
|
-
},
|
|
440
|
-
input: {
|
|
441
|
-
flexGrow: 1,
|
|
442
|
-
justifyContent: "center",
|
|
443
|
-
textAlignVertical: "center",
|
|
444
|
-
margin: 0,
|
|
445
|
-
textAlign: _reactNative.I18nManager.isRTL ? "right" : "left"
|
|
446
|
-
}
|
|
447
|
-
});_handleFocus,
|
|
448
|
-
onBlur: this._handleBlur,
|
|
449
|
-
underlineColorAndroid: "transparent",
|
|
450
|
-
style: inputStyles,
|
|
451
|
-
...rest,
|
|
452
|
-
...this.state.nativeProps,
|
|
453
|
-
value: this.state.value
|
|
454
|
-
})), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
455
|
-
name: rightIconName,
|
|
456
|
-
size: ICON_SIZE,
|
|
457
|
-
color: colors.light,
|
|
458
|
-
style: {
|
|
459
|
-
position: "absolute",
|
|
460
|
-
right: 16,
|
|
461
|
-
marginTop: type === "solid" ? MINIMIZED_LABEL_FONT_SIZE + 4 : 16
|
|
462
|
-
}
|
|
463
|
-
}) : null, assistiveText ? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
464
|
-
style: [{
|
|
465
|
-
color: error ? colors.error : colors.light,
|
|
466
|
-
marginTop: 8,
|
|
467
|
-
marginLeft: assistiveTextLeftMargin
|
|
468
|
-
}]
|
|
469
|
-
}, assistiveText) : null);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
var _default = (0, _theming.withTheme)(TextField);
|
|
473
|
-
exports.default = _default;
|
|
474
426
|
const styles = _reactNative.StyleSheet.create({
|
|
475
427
|
container: {
|
|
476
428
|
alignSelf: "stretch"
|
|
@@ -11,6 +11,7 @@ var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
13
|
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; }
|
|
14
|
+
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); }
|
|
14
15
|
const ToggleButton = _ref => {
|
|
15
16
|
let {
|
|
16
17
|
Icon,
|
|
@@ -46,7 +47,7 @@ const ToggleButton = _ref => {
|
|
|
46
47
|
setInternalValue(!internalValue);
|
|
47
48
|
onPress(!internalValue);
|
|
48
49
|
};
|
|
49
|
-
return /*#__PURE__*/React.createElement(_IconButton.default, {
|
|
50
|
+
return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
|
|
50
51
|
Icon: Icon,
|
|
51
52
|
icon: icon,
|
|
52
53
|
size: iconSize,
|
|
@@ -58,20 +59,6 @@ const ToggleButton = _ref => {
|
|
|
58
59
|
height,
|
|
59
60
|
backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
|
|
60
61
|
borderColor: colors[borderColor]
|
|
61
|
-
}, style],
|
|
62
|
-
...rest
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
const styles = _reactNative.StyleSheet.create({
|
|
66
|
-
mainContainer: {
|
|
67
|
-
borderWidth: 1
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
var _default = (0, _theming.withTheme)(ToggleButton);
|
|
71
|
-
exports.default = _default;idth,
|
|
72
|
-
height,
|
|
73
|
-
backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
|
|
74
|
-
borderColor: colors[borderColor]
|
|
75
62
|
}, style]
|
|
76
63
|
}, rest));
|
|
77
64
|
};
|
|
@@ -7,6 +7,7 @@ exports.default = Touchable;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
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); }
|
|
10
11
|
function Touchable(_ref) {
|
|
11
12
|
let {
|
|
12
13
|
children,
|
|
@@ -19,22 +20,8 @@ function Touchable(_ref) {
|
|
|
19
20
|
style,
|
|
20
21
|
...props
|
|
21
22
|
} = _ref;
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, _extends({
|
|
23
24
|
disabled: disabled,
|
|
24
|
-
onPress: onPress,
|
|
25
|
-
delayLongPress: delayLongPress ? delayLongPress : 500,
|
|
26
|
-
hitSlop: hitSlop ? hitSlop : 8,
|
|
27
|
-
style: _ref2 => {
|
|
28
|
-
let {
|
|
29
|
-
pressed
|
|
30
|
-
} = _ref2;
|
|
31
|
-
return [{
|
|
32
|
-
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1
|
|
33
|
-
}, style];
|
|
34
|
-
},
|
|
35
|
-
...props
|
|
36
|
-
}, children);
|
|
37
|
-
} disabled: disabled,
|
|
38
25
|
onPress: onPress,
|
|
39
26
|
delayLongPress: delayLongPress ? delayLongPress : 500,
|
|
40
27
|
hitSlop: hitSlop ? hitSlop : 8,
|
package/lib/commonjs/index.js
CHANGED
|
@@ -117,12 +117,6 @@ Object.defineProperty(exports, "CircleImage", {
|
|
|
117
117
|
return _CircleImage.default;
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
Object.defineProperty(exports, "Container", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _Container.default;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
120
|
Object.defineProperty(exports, "DatePicker", {
|
|
127
121
|
enumerable: true,
|
|
128
122
|
get: function () {
|
|
@@ -255,24 +249,6 @@ Object.defineProperty(exports, "Row", {
|
|
|
255
249
|
return _Layout.Row;
|
|
256
250
|
}
|
|
257
251
|
});
|
|
258
|
-
Object.defineProperty(exports, "RowBodyIcon", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function () {
|
|
261
|
-
return _RowBodyIcon.default;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(exports, "RowHeadlineImageCaption", {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
get: function () {
|
|
267
|
-
return _RowHeadlineImageCaption.default;
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperty(exports, "RowHeadlineImageIcon", {
|
|
271
|
-
enumerable: true,
|
|
272
|
-
get: function () {
|
|
273
|
-
return _RowHeadlineImageIcon.default;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
252
|
Object.defineProperty(exports, "SVG", {
|
|
277
253
|
enumerable: true,
|
|
278
254
|
get: function () {
|
|
@@ -369,6 +345,24 @@ Object.defineProperty(exports, "TabViewItem", {
|
|
|
369
345
|
return _TabView.TabViewItem;
|
|
370
346
|
}
|
|
371
347
|
});
|
|
348
|
+
Object.defineProperty(exports, "Table", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () {
|
|
351
|
+
return _Table.Table;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(exports, "TableCell", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function () {
|
|
357
|
+
return _Table.TableCell;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
Object.defineProperty(exports, "TableRow", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function () {
|
|
363
|
+
return _Table.TableRow;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
372
366
|
Object.defineProperty(exports, "TextField", {
|
|
373
367
|
enumerable: true,
|
|
374
368
|
get: function () {
|
|
@@ -428,7 +422,6 @@ var _CircleImage = _interopRequireDefault(require("./components/CircleImage"));
|
|
|
428
422
|
var _AvatarEdit = _interopRequireDefault(require("./components/AvatarEdit"));
|
|
429
423
|
var _Card = _interopRequireDefault(require("./components/Card"));
|
|
430
424
|
var _Checkbox = require("./components/Checkbox");
|
|
431
|
-
var _Container = _interopRequireDefault(require("./components/Container"));
|
|
432
425
|
var _Divider = _interopRequireDefault(require("./components/Divider"));
|
|
433
426
|
var _FAB = _interopRequireDefault(require("./components/FAB"));
|
|
434
427
|
var _FieldSearchBarFull = _interopRequireDefault(require("./components/FieldSearchBarFull"));
|
|
@@ -455,13 +448,11 @@ var _TabView = require("./components/TabView");
|
|
|
455
448
|
var _Markdown = _interopRequireDefault(require("./components/Markdown"));
|
|
456
449
|
var _BottomSheet = require("./components/BottomSheet");
|
|
457
450
|
var _YoutubePlayer = require("./components/YoutubePlayer");
|
|
451
|
+
var _Table = require("./components/Table");
|
|
458
452
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
459
453
|
var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
|
|
460
454
|
var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
|
|
461
455
|
var _ProgressCircle = _interopRequireDefault(require("./components/ProgressCircle"));
|
|
462
|
-
var _RowBodyIcon = _interopRequireDefault(require("./components/RowBodyIcon"));
|
|
463
|
-
var _RowHeadlineImageCaption = _interopRequireDefault(require("./components/RowHeadlineImageCaption"));
|
|
464
|
-
var _RowHeadlineImageIcon = _interopRequireDefault(require("./components/RowHeadlineImageIcon"));
|
|
465
456
|
var _Slider = _interopRequireDefault(require("./components/Slider"));
|
|
466
457
|
var _Stepper = _interopRequireDefault(require("./components/Stepper"));
|
|
467
458
|
var _useAuthState = require("./components/useAuthState");
|
|
@@ -14,7 +14,6 @@ const SEED_DATA = [{
|
|
|
14
14
|
preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
|
|
15
15
|
supports_list_render: false,
|
|
16
16
|
triggers: [_types.Triggers.OnChange],
|
|
17
|
-
// TODO Triggers.OnSubmit for multiple triggers
|
|
18
17
|
props: {
|
|
19
18
|
icon: {
|
|
20
19
|
group: _types.GROUPS.basic,
|
|
@@ -53,4 +52,7 @@ const SEED_DATA = [{
|
|
|
53
52
|
},
|
|
54
53
|
layout: {}
|
|
55
54
|
}];
|
|
55
|
+
exports.SEED_DATA = SEED_DATA;},
|
|
56
|
+
layout: {}
|
|
57
|
+
}];
|
|
56
58
|
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SHARED_SEED_DATA = {
|
|
9
|
+
category: _types.COMPONENT_TYPES.layout,
|
|
10
|
+
packageName: "native-base",
|
|
11
|
+
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS
|
|
12
|
+
};
|
|
13
|
+
const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX = _types.CONTAINER_COMPONENT_STYLES_SECTIONS.filter(item => item !== _types.StylesPanelSections.LayoutFlexItems && item !== _types.StylesPanelSections.LayoutContent);
|
|
14
|
+
const SEED_DATA = [{
|
|
15
|
+
name: "Aspect Ratio",
|
|
16
|
+
tag: "AspectRatio",
|
|
17
|
+
description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
|
|
18
|
+
...SHARED_SEED_DATA,
|
|
19
|
+
props: {
|
|
20
|
+
ratio: (0, _types.createStaticNumberProp)({
|
|
21
|
+
label: "Ratio",
|
|
22
|
+
description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
|
|
23
|
+
defaultValue: 1.33
|
|
24
|
+
})
|
|
25
|
+
},
|
|
26
|
+
stylesPanelSections: [_types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects]
|
|
27
|
+
}, {
|
|
28
|
+
name: "Box",
|
|
29
|
+
tag: "Box",
|
|
30
|
+
description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
|
|
31
|
+
...SHARED_SEED_DATA
|
|
32
|
+
}, {
|
|
33
|
+
name: "Center",
|
|
34
|
+
tag: "Center",
|
|
35
|
+
description: "Center aligns its contents to the center within itself",
|
|
36
|
+
...SHARED_SEED_DATA,
|
|
37
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
|
|
38
|
+
}, {
|
|
39
|
+
name: "Circle",
|
|
40
|
+
tag: "Circle",
|
|
41
|
+
description: "Center aligns its contents to the center within itself with a round border radius",
|
|
42
|
+
...SHARED_SEED_DATA,
|
|
43
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
|
|
44
|
+
}, {
|
|
45
|
+
name: "Container",
|
|
46
|
+
tag: "Container",
|
|
47
|
+
description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
|
|
48
|
+
props: {
|
|
49
|
+
centerContent: (0, _types.createStaticBoolProp)({
|
|
50
|
+
label: "Center content",
|
|
51
|
+
description: "Center child elements based on their content width",
|
|
52
|
+
defaultValue: true
|
|
53
|
+
})
|
|
54
|
+
},
|
|
55
|
+
...SHARED_SEED_DATA
|
|
56
|
+
}, {
|
|
57
|
+
name: "Column",
|
|
58
|
+
tag: "Column",
|
|
59
|
+
description: "Column aligns items vertically",
|
|
60
|
+
layout: {
|
|
61
|
+
flexDirection: "column"
|
|
62
|
+
},
|
|
63
|
+
...SHARED_SEED_DATA
|
|
64
|
+
}, {
|
|
65
|
+
name: "Row",
|
|
66
|
+
tag: "Row",
|
|
67
|
+
description: "Column aligns items horizontally",
|
|
68
|
+
layout: {
|
|
69
|
+
flexDirection: "row"
|
|
70
|
+
},
|
|
71
|
+
...SHARED_SEED_DATA
|
|
72
|
+
}, {
|
|
73
|
+
name: "Spacer",
|
|
74
|
+
tag: "Spacer",
|
|
75
|
+
description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
76
|
+
layout: {
|
|
77
|
+
flex: 1
|
|
78
|
+
},
|
|
79
|
+
...SHARED_SEED_DATA,
|
|
80
|
+
stylesPanelSections: [_types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.Background, _types.StylesPanelSections.Margins]
|
|
81
|
+
}, {
|
|
82
|
+
name: "Stack",
|
|
83
|
+
tag: "Stack",
|
|
84
|
+
description: "Stack aligns items vertically or horizontally based on the direction prop",
|
|
85
|
+
...SHARED_SEED_DATA,
|
|
86
|
+
props: {
|
|
87
|
+
isDisabled: (0, _types.createBoolProp)({
|
|
88
|
+
label: "Disabled",
|
|
89
|
+
description: "If true, the Stack will be disabled"
|
|
90
|
+
}),
|
|
91
|
+
isInvalid: (0, _types.createBoolProp)({
|
|
92
|
+
label: "Invalid",
|
|
93
|
+
description: "If true, the Stack will be invalid"
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
}, {
|
|
97
|
+
name: "ZStack",
|
|
98
|
+
tag: "ZStack",
|
|
99
|
+
description: "ZStack aligns items to the z-axis",
|
|
100
|
+
...SHARED_SEED_DATA,
|
|
101
|
+
props: {
|
|
102
|
+
reversed: (0, _types.createBoolProp)({
|
|
103
|
+
label: "Reversed",
|
|
104
|
+
description: "Determines whether to reverse the direction of items"
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
}];
|
|
108
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -23,9 +23,7 @@ const SEED_DATA = {
|
|
|
23
23
|
}),
|
|
24
24
|
fieldName: (0, _types.createFieldNameProp)({
|
|
25
25
|
defaultValue: "ratingValue",
|
|
26
|
-
// this is the name of the variable declared on the screen in Draftbit
|
|
27
26
|
handlerPropName: "onPress",
|
|
28
|
-
// the change handler prop in this component
|
|
29
27
|
valuePropName: "rating" // the value prop in this component
|
|
30
28
|
}),
|
|
31
29
|
|
|
@@ -50,4 +48,10 @@ const SEED_DATA = {
|
|
|
50
48
|
})
|
|
51
49
|
}
|
|
52
50
|
};
|
|
51
|
+
exports.SEED_DATA = SEED_DATA;pes.createColorProp)({
|
|
52
|
+
label: "Inactive Color",
|
|
53
|
+
defaultValue: "divider"
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
};
|
|
53
57
|
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SHARED_SEED_DATA_PROPS = {
|
|
9
|
+
borderWidth: (0, _types.createStaticNumberProp)({
|
|
10
|
+
label: "Border Width",
|
|
11
|
+
description: "Specifies the width of the border. Passed down to child Table(Row/Cell) components unless overridden",
|
|
12
|
+
required: false,
|
|
13
|
+
defaultValue: null
|
|
14
|
+
}),
|
|
15
|
+
borderColor: (0, _types.createColorProp)({
|
|
16
|
+
label: "Border Color",
|
|
17
|
+
description: "Specifies the color of the border. Passed down to child Table(Row/Cell) components unless overridden",
|
|
18
|
+
defaultValue: null
|
|
19
|
+
}),
|
|
20
|
+
borderStyle: (0, _types.createTextEnumProp)({
|
|
21
|
+
label: "Border Style",
|
|
22
|
+
description: "Specifies the style of the border. Passed down to child Table(Row/Cell) components unless overridden",
|
|
23
|
+
options: ["solid", "dotted", "dashed"],
|
|
24
|
+
defaultValue: null
|
|
25
|
+
}),
|
|
26
|
+
drawTopBorder: (0, _types.createStaticBoolProp)({
|
|
27
|
+
label: "Draw Top Border",
|
|
28
|
+
description: "Whether to draw the top border at this layer of the Table tree or not",
|
|
29
|
+
defaultValue: false
|
|
30
|
+
}),
|
|
31
|
+
drawBottomBorder: (0, _types.createStaticBoolProp)({
|
|
32
|
+
label: "Draw Bottom Border",
|
|
33
|
+
description: "Whether to draw the bottom border at this layer of the Table tree or not",
|
|
34
|
+
defaultValue: false
|
|
35
|
+
}),
|
|
36
|
+
drawStartBorder: (0, _types.createStaticBoolProp)({
|
|
37
|
+
label: "Draw Start Border",
|
|
38
|
+
description: "Whether to draw the start border at this layer of the Table tree or not",
|
|
39
|
+
defaultValue: false
|
|
40
|
+
}),
|
|
41
|
+
drawEndBorder: (0, _types.createStaticBoolProp)({
|
|
42
|
+
label: "Draw End Border",
|
|
43
|
+
description: "Whether to draw the end border at this layer of the Table tree or not",
|
|
44
|
+
defaultValue: false
|
|
45
|
+
}),
|
|
46
|
+
cellVerticalPadding: (0, _types.createStaticNumberProp)({
|
|
47
|
+
label: "Cell Vertical Padding",
|
|
48
|
+
description: "Specifies the vertical padding of the cell. Passed down to TableCell components unless overridden",
|
|
49
|
+
required: false,
|
|
50
|
+
defaultValue: null
|
|
51
|
+
}),
|
|
52
|
+
cellHorizontalPadding: (0, _types.createStaticNumberProp)({
|
|
53
|
+
label: "Cell Horizontal Padding",
|
|
54
|
+
description: "Specifies the horizontal padding of the cell. Passed down to TableCell components unless overridden",
|
|
55
|
+
required: false,
|
|
56
|
+
defaultValue: null
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
const SEED_DATA = [{
|
|
60
|
+
name: "Table",
|
|
61
|
+
tag: "Table",
|
|
62
|
+
description: "Top level table container",
|
|
63
|
+
category: _types.COMPONENT_TYPES.table,
|
|
64
|
+
stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects, _types.StylesPanelSections.Background, _types.StylesPanelSections.LayoutSelectedItem],
|
|
65
|
+
layout: {
|
|
66
|
+
flex: 1
|
|
67
|
+
},
|
|
68
|
+
props: {
|
|
69
|
+
...SHARED_SEED_DATA_PROPS,
|
|
70
|
+
borderWidth: {
|
|
71
|
+
...SHARED_SEED_DATA_PROPS.borderWidth,
|
|
72
|
+
defaultValue: 1
|
|
73
|
+
},
|
|
74
|
+
borderColor: {
|
|
75
|
+
...SHARED_SEED_DATA_PROPS.borderColor,
|
|
76
|
+
defaultValue: "divider"
|
|
77
|
+
},
|
|
78
|
+
borderStyle: {
|
|
79
|
+
...SHARED_SEED_DATA_PROPS.borderStyle,
|
|
80
|
+
defaultValue: "solid"
|
|
81
|
+
},
|
|
82
|
+
drawTopBorder: {
|
|
83
|
+
...SHARED_SEED_DATA_PROPS.drawTopBorder,
|
|
84
|
+
defaultValue: true
|
|
85
|
+
},
|
|
86
|
+
cellVerticalPadding: {
|
|
87
|
+
...SHARED_SEED_DATA_PROPS.cellVerticalPadding,
|
|
88
|
+
defaultValue: 10
|
|
89
|
+
},
|
|
90
|
+
cellHorizontalPadding: {
|
|
91
|
+
...SHARED_SEED_DATA_PROPS.cellHorizontalPadding,
|
|
92
|
+
defaultValue: 10
|
|
93
|
+
},
|
|
94
|
+
showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
95
|
+
label: "Show Vertical Scroll Indicator",
|
|
96
|
+
description: "When true, shows a vertical scroll indicator. The default value is true.",
|
|
97
|
+
defaultValue: true
|
|
98
|
+
})
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
name: "Table Row",
|
|
102
|
+
tag: "TableRow",
|
|
103
|
+
description: "Table Row container",
|
|
104
|
+
category: _types.COMPONENT_TYPES.table,
|
|
105
|
+
stylesPanelSections: [_types.StylesPanelSections.Background],
|
|
106
|
+
props: {
|
|
107
|
+
...SHARED_SEED_DATA_PROPS,
|
|
108
|
+
drawStartBorder: {
|
|
109
|
+
...SHARED_SEED_DATA_PROPS.drawStartBorder,
|
|
110
|
+
defaultValue: true
|
|
111
|
+
},
|
|
112
|
+
drawBottomBorder: {
|
|
113
|
+
...SHARED_SEED_DATA_PROPS.drawBottomBorder,
|
|
114
|
+
defaultValue: true
|
|
115
|
+
},
|
|
116
|
+
isTableHeader: (0, _types.createStaticBoolProp)({
|
|
117
|
+
label: "Header",
|
|
118
|
+
description: "Whether this row is a header or not (changes background and sticks while scrolling)",
|
|
119
|
+
defaultValue: false
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
name: "Table Cell",
|
|
124
|
+
tag: "TableCell",
|
|
125
|
+
description: "Table Cell container",
|
|
126
|
+
category: _types.COMPONENT_TYPES.table,
|
|
127
|
+
stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
|
|
128
|
+
layout: {
|
|
129
|
+
flex: 1,
|
|
130
|
+
flexDirection: "row"
|
|
131
|
+
},
|
|
132
|
+
props: {
|
|
133
|
+
...SHARED_SEED_DATA_PROPS,
|
|
134
|
+
drawEndBorder: {
|
|
135
|
+
...SHARED_SEED_DATA_PROPS.drawEndBorder,
|
|
136
|
+
defaultValue: true
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}];
|
|
140
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -15,6 +15,7 @@ function overlay(elevation) {
|
|
|
15
15
|
let surfaceColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _DarkTheme.default.colors.surface;
|
|
16
16
|
if (isAnimatedValue(elevation)) {
|
|
17
17
|
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
18
|
+
|
|
18
19
|
// @ts-expect-error: TS doesn't seem to refine the type correctly
|
|
19
20
|
return elevation.interpolate({
|
|
20
21
|
inputRange,
|
|
@@ -23,6 +24,7 @@ function overlay(elevation) {
|
|
|
23
24
|
})
|
|
24
25
|
});
|
|
25
26
|
}
|
|
27
|
+
|
|
26
28
|
// @ts-expect-error: TS doesn't seem to refine the type correctly
|
|
27
29
|
return calculateColor(surfaceColor, elevation);
|
|
28
30
|
}
|
|
@@ -63,4 +65,4 @@ const elevationOverlayTransparency = {
|
|
|
63
65
|
22: 15.72,
|
|
64
66
|
23: 15.84,
|
|
65
67
|
24: 16
|
|
66
|
-
};
|
|
68
|
+
};
|
|
@@ -57,6 +57,7 @@ function extractBorderAndMarginStyles(style, additionalBorderStyles, additionalM
|
|
|
57
57
|
marginStyles
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
+
|
|
60
61
|
/**
|
|
61
62
|
* Merges a style object on top of another style object. In React Native,
|
|
62
63
|
* keys with undefined values in a style object will still override styles
|
|
@@ -89,4 +90,4 @@ function getValueForRadioButton(value) {
|
|
|
89
90
|
} else {
|
|
90
91
|
throw new Error("Invalid value: ".concat(value));
|
|
91
92
|
}
|
|
92
|
-
}
|
|
93
|
+
}
|