bootstrap-rn 0.2.8 → 0.2.10
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 +21 -40
- package/dist/bootstrap-rn.esm.js +21 -40
- package/dist/bootstrap-rn.umd.js +21 -40
- package/dist/bootstrap-rn.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/bootstrap-rn.cjs.js
CHANGED
|
@@ -3594,12 +3594,9 @@ function useToggleButton(props) {
|
|
|
3594
3594
|
active: pressed,
|
|
3595
3595
|
onPress: function onPress(event) {
|
|
3596
3596
|
if (handlePress) handlePress(event);
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
return !value;
|
|
3601
|
-
});
|
|
3602
|
-
}
|
|
3597
|
+
setPressed(function (value) {
|
|
3598
|
+
return !value;
|
|
3599
|
+
});
|
|
3603
3600
|
},
|
|
3604
3601
|
accessibilityPressed: pressed
|
|
3605
3602
|
});
|
|
@@ -3766,7 +3763,7 @@ var propTypes$1n = {
|
|
|
3766
3763
|
styleName: PropTypes__default["default"].any
|
|
3767
3764
|
};
|
|
3768
3765
|
var styles$15 = StyleSheet.create({
|
|
3769
|
-
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n
|
|
3766
|
+
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n flex-grow: 1; // added for bootstrap-rn\n "]))),
|
|
3770
3767
|
'body --text': css(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteral(["\n color: $body-color;\n text-align: $body-text-align;\n "])))
|
|
3771
3768
|
});
|
|
3772
3769
|
var Body = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
@@ -4435,12 +4432,9 @@ function useToggleCollapse(props) {
|
|
|
4435
4432
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
4436
4433
|
onPress: function onPress(event) {
|
|
4437
4434
|
if (handlePress) handlePress(event);
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
return !value;
|
|
4442
|
-
});
|
|
4443
|
-
}
|
|
4435
|
+
context.setVisible(function (value) {
|
|
4436
|
+
return !value;
|
|
4437
|
+
});
|
|
4444
4438
|
},
|
|
4445
4439
|
accessibilityExpanded: context.visible,
|
|
4446
4440
|
accessibilityControls: context.identifier
|
|
@@ -4897,12 +4891,9 @@ function useToggleDropdown(props) {
|
|
|
4897
4891
|
ref: context.toggleRef,
|
|
4898
4892
|
onPress: function onPress(event) {
|
|
4899
4893
|
if (handlePress) handlePress(event);
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
return !value;
|
|
4904
|
-
});
|
|
4905
|
-
}
|
|
4894
|
+
context.setVisible(function (value) {
|
|
4895
|
+
return !value;
|
|
4896
|
+
});
|
|
4906
4897
|
},
|
|
4907
4898
|
accessibilityHasPopup: true,
|
|
4908
4899
|
accessibilityExpanded: context.visible,
|
|
@@ -5343,9 +5334,11 @@ var DropdownItem = function DropdownItem(props) {
|
|
|
5343
5334
|
onPress: function onPress(event) {
|
|
5344
5335
|
if (handlePress) handlePress(event);
|
|
5345
5336
|
|
|
5346
|
-
if (
|
|
5347
|
-
|
|
5337
|
+
if (event.defaultPrevented) {
|
|
5338
|
+
return;
|
|
5348
5339
|
}
|
|
5340
|
+
|
|
5341
|
+
dropdown.setVisible(false);
|
|
5349
5342
|
},
|
|
5350
5343
|
disabled: disabled,
|
|
5351
5344
|
style: [classes, style],
|
|
@@ -5445,10 +5438,7 @@ function useDismissDropdown(props) {
|
|
|
5445
5438
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5446
5439
|
onPress: function onPress(event) {
|
|
5447
5440
|
if (handlePress) handlePress(event);
|
|
5448
|
-
|
|
5449
|
-
if (!event.defaultPrevented) {
|
|
5450
|
-
context.setVisible(false);
|
|
5451
|
-
}
|
|
5441
|
+
context.setVisible(false);
|
|
5452
5442
|
}
|
|
5453
5443
|
});
|
|
5454
5444
|
}
|
|
@@ -7416,12 +7406,9 @@ function useToggleNavbar(props) {
|
|
|
7416
7406
|
nativeID: context.identifier,
|
|
7417
7407
|
onPress: function onPress(event) {
|
|
7418
7408
|
if (handlePress) handlePress(event);
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
return !value;
|
|
7423
|
-
});
|
|
7424
|
-
}
|
|
7409
|
+
context.setExpanded(function (value) {
|
|
7410
|
+
return !value;
|
|
7411
|
+
});
|
|
7425
7412
|
},
|
|
7426
7413
|
accessibilitControls: context.identifier,
|
|
7427
7414
|
accessibilityExpanded: context.expanded,
|
|
@@ -7518,10 +7505,7 @@ function useDismissNavbar(props) {
|
|
|
7518
7505
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
7519
7506
|
onPress: function onPress(event) {
|
|
7520
7507
|
if (handlePress) handlePress(event);
|
|
7521
|
-
|
|
7522
|
-
if (!event.defaultPrevented) {
|
|
7523
|
-
context.setExpanded(false);
|
|
7524
|
-
}
|
|
7508
|
+
context.setExpanded(false);
|
|
7525
7509
|
},
|
|
7526
7510
|
accessibilityLabel: 'Close'
|
|
7527
7511
|
});
|
|
@@ -8748,11 +8732,8 @@ function useToggleTab(props) {
|
|
|
8748
8732
|
nativeID: "".concat(id, "-tab"),
|
|
8749
8733
|
onPress: function onPress(event) {
|
|
8750
8734
|
if (handlePress) handlePress(event);
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
event.preventDefault();
|
|
8754
|
-
context.setActiveTarget(target);
|
|
8755
|
-
}
|
|
8735
|
+
event.preventDefault();
|
|
8736
|
+
context.setActiveTarget(target);
|
|
8756
8737
|
},
|
|
8757
8738
|
active: active,
|
|
8758
8739
|
accessibilityRole: 'tab',
|
package/dist/bootstrap-rn.esm.js
CHANGED
|
@@ -3585,12 +3585,9 @@ function useToggleButton(props) {
|
|
|
3585
3585
|
active: pressed,
|
|
3586
3586
|
onPress: function onPress(event) {
|
|
3587
3587
|
if (handlePress) handlePress(event);
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
return !value;
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3588
|
+
setPressed(function (value) {
|
|
3589
|
+
return !value;
|
|
3590
|
+
});
|
|
3594
3591
|
},
|
|
3595
3592
|
accessibilityPressed: pressed
|
|
3596
3593
|
});
|
|
@@ -3757,7 +3754,7 @@ var propTypes$1n = {
|
|
|
3757
3754
|
styleName: PropTypes.any
|
|
3758
3755
|
};
|
|
3759
3756
|
var styles$15 = StyleSheet.create({
|
|
3760
|
-
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n
|
|
3757
|
+
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n flex-grow: 1; // added for bootstrap-rn\n "]))),
|
|
3761
3758
|
'body --text': css(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteral(["\n color: $body-color;\n text-align: $body-text-align;\n "])))
|
|
3762
3759
|
});
|
|
3763
3760
|
var Body = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -4426,12 +4423,9 @@ function useToggleCollapse(props) {
|
|
|
4426
4423
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
4427
4424
|
onPress: function onPress(event) {
|
|
4428
4425
|
if (handlePress) handlePress(event);
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
return !value;
|
|
4433
|
-
});
|
|
4434
|
-
}
|
|
4426
|
+
context.setVisible(function (value) {
|
|
4427
|
+
return !value;
|
|
4428
|
+
});
|
|
4435
4429
|
},
|
|
4436
4430
|
accessibilityExpanded: context.visible,
|
|
4437
4431
|
accessibilityControls: context.identifier
|
|
@@ -4888,12 +4882,9 @@ function useToggleDropdown(props) {
|
|
|
4888
4882
|
ref: context.toggleRef,
|
|
4889
4883
|
onPress: function onPress(event) {
|
|
4890
4884
|
if (handlePress) handlePress(event);
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
return !value;
|
|
4895
|
-
});
|
|
4896
|
-
}
|
|
4885
|
+
context.setVisible(function (value) {
|
|
4886
|
+
return !value;
|
|
4887
|
+
});
|
|
4897
4888
|
},
|
|
4898
4889
|
accessibilityHasPopup: true,
|
|
4899
4890
|
accessibilityExpanded: context.visible,
|
|
@@ -5334,9 +5325,11 @@ var DropdownItem = function DropdownItem(props) {
|
|
|
5334
5325
|
onPress: function onPress(event) {
|
|
5335
5326
|
if (handlePress) handlePress(event);
|
|
5336
5327
|
|
|
5337
|
-
if (
|
|
5338
|
-
|
|
5328
|
+
if (event.defaultPrevented) {
|
|
5329
|
+
return;
|
|
5339
5330
|
}
|
|
5331
|
+
|
|
5332
|
+
dropdown.setVisible(false);
|
|
5340
5333
|
},
|
|
5341
5334
|
disabled: disabled,
|
|
5342
5335
|
style: [classes, style],
|
|
@@ -5436,10 +5429,7 @@ function useDismissDropdown(props) {
|
|
|
5436
5429
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5437
5430
|
onPress: function onPress(event) {
|
|
5438
5431
|
if (handlePress) handlePress(event);
|
|
5439
|
-
|
|
5440
|
-
if (!event.defaultPrevented) {
|
|
5441
|
-
context.setVisible(false);
|
|
5442
|
-
}
|
|
5432
|
+
context.setVisible(false);
|
|
5443
5433
|
}
|
|
5444
5434
|
});
|
|
5445
5435
|
}
|
|
@@ -7407,12 +7397,9 @@ function useToggleNavbar(props) {
|
|
|
7407
7397
|
nativeID: context.identifier,
|
|
7408
7398
|
onPress: function onPress(event) {
|
|
7409
7399
|
if (handlePress) handlePress(event);
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
return !value;
|
|
7414
|
-
});
|
|
7415
|
-
}
|
|
7400
|
+
context.setExpanded(function (value) {
|
|
7401
|
+
return !value;
|
|
7402
|
+
});
|
|
7416
7403
|
},
|
|
7417
7404
|
accessibilitControls: context.identifier,
|
|
7418
7405
|
accessibilityExpanded: context.expanded,
|
|
@@ -7509,10 +7496,7 @@ function useDismissNavbar(props) {
|
|
|
7509
7496
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
7510
7497
|
onPress: function onPress(event) {
|
|
7511
7498
|
if (handlePress) handlePress(event);
|
|
7512
|
-
|
|
7513
|
-
if (!event.defaultPrevented) {
|
|
7514
|
-
context.setExpanded(false);
|
|
7515
|
-
}
|
|
7499
|
+
context.setExpanded(false);
|
|
7516
7500
|
},
|
|
7517
7501
|
accessibilityLabel: 'Close'
|
|
7518
7502
|
});
|
|
@@ -8739,11 +8723,8 @@ function useToggleTab(props) {
|
|
|
8739
8723
|
nativeID: "".concat(id, "-tab"),
|
|
8740
8724
|
onPress: function onPress(event) {
|
|
8741
8725
|
if (handlePress) handlePress(event);
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
event.preventDefault();
|
|
8745
|
-
context.setActiveTarget(target);
|
|
8746
|
-
}
|
|
8726
|
+
event.preventDefault();
|
|
8727
|
+
context.setActiveTarget(target);
|
|
8747
8728
|
},
|
|
8748
8729
|
active: active,
|
|
8749
8730
|
accessibilityRole: 'tab',
|
package/dist/bootstrap-rn.umd.js
CHANGED
|
@@ -7609,12 +7609,9 @@
|
|
|
7609
7609
|
active: pressed,
|
|
7610
7610
|
onPress: function onPress(event) {
|
|
7611
7611
|
if (handlePress) handlePress(event);
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
return !value;
|
|
7616
|
-
});
|
|
7617
|
-
}
|
|
7612
|
+
setPressed(function (value) {
|
|
7613
|
+
return !value;
|
|
7614
|
+
});
|
|
7618
7615
|
},
|
|
7619
7616
|
accessibilityPressed: pressed
|
|
7620
7617
|
});
|
|
@@ -7781,7 +7778,7 @@
|
|
|
7781
7778
|
styleName: PropTypes.any
|
|
7782
7779
|
};
|
|
7783
7780
|
var styles$15 = StyleSheet.create({
|
|
7784
|
-
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n
|
|
7781
|
+
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n flex-grow: 1; // added for bootstrap-rn\n "]))),
|
|
7785
7782
|
'body --text': css(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteral(["\n color: $body-color;\n text-align: $body-text-align;\n "])))
|
|
7786
7783
|
});
|
|
7787
7784
|
var Body = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
@@ -8450,12 +8447,9 @@
|
|
|
8450
8447
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
8451
8448
|
onPress: function onPress(event) {
|
|
8452
8449
|
if (handlePress) handlePress(event);
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
return !value;
|
|
8457
|
-
});
|
|
8458
|
-
}
|
|
8450
|
+
context.setVisible(function (value) {
|
|
8451
|
+
return !value;
|
|
8452
|
+
});
|
|
8459
8453
|
},
|
|
8460
8454
|
accessibilityExpanded: context.visible,
|
|
8461
8455
|
accessibilityControls: context.identifier
|
|
@@ -8912,12 +8906,9 @@
|
|
|
8912
8906
|
ref: context.toggleRef,
|
|
8913
8907
|
onPress: function onPress(event) {
|
|
8914
8908
|
if (handlePress) handlePress(event);
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
return !value;
|
|
8919
|
-
});
|
|
8920
|
-
}
|
|
8909
|
+
context.setVisible(function (value) {
|
|
8910
|
+
return !value;
|
|
8911
|
+
});
|
|
8921
8912
|
},
|
|
8922
8913
|
accessibilityHasPopup: true,
|
|
8923
8914
|
accessibilityExpanded: context.visible,
|
|
@@ -9358,9 +9349,11 @@
|
|
|
9358
9349
|
onPress: function onPress(event) {
|
|
9359
9350
|
if (handlePress) handlePress(event);
|
|
9360
9351
|
|
|
9361
|
-
if (
|
|
9362
|
-
|
|
9352
|
+
if (event.defaultPrevented) {
|
|
9353
|
+
return;
|
|
9363
9354
|
}
|
|
9355
|
+
|
|
9356
|
+
dropdown.setVisible(false);
|
|
9364
9357
|
},
|
|
9365
9358
|
disabled: disabled,
|
|
9366
9359
|
style: [classes, style],
|
|
@@ -9460,10 +9453,7 @@
|
|
|
9460
9453
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9461
9454
|
onPress: function onPress(event) {
|
|
9462
9455
|
if (handlePress) handlePress(event);
|
|
9463
|
-
|
|
9464
|
-
if (!event.defaultPrevented) {
|
|
9465
|
-
context.setVisible(false);
|
|
9466
|
-
}
|
|
9456
|
+
context.setVisible(false);
|
|
9467
9457
|
}
|
|
9468
9458
|
});
|
|
9469
9459
|
}
|
|
@@ -11431,12 +11421,9 @@
|
|
|
11431
11421
|
nativeID: context.identifier,
|
|
11432
11422
|
onPress: function onPress(event) {
|
|
11433
11423
|
if (handlePress) handlePress(event);
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
return !value;
|
|
11438
|
-
});
|
|
11439
|
-
}
|
|
11424
|
+
context.setExpanded(function (value) {
|
|
11425
|
+
return !value;
|
|
11426
|
+
});
|
|
11440
11427
|
},
|
|
11441
11428
|
accessibilitControls: context.identifier,
|
|
11442
11429
|
accessibilityExpanded: context.expanded,
|
|
@@ -11533,10 +11520,7 @@
|
|
|
11533
11520
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
11534
11521
|
onPress: function onPress(event) {
|
|
11535
11522
|
if (handlePress) handlePress(event);
|
|
11536
|
-
|
|
11537
|
-
if (!event.defaultPrevented) {
|
|
11538
|
-
context.setExpanded(false);
|
|
11539
|
-
}
|
|
11523
|
+
context.setExpanded(false);
|
|
11540
11524
|
},
|
|
11541
11525
|
accessibilityLabel: 'Close'
|
|
11542
11526
|
});
|
|
@@ -12763,11 +12747,8 @@
|
|
|
12763
12747
|
nativeID: "".concat(id, "-tab"),
|
|
12764
12748
|
onPress: function onPress(event) {
|
|
12765
12749
|
if (handlePress) handlePress(event);
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
event.preventDefault();
|
|
12769
|
-
context.setActiveTarget(target);
|
|
12770
|
-
}
|
|
12750
|
+
event.preventDefault();
|
|
12751
|
+
context.setActiveTarget(target);
|
|
12771
12752
|
},
|
|
12772
12753
|
active: active,
|
|
12773
12754
|
accessibilityRole: 'tab',
|