bootstrap-rn 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap-rn.cjs.js +109 -70
- package/dist/bootstrap-rn.esm.js +109 -70
- package/dist/bootstrap-rn.umd.js +109 -70
- package/dist/bootstrap-rn.umd.min.js +3 -3
- package/package.json +1 -1
package/dist/bootstrap-rn.esm.js
CHANGED
|
@@ -2546,21 +2546,21 @@ var variables = css(_templateObject$1d || (_templateObject$1d = _taggedTemplateL
|
|
|
2546
2546
|
}, function (t) {
|
|
2547
2547
|
return calculate(t['input-padding-y'], '*', 0.5);
|
|
2548
2548
|
}), add(function (t) {
|
|
2549
|
-
return calculate(t['input-line-height'], '*',
|
|
2549
|
+
return calculate(t['input-line-height'], '*', t['input-font-size']);
|
|
2550
2550
|
}, // 1em
|
|
2551
2551
|
add(function (t) {
|
|
2552
2552
|
return calculate(t['input-padding-y'], '*', 2);
|
|
2553
2553
|
}, function (t) {
|
|
2554
2554
|
return t['input-height-border'];
|
|
2555
2555
|
})), add(function (t) {
|
|
2556
|
-
return calculate(t['input-line-height'], '*',
|
|
2556
|
+
return calculate(t['input-line-height'], '*', t['input-font-size-sm']);
|
|
2557
2557
|
}, // 1em
|
|
2558
2558
|
add(function (t) {
|
|
2559
2559
|
return calculate(t['input-padding-y-sm'], '*', 2);
|
|
2560
2560
|
}, function (t) {
|
|
2561
2561
|
return t['input-height-border'];
|
|
2562
2562
|
})), add(function (t) {
|
|
2563
|
-
return calculate(t['input-line-height'], '*',
|
|
2563
|
+
return calculate(t['input-line-height'], '*', t['input-font-size-lg']);
|
|
2564
2564
|
}, // 1em
|
|
2565
2565
|
add(function (t) {
|
|
2566
2566
|
return calculate(t['input-padding-y-lg'], '*', 2);
|
|
@@ -3501,7 +3501,7 @@ function useToggleButton(props) {
|
|
|
3501
3501
|
|
|
3502
3502
|
var _excluded$1l = ["children", "color", "size", "outline", "active", "disabled", "style", "activeStyle", "textStyle", "activeTextStyle"];
|
|
3503
3503
|
|
|
3504
|
-
var _templateObject$15, _templateObject2$P, _templateObject3$p, _templateObject4$m, _templateObject5$j, _templateObject6$g, _templateObject7$b, _templateObject8$b, _templateObject9$
|
|
3504
|
+
var _templateObject$15, _templateObject2$P, _templateObject3$p, _templateObject4$m, _templateObject5$j, _templateObject6$g, _templateObject7$b, _templateObject8$b, _templateObject9$a, _templateObject10$a, _templateObject11$7, _templateObject12$5, _templateObject13$5, _templateObject14$4, _templateObject15$3, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21, _templateObject22, _templateObject23;
|
|
3505
3505
|
var propTypes$1p = {
|
|
3506
3506
|
children: PropTypes.node.isRequired,
|
|
3507
3507
|
color: PropTypes.oneOf([].concat(_toConsumableArray(Object.keys(THEME_COLORS)), ['link'])),
|
|
@@ -3541,7 +3541,7 @@ var styles$17 = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
|
3541
3541
|
return t['btn-active-bg-shade-amount'];
|
|
3542
3542
|
}, value), shadeColor(function (t) {
|
|
3543
3543
|
return t['btn-active-border-shade-amount'];
|
|
3544
|
-
}, value))), _defineProperty(_ref, ".btn-".concat(color, ".active --text"), css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorContrast(value))), _defineProperty(_ref, ".btn-".concat(color, ".disabled"), css(_templateObject8$b || (_templateObject8$b = _taggedTemplateLiteral(["\n $disabled-background: ", ";\n $disabled-border: ", ";\n\n background-color: $disabled-background;\n // Remove CSS gradients if they're enabled\n // background-image: if($enable-gradients, none, null);\n border-color: $disabled-border;\n "])), value, value)), _defineProperty(_ref, ".btn-".concat(color, ".disabled --text"), css(_templateObject9$
|
|
3544
|
+
}, value))), _defineProperty(_ref, ".btn-".concat(color, ".active --text"), css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorContrast(value))), _defineProperty(_ref, ".btn-".concat(color, ".disabled"), css(_templateObject8$b || (_templateObject8$b = _taggedTemplateLiteral(["\n $disabled-background: ", ";\n $disabled-border: ", ";\n\n background-color: $disabled-background;\n // Remove CSS gradients if they're enabled\n // background-image: if($enable-gradients, none, null);\n border-color: $disabled-border;\n "])), value, value)), _defineProperty(_ref, ".btn-".concat(color, ".disabled --text"), css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteral(["\n $disabled-color: ", ";\n\n color: $disabled-color;\n "])), colorContrast(value))), _defineProperty(_ref, ".btn-outline-".concat(color), css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteral(["\n border-color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n\n &:focus {\n // box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);\n }\n\n &:active {\n background-color: ", ";\n border-color: ", ";\n\n /* &:focus {\n @if $enable-shadows {\n @include box-shadow(\n $btn-active-box-shadow,\n 0 0 0 $btn-focus-width rgba($color, 0.5)\n );\n } @else {\n // Avoid using mixin so we can pass custom focus shadow properly\n box-shadow: 0 0 0 $btn-focus-width rgba($color, 0.5);\n }\n } */\n }\n "])), value, value, value, value, value)), _defineProperty(_ref, ".btn-outline-".concat(color, " --text"), css(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteral(["\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n "])), value, colorContrast(value), colorContrast(value))), _defineProperty(_ref, ".btn-outline-".concat(color, ".disabled"), css(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteral(["\n background-color: transparent;\n "])))), _defineProperty(_ref, ".btn-outline-".concat(color, ".disabled --text"), css(_templateObject13$5 || (_templateObject13$5 = _taggedTemplateLiteral(["\n color: ", ";\n "])), value)), _ref;
|
|
3545
3545
|
})), {}, {
|
|
3546
3546
|
'.btn-link --text': css(_templateObject14$4 || (_templateObject14$4 = _taggedTemplateLiteral(["\n font-weight: $font-weight-normal;\n color: $btn-link-color;\n text-decoration-color: $btn-link-color; // added for bootstrap-rn\n text-decoration-line: $link-decoration;\n\n &:hover {\n color: $btn-link-hover-color;\n text-decoration-color: $btn-link-hover-color; // added for bootstrap-rn\n text-decoration-line: $link-hover-decoration;\n }\n\n &:focus {\n text-decoration-line: $link-hover-decoration;\n }\n\n // No need for an active state here\n "]))),
|
|
3547
3547
|
'.btn-link.disabled --text': css(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteral(["\n color: $btn-link-disabled-color;\n "]))),
|
|
@@ -4563,7 +4563,7 @@ FormCheckInputNative.propTypes = propTypes$1d;
|
|
|
4563
4563
|
|
|
4564
4564
|
var _excluded$19 = ["type", "value", "onFocus", "onBlur", "disabled", "valid", "invalid", "useNativeComponent", "style"];
|
|
4565
4565
|
|
|
4566
|
-
var _templateObject$Y, _templateObject2$H, _templateObject3$m, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$9, _templateObject8$9, _templateObject9$
|
|
4566
|
+
var _templateObject$Y, _templateObject2$H, _templateObject3$m, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$9, _templateObject8$9, _templateObject9$9, _templateObject10$9, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
|
|
4567
4567
|
/* eslint-disable react/no-unused-prop-types */
|
|
4568
4568
|
|
|
4569
4569
|
var propTypes$1c = {
|
|
@@ -4594,17 +4594,17 @@ var styles$X = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
|
4594
4594
|
'.form-check-input[type="radio"]:checked': css(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteral(["\n // @if $enable-gradients {\n // background-image: escape-svg($form-check-radio-checked-bg-image), var(--#{$variable-prefix}gradient);\n // } @else {\n background-image: ", ";\n // }\n "])), function (t) {
|
|
4595
4595
|
return escapeSvg(t['form-check-radio-checked-bg-image']);
|
|
4596
4596
|
}),
|
|
4597
|
-
'.form-check-input:disabled': css(_templateObject9$
|
|
4597
|
+
'.form-check-input:disabled': css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteral(["\n @include platform(web) {\n pointer-events: none;\n filter: none;\n }\n opacity: $form-check-label-disabled-opacity;\n "])))
|
|
4598
4598
|
}, each(FORM_VALIDATION_STATES, function (state, data) {
|
|
4599
4599
|
var _ref;
|
|
4600
4600
|
|
|
4601
|
-
return _ref = {}, _defineProperty(_ref, ".form-check-input:".concat(state), css(_templateObject10$
|
|
4601
|
+
return _ref = {}, _defineProperty(_ref, ".form-check-input:".concat(state), css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteral(["\n border-color: ", ";\n\n &:focus {\n border-color: ", "; // added for bootstrap-rn\n @include platform(web) {\n box-shadow: 0 0 $input-btn-focus-blur $input-focus-width\n rgba(", ", $input-btn-focus-color-opacity);\n }\n }\n "])), function (t) {
|
|
4602
4602
|
return data(t).color;
|
|
4603
4603
|
}, function (t) {
|
|
4604
4604
|
return data(t).color;
|
|
4605
4605
|
}, function (t) {
|
|
4606
4606
|
return data(t).color;
|
|
4607
|
-
})), _defineProperty(_ref, ".form-check-input:".concat(state, ":checked"), css(_templateObject11$
|
|
4607
|
+
})), _defineProperty(_ref, ".form-check-input:".concat(state, ":checked"), css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), function (t) {
|
|
4608
4608
|
return data(t).color;
|
|
4609
4609
|
})), _ref;
|
|
4610
4610
|
})), {}, {
|
|
@@ -4873,7 +4873,7 @@ var styles$U = StyleSheet.create({
|
|
|
4873
4873
|
});
|
|
4874
4874
|
var initialState = {
|
|
4875
4875
|
waitingForMouseUp: false,
|
|
4876
|
-
|
|
4876
|
+
ignoreBackdropClick: false
|
|
4877
4877
|
};
|
|
4878
4878
|
|
|
4879
4879
|
var BackdropHandler = function BackdropHandler(props) {
|
|
@@ -4900,24 +4900,25 @@ var BackdropHandler = function BackdropHandler(props) {
|
|
|
4900
4900
|
|
|
4901
4901
|
|
|
4902
4902
|
var handleDialogMouseUp = function handleDialogMouseUp() {
|
|
4903
|
-
state.
|
|
4903
|
+
state.ignoreBackdropClick = true;
|
|
4904
4904
|
};
|
|
4905
4905
|
|
|
4906
4906
|
var handleDocumentClick = function handleDocumentClick(_ref) {
|
|
4907
4907
|
var target = _ref.target;
|
|
4908
|
+
var isDialogClick = state.ignoreBackdropClick || dialog.contains(target);
|
|
4908
4909
|
|
|
4909
4910
|
if (backdrop === 'static' || autoClose === false) {
|
|
4910
4911
|
return;
|
|
4911
4912
|
} // Click outside -> return if autoClose is inside.
|
|
4912
4913
|
|
|
4913
4914
|
|
|
4914
|
-
if (!
|
|
4915
|
+
if (!isDialogClick && autoClose === 'inside') {
|
|
4915
4916
|
return;
|
|
4916
4917
|
} // Click inside / on dialog -> return if autoClose is outside.
|
|
4917
4918
|
|
|
4918
4919
|
|
|
4919
|
-
if (
|
|
4920
|
-
state.
|
|
4920
|
+
if (isDialogClick) {
|
|
4921
|
+
state.ignoreBackdropClick = false;
|
|
4921
4922
|
|
|
4922
4923
|
if (autoClose === 'outside') {
|
|
4923
4924
|
return;
|
|
@@ -4934,7 +4935,7 @@ var BackdropHandler = function BackdropHandler(props) {
|
|
|
4934
4935
|
|
|
4935
4936
|
var handleDocumentMouseUp = function handleDocumentMouseUp() {
|
|
4936
4937
|
if (state.waitingForMouseUp) {
|
|
4937
|
-
state.
|
|
4938
|
+
state.ignoreBackdropClick = true;
|
|
4938
4939
|
}
|
|
4939
4940
|
|
|
4940
4941
|
state.waitingForMouseUp = false;
|
|
@@ -4974,7 +4975,7 @@ BackdropHandler.propTypes = propTypes$17;
|
|
|
4974
4975
|
|
|
4975
4976
|
var _excluded$15 = ["children", "start", "right", "end", "style", "textStyle"];
|
|
4976
4977
|
|
|
4977
|
-
var _templateObject$U, _templateObject2$F, _templateObject3$k, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$8, _templateObject8$8, _templateObject9$
|
|
4978
|
+
var _templateObject$U, _templateObject2$F, _templateObject3$k, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$8, _templateObject8$8, _templateObject9$8, _templateObject10$8;
|
|
4978
4979
|
var ALIGNMENT_BREAKPOINTS = [true, 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
4979
4980
|
var propTypes$16 = {
|
|
4980
4981
|
children: PropTypes.node.isRequired,
|
|
@@ -4999,9 +5000,9 @@ var styles$T = StyleSheet.create(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
|
4999
5000
|
'.dropstart .dropdown-menu[data-bs-popper]': css(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteral(["\n top: 0;\n right: 100%;\n left: auto;\n margin-top: 0;\n margin-right: $dropdown-spacer;\n "]))),
|
|
5000
5001
|
'.navbar-nav .dropdown-menu': css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteral(["\n position: relative; // static;\n "])))
|
|
5001
5002
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
5002
|
-
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .navbar-nav .dropdown-menu"), css(_templateObject9$
|
|
5003
|
+
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .navbar-nav .dropdown-menu"), css(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n position: absolute;\n }\n "])), next(breakpoint)));
|
|
5003
5004
|
})), {}, {
|
|
5004
|
-
'.dropdown-menu --text': css(_templateObject10$
|
|
5005
|
+
'.dropdown-menu --text': css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteral(["\n font-size: $dropdown-font-size;\n color: $dropdown-color;\n text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)\n "])))
|
|
5005
5006
|
}));
|
|
5006
5007
|
|
|
5007
5008
|
var getAlignment = function getAlignment(media, start, end) {
|
|
@@ -5667,7 +5668,7 @@ TextInput.propTypes = propTypes$U;
|
|
|
5667
5668
|
|
|
5668
5669
|
var _excluded$R = ["size", "placeholderTextColor", "multiline", "disabled", "valid", "invalid", "editable", "selectTextOnFocus", "style"];
|
|
5669
5670
|
|
|
5670
|
-
var _templateObject$H, _templateObject2$w, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$7, _templateObject8$7;
|
|
5671
|
+
var _templateObject$H, _templateObject2$w, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject10$7, _templateObject11$5;
|
|
5671
5672
|
var propTypes$T = {
|
|
5672
5673
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
5673
5674
|
placeholderTextColor: PropTypes.string,
|
|
@@ -5679,17 +5680,36 @@ var propTypes$T = {
|
|
|
5679
5680
|
selectTextOnFocus: PropTypes.bool,
|
|
5680
5681
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5681
5682
|
style: PropTypes.any
|
|
5682
|
-
};
|
|
5683
|
+
}; // Known issues:
|
|
5684
|
+
//
|
|
5685
|
+
// line-height (iOS)
|
|
5686
|
+
// If a line height is defined on iOS the text will be displayed on the bottom
|
|
5687
|
+
// of the line. As a workaround the line height is only defined for multi line
|
|
5688
|
+
// inputs.
|
|
5689
|
+
//
|
|
5690
|
+
// multi line height (iOS)
|
|
5691
|
+
// A multi line input on iOS has only the height of a single line input. As a
|
|
5692
|
+
// workaround we added a height of $input-height-sm + 8rem for multi line
|
|
5693
|
+
// inputs on iOS.
|
|
5694
|
+
//
|
|
5695
|
+
// single line height (Android)
|
|
5696
|
+
// If no height is defined, Android sets a text line height of 28px auto-
|
|
5697
|
+
// matically, which leads to a larger height than min height for the default
|
|
5698
|
+
// and sm size. As a workaround we set a height for single line inputs.
|
|
5699
|
+
|
|
5683
5700
|
var styles$G = StyleSheet.create(_objectSpread2({
|
|
5684
|
-
'.form-control': css(_templateObject$H || (_templateObject$H = _taggedTemplateLiteral(["\n // display: block;\n width: 100%;\n padding: $input-padding-y $input-padding-x;\n font-family: $input-font-family;\n font-size: $input-font-size;\n font-weight: $input-font-weight;\n line-height: $input-font-size * $input-line-height;\n color: $input-color;\n background-color: $input-bg;\n // background-clip: padding-box;\n border: $input-border-width solid $input-border-color;\n @include platform(web) {\n appearance: none; // Fix appearance for date inputs in Safari\n }\n\n // Note: This has no effect on <select>s in some browsers, due to the limited stylability of \"<select>\"s in CSS.\n border-radius: $input-border-radius;\n\n // @include box-shadow($input-box-shadow);\n // @include transition($input-transition);\n\n // Customize the \":focus\" state to imitate native WebKit styles.\n &:focus {\n color: $input-focus-color;\n background-color: $input-focus-bg;\n border-color: $input-focus-border-color;\n @include platform(web) {\n outline-width: 0; // outline: 0;\n // @if $enable-shadows {\n // @include box-shadow($input-box-shadow, $input-focus-box-shadow);\n // } @else {\n // // Avoid using mixin so we can pass custom focus shadow properly\n box-shadow: $input-focus-box-shadow;\n // }\n }\n }\n "]))),
|
|
5701
|
+
'.form-control': css(_templateObject$H || (_templateObject$H = _taggedTemplateLiteral(["\n // display: block;\n width: 100%;\n min-height: $input-height; // added for bootstrap-rn\n padding: $input-padding-y $input-padding-x;\n font-family: $input-font-family;\n font-size: $input-font-size;\n font-weight: $input-font-weight;\n @include platform(web) {\n line-height: $input-font-size * $input-line-height;\n }\n color: $input-color;\n background-color: $input-bg;\n // background-clip: padding-box;\n border: $input-border-width solid $input-border-color;\n @include platform(web) {\n appearance: none; // Fix appearance for date inputs in Safari\n }\n\n // Note: This has no effect on <select>s in some browsers, due to the limited stylability of \"<select>\"s in CSS.\n border-radius: $input-border-radius;\n\n // @include box-shadow($input-box-shadow);\n // @include transition($input-transition);\n\n // Customize the \":focus\" state to imitate native WebKit styles.\n &:focus {\n color: $input-focus-color;\n background-color: $input-focus-bg;\n border-color: $input-focus-border-color;\n @include platform(web) {\n outline-width: 0; // outline: 0;\n // @if $enable-shadows {\n // @include box-shadow($input-box-shadow, $input-focus-box-shadow);\n // } @else {\n // // Avoid using mixin so we can pass custom focus shadow properly\n box-shadow: $input-focus-box-shadow;\n // }\n }\n }\n "]))),
|
|
5685
5702
|
'.form-control.disabled': css(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteral(["\n background-color: $input-disabled-bg;\n border-color: $input-disabled-border-color;\n // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.\n opacity: 1;\n "]))),
|
|
5686
|
-
'.form-control-sm': css(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteral(["\n min-height: $input-height-sm;\n padding: $input-padding-y-sm $input-padding-x-sm;\n font-size: $input-font-size-sm;\n line-height: $input-font-size-sm * $line-height-base; // added for bootstrap-rn\n border-radius: $input-border-radius-sm;\n "]))),
|
|
5687
|
-
'.form-control-lg': css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteral(["\n min-height: $input-height-lg;\n padding: $input-padding-y-lg $input-padding-x-lg;\n font-size: $input-font-size-lg;\n line-height: $input-font-size-lg * $line-height-base; // added for bootstrap-rn\n border-radius: $input-border-radius-lg;\n "]))),
|
|
5688
|
-
'.form-control
|
|
5689
|
-
'.form-control-
|
|
5690
|
-
'.form-control-
|
|
5703
|
+
'.form-control-sm': css(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteral(["\n min-height: $input-height-sm;\n padding: $input-padding-y-sm $input-padding-x-sm;\n font-size: $input-font-size-sm;\n @include platform(web) {\n line-height: $input-font-size-sm * $line-height-base; // added for bootstrap-rn\n }\n border-radius: $input-border-radius-sm;\n "]))),
|
|
5704
|
+
'.form-control-lg': css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteral(["\n min-height: $input-height-lg;\n padding: $input-padding-y-lg $input-padding-x-lg;\n font-size: $input-font-size-lg;\n @include platform(web) {\n line-height: $input-font-size-lg * $line-height-base; // added for bootstrap-rn\n }\n border-radius: $input-border-radius-lg;\n "]))),
|
|
5705
|
+
'.form-control:not(textarea)': css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteral(["\n @include platform(android) {\n height: $input-height; // added for bootstrap-rn\n }\n "]))),
|
|
5706
|
+
'.form-control-sm:not(textarea)': css(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteral(["\n @include platform(android) {\n height: $input-height-sm; // added for bootstrap-rn\n }\n "]))),
|
|
5707
|
+
'.form-control-lg:not(textarea)': css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteral(["\n @include platform(android) {\n height: $input-height-lg; // added for bootstrap-rn\n }\n "]))),
|
|
5708
|
+
'textarea.form-control': css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteral(["\n text-align-vertical: top; // added for bootstrap-rn\n min-height: $input-height;\n\n @include platform(ios) {\n min-height: $input-height-sm + 8rem; // added for bootstrap-rn\n }\n @include platform(native) {\n line-height: $input-font-size * $input-line-height; // added for bootstrap-rn\n }\n "]))),
|
|
5709
|
+
'textarea.form-control-sm': css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteral(["\n min-height: $input-height-sm;\n\n @include platform(ios) {\n // TODO: Adjust ios height to sm size\n min-height: $input-height-sm + 8rem; // added for bootstrap-rn\n }\n @include platform(native) {\n line-height: $input-font-size-sm * $line-height-base; // added for bootstrap-rn\n }\n "]))),
|
|
5710
|
+
'textarea.form-control-lg': css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteral(["\n min-height: $input-height-lg;\n\n @include platform(ios) {\n // TODO: Adjust ios height to lg size\n min-height: $input-height-sm + 8rem; // added for bootstrap-rn\n }\n @include platform(native) {\n line-height: $input-font-size-sm * $line-height-base; // added for bootstrap-rn\n }\n "])))
|
|
5691
5711
|
}, each(FORM_VALIDATION_STATES, function (state, data) {
|
|
5692
|
-
return _defineProperty({}, ".form-control:".concat(state), css(
|
|
5712
|
+
return _defineProperty({}, ".form-control:".concat(state), css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteral(["\n border-color: ", ";\n\n &:focus {\n border-color: ", ";\n @include platform(web) {\n box-shadow: 0 0 $input-btn-focus-blur $input-focus-width\n rgba(", ", $input-btn-focus-color-opacity);\n }\n }\n "])), function (t) {
|
|
5693
5713
|
return data(t).color;
|
|
5694
5714
|
}, function (t) {
|
|
5695
5715
|
return data(t).color;
|
|
@@ -5721,7 +5741,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
5721
5741
|
style = modifierProps.style,
|
|
5722
5742
|
elementProps = _objectWithoutProperties(modifierProps, _excluded$R);
|
|
5723
5743
|
|
|
5724
|
-
var classes = getStyles(styles$G, ['.form-control', disabled && '.form-control.disabled', size === 'sm' && '.form-control-sm', size === 'lg' && '.form-control-lg', multiline && '.form-control
|
|
5744
|
+
var classes = getStyles(styles$G, ['.form-control', disabled && '.form-control.disabled', size === 'sm' && '.form-control-sm', size === 'lg' && '.form-control-lg', !multiline && '.form-control:not(textarea)', !multiline && size === 'sm' && '.form-control-sm:not(textarea)', !multiline && size === 'lg' && '.form-control-lg:not(textarea)', multiline && 'textarea.form-control', multiline && size === 'sm' && 'textarea.form-control-sm', multiline && size === 'lg' && 'textarea.form-control-lg', valid && '.form-control:valid', invalid && '.form-control:invalid']);
|
|
5725
5745
|
return /*#__PURE__*/React.createElement(TextInput, _extends({}, elementProps, {
|
|
5726
5746
|
ref: modifierRef,
|
|
5727
5747
|
placeholderTextColor: placeholderTextColor,
|
|
@@ -6826,7 +6846,7 @@ var ModalTitle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6826
6846
|
ModalTitle.displayName = 'ModalTitle';
|
|
6827
6847
|
ModalTitle.propTypes = propTypes$B;
|
|
6828
6848
|
|
|
6829
|
-
var _excluded$y = ["children", "style", "
|
|
6849
|
+
var _excluded$y = ["children", "style", "innerStyle"];
|
|
6830
6850
|
|
|
6831
6851
|
var _templateObject$t;
|
|
6832
6852
|
var propTypes$A = {
|
|
@@ -6834,7 +6854,7 @@ var propTypes$A = {
|
|
|
6834
6854
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6835
6855
|
style: PropTypes.any,
|
|
6836
6856
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6837
|
-
|
|
6857
|
+
innerStyle: PropTypes.any
|
|
6838
6858
|
};
|
|
6839
6859
|
var styles$t = StyleSheet.create({
|
|
6840
6860
|
'.modal-body': css(_templateObject$t || (_templateObject$t = _taggedTemplateLiteral(["\n position: relative;\n // Enable \"flex-grow: 1\" so that the body take up as much space as possible\n // when there should be a fixed height on \".modal-dialog\".\n // Note from bootstrap-rn: Centered modals do not work with this style, but\n // everything just works fine without this style.\n // flex: 1 1 auto;\n padding: $modal-inner-padding;\n "])))
|
|
@@ -6842,7 +6862,7 @@ var styles$t = StyleSheet.create({
|
|
|
6842
6862
|
var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6843
6863
|
var children = props.children,
|
|
6844
6864
|
style = props.style,
|
|
6845
|
-
|
|
6865
|
+
innerStyle = props.innerStyle,
|
|
6846
6866
|
elementProps = _objectWithoutProperties(props, _excluded$y);
|
|
6847
6867
|
|
|
6848
6868
|
var _useForcedContext = useForcedContext(ModalContext),
|
|
@@ -6853,7 +6873,7 @@ var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6853
6873
|
return /*#__PURE__*/React.createElement(FlexView, _extends({}, elementProps, {
|
|
6854
6874
|
ref: ref,
|
|
6855
6875
|
style: scrollable ? style : [classes, style],
|
|
6856
|
-
contentContainerStyle: scrollable ? [classes,
|
|
6876
|
+
contentContainerStyle: scrollable ? [classes, innerStyle] : undefined
|
|
6857
6877
|
}), children);
|
|
6858
6878
|
});
|
|
6859
6879
|
ModalBody.displayName = 'ModalBody';
|
|
@@ -6884,7 +6904,7 @@ var ModalFooter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6884
6904
|
ModalFooter.displayName = 'ModalFooter';
|
|
6885
6905
|
ModalFooter.propTypes = propTypes$z;
|
|
6886
6906
|
|
|
6887
|
-
var _excluded$w = ["children", "visible", "size", "backdrop", "scrollable", "centered", "onToggle", "style", "textStyle"];
|
|
6907
|
+
var _excluded$w = ["children", "visible", "size", "backdrop", "scrollable", "centered", "onToggle", "style", "innerStyle", "dialogStyle", "contentStyle", "textStyle", "dialogTextStyle", "contentTextStyle"];
|
|
6888
6908
|
|
|
6889
6909
|
var _templateObject$r, _templateObject2$l, _templateObject3$a, _templateObject4$8, _templateObject5$6, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$2;
|
|
6890
6910
|
var MODAL_SIZES = ['sm', 'lg', 'xl'];
|
|
@@ -6899,7 +6919,17 @@ var propTypes$y = {
|
|
|
6899
6919
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6900
6920
|
style: PropTypes.any,
|
|
6901
6921
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6902
|
-
|
|
6922
|
+
innerStyle: PropTypes.any,
|
|
6923
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6924
|
+
dialogStyle: PropTypes.any,
|
|
6925
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6926
|
+
contentStyle: PropTypes.any,
|
|
6927
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6928
|
+
textStyle: PropTypes.any,
|
|
6929
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6930
|
+
dialogTextStyle: PropTypes.any,
|
|
6931
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6932
|
+
contentTextStyle: PropTypes.any
|
|
6903
6933
|
};
|
|
6904
6934
|
var styles$r = StyleSheet.create({
|
|
6905
6935
|
'.modal': css(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n position: absolute; // fixed;\n top: 0;\n left: 0;\n z-index: $zindex-modal;\n // display: none;\n width: 100%;\n height: 100%;\n // overflow-x: hidden;\n // overflow-y: auto;\n // Prevent Chrome on Windows from adding a focus outline. For details, see\n // https://github.com/twbs/bootstrap/pull/10951.\n @include platform(web) {\n outline-width: 0; // outline: 0;\n }\n // We deliberately don't use \"-webkit-overflow-scrolling: touch;\" due to a\n // gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342\n // See also https://github.com/twbs/bootstrap/issues/17695\n "]))),
|
|
@@ -6911,8 +6941,8 @@ var styles$r = StyleSheet.create({
|
|
|
6911
6941
|
'.modal-content --text': css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteral(["\n color: $modal-content-color;\n "]))),
|
|
6912
6942
|
'.modal-backdrop': css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n z-index: $zindex-modal-backdrop;\n width: 100%;\n height: 100%;\n background-color: $modal-backdrop-bg;\n opacity: $modal-backdrop-opacity;\n "]))),
|
|
6913
6943
|
'.modal-sm': css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(sm) {\n max-width: $modal-sm;\n }\n "]))),
|
|
6914
|
-
'.modal-lg': css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(lg) {\n max-width: $modal-lg;\n }\n
|
|
6915
|
-
'.modal-xl': css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(xl) {\n max-width: $modal-xl;\n }\n "])))
|
|
6944
|
+
'.modal-lg': css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(lg) {\n max-width: $modal-lg;\n }\n "]))),
|
|
6945
|
+
'.modal-xl': css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(lg) {\n max-width: $modal-lg;\n }\n @include media-breakpoint-up(xl) {\n max-width: $modal-xl;\n }\n "])))
|
|
6916
6946
|
});
|
|
6917
6947
|
var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6918
6948
|
var children = props.children,
|
|
@@ -6926,7 +6956,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6926
6956
|
centered = _props$centered === void 0 ? false : _props$centered,
|
|
6927
6957
|
handleToggle = props.onToggle,
|
|
6928
6958
|
style = props.style,
|
|
6959
|
+
innerStyle = props.innerStyle,
|
|
6960
|
+
dialogStyle = props.dialogStyle,
|
|
6961
|
+
contentStyle = props.contentStyle,
|
|
6929
6962
|
textStyle = props.textStyle,
|
|
6963
|
+
dialogTextStyle = props.dialogTextStyle,
|
|
6964
|
+
contentTextStyle = props.contentTextStyle,
|
|
6930
6965
|
elementProps = _objectWithoutProperties(props, _excluded$w);
|
|
6931
6966
|
|
|
6932
6967
|
var dialogRef = useRef();
|
|
@@ -6949,10 +6984,11 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6949
6984
|
}, backdrop && /*#__PURE__*/React.createElement(View, {
|
|
6950
6985
|
style: backdropClasses
|
|
6951
6986
|
}), /*#__PURE__*/React.createElement(FlexView, {
|
|
6952
|
-
style: classes,
|
|
6953
|
-
|
|
6987
|
+
style: [classes, style],
|
|
6988
|
+
textStyle: textStyle,
|
|
6989
|
+
contentContainerStyle: [scrollable ? undefined : {
|
|
6954
6990
|
flexGrow: 1
|
|
6955
|
-
}
|
|
6991
|
+
}, innerStyle]
|
|
6956
6992
|
}, /*#__PURE__*/React.createElement(BackdropHandler, {
|
|
6957
6993
|
dialogRef: dialogRef,
|
|
6958
6994
|
onClose: handleToggle,
|
|
@@ -6963,11 +6999,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6963
6999
|
}
|
|
6964
7000
|
}, /*#__PURE__*/React.createElement(View, {
|
|
6965
7001
|
ref: dialogRef,
|
|
6966
|
-
style: dialogClasses
|
|
7002
|
+
style: [dialogClasses, dialogStyle],
|
|
7003
|
+
textStyle: dialogTextStyle
|
|
6967
7004
|
}, /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
6968
7005
|
ref: ref,
|
|
6969
|
-
style: [contentClasses,
|
|
6970
|
-
textStyle: [contentTextClasses,
|
|
7006
|
+
style: [contentClasses, contentStyle],
|
|
7007
|
+
textStyle: [contentTextClasses, contentTextStyle]
|
|
6971
7008
|
}), /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
6972
7009
|
value: modal
|
|
6973
7010
|
}, /*#__PURE__*/React.createElement(OverlayProvider, null, children)))))));
|
|
@@ -7490,7 +7527,7 @@ var OffcanvasBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7490
7527
|
OffcanvasBody.displayName = 'OffcanvasBody';
|
|
7491
7528
|
OffcanvasBody.propTypes = propTypes$o;
|
|
7492
7529
|
|
|
7493
|
-
var _excluded$j = ["children", "visible", "placement", "backdrop", "scroll", "onToggle", "style", "textStyle"];
|
|
7530
|
+
var _excluded$j = ["children", "visible", "placement", "backdrop", "scroll", "onToggle", "style", "dialogStyle", "textStyle", "dialogTextStyle"];
|
|
7494
7531
|
|
|
7495
7532
|
var _templateObject$g, _templateObject2$b, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
7496
7533
|
var PLACEMENTS = ['top', 'bottom', 'start', 'end']; // , 'auto'
|
|
@@ -7506,7 +7543,11 @@ var propTypes$n = {
|
|
|
7506
7543
|
// eslint-disable-next-line react/forbid-prop-types
|
|
7507
7544
|
style: PropTypes.any,
|
|
7508
7545
|
// eslint-disable-next-line react/forbid-prop-types
|
|
7509
|
-
|
|
7546
|
+
dialogStyle: PropTypes.any,
|
|
7547
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
7548
|
+
textStyle: PropTypes.any,
|
|
7549
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
7550
|
+
dialogTextStyle: PropTypes.any
|
|
7510
7551
|
};
|
|
7511
7552
|
var styles$g = StyleSheet.create(_objectSpread2({
|
|
7512
7553
|
'.offcanvas': css(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n position: absolute; // fixed;\n // bottom: 0;\n z-index: $zindex-offcanvas;\n display: flex;\n flex-direction: column;\n max-width: 100%;\n // visibility: hidden;\n background-color: $offcanvas-bg-color;\n // background-clip: padding-box;\n @include platform(web) {\n outline-width: 0; // outline: 0;\n }\n // @include box-shadow($offcanvas-box-shadow);\n // @include transition(transform $offcanvas-transition-duration ease-in-out);\n "]))),
|
|
@@ -7538,7 +7579,9 @@ var Offcanvas = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7538
7579
|
scroll = _props$scroll === void 0 ? false : _props$scroll,
|
|
7539
7580
|
handleToggle = props.onToggle,
|
|
7540
7581
|
style = props.style,
|
|
7582
|
+
dialogStyle = props.dialogStyle,
|
|
7541
7583
|
textStyle = props.textStyle,
|
|
7584
|
+
dialogTextStyle = props.dialogTextStyle,
|
|
7542
7585
|
elementProps = _objectWithoutProperties(props, _excluded$j);
|
|
7543
7586
|
|
|
7544
7587
|
var media = useMedia();
|
|
@@ -7581,7 +7624,8 @@ var Offcanvas = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7581
7624
|
flexShrink: 1
|
|
7582
7625
|
}
|
|
7583
7626
|
}, /*#__PURE__*/React.createElement(View, {
|
|
7584
|
-
style: dialogClasses
|
|
7627
|
+
style: [dialogClasses, dialogStyle],
|
|
7628
|
+
textStyle: dialogTextStyle
|
|
7585
7629
|
}, /*#__PURE__*/React.createElement(OffcanvasContext.Provider, {
|
|
7586
7630
|
value: offcanvas
|
|
7587
7631
|
}, /*#__PURE__*/React.createElement(OverlayProvider, null, children))))));
|
|
@@ -7662,11 +7706,11 @@ PickerWeb.propTypes = propTypes$m;
|
|
|
7662
7706
|
var PickerNativeContext = /*#__PURE__*/React.createContext();
|
|
7663
7707
|
PickerNativeContext.displayName = 'PickerNativeContext';
|
|
7664
7708
|
|
|
7665
|
-
var _excluded$h = ["children", "selectedValue", "onValueChange", "onFocus", "onBlur", "placeholder", "placeholderTextColor", "disabled", "
|
|
7709
|
+
var _excluded$h = ["children", "selectedValue", "onValueChange", "onFocus", "onBlur", "placeholder", "placeholderTextColor", "disabled", "MenuComponent", "style"];
|
|
7666
7710
|
|
|
7667
7711
|
var _templateObject$f;
|
|
7668
7712
|
var propTypes$l = {
|
|
7669
|
-
children: PropTypes.node,
|
|
7713
|
+
children: PropTypes.node.isRequired,
|
|
7670
7714
|
selectedValue: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.object]),
|
|
7671
7715
|
onValueChange: PropTypes.func,
|
|
7672
7716
|
onFocus: PropTypes.func,
|
|
@@ -7674,8 +7718,7 @@ var propTypes$l = {
|
|
|
7674
7718
|
placeholder: PropTypes.string,
|
|
7675
7719
|
placeholderTextColor: PropTypes.string,
|
|
7676
7720
|
disabled: PropTypes.bool,
|
|
7677
|
-
|
|
7678
|
-
renderMenu: PropTypes.func,
|
|
7721
|
+
MenuComponent: PropTypes.elementType,
|
|
7679
7722
|
// eslint-disable-next-line react/forbid-prop-types
|
|
7680
7723
|
style: PropTypes.any
|
|
7681
7724
|
};
|
|
@@ -7699,7 +7742,7 @@ var extractTextStyles = function extractTextStyles(style) {
|
|
|
7699
7742
|
return textStyles;
|
|
7700
7743
|
};
|
|
7701
7744
|
|
|
7702
|
-
var
|
|
7745
|
+
var getText = function getText(_ref3) {
|
|
7703
7746
|
var children = _ref3.children,
|
|
7704
7747
|
selectedValue = _ref3.selectedValue;
|
|
7705
7748
|
var items = React.Children.map(children, function (child) {
|
|
@@ -7713,12 +7756,14 @@ var renderTextDefault = function renderTextDefault(_ref3) {
|
|
|
7713
7756
|
});
|
|
7714
7757
|
return selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label;
|
|
7715
7758
|
};
|
|
7759
|
+
/* eslint-disable react/prop-types */
|
|
7716
7760
|
|
|
7717
|
-
|
|
7761
|
+
|
|
7762
|
+
var DefaultMenuComponent = function DefaultMenuComponent(_ref4) {
|
|
7718
7763
|
var children = _ref4.children,
|
|
7719
7764
|
selectedValue = _ref4.selectedValue,
|
|
7720
|
-
handleValueChange = _ref4.
|
|
7721
|
-
handleClose = _ref4.
|
|
7765
|
+
handleValueChange = _ref4.onValueChange,
|
|
7766
|
+
handleClose = _ref4.onClose;
|
|
7722
7767
|
return /*#__PURE__*/React.createElement(Offcanvas, {
|
|
7723
7768
|
placement: "bottom",
|
|
7724
7769
|
visible: true,
|
|
@@ -7732,6 +7777,8 @@ var renderMenuDefault = function renderMenuDefault(_ref4) {
|
|
|
7732
7777
|
}
|
|
7733
7778
|
}, children)));
|
|
7734
7779
|
};
|
|
7780
|
+
/* eslint-enable */
|
|
7781
|
+
|
|
7735
7782
|
|
|
7736
7783
|
var PickerNative = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7737
7784
|
var children = props.children,
|
|
@@ -7743,14 +7790,11 @@ var PickerNative = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7743
7790
|
_props$onBlur = props.onBlur,
|
|
7744
7791
|
onBlur = _props$onBlur === void 0 ? function () {} : _props$onBlur,
|
|
7745
7792
|
placeholder = props.placeholder,
|
|
7746
|
-
|
|
7747
|
-
placeholderTextColor = _props$placeholderTex === void 0 ? StyleSheet.value('input-placeholder-color') : _props$placeholderTex,
|
|
7793
|
+
placeholderTextColor = props.placeholderTextColor,
|
|
7748
7794
|
_props$disabled = props.disabled,
|
|
7749
7795
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
7750
|
-
_props$
|
|
7751
|
-
|
|
7752
|
-
_props$renderMenu = props.renderMenu,
|
|
7753
|
-
renderMenu = _props$renderMenu === void 0 ? renderMenuDefault : _props$renderMenu,
|
|
7796
|
+
_props$MenuComponent = props.MenuComponent,
|
|
7797
|
+
MenuComponent = _props$MenuComponent === void 0 ? DefaultMenuComponent : _props$MenuComponent,
|
|
7754
7798
|
style = props.style,
|
|
7755
7799
|
elementProps = _objectWithoutProperties(props, _excluded$h);
|
|
7756
7800
|
|
|
@@ -7776,10 +7820,6 @@ var PickerNative = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7776
7820
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
7777
7821
|
ref: ref,
|
|
7778
7822
|
accessibilityRole: "combobox",
|
|
7779
|
-
accessibilityDisabled: disabled,
|
|
7780
|
-
accessible: true,
|
|
7781
|
-
focusable: !disabled,
|
|
7782
|
-
selectable: false,
|
|
7783
7823
|
onPress: function onPress() {
|
|
7784
7824
|
setVisible(true);
|
|
7785
7825
|
},
|
|
@@ -7792,15 +7832,14 @@ var PickerNative = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7792
7832
|
style: [textStyle, showPlaceholder && {
|
|
7793
7833
|
color: placeholderTextColor
|
|
7794
7834
|
}]
|
|
7795
|
-
}, showPlaceholder ? placeholder :
|
|
7835
|
+
}, showPlaceholder ? placeholder : getText({
|
|
7796
7836
|
children: children,
|
|
7797
7837
|
selectedValue: selectedValue
|
|
7798
|
-
}))), visible &&
|
|
7799
|
-
children: children,
|
|
7838
|
+
}))), visible && /*#__PURE__*/React.createElement(MenuComponent, {
|
|
7800
7839
|
selectedValue: selectedValue,
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
}));
|
|
7840
|
+
onValueChange: handleValueChange,
|
|
7841
|
+
onClose: handleClose
|
|
7842
|
+
}, children));
|
|
7804
7843
|
});
|
|
7805
7844
|
PickerNative.propTypes = propTypes$l;
|
|
7806
7845
|
|
|
@@ -7904,7 +7943,7 @@ var _templateObject$d, _templateObject2$9, _templateObject3$3, _templateObject4$
|
|
|
7904
7943
|
/* eslint-disable react/no-unused-prop-types */
|
|
7905
7944
|
|
|
7906
7945
|
var propTypes$h = {
|
|
7907
|
-
children: PropTypes.node,
|
|
7946
|
+
children: PropTypes.node.isRequired,
|
|
7908
7947
|
onFocus: PropTypes.func,
|
|
7909
7948
|
onBlur: PropTypes.func,
|
|
7910
7949
|
placeholderTextColor: PropTypes.string,
|