bootstrap-rn 0.1.4 → 0.1.6
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 +564 -436
- package/dist/bootstrap-rn.esm.js +565 -437
- package/dist/bootstrap-rn.umd.js +680 -554
- package/dist/bootstrap-rn.umd.min.js +2 -2
- package/package.json +5 -6
package/dist/bootstrap-rn.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayProvider, useOverlayPosition, OverlayContainer } from '@react-native-aria/overlays';
|
|
2
2
|
export { PortalProvider } from '@react-native-aria/overlays';
|
|
3
|
-
import { Platform, PixelRatio, StyleSheet as StyleSheet$1, I18nManager, Dimensions, View as View$1,
|
|
3
|
+
import { Platform, PixelRatio, StyleSheet as StyleSheet$1, I18nManager, Dimensions, View as View$1, Pressable as Pressable$1, Text as Text$1, StatusBar, findNodeHandle, TextInput as TextInput$1, Image as Image$1, ImageBackground as ImageBackground$1, ScrollView as ScrollView$1, Modal as Modal$1, SafeAreaView, Picker as Picker$1, Animated, Easing } from 'react-native';
|
|
4
4
|
import { getStylesForProperty, getPropertyName } from 'css-to-react-native';
|
|
5
5
|
import { rgba as rgba$1, mix, parseToRgb } from 'polished';
|
|
6
6
|
import React, { useState, useEffect, useRef, useContext, useMemo, createContext } from 'react';
|
|
@@ -830,6 +830,13 @@ function transform(children, theme) {
|
|
|
830
830
|
order: value
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
+
} else if (child.name === 'margin-horizontal' && value === 'auto') {
|
|
834
|
+
// Workaround for react-native issue #350
|
|
835
|
+
// https://github.com/facebook/react-native/issues/350#issuecomment-375238958
|
|
836
|
+
Object.assign(definitions[0].declarations, {
|
|
837
|
+
marginLeft: value,
|
|
838
|
+
marginRight: value
|
|
839
|
+
});
|
|
833
840
|
} else if (child.name === 'border-color' && value.split(' ').length === 1) {
|
|
834
841
|
// Workaround for react-native issue #19981
|
|
835
842
|
// https://github.com/facebook/react-native/issues/19981
|
|
@@ -1956,7 +1963,7 @@ var utilities = {
|
|
|
1956
1963
|
|
|
1957
1964
|
};
|
|
1958
1965
|
|
|
1959
|
-
var _templateObject$1b, _templateObject2$
|
|
1966
|
+
var _templateObject$1b, _templateObject2$S;
|
|
1960
1967
|
function makeUtility(options) {
|
|
1961
1968
|
return each(options.values, function (key, value) {
|
|
1962
1969
|
var name = options.class || options.property;
|
|
@@ -1973,7 +1980,7 @@ function makeUtility(options) {
|
|
|
1973
1980
|
return null;
|
|
1974
1981
|
}
|
|
1975
1982
|
|
|
1976
|
-
return _defineProperty({}, "".concat(name, "-").concat(breakpoint).concat(suffix), css(_templateObject2$
|
|
1983
|
+
return _defineProperty({}, "".concat(name, "-").concat(breakpoint).concat(suffix), css(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n ", ": ", ";\n }\n "])), breakpoint, options.property, value));
|
|
1977
1984
|
}));
|
|
1978
1985
|
});
|
|
1979
1986
|
}
|
|
@@ -2785,9 +2792,9 @@ function useViewport(initialViewport) {
|
|
|
2785
2792
|
});
|
|
2786
2793
|
}, []);
|
|
2787
2794
|
useEffect(function () {
|
|
2788
|
-
Dimensions.addEventListener('change', handleChange);
|
|
2795
|
+
var subscription = Dimensions.addEventListener('change', handleChange);
|
|
2789
2796
|
return function () {
|
|
2790
|
-
|
|
2797
|
+
subscription.remove();
|
|
2791
2798
|
};
|
|
2792
2799
|
}, [viewport]);
|
|
2793
2800
|
return viewport;
|
|
@@ -2951,7 +2958,7 @@ View.propTypes = propTypes$1p;
|
|
|
2951
2958
|
|
|
2952
2959
|
var _excluded$1q = ["children", "color", "dismissible", "style", "textStyle"];
|
|
2953
2960
|
|
|
2954
|
-
var _templateObject$19, _templateObject2$
|
|
2961
|
+
var _templateObject$19, _templateObject2$R, _templateObject3$q;
|
|
2955
2962
|
var propTypes$1o = {
|
|
2956
2963
|
children: PropTypes.node.isRequired,
|
|
2957
2964
|
color: PropTypes.oneOf(Object.keys(THEME_COLORS)),
|
|
@@ -2966,7 +2973,7 @@ var styles$18 = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
|
2966
2973
|
}, each(THEME_COLORS, function (state, value) {
|
|
2967
2974
|
var _ref;
|
|
2968
2975
|
|
|
2969
|
-
return _ref = {}, _defineProperty(_ref, ".alert-".concat(state), css(_templateObject2$
|
|
2976
|
+
return _ref = {}, _defineProperty(_ref, ".alert-".concat(state), css(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteral(["\n background-color: ", ";\n border-color: ", ";\n "])), shiftColor(function (t) {
|
|
2970
2977
|
return t['alert-bg-scale'];
|
|
2971
2978
|
}, value), shiftColor(function (t) {
|
|
2972
2979
|
return t['alert-border-scale'];
|
|
@@ -2999,110 +3006,41 @@ var Alert = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2999
3006
|
Alert.displayName = 'Alert';
|
|
3000
3007
|
Alert.propTypes = propTypes$1o;
|
|
3001
3008
|
|
|
3002
|
-
var _excluded$1p = ["
|
|
3009
|
+
var _excluded$1p = ["children", "style", "textStyle"];
|
|
3003
3010
|
|
|
3004
|
-
var _templateObject$18, _templateObject2$
|
|
3011
|
+
var _templateObject$18, _templateObject2$Q;
|
|
3005
3012
|
var propTypes$1n = {
|
|
3006
|
-
|
|
3007
|
-
small: PropTypes.bool,
|
|
3008
|
-
mark: PropTypes.bool,
|
|
3009
|
-
bold: PropTypes.bool,
|
|
3010
|
-
italic: PropTypes.bool,
|
|
3013
|
+
children: PropTypes.node.isRequired,
|
|
3011
3014
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3012
3015
|
style: PropTypes.any,
|
|
3013
3016
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3014
|
-
|
|
3017
|
+
textStyle: PropTypes.any
|
|
3015
3018
|
};
|
|
3016
3019
|
var styles$17 = StyleSheet.create({
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
italic: css(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteral(["\n font-style: italic;\n "]))),
|
|
3020
|
-
small: css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteral(["\n font-size: $small-font-size;\n line-height: $small-font-size * $line-height-base;\n "]))),
|
|
3021
|
-
mark: css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteral(["\n padding: $mark-padding;\n background-color: $mark-bg;\n "])))
|
|
3022
|
-
});
|
|
3023
|
-
|
|
3024
|
-
var getStyleName = function getStyleName(styleName, color) {
|
|
3025
|
-
if (!color) {
|
|
3026
|
-
return styleName;
|
|
3027
|
-
}
|
|
3028
|
-
|
|
3029
|
-
return styleName ? "text-".concat(color, " ").concat(styleName) : "text-".concat(color);
|
|
3030
|
-
};
|
|
3031
|
-
|
|
3032
|
-
var Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3033
|
-
var color = props.color,
|
|
3034
|
-
_props$bold = props.bold,
|
|
3035
|
-
bold = _props$bold === void 0 ? false : _props$bold,
|
|
3036
|
-
_props$italic = props.italic,
|
|
3037
|
-
italic = _props$italic === void 0 ? false : _props$italic,
|
|
3038
|
-
_props$mark = props.mark,
|
|
3039
|
-
mark = _props$mark === void 0 ? false : _props$mark,
|
|
3040
|
-
_props$small = props.small,
|
|
3041
|
-
small = _props$small === void 0 ? false : _props$small,
|
|
3042
|
-
style = props.style,
|
|
3043
|
-
styleName = props.styleName,
|
|
3044
|
-
elementProps = _objectWithoutProperties(props, _excluded$1p);
|
|
3045
|
-
|
|
3046
|
-
var media = useMedia();
|
|
3047
|
-
var context = useContext(TextStyleContext);
|
|
3048
|
-
var classes = getStyles(styles$17, [bold && 'strong', italic && 'italic', small && 'small', mark && 'mark']);
|
|
3049
|
-
var resolveStyle = useStyle([// eslint-disable-next-line react/destructuring-assignment
|
|
3050
|
-
(!context || !context.hasTextAncestor) && styles$17.text, // eslint-disable-next-line react/destructuring-assignment
|
|
3051
|
-
context && context.style, classes, style], getStyleName(styleName, color));
|
|
3052
|
-
var element = /*#__PURE__*/React.createElement(Text$1, _extends({}, elementProps, {
|
|
3053
|
-
ref: ref,
|
|
3054
|
-
style: resolveStyle({
|
|
3055
|
-
media: media
|
|
3056
|
-
})
|
|
3057
|
-
})); // eslint-disable-next-line react/destructuring-assignment
|
|
3058
|
-
|
|
3059
|
-
if (context && context.hasTextAncestor && !context.style) {
|
|
3060
|
-
return element;
|
|
3061
|
-
} // If we are not in an ancestor context yet, we need to set hasTextAncestor
|
|
3062
|
-
// to true for nested text components. Furthermore we need to reset the
|
|
3063
|
-
// context style, because we only need to apply the style once.
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
return /*#__PURE__*/React.createElement(TextStyleContext.Provider, {
|
|
3067
|
-
value: {
|
|
3068
|
-
style: null,
|
|
3069
|
-
hasTextAncestor: true
|
|
3070
|
-
}
|
|
3071
|
-
}, element);
|
|
3072
|
-
});
|
|
3073
|
-
Text.displayName = 'Text';
|
|
3074
|
-
Text.propTypes = propTypes$1n;
|
|
3075
|
-
|
|
3076
|
-
var _excluded$1o = ["children", "style"];
|
|
3077
|
-
|
|
3078
|
-
var _templateObject$17, _templateObject2$J;
|
|
3079
|
-
var propTypes$1m = {
|
|
3080
|
-
children: PropTypes.node.isRequired,
|
|
3081
|
-
// eslint-disable-next-line react/forbid-prop-types
|
|
3082
|
-
style: PropTypes.any
|
|
3083
|
-
};
|
|
3084
|
-
var styles$16 = StyleSheet.create({
|
|
3085
|
-
'.badge': css(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteral(["\n // display: inline-block;\n padding: $badge-padding-y $badge-padding-x;\n border-radius: $badge-border-radius;\n // @include gradient-bg();\n "]))),
|
|
3086
|
-
'.badge-text': css(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteral(["\n font-size: $badge-font-size;\n font-weight: $badge-font-weight;\n line-height: $badge-font-size * 1;\n color: $badge-color;\n text-align: center;\n // white-space: nowrap;\n // vertical-align: baseline;\n "])))
|
|
3020
|
+
'.badge': css(_templateObject$18 || (_templateObject$18 = _taggedTemplateLiteral(["\n // display: inline-block;\n padding: $badge-padding-y $badge-padding-x;\n border-radius: $badge-border-radius;\n // @include gradient-bg();\n "]))),
|
|
3021
|
+
'.badge-text': css(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteral(["\n font-size: $badge-font-size;\n font-weight: $badge-font-weight;\n line-height: $badge-font-size * 1;\n color: $badge-color;\n text-align: center;\n // white-space: nowrap;\n // vertical-align: baseline;\n "])))
|
|
3087
3022
|
});
|
|
3088
3023
|
var Badge = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3089
3024
|
var children = props.children,
|
|
3090
3025
|
style = props.style,
|
|
3091
|
-
|
|
3026
|
+
textStyle = props.textStyle,
|
|
3027
|
+
elementProps = _objectWithoutProperties(props, _excluded$1p);
|
|
3092
3028
|
|
|
3093
|
-
var classes = getStyles(styles$
|
|
3094
|
-
|
|
3029
|
+
var classes = getStyles(styles$17, ['.badge']);
|
|
3030
|
+
var textClasses = getStyles(styles$17, ['.badge-text']);
|
|
3031
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3095
3032
|
ref: ref,
|
|
3096
|
-
style: [classes, style]
|
|
3033
|
+
style: [classes, style],
|
|
3034
|
+
textStyle: [textClasses, textStyle]
|
|
3097
3035
|
}), children);
|
|
3098
3036
|
});
|
|
3099
3037
|
Badge.displayName = 'Badge';
|
|
3100
|
-
Badge.propTypes = propTypes$
|
|
3038
|
+
Badge.propTypes = propTypes$1n;
|
|
3101
3039
|
|
|
3102
|
-
var _excluded$
|
|
3040
|
+
var _excluded$1o = ["children", "active", "style", "textStyle"];
|
|
3103
3041
|
|
|
3104
|
-
var _templateObject$
|
|
3105
|
-
var propTypes$
|
|
3042
|
+
var _templateObject$17, _templateObject2$P, _templateObject3$p;
|
|
3043
|
+
var propTypes$1m = {
|
|
3106
3044
|
children: PropTypes.node.isRequired,
|
|
3107
3045
|
active: PropTypes.bool,
|
|
3108
3046
|
// eslint-disable-next-line react/forbid-prop-types
|
|
@@ -3110,10 +3048,10 @@ var propTypes$1l = {
|
|
|
3110
3048
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3111
3049
|
textStyle: PropTypes.any
|
|
3112
3050
|
};
|
|
3113
|
-
var styles$
|
|
3114
|
-
'.breadcrumb-item': css(_templateObject$
|
|
3115
|
-
'.breadcrumb-text': css(_templateObject2$
|
|
3116
|
-
'.breadcrumb-item-active': css(_templateObject3$
|
|
3051
|
+
var styles$16 = StyleSheet.create({
|
|
3052
|
+
'.breadcrumb-item': css(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteral(["\n padding-left: $breadcrumb-item-padding-x;\n padding-right: $breadcrumb-item-padding-x;\n "]))),
|
|
3053
|
+
'.breadcrumb-text': css(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteral(["\n color: $primary;\n "]))),
|
|
3054
|
+
'.breadcrumb-item-active': css(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteral(["\n color: $breadcrumb-active-color;\n "])))
|
|
3117
3055
|
});
|
|
3118
3056
|
var BreadcrumbItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3119
3057
|
var children = props.children,
|
|
@@ -3121,10 +3059,10 @@ var BreadcrumbItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3121
3059
|
active = _props$active === void 0 ? false : _props$active,
|
|
3122
3060
|
style = props.style,
|
|
3123
3061
|
textStyle = props.textStyle,
|
|
3124
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3062
|
+
elementProps = _objectWithoutProperties(props, _excluded$1o);
|
|
3125
3063
|
|
|
3126
|
-
var classes = getStyles(styles$
|
|
3127
|
-
var textClasses = getStyles(styles$
|
|
3064
|
+
var classes = getStyles(styles$16, ['.breadcrumb-item', active && '.breadcrumb-item-active']);
|
|
3065
|
+
var textClasses = getStyles(styles$16, ['.breadcrumb-text', active && '.breadcrumb-item-active']);
|
|
3128
3066
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3129
3067
|
ref: ref,
|
|
3130
3068
|
style: [classes, style],
|
|
@@ -3132,7 +3070,7 @@ var BreadcrumbItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3132
3070
|
}), children);
|
|
3133
3071
|
});
|
|
3134
3072
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
3135
|
-
BreadcrumbItem.propTypes = propTypes$
|
|
3073
|
+
BreadcrumbItem.propTypes = propTypes$1m;
|
|
3136
3074
|
/*
|
|
3137
3075
|
$breadcrumb-font-size: null;
|
|
3138
3076
|
$breadcrumb-padding-y: 0;
|
|
@@ -3147,30 +3085,30 @@ $breadcrumb-divider-flipped: $breadcrumb-divider;
|
|
|
3147
3085
|
$breadcrumb-border-radius: null;
|
|
3148
3086
|
*/
|
|
3149
3087
|
|
|
3150
|
-
var _excluded$
|
|
3088
|
+
var _excluded$1n = ["children", "style"];
|
|
3151
3089
|
|
|
3152
|
-
var _templateObject$
|
|
3153
|
-
var propTypes$
|
|
3090
|
+
var _templateObject$16;
|
|
3091
|
+
var propTypes$1l = {
|
|
3154
3092
|
children: PropTypes.node.isRequired,
|
|
3155
3093
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3156
3094
|
style: PropTypes.any
|
|
3157
3095
|
};
|
|
3158
|
-
var styles$
|
|
3159
|
-
'.breadcrumb': css(_templateObject$
|
|
3096
|
+
var styles$15 = StyleSheet.create({
|
|
3097
|
+
'.breadcrumb': css(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteral(["\n flex-direction: row;\n "])))
|
|
3160
3098
|
});
|
|
3161
3099
|
var Breadcrumb = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3162
3100
|
var children = props.children,
|
|
3163
3101
|
style = props.style,
|
|
3164
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3102
|
+
elementProps = _objectWithoutProperties(props, _excluded$1n);
|
|
3165
3103
|
|
|
3166
|
-
var classes = getStyles(styles$
|
|
3104
|
+
var classes = getStyles(styles$15, ['.breadcrumb']);
|
|
3167
3105
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3168
3106
|
ref: ref,
|
|
3169
3107
|
style: [classes, style]
|
|
3170
3108
|
}), makeListChildren(children));
|
|
3171
3109
|
});
|
|
3172
3110
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
3173
|
-
Breadcrumb.propTypes = propTypes$
|
|
3111
|
+
Breadcrumb.propTypes = propTypes$1l;
|
|
3174
3112
|
Breadcrumb.Item = BreadcrumbItem;
|
|
3175
3113
|
/*
|
|
3176
3114
|
$breadcrumb-font-size: null;
|
|
@@ -3189,25 +3127,25 @@ $breadcrumb-border-radius: null;
|
|
|
3189
3127
|
var ButtonGroupContext = /*#__PURE__*/React.createContext();
|
|
3190
3128
|
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
3191
3129
|
|
|
3192
|
-
var _excluded$
|
|
3130
|
+
var _excluded$1m = ["children", "size", "style"];
|
|
3193
3131
|
|
|
3194
|
-
var _templateObject$
|
|
3195
|
-
var propTypes$
|
|
3132
|
+
var _templateObject$15;
|
|
3133
|
+
var propTypes$1k = {
|
|
3196
3134
|
children: PropTypes.node.isRequired,
|
|
3197
3135
|
size: PropTypes.oneOf(['lg', 'sm']),
|
|
3198
3136
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3199
3137
|
style: PropTypes.any
|
|
3200
3138
|
};
|
|
3201
|
-
var styles$
|
|
3202
|
-
'.btn-group': css(_templateObject$
|
|
3139
|
+
var styles$14 = StyleSheet.create({
|
|
3140
|
+
'.btn-group': css(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteral(["\n flex-direction: row; // added for bootstrap-rn\n border-radius: $btn-border-radius;\n "])))
|
|
3203
3141
|
});
|
|
3204
3142
|
var ButtonGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3205
3143
|
var children = props.children,
|
|
3206
3144
|
size = props.size,
|
|
3207
3145
|
style = props.style,
|
|
3208
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3146
|
+
elementProps = _objectWithoutProperties(props, _excluded$1m);
|
|
3209
3147
|
|
|
3210
|
-
var classes = getStyles(styles$
|
|
3148
|
+
var classes = getStyles(styles$14, ['.btn-group']); // Accessiblity role tabpanel is only supported on web.
|
|
3211
3149
|
|
|
3212
3150
|
var role = Platform.OS === 'web' ? 'group' : null;
|
|
3213
3151
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
@@ -3221,25 +3159,25 @@ var ButtonGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3221
3159
|
}, makeListChildren(children)));
|
|
3222
3160
|
});
|
|
3223
3161
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
3224
|
-
ButtonGroup.propTypes = propTypes$
|
|
3162
|
+
ButtonGroup.propTypes = propTypes$1k;
|
|
3225
3163
|
|
|
3226
|
-
var _excluded$
|
|
3164
|
+
var _excluded$1l = ["children", "style"];
|
|
3227
3165
|
|
|
3228
|
-
var _templateObject$
|
|
3229
|
-
var propTypes$
|
|
3166
|
+
var _templateObject$14;
|
|
3167
|
+
var propTypes$1j = {
|
|
3230
3168
|
children: PropTypes.node.isRequired,
|
|
3231
3169
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3232
3170
|
style: PropTypes.any
|
|
3233
3171
|
};
|
|
3234
|
-
var styles$
|
|
3235
|
-
'.btn-toolbar': css(_templateObject$
|
|
3172
|
+
var styles$13 = StyleSheet.create({
|
|
3173
|
+
'.btn-toolbar': css(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row; // added for bootstrap-rn\n flex-wrap: wrap;\n justify-content: flex-start;\n "])))
|
|
3236
3174
|
});
|
|
3237
3175
|
var ButtonToolbar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3238
3176
|
var children = props.children,
|
|
3239
3177
|
style = props.style,
|
|
3240
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3178
|
+
elementProps = _objectWithoutProperties(props, _excluded$1l);
|
|
3241
3179
|
|
|
3242
|
-
var classes = getStyles(styles$
|
|
3180
|
+
var classes = getStyles(styles$13, ['.btn-toolbar']);
|
|
3243
3181
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3244
3182
|
ref: ref,
|
|
3245
3183
|
accessibilityRole: "toolbar",
|
|
@@ -3247,7 +3185,7 @@ var ButtonToolbar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3247
3185
|
}), children);
|
|
3248
3186
|
});
|
|
3249
3187
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
3250
|
-
ButtonToolbar.propTypes = propTypes$
|
|
3188
|
+
ButtonToolbar.propTypes = propTypes$1j;
|
|
3251
3189
|
|
|
3252
3190
|
function useForcedContext(Context) {
|
|
3253
3191
|
var context = useContext(Context);
|
|
@@ -3255,7 +3193,7 @@ function useForcedContext(Context) {
|
|
|
3255
3193
|
return context;
|
|
3256
3194
|
}
|
|
3257
3195
|
|
|
3258
|
-
var _excluded$
|
|
3196
|
+
var _excluded$1k = ["ref"];
|
|
3259
3197
|
function useModifier(name, props, ref) {
|
|
3260
3198
|
var context = useForcedContext(Context);
|
|
3261
3199
|
var useModifierHook = context.modifiers[name];
|
|
@@ -3266,12 +3204,12 @@ function useModifier(name, props, ref) {
|
|
|
3266
3204
|
|
|
3267
3205
|
var _useModifierHook = useModifierHook(props),
|
|
3268
3206
|
modifierRef = _useModifierHook.ref,
|
|
3269
|
-
modifierProps = _objectWithoutProperties(_useModifierHook, _excluded$
|
|
3207
|
+
modifierProps = _objectWithoutProperties(_useModifierHook, _excluded$1k);
|
|
3270
3208
|
|
|
3271
3209
|
return [modifierProps, concatRefs(modifierRef, ref)];
|
|
3272
3210
|
}
|
|
3273
3211
|
|
|
3274
|
-
var _excluded$
|
|
3212
|
+
var _excluded$1j = ["toggle", "dismiss"],
|
|
3275
3213
|
_excluded2$2 = ["ref"];
|
|
3276
3214
|
|
|
3277
3215
|
var getActionHook = function getActionHook(toggle, dismiss) {
|
|
@@ -3289,7 +3227,7 @@ var getActionHook = function getActionHook(toggle, dismiss) {
|
|
|
3289
3227
|
function useAction(props, ref) {
|
|
3290
3228
|
var toggle = props.toggle,
|
|
3291
3229
|
dismiss = props.dismiss,
|
|
3292
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
3230
|
+
restProps = _objectWithoutProperties(props, _excluded$1j);
|
|
3293
3231
|
|
|
3294
3232
|
var useActionHook = getActionHook(toggle, dismiss);
|
|
3295
3233
|
|
|
@@ -3308,8 +3246,8 @@ function useAction(props, ref) {
|
|
|
3308
3246
|
return [actionProps, concatRefs(actionRef, ref)];
|
|
3309
3247
|
}
|
|
3310
3248
|
|
|
3311
|
-
var _excluded$
|
|
3312
|
-
var propTypes$
|
|
3249
|
+
var _excluded$1i = ["children", "active", "style", "activeStyle", "textStyle", "activeTextStyle", "styleName"];
|
|
3250
|
+
var propTypes$1i = {
|
|
3313
3251
|
children: PropTypes.node,
|
|
3314
3252
|
active: PropTypes.bool,
|
|
3315
3253
|
// eslint-disable-next-line react/forbid-prop-types
|
|
@@ -3361,7 +3299,7 @@ var Pressable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3361
3299
|
textStyle = actionProps.textStyle,
|
|
3362
3300
|
activeTextStyle = actionProps.activeTextStyle,
|
|
3363
3301
|
styleName = actionProps.styleName,
|
|
3364
|
-
elementProps = _objectWithoutProperties(actionProps, _excluded$
|
|
3302
|
+
elementProps = _objectWithoutProperties(actionProps, _excluded$1i);
|
|
3365
3303
|
|
|
3366
3304
|
var media = useMedia();
|
|
3367
3305
|
var context = useContext(TextStyleContext);
|
|
@@ -3398,13 +3336,13 @@ var Pressable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3398
3336
|
} : children);
|
|
3399
3337
|
});
|
|
3400
3338
|
Pressable.displayName = 'Pressable';
|
|
3401
|
-
Pressable.propTypes = propTypes$
|
|
3339
|
+
Pressable.propTypes = propTypes$1i;
|
|
3402
3340
|
|
|
3403
|
-
var _excluded$
|
|
3341
|
+
var _excluded$1h = ["active", "handlePress"];
|
|
3404
3342
|
function useToggleButton(props) {
|
|
3405
3343
|
var active = props.active,
|
|
3406
3344
|
handlePress = props.handlePress,
|
|
3407
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
3345
|
+
restProps = _objectWithoutProperties(props, _excluded$1h);
|
|
3408
3346
|
|
|
3409
3347
|
var _useState = useState(active),
|
|
3410
3348
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3423,10 +3361,10 @@ function useToggleButton(props) {
|
|
|
3423
3361
|
});
|
|
3424
3362
|
}
|
|
3425
3363
|
|
|
3426
|
-
var _excluded$
|
|
3364
|
+
var _excluded$1g = ["children", "color", "size", "outline", "first", "last", "active", "disabled", "style", "activeStyle", "textStyle", "activeTextStyle"];
|
|
3427
3365
|
|
|
3428
|
-
var _templateObject$
|
|
3429
|
-
var propTypes$
|
|
3366
|
+
var _templateObject$13, _templateObject2$O, _templateObject3$o, _templateObject4$m, _templateObject5$k, _templateObject6$g, _templateObject7$c, _templateObject8$b, _templateObject9$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$3, _templateObject15$2, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21, _templateObject22, _templateObject23;
|
|
3367
|
+
var propTypes$1h = {
|
|
3430
3368
|
children: PropTypes.node.isRequired,
|
|
3431
3369
|
color: PropTypes.oneOf([].concat(_toConsumableArray(Object.keys(THEME_COLORS)), ['link'])),
|
|
3432
3370
|
size: PropTypes.oneOf(['lg', 'sm']),
|
|
@@ -3444,14 +3382,14 @@ var propTypes$1g = {
|
|
|
3444
3382
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3445
3383
|
activeTextStyle: PropTypes.any
|
|
3446
3384
|
};
|
|
3447
|
-
var styles$
|
|
3448
|
-
'.btn': css(_templateObject$
|
|
3449
|
-
'.btn-text': css(_templateObject2$
|
|
3450
|
-
'.btn-disabled': css(_templateObject3$
|
|
3385
|
+
var styles$12 = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
3386
|
+
'.btn': css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n flex-direction: row; // added for bootstrap-rn\n justify-content: center; // added for bootstrap-rn\n // display: inline-block;\n @include platform(web) {\n // cursor: if($enable-button-pointers, pointer, null);\n user-select: none;\n }\n background-color: transparent;\n border: $btn-border-width solid transparent;\n padding: $btn-padding-y $btn-padding-x;\n // Manually declare to provide an override to the browser default\n border-radius: $btn-border-radius;\n // @include transition($btn-transition);\n\n &:focus {\n // outline: 0;\n // box-shadow: $btn-focus-box-shadow;\n }\n\n &:active {\n // @include box-shadow($btn-active-box-shadow);\n\n &:focus {\n // @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);\n }\n }\n "]))),
|
|
3387
|
+
'.btn-text': css(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteral(["\n font-family: $btn-font-family;\n font-weight: $btn-font-weight;\n line-height: $btn-font-size * $btn-line-height;\n color: $body-color;\n text-align: center;\n text-decoration: none; // if($link-decoration == none, null, none);\n white-space: $btn-white-space;\n // vertical-align: middle;\n font-size: $btn-font-size;\n\n &:hover {\n color: $body-color;\n text-decoration: none; // if($link-decoration == none, null, none);\n }\n "]))),
|
|
3388
|
+
'.btn-disabled': css(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteral(["\n // pointer-events: none;\n opacity: $btn-disabled-opacity;\n // @include box-shadow(none);\n "])))
|
|
3451
3389
|
}, each(THEME_COLORS, function (color, value) {
|
|
3452
3390
|
var _ref;
|
|
3453
3391
|
|
|
3454
|
-
return _ref = {}, _defineProperty(_ref, ".btn-".concat(color), css(_templateObject4$
|
|
3392
|
+
return _ref = {}, _defineProperty(_ref, ".btn-".concat(color), css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteral(["\n background-color: ", ";\n border-color: ", ";\n // @include box-shadow($btn-box-shadow);\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n border-color: ", ";\n /* @if $enable-shadows {\n @include box-shadow($btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5));\n } @else {\n // Avoid using mixin so we can pass custom focus shadow properly\n box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);\n } */\n }\n\n &:active {\n background-color: ", ";\n // Remove CSS gradients if they're enabled\n // background-image: if($enable-gradients, none, null);\n border-color: ", ";\n }\n "])), value, value, shadeColor(function (t) {
|
|
3455
3393
|
return t['btn-hover-bg-shade-amount'];
|
|
3456
3394
|
}, value), shadeColor(function (t) {
|
|
3457
3395
|
return t['btn-hover-border-shade-amount'];
|
|
@@ -3463,11 +3401,11 @@ var styles$11 = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
|
3463
3401
|
return t['btn-active-bg-shade-amount'];
|
|
3464
3402
|
}, value), shadeColor(function (t) {
|
|
3465
3403
|
return t['btn-active-border-shade-amount'];
|
|
3466
|
-
}, value))), _defineProperty(_ref, ".btn-".concat(color, "-text"), css(_templateObject5$
|
|
3404
|
+
}, value))), _defineProperty(_ref, ".btn-".concat(color, "-text"), css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteral(["\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:focus {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n "])), colorContrast(value), colorContrast(value), colorContrast(value), colorContrast(value))), _defineProperty(_ref, ".btn-".concat(color, "-active"), css(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteral(["\n background-color: ", ";\n // Remove CSS gradients if they're enabled\n // background-image: if($enable-gradients, none, null);\n border-color: ", ";\n "])), shadeColor(function (t) {
|
|
3467
3405
|
return t['btn-active-bg-shade-amount'];
|
|
3468
3406
|
}, value), shadeColor(function (t) {
|
|
3469
3407
|
return t['btn-active-border-shade-amount'];
|
|
3470
|
-
}, value))), _defineProperty(_ref, ".btn-".concat(color, "-active-text"), css(_templateObject7$c || (_templateObject7$c = _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$
|
|
3408
|
+
}, value))), _defineProperty(_ref, ".btn-".concat(color, "-active-text"), css(_templateObject7$c || (_templateObject7$c = _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$8 || (_templateObject9$8 = _taggedTemplateLiteral(["\n $disabled-color: ", ";\n\n color: $disabled-color;\n "])), colorContrast(value))), _defineProperty(_ref, ".btn-outline-".concat(color), css(_templateObject10$8 || (_templateObject10$8 = _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$6 || (_templateObject11$6 = _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;
|
|
3471
3409
|
})), {}, {
|
|
3472
3410
|
'.btn-link-text': css(_templateObject14$3 || (_templateObject14$3 = _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 "]))),
|
|
3473
3411
|
'.btn-link-text-disabled': css(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteral(["\n color: $btn-link-disabled-color;\n "]))),
|
|
@@ -3475,7 +3413,7 @@ var styles$11 = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
|
3475
3413
|
'.btn-lg-text': css(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteral(["\n line-height: $btn-font-size-lg * $btn-line-height;\n font-size: $btn-font-size-lg;\n "]))),
|
|
3476
3414
|
'.btn-sm': css(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteral(["\n padding: $btn-padding-y-sm $btn-padding-x-sm;\n // Manually declare to provide an override to the browser default\n border-radius: $btn-border-radius-sm;\n "]))),
|
|
3477
3415
|
'.btn-sm-text': css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteral(["\n line-height: $btn-font-size-sm * $btn-line-height;\n font-size: $btn-font-size-sm;\n "]))),
|
|
3478
|
-
'.btn-group > .btn': css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteral(["\n position: relative;\n flex: 1 1 auto;\n\n &:hover {\n z-index: 1;\n }\n &:focus {\n z-index: 1;\n }\n &:active {\n z-index: 1;\n }\n "]))),
|
|
3416
|
+
'.btn-group > .btn': css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteral(["\n position: relative;\n // flex: 1 1 auto;\n\n &:hover {\n z-index: 1;\n }\n &:focus {\n z-index: 1;\n }\n &:active {\n z-index: 1;\n }\n "]))),
|
|
3479
3417
|
'.btn-group > .btn-active': css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n z-index: 2; // 1;\n "]))),
|
|
3480
3418
|
'.btn-group > .btn-not-first': css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-left: -$btn-border-width;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n "]))),
|
|
3481
3419
|
'.btn-group > .btn-not-last': css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n "])))
|
|
@@ -3520,14 +3458,14 @@ var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3520
3458
|
activeStyle = props.activeStyle,
|
|
3521
3459
|
textStyle = props.textStyle,
|
|
3522
3460
|
activeTextStyle = props.activeTextStyle,
|
|
3523
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3461
|
+
elementProps = _objectWithoutProperties(props, _excluded$1g);
|
|
3524
3462
|
|
|
3525
3463
|
invariant(color !== 'link' || !outline, 'Button link variant is only available as non outline style.');
|
|
3526
3464
|
var group = useContext(ButtonGroupContext);
|
|
3527
|
-
var classes = getStyles(styles$
|
|
3528
|
-
var activeClasses = getStyles(styles$
|
|
3529
|
-
var textClasses = getStyles(styles$
|
|
3530
|
-
var activeTextClasses = getStyles(styles$
|
|
3465
|
+
var classes = getStyles(styles$12, ['.btn', getVariant(color, outline), disabled && '.btn-disabled', disabled && "".concat(getVariant(color, outline), "-disabled"), hasSize(size, group, 'lg') && '.btn-lg', hasSize(size, group, 'sm') && '.btn-sm', group && '.btn-group > .btn', group && active && '.btn-group > .btn-active', group && !first && '.btn-group > .btn-not-first', group && !last && '.btn-group > .btn-not-last']);
|
|
3466
|
+
var activeClasses = getStyles(styles$12, ["".concat(getVariant(color, outline), "-active")]);
|
|
3467
|
+
var textClasses = getStyles(styles$12, ['.btn-text', "".concat(getVariant(color, outline), "-text"), color === 'link' && '.btn-link-text', disabled && "".concat(getVariant(color, outline), "-text-disabled"), disabled && color === 'link' && '.btn-link-text-disabled', hasSize(size, group, 'lg') && '.btn-lg-text', hasSize(size, group, 'sm') && '.btn-sm-text']);
|
|
3468
|
+
var activeTextClasses = getStyles(styles$12, ["".concat(getVariant(color, outline), "-active-text")]);
|
|
3531
3469
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
3532
3470
|
ref: ref,
|
|
3533
3471
|
active: active,
|
|
@@ -3539,31 +3477,31 @@ var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3539
3477
|
}), children);
|
|
3540
3478
|
});
|
|
3541
3479
|
Button.displayName = 'Button';
|
|
3542
|
-
Button.propTypes = propTypes$
|
|
3480
|
+
Button.propTypes = propTypes$1h;
|
|
3543
3481
|
Button.useToggle = useToggleButton;
|
|
3544
3482
|
|
|
3545
|
-
var _excluded$
|
|
3483
|
+
var _excluded$1f = ["children", "style", "textStyle"];
|
|
3546
3484
|
|
|
3547
|
-
var _templateObject$
|
|
3548
|
-
var propTypes$
|
|
3485
|
+
var _templateObject$12, _templateObject2$N;
|
|
3486
|
+
var propTypes$1g = {
|
|
3549
3487
|
children: PropTypes.node.isRequired,
|
|
3550
3488
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3551
3489
|
style: PropTypes.any,
|
|
3552
3490
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3553
3491
|
textStyle: PropTypes.any
|
|
3554
3492
|
};
|
|
3555
|
-
var styles$
|
|
3556
|
-
blockquote: css(_templateObject$
|
|
3557
|
-
'blockquote-text': css(_templateObject2$
|
|
3493
|
+
var styles$11 = StyleSheet.create({
|
|
3494
|
+
blockquote: css(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteral(["\n margin-bottom: $blockquote-margin-y;\n "]))),
|
|
3495
|
+
'blockquote-text': css(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteral(["\n font-size: $blockquote-font-size;\n "])))
|
|
3558
3496
|
});
|
|
3559
3497
|
var Blockquote = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3560
3498
|
var children = props.children,
|
|
3561
3499
|
style = props.style,
|
|
3562
3500
|
textStyle = props.textStyle,
|
|
3563
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3501
|
+
elementProps = _objectWithoutProperties(props, _excluded$1f);
|
|
3564
3502
|
|
|
3565
|
-
var classes = getStyles(styles$
|
|
3566
|
-
var textClasses = getStyles(styles$
|
|
3503
|
+
var classes = getStyles(styles$11, ['blockquote']);
|
|
3504
|
+
var textClasses = getStyles(styles$11, ['blockquote-text']); // Accessiblity role blockquote is only supported on web.
|
|
3567
3505
|
|
|
3568
3506
|
var role = Platform.OS === 'web' ? 'blockquote' : null;
|
|
3569
3507
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
@@ -3574,30 +3512,30 @@ var Blockquote = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3574
3512
|
}), children);
|
|
3575
3513
|
});
|
|
3576
3514
|
Blockquote.displayName = 'Blockquote';
|
|
3577
|
-
Blockquote.propTypes = propTypes$
|
|
3515
|
+
Blockquote.propTypes = propTypes$1g;
|
|
3578
3516
|
|
|
3579
|
-
var _excluded$
|
|
3517
|
+
var _excluded$1e = ["children", "style", "textStyle"];
|
|
3580
3518
|
|
|
3581
|
-
var _templateObject$
|
|
3582
|
-
var propTypes$
|
|
3519
|
+
var _templateObject$11, _templateObject2$M;
|
|
3520
|
+
var propTypes$1f = {
|
|
3583
3521
|
children: PropTypes.node.isRequired,
|
|
3584
3522
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3585
3523
|
style: PropTypes.any,
|
|
3586
3524
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3587
3525
|
textStyle: PropTypes.any
|
|
3588
3526
|
};
|
|
3589
|
-
var styles
|
|
3590
|
-
body: css(_templateObject$
|
|
3591
|
-
'body-text': css(_templateObject2$
|
|
3527
|
+
var styles$10 = StyleSheet.create({
|
|
3528
|
+
body: css(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n height: 100%; // added for bootstrap-rn\n "]))),
|
|
3529
|
+
'body-text': css(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteral(["\n color: $body-color;\n text-align: $body-text-align;\n "])))
|
|
3592
3530
|
});
|
|
3593
3531
|
var Body = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3594
3532
|
var children = props.children,
|
|
3595
3533
|
style = props.style,
|
|
3596
3534
|
textStyle = props.textStyle,
|
|
3597
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3535
|
+
elementProps = _objectWithoutProperties(props, _excluded$1e);
|
|
3598
3536
|
|
|
3599
|
-
var classes = getStyles(styles
|
|
3600
|
-
var textClasses = getStyles(styles
|
|
3537
|
+
var classes = getStyles(styles$10, ['body']);
|
|
3538
|
+
var textClasses = getStyles(styles$10, ['body-text']);
|
|
3601
3539
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3602
3540
|
ref: ref,
|
|
3603
3541
|
style: [classes, style],
|
|
@@ -3605,30 +3543,30 @@ var Body = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3605
3543
|
}), children);
|
|
3606
3544
|
});
|
|
3607
3545
|
Body.displayName = 'Body';
|
|
3608
|
-
Body.propTypes = propTypes$
|
|
3546
|
+
Body.propTypes = propTypes$1f;
|
|
3609
3547
|
|
|
3610
|
-
var _excluded$
|
|
3548
|
+
var _excluded$1d = ["children", "style", "textStyle"];
|
|
3611
3549
|
|
|
3612
|
-
var _templateObject
|
|
3613
|
-
var propTypes$
|
|
3550
|
+
var _templateObject$10, _templateObject2$L;
|
|
3551
|
+
var propTypes$1e = {
|
|
3614
3552
|
children: PropTypes.node.isRequired,
|
|
3615
3553
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3616
3554
|
style: PropTypes.any,
|
|
3617
3555
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3618
3556
|
textStyle: PropTypes.any
|
|
3619
3557
|
};
|
|
3620
|
-
var styles
|
|
3621
|
-
'.card-body': css(_templateObject
|
|
3622
|
-
'.card-body-text': css(_templateObject2$
|
|
3558
|
+
var styles$$ = StyleSheet.create({
|
|
3559
|
+
'.card-body': css(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteral(["\n // flex: 1 1 auto;\n padding: $card-spacer-y $card-spacer-x;\n "]))),
|
|
3560
|
+
'.card-body-text': css(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteral(["\n color: $card-color;\n "])))
|
|
3623
3561
|
});
|
|
3624
3562
|
var CardBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3625
3563
|
var children = props.children,
|
|
3626
3564
|
style = props.style,
|
|
3627
3565
|
textStyle = props.textStyle,
|
|
3628
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3566
|
+
elementProps = _objectWithoutProperties(props, _excluded$1d);
|
|
3629
3567
|
|
|
3630
|
-
var classes = getStyles(styles
|
|
3631
|
-
var textClasses = getStyles(styles
|
|
3568
|
+
var classes = getStyles(styles$$, ['.card-body']);
|
|
3569
|
+
var textClasses = getStyles(styles$$, [".card-body-text"]);
|
|
3632
3570
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3633
3571
|
ref: ref,
|
|
3634
3572
|
style: [classes, style],
|
|
@@ -3636,30 +3574,30 @@ var CardBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3636
3574
|
}), children);
|
|
3637
3575
|
});
|
|
3638
3576
|
CardBody.displayName = 'CardBody';
|
|
3639
|
-
CardBody.propTypes = propTypes$
|
|
3577
|
+
CardBody.propTypes = propTypes$1e;
|
|
3640
3578
|
|
|
3641
|
-
var _excluded$
|
|
3579
|
+
var _excluded$1c = ["children", "style", "textStyle"];
|
|
3642
3580
|
|
|
3643
|
-
var _templateObject
|
|
3644
|
-
var propTypes$
|
|
3581
|
+
var _templateObject$$, _templateObject2$K;
|
|
3582
|
+
var propTypes$1d = {
|
|
3645
3583
|
children: PropTypes.node.isRequired,
|
|
3646
3584
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3647
3585
|
style: PropTypes.any,
|
|
3648
3586
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3649
3587
|
textStyle: PropTypes.any
|
|
3650
3588
|
};
|
|
3651
|
-
var styles$
|
|
3652
|
-
'.card-header': css(_templateObject
|
|
3653
|
-
'.card-header-text': css(_templateObject2$
|
|
3589
|
+
var styles$_ = StyleSheet.create({
|
|
3590
|
+
'.card-header': css(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteral(["\n padding: $card-cap-padding-y $card-cap-padding-x;\n margin-bottom: 0; // Removes the default margin-bottom of <hN>\n background-color: $card-cap-bg;\n border-bottom-width: $card-border-width;\n border-style: solid;\n border-color: $card-border-color;\n border-radius: $card-inner-border-radius $card-inner-border-radius 0 0;\n "]))),
|
|
3591
|
+
'.card-header-text': css(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteral(["\n color: $card-cap-color;\n "])))
|
|
3654
3592
|
});
|
|
3655
3593
|
var CardHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3656
3594
|
var children = props.children,
|
|
3657
3595
|
style = props.style,
|
|
3658
3596
|
textStyle = props.textStyle,
|
|
3659
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3597
|
+
elementProps = _objectWithoutProperties(props, _excluded$1c);
|
|
3660
3598
|
|
|
3661
|
-
var classes = getStyles(styles$
|
|
3662
|
-
var textClasses = getStyles(styles$
|
|
3599
|
+
var classes = getStyles(styles$_, ['.card-header']);
|
|
3600
|
+
var textClasses = getStyles(styles$_, ['.card-header-text']);
|
|
3663
3601
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3664
3602
|
ref: ref,
|
|
3665
3603
|
style: [classes, style],
|
|
@@ -3667,30 +3605,30 @@ var CardHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3667
3605
|
}), children);
|
|
3668
3606
|
});
|
|
3669
3607
|
CardHeader.displayName = 'CardHeader';
|
|
3670
|
-
CardHeader.propTypes = propTypes$
|
|
3608
|
+
CardHeader.propTypes = propTypes$1d;
|
|
3671
3609
|
|
|
3672
|
-
var _excluded$
|
|
3610
|
+
var _excluded$1b = ["children", "style", "textStyle"];
|
|
3673
3611
|
|
|
3674
|
-
var _templateObject$
|
|
3675
|
-
var propTypes$
|
|
3612
|
+
var _templateObject$_, _templateObject2$J;
|
|
3613
|
+
var propTypes$1c = {
|
|
3676
3614
|
children: PropTypes.node.isRequired,
|
|
3677
3615
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3678
3616
|
style: PropTypes.any,
|
|
3679
3617
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3680
3618
|
textStyle: PropTypes.any
|
|
3681
3619
|
};
|
|
3682
|
-
var styles$
|
|
3683
|
-
'.card-footer': css(_templateObject$
|
|
3684
|
-
'.card-footer-text': css(_templateObject2$
|
|
3620
|
+
var styles$Z = StyleSheet.create({
|
|
3621
|
+
'.card-footer': css(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteral(["\n padding: $card-cap-padding-y $card-cap-padding-x;\n background-color: $card-cap-bg;\n border-top-width: $card-border-width;\n border-style: solid;\n border-color: $card-border-color;\n border-radius: 0 0 $card-inner-border-radius $card-inner-border-radius;\n "]))),
|
|
3622
|
+
'.card-footer-text': css(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteral(["\n color: $card-cap-color;\n "])))
|
|
3685
3623
|
});
|
|
3686
3624
|
var CardFooter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3687
3625
|
var children = props.children,
|
|
3688
3626
|
style = props.style,
|
|
3689
3627
|
textStyle = props.textStyle,
|
|
3690
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3628
|
+
elementProps = _objectWithoutProperties(props, _excluded$1b);
|
|
3691
3629
|
|
|
3692
|
-
var classes = getStyles(styles$
|
|
3693
|
-
var textClasses = getStyles(styles$
|
|
3630
|
+
var classes = getStyles(styles$Z, ['.card-footer']);
|
|
3631
|
+
var textClasses = getStyles(styles$Z, ['.card-footer-text']);
|
|
3694
3632
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3695
3633
|
ref: ref,
|
|
3696
3634
|
style: [classes, style],
|
|
@@ -3698,40 +3636,46 @@ var CardFooter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3698
3636
|
}), children);
|
|
3699
3637
|
});
|
|
3700
3638
|
CardFooter.displayName = 'CardFooter';
|
|
3701
|
-
CardFooter.propTypes = propTypes$
|
|
3639
|
+
CardFooter.propTypes = propTypes$1c;
|
|
3702
3640
|
|
|
3703
|
-
var _excluded$
|
|
3641
|
+
var _excluded$1a = ["children", "style"];
|
|
3704
3642
|
|
|
3705
|
-
var _templateObject$
|
|
3706
|
-
var propTypes$
|
|
3643
|
+
var _templateObject$Z;
|
|
3644
|
+
var propTypes$1b = {
|
|
3707
3645
|
children: PropTypes.node.isRequired,
|
|
3708
3646
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3709
3647
|
style: PropTypes.any
|
|
3710
3648
|
};
|
|
3711
|
-
var styles$
|
|
3712
|
-
'.card': css(_templateObject$
|
|
3649
|
+
var styles$Y = StyleSheet.create({
|
|
3650
|
+
'.card': css(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n height: $card-height;\n // word-wrap: break-word;\n background-color: $card-bg;\n // background-clip: border-box;\n border: $card-border-width solid $card-border-color;\n border-radius: $card-border-radius;\n // @include box-shadow($card-box-shadow);\n "])))
|
|
3713
3651
|
});
|
|
3714
3652
|
var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3715
3653
|
var children = props.children,
|
|
3716
3654
|
style = props.style,
|
|
3717
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3655
|
+
elementProps = _objectWithoutProperties(props, _excluded$1a);
|
|
3718
3656
|
|
|
3719
|
-
var classes = getStyles(styles$
|
|
3657
|
+
var classes = getStyles(styles$Y, ['.card']);
|
|
3720
3658
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3721
3659
|
ref: ref,
|
|
3722
3660
|
style: [classes, style]
|
|
3723
3661
|
}), children);
|
|
3724
3662
|
});
|
|
3725
3663
|
Card.displayName = 'Card';
|
|
3726
|
-
Card.propTypes = propTypes$
|
|
3664
|
+
Card.propTypes = propTypes$1b;
|
|
3727
3665
|
Card.Header = CardHeader;
|
|
3728
3666
|
Card.Body = CardBody;
|
|
3729
3667
|
Card.Footer = CardFooter;
|
|
3730
3668
|
|
|
3731
|
-
var
|
|
3669
|
+
var ModalContext = /*#__PURE__*/React.createContext();
|
|
3670
|
+
ModalContext.displayName = 'ModalContext';
|
|
3732
3671
|
|
|
3733
|
-
var
|
|
3734
|
-
|
|
3672
|
+
var OffcanvasContext = /*#__PURE__*/React.createContext();
|
|
3673
|
+
OffcanvasContext.displayName = 'OffcanvasContext';
|
|
3674
|
+
|
|
3675
|
+
var _excluded$19 = ["children", "disabled", "style", "textStyle"];
|
|
3676
|
+
|
|
3677
|
+
var _templateObject$Y, _templateObject2$I, _templateObject3$n, _templateObject4$l, _templateObject5$j;
|
|
3678
|
+
var propTypes$1a = {
|
|
3735
3679
|
children: PropTypes.node,
|
|
3736
3680
|
disabled: PropTypes.bool,
|
|
3737
3681
|
// eslint-disable-next-line react/forbid-prop-types
|
|
@@ -3739,10 +3683,14 @@ var propTypes$19 = {
|
|
|
3739
3683
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3740
3684
|
textStyle: PropTypes.any
|
|
3741
3685
|
};
|
|
3742
|
-
var styles$
|
|
3743
|
-
'.btn-close': css(_templateObject$
|
|
3744
|
-
'.btn-close-text': css(_templateObject2$
|
|
3745
|
-
'.btn-close-disabled': css(_templateObject3$
|
|
3686
|
+
var styles$X = StyleSheet.create({
|
|
3687
|
+
'.btn-close': css(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteral(["\n // Workaround for missing box-sizing in react native.\n $additional-width: $btn-close-padding-x * 2;\n $additional-height: $btn-close-padding-y * 2;\n\n // box-sizing: content-box;\n width: $btn-close-width + $additional-width;\n height: $btn-close-height + $additional-height;\n padding: $btn-close-padding-y $btn-close-padding-x;\n background: transparent;\n border-width: 0; // for button elements\n // @include border-radius();\n opacity: $btn-close-opacity;\n\n &:hover {\n opacity: $btn-close-hover-opacity;\n }\n\n &:focus {\n // outline: 0;\n // box-shadow: $btn-close-focus-shadow;\n opacity: $btn-close-focus-opacity;\n }\n "]))),
|
|
3688
|
+
'.btn-close-text': css(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteral(["\n color: $btn-close-color;\n\n // Override <a>'s hover style\n &:hover {\n color: $btn-close-color;\n text-decoration: none;\n }\n "]))),
|
|
3689
|
+
'.btn-close-disabled': css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteral(["\n // pointer-events: none;\n // user-select: none;\n opacity: $btn-close-disabled-opacity;\n "]))),
|
|
3690
|
+
// Modal styles
|
|
3691
|
+
'.modal-header .btn-close': css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteral(["\n padding: $modal-header-padding-y * 0.5 $modal-header-padding-x * 0.5;\n margin: -0.5 * $modal-header-padding-y -0.5 * $modal-header-padding-x -0.5 *\n $modal-header-padding-y auto;\n\n // Workaround for missing box-sizing in react native.\n width: $btn-close-width + $modal-header-padding-x;\n height: $btn-close-height + $modal-header-padding-y;\n "]))),
|
|
3692
|
+
// Offcanvas styles
|
|
3693
|
+
'.offcanvas-header .btn-close': css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteral(["\n padding: $offcanvas-padding-y * 0.5 $offcanvas-padding-x * 0.5;\n margin-top: -0.5 * $offcanvas-padding-y;\n margin-right: -0.5 * $offcanvas-padding-x;\n margin-bottom: -0.5 * $offcanvas-padding-y;\n\n // Workaround for missing box-sizing in react native.\n width: $btn-close-width + $offcanvas-padding-x;\n height: $btn-close-height + $offcanvas-padding-y;\n "])))
|
|
3746
3694
|
});
|
|
3747
3695
|
var CloseButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3748
3696
|
props.children;
|
|
@@ -3750,10 +3698,14 @@ var CloseButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3750
3698
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3751
3699
|
style = props.style,
|
|
3752
3700
|
textStyle = props.textStyle,
|
|
3753
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3701
|
+
elementProps = _objectWithoutProperties(props, _excluded$19);
|
|
3754
3702
|
|
|
3755
|
-
var
|
|
3756
|
-
var
|
|
3703
|
+
var modal = useContext(ModalContext);
|
|
3704
|
+
var offcanvas = useContext(OffcanvasContext);
|
|
3705
|
+
var classes = getStyles(styles$X, ['.btn-close', disabled && '.btn-close-disabled', // Modal styles
|
|
3706
|
+
modal && '.modal-header .btn-close', // Offcanvas styles
|
|
3707
|
+
offcanvas && '.offcanvas-header .btn-close']);
|
|
3708
|
+
var textClasses = getStyles(styles$X, ['.btn-close-text']);
|
|
3757
3709
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
3758
3710
|
ref: ref,
|
|
3759
3711
|
disabled: disabled,
|
|
@@ -3762,7 +3714,7 @@ var CloseButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3762
3714
|
}), StyleSheet.value('btn-close-bg'));
|
|
3763
3715
|
});
|
|
3764
3716
|
CloseButton.displayName = 'CloseButton';
|
|
3765
|
-
CloseButton.propTypes = propTypes$
|
|
3717
|
+
CloseButton.propTypes = propTypes$1a;
|
|
3766
3718
|
|
|
3767
3719
|
var CollapseContext = /*#__PURE__*/React.createContext();
|
|
3768
3720
|
CollapseContext.displayName = 'CollapseContext';
|
|
@@ -3821,7 +3773,7 @@ function useCollapse(defaultVisible, controlledVisible, onToggle) {
|
|
|
3821
3773
|
}, [visible]);
|
|
3822
3774
|
}
|
|
3823
3775
|
|
|
3824
|
-
var propTypes$
|
|
3776
|
+
var propTypes$19 = {
|
|
3825
3777
|
children: PropTypes.node.isRequired,
|
|
3826
3778
|
defaultVisible: PropTypes.bool,
|
|
3827
3779
|
visible: PropTypes.bool,
|
|
@@ -3841,14 +3793,14 @@ var CollapseProvider = function CollapseProvider(props) {
|
|
|
3841
3793
|
};
|
|
3842
3794
|
|
|
3843
3795
|
CollapseProvider.displayName = 'CollapseProvider';
|
|
3844
|
-
CollapseProvider.propTypes = propTypes$
|
|
3796
|
+
CollapseProvider.propTypes = propTypes$19;
|
|
3845
3797
|
|
|
3846
|
-
var _excluded$
|
|
3798
|
+
var _excluded$18 = ["onPress"];
|
|
3847
3799
|
function useToggleCollapse(props) {
|
|
3848
3800
|
var context = useForcedContext(CollapseContext);
|
|
3849
3801
|
|
|
3850
3802
|
var handlePress = props.onPress,
|
|
3851
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
3803
|
+
restProps = _objectWithoutProperties(props, _excluded$18);
|
|
3852
3804
|
|
|
3853
3805
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
3854
3806
|
onPress: function onPress(event) {
|
|
@@ -3862,13 +3814,13 @@ function useToggleCollapse(props) {
|
|
|
3862
3814
|
});
|
|
3863
3815
|
}
|
|
3864
3816
|
|
|
3865
|
-
var _excluded$
|
|
3866
|
-
var propTypes$
|
|
3817
|
+
var _excluded$17 = ["children"];
|
|
3818
|
+
var propTypes$18 = {
|
|
3867
3819
|
children: PropTypes.node
|
|
3868
3820
|
};
|
|
3869
3821
|
var Collapse = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3870
3822
|
var children = props.children,
|
|
3871
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3823
|
+
elementProps = _objectWithoutProperties(props, _excluded$17);
|
|
3872
3824
|
|
|
3873
3825
|
var _useForcedContext = useForcedContext(CollapseContext),
|
|
3874
3826
|
identifier = _useForcedContext.identifier,
|
|
@@ -3884,7 +3836,7 @@ var Collapse = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3884
3836
|
}), children);
|
|
3885
3837
|
});
|
|
3886
3838
|
Collapse.displayName = 'Collapse';
|
|
3887
|
-
Collapse.propTypes = propTypes$
|
|
3839
|
+
Collapse.propTypes = propTypes$18;
|
|
3888
3840
|
Collapse.Provider = CollapseProvider;
|
|
3889
3841
|
Collapse.useToggle = useToggleCollapse;
|
|
3890
3842
|
|
|
@@ -3909,18 +3861,18 @@ function infix(breakpoint) {
|
|
|
3909
3861
|
var NavbarContext = /*#__PURE__*/React.createContext();
|
|
3910
3862
|
NavbarContext.displayName = 'NavbarContext';
|
|
3911
3863
|
|
|
3912
|
-
var _excluded$
|
|
3864
|
+
var _excluded$16 = ["fluid", "style"];
|
|
3913
3865
|
|
|
3914
|
-
var _templateObject$
|
|
3915
|
-
var propTypes$
|
|
3866
|
+
var _templateObject$X, _templateObject2$H, _templateObject3$m, _templateObject4$k, _templateObject5$i, _templateObject6$f, _templateObject7$b, _templateObject8$a;
|
|
3867
|
+
var propTypes$17 = {
|
|
3916
3868
|
children: PropTypes.node.isRequired,
|
|
3917
3869
|
fluid: PropTypes.oneOf([true].concat(_toConsumableArray(Object.keys(CONTAINER_MAX_WIDTHS)))),
|
|
3918
3870
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3919
3871
|
style: PropTypes.any
|
|
3920
3872
|
};
|
|
3921
|
-
var styles$
|
|
3922
|
-
'.container': css(_templateObject$
|
|
3923
|
-
'.container-sm': css(_templateObject2$
|
|
3873
|
+
var styles$W = StyleSheet.create(_objectSpread2({
|
|
3874
|
+
'.container': css(_templateObject$X || (_templateObject$X = _taggedTemplateLiteral(["\n width: 100%;\n padding-right: $container-padding-x;\n padding-left: $container-padding-x;\n margin-right: auto;\n margin-left: auto;\n "]))),
|
|
3875
|
+
'.container-sm': css(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteral(["\n @include media-breakpoint-up(sm) {\n max-width: ", ";\n }\n @include media-breakpoint-up(md) {\n max-width: ", ";\n }\n @include media-breakpoint-up(lg) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xl) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xxl) {\n max-width: ", ";\n }\n "])), function (t) {
|
|
3924
3876
|
return t['container-max-widths'].sm;
|
|
3925
3877
|
}, function (t) {
|
|
3926
3878
|
return t['container-max-widths'].md;
|
|
@@ -3931,7 +3883,7 @@ var styles$V = StyleSheet.create(_objectSpread2({
|
|
|
3931
3883
|
}, function (t) {
|
|
3932
3884
|
return t['container-max-widths'].xxl;
|
|
3933
3885
|
}),
|
|
3934
|
-
'.container-md': css(_templateObject3$
|
|
3886
|
+
'.container-md': css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteral(["\n @include media-breakpoint-up(md) {\n max-width: ", ";\n }\n @include media-breakpoint-up(lg) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xl) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xxl) {\n max-width: ", ";\n }\n "])), function (t) {
|
|
3935
3887
|
return t['container-max-widths'].md;
|
|
3936
3888
|
}, function (t) {
|
|
3937
3889
|
return t['container-max-widths'].lg;
|
|
@@ -3940,14 +3892,14 @@ var styles$V = StyleSheet.create(_objectSpread2({
|
|
|
3940
3892
|
}, function (t) {
|
|
3941
3893
|
return t['container-max-widths'].xxl;
|
|
3942
3894
|
}),
|
|
3943
|
-
'.container-lg': css(_templateObject4$
|
|
3895
|
+
'.container-lg': css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteral(["\n @include media-breakpoint-up(lg) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xl) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xxl) {\n max-width: ", ";\n }\n "])), function (t) {
|
|
3944
3896
|
return t['container-max-widths'].lg;
|
|
3945
3897
|
}, function (t) {
|
|
3946
3898
|
return t['container-max-widths'].xl;
|
|
3947
3899
|
}, function (t) {
|
|
3948
3900
|
return t['container-max-widths'].xxl;
|
|
3949
3901
|
}),
|
|
3950
|
-
'.container-xl': css(_templateObject5$
|
|
3902
|
+
'.container-xl': css(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteral(["\n @include media-breakpoint-up(xl) {\n max-width: ", ";\n }\n @include media-breakpoint-up(xxl) {\n max-width: ", ";\n }\n "])), function (t) {
|
|
3951
3903
|
return t['container-max-widths'].xl;
|
|
3952
3904
|
}, function (t) {
|
|
3953
3905
|
return t['container-max-widths'].xxl;
|
|
@@ -3964,10 +3916,10 @@ var Container = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3964
3916
|
var _props$fluid = props.fluid,
|
|
3965
3917
|
fluid = _props$fluid === void 0 ? 'sm' : _props$fluid,
|
|
3966
3918
|
style = props.style,
|
|
3967
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
3919
|
+
elementProps = _objectWithoutProperties(props, _excluded$16);
|
|
3968
3920
|
|
|
3969
3921
|
var navbar = useContext(NavbarContext);
|
|
3970
|
-
var classes = getStyles(styles$
|
|
3922
|
+
var classes = getStyles(styles$W, ['.container', // Hint: Bootstrap's .container class is identical with .container-sm.
|
|
3971
3923
|
fluid !== true && ".container-".concat(fluid), // Navbar styles
|
|
3972
3924
|
navbar && '.navbar .container', navbar && navbar.expand && ".navbar-expand".concat(navbar.expand === true ? '' : "-".concat(navbar.expand), " .container")]);
|
|
3973
3925
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
@@ -3976,12 +3928,12 @@ var Container = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3976
3928
|
}));
|
|
3977
3929
|
});
|
|
3978
3930
|
Container.displayName = 'Container';
|
|
3979
|
-
Container.propTypes = propTypes$
|
|
3931
|
+
Container.propTypes = propTypes$17;
|
|
3980
3932
|
|
|
3981
|
-
var _excluded$
|
|
3933
|
+
var _excluded$15 = ["children", "type", "value", "onChange", "onPress", "label", "disabled", "valid", "invalid", "style", "inputStyle", "labelStyle", "labelTextStyle"];
|
|
3982
3934
|
|
|
3983
|
-
var _templateObject$
|
|
3984
|
-
var propTypes$
|
|
3935
|
+
var _templateObject$W, _templateObject2$G, _templateObject3$l, _templateObject4$j, _templateObject5$h, _templateObject6$e, _templateObject7$a, _templateObject8$9, _templateObject9$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4;
|
|
3936
|
+
var propTypes$16 = {
|
|
3985
3937
|
children: PropTypes.node,
|
|
3986
3938
|
type: PropTypes.oneOf(['checkbox', 'radio', 'switch']).isRequired,
|
|
3987
3939
|
value: PropTypes.bool.isRequired,
|
|
@@ -3996,27 +3948,29 @@ var propTypes$15 = {
|
|
|
3996
3948
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3997
3949
|
inputStyle: PropTypes.any,
|
|
3998
3950
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3999
|
-
labelStyle: PropTypes.any
|
|
3951
|
+
labelStyle: PropTypes.any,
|
|
3952
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
3953
|
+
labelTextStyle: PropTypes.any
|
|
4000
3954
|
};
|
|
4001
|
-
var styles$
|
|
4002
|
-
'.form-check': css(_templateObject$
|
|
4003
|
-
'.form-check-disabled': css(_templateObject2$
|
|
4004
|
-
'.form-check-input': css(_templateObject3$
|
|
4005
|
-
'.form-check-input-checkbox': css(_templateObject4$
|
|
4006
|
-
'.form-check-input-radio': css(_templateObject5$
|
|
3955
|
+
var styles$V = StyleSheet.create(_objectSpread2({
|
|
3956
|
+
'.form-check': css(_templateObject$W || (_templateObject$W = _taggedTemplateLiteral(["\n // display: block;\n flex-direction: row; // added for bootstrap-rn\n min-height: $form-check-min-height;\n padding-left: $form-check-padding-start;\n margin-bottom: $form-check-margin-bottom;\n "]))),
|
|
3957
|
+
'.form-check-disabled': css(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteral(["\n opacity: $form-check-label-disabled-opacity;\n "]))),
|
|
3958
|
+
'.form-check-input': css(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteral(["\n // Use additional variables instead of brackets, because brackets not supported yet.\n $lineHeight: $line-height-base * 1rem;\n $rawMarginTop: $lineHeight - $form-check-input-width;\n\n // float: left;\n margin-left: $form-check-padding-start * -1;\n margin-right: $form-check-padding-start - $form-check-input-width; // added for bootstrap-rn\n\n width: $form-check-input-width;\n height: $form-check-input-width;\n margin-top: $rawMarginTop * 0.5; // line-height minus check height\n // vertical-align: top;\n background-color: $form-check-input-bg;\n // background-repeat: no-repeat;\n // background-position: center;\n // background-size: contain;\n border: $form-check-input-border;\n @include platform(web) {\n appearance: none;\n user-select: none; // added for bootstrap-rn\n }\n // color-adjust: exact; // Keep themed appearance for print\n // @include transition($form-check-transition);\n\n &:active {\n // filter: $form-check-input-active-filter;\n }\n\n &:focus {\n border-color: $form-check-input-focus-border;\n // outline: 0;\n // box-shadow: $form-check-input-focus-box-shadow;\n }\n "]))),
|
|
3959
|
+
'.form-check-input-checkbox': css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteral(["\n border-radius: $form-check-input-border-radius;\n "]))),
|
|
3960
|
+
'.form-check-input-radio': css(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteral(["\n border-radius: $form-check-radio-border-radius;\n "]))),
|
|
4007
3961
|
'.form-check-input-checked': css(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteral(["\n background-color: $form-check-input-checked-bg-color;\n border-color: $form-check-input-checked-border-color;\n "]))),
|
|
4008
3962
|
'.form-check-label': css(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteral(["\n color: $form-check-label-color;\n @include platform(web) {\n cursor: $form-check-label-cursor;\n }\n "]))),
|
|
4009
3963
|
'.form-switch': css(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteral(["\n padding-left: $form-switch-padding-start;\n "]))),
|
|
4010
|
-
'.form-check-input-switch': css(_templateObject9$
|
|
4011
|
-
'.form-check-input-switch-checked': css(_templateObject10$
|
|
3964
|
+
'.form-check-input-switch': css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteral(["\n width: $form-switch-width;\n margin-left: $form-switch-padding-start * -1;\n margin-right: $form-switch-padding-start - $form-switch-width; // added for bootstrap-rn\n border-radius: $form-switch-border-radius;\n // @include transition($form-switch-transition);\n align-items: flex-start; // added for bootstrap-rn\n justify-content: center; // added for bootstrap-rn\n "]))),
|
|
3965
|
+
'.form-check-input-switch-checked': css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteral(["\n align-items: flex-end; // added for bootstrap-rn\n justify-content: center; // added for bootstrap-rn\n "])))
|
|
4012
3966
|
}, each(FORM_VALIDATION_STATES, function (state, data) {
|
|
4013
3967
|
var _ref;
|
|
4014
3968
|
|
|
4015
|
-
return _ref = {}, _defineProperty(_ref, ".form-check-input.is-".concat(state), css(_templateObject11$
|
|
3969
|
+
return _ref = {}, _defineProperty(_ref, ".form-check-input.is-".concat(state), css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteral(["\n border: ", ";\n\n &:focus {\n // box-shadow: $focus-box-shadow;\n }\n "])), function (t) {
|
|
4016
3970
|
return data(t).color;
|
|
4017
|
-
})), _defineProperty(_ref, ".form-check-input-checked.is-".concat(state), css(_templateObject12$
|
|
3971
|
+
})), _defineProperty(_ref, ".form-check-input-checked.is-".concat(state), css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), function (t) {
|
|
4018
3972
|
return data(t).color;
|
|
4019
|
-
})), _defineProperty(_ref, ".form-check-label.is-".concat(state), css(_templateObject13$
|
|
3973
|
+
})), _defineProperty(_ref, ".form-check-label.is-".concat(state), css(_templateObject13$4 || (_templateObject13$4 = _taggedTemplateLiteral(["\n color: ", ";\n "])), function (t) {
|
|
4020
3974
|
return data(t).color;
|
|
4021
3975
|
})), _ref;
|
|
4022
3976
|
})));
|
|
@@ -4058,16 +4012,17 @@ var CheckInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4058
4012
|
style = modifierProps.style,
|
|
4059
4013
|
inputStyle = modifierProps.inputStyle,
|
|
4060
4014
|
labelStyle = modifierProps.labelStyle,
|
|
4061
|
-
|
|
4015
|
+
labelTextStyle = modifierProps.labelTextStyle,
|
|
4016
|
+
elementProps = _objectWithoutProperties(modifierProps, _excluded$15);
|
|
4062
4017
|
|
|
4063
4018
|
if (!children && !label) {
|
|
4064
4019
|
// eslint-disable-next-line no-console
|
|
4065
4020
|
console.warn('You need to provide either children or a label for accessibility.');
|
|
4066
4021
|
}
|
|
4067
4022
|
|
|
4068
|
-
var classes = getStyles(styles$
|
|
4069
|
-
var inputClasses = getStyles(styles$
|
|
4070
|
-
var
|
|
4023
|
+
var classes = getStyles(styles$V, ['.form-check', type === 'switch' && '.form-switch', disabled && '.form-check-disabled']);
|
|
4024
|
+
var inputClasses = getStyles(styles$V, ['.form-check-input', type === 'checkbox' && '.form-check-input-checkbox', type === 'radio' && '.form-check-input-radio', type === 'switch' && '.form-check-input-switch', value && '.form-check-input-checked', type === 'switch' && value && '.form-check-input-switch-checked', valid && '.form-check-input.is-valid', valid && value && '.form-check-input-checked.is-valid', invalid && '.form-check-input.is-invalid', invalid && value && '.form-check-input-checked.is-invalid']);
|
|
4025
|
+
var labelTextClasses = getStyles(styles$V, ['.form-check-label', valid && '.form-check-label.is-valid', invalid && '.form-check-label.is-invalid']); // TODO &:focus, &:active
|
|
4071
4026
|
|
|
4072
4027
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
4073
4028
|
ref: modifierRef,
|
|
@@ -4081,12 +4036,13 @@ var CheckInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4081
4036
|
style: [classes, style]
|
|
4082
4037
|
}), /*#__PURE__*/React.createElement(View, {
|
|
4083
4038
|
style: [inputClasses, inputStyle]
|
|
4084
|
-
}, getSvg(type, value)), children && /*#__PURE__*/React.createElement(
|
|
4085
|
-
style:
|
|
4039
|
+
}, getSvg(type, value)), children && /*#__PURE__*/React.createElement(View, {
|
|
4040
|
+
style: labelStyle,
|
|
4041
|
+
textStyle: [labelTextClasses, labelTextStyle]
|
|
4086
4042
|
}, children));
|
|
4087
4043
|
});
|
|
4088
4044
|
CheckInput.displayName = 'CheckInput';
|
|
4089
|
-
CheckInput.propTypes = propTypes$
|
|
4045
|
+
CheckInput.propTypes = propTypes$16;
|
|
4090
4046
|
|
|
4091
4047
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4092
4048
|
var elementProps = _extends({}, props);
|
|
@@ -4098,13 +4054,13 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4098
4054
|
});
|
|
4099
4055
|
Checkbox.displayName = 'Checkbox';
|
|
4100
4056
|
|
|
4101
|
-
var _excluded$
|
|
4057
|
+
var _excluded$14 = ["children", "size", "sizeSm", "sizeMd", "sizeLg", "sizeXl", "style"];
|
|
4102
4058
|
|
|
4103
|
-
var _templateObject$
|
|
4059
|
+
var _templateObject$V, _templateObject2$F, _templateObject3$k, _templateObject4$i, _templateObject5$g;
|
|
4104
4060
|
var sizes = makeArray(GRID_COLUMNS).map(function (v) {
|
|
4105
4061
|
return v + 1;
|
|
4106
4062
|
});
|
|
4107
|
-
var propTypes$
|
|
4063
|
+
var propTypes$15 = {
|
|
4108
4064
|
children: PropTypes.node.isRequired,
|
|
4109
4065
|
size: PropTypes.oneOf(['auto'].concat(_toConsumableArray(sizes))),
|
|
4110
4066
|
sizeSm: PropTypes.oneOf(['auto'].concat(_toConsumableArray(sizes))),
|
|
@@ -4114,15 +4070,15 @@ var propTypes$14 = {
|
|
|
4114
4070
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4115
4071
|
style: PropTypes.any
|
|
4116
4072
|
};
|
|
4117
|
-
var styles$
|
|
4118
|
-
'*': css(_templateObject$
|
|
4073
|
+
var styles$U = StyleSheet.create(_objectSpread2({
|
|
4074
|
+
'*': css(_templateObject$V || (_templateObject$V = _taggedTemplateLiteral(["\n // Add box sizing if only the grid is loaded\n /* box-sizing: if(\n variable-exists(include-column-box-sizing) and $include-column-box-sizing,\n border-box,\n null\n ); */\n // Prevent columns from becoming too narrow when at smaller grid tiers by\n // always setting \"width: 100%;\". This works because we set the width\n // later on to override this initial width.\n flex-shrink: 0;\n width: 100%;\n @include platform(web) {\n max-width: 100%; // Prevent \".col-auto\", \".col\" (& responsive variants) from breaking out the grid\n }\n padding-right: $grid-gutter-width * 0.5;\n padding-left: $grid-gutter-width * 0.5;\n margin-top: 0;\n "])))
|
|
4119
4075
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
4120
4076
|
var _objectSpread2$1;
|
|
4121
4077
|
|
|
4122
|
-
return _objectSpread2((_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, ".col".concat(infix(breakpoint)), css(_templateObject2$
|
|
4078
|
+
return _objectSpread2((_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, ".col".concat(infix(breakpoint)), css(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4\n }\n "])), breakpoint)), _defineProperty(_objectSpread2$1, ".col".concat(infix(breakpoint), "-auto"), css(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n flex: 0 0 auto;\n width: auto;\n }\n "])), breakpoint)), _objectSpread2$1), normalize$1(makeArray(GRID_COLUMNS - 1, function (i) {
|
|
4123
4079
|
var _ref;
|
|
4124
4080
|
|
|
4125
|
-
return _ref = {}, _defineProperty(_ref, ".col".concat(infix(breakpoint), "-").concat(i + 1), css(_templateObject4$
|
|
4081
|
+
return _ref = {}, _defineProperty(_ref, ".col".concat(infix(breakpoint), "-").concat(i + 1), css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n flex: 0 0 auto;\n width: ", "%;\n }\n "])), breakpoint, (i + 1) / GRID_COLUMNS * 100)), _defineProperty(_ref, ".offset".concat(infix(breakpoint), "-").concat(i), css(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n margin-left: ", "%;\n }\n "])), breakpoint, i / GRID_COLUMNS * 100)), _ref;
|
|
4126
4082
|
})));
|
|
4127
4083
|
})));
|
|
4128
4084
|
var Col = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -4133,16 +4089,90 @@ var Col = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4133
4089
|
sizeLg = props.sizeLg,
|
|
4134
4090
|
sizeXl = props.sizeXl,
|
|
4135
4091
|
style = props.style,
|
|
4136
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
4092
|
+
elementProps = _objectWithoutProperties(props, _excluded$14);
|
|
4137
4093
|
|
|
4138
|
-
var classes = getStyles(styles$
|
|
4094
|
+
var classes = getStyles(styles$U, ['*', ".col-".concat(size.toString()), sizeSm && ".col-sm-".concat(sizeSm.toString()), sizeMd && ".col-md-".concat(sizeMd.toString()), sizeLg && ".col-lg-".concat(sizeLg.toString()), sizeXl && ".col-xl-".concat(sizeXl.toString())]);
|
|
4139
4095
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4140
4096
|
ref: ref,
|
|
4141
4097
|
style: [classes, style]
|
|
4142
4098
|
}), children);
|
|
4143
4099
|
});
|
|
4144
4100
|
Col.displayName = 'Col';
|
|
4145
|
-
Col.propTypes = propTypes$
|
|
4101
|
+
Col.propTypes = propTypes$15;
|
|
4102
|
+
|
|
4103
|
+
var _excluded$13 = ["color", "bold", "italic", "mark", "small", "style", "styleName"];
|
|
4104
|
+
|
|
4105
|
+
var _templateObject$U, _templateObject2$E, _templateObject3$j, _templateObject4$h, _templateObject5$f;
|
|
4106
|
+
var propTypes$14 = {
|
|
4107
|
+
color: PropTypes.oneOf([].concat(_toConsumableArray(Object.keys(THEME_COLORS)), ['muted', 'black-50', 'white-50'])),
|
|
4108
|
+
small: PropTypes.bool,
|
|
4109
|
+
mark: PropTypes.bool,
|
|
4110
|
+
bold: PropTypes.bool,
|
|
4111
|
+
italic: PropTypes.bool,
|
|
4112
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
4113
|
+
style: PropTypes.any,
|
|
4114
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
4115
|
+
styleName: PropTypes.any
|
|
4116
|
+
};
|
|
4117
|
+
var styles$T = StyleSheet.create({
|
|
4118
|
+
text: css(_templateObject$U || (_templateObject$U = _taggedTemplateLiteral(["\n font-family: $font-family-base;\n font-size: $font-size-base;\n font-weight: $font-weight-base;\n line-height: $font-size-base * $line-height-base;\n "]))),
|
|
4119
|
+
strong: css(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteral(["\n font-weight: $font-weight-bolder;\n "]))),
|
|
4120
|
+
italic: css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteral(["\n font-style: italic;\n "]))),
|
|
4121
|
+
small: css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteral(["\n font-size: $small-font-size;\n line-height: $small-font-size * $line-height-base;\n "]))),
|
|
4122
|
+
mark: css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteral(["\n padding: $mark-padding;\n background-color: $mark-bg;\n "])))
|
|
4123
|
+
});
|
|
4124
|
+
|
|
4125
|
+
var getStyleName = function getStyleName(styleName, color) {
|
|
4126
|
+
if (!color) {
|
|
4127
|
+
return styleName;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
return styleName ? "text-".concat(color, " ").concat(styleName) : "text-".concat(color);
|
|
4131
|
+
};
|
|
4132
|
+
|
|
4133
|
+
var Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4134
|
+
var color = props.color,
|
|
4135
|
+
_props$bold = props.bold,
|
|
4136
|
+
bold = _props$bold === void 0 ? false : _props$bold,
|
|
4137
|
+
_props$italic = props.italic,
|
|
4138
|
+
italic = _props$italic === void 0 ? false : _props$italic,
|
|
4139
|
+
_props$mark = props.mark,
|
|
4140
|
+
mark = _props$mark === void 0 ? false : _props$mark,
|
|
4141
|
+
_props$small = props.small,
|
|
4142
|
+
small = _props$small === void 0 ? false : _props$small,
|
|
4143
|
+
style = props.style,
|
|
4144
|
+
styleName = props.styleName,
|
|
4145
|
+
elementProps = _objectWithoutProperties(props, _excluded$13);
|
|
4146
|
+
|
|
4147
|
+
var media = useMedia();
|
|
4148
|
+
var context = useContext(TextStyleContext);
|
|
4149
|
+
var classes = getStyles(styles$T, [bold && 'strong', italic && 'italic', small && 'small', mark && 'mark']);
|
|
4150
|
+
var resolveStyle = useStyle([// eslint-disable-next-line react/destructuring-assignment
|
|
4151
|
+
(!context || !context.hasTextAncestor) && styles$T.text, // eslint-disable-next-line react/destructuring-assignment
|
|
4152
|
+
context && context.style, classes, style], getStyleName(styleName, color));
|
|
4153
|
+
var element = /*#__PURE__*/React.createElement(Text$1, _extends({}, elementProps, {
|
|
4154
|
+
ref: ref,
|
|
4155
|
+
style: resolveStyle({
|
|
4156
|
+
media: media
|
|
4157
|
+
})
|
|
4158
|
+
})); // eslint-disable-next-line react/destructuring-assignment
|
|
4159
|
+
|
|
4160
|
+
if (context && context.hasTextAncestor && !context.style) {
|
|
4161
|
+
return element;
|
|
4162
|
+
} // If we are not in an ancestor context yet, we need to set hasTextAncestor
|
|
4163
|
+
// to true for nested text components. Furthermore we need to reset the
|
|
4164
|
+
// context style, because we only need to apply the style once.
|
|
4165
|
+
|
|
4166
|
+
|
|
4167
|
+
return /*#__PURE__*/React.createElement(TextStyleContext.Provider, {
|
|
4168
|
+
value: {
|
|
4169
|
+
style: null,
|
|
4170
|
+
hasTextAncestor: true
|
|
4171
|
+
}
|
|
4172
|
+
}, element);
|
|
4173
|
+
});
|
|
4174
|
+
Text.displayName = 'Text';
|
|
4175
|
+
Text.propTypes = propTypes$14;
|
|
4146
4176
|
|
|
4147
4177
|
var _excluded$12 = ["children", "style"];
|
|
4148
4178
|
|
|
@@ -4248,6 +4278,11 @@ var Overlay = function Overlay(props) {
|
|
|
4248
4278
|
if (overlay.arrowProps.style.left) {
|
|
4249
4279
|
overlay.arrowProps.style.left -= arrowOffset;
|
|
4250
4280
|
}
|
|
4281
|
+
} // Adjust bottom value by status bar height on Android
|
|
4282
|
+
|
|
4283
|
+
|
|
4284
|
+
if (Platform.OS === 'android' && overlay.overlayProps.style.bottom !== undefined && StatusBar.currentHeight) {
|
|
4285
|
+
overlay.overlayProps.style.bottom -= StatusBar.currentHeight;
|
|
4251
4286
|
}
|
|
4252
4287
|
|
|
4253
4288
|
return children(overlay, overlayRef);
|
|
@@ -4362,7 +4397,7 @@ BackdropHandler.propTypes = propTypes$10;
|
|
|
4362
4397
|
|
|
4363
4398
|
var _excluded$10 = ["children", "start", "end", "style", "textStyle"];
|
|
4364
4399
|
|
|
4365
|
-
var _templateObject$R, _templateObject2$
|
|
4400
|
+
var _templateObject$R, _templateObject2$D, _templateObject3$i, _templateObject4$g, _templateObject5$e, _templateObject6$d, _templateObject7$9, _templateObject8$8, _templateObject9$6, _templateObject10$6;
|
|
4366
4401
|
var ALIGNMENT_BREAKPOINTS = [true, 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
4367
4402
|
var propTypes$$ = {
|
|
4368
4403
|
children: PropTypes.node.isRequired,
|
|
@@ -4375,7 +4410,7 @@ var propTypes$$ = {
|
|
|
4375
4410
|
};
|
|
4376
4411
|
var styles$Q = StyleSheet.create(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
4377
4412
|
'.dropdown-menu': css(_templateObject$R || (_templateObject$R = _taggedTemplateLiteral(["\n position: absolute;\n z-index: $zindex-dropdown;\n // display: none; // none by default, but block on \"open\" of the menu\n min-width: $dropdown-min-width;\n padding: $dropdown-padding-y $dropdown-padding-x;\n margin: 0; // Override default margin of ul\n // list-style: none;\n background-color: $dropdown-bg;\n // background-clip: padding-box;\n border: $dropdown-border-width solid $dropdown-border-color;\n border-radius: $dropdown-border-radius;\n // @include box-shadow($dropdown-box-shadow);\n "]))),
|
|
4378
|
-
'.dropdown-menu[data-bs-popper]': css(_templateObject2$
|
|
4413
|
+
'.dropdown-menu[data-bs-popper]': css(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteral(["\n top: 100%;\n left: 0;\n margin-top: $dropdown-spacer;\n "])))
|
|
4379
4414
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
4380
4415
|
var _ref;
|
|
4381
4416
|
|
|
@@ -4386,9 +4421,9 @@ var styles$Q = StyleSheet.create(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
|
4386
4421
|
'.dropstart .dropdown-menu[data-bs-popper]': css(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteral(["\n top: 0;\n right: 100%;\n left: auto;\n margin-top: 0;\n margin-right: $dropdown-spacer;\n "]))),
|
|
4387
4422
|
'.navbar-nav .dropdown-menu': css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteral(["\n position: relative; // static;\n "])))
|
|
4388
4423
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
4389
|
-
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .navbar-nav .dropdown-menu"), css(_templateObject9$
|
|
4424
|
+
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .navbar-nav .dropdown-menu"), css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n position: absolute;\n }\n "])), next(breakpoint)));
|
|
4390
4425
|
})), {}, {
|
|
4391
|
-
'.dropdown-menu-text': css(_templateObject10$
|
|
4426
|
+
'.dropdown-menu-text': css(_templateObject10$6 || (_templateObject10$6 = _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 "])))
|
|
4392
4427
|
}));
|
|
4393
4428
|
|
|
4394
4429
|
var getAlignment = function getAlignment(media, start, end) {
|
|
@@ -4497,7 +4532,7 @@ DropdownMenu.propTypes = propTypes$$;
|
|
|
4497
4532
|
|
|
4498
4533
|
var _excluded$$ = ["children", "size", "style"];
|
|
4499
4534
|
|
|
4500
|
-
var _templateObject$Q, _templateObject2$
|
|
4535
|
+
var _templateObject$Q, _templateObject2$C;
|
|
4501
4536
|
var propTypes$_ = {
|
|
4502
4537
|
children: PropTypes.node.isRequired,
|
|
4503
4538
|
size: PropTypes.oneOf(Object.keys(FONT_SIZES).map(function (k) {
|
|
@@ -4509,7 +4544,7 @@ var propTypes$_ = {
|
|
|
4509
4544
|
var styles$P = StyleSheet.create(_objectSpread2({
|
|
4510
4545
|
heading: css(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteral(["\n margin-top: 0; // 1\n margin-bottom: $headings-margin-bottom;\n font-family: $headings-font-family;\n font-style: $headings-font-style;\n font-weight: $headings-font-weight;\n color: $headings-color;\n "])))
|
|
4511
4546
|
}, each(FONT_SIZES, function (size, value) {
|
|
4512
|
-
return _defineProperty({}, ".h".concat(size), css(_templateObject2$
|
|
4547
|
+
return _defineProperty({}, ".h".concat(size), css(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteral(["\n font-size: ", ";\n line-height: ", " * $headings-line-height;\n "])), value, value));
|
|
4513
4548
|
})));
|
|
4514
4549
|
var Heading$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4515
4550
|
var children = props.children,
|
|
@@ -4528,35 +4563,43 @@ var Heading$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4528
4563
|
Heading$1.displayName = 'Heading';
|
|
4529
4564
|
Heading$1.propTypes = propTypes$_;
|
|
4530
4565
|
|
|
4531
|
-
var _excluded$_ = ["children", "style"];
|
|
4566
|
+
var _excluded$_ = ["children", "style", "textStyle"];
|
|
4532
4567
|
|
|
4533
|
-
var _templateObject$P;
|
|
4568
|
+
var _templateObject$P, _templateObject2$B;
|
|
4534
4569
|
var propTypes$Z = {
|
|
4535
4570
|
children: PropTypes.node.isRequired,
|
|
4536
4571
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4537
|
-
style: PropTypes.any
|
|
4572
|
+
style: PropTypes.any,
|
|
4573
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
4574
|
+
textStyle: PropTypes.any
|
|
4538
4575
|
};
|
|
4539
4576
|
var styles$O = StyleSheet.create({
|
|
4540
|
-
'.dropdown-header': css(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n // display: block;\n padding: $dropdown-header-padding;\n
|
|
4577
|
+
'.dropdown-header': css(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n // display: block;\n padding: $dropdown-header-padding;\n "]))),
|
|
4578
|
+
'.dropdown-header-text': css(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteral(["\n margin-bottom: 0; // for use with heading elements\n font-size: $font-size-sm;\n color: $dropdown-header-color;\n // white-space: nowrap; // as with > li > a\n "])))
|
|
4541
4579
|
});
|
|
4542
4580
|
var DropdownHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4543
4581
|
var children = props.children,
|
|
4544
4582
|
style = props.style,
|
|
4583
|
+
textStyle = props.textStyle,
|
|
4545
4584
|
elementProps = _objectWithoutProperties(props, _excluded$_);
|
|
4546
4585
|
|
|
4547
4586
|
var classes = getStyles(styles$O, ['.dropdown-header']);
|
|
4548
|
-
|
|
4587
|
+
var textClasses = getStyles(styles$O, ['.dropdown-header-text']); // composite component
|
|
4588
|
+
|
|
4589
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4549
4590
|
ref: ref,
|
|
4550
4591
|
size: 6,
|
|
4551
4592
|
style: [classes, style]
|
|
4552
|
-
}),
|
|
4593
|
+
}), /*#__PURE__*/React.createElement(Heading$1, {
|
|
4594
|
+
style: [textClasses, textStyle]
|
|
4595
|
+
}, children));
|
|
4553
4596
|
});
|
|
4554
4597
|
DropdownHeader.displayName = 'DropdownHeader';
|
|
4555
4598
|
DropdownHeader.propTypes = propTypes$Z;
|
|
4556
4599
|
|
|
4557
4600
|
var _excluded$Z = ["children", "onPress", "active", "disabled", "style", "textStyle"];
|
|
4558
4601
|
|
|
4559
|
-
var _templateObject$O, _templateObject2$
|
|
4602
|
+
var _templateObject$O, _templateObject2$A, _templateObject3$h, _templateObject4$f, _templateObject5$d, _templateObject6$c;
|
|
4560
4603
|
var propTypes$Y = {
|
|
4561
4604
|
children: PropTypes.node.isRequired,
|
|
4562
4605
|
onPress: PropTypes.func,
|
|
@@ -4569,7 +4612,7 @@ var propTypes$Y = {
|
|
|
4569
4612
|
};
|
|
4570
4613
|
var styles$N = StyleSheet.create({
|
|
4571
4614
|
'.dropdown-item': css(_templateObject$O || (_templateObject$O = _taggedTemplateLiteral(["\n width: 100%;\n padding: $dropdown-item-padding-y $dropdown-item-padding-x;\n // clear: both;\n background-color: transparent;\n border: 0;\n\n &:hover {\n // @include gradient-bg($dropdown-link-hover-bg);\n background-color: $dropdown-link-hover-bg;\n }\n &:focus {\n // @include gradient-bg($dropdown-link-hover-bg);\n background-color: $dropdown-link-hover-bg;\n }\n "]))),
|
|
4572
|
-
'.dropdown-item-text': css(_templateObject2$
|
|
4615
|
+
'.dropdown-item-text': css(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteral(["\n font-weight: $font-weight-normal;\n color: $dropdown-link-color;\n // text-align: inherit;\n text-decoration: none; // if($link-decoration == none, null, none);\n // white-space: nowrap;\n\n &:hover {\n color: $dropdown-link-hover-color;\n text-decoration: none; // if($link-hover-decoration == underline, none, null);\n }\n &:focus {\n color: $dropdown-link-hover-color;\n text-decoration: none; // if($link-hover-decoration == underline, none, null);\n }\n "]))),
|
|
4573
4616
|
'.dropdown-item-active': css(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteral(["\n // @include gradient-bg($dropdown-link-active-bg);\n background-color: $dropdown-link-active-bg;\n\n &:hover {\n background-color: $dropdown-link-active-bg;\n }\n &:focus {\n background-color: $dropdown-link-active-bg;\n }\n "]))),
|
|
4574
4617
|
'.dropdown-item-active-text': css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteral(["\n color: $dropdown-link-active-color;\n text-decoration: none;\n\n &:hover {\n color: $dropdown-link-active-color;\n }\n &:focus {\n color: $dropdown-link-active-color;\n }\n "]))),
|
|
4575
4618
|
'.dropdown-item-disabled': css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteral(["\n // pointer-events: none;\n background-color: transparent;\n // Remove CSS gradients if they're enabled\n // background-image: if($enable-gradients, none, null);\n\n &:hover {\n background-color: transparent;\n }\n &:focus {\n background-color: transparent;\n }\n "]))),
|
|
@@ -4603,30 +4646,38 @@ var DropdownItem = function DropdownItem(props) {
|
|
|
4603
4646
|
DropdownItem.displayName = 'DropdownItem';
|
|
4604
4647
|
DropdownItem.propTypes = propTypes$Y;
|
|
4605
4648
|
|
|
4606
|
-
var _excluded$Y = ["children", "style"];
|
|
4649
|
+
var _excluded$Y = ["children", "style", "textStyle"];
|
|
4607
4650
|
|
|
4608
|
-
var _templateObject$N;
|
|
4651
|
+
var _templateObject$N, _templateObject2$z;
|
|
4609
4652
|
var propTypes$X = {
|
|
4610
4653
|
children: PropTypes.node.isRequired,
|
|
4611
4654
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4612
|
-
style: PropTypes.any
|
|
4655
|
+
style: PropTypes.any,
|
|
4656
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
4657
|
+
textStyle: PropTypes.any
|
|
4613
4658
|
};
|
|
4614
4659
|
var styles$M = StyleSheet.create({
|
|
4615
|
-
'.dropdown-item-text': css(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n // display: block;\n padding: $dropdown-item-padding-y $dropdown-item-padding-x;\n
|
|
4660
|
+
'.dropdown-item-text': css(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n // display: block;\n padding: $dropdown-item-padding-y $dropdown-item-padding-x;\n "]))),
|
|
4661
|
+
'.dropdown-item-text-text': css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteral(["\n color: $dropdown-link-color;\n "])))
|
|
4616
4662
|
});
|
|
4617
|
-
var
|
|
4663
|
+
var DropdownItemText = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4618
4664
|
var children = props.children,
|
|
4619
4665
|
style = props.style,
|
|
4666
|
+
textStyle = props.textStyle,
|
|
4620
4667
|
elementProps = _objectWithoutProperties(props, _excluded$Y);
|
|
4621
4668
|
|
|
4622
4669
|
var classes = getStyles(styles$M, ['.dropdown-item-text']);
|
|
4623
|
-
|
|
4670
|
+
var textClasses = getStyles(styles$M, ['.dropdown-item-text-text']); // composite component
|
|
4671
|
+
|
|
4672
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4624
4673
|
ref: ref,
|
|
4625
4674
|
style: [classes, style]
|
|
4626
|
-
}),
|
|
4675
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
4676
|
+
style: [textClasses, textStyle]
|
|
4677
|
+
}, children));
|
|
4627
4678
|
});
|
|
4628
|
-
|
|
4629
|
-
|
|
4679
|
+
DropdownItemText.displayName = 'DropdownItemText';
|
|
4680
|
+
DropdownItemText.propTypes = propTypes$X;
|
|
4630
4681
|
|
|
4631
4682
|
var _excluded$X = ["style"];
|
|
4632
4683
|
|
|
@@ -4683,7 +4734,7 @@ function useDismissDropdown(props) {
|
|
|
4683
4734
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
4684
4735
|
onPress: function onPress(event) {
|
|
4685
4736
|
if (handlePress) handlePress(event);
|
|
4686
|
-
context.
|
|
4737
|
+
context.setVisible(false);
|
|
4687
4738
|
}
|
|
4688
4739
|
});
|
|
4689
4740
|
}
|
|
@@ -4737,7 +4788,7 @@ Dropdown.Toggle = DropdownToggle;
|
|
|
4737
4788
|
Dropdown.Menu = DropdownMenu;
|
|
4738
4789
|
Dropdown.Header = DropdownHeader;
|
|
4739
4790
|
Dropdown.Item = DropdownItem;
|
|
4740
|
-
Dropdown.
|
|
4791
|
+
Dropdown.ItemText = DropdownItemText;
|
|
4741
4792
|
Dropdown.Divider = DropdownDivider;
|
|
4742
4793
|
Dropdown.useDismiss = useDismissDropdown;
|
|
4743
4794
|
Dropdown.useToggle = useToggleDropdown;
|
|
@@ -4801,27 +4852,35 @@ var Feedback = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4801
4852
|
Feedback.displayName = 'Feedback';
|
|
4802
4853
|
Feedback.propTypes = propTypes$T;
|
|
4803
4854
|
|
|
4804
|
-
var _excluded$S = ["children", "style"];
|
|
4855
|
+
var _excluded$S = ["children", "style", "textStyle"];
|
|
4805
4856
|
|
|
4806
|
-
var _templateObject$I;
|
|
4857
|
+
var _templateObject$I, _templateObject2$y;
|
|
4807
4858
|
var propTypes$S = {
|
|
4808
4859
|
children: PropTypes.node.isRequired,
|
|
4809
4860
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4810
|
-
style: PropTypes.any
|
|
4861
|
+
style: PropTypes.any,
|
|
4862
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
4863
|
+
textStyle: PropTypes.any
|
|
4811
4864
|
};
|
|
4812
4865
|
var styles$H = StyleSheet.create({
|
|
4813
|
-
'.form-text': css(_templateObject$I || (_templateObject$I = _taggedTemplateLiteral(["\n margin-top: $form-text-margin-top;\n
|
|
4866
|
+
'.form-text': css(_templateObject$I || (_templateObject$I = _taggedTemplateLiteral(["\n margin-top: $form-text-margin-top;\n "]))),
|
|
4867
|
+
'.form-text-text': css(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteral(["\n font-size: $form-text-font-size;\n font-style: $form-text-font-style;\n font-weight: $form-text-font-weight;\n color: $form-text-color;\n "])))
|
|
4814
4868
|
});
|
|
4815
4869
|
var FormText = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4816
4870
|
var children = props.children,
|
|
4817
4871
|
style = props.style,
|
|
4872
|
+
textStyle = props.textStyle,
|
|
4818
4873
|
elementProps = _objectWithoutProperties(props, _excluded$S);
|
|
4819
4874
|
|
|
4820
4875
|
var classes = getStyles(styles$H, ['.form-text']);
|
|
4821
|
-
|
|
4876
|
+
var textClasses = getStyles(styles$H, ['.form-text-text']); // composite component
|
|
4877
|
+
|
|
4878
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4822
4879
|
ref: ref,
|
|
4823
4880
|
style: [classes, style]
|
|
4824
|
-
}),
|
|
4881
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
4882
|
+
style: [textClasses, textStyle]
|
|
4883
|
+
}, children));
|
|
4825
4884
|
});
|
|
4826
4885
|
FormText.displayName = 'FormText';
|
|
4827
4886
|
FormText.propTypes = propTypes$S;
|
|
@@ -4876,7 +4935,7 @@ TextInput.propTypes = propTypes$R;
|
|
|
4876
4935
|
|
|
4877
4936
|
var _excluded$Q = ["size", "placeholderTextColor", "multiline", "disabled", "valid", "invalid", "style"];
|
|
4878
4937
|
|
|
4879
|
-
var _templateObject$H, _templateObject2$
|
|
4938
|
+
var _templateObject$H, _templateObject2$x, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$8, _templateObject8$7;
|
|
4880
4939
|
var propTypes$Q = {
|
|
4881
4940
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
4882
4941
|
placeholderTextColor: PropTypes.string,
|
|
@@ -4888,13 +4947,13 @@ var propTypes$Q = {
|
|
|
4888
4947
|
style: PropTypes.any
|
|
4889
4948
|
};
|
|
4890
4949
|
var styles$G = StyleSheet.create(_objectSpread2({
|
|
4891
|
-
'.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
|
|
4892
|
-
'.form-control-disabled': css(_templateObject2$
|
|
4893
|
-
'.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 border-radius: $input-border-radius-sm;\n "]))),
|
|
4894
|
-
'.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 border-radius: $input-border-radius-lg;\n "]))),
|
|
4895
|
-
'.form-control-multiline': css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteral(["\n min-height: $input-height;\n "]))),
|
|
4896
|
-
'.form-control-multiline-sm': css(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteral(["\n min-height: $input-height-sm;\n "]))),
|
|
4897
|
-
'.form-control-multiline-lg': css(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteral(["\n min-height: $input-height-lg;\n "])))
|
|
4950
|
+
'.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 }\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 "]))),
|
|
4951
|
+
'.form-control-disabled': css(_templateObject2$x || (_templateObject2$x = _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 "]))),
|
|
4952
|
+
'.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 "]))),
|
|
4953
|
+
'.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 "]))),
|
|
4954
|
+
'.form-control-multiline': css(_templateObject5$c || (_templateObject5$c = _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 "]))),
|
|
4955
|
+
'.form-control-multiline-sm': css(_templateObject6$b || (_templateObject6$b = _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 "]))),
|
|
4956
|
+
'.form-control-multiline-lg': css(_templateObject7$8 || (_templateObject7$8 = _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 "])))
|
|
4898
4957
|
}, each(FORM_VALIDATION_STATES, function (state, data) {
|
|
4899
4958
|
return _defineProperty({}, ".form-control.is-".concat(state), css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteral(["\n border-color: ", ";\n\n &:focus {\n border-color: ", ";\n // box-shadow: $focus-box-shadow;\n }\n "])), function (t) {
|
|
4900
4959
|
return data(t).color;
|
|
@@ -4927,6 +4986,8 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4927
4986
|
placeholderTextColor: placeholderTextColor || StyleSheet.value('input-placeholder-color'),
|
|
4928
4987
|
multiline: multiline,
|
|
4929
4988
|
disabled: disabled,
|
|
4989
|
+
editable: !disabled,
|
|
4990
|
+
selectTextOnFocus: !disabled,
|
|
4930
4991
|
style: [classes, style]
|
|
4931
4992
|
}));
|
|
4932
4993
|
});
|
|
@@ -4934,7 +4995,7 @@ Input.displayName = 'Input';
|
|
|
4934
4995
|
Input.propTypes = propTypes$Q;
|
|
4935
4996
|
|
|
4936
4997
|
var PLACEMENTS$1 = ['top', 'bottom', 'left', 'right'];
|
|
4937
|
-
var TRIGGERS = ['
|
|
4998
|
+
var TRIGGERS = ['press', 'hover', 'focus', 'manual', 'press hover', 'hover press', 'hover focus', 'focus hover', 'press focus', 'focus press'];
|
|
4938
4999
|
var TriggerPropTypes = {
|
|
4939
5000
|
trigger: PropTypes.oneOf(TRIGGERS),
|
|
4940
5001
|
placement: PropTypes.oneOf(PLACEMENTS$1),
|
|
@@ -4981,7 +5042,9 @@ function useTrigger(rawTrigger, props, elementProps, ref) {
|
|
|
4981
5042
|
accessibilityDescribedBy: identifier
|
|
4982
5043
|
})), {}, {
|
|
4983
5044
|
onPress: function onPress(event) {
|
|
4984
|
-
|
|
5045
|
+
var handleHoverAsPress = (Platform.OS === 'android' || Platform.OS === 'ios') && trigger.includes('hover');
|
|
5046
|
+
|
|
5047
|
+
if (trigger.includes('press') || handleHoverAsPress) {
|
|
4985
5048
|
setVisible(function (value) {
|
|
4986
5049
|
return !value;
|
|
4987
5050
|
});
|
|
@@ -5058,14 +5121,14 @@ PopoverContext.displayName = 'PopoverContext';
|
|
|
5058
5121
|
|
|
5059
5122
|
var _excluded$P = ["style"];
|
|
5060
5123
|
|
|
5061
|
-
var _templateObject$G, _templateObject2$
|
|
5124
|
+
var _templateObject$G, _templateObject2$w, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$7, _templateObject8$6, _templateObject9$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$2, _templateObject15$1;
|
|
5062
5125
|
var propTypes$P = {
|
|
5063
5126
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5064
5127
|
style: PropTypes.any
|
|
5065
5128
|
};
|
|
5066
5129
|
var styles$F = StyleSheet.create({
|
|
5067
5130
|
'.popover-arrow': css(_templateObject$G || (_templateObject$G = _taggedTemplateLiteral(["\n position: absolute;\n // display: block;\n width: $popover-arrow-width;\n height: $popover-arrow-height;\n "]))),
|
|
5068
|
-
'.popover-arrow::before': css(_templateObject2$
|
|
5131
|
+
'.popover-arrow::before': css(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteral(["\n position: absolute;\n // display: block;\n // content: \"\";\n border-top-color: transparent;\n border-right-color: transparent;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-style: solid;\n "]))),
|
|
5069
5132
|
'.popover-arrow::after': css(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteral(["\n position: absolute;\n // display: block;\n // content: \"\";\n border-top-color: transparent;\n border-right-color: transparent;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-style: solid;\n "]))),
|
|
5070
5133
|
'.bs-popover-top .popover-arrow': css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteral(["\n bottom: ", ";\n "])), subtract(function (t) {
|
|
5071
5134
|
return "-".concat(t['popover-arrow-height']);
|
|
@@ -5080,15 +5143,15 @@ var styles$F = StyleSheet.create({
|
|
|
5080
5143
|
return t['popover-border-width'];
|
|
5081
5144
|
})),
|
|
5082
5145
|
'.bs-popover-end .popover-arrow::before': css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteral(["\n left: 0;\n border-top-width: $popover-arrow-width * 0.5;\n border-right-width: $popover-arrow-height;\n border-left-width: 0;\n border-bottom-width: $popover-arrow-width * 0.5;\n border-right-color: $popover-arrow-outer-color;\n "]))),
|
|
5083
|
-
'.bs-popover-end .popover-arrow::after': css(_templateObject9$
|
|
5084
|
-
'.bs-popover-bottom .popover-arrow': css(_templateObject10$
|
|
5146
|
+
'.bs-popover-end .popover-arrow::after': css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteral(["\n left: $popover-border-width;\n border-top-width: $popover-arrow-width * 0.5;\n border-right-width: $popover-arrow-height;\n border-left-width: 0;\n border-bottom-width: $popover-arrow-width * 0.5;\n border-right-color: $popover-arrow-color;\n "]))),
|
|
5147
|
+
'.bs-popover-bottom .popover-arrow': css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteral(["\n top: ", ";\n "])), subtract(function (t) {
|
|
5085
5148
|
return "-".concat(t['popover-arrow-height']);
|
|
5086
5149
|
}, function (t) {
|
|
5087
5150
|
return t['popover-border-width'];
|
|
5088
5151
|
})),
|
|
5089
|
-
'.bs-popover-bottom .popover-arrow::before': css(_templateObject11$
|
|
5090
|
-
'.bs-popover-bottom .popover-arrow::after': css(_templateObject12$
|
|
5091
|
-
'.bs-popover-start .popover-arrow': css(_templateObject13$
|
|
5152
|
+
'.bs-popover-bottom .popover-arrow::before': css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteral(["\n top: 0;\n border-top-width: 0;\n border-right-width: $popover-arrow-width * 0.5;\n border-left-width: $popover-arrow-width * 0.5;\n border-bottom-width: $popover-arrow-height;\n border-bottom-color: $popover-arrow-outer-color;\n "]))),
|
|
5153
|
+
'.bs-popover-bottom .popover-arrow::after': css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteral(["\n top: $popover-border-width;\n border-top-width: 0;\n border-right-width: $popover-arrow-width * 0.5;\n border-left-width: $popover-arrow-width * 0.5;\n border-bottom-width: $popover-arrow-height;\n border-bottom-color: $popover-arrow-color;\n "]))),
|
|
5154
|
+
'.bs-popover-start .popover-arrow': css(_templateObject13$3 || (_templateObject13$3 = _taggedTemplateLiteral(["\n right: ", ";\n width: $popover-arrow-height;\n height: $popover-arrow-width;\n "])), subtract(function (t) {
|
|
5092
5155
|
return "-".concat(t['popover-arrow-height']);
|
|
5093
5156
|
}, function (t) {
|
|
5094
5157
|
return t['popover-border-width'];
|
|
@@ -5120,35 +5183,43 @@ var PopoverArrow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
5120
5183
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
5121
5184
|
PopoverArrow.propTypes = propTypes$P;
|
|
5122
5185
|
|
|
5123
|
-
var _excluded$O = ["children", "style"];
|
|
5186
|
+
var _excluded$O = ["children", "style", "textStyle"];
|
|
5124
5187
|
|
|
5125
|
-
var _templateObject$F;
|
|
5188
|
+
var _templateObject$F, _templateObject2$v;
|
|
5126
5189
|
var propTypes$O = {
|
|
5127
5190
|
children: PropTypes.node.isRequired,
|
|
5128
5191
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5129
|
-
style: PropTypes.any
|
|
5192
|
+
style: PropTypes.any,
|
|
5193
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
5194
|
+
textStyle: PropTypes.any
|
|
5130
5195
|
};
|
|
5131
5196
|
var styles$E = StyleSheet.create({
|
|
5132
|
-
'.popover-header': css(_templateObject$F || (_templateObject$F = _taggedTemplateLiteral(["\n padding: $popover-header-padding-y $popover-header-padding-x;\n
|
|
5197
|
+
'.popover-header': css(_templateObject$F || (_templateObject$F = _taggedTemplateLiteral(["\n padding: $popover-header-padding-y $popover-header-padding-x;\n background-color: $popover-header-bg;\n border-bottom-width: $popover-border-width;\n border-style: solid;\n border-color: $popover-border-color;\n border-top-left-radius: $popover-border-radius;\n border-top-right-radius: $popover-border-radius;\n "]))),
|
|
5198
|
+
'.popover-header-text': css(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteral(["\n margin-bottom: 0; // Reset the default from Reboot\n font-size: $font-size-base;\n line-height: $font-size-base * $headings-line-height; // added for bootstrap-rn\n color: $popover-header-color;\n "])))
|
|
5133
5199
|
});
|
|
5134
5200
|
var PopoverHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
5135
5201
|
var children = props.children,
|
|
5136
5202
|
style = props.style,
|
|
5203
|
+
textStyle = props.textStyle,
|
|
5137
5204
|
elementProps = _objectWithoutProperties(props, _excluded$O);
|
|
5138
5205
|
|
|
5139
5206
|
var classes = getStyles(styles$E, ['.popover-header']);
|
|
5140
|
-
|
|
5207
|
+
var textClasses = getStyles(styles$E, ['.popover-header-text']); // composite component
|
|
5208
|
+
|
|
5209
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5141
5210
|
ref: ref,
|
|
5142
|
-
size: 3,
|
|
5143
5211
|
style: [classes, style]
|
|
5144
|
-
}),
|
|
5212
|
+
}), /*#__PURE__*/React.createElement(Heading$1, {
|
|
5213
|
+
size: 3,
|
|
5214
|
+
style: [textClasses, textStyle]
|
|
5215
|
+
}, children));
|
|
5145
5216
|
});
|
|
5146
5217
|
PopoverHeader.displayName = 'PopoverHeader';
|
|
5147
5218
|
PopoverHeader.propTypes = propTypes$O;
|
|
5148
5219
|
|
|
5149
5220
|
var _excluded$N = ["children", "style", "textStyle"];
|
|
5150
5221
|
|
|
5151
|
-
var _templateObject$E, _templateObject2$
|
|
5222
|
+
var _templateObject$E, _templateObject2$u;
|
|
5152
5223
|
var propTypes$N = {
|
|
5153
5224
|
children: PropTypes.node.isRequired,
|
|
5154
5225
|
// eslint-disable-next-line react/forbid-prop-types
|
|
@@ -5158,7 +5229,7 @@ var propTypes$N = {
|
|
|
5158
5229
|
};
|
|
5159
5230
|
var styles$D = StyleSheet.create({
|
|
5160
5231
|
'.popover-body': css(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n padding: $popover-body-padding-y $popover-body-padding-x;\n "]))),
|
|
5161
|
-
'.popover-body-text': css(_templateObject2$
|
|
5232
|
+
'.popover-body-text': css(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteral(["\n color: $popover-body-color;\n "])))
|
|
5162
5233
|
});
|
|
5163
5234
|
var PopoverBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
5164
5235
|
var children = props.children,
|
|
@@ -5179,7 +5250,7 @@ PopoverBody.propTypes = propTypes$N;
|
|
|
5179
5250
|
|
|
5180
5251
|
var _excluded$M = ["children", "placement", "popper", "style", "textStyle", "arrowStyle"];
|
|
5181
5252
|
|
|
5182
|
-
var _templateObject$D, _templateObject2$
|
|
5253
|
+
var _templateObject$D, _templateObject2$t;
|
|
5183
5254
|
var propTypes$M = {
|
|
5184
5255
|
children: PropTypes.node.isRequired,
|
|
5185
5256
|
placement: PropTypes.string,
|
|
@@ -5193,7 +5264,7 @@ var propTypes$M = {
|
|
|
5193
5264
|
};
|
|
5194
5265
|
var styles$C = StyleSheet.create({
|
|
5195
5266
|
'.popover': css(_templateObject$D || (_templateObject$D = _taggedTemplateLiteral(["\n position: absolute;\n // top: 0;\n // left: 0 #{\"/* rtl:ignore */\"};\n z-index: $zindex-popover;\n // display: block;\n max-width: $popover-max-width;\n background-color: $popover-bg;\n // background-clip: padding-box;\n border: $popover-border-width solid $popover-border-color;\n border-radius: $popover-border-radius;\n // @include box-shadow($popover-box-shadow);\n "]))),
|
|
5196
|
-
'.popover-text': css(_templateObject2$
|
|
5267
|
+
'.popover-text': css(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteral(["\n // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.\n // So reset our font and text properties to avoid inheriting weird values.\n // @include reset-text();\n font-size: $popover-font-size;\n // Allow breaking very long words so they don't overflow the popover's bounds\n // word-wrap: break-word;\n "])))
|
|
5197
5268
|
});
|
|
5198
5269
|
var Popover = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
5199
5270
|
var children = props.children,
|
|
@@ -5229,12 +5300,13 @@ Popover.Arrow = PopoverArrow;
|
|
|
5229
5300
|
Popover.Header = PopoverHeader;
|
|
5230
5301
|
Popover.Body = PopoverBody;
|
|
5231
5302
|
|
|
5232
|
-
var _excluded$L = ["title", "content", "trigger", "placement"],
|
|
5303
|
+
var _excluded$L = ["title", "content", "autoClose", "trigger", "placement"],
|
|
5233
5304
|
_excluded2$1 = ["popover"];
|
|
5234
5305
|
var propTypes$L = {
|
|
5235
5306
|
popover: PropTypes.shape(_objectSpread2({
|
|
5236
5307
|
title: PropTypes.node,
|
|
5237
|
-
content: PropTypes.node.isRequired
|
|
5308
|
+
content: PropTypes.node.isRequired,
|
|
5309
|
+
autoClose: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['inside', 'outside'])])
|
|
5238
5310
|
}, TriggerPropTypes))
|
|
5239
5311
|
};
|
|
5240
5312
|
function injectPopover(Target) {
|
|
@@ -5243,8 +5315,10 @@ function injectPopover(Target) {
|
|
|
5243
5315
|
var _props$popover = props.popover,
|
|
5244
5316
|
title = _props$popover.title,
|
|
5245
5317
|
content = _props$popover.content,
|
|
5318
|
+
_props$popover$autoCl = _props$popover.autoClose,
|
|
5319
|
+
autoClose = _props$popover$autoCl === void 0 ? 'outside' : _props$popover$autoCl,
|
|
5246
5320
|
_props$popover$trigge = _props$popover.trigger,
|
|
5247
|
-
trigger = _props$popover$trigge === void 0 ? '
|
|
5321
|
+
trigger = _props$popover$trigge === void 0 ? 'press' : _props$popover$trigge,
|
|
5248
5322
|
_props$popover$placem = _props$popover.placement,
|
|
5249
5323
|
placement = _props$popover$placem === void 0 ? 'right' : _props$popover$placem,
|
|
5250
5324
|
tooltipProps = _objectWithoutProperties(_props$popover, _excluded$L),
|
|
@@ -5254,6 +5328,7 @@ function injectPopover(Target) {
|
|
|
5254
5328
|
|
|
5255
5329
|
var _useTrigger = useTrigger(trigger, tooltipProps, elementProps, ref),
|
|
5256
5330
|
visible = _useTrigger.visible,
|
|
5331
|
+
setVisible = _useTrigger.setVisible,
|
|
5257
5332
|
targetProps = _useTrigger.targetProps,
|
|
5258
5333
|
targetRef = _useTrigger.targetRef,
|
|
5259
5334
|
templateProps = _useTrigger.templateProps;
|
|
@@ -5266,7 +5341,14 @@ function injectPopover(Target) {
|
|
|
5266
5341
|
targetRef: targetRef,
|
|
5267
5342
|
visible: visible
|
|
5268
5343
|
}, function (overlay, overlayRef) {
|
|
5269
|
-
return /*#__PURE__*/React.createElement(
|
|
5344
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackdropHandler, {
|
|
5345
|
+
toggleRef: targetRef,
|
|
5346
|
+
dialogRef: overlayRef,
|
|
5347
|
+
onClose: function onClose() {
|
|
5348
|
+
setVisible(false);
|
|
5349
|
+
},
|
|
5350
|
+
autoClose: autoClose
|
|
5351
|
+
}), /*#__PURE__*/React.createElement(Popover, _extends({}, templateProps, {
|
|
5270
5352
|
ref: overlayRef,
|
|
5271
5353
|
placement: overlay.placement,
|
|
5272
5354
|
popper: overlay.rendered,
|
|
@@ -5275,7 +5357,7 @@ function injectPopover(Target) {
|
|
|
5275
5357
|
opacity: overlay.rendered ? 1 : 0
|
|
5276
5358
|
}],
|
|
5277
5359
|
arrowStyle: overlay.arrowProps.style
|
|
5278
|
-
}), /*#__PURE__*/React.createElement(Popover.Arrow, null), title && /*#__PURE__*/React.createElement(Popover.Header, null, title), /*#__PURE__*/React.createElement(Popover.Body, null, content));
|
|
5360
|
+
}), /*#__PURE__*/React.createElement(Popover.Arrow, null), title && /*#__PURE__*/React.createElement(Popover.Header, null, title), /*#__PURE__*/React.createElement(Popover.Body, null, content)));
|
|
5279
5361
|
})));
|
|
5280
5362
|
});
|
|
5281
5363
|
OverlayPopover.displayName = 'Overlay(Popover)';
|
|
@@ -5288,22 +5370,22 @@ TooltipContext.displayName = 'TooltipContext';
|
|
|
5288
5370
|
|
|
5289
5371
|
var _excluded$K = ["style"];
|
|
5290
5372
|
|
|
5291
|
-
var _templateObject$C, _templateObject2$
|
|
5373
|
+
var _templateObject$C, _templateObject2$s, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$6, _templateObject8$5, _templateObject9$4, _templateObject10$4;
|
|
5292
5374
|
var propTypes$K = {
|
|
5293
5375
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5294
5376
|
style: PropTypes.any
|
|
5295
5377
|
};
|
|
5296
5378
|
var styles$B = StyleSheet.create({
|
|
5297
5379
|
'.tooltip-arrow': css(_templateObject$C || (_templateObject$C = _taggedTemplateLiteral(["\n position: absolute;\n // display: block;\n width: $tooltip-arrow-width;\n height: $tooltip-arrow-height;\n "]))),
|
|
5298
|
-
'.tooltip-arrow::before': css(_templateObject2$
|
|
5380
|
+
'.tooltip-arrow::before': css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteral(["\n position: absolute;\n // content: \"\";\n border-top-color: transparent;\n border-right-color: transparent;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-style: solid;\n "]))),
|
|
5299
5381
|
'.bs-tooltip-top .tooltip-arrow': css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteral(["\n bottom: 0;\n "]))),
|
|
5300
5382
|
'.bs-tooltip-top .tooltip-arrow::before': css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteral(["\n top: -1px;\n border-top-width: $tooltip-arrow-height;\n border-right-width: $tooltip-arrow-width * 0.5;\n border-left-width: $tooltip-arrow-width * 0.5;\n border-bottom-width: 0;\n border-top-color: $tooltip-arrow-color;\n "]))),
|
|
5301
5383
|
'.bs-tooltip-end .tooltip-arrow': css(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteral(["\n left: 0;\n width: $tooltip-arrow-height;\n height: $tooltip-arrow-width;\n "]))),
|
|
5302
5384
|
'.bs-tooltip-end .tooltip-arrow::before': css(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteral(["\n right: -1px;\n border-top-width: $tooltip-arrow-width * 0.5;\n border-right-width: $tooltip-arrow-height;\n border-left-width: 0;\n border-bottom-width: $tooltip-arrow-width * 0.5;\n border-right-color: $tooltip-arrow-color;\n "]))),
|
|
5303
5385
|
'.bs-tooltip-bottom .tooltip-arrow': css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteral(["\n top: 0;\n "]))),
|
|
5304
5386
|
'.bs-tooltip-bottom .tooltip-arrow::before': css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteral(["\n bottom: -1px;\n border-top-width: 0;\n border-right-width: $tooltip-arrow-width * 0.5;\n border-left-width: $tooltip-arrow-width * 0.5;\n border-bottom-width: $tooltip-arrow-height;\n border-bottom-color: $tooltip-arrow-color;\n "]))),
|
|
5305
|
-
'.bs-tooltip-start .tooltip-arrow': css(_templateObject9$
|
|
5306
|
-
'.bs-tooltip-start .tooltip-arrow::before': css(_templateObject10$
|
|
5387
|
+
'.bs-tooltip-start .tooltip-arrow': css(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteral(["\n right: 0;\n width: $tooltip-arrow-height;\n height: $tooltip-arrow-width;\n "]))),
|
|
5388
|
+
'.bs-tooltip-start .tooltip-arrow::before': css(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteral(["\n left: -1px;\n border-top-width: $tooltip-arrow-width * 0.5;\n border-right-width: 0;\n border-left-width: $tooltip-arrow-height;\n border-bottom-width: $tooltip-arrow-width * 0.5;\n border-left-color: $tooltip-arrow-color;\n "])))
|
|
5307
5389
|
});
|
|
5308
5390
|
var TooltipArrow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
5309
5391
|
var style = props.style,
|
|
@@ -5326,34 +5408,42 @@ var TooltipArrow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
5326
5408
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
5327
5409
|
TooltipArrow.propTypes = propTypes$K;
|
|
5328
5410
|
|
|
5329
|
-
var _excluded$J = ["children", "style"];
|
|
5411
|
+
var _excluded$J = ["children", "style", "textStyle"];
|
|
5330
5412
|
|
|
5331
|
-
var _templateObject$B;
|
|
5413
|
+
var _templateObject$B, _templateObject2$r;
|
|
5332
5414
|
var propTypes$J = {
|
|
5333
5415
|
children: PropTypes.node.isRequired,
|
|
5334
5416
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5335
|
-
style: PropTypes.any
|
|
5417
|
+
style: PropTypes.any,
|
|
5418
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
5419
|
+
textStyle: PropTypes.any
|
|
5336
5420
|
};
|
|
5337
5421
|
var styles$A = StyleSheet.create({
|
|
5338
|
-
'.tooltip-inner': css(_templateObject$B || (_templateObject$B = _taggedTemplateLiteral(["\n max-width: $tooltip-max-width;\n padding: $tooltip-padding-y $tooltip-padding-x;\n
|
|
5422
|
+
'.tooltip-inner': css(_templateObject$B || (_templateObject$B = _taggedTemplateLiteral(["\n max-width: $tooltip-max-width;\n padding: $tooltip-padding-y $tooltip-padding-x;\n background-color: $tooltip-bg;\n border-radius: $tooltip-border-radius;\n "]))),
|
|
5423
|
+
'.tooltip-inner-text': css(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteral(["\n color: $tooltip-color;\n text-align: center;\n "])))
|
|
5339
5424
|
});
|
|
5340
5425
|
var TooltipInner = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
5341
5426
|
var children = props.children,
|
|
5342
5427
|
style = props.style,
|
|
5428
|
+
textStyle = props.textStyle,
|
|
5343
5429
|
elementProps = _objectWithoutProperties(props, _excluded$J);
|
|
5344
5430
|
|
|
5345
5431
|
var classes = getStyles(styles$A, ['.tooltip-inner']);
|
|
5346
|
-
|
|
5432
|
+
var textClasses = getStyles(styles$A, ['.tooltip-inner-text']); // composite component
|
|
5433
|
+
|
|
5434
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5347
5435
|
ref: ref,
|
|
5348
5436
|
style: [classes, style]
|
|
5349
|
-
}),
|
|
5437
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
5438
|
+
style: [textClasses, textStyle]
|
|
5439
|
+
}, children));
|
|
5350
5440
|
});
|
|
5351
5441
|
TooltipInner.displayName = 'TooltipInner';
|
|
5352
5442
|
TooltipInner.propTypes = propTypes$J;
|
|
5353
5443
|
|
|
5354
5444
|
var _excluded$I = ["children", "placement", "popper", "style", "textStyle", "arrowStyle"];
|
|
5355
5445
|
|
|
5356
|
-
var _templateObject$A, _templateObject2$
|
|
5446
|
+
var _templateObject$A, _templateObject2$q, _templateObject3$d, _templateObject4$b, _templateObject5$9, _templateObject6$8;
|
|
5357
5447
|
var propTypes$I = {
|
|
5358
5448
|
children: PropTypes.node.isRequired,
|
|
5359
5449
|
placement: PropTypes.string,
|
|
@@ -5367,7 +5457,7 @@ var propTypes$I = {
|
|
|
5367
5457
|
};
|
|
5368
5458
|
var styles$z = StyleSheet.create({
|
|
5369
5459
|
'.tooltip': css(_templateObject$A || (_templateObject$A = _taggedTemplateLiteral(["\n position: absolute;\n z-index: $zindex-tooltip;\n // display: block;\n margin: $tooltip-margin;\n // opacity: 0;\n "]))),
|
|
5370
|
-
'.tooltip-text': css(_templateObject2$
|
|
5460
|
+
'.tooltip-text': css(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteral(["\n // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.\n // So reset our font and text properties to avoid inheriting weird values.\n // @include reset-text();\n font-size: $tooltip-font-size;\n // Allow breaking very long words so they don't overflow the tooltip's bounds\n // word-wrap: break-word;\n "]))),
|
|
5371
5461
|
'.bs-tooltip-top': css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteral(["\n padding: $tooltip-arrow-height 0;\n "]))),
|
|
5372
5462
|
'.bs-tooltip-end': css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteral(["\n padding: 0 $tooltip-arrow-height;\n "]))),
|
|
5373
5463
|
'.bs-tooltip-bottom': css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteral(["\n padding: $tooltip-arrow-height 0;\n "]))),
|
|
@@ -5407,11 +5497,12 @@ Tooltip.propTypes = propTypes$I;
|
|
|
5407
5497
|
Tooltip.Arrow = TooltipArrow;
|
|
5408
5498
|
Tooltip.Inner = TooltipInner;
|
|
5409
5499
|
|
|
5410
|
-
var _excluded$H = ["title", "trigger", "placement"],
|
|
5500
|
+
var _excluded$H = ["title", "autoClose", "trigger", "placement"],
|
|
5411
5501
|
_excluded2 = ["tooltip"];
|
|
5412
5502
|
var propTypes$H = {
|
|
5413
5503
|
tooltip: PropTypes.shape(_objectSpread2({
|
|
5414
|
-
title: PropTypes.node.isRequired
|
|
5504
|
+
title: PropTypes.node.isRequired,
|
|
5505
|
+
autoClose: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['inside', 'outside'])])
|
|
5415
5506
|
}, TriggerPropTypes))
|
|
5416
5507
|
};
|
|
5417
5508
|
function injectTooltip(Target) {
|
|
@@ -5419,6 +5510,8 @@ function injectTooltip(Target) {
|
|
|
5419
5510
|
/* eslint-disable react/prop-types */
|
|
5420
5511
|
var _props$tooltip = props.tooltip,
|
|
5421
5512
|
title = _props$tooltip.title,
|
|
5513
|
+
_props$tooltip$autoCl = _props$tooltip.autoClose,
|
|
5514
|
+
autoClose = _props$tooltip$autoCl === void 0 ? 'outside' : _props$tooltip$autoCl,
|
|
5422
5515
|
_props$tooltip$trigge = _props$tooltip.trigger,
|
|
5423
5516
|
trigger = _props$tooltip$trigge === void 0 ? 'hover focus' : _props$tooltip$trigge,
|
|
5424
5517
|
_props$tooltip$placem = _props$tooltip.placement,
|
|
@@ -5430,6 +5523,7 @@ function injectTooltip(Target) {
|
|
|
5430
5523
|
|
|
5431
5524
|
var _useTrigger = useTrigger(trigger, tooltipProps, elementProps, ref),
|
|
5432
5525
|
visible = _useTrigger.visible,
|
|
5526
|
+
setVisible = _useTrigger.setVisible,
|
|
5433
5527
|
targetProps = _useTrigger.targetProps,
|
|
5434
5528
|
targetRef = _useTrigger.targetRef,
|
|
5435
5529
|
templateProps = _useTrigger.templateProps;
|
|
@@ -5441,7 +5535,14 @@ function injectTooltip(Target) {
|
|
|
5441
5535
|
arrowOffset: offset,
|
|
5442
5536
|
visible: visible
|
|
5443
5537
|
}, function (overlay, overlayRef) {
|
|
5444
|
-
return /*#__PURE__*/React.createElement(
|
|
5538
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BackdropHandler, {
|
|
5539
|
+
toggleRef: targetRef,
|
|
5540
|
+
dialogRef: overlayRef,
|
|
5541
|
+
onClose: function onClose() {
|
|
5542
|
+
setVisible(false);
|
|
5543
|
+
},
|
|
5544
|
+
autoClose: autoClose
|
|
5545
|
+
}), /*#__PURE__*/React.createElement(Tooltip, _extends({}, templateProps, {
|
|
5445
5546
|
ref: overlayRef,
|
|
5446
5547
|
placement: overlay.placement,
|
|
5447
5548
|
popper: overlay.rendered,
|
|
@@ -5450,7 +5551,7 @@ function injectTooltip(Target) {
|
|
|
5450
5551
|
opacity: overlay.rendered ? 1 : 0
|
|
5451
5552
|
}],
|
|
5452
5553
|
arrowStyle: overlay.arrowProps.style
|
|
5453
|
-
}), /*#__PURE__*/React.createElement(Tooltip.Arrow, null), /*#__PURE__*/React.createElement(Tooltip.Inner, null, title));
|
|
5554
|
+
}), /*#__PURE__*/React.createElement(Tooltip.Arrow, null), /*#__PURE__*/React.createElement(Tooltip.Inner, null, title)));
|
|
5454
5555
|
})));
|
|
5455
5556
|
});
|
|
5456
5557
|
OverlayTooltip.displayName = 'Overlay(Tooltip)';
|
|
@@ -5506,27 +5607,35 @@ var ImageBackground = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
5506
5607
|
ImageBackground.displayName = 'ImageBackground';
|
|
5507
5608
|
ImageBackground.propTypes = propTypes$F;
|
|
5508
5609
|
|
|
5509
|
-
var _excluded$E = ["children", "style"];
|
|
5610
|
+
var _excluded$E = ["children", "style", "textStyle"];
|
|
5510
5611
|
|
|
5511
|
-
var _templateObject$z;
|
|
5612
|
+
var _templateObject$z, _templateObject2$p;
|
|
5512
5613
|
var propTypes$E = {
|
|
5513
5614
|
children: PropTypes.node.isRequired,
|
|
5514
5615
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5515
|
-
style: PropTypes.any
|
|
5616
|
+
style: PropTypes.any,
|
|
5617
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
5618
|
+
textStyle: PropTypes.any
|
|
5516
5619
|
};
|
|
5517
5620
|
var styles$y = StyleSheet.create({
|
|
5518
|
-
'.form-label': css(_templateObject$z || (_templateObject$z = _taggedTemplateLiteral(["\n margin-bottom: $form-label-margin-bottom;\n
|
|
5621
|
+
'.form-label': css(_templateObject$z || (_templateObject$z = _taggedTemplateLiteral(["\n margin-bottom: $form-label-margin-bottom;\n "]))),
|
|
5622
|
+
'.form-label-text': css(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteral(["\n font-size: $form-label-font-size;\n font-style: $form-label-font-style;\n font-weight: $form-label-font-weight;\n color: $form-label-color;\n "])))
|
|
5519
5623
|
});
|
|
5520
5624
|
var Label = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
5521
5625
|
var children = props.children,
|
|
5522
5626
|
style = props.style,
|
|
5627
|
+
textStyle = props.textStyle,
|
|
5523
5628
|
elementProps = _objectWithoutProperties(props, _excluded$E);
|
|
5524
5629
|
|
|
5525
5630
|
var classes = getStyles(styles$y, ['.form-label']);
|
|
5526
|
-
|
|
5631
|
+
var textClasses = getStyles(styles$y, ['.form-label-text']); // composite component
|
|
5632
|
+
|
|
5633
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5527
5634
|
ref: ref,
|
|
5528
5635
|
style: [classes, style]
|
|
5529
|
-
}),
|
|
5636
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
5637
|
+
style: [textClasses, textStyle]
|
|
5638
|
+
}, children));
|
|
5530
5639
|
});
|
|
5531
5640
|
Label.displayName = 'Label';
|
|
5532
5641
|
Label.propTypes = propTypes$E;
|
|
@@ -5536,7 +5645,7 @@ ListGroupContext.displayName = 'ListGroupContext';
|
|
|
5536
5645
|
|
|
5537
5646
|
var _excluded$D = ["children", "color", "active", "first", "last", "disabled", "style", "textStyle"];
|
|
5538
5647
|
|
|
5539
|
-
var _templateObject$y, _templateObject2$o, _templateObject3$c, _templateObject4$a, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$4, _templateObject9$
|
|
5648
|
+
var _templateObject$y, _templateObject2$o, _templateObject3$c, _templateObject4$a, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$1;
|
|
5540
5649
|
var propTypes$D = {
|
|
5541
5650
|
children: PropTypes.node.isRequired,
|
|
5542
5651
|
color: PropTypes.oneOf(Object.keys(THEME_COLORS)),
|
|
@@ -5558,14 +5667,14 @@ var styles$x = StyleSheet.create(_objectSpread2({
|
|
|
5558
5667
|
'.list-group-item-disabled-text': css(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteral(["\n color: $list-group-disabled-color;\n "]))),
|
|
5559
5668
|
'.list-group-item-active': css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n z-index: 2; // Place active items above their siblings for proper border styling\n background-color: $list-group-active-bg;\n border-color: $list-group-active-border-color;\n "]))),
|
|
5560
5669
|
'.list-group-item-active-text': css(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteral(["\n color: $list-group-active-color;\n "]))),
|
|
5561
|
-
'.list-group-item-not-first': css(_templateObject9$
|
|
5562
|
-
'.list-group-item-not-first-active': css(_templateObject10$
|
|
5563
|
-
'.list-group-item-flush': css(_templateObject11$
|
|
5564
|
-
'.list-group-item-flush-last': css(_templateObject12$
|
|
5670
|
+
'.list-group-item-not-first': css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteral(["\n border-top-width: 0;\n "]))),
|
|
5671
|
+
'.list-group-item-not-first-active': css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteral(["\n margin-top: -$list-group-border-width;\n border-top-width: $list-group-border-width;\n "]))),
|
|
5672
|
+
'.list-group-item-flush': css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteral(["\n border-top-left-radius: 0; // added for bootstrap-rn\n border-top-right-radius: 0; // added for bootstrap-rn\n border-bottom-left-radius: 0; // added for bootstrap-rn\n border-bottom-right-radius: 0; // added for bootstrap-rn\n border-top-width: 0;\n border-right-width: 0;\n border-bottom-width: $list-group-border-width;\n border-left-width: 0;\n "]))),
|
|
5673
|
+
'.list-group-item-flush-last': css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteral(["\n border-bottom-width: 0;\n "])))
|
|
5565
5674
|
}, each(THEME_COLORS, function (state, value) {
|
|
5566
5675
|
var _ref;
|
|
5567
5676
|
|
|
5568
|
-
return _ref = {}, _defineProperty(_ref, ".list-group-item-".concat(state), css(_templateObject13$
|
|
5677
|
+
return _ref = {}, _defineProperty(_ref, ".list-group-item-".concat(state), css(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), shiftColor(function (t) {
|
|
5569
5678
|
return t['list-group-item-bg-scale'];
|
|
5570
5679
|
}, value))), _defineProperty(_ref, ".list-group-item-".concat(state, "-text"), css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteral(["\n color: ", ";\n "])), shiftColor(function (t) {
|
|
5571
5680
|
return t['list-group-item-color-scale'];
|
|
@@ -5879,9 +5988,7 @@ var computeScrollbarWidth = function computeScrollbarWidth() {
|
|
|
5879
5988
|
};
|
|
5880
5989
|
|
|
5881
5990
|
function useScrollbarEffects(_ref) {
|
|
5882
|
-
var
|
|
5883
|
-
keepBodyScroll = _ref.keepBodyScroll,
|
|
5884
|
-
centered = _ref.centered,
|
|
5991
|
+
var keepBodyScroll = _ref.keepBodyScroll,
|
|
5885
5992
|
visible = _ref.visible;
|
|
5886
5993
|
|
|
5887
5994
|
if (Platform.OS !== 'web' || keepBodyScroll) {
|
|
@@ -5896,9 +6003,9 @@ function useScrollbarEffects(_ref) {
|
|
|
5896
6003
|
|
|
5897
6004
|
if (!scrollbarWidth.current) {
|
|
5898
6005
|
scrollbarWidth.current = computeScrollbarWidth();
|
|
5899
|
-
}
|
|
6006
|
+
} // const element = findNodeHandle(ref.current);
|
|
6007
|
+
|
|
5900
6008
|
|
|
5901
|
-
var element = findNodeHandle(ref.current);
|
|
5902
6009
|
var rect = document.body.getBoundingClientRect();
|
|
5903
6010
|
var isBodyOverflowing = rect.left + rect.right < window.innerWidth; // Set body and fixed elements padding adjustments.
|
|
5904
6011
|
|
|
@@ -5913,21 +6020,6 @@ function useScrollbarEffects(_ref) {
|
|
|
5913
6020
|
// eslint-disable-next-line no-param-reassign
|
|
5914
6021
|
el.style.width = "calc(100% - ".concat(scrollbarWidth.current, "px)");
|
|
5915
6022
|
});
|
|
5916
|
-
}
|
|
5917
|
-
|
|
5918
|
-
var isModalOverflowing = element.scrollHeight > document.documentElement.clientHeight;
|
|
5919
|
-
|
|
5920
|
-
if (centered) {
|
|
5921
|
-
// Set dialog padding adjustments.
|
|
5922
|
-
if (!isBodyOverflowing && isModalOverflowing) {
|
|
5923
|
-
// eslint-disable-next-line no-param-reassign
|
|
5924
|
-
element.style.paddingLeft = "".concat(scrollbarWidth.current, "px");
|
|
5925
|
-
}
|
|
5926
|
-
|
|
5927
|
-
if (isBodyOverflowing && !isModalOverflowing) {
|
|
5928
|
-
// eslint-disable-next-line no-param-reassign
|
|
5929
|
-
element.style.paddingRight = "".concat(scrollbarWidth.current, "px");
|
|
5930
|
-
}
|
|
5931
6023
|
} // Add "overflow: hidden" to body element.
|
|
5932
6024
|
|
|
5933
6025
|
|
|
@@ -5952,9 +6044,6 @@ function useModal(scrollable) {
|
|
|
5952
6044
|
}, [scrollable]);
|
|
5953
6045
|
}
|
|
5954
6046
|
|
|
5955
|
-
var ModalContext = /*#__PURE__*/React.createContext();
|
|
5956
|
-
ModalContext.displayName = 'ModalContext';
|
|
5957
|
-
|
|
5958
6047
|
var _excluded$y = ["children", "style"];
|
|
5959
6048
|
|
|
5960
6049
|
var _templateObject$u;
|
|
@@ -6007,13 +6096,15 @@ var ModalTitle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6007
6096
|
ModalTitle.displayName = 'ModalTitle';
|
|
6008
6097
|
ModalTitle.propTypes = propTypes$x;
|
|
6009
6098
|
|
|
6010
|
-
var _excluded$w = ["children", "style"];
|
|
6099
|
+
var _excluded$w = ["children", "style", "contentContainerStyle"];
|
|
6011
6100
|
|
|
6012
6101
|
var _templateObject$s;
|
|
6013
6102
|
var propTypes$w = {
|
|
6014
6103
|
children: PropTypes.node.isRequired,
|
|
6015
6104
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6016
|
-
style: PropTypes.any
|
|
6105
|
+
style: PropTypes.any,
|
|
6106
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6107
|
+
contentContainerStyle: PropTypes.any
|
|
6017
6108
|
};
|
|
6018
6109
|
var styles$s = StyleSheet.create({
|
|
6019
6110
|
'.modal-body': css(_templateObject$s || (_templateObject$s = _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 "])))
|
|
@@ -6021,6 +6112,7 @@ var styles$s = StyleSheet.create({
|
|
|
6021
6112
|
var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6022
6113
|
var children = props.children,
|
|
6023
6114
|
style = props.style,
|
|
6115
|
+
contentContainerStyle = props.contentContainerStyle,
|
|
6024
6116
|
elementProps = _objectWithoutProperties(props, _excluded$w);
|
|
6025
6117
|
|
|
6026
6118
|
var _useForcedContext = useForcedContext(ModalContext),
|
|
@@ -6030,8 +6122,8 @@ var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6030
6122
|
var FlexView = scrollable ? ScrollView : View;
|
|
6031
6123
|
return /*#__PURE__*/React.createElement(FlexView, _extends({}, elementProps, {
|
|
6032
6124
|
ref: ref,
|
|
6033
|
-
style: scrollable ?
|
|
6034
|
-
contentContainerStyle: scrollable ? [classes,
|
|
6125
|
+
style: scrollable ? style : [classes, style],
|
|
6126
|
+
contentContainerStyle: scrollable ? [classes, contentContainerStyle] : undefined
|
|
6035
6127
|
}), children);
|
|
6036
6128
|
});
|
|
6037
6129
|
ModalBody.displayName = 'ModalBody';
|
|
@@ -6064,7 +6156,7 @@ ModalFooter.propTypes = propTypes$v;
|
|
|
6064
6156
|
|
|
6065
6157
|
var _excluded$u = ["children", "visible", "size", "backdrop", "scrollable", "centered", "onToggle", "style", "textStyle"];
|
|
6066
6158
|
|
|
6067
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$a, _templateObject4$8, _templateObject5$6, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$
|
|
6159
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$a, _templateObject4$8, _templateObject5$6, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$2, _templateObject10$2, _templateObject11$2;
|
|
6068
6160
|
var MODAL_SIZES = ['sm', 'lg', 'xl'];
|
|
6069
6161
|
var propTypes$u = {
|
|
6070
6162
|
children: PropTypes.node.isRequired,
|
|
@@ -6081,16 +6173,16 @@ var propTypes$u = {
|
|
|
6081
6173
|
};
|
|
6082
6174
|
var styles$q = StyleSheet.create({
|
|
6083
6175
|
'.modal': css(_templateObject$q || (_templateObject$q = _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 "]))),
|
|
6084
|
-
'.modal-dialog': css(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteral(["\n position: relative;\n width: auto;\n margin: $modal-dialog-margin;\n // allow clicks to pass through for custom click handling to close modal\n // pointer-events: none;\n
|
|
6176
|
+
'.modal-dialog': css(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteral(["\n position: relative;\n width: auto;\n margin: $modal-dialog-margin;\n // allow clicks to pass through for custom click handling to close modal\n // pointer-events: none;\n\n @include media-breakpoint-up(sm) {\n width: 100%; // added for bootstrap-rn\n max-width: $modal-md;\n margin-right: auto;\n margin-left: auto;\n }\n "]))),
|
|
6085
6177
|
'.modal-dialog-scrollable': css(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteral(["\n flex-shrink: 1; // added for bootstrap-rn\n // height: calc(100% - var(--#{$prefix}modal-margin) * 2);\n "]))),
|
|
6086
6178
|
'.modal-dialog-scrollable .modal-content': css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteral(["\n max-height: 100%;\n overflow: hidden;\n "]))),
|
|
6087
6179
|
'.modal-dialog-centered': css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row; // added for bootstrap-rn\n flex-grow: 1; // added for bootstrap-rn\n align-items: center;\n // min-height: calc(100% - var(--#{$prefix}modal-margin) * 2);\n "]))),
|
|
6088
6180
|
'.modal-content': css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%; // Ensure \".modal-content\" extends the full width of the parent \".modal-dialog\"\n // counteract the pointer-events: none; in the .modal-dialog\n // pointer-events: auto;\n background-color: $modal-content-bg;\n // background-clip: padding-box;\n border: $modal-content-border-width solid $modal-content-border-color;\n border-radius: $modal-content-border-radius;\n // @include box-shadow($modal-content-box-shadow-xs);\n // Remove focus outline from opened modal\n // outline: 0;\n\n @include media-breakpoint-up(sm) {\n // @include box-shadow($modal-content-box-shadow-sm-up);\n }\n "]))),
|
|
6089
6181
|
'.modal-content-text': css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral(["\n color: $modal-content-color;\n "]))),
|
|
6090
6182
|
'.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 "]))),
|
|
6091
|
-
'.modal-sm': css(_templateObject9$
|
|
6092
|
-
'.modal-lg': css(_templateObject10$
|
|
6093
|
-
'.modal-xl': css(_templateObject11$
|
|
6183
|
+
'.modal-sm': css(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(sm) {\n max-width: $modal-sm;\n }\n "]))),
|
|
6184
|
+
'.modal-lg': css(_templateObject10$2 || (_templateObject10$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 "]))),
|
|
6185
|
+
'.modal-xl': css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(xl) {\n max-width: $modal-xl;\n }\n "])))
|
|
6094
6186
|
});
|
|
6095
6187
|
var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6096
6188
|
var children = props.children,
|
|
@@ -6107,13 +6199,10 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6107
6199
|
textStyle = props.textStyle,
|
|
6108
6200
|
elementProps = _objectWithoutProperties(props, _excluded$u);
|
|
6109
6201
|
|
|
6110
|
-
var modalRef = useRef();
|
|
6111
6202
|
var dialogRef = useRef();
|
|
6112
6203
|
var modal = useModal(scrollable);
|
|
6113
6204
|
useScrollbarEffects({
|
|
6114
|
-
ref: modalRef,
|
|
6115
6205
|
keepBodyScroll: false,
|
|
6116
|
-
centered: true,
|
|
6117
6206
|
visible: visible
|
|
6118
6207
|
});
|
|
6119
6208
|
var backdropClasses = getStyles(styles$q, ['.modal-backdrop']);
|
|
@@ -6130,7 +6219,6 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6130
6219
|
}, backdrop && /*#__PURE__*/React.createElement(View, {
|
|
6131
6220
|
style: backdropClasses
|
|
6132
6221
|
}), /*#__PURE__*/React.createElement(FlexView, {
|
|
6133
|
-
ref: modalRef,
|
|
6134
6222
|
style: classes,
|
|
6135
6223
|
contentContainerStyle: scrollable ? undefined : {
|
|
6136
6224
|
flexGrow: 1
|
|
@@ -6139,7 +6227,11 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6139
6227
|
dialogRef: dialogRef,
|
|
6140
6228
|
onClose: handleToggle,
|
|
6141
6229
|
backdrop: backdrop
|
|
6142
|
-
}), /*#__PURE__*/React.createElement(
|
|
6230
|
+
}), /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
6231
|
+
style: {
|
|
6232
|
+
flexShrink: 1
|
|
6233
|
+
}
|
|
6234
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
6143
6235
|
ref: dialogRef,
|
|
6144
6236
|
style: dialogClasses
|
|
6145
6237
|
}, /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
@@ -6148,7 +6240,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6148
6240
|
textStyle: [contentTextClasses, textStyle]
|
|
6149
6241
|
}), /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
6150
6242
|
value: modal
|
|
6151
|
-
}, children))))));
|
|
6243
|
+
}, /*#__PURE__*/React.createElement(OverlayProvider, null, children)))))));
|
|
6152
6244
|
});
|
|
6153
6245
|
Modal.displayName = 'Modal';
|
|
6154
6246
|
Modal.propTypes = propTypes$u;
|
|
@@ -6163,7 +6255,7 @@ NavContext.displayName = 'NavContext';
|
|
|
6163
6255
|
|
|
6164
6256
|
var _excluded$t = ["children", "active", "disabled", "style", "activeStyle", "textStyle", "activeTextStyle"];
|
|
6165
6257
|
|
|
6166
|
-
var _templateObject$p, _templateObject2$k, _templateObject3$9, _templateObject4$7, _templateObject5$5, _templateObject6$4, _templateObject7$3, _templateObject8$2, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
6258
|
+
var _templateObject$p, _templateObject2$k, _templateObject3$9, _templateObject4$7, _templateObject5$5, _templateObject6$4, _templateObject7$3, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
6167
6259
|
var propTypes$t = {
|
|
6168
6260
|
children: PropTypes.node.isRequired,
|
|
6169
6261
|
active: PropTypes.bool,
|
|
@@ -6186,12 +6278,12 @@ var styles$p = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
|
6186
6278
|
'.nav-tabs .nav-link-disabled': css(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral(["\n background-color: transparent;\n border-color: transparent;\n "]))),
|
|
6187
6279
|
'.nav-tabs .nav-link-disabled-text': css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteral(["\n color: $nav-link-disabled-color;\n "]))),
|
|
6188
6280
|
'.nav-tabs .nav-link-active': css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral(["\n background-color: $nav-tabs-link-active-bg;\n border-color: $nav-tabs-link-active-border-color;\n\n &:hover {\n background-color: $nav-tabs-link-active-bg; // added for bootstrap-rn\n border-color: $nav-tabs-link-active-border-color; // added for bootstrap-rn\n }\n &:focus {\n background-color: $nav-tabs-link-active-bg; // added for bootstrap-rn\n border-color: $nav-tabs-link-active-border-color; // added for bootstrap-rn\n }\n "]))),
|
|
6189
|
-
'.nav-tabs .nav-link-active-text': css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: $nav-tabs-link-active-color;\n\n &:hover {\n color: $nav-tabs-link-active-color; // added for bootstrap-rn\n }\n &:focus {\n color: $nav-tabs-link-active-color; // added for bootstrap-rn\n }\n "]))),
|
|
6190
|
-
'.nav-pills .nav-link': css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background: transparent; // none;\n border: 0;\n border-radius: $nav-pills-border-radius;\n "]))),
|
|
6191
|
-
'.nav-pills .nav-link-active': css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n // @include gradient-bg($nav-pills-link-active-bg);\n background-color: $nav-pills-link-active-bg; // added for bootstrap-rn\n\n &:hover {\n background-color: $nav-pills-link-active-bg; // added for bootstrap-rn\n }\n &:focus {\n background-color: $nav-pills-link-active-bg; // added for bootstrap-rn\n }\n "]))),
|
|
6192
|
-
'.nav-pills .nav-link-active-text': css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n color: $nav-pills-link-active-color;\n\n &:hover {\n color: $nav-pills-link-active-color; // added for bootstrap-rn\n }\n &:focus {\n color: $nav-pills-link-active-color; // added for bootstyl\n }\n "]))),
|
|
6281
|
+
'.nav-tabs .nav-link-active-text': css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteral(["\n color: $nav-tabs-link-active-color;\n\n &:hover {\n color: $nav-tabs-link-active-color; // added for bootstrap-rn\n }\n &:focus {\n color: $nav-tabs-link-active-color; // added for bootstrap-rn\n }\n "]))),
|
|
6282
|
+
'.nav-pills .nav-link': css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteral(["\n background: transparent; // none;\n border: 0;\n border-radius: $nav-pills-border-radius;\n "]))),
|
|
6283
|
+
'.nav-pills .nav-link-active': css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteral(["\n // @include gradient-bg($nav-pills-link-active-bg);\n background-color: $nav-pills-link-active-bg; // added for bootstrap-rn\n\n &:hover {\n background-color: $nav-pills-link-active-bg; // added for bootstrap-rn\n }\n &:focus {\n background-color: $nav-pills-link-active-bg; // added for bootstrap-rn\n }\n "]))),
|
|
6284
|
+
'.nav-pills .nav-link-active-text': css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteral(["\n color: $nav-pills-link-active-color;\n\n &:hover {\n color: $nav-pills-link-active-color; // added for bootstrap-rn\n }\n &:focus {\n color: $nav-pills-link-active-color; // added for bootstyl\n }\n "]))),
|
|
6193
6285
|
// Navbar styles
|
|
6194
|
-
'.navbar-nav .nav-link': css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding-right: 0;\n padding-left: 0;\n "])))
|
|
6286
|
+
'.navbar-nav .nav-link': css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteral(["\n padding-right: 0;\n padding-left: 0;\n "])))
|
|
6195
6287
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
6196
6288
|
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .navbar-nav .nav-link"), css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n padding-right: $navbar-nav-link-padding-x;\n padding-left: $navbar-nav-link-padding-x;\n }\n "])), next(breakpoint)));
|
|
6197
6289
|
})), {}, {
|
|
@@ -6300,32 +6392,39 @@ Nav.propTypes = propTypes$s;
|
|
|
6300
6392
|
Nav.Context = NavContext;
|
|
6301
6393
|
Nav.Link = NavLink;
|
|
6302
6394
|
|
|
6303
|
-
var _excluded$r = ["children", "style"];
|
|
6395
|
+
var _excluded$r = ["children", "style", "textStyle"];
|
|
6304
6396
|
|
|
6305
6397
|
var _templateObject$n, _templateObject2$i, _templateObject3$7;
|
|
6306
6398
|
var propTypes$r = {
|
|
6307
6399
|
children: PropTypes.node.isRequired,
|
|
6308
6400
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6309
|
-
style: PropTypes.any
|
|
6401
|
+
style: PropTypes.any,
|
|
6402
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6403
|
+
textStyle: PropTypes.any
|
|
6310
6404
|
};
|
|
6311
6405
|
var styles$n = StyleSheet.create({
|
|
6312
6406
|
'.navbar-text': css(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n padding-top: $nav-link-padding-y;\n padding-bottom: $nav-link-padding-y;\n "]))),
|
|
6313
|
-
'.navbar-light .navbar-text': css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n color: $navbar-light-color;\n "]))),
|
|
6314
|
-
'.navbar-dark .navbar-text': css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n color: $navbar-dark-color;\n "])))
|
|
6407
|
+
'.navbar-light .navbar-text-text': css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n color: $navbar-light-color;\n "]))),
|
|
6408
|
+
'.navbar-dark .navbar-text-text': css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n color: $navbar-dark-color;\n "])))
|
|
6315
6409
|
});
|
|
6316
6410
|
var NavbarText = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6317
6411
|
var children = props.children,
|
|
6318
6412
|
style = props.style,
|
|
6413
|
+
textStyle = props.textStyle,
|
|
6319
6414
|
elementProps = _objectWithoutProperties(props, _excluded$r);
|
|
6320
6415
|
|
|
6321
6416
|
var _useForcedContext = useForcedContext(NavbarContext),
|
|
6322
6417
|
variant = _useForcedContext.variant;
|
|
6323
6418
|
|
|
6324
|
-
var classes = getStyles(styles$n, ['.navbar-text'
|
|
6325
|
-
|
|
6419
|
+
var classes = getStyles(styles$n, ['.navbar-text']);
|
|
6420
|
+
var textClasses = getStyles(styles$n, [".navbar-".concat(variant, " .navbar-text-text")]); // composite component
|
|
6421
|
+
|
|
6422
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
6326
6423
|
ref: ref,
|
|
6327
6424
|
style: [classes, style]
|
|
6328
|
-
}),
|
|
6425
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
6426
|
+
style: [textClasses, textStyle]
|
|
6427
|
+
}, children));
|
|
6329
6428
|
});
|
|
6330
6429
|
NavbarText.displayName = 'NavbarText';
|
|
6331
6430
|
NavbarText.propTypes = propTypes$r;
|
|
@@ -6556,6 +6655,12 @@ Navbar.Toggler = NavbarToggler;
|
|
|
6556
6655
|
Navbar.useDismiss = useDismissNavbar;
|
|
6557
6656
|
Navbar.useToggle = useToggleNavbar;
|
|
6558
6657
|
|
|
6658
|
+
function useOffcanvas() {
|
|
6659
|
+
return useMemo(function () {
|
|
6660
|
+
return {};
|
|
6661
|
+
}, []);
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6559
6664
|
var _excluded$k = ["children", "style"];
|
|
6560
6665
|
|
|
6561
6666
|
var _templateObject$i, _templateObject2$d;
|
|
@@ -6611,29 +6716,33 @@ var OffcanvasTitle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6611
6716
|
OffcanvasTitle.displayName = 'OffcanvasTitle';
|
|
6612
6717
|
OffcanvasTitle.propTypes = propTypes$l;
|
|
6613
6718
|
|
|
6614
|
-
var _excluded$i = ["children", "style"];
|
|
6719
|
+
var _excluded$i = ["children", "style", "contentContainerStyle"];
|
|
6615
6720
|
|
|
6616
6721
|
var _templateObject$g, _templateObject2$c;
|
|
6617
6722
|
var propTypes$k = {
|
|
6618
6723
|
children: PropTypes.node.isRequired,
|
|
6619
6724
|
// eslint-disable-next-line react/forbid-prop-types
|
|
6620
|
-
style: PropTypes.any
|
|
6725
|
+
style: PropTypes.any,
|
|
6726
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
6727
|
+
contentContainerStyle: PropTypes.any
|
|
6621
6728
|
};
|
|
6622
6729
|
var styles$g = StyleSheet.create(_objectSpread2({
|
|
6623
|
-
'.offcanvas-body': css(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n flex-grow: 1;\n padding: $offcanvas-padding-y $offcanvas-padding-x;\n // overflow-y: auto;\n "])))
|
|
6730
|
+
'.offcanvas-body': css(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n // flex-grow: 1;\n padding: $offcanvas-padding-y $offcanvas-padding-x;\n // overflow-y: auto;\n "])))
|
|
6624
6731
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
6625
6732
|
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .offcanvas-body"), css(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n display: flex;\n flex-grow: 0;\n padding: 0;\n // overflow-y: visible;\n }\n "])), next(breakpoint)));
|
|
6626
6733
|
})));
|
|
6627
6734
|
var OffcanvasBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6628
6735
|
var children = props.children,
|
|
6629
6736
|
style = props.style,
|
|
6737
|
+
contentContainerStyle = props.contentContainerStyle,
|
|
6630
6738
|
elementProps = _objectWithoutProperties(props, _excluded$i);
|
|
6631
6739
|
|
|
6632
6740
|
var navbar = useContext(NavbarContext);
|
|
6633
|
-
var
|
|
6634
|
-
return /*#__PURE__*/React.createElement(
|
|
6741
|
+
var contentContainerClasses = getStyles(styles$g, ['.offcanvas-body', navbar && navbar.expand && ".navbar-expand".concat(navbar.expand === true ? '' : "-".concat(navbar.expand), " .offcanvas-body")]);
|
|
6742
|
+
return /*#__PURE__*/React.createElement(ScrollView, _extends({}, elementProps, {
|
|
6635
6743
|
ref: ref,
|
|
6636
|
-
style:
|
|
6744
|
+
style: style,
|
|
6745
|
+
contentContainerStyle: [contentContainerClasses, contentContainerStyle]
|
|
6637
6746
|
}), children);
|
|
6638
6747
|
});
|
|
6639
6748
|
OffcanvasBody.displayName = 'OffcanvasBody';
|
|
@@ -6641,7 +6750,7 @@ OffcanvasBody.propTypes = propTypes$k;
|
|
|
6641
6750
|
|
|
6642
6751
|
var _excluded$h = ["children", "visible", "placement", "backdrop", "scroll", "onToggle", "style", "textStyle"];
|
|
6643
6752
|
|
|
6644
|
-
var _templateObject$f, _templateObject2$b, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$1, _templateObject8;
|
|
6753
|
+
var _templateObject$f, _templateObject2$b, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$1, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
6645
6754
|
var PLACEMENTS = ['top', 'bottom', 'start', 'end']; // , 'auto'
|
|
6646
6755
|
|
|
6647
6756
|
var propTypes$j = {
|
|
@@ -6658,15 +6767,23 @@ var propTypes$j = {
|
|
|
6658
6767
|
textStyle: PropTypes.any
|
|
6659
6768
|
};
|
|
6660
6769
|
var styles$f = StyleSheet.create(_objectSpread2({
|
|
6661
|
-
'.offcanvas': css(_templateObject$f || (_templateObject$f = _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 "]))),
|
|
6770
|
+
'.offcanvas': css(_templateObject$f || (_templateObject$f = _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 "]))),
|
|
6662
6771
|
'.offcanvas-text': css(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n color: $offcanvas-color;\n "]))),
|
|
6663
6772
|
'.offcanvas-backdrop': css(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n z-index: $zindex-offcanvas-backdrop;\n width: 100%;\n height: 100%;\n background-color: $offcanvas-backdrop-bg;\n opacity: $offcanvas-backdrop-opacity;\n "]))),
|
|
6664
|
-
'.offcanvas-start': css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n width: $offcanvas-horizontal-width;\n border-right-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateX(-100%);\n "]))),
|
|
6665
|
-
'.offcanvas-end': css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral(["\n top: 0;\n right: 0;\n width: $offcanvas-horizontal-width;\n border-left-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateX(100%);\n "]))),
|
|
6666
|
-
'.offcanvas-top': css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n top: 0;\n right: 0;\n left: 0;\n height: $offcanvas-vertical-height;\n max-height: 100%;\n border-bottom-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateY(-100%);\n "]))),
|
|
6667
|
-
'.offcanvas-bottom': css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral(["\n right: 0;\n left: 0;\n height: $offcanvas-vertical-height;\n max-height: 100%;\n width: 100%;\n border-top-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateY(100%);\n "])))
|
|
6773
|
+
'.offcanvas-start': css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n top: 0;\n bottom: 0; // added for bootstrap-rn\n left: 0;\n // width: $offcanvas-horizontal-width;\n border-right-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateX(-100%);\n "]))),
|
|
6774
|
+
'.offcanvas-end': css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral(["\n top: 0;\n bottom: 0; // added for bootstrap-rn\n right: 0;\n // width: $offcanvas-horizontal-width;\n border-left-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateX(100%);\n "]))),
|
|
6775
|
+
'.offcanvas-top': css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n top: 0;\n right: 0;\n left: 0;\n // height: $offcanvas-vertical-height;\n max-height: 100%;\n border-bottom-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateY(-100%);\n "]))),
|
|
6776
|
+
'.offcanvas-bottom': css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral(["\n bottom: 0; // added for bootstrap-rn\n right: 0;\n left: 0;\n // height: $offcanvas-vertical-height;\n max-height: 100%;\n width: 100%;\n border-top-width: $offcanvas-border-width;\n border-style: solid;\n border-color: $offcanvas-border-color;\n // transform: translateY(100%);\n "]))),
|
|
6777
|
+
// The following .offcanvas-dialog classes are added for bootstrap-rn,
|
|
6778
|
+
// because otherwise the text would exceed a width of 100% on native
|
|
6779
|
+
// and also additional width by SafeAreaView would not be applied.
|
|
6780
|
+
'.offcanvas-dialog': css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n max-width: 100%;\n max-height: 100%;\n "]))),
|
|
6781
|
+
'.offcanvas-dialog-start': css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: $offcanvas-horizontal-width;\n "]))),
|
|
6782
|
+
'.offcanvas-dialog-end': css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: $offcanvas-horizontal-width;\n "]))),
|
|
6783
|
+
'.offcanvas-dialog-top': css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n height: $offcanvas-vertical-height;\n "]))),
|
|
6784
|
+
'.offcanvas-dialog-bottom': css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: $offcanvas-vertical-height;\n "])))
|
|
6668
6785
|
}, each(GRID_BREAKPOINTS, function (breakpoint) {
|
|
6669
|
-
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .offcanvas"), css(
|
|
6786
|
+
return _defineProperty({}, ".navbar-expand".concat(infix(next(breakpoint)), " .offcanvas"), css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n @include media-breakpoint-up(", ") {\n position: relative; // inherit;\n bottom: 0;\n // z-index: auto;\n flex-grow: 1;\n // visibility: visible !important; // stylelint-disable-line declaration-no-important\n background-color: transparent;\n border-right-width: 0;\n border-left-width: 0;\n // @include box-shadow(none);\n // @include transition(none);\n // transform: none;\n }\n "])), next(breakpoint)));
|
|
6670
6787
|
})));
|
|
6671
6788
|
var Offcanvas = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6672
6789
|
var children = props.children,
|
|
@@ -6685,14 +6802,14 @@ var Offcanvas = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6685
6802
|
var media = useMedia();
|
|
6686
6803
|
var navbar = useContext(NavbarContext);
|
|
6687
6804
|
var offcanvasRef = useRef();
|
|
6805
|
+
var offcanvas = useOffcanvas();
|
|
6688
6806
|
useScrollbarEffects({
|
|
6689
|
-
ref: offcanvasRef,
|
|
6690
6807
|
keepBodyScroll: scroll,
|
|
6691
|
-
centered: false,
|
|
6692
6808
|
visible: visible
|
|
6693
6809
|
});
|
|
6694
6810
|
var backdropClasses = getStyles(styles$f, ['.offcanvas-backdrop']);
|
|
6695
6811
|
var classes = getStyles(styles$f, ['.offcanvas', ".offcanvas-".concat(placement), navbar && navbar.expand && ".navbar-expand".concat(navbar.expand === true ? '' : "-".concat(navbar.expand), " .offcanvas")]);
|
|
6812
|
+
var dialogClasses = getStyles(styles$f, ['.offcanvas-dialog', ".offcanvas-dialog-".concat(placement)]);
|
|
6696
6813
|
var textClasses = getStyles(styles$f, ['.offcanvas-content-text']); // Render children without modal for navbar.
|
|
6697
6814
|
|
|
6698
6815
|
if (navbar && navbar.expand && (navbar.expand === true || media.up(navbar.expand))) {
|
|
@@ -6713,14 +6830,23 @@ var Offcanvas = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6713
6830
|
dialogRef: offcanvasRef,
|
|
6714
6831
|
onClose: handleToggle,
|
|
6715
6832
|
backdrop: backdrop
|
|
6716
|
-
})), /*#__PURE__*/React.createElement(
|
|
6833
|
+
})), /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
6717
6834
|
ref: concatRefs(offcanvasRef, ref),
|
|
6718
6835
|
style: [classes, style],
|
|
6719
6836
|
textStyle: [textClasses, textStyle]
|
|
6720
|
-
}), /*#__PURE__*/React.createElement(
|
|
6837
|
+
}), /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
6838
|
+
style: {
|
|
6839
|
+
flexShrink: 1
|
|
6840
|
+
}
|
|
6841
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
6842
|
+
style: dialogClasses
|
|
6843
|
+
}, /*#__PURE__*/React.createElement(OffcanvasContext.Provider, {
|
|
6844
|
+
value: offcanvas
|
|
6845
|
+
}, /*#__PURE__*/React.createElement(OverlayProvider, null, children))))));
|
|
6721
6846
|
});
|
|
6722
6847
|
Offcanvas.displayName = 'Offcanvas';
|
|
6723
6848
|
Offcanvas.propTypes = propTypes$j;
|
|
6849
|
+
Offcanvas.Context = OffcanvasContext;
|
|
6724
6850
|
Offcanvas.Header = OffcanvasHeader;
|
|
6725
6851
|
Offcanvas.Title = OffcanvasTitle;
|
|
6726
6852
|
Offcanvas.Body = OffcanvasBody;
|
|
@@ -7002,7 +7128,8 @@ var ProgressBar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7002
7128
|
max = _useForcedContext.max;
|
|
7003
7129
|
|
|
7004
7130
|
var classes = getStyles(styles$b, ['.progress-bar']);
|
|
7005
|
-
var textClasses = getStyles(styles$b, ['.progress-bar-text']);
|
|
7131
|
+
var textClasses = getStyles(styles$b, ['.progress-bar-text']); // composite component
|
|
7132
|
+
|
|
7006
7133
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
7007
7134
|
ref: ref,
|
|
7008
7135
|
accessibilityRole: "progressbar",
|
|
@@ -7011,9 +7138,10 @@ var ProgressBar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7011
7138
|
accessibilityValueMax: max,
|
|
7012
7139
|
style: [classes, style, {
|
|
7013
7140
|
width: "".concat(getPercentage(value, min, max), "%")
|
|
7014
|
-
}]
|
|
7015
|
-
|
|
7016
|
-
|
|
7141
|
+
}]
|
|
7142
|
+
}), children && /*#__PURE__*/React.createElement(Text, {
|
|
7143
|
+
style: [textClasses, textStyle]
|
|
7144
|
+
}, children));
|
|
7017
7145
|
});
|
|
7018
7146
|
ProgressBar.displayName = 'ProgressBar';
|
|
7019
7147
|
ProgressBar.propTypes = propTypes$f;
|