bootstrap-rn 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap-rn.cjs.js +253 -217
- package/dist/bootstrap-rn.esm.js +253 -217
- package/dist/bootstrap-rn.umd.js +253 -217
- package/dist/bootstrap-rn.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/bootstrap-rn.umd.js
CHANGED
|
@@ -6922,7 +6922,7 @@
|
|
|
6922
6922
|
};
|
|
6923
6923
|
}
|
|
6924
6924
|
|
|
6925
|
-
var _excluded$
|
|
6925
|
+
var _excluded$1x = ["children", "style", "textStyle", "styleName"];
|
|
6926
6926
|
var propTypes$1y = {
|
|
6927
6927
|
children: PropTypes.node,
|
|
6928
6928
|
// eslint-disable-next-line react/forbid-prop-types
|
|
@@ -6937,7 +6937,7 @@
|
|
|
6937
6937
|
style = props.style,
|
|
6938
6938
|
textStyle = props.textStyle,
|
|
6939
6939
|
styleName = props.styleName,
|
|
6940
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
6940
|
+
elementProps = _objectWithoutProperties(props, _excluded$1x);
|
|
6941
6941
|
|
|
6942
6942
|
var media = useMedia();
|
|
6943
6943
|
var context = React.useContext(TextStyleContext);
|
|
@@ -6961,7 +6961,7 @@
|
|
|
6961
6961
|
View.displayName = 'View';
|
|
6962
6962
|
View.propTypes = propTypes$1y;
|
|
6963
6963
|
|
|
6964
|
-
var _excluded$
|
|
6964
|
+
var _excluded$1w = ["children", "color", "dismissible", "style", "textStyle"];
|
|
6965
6965
|
|
|
6966
6966
|
var _templateObject$1c, _templateObject2$U, _templateObject3$s;
|
|
6967
6967
|
var propTypes$1x = {
|
|
@@ -6997,7 +6997,7 @@
|
|
|
6997
6997
|
dismissible = _props$dismissible === void 0 ? false : _props$dismissible,
|
|
6998
6998
|
style = props.style,
|
|
6999
6999
|
textStyle = props.textStyle,
|
|
7000
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7000
|
+
elementProps = _objectWithoutProperties(props, _excluded$1w);
|
|
7001
7001
|
|
|
7002
7002
|
var classes = getStyles(styles$1e, ['.alert', ".alert-".concat(color), dismissible && '.alert-dismissible']);
|
|
7003
7003
|
var textClasses = getStyles(styles$1e, [".alert-".concat(color, " --text")]);
|
|
@@ -7011,7 +7011,7 @@
|
|
|
7011
7011
|
Alert.displayName = 'Alert';
|
|
7012
7012
|
Alert.propTypes = propTypes$1x;
|
|
7013
7013
|
|
|
7014
|
-
var _excluded$
|
|
7014
|
+
var _excluded$1v = ["color", "bold", "italic", "mark", "small", "style", "styleName"];
|
|
7015
7015
|
|
|
7016
7016
|
var _templateObject$1b, _templateObject2$T, _templateObject3$r, _templateObject4$n, _templateObject5$k;
|
|
7017
7017
|
var propTypes$1w = {
|
|
@@ -7053,7 +7053,7 @@
|
|
|
7053
7053
|
small = _props$small === void 0 ? false : _props$small,
|
|
7054
7054
|
style = props.style,
|
|
7055
7055
|
styleName = props.styleName,
|
|
7056
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7056
|
+
elementProps = _objectWithoutProperties(props, _excluded$1v);
|
|
7057
7057
|
|
|
7058
7058
|
var media = useMedia();
|
|
7059
7059
|
var context = React.useContext(TextStyleContext);
|
|
@@ -7085,7 +7085,7 @@
|
|
|
7085
7085
|
Text.displayName = 'Text';
|
|
7086
7086
|
Text.propTypes = propTypes$1w;
|
|
7087
7087
|
|
|
7088
|
-
var _excluded$
|
|
7088
|
+
var _excluded$1u = ["children", "style", "textStyle"];
|
|
7089
7089
|
|
|
7090
7090
|
var _templateObject$1a, _templateObject2$S;
|
|
7091
7091
|
var propTypes$1v = {
|
|
@@ -7103,7 +7103,7 @@
|
|
|
7103
7103
|
var children = props.children,
|
|
7104
7104
|
style = props.style,
|
|
7105
7105
|
textStyle = props.textStyle,
|
|
7106
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7106
|
+
elementProps = _objectWithoutProperties(props, _excluded$1u);
|
|
7107
7107
|
|
|
7108
7108
|
var classes = getStyles(styles$1c, ['.badge']);
|
|
7109
7109
|
var textClasses = getStyles(styles$1c, ['.badge --text']); // composite component
|
|
@@ -7186,7 +7186,7 @@
|
|
|
7186
7186
|
return context;
|
|
7187
7187
|
}
|
|
7188
7188
|
|
|
7189
|
-
var _excluded$
|
|
7189
|
+
var _excluded$1t = ["children", "active", "style", "dividerStyle", "textStyle"];
|
|
7190
7190
|
|
|
7191
7191
|
var _templateObject$19, _templateObject2$R, _templateObject3$q;
|
|
7192
7192
|
var propTypes$1u = {
|
|
@@ -7211,7 +7211,7 @@
|
|
|
7211
7211
|
style = props.style,
|
|
7212
7212
|
dividerStyle = props.dividerStyle,
|
|
7213
7213
|
textStyle = props.textStyle,
|
|
7214
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7214
|
+
elementProps = _objectWithoutProperties(props, _excluded$1t);
|
|
7215
7215
|
|
|
7216
7216
|
var _useForcedContext = useForcedContext(ListContext),
|
|
7217
7217
|
first = _useForcedContext.first;
|
|
@@ -7236,7 +7236,7 @@
|
|
|
7236
7236
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
7237
7237
|
BreadcrumbItem.propTypes = propTypes$1u;
|
|
7238
7238
|
|
|
7239
|
-
var _excluded$
|
|
7239
|
+
var _excluded$1s = ["children", "style", "textStyle"];
|
|
7240
7240
|
|
|
7241
7241
|
var _templateObject$18, _templateObject2$Q;
|
|
7242
7242
|
var propTypes$1t = {
|
|
@@ -7254,7 +7254,7 @@
|
|
|
7254
7254
|
var children = props.children,
|
|
7255
7255
|
style = props.style,
|
|
7256
7256
|
textStyle = props.textStyle,
|
|
7257
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7257
|
+
elementProps = _objectWithoutProperties(props, _excluded$1s);
|
|
7258
7258
|
|
|
7259
7259
|
var list = useList(children);
|
|
7260
7260
|
var classes = getStyles(styles$1a, ['.breadcrumb']);
|
|
@@ -7274,7 +7274,7 @@
|
|
|
7274
7274
|
var ButtonGroupContext = /*#__PURE__*/React__default["default"].createContext();
|
|
7275
7275
|
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
7276
7276
|
|
|
7277
|
-
var _excluded$
|
|
7277
|
+
var _excluded$1r = ["children", "size", "style"];
|
|
7278
7278
|
|
|
7279
7279
|
var _templateObject$17;
|
|
7280
7280
|
var propTypes$1s = {
|
|
@@ -7290,7 +7290,7 @@
|
|
|
7290
7290
|
var children = props.children,
|
|
7291
7291
|
size = props.size,
|
|
7292
7292
|
style = props.style,
|
|
7293
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7293
|
+
elementProps = _objectWithoutProperties(props, _excluded$1r);
|
|
7294
7294
|
|
|
7295
7295
|
var list = useList(children);
|
|
7296
7296
|
var classes = getStyles(styles$19, ['.btn-group']); // Accessiblity role tabpanel is only supported on web.
|
|
@@ -7309,7 +7309,7 @@
|
|
|
7309
7309
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
7310
7310
|
ButtonGroup.propTypes = propTypes$1s;
|
|
7311
7311
|
|
|
7312
|
-
var _excluded$
|
|
7312
|
+
var _excluded$1q = ["children", "style"];
|
|
7313
7313
|
|
|
7314
7314
|
var _templateObject$16;
|
|
7315
7315
|
var propTypes$1r = {
|
|
@@ -7323,7 +7323,7 @@
|
|
|
7323
7323
|
var ButtonToolbar = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
7324
7324
|
var children = props.children,
|
|
7325
7325
|
style = props.style,
|
|
7326
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7326
|
+
elementProps = _objectWithoutProperties(props, _excluded$1q);
|
|
7327
7327
|
|
|
7328
7328
|
var classes = getStyles(styles$18, ['.btn-toolbar']);
|
|
7329
7329
|
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
@@ -7335,7 +7335,7 @@
|
|
|
7335
7335
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
7336
7336
|
ButtonToolbar.propTypes = propTypes$1r;
|
|
7337
7337
|
|
|
7338
|
-
var _excluded$
|
|
7338
|
+
var _excluded$1p = ["ref"];
|
|
7339
7339
|
function useModifier(name, props, ref) {
|
|
7340
7340
|
var context = useForcedContext(Context);
|
|
7341
7341
|
var useModifierHook = context.modifiers[name];
|
|
@@ -7346,12 +7346,12 @@
|
|
|
7346
7346
|
|
|
7347
7347
|
var _useModifierHook = useModifierHook(props),
|
|
7348
7348
|
modifierRef = _useModifierHook.ref,
|
|
7349
|
-
modifierProps = _objectWithoutProperties(_useModifierHook, _excluded$
|
|
7349
|
+
modifierProps = _objectWithoutProperties(_useModifierHook, _excluded$1p);
|
|
7350
7350
|
|
|
7351
7351
|
return [modifierProps, concatRefs(modifierRef, ref)];
|
|
7352
7352
|
}
|
|
7353
7353
|
|
|
7354
|
-
var _excluded$
|
|
7354
|
+
var _excluded$1o = ["toggle", "dismiss"],
|
|
7355
7355
|
_excluded2$2 = ["ref"];
|
|
7356
7356
|
|
|
7357
7357
|
var getActionHook = function getActionHook(toggle, dismiss) {
|
|
@@ -7369,7 +7369,7 @@
|
|
|
7369
7369
|
function useAction(props, ref) {
|
|
7370
7370
|
var toggle = props.toggle,
|
|
7371
7371
|
dismiss = props.dismiss,
|
|
7372
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7372
|
+
restProps = _objectWithoutProperties(props, _excluded$1o);
|
|
7373
7373
|
|
|
7374
7374
|
var useActionHook = getActionHook(toggle, dismiss);
|
|
7375
7375
|
|
|
@@ -7388,7 +7388,7 @@
|
|
|
7388
7388
|
return [actionProps, concatRefs(actionRef, ref)];
|
|
7389
7389
|
}
|
|
7390
7390
|
|
|
7391
|
-
var _excluded$
|
|
7391
|
+
var _excluded$1n = ["children", "active", "style", "activeStyle", "textStyle", "activeTextStyle", "styleName"];
|
|
7392
7392
|
var propTypes$1q = {
|
|
7393
7393
|
children: PropTypes.node,
|
|
7394
7394
|
active: PropTypes.bool,
|
|
@@ -7441,7 +7441,7 @@
|
|
|
7441
7441
|
textStyle = actionProps.textStyle,
|
|
7442
7442
|
activeTextStyle = actionProps.activeTextStyle,
|
|
7443
7443
|
styleName = actionProps.styleName,
|
|
7444
|
-
elementProps = _objectWithoutProperties(actionProps, _excluded$
|
|
7444
|
+
elementProps = _objectWithoutProperties(actionProps, _excluded$1n);
|
|
7445
7445
|
|
|
7446
7446
|
var media = useMedia();
|
|
7447
7447
|
var context = React.useContext(TextStyleContext);
|
|
@@ -7480,11 +7480,11 @@
|
|
|
7480
7480
|
Pressable.displayName = 'Pressable';
|
|
7481
7481
|
Pressable.propTypes = propTypes$1q;
|
|
7482
7482
|
|
|
7483
|
-
var _excluded$
|
|
7483
|
+
var _excluded$1m = ["active", "handlePress"];
|
|
7484
7484
|
function useToggleButton(props) {
|
|
7485
7485
|
var active = props.active,
|
|
7486
7486
|
handlePress = props.handlePress,
|
|
7487
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7487
|
+
restProps = _objectWithoutProperties(props, _excluded$1m);
|
|
7488
7488
|
|
|
7489
7489
|
var _useState = React.useState(active),
|
|
7490
7490
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7503,7 +7503,7 @@
|
|
|
7503
7503
|
});
|
|
7504
7504
|
}
|
|
7505
7505
|
|
|
7506
|
-
var _excluded$
|
|
7506
|
+
var _excluded$1l = ["children", "color", "size", "outline", "active", "disabled", "style", "activeStyle", "textStyle", "activeTextStyle"];
|
|
7507
7507
|
|
|
7508
7508
|
var _templateObject$15, _templateObject2$P, _templateObject3$p, _templateObject4$m, _templateObject5$j, _templateObject6$g, _templateObject7$b, _templateObject8$b, _templateObject9$9, _templateObject10$9, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$4, _templateObject15$3, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21, _templateObject22, _templateObject23;
|
|
7509
7509
|
var propTypes$1p = {
|
|
@@ -7594,7 +7594,7 @@
|
|
|
7594
7594
|
activeStyle = props.activeStyle,
|
|
7595
7595
|
textStyle = props.textStyle,
|
|
7596
7596
|
activeTextStyle = props.activeTextStyle,
|
|
7597
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7597
|
+
elementProps = _objectWithoutProperties(props, _excluded$1l);
|
|
7598
7598
|
|
|
7599
7599
|
invariant(color !== 'link' || !outline, 'Button link variant is only available as non outline style.');
|
|
7600
7600
|
var listItem = React.useContext(ListContext);
|
|
@@ -7617,7 +7617,7 @@
|
|
|
7617
7617
|
Button.propTypes = propTypes$1p;
|
|
7618
7618
|
Button.useToggle = useToggleButton;
|
|
7619
7619
|
|
|
7620
|
-
var _excluded$
|
|
7620
|
+
var _excluded$1k = ["children", "style", "textStyle"];
|
|
7621
7621
|
|
|
7622
7622
|
var _templateObject$14, _templateObject2$O;
|
|
7623
7623
|
var propTypes$1o = {
|
|
@@ -7635,7 +7635,7 @@
|
|
|
7635
7635
|
var children = props.children,
|
|
7636
7636
|
style = props.style,
|
|
7637
7637
|
textStyle = props.textStyle,
|
|
7638
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7638
|
+
elementProps = _objectWithoutProperties(props, _excluded$1k);
|
|
7639
7639
|
|
|
7640
7640
|
var classes = getStyles(styles$16, ['blockquote']);
|
|
7641
7641
|
var textClasses = getStyles(styles$16, ['blockquote --text']); // Accessiblity role blockquote is only supported on web.
|
|
@@ -7651,7 +7651,7 @@
|
|
|
7651
7651
|
Blockquote.displayName = 'Blockquote';
|
|
7652
7652
|
Blockquote.propTypes = propTypes$1o;
|
|
7653
7653
|
|
|
7654
|
-
var _excluded$
|
|
7654
|
+
var _excluded$1j = ["children", "style", "textStyle", "styleName"];
|
|
7655
7655
|
|
|
7656
7656
|
var _templateObject$13, _templateObject2$N;
|
|
7657
7657
|
var propTypes$1n = {
|
|
@@ -7664,7 +7664,7 @@
|
|
|
7664
7664
|
styleName: PropTypes.any
|
|
7665
7665
|
};
|
|
7666
7666
|
var styles$15 = StyleSheet.create({
|
|
7667
|
-
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n
|
|
7667
|
+
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n height: 100%; // added for bootstrap-rn\n "]))),
|
|
7668
7668
|
'body --text': css(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteral(["\n color: $body-color;\n text-align: $body-text-align;\n "])))
|
|
7669
7669
|
});
|
|
7670
7670
|
var Body = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
@@ -7672,7 +7672,7 @@
|
|
|
7672
7672
|
style = props.style,
|
|
7673
7673
|
textStyle = props.textStyle,
|
|
7674
7674
|
styleName = props.styleName,
|
|
7675
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7675
|
+
elementProps = _objectWithoutProperties(props, _excluded$1j);
|
|
7676
7676
|
|
|
7677
7677
|
var classes = getStyles(styles$15, ['body']);
|
|
7678
7678
|
var textClasses = getStyles(styles$15, ['body --text']);
|
|
@@ -7695,7 +7695,7 @@
|
|
|
7695
7695
|
Body.displayName = 'Body';
|
|
7696
7696
|
Body.propTypes = propTypes$1n;
|
|
7697
7697
|
|
|
7698
|
-
var _excluded$
|
|
7698
|
+
var _excluded$1i = ["children", "style", "textStyle"];
|
|
7699
7699
|
|
|
7700
7700
|
var _templateObject$12, _templateObject2$M;
|
|
7701
7701
|
var propTypes$1m = {
|
|
@@ -7713,7 +7713,7 @@
|
|
|
7713
7713
|
var children = props.children,
|
|
7714
7714
|
style = props.style,
|
|
7715
7715
|
textStyle = props.textStyle,
|
|
7716
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7716
|
+
elementProps = _objectWithoutProperties(props, _excluded$1i);
|
|
7717
7717
|
|
|
7718
7718
|
var classes = getStyles(styles$14, ['.card-body']);
|
|
7719
7719
|
var textClasses = getStyles(styles$14, [".card-body --text"]);
|
|
@@ -7726,7 +7726,7 @@
|
|
|
7726
7726
|
CardBody.displayName = 'CardBody';
|
|
7727
7727
|
CardBody.propTypes = propTypes$1m;
|
|
7728
7728
|
|
|
7729
|
-
var _excluded$
|
|
7729
|
+
var _excluded$1h = ["children", "style", "textStyle"];
|
|
7730
7730
|
|
|
7731
7731
|
var _templateObject$11, _templateObject2$L;
|
|
7732
7732
|
var propTypes$1l = {
|
|
@@ -7744,7 +7744,7 @@
|
|
|
7744
7744
|
var children = props.children,
|
|
7745
7745
|
style = props.style,
|
|
7746
7746
|
textStyle = props.textStyle,
|
|
7747
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7747
|
+
elementProps = _objectWithoutProperties(props, _excluded$1h);
|
|
7748
7748
|
|
|
7749
7749
|
var classes = getStyles(styles$13, ['.card-header']);
|
|
7750
7750
|
var textClasses = getStyles(styles$13, ['.card-header --text']);
|
|
@@ -7757,7 +7757,7 @@
|
|
|
7757
7757
|
CardHeader.displayName = 'CardHeader';
|
|
7758
7758
|
CardHeader.propTypes = propTypes$1l;
|
|
7759
7759
|
|
|
7760
|
-
var _excluded$
|
|
7760
|
+
var _excluded$1g = ["children", "style", "textStyle"];
|
|
7761
7761
|
|
|
7762
7762
|
var _templateObject$10, _templateObject2$K;
|
|
7763
7763
|
var propTypes$1k = {
|
|
@@ -7775,7 +7775,7 @@
|
|
|
7775
7775
|
var children = props.children,
|
|
7776
7776
|
style = props.style,
|
|
7777
7777
|
textStyle = props.textStyle,
|
|
7778
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7778
|
+
elementProps = _objectWithoutProperties(props, _excluded$1g);
|
|
7779
7779
|
|
|
7780
7780
|
var classes = getStyles(styles$12, ['.card-footer']);
|
|
7781
7781
|
var textClasses = getStyles(styles$12, ['.card-footer --text']);
|
|
@@ -7788,7 +7788,7 @@
|
|
|
7788
7788
|
CardFooter.displayName = 'CardFooter';
|
|
7789
7789
|
CardFooter.propTypes = propTypes$1k;
|
|
7790
7790
|
|
|
7791
|
-
var _excluded$
|
|
7791
|
+
var _excluded$1f = ["children", "style"];
|
|
7792
7792
|
|
|
7793
7793
|
var _templateObject$$;
|
|
7794
7794
|
var propTypes$1j = {
|
|
@@ -7802,7 +7802,7 @@
|
|
|
7802
7802
|
var Card = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
7803
7803
|
var children = props.children,
|
|
7804
7804
|
style = props.style,
|
|
7805
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
7805
|
+
elementProps = _objectWithoutProperties(props, _excluded$1f);
|
|
7806
7806
|
|
|
7807
7807
|
var classes = getStyles(styles$11, ['.card']);
|
|
7808
7808
|
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
@@ -8118,7 +8118,7 @@
|
|
|
8118
8118
|
return useBackgroundForPlatform(style, styleName);
|
|
8119
8119
|
}
|
|
8120
8120
|
|
|
8121
|
-
var _excluded$
|
|
8121
|
+
var _excluded$1e = ["children", "onFocus", "onBlur", "onHoverIn", "onHoverOut", "onPressIn", "onPressOut", "disabled", "style", "textStyle", "styleName"];
|
|
8122
8122
|
|
|
8123
8123
|
var _templateObject$_, _templateObject2$J, _templateObject3$o, _templateObject4$l, _templateObject5$i;
|
|
8124
8124
|
var propTypes$1i = {
|
|
@@ -8167,7 +8167,7 @@
|
|
|
8167
8167
|
style = props.style,
|
|
8168
8168
|
textStyle = props.textStyle,
|
|
8169
8169
|
styleName = props.styleName,
|
|
8170
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
8170
|
+
elementProps = _objectWithoutProperties(props, _excluded$1e);
|
|
8171
8171
|
|
|
8172
8172
|
var media = useMedia();
|
|
8173
8173
|
|
|
@@ -8257,26 +8257,28 @@
|
|
|
8257
8257
|
}
|
|
8258
8258
|
|
|
8259
8259
|
function useControlledState(defaultValue, controlledValue) {
|
|
8260
|
-
var
|
|
8260
|
+
var handleChange = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {};
|
|
8261
8261
|
|
|
8262
8262
|
var _useState = React.useState(defaultValue),
|
|
8263
8263
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8264
8264
|
stateValue = _useState2[0],
|
|
8265
8265
|
setStateValue = _useState2[1];
|
|
8266
8266
|
|
|
8267
|
-
var isControlled =
|
|
8267
|
+
var isControlled = controlledValue !== undefined && controlledValue !== null;
|
|
8268
8268
|
var value = isControlled ? controlledValue : stateValue;
|
|
8269
8269
|
|
|
8270
|
-
var setValue = function setValue(
|
|
8270
|
+
var setValue = function setValue(next) {
|
|
8271
|
+
var nextValue = typeof next === 'function' ? next(value) : next;
|
|
8272
|
+
|
|
8271
8273
|
if (value === nextValue) {
|
|
8272
8274
|
return;
|
|
8273
8275
|
}
|
|
8274
8276
|
|
|
8275
8277
|
if (!isControlled) {
|
|
8276
|
-
setStateValue(
|
|
8278
|
+
setStateValue(next);
|
|
8277
8279
|
}
|
|
8278
8280
|
|
|
8279
|
-
|
|
8281
|
+
handleChange(nextValue);
|
|
8280
8282
|
};
|
|
8281
8283
|
|
|
8282
8284
|
return [value, setValue];
|
|
@@ -8321,12 +8323,12 @@
|
|
|
8321
8323
|
CollapseProvider.displayName = 'CollapseProvider';
|
|
8322
8324
|
CollapseProvider.propTypes = propTypes$1h;
|
|
8323
8325
|
|
|
8324
|
-
var _excluded$
|
|
8326
|
+
var _excluded$1d = ["onPress"];
|
|
8325
8327
|
function useToggleCollapse(props) {
|
|
8326
8328
|
var context = useForcedContext(CollapseContext);
|
|
8327
8329
|
|
|
8328
8330
|
var handlePress = props.onPress,
|
|
8329
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
8331
|
+
restProps = _objectWithoutProperties(props, _excluded$1d);
|
|
8330
8332
|
|
|
8331
8333
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
8332
8334
|
onPress: function onPress(event) {
|
|
@@ -8340,13 +8342,13 @@
|
|
|
8340
8342
|
});
|
|
8341
8343
|
}
|
|
8342
8344
|
|
|
8343
|
-
var _excluded$
|
|
8345
|
+
var _excluded$1c = ["children"];
|
|
8344
8346
|
var propTypes$1g = {
|
|
8345
8347
|
children: PropTypes.node
|
|
8346
8348
|
};
|
|
8347
8349
|
var Collapse = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
8348
8350
|
var children = props.children,
|
|
8349
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
8351
|
+
elementProps = _objectWithoutProperties(props, _excluded$1c);
|
|
8350
8352
|
|
|
8351
8353
|
var _useForcedContext = useForcedContext(CollapseContext),
|
|
8352
8354
|
identifier = _useForcedContext.identifier,
|
|
@@ -8387,7 +8389,7 @@
|
|
|
8387
8389
|
var NavbarContext = /*#__PURE__*/React__default["default"].createContext();
|
|
8388
8390
|
NavbarContext.displayName = 'NavbarContext';
|
|
8389
8391
|
|
|
8390
|
-
var _excluded$
|
|
8392
|
+
var _excluded$1b = ["fluid", "style"];
|
|
8391
8393
|
|
|
8392
8394
|
var _templateObject$Z, _templateObject2$I, _templateObject3$n, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$a, _templateObject8$a;
|
|
8393
8395
|
var propTypes$1f = {
|
|
@@ -8442,7 +8444,7 @@
|
|
|
8442
8444
|
var _props$fluid = props.fluid,
|
|
8443
8445
|
fluid = _props$fluid === void 0 ? 'sm' : _props$fluid,
|
|
8444
8446
|
style = props.style,
|
|
8445
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
8447
|
+
elementProps = _objectWithoutProperties(props, _excluded$1b);
|
|
8446
8448
|
|
|
8447
8449
|
var navbar = React.useContext(NavbarContext);
|
|
8448
8450
|
var classes = getStyles(styles$Z, ['.container', // Hint: Bootstrap's .container class is identical with .container-sm.
|
|
@@ -8459,7 +8461,7 @@
|
|
|
8459
8461
|
var FormCheckContext = /*#__PURE__*/React__default["default"].createContext();
|
|
8460
8462
|
FormCheckContext.displayName = 'FormCheckContext';
|
|
8461
8463
|
|
|
8462
|
-
var _excluded$
|
|
8464
|
+
var _excluded$1a = ["style"];
|
|
8463
8465
|
var propTypes$1e = {
|
|
8464
8466
|
type: PropTypes.oneOf(['checkbox', 'radio', 'switch']).isRequired,
|
|
8465
8467
|
value: PropTypes.bool.isRequired,
|
|
@@ -8480,7 +8482,7 @@
|
|
|
8480
8482
|
|
|
8481
8483
|
var Input$1 = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
8482
8484
|
var style = _ref.style,
|
|
8483
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8485
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
8484
8486
|
|
|
8485
8487
|
return reactNative.unstable_createElement('input', _objectSpread2(_objectSpread2({}, props), {}, {
|
|
8486
8488
|
ref: ref,
|
|
@@ -8563,7 +8565,7 @@
|
|
|
8563
8565
|
FormCheckInputNative.displayName = 'FormCheckInputNative';
|
|
8564
8566
|
FormCheckInputNative.propTypes = propTypes$1d;
|
|
8565
8567
|
|
|
8566
|
-
var _excluded$
|
|
8568
|
+
var _excluded$19 = ["type", "value", "onFocus", "onBlur", "disabled", "valid", "invalid", "useNativeComponent", "style"];
|
|
8567
8569
|
|
|
8568
8570
|
var _templateObject$Y, _templateObject2$H, _templateObject3$m, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$9, _templateObject8$9, _templateObject9$8, _templateObject10$8, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
|
|
8569
8571
|
/* eslint-disable react/no-unused-prop-types */
|
|
@@ -8646,7 +8648,7 @@
|
|
|
8646
8648
|
_modifierProps$useNat = modifierProps.useNativeComponent,
|
|
8647
8649
|
useNativeComponent = _modifierProps$useNat === void 0 ? false : _modifierProps$useNat,
|
|
8648
8650
|
style = modifierProps.style,
|
|
8649
|
-
elementProps = _objectWithoutProperties(modifierProps, _excluded$
|
|
8651
|
+
elementProps = _objectWithoutProperties(modifierProps, _excluded$19);
|
|
8650
8652
|
|
|
8651
8653
|
var media = useMedia();
|
|
8652
8654
|
|
|
@@ -8699,7 +8701,7 @@
|
|
|
8699
8701
|
});
|
|
8700
8702
|
Checkbox.displayName = 'Checkbox';
|
|
8701
8703
|
|
|
8702
|
-
var _excluded$
|
|
8704
|
+
var _excluded$18 = ["children", "size", "sizeSm", "sizeMd", "sizeLg", "sizeXl", "style"];
|
|
8703
8705
|
|
|
8704
8706
|
var _templateObject$X, _templateObject2$G, _templateObject3$l, _templateObject4$i, _templateObject5$f;
|
|
8705
8707
|
var sizes = makeArray(GRID_COLUMNS).map(function (v) {
|
|
@@ -8734,7 +8736,7 @@
|
|
|
8734
8736
|
sizeLg = props.sizeLg,
|
|
8735
8737
|
sizeXl = props.sizeXl,
|
|
8736
8738
|
style = props.style,
|
|
8737
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
8739
|
+
elementProps = _objectWithoutProperties(props, _excluded$18);
|
|
8738
8740
|
|
|
8739
8741
|
var classes = getStyles(styles$W, ['*', ".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())]);
|
|
8740
8742
|
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
@@ -8745,7 +8747,7 @@
|
|
|
8745
8747
|
Col.displayName = 'Col';
|
|
8746
8748
|
Col.propTypes = propTypes$1b;
|
|
8747
8749
|
|
|
8748
|
-
var _excluded$
|
|
8750
|
+
var _excluded$17 = ["children", "style"];
|
|
8749
8751
|
|
|
8750
8752
|
var _templateObject$W;
|
|
8751
8753
|
var propTypes$1a = {
|
|
@@ -8759,7 +8761,7 @@
|
|
|
8759
8761
|
var Code = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
8760
8762
|
var children = props.children,
|
|
8761
8763
|
style = props.style,
|
|
8762
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
8764
|
+
elementProps = _objectWithoutProperties(props, _excluded$17);
|
|
8763
8765
|
|
|
8764
8766
|
var classes = getStyles(styles$V, ['code']); // Accessiblity role code is only supported on web.
|
|
8765
8767
|
|
|
@@ -8776,12 +8778,12 @@
|
|
|
8776
8778
|
var DropdownContext = /*#__PURE__*/React__default["default"].createContext();
|
|
8777
8779
|
DropdownContext.displayName = 'DropdownContext';
|
|
8778
8780
|
|
|
8779
|
-
var _excluded$
|
|
8781
|
+
var _excluded$16 = ["onPress"];
|
|
8780
8782
|
function useToggleDropdown(props) {
|
|
8781
8783
|
var context = useForcedContext(DropdownContext);
|
|
8782
8784
|
|
|
8783
8785
|
var handlePress = props.onPress,
|
|
8784
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
8786
|
+
restProps = _objectWithoutProperties(props, _excluded$16);
|
|
8785
8787
|
|
|
8786
8788
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
8787
8789
|
nativeID: context.identifier,
|
|
@@ -8974,7 +8976,7 @@
|
|
|
8974
8976
|
BackdropHandler.displayName = 'BackdropHandler';
|
|
8975
8977
|
BackdropHandler.propTypes = propTypes$17;
|
|
8976
8978
|
|
|
8977
|
-
var _excluded$
|
|
8979
|
+
var _excluded$15 = ["children", "start", "right", "end", "style", "textStyle"];
|
|
8978
8980
|
|
|
8979
8981
|
var _templateObject$U, _templateObject2$F, _templateObject3$k, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$8, _templateObject8$8, _templateObject9$7, _templateObject10$7;
|
|
8980
8982
|
var ALIGNMENT_BREAKPOINTS = [true, 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
@@ -9040,7 +9042,7 @@
|
|
|
9040
9042
|
end = _props$end === void 0 ? false : _props$end,
|
|
9041
9043
|
style = props.style,
|
|
9042
9044
|
textStyle = props.textStyle,
|
|
9043
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9045
|
+
elementProps = _objectWithoutProperties(props, _excluded$15);
|
|
9044
9046
|
|
|
9045
9047
|
if (right !== undefined) {
|
|
9046
9048
|
// eslint-disable-next-line no-console
|
|
@@ -9116,7 +9118,7 @@
|
|
|
9116
9118
|
DropdownMenu.displayName = 'DropdownMenu';
|
|
9117
9119
|
DropdownMenu.propTypes = propTypes$16;
|
|
9118
9120
|
|
|
9119
|
-
var _excluded$
|
|
9121
|
+
var _excluded$14 = ["children", "size", "style"];
|
|
9120
9122
|
|
|
9121
9123
|
var _templateObject$T, _templateObject2$E;
|
|
9122
9124
|
var propTypes$15 = {
|
|
@@ -9136,7 +9138,7 @@
|
|
|
9136
9138
|
var children = props.children,
|
|
9137
9139
|
size = props.size,
|
|
9138
9140
|
style = props.style,
|
|
9139
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9141
|
+
elementProps = _objectWithoutProperties(props, _excluded$14);
|
|
9140
9142
|
|
|
9141
9143
|
var classes = getStyles(styles$S, ['heading', ".h".concat(size)]);
|
|
9142
9144
|
return /*#__PURE__*/React__default["default"].createElement(Text, _extends$1({}, elementProps, {
|
|
@@ -9149,7 +9151,7 @@
|
|
|
9149
9151
|
Heading$2.displayName = 'Heading';
|
|
9150
9152
|
Heading$2.propTypes = propTypes$15;
|
|
9151
9153
|
|
|
9152
|
-
var _excluded$
|
|
9154
|
+
var _excluded$13 = ["children", "style", "textStyle"];
|
|
9153
9155
|
|
|
9154
9156
|
var _templateObject$S, _templateObject2$D;
|
|
9155
9157
|
var propTypes$14 = {
|
|
@@ -9167,7 +9169,7 @@
|
|
|
9167
9169
|
var children = props.children,
|
|
9168
9170
|
style = props.style,
|
|
9169
9171
|
textStyle = props.textStyle,
|
|
9170
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9172
|
+
elementProps = _objectWithoutProperties(props, _excluded$13);
|
|
9171
9173
|
|
|
9172
9174
|
var classes = getStyles(styles$R, ['.dropdown-header']);
|
|
9173
9175
|
var textClasses = getStyles(styles$R, ['.dropdown-header --text']); // composite component
|
|
@@ -9183,7 +9185,7 @@
|
|
|
9183
9185
|
DropdownHeader.displayName = 'DropdownHeader';
|
|
9184
9186
|
DropdownHeader.propTypes = propTypes$14;
|
|
9185
9187
|
|
|
9186
|
-
var _excluded
|
|
9188
|
+
var _excluded$12 = ["children", "onPress", "active", "disabled", "style", "textStyle"];
|
|
9187
9189
|
|
|
9188
9190
|
var _templateObject$R, _templateObject2$C, _templateObject3$j, _templateObject4$g, _templateObject5$d, _templateObject6$c;
|
|
9189
9191
|
var propTypes$13 = {
|
|
@@ -9214,7 +9216,7 @@
|
|
|
9214
9216
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
9215
9217
|
style = props.style,
|
|
9216
9218
|
textStyle = props.textStyle,
|
|
9217
|
-
elementProps = _objectWithoutProperties(props, _excluded
|
|
9219
|
+
elementProps = _objectWithoutProperties(props, _excluded$12);
|
|
9218
9220
|
|
|
9219
9221
|
var dropdown = useForcedContext(DropdownContext);
|
|
9220
9222
|
var classes = getStyles(styles$Q, ['.dropdown-item', active && '.dropdown-item.active', disabled && '.dropdown-item.disabled']);
|
|
@@ -9232,7 +9234,7 @@
|
|
|
9232
9234
|
DropdownItem.displayName = 'DropdownItem';
|
|
9233
9235
|
DropdownItem.propTypes = propTypes$13;
|
|
9234
9236
|
|
|
9235
|
-
var _excluded$
|
|
9237
|
+
var _excluded$11 = ["children", "style", "textStyle"];
|
|
9236
9238
|
|
|
9237
9239
|
var _templateObject$Q, _templateObject2$B;
|
|
9238
9240
|
var propTypes$12 = {
|
|
@@ -9250,7 +9252,7 @@
|
|
|
9250
9252
|
var children = props.children,
|
|
9251
9253
|
style = props.style,
|
|
9252
9254
|
textStyle = props.textStyle,
|
|
9253
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9255
|
+
elementProps = _objectWithoutProperties(props, _excluded$11);
|
|
9254
9256
|
|
|
9255
9257
|
var classes = getStyles(styles$P, ['.dropdown-item-text']);
|
|
9256
9258
|
var textClasses = getStyles(styles$P, ['.dropdown-item-text --text']); // composite component
|
|
@@ -9265,7 +9267,7 @@
|
|
|
9265
9267
|
DropdownItemText.displayName = 'DropdownItemText';
|
|
9266
9268
|
DropdownItemText.propTypes = propTypes$12;
|
|
9267
9269
|
|
|
9268
|
-
var _excluded$
|
|
9270
|
+
var _excluded$10 = ["style"];
|
|
9269
9271
|
|
|
9270
9272
|
var _templateObject$P;
|
|
9271
9273
|
var propTypes$11 = {
|
|
@@ -9277,7 +9279,7 @@
|
|
|
9277
9279
|
});
|
|
9278
9280
|
var DropdownDivider = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
9279
9281
|
var style = props.style,
|
|
9280
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9282
|
+
elementProps = _objectWithoutProperties(props, _excluded$10);
|
|
9281
9283
|
|
|
9282
9284
|
var classes = getStyles(styles$O, ['.dropdown-divider']);
|
|
9283
9285
|
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
@@ -9310,12 +9312,12 @@
|
|
|
9310
9312
|
}, [visible]);
|
|
9311
9313
|
}
|
|
9312
9314
|
|
|
9313
|
-
var _excluded
|
|
9315
|
+
var _excluded$$ = ["onPress"];
|
|
9314
9316
|
function useDismissDropdown(props) {
|
|
9315
9317
|
var context = useForcedContext(DropdownContext);
|
|
9316
9318
|
|
|
9317
9319
|
var handlePress = props.onPress,
|
|
9318
|
-
restProps = _objectWithoutProperties(props, _excluded
|
|
9320
|
+
restProps = _objectWithoutProperties(props, _excluded$$);
|
|
9319
9321
|
|
|
9320
9322
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9321
9323
|
onPress: function onPress(event) {
|
|
@@ -9325,7 +9327,7 @@
|
|
|
9325
9327
|
});
|
|
9326
9328
|
}
|
|
9327
9329
|
|
|
9328
|
-
var _excluded$
|
|
9330
|
+
var _excluded$_ = ["children", "defaultVisible", "visible", "onToggle", "direction", "display", "autoClose", "style"];
|
|
9329
9331
|
|
|
9330
9332
|
var _templateObject$O;
|
|
9331
9333
|
var DIRECTIONS = ['top', 'bottom', 'start', 'end'];
|
|
@@ -9356,7 +9358,7 @@
|
|
|
9356
9358
|
_props$autoClose = props.autoClose,
|
|
9357
9359
|
autoClose = _props$autoClose === void 0 ? 'outside' : _props$autoClose,
|
|
9358
9360
|
style = props.style,
|
|
9359
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9361
|
+
elementProps = _objectWithoutProperties(props, _excluded$_);
|
|
9360
9362
|
|
|
9361
9363
|
var dropdown = useDropdown(defaultVisible, visible, onToggle, direction, display, autoClose);
|
|
9362
9364
|
var classes = getStyles(styles$N, ['.dropdown']);
|
|
@@ -9379,7 +9381,7 @@
|
|
|
9379
9381
|
Dropdown.useDismiss = useDismissDropdown;
|
|
9380
9382
|
Dropdown.useToggle = useToggleDropdown;
|
|
9381
9383
|
|
|
9382
|
-
var _excluded$
|
|
9384
|
+
var _excluded$Z = ["children", "size", "style"];
|
|
9383
9385
|
|
|
9384
9386
|
var _templateObject$N;
|
|
9385
9387
|
var propTypes$$ = {
|
|
@@ -9397,7 +9399,7 @@
|
|
|
9397
9399
|
var children = props.children,
|
|
9398
9400
|
size = props.size,
|
|
9399
9401
|
style = props.style,
|
|
9400
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9402
|
+
elementProps = _objectWithoutProperties(props, _excluded$Z);
|
|
9401
9403
|
|
|
9402
9404
|
var classes = getStyles(styles$M, [".display-".concat(size)]);
|
|
9403
9405
|
return /*#__PURE__*/React__default["default"].createElement(Heading$2, _extends$1({}, elementProps, {
|
|
@@ -9409,7 +9411,7 @@
|
|
|
9409
9411
|
DisplayHeading.displayName = 'Heading';
|
|
9410
9412
|
DisplayHeading.propTypes = propTypes$$;
|
|
9411
9413
|
|
|
9412
|
-
var _excluded$
|
|
9414
|
+
var _excluded$Y = ["children", "type", "style"];
|
|
9413
9415
|
|
|
9414
9416
|
var _templateObject$M;
|
|
9415
9417
|
var propTypes$_ = {
|
|
@@ -9427,7 +9429,7 @@
|
|
|
9427
9429
|
var children = props.children,
|
|
9428
9430
|
type = props.type,
|
|
9429
9431
|
style = props.style,
|
|
9430
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9432
|
+
elementProps = _objectWithoutProperties(props, _excluded$Y);
|
|
9431
9433
|
|
|
9432
9434
|
var classes = getStyles(styles$L, [".".concat(type, "-feedback")]);
|
|
9433
9435
|
return /*#__PURE__*/React__default["default"].createElement(Text, _extends$1({}, elementProps, {
|
|
@@ -9438,7 +9440,7 @@
|
|
|
9438
9440
|
Feedback.displayName = 'Feedback';
|
|
9439
9441
|
Feedback.propTypes = propTypes$_;
|
|
9440
9442
|
|
|
9441
|
-
var _excluded$
|
|
9443
|
+
var _excluded$X = ["children", "htmlFor"];
|
|
9442
9444
|
var propTypes$Z = {
|
|
9443
9445
|
children: PropTypes.node.isRequired,
|
|
9444
9446
|
htmlFor: PropTypes.string
|
|
@@ -9446,7 +9448,7 @@
|
|
|
9446
9448
|
var Heading$1 = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
9447
9449
|
var children = props.children,
|
|
9448
9450
|
htmlFor = props.htmlFor,
|
|
9449
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9451
|
+
elementProps = _objectWithoutProperties(props, _excluded$X); // Ref: https://github.com/necolas/react-native-web/issues/1651
|
|
9450
9452
|
|
|
9451
9453
|
|
|
9452
9454
|
var forRef = React__default["default"].useCallback(function (node) {
|
|
@@ -9465,7 +9467,7 @@
|
|
|
9465
9467
|
Heading$1.displayName = 'Heading';
|
|
9466
9468
|
Heading$1.propTypes = propTypes$Z;
|
|
9467
9469
|
|
|
9468
|
-
var _excluded$
|
|
9470
|
+
var _excluded$W = ["children", "style", "textStyle"];
|
|
9469
9471
|
|
|
9470
9472
|
var _templateObject$L, _templateObject2$A, _templateObject3$i, _templateObject4$f;
|
|
9471
9473
|
var propTypes$Y = {
|
|
@@ -9488,7 +9490,7 @@
|
|
|
9488
9490
|
var children = props.children,
|
|
9489
9491
|
style = props.style,
|
|
9490
9492
|
textStyle = props.textStyle,
|
|
9491
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9493
|
+
elementProps = _objectWithoutProperties(props, _excluded$W);
|
|
9492
9494
|
|
|
9493
9495
|
var _useForcedContext = useForcedContext(FormCheckContext),
|
|
9494
9496
|
disabled = _useForcedContext.disabled,
|
|
@@ -9508,6 +9510,8 @@
|
|
|
9508
9510
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
9509
9511
|
FormCheckLabel.propTypes = propTypes$Y;
|
|
9510
9512
|
|
|
9513
|
+
var _excluded$V = ["children", "reverse", "disabled", "valid", "invalid", "style"];
|
|
9514
|
+
|
|
9511
9515
|
var _templateObject$K, _templateObject2$z, _templateObject3$h;
|
|
9512
9516
|
var propTypes$X = {
|
|
9513
9517
|
children: PropTypes.node.isRequired,
|
|
@@ -9533,12 +9537,14 @@
|
|
|
9533
9537
|
valid = _props$valid === void 0 ? false : _props$valid,
|
|
9534
9538
|
_props$invalid = props.invalid,
|
|
9535
9539
|
invalid = _props$invalid === void 0 ? false : _props$invalid,
|
|
9536
|
-
style = props.style
|
|
9540
|
+
style = props.style,
|
|
9541
|
+
elementProps = _objectWithoutProperties(props, _excluded$V);
|
|
9542
|
+
|
|
9537
9543
|
var classes = getStyles(styles$J, ['.form-check', reverse && '.form-check-reverse']);
|
|
9538
|
-
return /*#__PURE__*/React__default["default"].createElement(View, {
|
|
9544
|
+
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
9539
9545
|
ref: ref,
|
|
9540
9546
|
style: [classes, style]
|
|
9541
|
-
}, /*#__PURE__*/React__default["default"].createElement(FormCheckContext.Provider, {
|
|
9547
|
+
}), /*#__PURE__*/React__default["default"].createElement(FormCheckContext.Provider, {
|
|
9542
9548
|
value: {
|
|
9543
9549
|
reverse: reverse,
|
|
9544
9550
|
disabled: disabled,
|
|
@@ -9551,7 +9557,7 @@
|
|
|
9551
9557
|
FormCheck.propTypes = propTypes$X;
|
|
9552
9558
|
FormCheck.Label = FormCheckLabel;
|
|
9553
9559
|
|
|
9554
|
-
var _excluded$
|
|
9560
|
+
var _excluded$U = ["children", "style", "textStyle"];
|
|
9555
9561
|
|
|
9556
9562
|
var _templateObject$J, _templateObject2$y;
|
|
9557
9563
|
var propTypes$W = {
|
|
@@ -9569,7 +9575,7 @@
|
|
|
9569
9575
|
var children = props.children,
|
|
9570
9576
|
style = props.style,
|
|
9571
9577
|
textStyle = props.textStyle,
|
|
9572
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9578
|
+
elementProps = _objectWithoutProperties(props, _excluded$U);
|
|
9573
9579
|
|
|
9574
9580
|
var classes = getStyles(styles$I, ['.form-label']);
|
|
9575
9581
|
var textClasses = getStyles(styles$I, ['.form-label --text']);
|
|
@@ -9582,7 +9588,7 @@
|
|
|
9582
9588
|
FormLabel.displayName = 'FormLabel';
|
|
9583
9589
|
FormLabel.propTypes = propTypes$W;
|
|
9584
9590
|
|
|
9585
|
-
var _excluded$
|
|
9591
|
+
var _excluded$T = ["children", "style", "textStyle"];
|
|
9586
9592
|
|
|
9587
9593
|
var _templateObject$I, _templateObject2$x;
|
|
9588
9594
|
var propTypes$V = {
|
|
@@ -9600,7 +9606,7 @@
|
|
|
9600
9606
|
var children = props.children,
|
|
9601
9607
|
style = props.style,
|
|
9602
9608
|
textStyle = props.textStyle,
|
|
9603
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9609
|
+
elementProps = _objectWithoutProperties(props, _excluded$T);
|
|
9604
9610
|
|
|
9605
9611
|
var classes = getStyles(styles$H, ['.form-text']);
|
|
9606
9612
|
var textClasses = getStyles(styles$H, ['.form-text --text']); // composite component
|
|
@@ -9615,7 +9621,7 @@
|
|
|
9615
9621
|
FormText.displayName = 'FormText';
|
|
9616
9622
|
FormText.propTypes = propTypes$V;
|
|
9617
9623
|
|
|
9618
|
-
var _excluded$
|
|
9624
|
+
var _excluded$S = ["onFocus", "onBlur", "style", "styleName"];
|
|
9619
9625
|
var propTypes$U = {
|
|
9620
9626
|
onFocus: PropTypes.func,
|
|
9621
9627
|
onBlur: PropTypes.func,
|
|
@@ -9631,7 +9637,7 @@
|
|
|
9631
9637
|
_onBlur = _props$onBlur === void 0 ? function () {} : _props$onBlur,
|
|
9632
9638
|
style = props.style,
|
|
9633
9639
|
styleName = props.styleName,
|
|
9634
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9640
|
+
elementProps = _objectWithoutProperties(props, _excluded$S);
|
|
9635
9641
|
|
|
9636
9642
|
var _useState = React.useState(false),
|
|
9637
9643
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -9663,7 +9669,7 @@
|
|
|
9663
9669
|
TextInput.displayName = 'TextInput';
|
|
9664
9670
|
TextInput.propTypes = propTypes$U;
|
|
9665
9671
|
|
|
9666
|
-
var _excluded$
|
|
9672
|
+
var _excluded$R = ["size", "placeholderTextColor", "multiline", "disabled", "valid", "invalid", "editable", "selectTextOnFocus", "style"];
|
|
9667
9673
|
|
|
9668
9674
|
var _templateObject$H, _templateObject2$w, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$7, _templateObject8$7;
|
|
9669
9675
|
var propTypes$T = {
|
|
@@ -9717,7 +9723,7 @@
|
|
|
9717
9723
|
_modifierProps$select = modifierProps.selectTextOnFocus,
|
|
9718
9724
|
selectTextOnFocus = _modifierProps$select === void 0 ? true : _modifierProps$select,
|
|
9719
9725
|
style = modifierProps.style,
|
|
9720
|
-
elementProps = _objectWithoutProperties(modifierProps, _excluded$
|
|
9726
|
+
elementProps = _objectWithoutProperties(modifierProps, _excluded$R);
|
|
9721
9727
|
|
|
9722
9728
|
var classes = getStyles(styles$G, ['.form-control', disabled && '.form-control.disabled', size === 'sm' && '.form-control-sm', size === 'lg' && '.form-control-lg', multiline && '.form-control-multiline', multiline && size === 'sm' && '.form-control-multiline-sm', multiline && size === 'lg' && '.form-control-multiline-lg', valid && '.form-control:valid', invalid && '.form-control:invalid']);
|
|
9723
9729
|
return /*#__PURE__*/React__default["default"].createElement(TextInput, _extends$1({}, elementProps, {
|
|
@@ -9858,7 +9864,7 @@
|
|
|
9858
9864
|
var PopoverContext = /*#__PURE__*/React__default["default"].createContext();
|
|
9859
9865
|
PopoverContext.displayName = 'PopoverContext';
|
|
9860
9866
|
|
|
9861
|
-
var _excluded$
|
|
9867
|
+
var _excluded$Q = ["style"];
|
|
9862
9868
|
|
|
9863
9869
|
var _templateObject$G, _templateObject2$v, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$6, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$2, _templateObject15$1;
|
|
9864
9870
|
var propTypes$S = {
|
|
@@ -9900,7 +9906,7 @@
|
|
|
9900
9906
|
});
|
|
9901
9907
|
var PopoverArrow = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
9902
9908
|
var style = props.style,
|
|
9903
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9909
|
+
elementProps = _objectWithoutProperties(props, _excluded$Q);
|
|
9904
9910
|
|
|
9905
9911
|
var _useForcedContext = useForcedContext(PopoverContext),
|
|
9906
9912
|
placement = _useForcedContext.placement,
|
|
@@ -9922,7 +9928,7 @@
|
|
|
9922
9928
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
9923
9929
|
PopoverArrow.propTypes = propTypes$S;
|
|
9924
9930
|
|
|
9925
|
-
var _excluded$
|
|
9931
|
+
var _excluded$P = ["children", "style", "textStyle"];
|
|
9926
9932
|
|
|
9927
9933
|
var _templateObject$F, _templateObject2$u;
|
|
9928
9934
|
var propTypes$R = {
|
|
@@ -9940,7 +9946,7 @@
|
|
|
9940
9946
|
var children = props.children,
|
|
9941
9947
|
style = props.style,
|
|
9942
9948
|
textStyle = props.textStyle,
|
|
9943
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9949
|
+
elementProps = _objectWithoutProperties(props, _excluded$P);
|
|
9944
9950
|
|
|
9945
9951
|
var classes = getStyles(styles$E, ['.popover-header']);
|
|
9946
9952
|
var textClasses = getStyles(styles$E, ['.popover-header --text']); // composite component
|
|
@@ -9956,7 +9962,7 @@
|
|
|
9956
9962
|
PopoverHeader.displayName = 'PopoverHeader';
|
|
9957
9963
|
PopoverHeader.propTypes = propTypes$R;
|
|
9958
9964
|
|
|
9959
|
-
var _excluded$
|
|
9965
|
+
var _excluded$O = ["children", "style", "textStyle"];
|
|
9960
9966
|
|
|
9961
9967
|
var _templateObject$E, _templateObject2$t;
|
|
9962
9968
|
var propTypes$Q = {
|
|
@@ -9974,7 +9980,7 @@
|
|
|
9974
9980
|
var children = props.children,
|
|
9975
9981
|
style = props.style,
|
|
9976
9982
|
textStyle = props.textStyle,
|
|
9977
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
9983
|
+
elementProps = _objectWithoutProperties(props, _excluded$O);
|
|
9978
9984
|
|
|
9979
9985
|
var classes = getStyles(styles$D, ['.popover-body']);
|
|
9980
9986
|
var textClasses = getStyles(styles$D, ['.popover-body --text']);
|
|
@@ -9987,7 +9993,7 @@
|
|
|
9987
9993
|
PopoverBody.displayName = 'PopoverBody';
|
|
9988
9994
|
PopoverBody.propTypes = propTypes$Q;
|
|
9989
9995
|
|
|
9990
|
-
var _excluded$
|
|
9996
|
+
var _excluded$N = ["children", "placement", "popper", "style", "textStyle", "arrowStyle"];
|
|
9991
9997
|
|
|
9992
9998
|
var _templateObject$D, _templateObject2$s;
|
|
9993
9999
|
var propTypes$P = {
|
|
@@ -10013,7 +10019,7 @@
|
|
|
10013
10019
|
style = props.style,
|
|
10014
10020
|
textStyle = props.textStyle,
|
|
10015
10021
|
arrowStyle = props.arrowStyle,
|
|
10016
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10022
|
+
elementProps = _objectWithoutProperties(props, _excluded$N);
|
|
10017
10023
|
|
|
10018
10024
|
var popover = {
|
|
10019
10025
|
placement: transformPlacement$1(placement),
|
|
@@ -10039,7 +10045,7 @@
|
|
|
10039
10045
|
Popover.Header = PopoverHeader;
|
|
10040
10046
|
Popover.Body = PopoverBody;
|
|
10041
10047
|
|
|
10042
|
-
var _excluded$
|
|
10048
|
+
var _excluded$M = ["title", "content", "autoClose", "trigger", "placement"],
|
|
10043
10049
|
_excluded2$1 = ["popover"];
|
|
10044
10050
|
var propTypes$O = {
|
|
10045
10051
|
popover: PropTypes.shape(_objectSpread2({
|
|
@@ -10060,7 +10066,7 @@
|
|
|
10060
10066
|
trigger = _props$popover$trigge === void 0 ? 'press' : _props$popover$trigge,
|
|
10061
10067
|
_props$popover$placem = _props$popover.placement,
|
|
10062
10068
|
placement = _props$popover$placem === void 0 ? 'right' : _props$popover$placem,
|
|
10063
|
-
tooltipProps = _objectWithoutProperties(_props$popover, _excluded$
|
|
10069
|
+
tooltipProps = _objectWithoutProperties(_props$popover, _excluded$M),
|
|
10064
10070
|
elementProps = _objectWithoutProperties(props, _excluded2$1);
|
|
10065
10071
|
/* eslint-enable */
|
|
10066
10072
|
|
|
@@ -10107,7 +10113,7 @@
|
|
|
10107
10113
|
var TooltipContext = /*#__PURE__*/React__default["default"].createContext();
|
|
10108
10114
|
TooltipContext.displayName = 'TooltipContext';
|
|
10109
10115
|
|
|
10110
|
-
var _excluded$
|
|
10116
|
+
var _excluded$L = ["style"];
|
|
10111
10117
|
|
|
10112
10118
|
var _templateObject$C, _templateObject2$r, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$5;
|
|
10113
10119
|
var propTypes$N = {
|
|
@@ -10128,7 +10134,7 @@
|
|
|
10128
10134
|
});
|
|
10129
10135
|
var TooltipArrow = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
10130
10136
|
var style = props.style,
|
|
10131
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10137
|
+
elementProps = _objectWithoutProperties(props, _excluded$L);
|
|
10132
10138
|
|
|
10133
10139
|
var _useForcedContext = useForcedContext(TooltipContext),
|
|
10134
10140
|
placement = _useForcedContext.placement,
|
|
@@ -10147,7 +10153,7 @@
|
|
|
10147
10153
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
10148
10154
|
TooltipArrow.propTypes = propTypes$N;
|
|
10149
10155
|
|
|
10150
|
-
var _excluded$
|
|
10156
|
+
var _excluded$K = ["children", "style", "textStyle"];
|
|
10151
10157
|
|
|
10152
10158
|
var _templateObject$B, _templateObject2$q;
|
|
10153
10159
|
var propTypes$M = {
|
|
@@ -10165,7 +10171,7 @@
|
|
|
10165
10171
|
var children = props.children,
|
|
10166
10172
|
style = props.style,
|
|
10167
10173
|
textStyle = props.textStyle,
|
|
10168
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10174
|
+
elementProps = _objectWithoutProperties(props, _excluded$K);
|
|
10169
10175
|
|
|
10170
10176
|
var classes = getStyles(styles$A, ['.tooltip-inner']);
|
|
10171
10177
|
var textClasses = getStyles(styles$A, ['.tooltip-inner --text']); // composite component
|
|
@@ -10180,7 +10186,7 @@
|
|
|
10180
10186
|
TooltipInner.displayName = 'TooltipInner';
|
|
10181
10187
|
TooltipInner.propTypes = propTypes$M;
|
|
10182
10188
|
|
|
10183
|
-
var _excluded$
|
|
10189
|
+
var _excluded$J = ["children", "placement", "popper", "style", "textStyle", "arrowStyle"];
|
|
10184
10190
|
|
|
10185
10191
|
var _templateObject$A, _templateObject2$p, _templateObject3$d, _templateObject4$b, _templateObject5$9, _templateObject6$8;
|
|
10186
10192
|
var propTypes$L = {
|
|
@@ -10210,7 +10216,7 @@
|
|
|
10210
10216
|
style = props.style,
|
|
10211
10217
|
textStyle = props.textStyle,
|
|
10212
10218
|
arrowStyle = props.arrowStyle,
|
|
10213
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10219
|
+
elementProps = _objectWithoutProperties(props, _excluded$J);
|
|
10214
10220
|
|
|
10215
10221
|
var tooltip = {
|
|
10216
10222
|
placement: transformPlacement$1(placement),
|
|
@@ -10236,7 +10242,7 @@
|
|
|
10236
10242
|
Tooltip.Arrow = TooltipArrow;
|
|
10237
10243
|
Tooltip.Inner = TooltipInner;
|
|
10238
10244
|
|
|
10239
|
-
var _excluded$
|
|
10245
|
+
var _excluded$I = ["title", "autoClose", "trigger", "placement"],
|
|
10240
10246
|
_excluded2 = ["tooltip"];
|
|
10241
10247
|
var propTypes$K = {
|
|
10242
10248
|
tooltip: PropTypes.shape(_objectSpread2({
|
|
@@ -10255,7 +10261,7 @@
|
|
|
10255
10261
|
trigger = _props$tooltip$trigge === void 0 ? 'hover focus' : _props$tooltip$trigge,
|
|
10256
10262
|
_props$tooltip$placem = _props$tooltip.placement,
|
|
10257
10263
|
placement = _props$tooltip$placem === void 0 ? 'top' : _props$tooltip$placem,
|
|
10258
|
-
tooltipProps = _objectWithoutProperties(_props$tooltip, _excluded$
|
|
10264
|
+
tooltipProps = _objectWithoutProperties(_props$tooltip, _excluded$I),
|
|
10259
10265
|
elementProps = _objectWithoutProperties(props, _excluded2);
|
|
10260
10266
|
/* eslint-enable */
|
|
10261
10267
|
|
|
@@ -10298,7 +10304,7 @@
|
|
|
10298
10304
|
return OverlayTooltip;
|
|
10299
10305
|
}
|
|
10300
10306
|
|
|
10301
|
-
var _excluded$
|
|
10307
|
+
var _excluded$H = ["style", "styleName"];
|
|
10302
10308
|
var propTypes$J = {
|
|
10303
10309
|
// eslint-disable-next-line react/forbid-prop-types
|
|
10304
10310
|
style: PropTypes.any,
|
|
@@ -10308,7 +10314,7 @@
|
|
|
10308
10314
|
var Image = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
10309
10315
|
var style = props.style,
|
|
10310
10316
|
styleName = props.styleName,
|
|
10311
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10317
|
+
elementProps = _objectWithoutProperties(props, _excluded$H);
|
|
10312
10318
|
|
|
10313
10319
|
var media = useMedia();
|
|
10314
10320
|
var resolveStyle = useStyle(style, styleName);
|
|
@@ -10322,7 +10328,7 @@
|
|
|
10322
10328
|
Image.displayName = 'Image';
|
|
10323
10329
|
Image.propTypes = propTypes$J;
|
|
10324
10330
|
|
|
10325
|
-
var _excluded$
|
|
10331
|
+
var _excluded$G = ["style", "styleName"];
|
|
10326
10332
|
var propTypes$I = {
|
|
10327
10333
|
// eslint-disable-next-line react/forbid-prop-types
|
|
10328
10334
|
style: PropTypes.any,
|
|
@@ -10332,7 +10338,7 @@
|
|
|
10332
10338
|
var ImageBackground = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
10333
10339
|
var style = props.style,
|
|
10334
10340
|
styleName = props.styleName,
|
|
10335
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10341
|
+
elementProps = _objectWithoutProperties(props, _excluded$G);
|
|
10336
10342
|
|
|
10337
10343
|
var media = useMedia();
|
|
10338
10344
|
var resolveStyle = useStyle(style, styleName);
|
|
@@ -10349,7 +10355,7 @@
|
|
|
10349
10355
|
var ListGroupContext = /*#__PURE__*/React__default["default"].createContext();
|
|
10350
10356
|
ListGroupContext.displayName = 'ListGroupContext';
|
|
10351
10357
|
|
|
10352
|
-
var _excluded$
|
|
10358
|
+
var _excluded$F = ["children", "color", "active", "disabled", "style", "textStyle"];
|
|
10353
10359
|
|
|
10354
10360
|
var _templateObject$z, _templateObject2$o, _templateObject3$c, _templateObject4$a, _templateObject5$8, _templateObject6$7, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$1;
|
|
10355
10361
|
var propTypes$H = {
|
|
@@ -10363,7 +10369,7 @@
|
|
|
10363
10369
|
textStyle: PropTypes.any
|
|
10364
10370
|
};
|
|
10365
10371
|
var styles$y = StyleSheet.create(_objectSpread2({
|
|
10366
|
-
'.list-group-item': css(_templateObject$z || (_templateObject$z = _taggedTemplateLiteral(["\n position: relative;\n // display: block;\n
|
|
10372
|
+
'.list-group-item': css(_templateObject$z || (_templateObject$z = _taggedTemplateLiteral(["\n position: relative;\n // display: block;\n padding: $list-group-item-padding-y $list-group-item-padding-x;\n background-color: $list-group-bg;\n border: $list-group-border-width solid $list-group-border-color;\n "]))),
|
|
10367
10373
|
'.list-group-item --text': css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteral(["\n color: $list-group-color;\n text-decoration: none; // if($link-decoration == none, null, none);\n "]))),
|
|
10368
10374
|
'.list-group-item:first-child': css(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteral(["\n border-top-left-radius: $list-group-border-radius;\n border-top-right-radius: $list-group-border-radius;\n "]))),
|
|
10369
10375
|
'.list-group-item:last-child': css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteral(["\n border-bottom-left-radius: $list-group-border-radius;\n border-bottom-right-radius: $list-group-border-radius;\n "]))),
|
|
@@ -10393,7 +10399,7 @@
|
|
|
10393
10399
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
10394
10400
|
style = props.style,
|
|
10395
10401
|
textStyle = props.textStyle,
|
|
10396
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10402
|
+
elementProps = _objectWithoutProperties(props, _excluded$F);
|
|
10397
10403
|
|
|
10398
10404
|
var _useForcedContext = useForcedContext(ListContext),
|
|
10399
10405
|
first = _useForcedContext.first,
|
|
@@ -10415,7 +10421,7 @@
|
|
|
10415
10421
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
10416
10422
|
ListGroupItem.propTypes = propTypes$H;
|
|
10417
10423
|
|
|
10418
|
-
var _excluded$
|
|
10424
|
+
var _excluded$E = ["children", "color", "active", "disabled", "style", "activeStyle", "textStyle", "activeTextStyle"];
|
|
10419
10425
|
|
|
10420
10426
|
var _templateObject$y, _templateObject2$n, _templateObject3$b, _templateObject4$9, _templateObject5$7, _templateObject6$6;
|
|
10421
10427
|
var propTypes$G = {
|
|
@@ -10468,7 +10474,7 @@
|
|
|
10468
10474
|
activeStyle = modifierProps.activeStyle,
|
|
10469
10475
|
textStyle = modifierProps.textStyle,
|
|
10470
10476
|
activeTextStyle = modifierProps.activeTextStyle,
|
|
10471
|
-
elementProps = _objectWithoutProperties(modifierProps, _excluded$
|
|
10477
|
+
elementProps = _objectWithoutProperties(modifierProps, _excluded$E);
|
|
10472
10478
|
|
|
10473
10479
|
var _useForcedContext = useForcedContext(ListContext),
|
|
10474
10480
|
first = _useForcedContext.first,
|
|
@@ -10498,7 +10504,7 @@
|
|
|
10498
10504
|
ListGroupItemAction.displayName = 'ListGroupItemAction';
|
|
10499
10505
|
ListGroupItemAction.propTypes = propTypes$G;
|
|
10500
10506
|
|
|
10501
|
-
var _excluded$
|
|
10507
|
+
var _excluded$D = ["children", "flush", "style"];
|
|
10502
10508
|
|
|
10503
10509
|
var _templateObject$x, _templateObject2$m;
|
|
10504
10510
|
var propTypes$F = {
|
|
@@ -10528,7 +10534,7 @@
|
|
|
10528
10534
|
var children = props.children,
|
|
10529
10535
|
flush = props.flush,
|
|
10530
10536
|
style = props.style,
|
|
10531
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10537
|
+
elementProps = _objectWithoutProperties(props, _excluded$D);
|
|
10532
10538
|
|
|
10533
10539
|
var list = useList(children);
|
|
10534
10540
|
var classes = getStyles(styles$x, ['.list-group', flush && '.list-group-flush']); // TODO: Implement TabContext
|
|
@@ -10549,7 +10555,7 @@
|
|
|
10549
10555
|
ListGroup.Item = ListGroupItem;
|
|
10550
10556
|
ListGroup.ItemAction = ListGroupItemAction;
|
|
10551
10557
|
|
|
10552
|
-
var _excluded$
|
|
10558
|
+
var _excluded$C = ["children", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onPressIn", "onPressOut", "style"];
|
|
10553
10559
|
|
|
10554
10560
|
var _templateObject$w;
|
|
10555
10561
|
var propTypes$E = {
|
|
@@ -10591,7 +10597,7 @@
|
|
|
10591
10597
|
_actionProps$onPressO = actionProps.onPressOut,
|
|
10592
10598
|
_onPressOut = _actionProps$onPressO === void 0 ? function () {} : _actionProps$onPressO,
|
|
10593
10599
|
style = actionProps.style,
|
|
10594
|
-
elementProps = _objectWithoutProperties(actionProps, _excluded$
|
|
10600
|
+
elementProps = _objectWithoutProperties(actionProps, _excluded$C);
|
|
10595
10601
|
|
|
10596
10602
|
var media = useMedia();
|
|
10597
10603
|
|
|
@@ -10659,7 +10665,7 @@
|
|
|
10659
10665
|
Link.displayName = 'Link';
|
|
10660
10666
|
Link.propTypes = propTypes$E;
|
|
10661
10667
|
|
|
10662
|
-
var _excluded$
|
|
10668
|
+
var _excluded$B = ["children", "contentContainerStyle", "style", "textStyle", "styleName"];
|
|
10663
10669
|
var propTypes$D = {
|
|
10664
10670
|
children: PropTypes.node,
|
|
10665
10671
|
// eslint-disable-next-line react/forbid-prop-types
|
|
@@ -10677,7 +10683,7 @@
|
|
|
10677
10683
|
style = props.style,
|
|
10678
10684
|
textStyle = props.textStyle,
|
|
10679
10685
|
styleName = props.styleName,
|
|
10680
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10686
|
+
elementProps = _objectWithoutProperties(props, _excluded$B);
|
|
10681
10687
|
|
|
10682
10688
|
var media = useMedia();
|
|
10683
10689
|
var context = React.useContext(TextStyleContext);
|
|
@@ -10772,7 +10778,7 @@
|
|
|
10772
10778
|
}, [scrollable]);
|
|
10773
10779
|
}
|
|
10774
10780
|
|
|
10775
|
-
var _excluded$
|
|
10781
|
+
var _excluded$A = ["children", "style"];
|
|
10776
10782
|
|
|
10777
10783
|
var _templateObject$v;
|
|
10778
10784
|
var propTypes$C = {
|
|
@@ -10786,7 +10792,7 @@
|
|
|
10786
10792
|
var ModalHeader = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
10787
10793
|
var children = props.children,
|
|
10788
10794
|
style = props.style,
|
|
10789
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10795
|
+
elementProps = _objectWithoutProperties(props, _excluded$A);
|
|
10790
10796
|
|
|
10791
10797
|
var classes = getStyles(styles$v, ['.modal-header']);
|
|
10792
10798
|
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
@@ -10797,7 +10803,7 @@
|
|
|
10797
10803
|
ModalHeader.displayName = 'ModalHeader';
|
|
10798
10804
|
ModalHeader.propTypes = propTypes$C;
|
|
10799
10805
|
|
|
10800
|
-
var _excluded$
|
|
10806
|
+
var _excluded$z = ["children", "style"];
|
|
10801
10807
|
|
|
10802
10808
|
var _templateObject$u;
|
|
10803
10809
|
var propTypes$B = {
|
|
@@ -10811,7 +10817,7 @@
|
|
|
10811
10817
|
var ModalTitle = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
10812
10818
|
var children = props.children,
|
|
10813
10819
|
style = props.style,
|
|
10814
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10820
|
+
elementProps = _objectWithoutProperties(props, _excluded$z);
|
|
10815
10821
|
|
|
10816
10822
|
var classes = getStyles(styles$u, ['.modal-title']);
|
|
10817
10823
|
return /*#__PURE__*/React__default["default"].createElement(Heading$2, _extends$1({
|
|
@@ -10824,7 +10830,7 @@
|
|
|
10824
10830
|
ModalTitle.displayName = 'ModalTitle';
|
|
10825
10831
|
ModalTitle.propTypes = propTypes$B;
|
|
10826
10832
|
|
|
10827
|
-
var _excluded$
|
|
10833
|
+
var _excluded$y = ["children", "style", "contentContainerStyle"];
|
|
10828
10834
|
|
|
10829
10835
|
var _templateObject$t;
|
|
10830
10836
|
var propTypes$A = {
|
|
@@ -10841,7 +10847,7 @@
|
|
|
10841
10847
|
var children = props.children,
|
|
10842
10848
|
style = props.style,
|
|
10843
10849
|
contentContainerStyle = props.contentContainerStyle,
|
|
10844
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10850
|
+
elementProps = _objectWithoutProperties(props, _excluded$y);
|
|
10845
10851
|
|
|
10846
10852
|
var _useForcedContext = useForcedContext(ModalContext),
|
|
10847
10853
|
scrollable = _useForcedContext.scrollable;
|
|
@@ -10857,7 +10863,7 @@
|
|
|
10857
10863
|
ModalBody.displayName = 'ModalBody';
|
|
10858
10864
|
ModalBody.propTypes = propTypes$A;
|
|
10859
10865
|
|
|
10860
|
-
var _excluded$
|
|
10866
|
+
var _excluded$x = ["children", "style"];
|
|
10861
10867
|
|
|
10862
10868
|
var _templateObject$s;
|
|
10863
10869
|
var propTypes$z = {
|
|
@@ -10871,7 +10877,7 @@
|
|
|
10871
10877
|
var ModalFooter = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
10872
10878
|
var children = props.children,
|
|
10873
10879
|
style = props.style,
|
|
10874
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10880
|
+
elementProps = _objectWithoutProperties(props, _excluded$x);
|
|
10875
10881
|
|
|
10876
10882
|
var classes = getStyles(styles$s, ['.modal-footer']);
|
|
10877
10883
|
return /*#__PURE__*/React__default["default"].createElement(View, _extends$1({}, elementProps, {
|
|
@@ -10882,7 +10888,7 @@
|
|
|
10882
10888
|
ModalFooter.displayName = 'ModalFooter';
|
|
10883
10889
|
ModalFooter.propTypes = propTypes$z;
|
|
10884
10890
|
|
|
10885
|
-
var _excluded$
|
|
10891
|
+
var _excluded$w = ["children", "visible", "size", "backdrop", "scrollable", "centered", "onToggle", "style", "textStyle"];
|
|
10886
10892
|
|
|
10887
10893
|
var _templateObject$r, _templateObject2$l, _templateObject3$a, _templateObject4$8, _templateObject5$6, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$2;
|
|
10888
10894
|
var MODAL_SIZES = ['sm', 'lg', 'xl'];
|
|
@@ -10925,7 +10931,7 @@
|
|
|
10925
10931
|
handleToggle = props.onToggle,
|
|
10926
10932
|
style = props.style,
|
|
10927
10933
|
textStyle = props.textStyle,
|
|
10928
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
10934
|
+
elementProps = _objectWithoutProperties(props, _excluded$w);
|
|
10929
10935
|
|
|
10930
10936
|
var dialogRef = React.useRef();
|
|
10931
10937
|
var modal = useModal(scrollable);
|
|
@@ -10981,7 +10987,7 @@
|
|
|
10981
10987
|
var NavContext = /*#__PURE__*/React__default["default"].createContext();
|
|
10982
10988
|
NavContext.displayName = 'NavContext';
|
|
10983
10989
|
|
|
10984
|
-
var _excluded$
|
|
10990
|
+
var _excluded$v = ["children", "active", "disabled", "style", "activeStyle", "textStyle", "activeTextStyle"];
|
|
10985
10991
|
|
|
10986
10992
|
var _templateObject$q, _templateObject2$k, _templateObject3$9, _templateObject4$7, _templateObject5$5, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
10987
10993
|
var propTypes$x = {
|
|
@@ -11035,7 +11041,7 @@
|
|
|
11035
11041
|
activeStyle = modifierProps.activeStyle,
|
|
11036
11042
|
textStyle = modifierProps.textStyle,
|
|
11037
11043
|
activeTextStyle = modifierProps.activeTextStyle,
|
|
11038
|
-
elementProps = _objectWithoutProperties(modifierProps, _excluded$
|
|
11044
|
+
elementProps = _objectWithoutProperties(modifierProps, _excluded$v);
|
|
11039
11045
|
|
|
11040
11046
|
var _useForcedContext = useForcedContext(NavContext),
|
|
11041
11047
|
variant = _useForcedContext.variant;
|
|
@@ -11065,7 +11071,7 @@
|
|
|
11065
11071
|
var TabContext = /*#__PURE__*/React.createContext();
|
|
11066
11072
|
TabContext.displayName = 'TabContext';
|
|
11067
11073
|
|
|
11068
|
-
var _excluded$
|
|
11074
|
+
var _excluded$u = ["children", "variant", "style"];
|
|
11069
11075
|
|
|
11070
11076
|
var _templateObject$p, _templateObject2$j, _templateObject3$8, _templateObject4$6;
|
|
11071
11077
|
var propTypes$w = {
|
|
@@ -11099,7 +11105,7 @@
|
|
|
11099
11105
|
var children = props.children,
|
|
11100
11106
|
variant = props.variant,
|
|
11101
11107
|
style = props.style,
|
|
11102
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11108
|
+
elementProps = _objectWithoutProperties(props, _excluded$u);
|
|
11103
11109
|
|
|
11104
11110
|
var navbar = React.useContext(NavbarContext);
|
|
11105
11111
|
var tabbable = React.useContext(TabContext);
|
|
@@ -11120,7 +11126,7 @@
|
|
|
11120
11126
|
Nav.Context = NavContext;
|
|
11121
11127
|
Nav.Link = NavLink;
|
|
11122
11128
|
|
|
11123
|
-
var _excluded$
|
|
11129
|
+
var _excluded$t = ["children", "style", "textStyle"];
|
|
11124
11130
|
|
|
11125
11131
|
var _templateObject$o, _templateObject2$i, _templateObject3$7;
|
|
11126
11132
|
var propTypes$v = {
|
|
@@ -11139,7 +11145,7 @@
|
|
|
11139
11145
|
var children = props.children,
|
|
11140
11146
|
style = props.style,
|
|
11141
11147
|
textStyle = props.textStyle,
|
|
11142
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11148
|
+
elementProps = _objectWithoutProperties(props, _excluded$t);
|
|
11143
11149
|
|
|
11144
11150
|
var _useForcedContext = useForcedContext(NavbarContext),
|
|
11145
11151
|
variant = _useForcedContext.variant;
|
|
@@ -11157,7 +11163,7 @@
|
|
|
11157
11163
|
NavbarText.displayName = 'NavbarText';
|
|
11158
11164
|
NavbarText.propTypes = propTypes$v;
|
|
11159
11165
|
|
|
11160
|
-
var _excluded$
|
|
11166
|
+
var _excluded$s = ["children", "style", "textStyle"];
|
|
11161
11167
|
|
|
11162
11168
|
var _templateObject$n, _templateObject2$h, _templateObject3$6, _templateObject4$5;
|
|
11163
11169
|
var propTypes$u = {
|
|
@@ -11177,7 +11183,7 @@
|
|
|
11177
11183
|
var children = props.children,
|
|
11178
11184
|
style = props.style,
|
|
11179
11185
|
textStyle = props.textStyle,
|
|
11180
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11186
|
+
elementProps = _objectWithoutProperties(props, _excluded$s);
|
|
11181
11187
|
|
|
11182
11188
|
var _useForcedContext = useForcedContext(NavbarContext),
|
|
11183
11189
|
variant = _useForcedContext.variant;
|
|
@@ -11193,7 +11199,7 @@
|
|
|
11193
11199
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
11194
11200
|
NavbarBrand.propTypes = propTypes$u;
|
|
11195
11201
|
|
|
11196
|
-
var _excluded$
|
|
11202
|
+
var _excluded$r = ["children", "style"];
|
|
11197
11203
|
|
|
11198
11204
|
var _templateObject$m, _templateObject2$g;
|
|
11199
11205
|
var propTypes$t = {
|
|
@@ -11209,7 +11215,7 @@
|
|
|
11209
11215
|
var NavbarCollapse = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
11210
11216
|
var children = props.children,
|
|
11211
11217
|
style = props.style,
|
|
11212
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11218
|
+
elementProps = _objectWithoutProperties(props, _excluded$r);
|
|
11213
11219
|
|
|
11214
11220
|
var _useForcedContext = useForcedContext(NavbarContext),
|
|
11215
11221
|
expand = _useForcedContext.expand,
|
|
@@ -11231,12 +11237,12 @@
|
|
|
11231
11237
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
11232
11238
|
NavbarCollapse.propTypes = propTypes$t;
|
|
11233
11239
|
|
|
11234
|
-
var _excluded$
|
|
11240
|
+
var _excluded$q = ["onPress"];
|
|
11235
11241
|
function useToggleNavbar(props) {
|
|
11236
11242
|
var context = useForcedContext(NavbarContext);
|
|
11237
11243
|
|
|
11238
11244
|
var handlePress = props.onPress,
|
|
11239
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11245
|
+
restProps = _objectWithoutProperties(props, _excluded$q);
|
|
11240
11246
|
|
|
11241
11247
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
11242
11248
|
nativeID: context.identifier,
|
|
@@ -11252,7 +11258,7 @@
|
|
|
11252
11258
|
});
|
|
11253
11259
|
}
|
|
11254
11260
|
|
|
11255
|
-
var _excluded$
|
|
11261
|
+
var _excluded$p = ["style", "textStyle", "iconStyle"];
|
|
11256
11262
|
|
|
11257
11263
|
var _templateObject$l, _templateObject2$f, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$3, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1;
|
|
11258
11264
|
var propTypes$s = {
|
|
@@ -11285,7 +11291,7 @@
|
|
|
11285
11291
|
var style = props.style,
|
|
11286
11292
|
textStyle = props.textStyle,
|
|
11287
11293
|
iconStyle = props.iconStyle,
|
|
11288
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11294
|
+
elementProps = _objectWithoutProperties(props, _excluded$p);
|
|
11289
11295
|
|
|
11290
11296
|
var media = useMedia();
|
|
11291
11297
|
|
|
@@ -11331,12 +11337,12 @@
|
|
|
11331
11337
|
}, [variant, expanded, expand]);
|
|
11332
11338
|
}
|
|
11333
11339
|
|
|
11334
|
-
var _excluded$
|
|
11340
|
+
var _excluded$o = ["onPress"];
|
|
11335
11341
|
function useDismissNavbar(props) {
|
|
11336
11342
|
var context = useForcedContext(NavbarContext);
|
|
11337
11343
|
|
|
11338
11344
|
var handlePress = props.onPress,
|
|
11339
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11345
|
+
restProps = _objectWithoutProperties(props, _excluded$o);
|
|
11340
11346
|
|
|
11341
11347
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
11342
11348
|
onPress: function onPress(event) {
|
|
@@ -11347,7 +11353,7 @@
|
|
|
11347
11353
|
});
|
|
11348
11354
|
}
|
|
11349
11355
|
|
|
11350
|
-
var _excluded$
|
|
11356
|
+
var _excluded$n = ["children", "variant", "defaultExpanded", "expanded", "onToggle", "expand", "style"];
|
|
11351
11357
|
|
|
11352
11358
|
var _templateObject$k, _templateObject2$e;
|
|
11353
11359
|
var propTypes$r = {
|
|
@@ -11375,7 +11381,7 @@
|
|
|
11375
11381
|
onToggle = props.onToggle,
|
|
11376
11382
|
expand = props.expand,
|
|
11377
11383
|
style = props.style,
|
|
11378
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11384
|
+
elementProps = _objectWithoutProperties(props, _excluded$n);
|
|
11379
11385
|
|
|
11380
11386
|
var navbar = useNavbar(variant, defaultExpanded, expanded, onToggle, expand);
|
|
11381
11387
|
var classes = getStyles(styles$k, ['.navbar', expand && ".navbar-expand".concat(expand === true ? '' : "-".concat(expand))]);
|
|
@@ -11401,7 +11407,7 @@
|
|
|
11401
11407
|
}, []);
|
|
11402
11408
|
}
|
|
11403
11409
|
|
|
11404
|
-
var _excluded$
|
|
11410
|
+
var _excluded$m = ["children", "style"];
|
|
11405
11411
|
|
|
11406
11412
|
var _templateObject$j, _templateObject2$d;
|
|
11407
11413
|
var propTypes$q = {
|
|
@@ -11417,7 +11423,7 @@
|
|
|
11417
11423
|
var OffcanvasHeader = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
11418
11424
|
var children = props.children,
|
|
11419
11425
|
style = props.style,
|
|
11420
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11426
|
+
elementProps = _objectWithoutProperties(props, _excluded$m);
|
|
11421
11427
|
|
|
11422
11428
|
var navbar = React.useContext(NavbarContext);
|
|
11423
11429
|
var classes = getStyles(styles$j, ['.offcanvas-header', navbar && navbar.expand && ".navbar-expand".concat(navbar.expand === true ? '' : "-".concat(navbar.expand), " .offcanvas-header")]);
|
|
@@ -11429,7 +11435,7 @@
|
|
|
11429
11435
|
OffcanvasHeader.displayName = 'OffcanvasHeader';
|
|
11430
11436
|
OffcanvasHeader.propTypes = propTypes$q;
|
|
11431
11437
|
|
|
11432
|
-
var _excluded$
|
|
11438
|
+
var _excluded$l = ["children", "style"];
|
|
11433
11439
|
|
|
11434
11440
|
var _templateObject$i;
|
|
11435
11441
|
var propTypes$p = {
|
|
@@ -11443,7 +11449,7 @@
|
|
|
11443
11449
|
var OffcanvasTitle = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
11444
11450
|
var children = props.children,
|
|
11445
11451
|
style = props.style,
|
|
11446
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11452
|
+
elementProps = _objectWithoutProperties(props, _excluded$l);
|
|
11447
11453
|
|
|
11448
11454
|
var classes = getStyles(styles$i, ['.offcanvas-title']);
|
|
11449
11455
|
return /*#__PURE__*/React__default["default"].createElement(Heading$2, _extends$1({
|
|
@@ -11456,7 +11462,7 @@
|
|
|
11456
11462
|
OffcanvasTitle.displayName = 'OffcanvasTitle';
|
|
11457
11463
|
OffcanvasTitle.propTypes = propTypes$p;
|
|
11458
11464
|
|
|
11459
|
-
var _excluded$
|
|
11465
|
+
var _excluded$k = ["children", "style", "contentContainerStyle"];
|
|
11460
11466
|
|
|
11461
11467
|
var _templateObject$h, _templateObject2$c;
|
|
11462
11468
|
var propTypes$o = {
|
|
@@ -11475,7 +11481,7 @@
|
|
|
11475
11481
|
var children = props.children,
|
|
11476
11482
|
style = props.style,
|
|
11477
11483
|
contentContainerStyle = props.contentContainerStyle,
|
|
11478
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11484
|
+
elementProps = _objectWithoutProperties(props, _excluded$k);
|
|
11479
11485
|
|
|
11480
11486
|
var navbar = React.useContext(NavbarContext);
|
|
11481
11487
|
var contentContainerClasses = getStyles(styles$h, ['.offcanvas-body', navbar && navbar.expand && ".navbar-expand".concat(navbar.expand === true ? '' : "-".concat(navbar.expand), " .offcanvas-body")]);
|
|
@@ -11488,7 +11494,7 @@
|
|
|
11488
11494
|
OffcanvasBody.displayName = 'OffcanvasBody';
|
|
11489
11495
|
OffcanvasBody.propTypes = propTypes$o;
|
|
11490
11496
|
|
|
11491
|
-
var _excluded$
|
|
11497
|
+
var _excluded$j = ["children", "visible", "placement", "backdrop", "scroll", "onToggle", "style", "textStyle"];
|
|
11492
11498
|
|
|
11493
11499
|
var _templateObject$g, _templateObject2$b, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
11494
11500
|
var PLACEMENTS = ['top', 'bottom', 'start', 'end']; // , 'auto'
|
|
@@ -11537,7 +11543,7 @@
|
|
|
11537
11543
|
handleToggle = props.onToggle,
|
|
11538
11544
|
style = props.style,
|
|
11539
11545
|
textStyle = props.textStyle,
|
|
11540
|
-
elementProps = _objectWithoutProperties(props, _excluded$
|
|
11546
|
+
elementProps = _objectWithoutProperties(props, _excluded$j);
|
|
11541
11547
|
|
|
11542
11548
|
var media = useMedia();
|
|
11543
11549
|
var navbar = React.useContext(NavbarContext);
|
|
@@ -11594,6 +11600,7 @@
|
|
|
11594
11600
|
var PickerWebContext = /*#__PURE__*/React__default["default"].createContext();
|
|
11595
11601
|
PickerWebContext.displayName = 'PickerWebContext';
|
|
11596
11602
|
|
|
11603
|
+
var _excluded$i = ["children", "selectedValue", "onValueChange", "onFocus", "onBlur", "placeholder", "placeholderTextColor", "disabled", "style"];
|
|
11597
11604
|
var propTypes$m = {
|
|
11598
11605
|
children: PropTypes.node.isRequired,
|
|
11599
11606
|
selectedValue: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.object]),
|
|
@@ -11604,9 +11611,7 @@
|
|
|
11604
11611
|
placeholderTextColor: PropTypes.string,
|
|
11605
11612
|
disabled: PropTypes.bool,
|
|
11606
11613
|
// eslint-disable-next-line react/forbid-prop-types
|
|
11607
|
-
style: PropTypes.any
|
|
11608
|
-
// eslint-disable-next-line react/forbid-prop-types
|
|
11609
|
-
nativeID: PropTypes.any
|
|
11614
|
+
style: PropTypes.any
|
|
11610
11615
|
};
|
|
11611
11616
|
var PLACEHOLDER = '__PLACEHOLDER__';
|
|
11612
11617
|
|
|
@@ -11632,10 +11637,11 @@
|
|
|
11632
11637
|
placeholderTextColor = props.placeholderTextColor,
|
|
11633
11638
|
disabled = props.disabled,
|
|
11634
11639
|
style = props.style,
|
|
11635
|
-
|
|
11640
|
+
elementProps = _objectWithoutProperties(props, _excluded$i);
|
|
11641
|
+
|
|
11636
11642
|
var background = useBackground(style);
|
|
11637
11643
|
var showPlaceholder = placeholder && (selectedValue === undefined || selectedValue === null);
|
|
11638
|
-
return /*#__PURE__*/React__default["default"].createElement(reactNative.Picker, {
|
|
11644
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Picker, _extends$1({}, elementProps, {
|
|
11639
11645
|
ref: ref,
|
|
11640
11646
|
selectedValue: showPlaceholder ? PLACEHOLDER : selectedValue,
|
|
11641
11647
|
onValueChange: onValueChange,
|
|
@@ -11644,9 +11650,8 @@
|
|
|
11644
11650
|
disabled: disabled,
|
|
11645
11651
|
style: [background.style, showPlaceholder && {
|
|
11646
11652
|
color: placeholderTextColor
|
|
11647
|
-
}]
|
|
11648
|
-
|
|
11649
|
-
}, placeholder && /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11653
|
+
}]
|
|
11654
|
+
}), placeholder && /*#__PURE__*/React__default["default"].createElement("option", {
|
|
11650
11655
|
value: PLACEHOLDER,
|
|
11651
11656
|
disabled: true,
|
|
11652
11657
|
hidden: true
|
|
@@ -11661,9 +11666,11 @@
|
|
|
11661
11666
|
var PickerNativeContext = /*#__PURE__*/React__default["default"].createContext();
|
|
11662
11667
|
PickerNativeContext.displayName = 'PickerNativeContext';
|
|
11663
11668
|
|
|
11669
|
+
var _excluded$h = ["children", "selectedValue", "onValueChange", "onFocus", "onBlur", "placeholder", "placeholderTextColor", "disabled", "renderText", "renderMenu", "style"];
|
|
11670
|
+
|
|
11664
11671
|
var _templateObject$f;
|
|
11665
11672
|
var propTypes$l = {
|
|
11666
|
-
children: PropTypes.node
|
|
11673
|
+
children: PropTypes.node,
|
|
11667
11674
|
selectedValue: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.object]),
|
|
11668
11675
|
onValueChange: PropTypes.func,
|
|
11669
11676
|
onFocus: PropTypes.func,
|
|
@@ -11671,10 +11678,10 @@
|
|
|
11671
11678
|
placeholder: PropTypes.string,
|
|
11672
11679
|
placeholderTextColor: PropTypes.string,
|
|
11673
11680
|
disabled: PropTypes.bool,
|
|
11681
|
+
renderText: PropTypes.func,
|
|
11682
|
+
renderMenu: PropTypes.func,
|
|
11674
11683
|
// eslint-disable-next-line react/forbid-prop-types
|
|
11675
|
-
style: PropTypes.any
|
|
11676
|
-
// eslint-disable-next-line react/forbid-prop-types
|
|
11677
|
-
nativeID: PropTypes.any
|
|
11684
|
+
style: PropTypes.any
|
|
11678
11685
|
};
|
|
11679
11686
|
var styles$f = StyleSheet.create({
|
|
11680
11687
|
menu: css(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral(["\n align-items: center;\n "])))
|
|
@@ -11696,11 +11703,45 @@
|
|
|
11696
11703
|
return textStyles;
|
|
11697
11704
|
};
|
|
11698
11705
|
|
|
11706
|
+
var renderTextDefault = function renderTextDefault(_ref3) {
|
|
11707
|
+
var children = _ref3.children,
|
|
11708
|
+
selectedValue = _ref3.selectedValue;
|
|
11709
|
+
var items = React__default["default"].Children.map(children, function (child) {
|
|
11710
|
+
return {
|
|
11711
|
+
label: child.props.label,
|
|
11712
|
+
value: child.props.value
|
|
11713
|
+
};
|
|
11714
|
+
});
|
|
11715
|
+
var selectedItem = items.find(function (item) {
|
|
11716
|
+
return item.value === selectedValue;
|
|
11717
|
+
});
|
|
11718
|
+
return selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label;
|
|
11719
|
+
};
|
|
11720
|
+
|
|
11721
|
+
var renderMenuDefault = function renderMenuDefault(_ref4) {
|
|
11722
|
+
var children = _ref4.children,
|
|
11723
|
+
selectedValue = _ref4.selectedValue,
|
|
11724
|
+
handleValueChange = _ref4.handleValueChange,
|
|
11725
|
+
handleClose = _ref4.handleClose;
|
|
11726
|
+
return /*#__PURE__*/React__default["default"].createElement(Offcanvas, {
|
|
11727
|
+
placement: "bottom",
|
|
11728
|
+
visible: true,
|
|
11729
|
+
onToggle: handleClose
|
|
11730
|
+
}, /*#__PURE__*/React__default["default"].createElement(Offcanvas.Body, {
|
|
11731
|
+
contentContainerStyle: styles$f.menu
|
|
11732
|
+
}, /*#__PURE__*/React__default["default"].createElement(PickerNativeContext.Provider, {
|
|
11733
|
+
value: {
|
|
11734
|
+
selectedValue: selectedValue,
|
|
11735
|
+
handleValueChange: handleValueChange
|
|
11736
|
+
}
|
|
11737
|
+
}, children)));
|
|
11738
|
+
};
|
|
11739
|
+
|
|
11699
11740
|
var PickerNative = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
11700
11741
|
var children = props.children,
|
|
11701
11742
|
selectedValue = props.selectedValue,
|
|
11702
11743
|
_props$onValueChange = props.onValueChange,
|
|
11703
|
-
|
|
11744
|
+
onValueChange = _props$onValueChange === void 0 ? function () {} : _props$onValueChange,
|
|
11704
11745
|
_props$onFocus = props.onFocus,
|
|
11705
11746
|
onFocus = _props$onFocus === void 0 ? function () {} : _props$onFocus,
|
|
11706
11747
|
_props$onBlur = props.onBlur,
|
|
@@ -11710,28 +11751,33 @@
|
|
|
11710
11751
|
placeholderTextColor = _props$placeholderTex === void 0 ? StyleSheet.value('input-placeholder-color') : _props$placeholderTex,
|
|
11711
11752
|
_props$disabled = props.disabled,
|
|
11712
11753
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
11754
|
+
_props$renderText = props.renderText,
|
|
11755
|
+
renderText = _props$renderText === void 0 ? renderTextDefault : _props$renderText,
|
|
11756
|
+
_props$renderMenu = props.renderMenu,
|
|
11757
|
+
renderMenu = _props$renderMenu === void 0 ? renderMenuDefault : _props$renderMenu,
|
|
11713
11758
|
style = props.style,
|
|
11714
|
-
|
|
11759
|
+
elementProps = _objectWithoutProperties(props, _excluded$h);
|
|
11715
11760
|
|
|
11716
11761
|
var background = useBackground(style);
|
|
11717
11762
|
|
|
11718
11763
|
var _useState = React.useState(false),
|
|
11719
11764
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11720
|
-
|
|
11721
|
-
|
|
11765
|
+
visible = _useState2[0],
|
|
11766
|
+
setVisible = _useState2[1];
|
|
11722
11767
|
|
|
11723
|
-
var items = React__default["default"].Children.map(children, function (child) {
|
|
11724
|
-
return {
|
|
11725
|
-
label: child.props.label,
|
|
11726
|
-
value: child.props.value
|
|
11727
|
-
};
|
|
11728
|
-
});
|
|
11729
|
-
var selectedItem = items.find(function (item) {
|
|
11730
|
-
return item.value === selectedValue;
|
|
11731
|
-
});
|
|
11732
11768
|
var textStyle = extractTextStyles(background.style);
|
|
11733
11769
|
var showPlaceholder = placeholder && (selectedValue === undefined || selectedValue === null);
|
|
11734
|
-
|
|
11770
|
+
|
|
11771
|
+
var handleValueChange = function handleValueChange(nextValue) {
|
|
11772
|
+
onValueChange(nextValue);
|
|
11773
|
+
setVisible(false);
|
|
11774
|
+
};
|
|
11775
|
+
|
|
11776
|
+
var handleClose = function handleClose() {
|
|
11777
|
+
setVisible(false);
|
|
11778
|
+
};
|
|
11779
|
+
|
|
11780
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Pressable, _extends$1({}, elementProps, {
|
|
11735
11781
|
ref: ref,
|
|
11736
11782
|
accessibilityRole: "combobox",
|
|
11737
11783
|
accessibilityDisabled: disabled,
|
|
@@ -11739,36 +11785,26 @@
|
|
|
11739
11785
|
focusable: !disabled,
|
|
11740
11786
|
selectable: false,
|
|
11741
11787
|
onPress: function onPress() {
|
|
11742
|
-
|
|
11788
|
+
setVisible(true);
|
|
11743
11789
|
},
|
|
11744
11790
|
onFocus: onFocus,
|
|
11745
11791
|
onBlur: onBlur,
|
|
11746
11792
|
disabled: disabled,
|
|
11747
|
-
style: background.style
|
|
11748
|
-
|
|
11749
|
-
}, background.element, /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
11793
|
+
style: background.style
|
|
11794
|
+
}), background.element, /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
11750
11795
|
numberOfLines: 1,
|
|
11751
11796
|
style: [textStyle, showPlaceholder && {
|
|
11752
11797
|
color: placeholderTextColor
|
|
11753
11798
|
}]
|
|
11754
|
-
},
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
}
|
|
11763
|
-
value: {
|
|
11764
|
-
selectedValue: selectedValue,
|
|
11765
|
-
onValueChange: function onValueChange(nextValue) {
|
|
11766
|
-
_onValueChange(nextValue);
|
|
11767
|
-
|
|
11768
|
-
setOpen(false);
|
|
11769
|
-
}
|
|
11770
|
-
}
|
|
11771
|
-
}, children))));
|
|
11799
|
+
}, showPlaceholder ? placeholder : renderText({
|
|
11800
|
+
children: children,
|
|
11801
|
+
selectedValue: selectedValue
|
|
11802
|
+
}))), visible && renderMenu({
|
|
11803
|
+
children: children,
|
|
11804
|
+
selectedValue: selectedValue,
|
|
11805
|
+
handleValueChange: handleValueChange,
|
|
11806
|
+
handleClose: handleClose
|
|
11807
|
+
}));
|
|
11772
11808
|
});
|
|
11773
11809
|
PickerNative.propTypes = propTypes$l;
|
|
11774
11810
|
|
|
@@ -11818,7 +11854,7 @@
|
|
|
11818
11854
|
|
|
11819
11855
|
var _useForcedContext = useForcedContext(PickerNativeContext),
|
|
11820
11856
|
selectedValue = _useForcedContext.selectedValue,
|
|
11821
|
-
|
|
11857
|
+
handleValueChange = _useForcedContext.handleValueChange;
|
|
11822
11858
|
|
|
11823
11859
|
var media = useMedia();
|
|
11824
11860
|
var classes = getStyles(styles$e, ['item', disabled && 'itemDisabled']);
|
|
@@ -11827,7 +11863,7 @@
|
|
|
11827
11863
|
return /*#__PURE__*/React__default["default"].createElement(Pressable, {
|
|
11828
11864
|
ref: ref,
|
|
11829
11865
|
onPress: function onPress() {
|
|
11830
|
-
|
|
11866
|
+
handleValueChange(value);
|
|
11831
11867
|
},
|
|
11832
11868
|
accessibilitySelected: selected,
|
|
11833
11869
|
disabled: disabled,
|
|
@@ -11872,7 +11908,7 @@
|
|
|
11872
11908
|
/* eslint-disable react/no-unused-prop-types */
|
|
11873
11909
|
|
|
11874
11910
|
var propTypes$h = {
|
|
11875
|
-
children: PropTypes.node
|
|
11911
|
+
children: PropTypes.node,
|
|
11876
11912
|
onFocus: PropTypes.func,
|
|
11877
11913
|
onBlur: PropTypes.func,
|
|
11878
11914
|
placeholderTextColor: PropTypes.string,
|