tamagui 1.97.0 → 1.98.0

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.
@@ -1482,7 +1482,13 @@ var require_validStyleProps_native = __commonJS({
1482
1482
  minWidth: !0,
1483
1483
  minHeight: !0,
1484
1484
  maxWidth: !0,
1485
- maxHeight: !0
1485
+ maxHeight: !0,
1486
+ blockSize: !0,
1487
+ minBlockSize: !0,
1488
+ maxBlockSize: !0,
1489
+ inlineSize: !0,
1490
+ minInlineSize: !0,
1491
+ maxInlineSize: !0
1486
1492
  },
1487
1493
  zIndex: {
1488
1494
  zIndex: !0
@@ -1494,6 +1500,9 @@ var require_validStyleProps_native = __commonJS({
1494
1500
  borderBlockEndColor: !0,
1495
1501
  borderBlockColor: !0,
1496
1502
  borderBottomColor: !0,
1503
+ borderInlineColor: !0,
1504
+ borderInlineStartColor: !0,
1505
+ borderInlineEndColor: !0,
1497
1506
  borderTopColor: !0,
1498
1507
  borderLeftColor: !0,
1499
1508
  borderRightColor: !0,
@@ -1559,7 +1568,19 @@ var require_validStyleProps_native = __commonJS({
1559
1568
  borderBottomWidth: !0,
1560
1569
  borderLeftWidth: !0,
1561
1570
  borderRightWidth: !0,
1571
+ borderBlockWidth: !0,
1572
+ borderBlockEndWidth: !0,
1573
+ borderBlockStartWidth: !0,
1574
+ borderInlineWidth: !0,
1575
+ borderInlineEndWidth: !0,
1576
+ borderInlineStartWidth: !0,
1562
1577
  borderStyle: !0,
1578
+ borderBlockStyle: !0,
1579
+ borderBlockEndStyle: !0,
1580
+ borderBlockStartStyle: !0,
1581
+ borderInlineStyle: !0,
1582
+ borderInlineEndStyle: !0,
1583
+ borderInlineStartStyle: !0,
1563
1584
  borderTopEndRadius: !0,
1564
1585
  borderTopStartRadius: !0,
1565
1586
  borderTopWidth: !0,
@@ -1583,11 +1604,12 @@ var require_validStyleProps_native = __commonJS({
1583
1604
  justifyContent: !0,
1584
1605
  left: !0,
1585
1606
  margin: !0,
1607
+ marginBlock: !0,
1586
1608
  marginBlockEnd: !0,
1587
1609
  marginBlockStart: !0,
1588
- marginInlineEnd: !0,
1589
1610
  marginInline: !0,
1590
1611
  marginInlineStart: !0,
1612
+ marginInlineEnd: !0,
1591
1613
  marginBottom: !0,
1592
1614
  marginEnd: !0,
1593
1615
  marginHorizontal: !0,
@@ -1615,6 +1637,13 @@ var require_validStyleProps_native = __commonJS({
1615
1637
  right: !0,
1616
1638
  start: !0,
1617
1639
  top: !0,
1640
+ inset: !0,
1641
+ insetBlock: !0,
1642
+ insetBlockEnd: !0,
1643
+ insetBlockStart: !0,
1644
+ insetInline: !0,
1645
+ insetInlineEnd: !0,
1646
+ insetInlineStart: !0,
1618
1647
  direction: !0,
1619
1648
  shadowOffset: !0,
1620
1649
  shadowRadius: !0
@@ -1645,7 +1674,10 @@ var require_validStyleProps_native = __commonJS({
1645
1674
  textDecorationStyle: !0
1646
1675
  }), textColors), {
1647
1676
  textShadowOffset: !0,
1648
- textShadowRadius: !0
1677
+ textShadowRadius: !0,
1678
+ userSelect: !0,
1679
+ selectable: !0,
1680
+ verticalAlign: !0
1649
1681
  }),
1650
1682
  // allow some web only ones
1651
1683
  !1
@@ -6208,6 +6240,220 @@ var require_normalizeValueWithProperty_native = __commonJS({
6208
6240
  }
6209
6241
  });
6210
6242
 
6243
+ // ../web/dist/cjs/constants/webToNativeProps.native.js
6244
+ var require_webToNativeProps_native = __commonJS({
6245
+ "../web/dist/cjs/constants/webToNativeProps.native.js"(exports2, module2) {
6246
+ "use strict";
6247
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6248
+ for (var name in all)
6249
+ __defProp2(target, name, {
6250
+ get: all[name],
6251
+ enumerable: !0
6252
+ });
6253
+ }, __copyProps2 = function(to, from, except, desc) {
6254
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6255
+ if (from && typeof from == "object" || typeof from == "function")
6256
+ try {
6257
+ for (var _loop2 = function() {
6258
+ var key = _step.value;
6259
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6260
+ get: function() {
6261
+ return from[key];
6262
+ },
6263
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6264
+ });
6265
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
6266
+ _loop2();
6267
+ } catch (err) {
6268
+ _didIteratorError = !0, _iteratorError = err;
6269
+ } finally {
6270
+ try {
6271
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6272
+ } finally {
6273
+ if (_didIteratorError)
6274
+ throw _iteratorError;
6275
+ }
6276
+ }
6277
+ return to;
6278
+ }, __toCommonJS2 = function(mod) {
6279
+ return __copyProps2(__defProp2({}, "__esModule", {
6280
+ value: !0
6281
+ }), mod);
6282
+ }, webToNativeProps_native_exports = {};
6283
+ __export2(webToNativeProps_native_exports, {
6284
+ webToNativeDynamicExpansion: function() {
6285
+ return webToNativeDynamicExpansion;
6286
+ },
6287
+ webToNativeExpansion: function() {
6288
+ return webToNativeExpansion;
6289
+ }
6290
+ });
6291
+ module2.exports = __toCommonJS2(webToNativeProps_native_exports);
6292
+ var _loop = function(parent2) {
6293
+ var _exec, _exec_index, prefix = parent2.slice(0, (_exec_index = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _exec_index !== void 0 ? _exec_index : parent2.length);
6294
+ expansionsNoPrefix[parent2] = expansionsNoPrefix[parent2].map(function(k) {
6295
+ return "".concat(prefix).concat(k);
6296
+ });
6297
+ }, resizeModeMap = {
6298
+ fill: "stretch",
6299
+ none: "center",
6300
+ "scale-down": "contain",
6301
+ contain: "contain",
6302
+ cover: "cover"
6303
+ }, verticalAlignMap = {
6304
+ top: "top",
6305
+ middle: "center",
6306
+ bottom: "bottom",
6307
+ auto: "auto"
6308
+ }, webToNativeDynamicExpansion = {
6309
+ objectFit: function(val) {
6310
+ var resizeMode = resizeModeMap[val] || "cover";
6311
+ return [
6312
+ [
6313
+ "resizeMode",
6314
+ resizeMode
6315
+ ]
6316
+ ];
6317
+ },
6318
+ verticalAlign: function(val) {
6319
+ return [
6320
+ [
6321
+ "textAlignVertical",
6322
+ verticalAlignMap[val] || "auto"
6323
+ ]
6324
+ ];
6325
+ }
6326
+ }, vert = [
6327
+ "Top",
6328
+ "Bottom"
6329
+ ], es = [
6330
+ "End",
6331
+ "Start"
6332
+ ], t = [
6333
+ "Top"
6334
+ ], b = [
6335
+ "Bottom"
6336
+ ], s = [
6337
+ "Start"
6338
+ ], e = [
6339
+ "End"
6340
+ ], h = [
6341
+ "Height"
6342
+ ], w = [
6343
+ "Width"
6344
+ ], expansionsNoPrefix = {
6345
+ borderBlockColor: [
6346
+ "TopColor",
6347
+ "BottomColor"
6348
+ ],
6349
+ borderInlineColor: [
6350
+ "EndColor",
6351
+ "StartColor"
6352
+ ],
6353
+ borderBlockWidth: [
6354
+ "TopWidth",
6355
+ "BottomWidth"
6356
+ ],
6357
+ borderInlineWidth: [
6358
+ "EndWidth",
6359
+ "StartWidth"
6360
+ ],
6361
+ borderBlockStyle: [
6362
+ "TopStyle",
6363
+ "BottomStyle"
6364
+ ],
6365
+ borderInlineStyle: [
6366
+ "EndStyle",
6367
+ "StartStyle"
6368
+ ],
6369
+ marginBlock: vert,
6370
+ marginInline: es,
6371
+ paddingBlock: vert,
6372
+ paddingInline: es,
6373
+ borderBlockStartColor: [
6374
+ "TopColor"
6375
+ ],
6376
+ borderBlockEndColor: [
6377
+ "BottomColor"
6378
+ ],
6379
+ borderInlineStartColor: [
6380
+ "StartColor"
6381
+ ],
6382
+ borderInlineEndColor: [
6383
+ "EndColor"
6384
+ ],
6385
+ borderBlockStartWidth: [
6386
+ "TopWidth"
6387
+ ],
6388
+ borderBlockEndWidth: [
6389
+ "BottomWidth"
6390
+ ],
6391
+ borderInlineStartWidth: [
6392
+ "StartWidth"
6393
+ ],
6394
+ borderInlineEndWidth: [
6395
+ "EndWidth"
6396
+ ],
6397
+ borderBlockStartStyle: [
6398
+ "TopStyle"
6399
+ ],
6400
+ borderBlockEndStyle: [
6401
+ "BottomStyle"
6402
+ ],
6403
+ borderInlineStartStyle: [
6404
+ "StartStyle"
6405
+ ],
6406
+ borderInlineEndStyle: [
6407
+ "EndStyle"
6408
+ ],
6409
+ marginBlockStart: t,
6410
+ marginBlockEnd: b,
6411
+ marginInlineStart: s,
6412
+ marginInlineEnd: e,
6413
+ paddingBlockStart: t,
6414
+ paddingBlockEnd: b,
6415
+ paddingInlineStart: s,
6416
+ paddingInlineEnd: e,
6417
+ minBlockSize: h,
6418
+ maxBlockSize: h,
6419
+ minInlineSize: w,
6420
+ maxInlineSize: w
6421
+ };
6422
+ for (parent in expansionsNoPrefix)
6423
+ _loop(parent);
6424
+ var parent, expansions = {
6425
+ inset: [
6426
+ "top",
6427
+ "right",
6428
+ "bottom",
6429
+ "left"
6430
+ ],
6431
+ insetBlock: [
6432
+ "top",
6433
+ "bottom"
6434
+ ],
6435
+ insetBlockStart: [
6436
+ "top"
6437
+ ],
6438
+ insetBlockEnd: [
6439
+ "bottom"
6440
+ ],
6441
+ insetInlineStart: [
6442
+ "left"
6443
+ ],
6444
+ insetInlineEnd: [
6445
+ "right"
6446
+ ],
6447
+ blockSize: [
6448
+ "height"
6449
+ ],
6450
+ inlineSize: [
6451
+ "width"
6452
+ ]
6453
+ }, webToNativeExpansion = Object.assign(expansionsNoPrefix, expansions);
6454
+ }
6455
+ });
6456
+
6211
6457
  // ../web/dist/cjs/helpers/expandStyle.native.js
6212
6458
  var require_expandStyle_native = __commonJS({
6213
6459
  "../web/dist/cjs/helpers/expandStyle.native.js"(exports2, module2) {
@@ -6254,7 +6500,7 @@ var require_expandStyle_native = __commonJS({
6254
6500
  }
6255
6501
  });
6256
6502
  module2.exports = __toCommonJS2(expandStyle_exports);
6257
- var import_constants4 = require_index_native6();
6503
+ var import_constants4 = require_index_native6(), import_webToNativeProps = require_webToNativeProps_native();
6258
6504
  function _define_property9(obj, key, value) {
6259
6505
  return key in obj ? Object.defineProperty(obj, key, {
6260
6506
  value,
@@ -6295,6 +6541,15 @@ var require_expandStyle_native = __commonJS({
6295
6541
  value
6296
6542
  ];
6297
6543
  });
6544
+ if (key in import_webToNativeProps.webToNativeExpansion)
6545
+ return import_webToNativeProps.webToNativeExpansion[key].map(function(key2) {
6546
+ return [
6547
+ key2,
6548
+ value
6549
+ ];
6550
+ });
6551
+ if (key in import_webToNativeProps.webToNativeDynamicExpansion)
6552
+ return import_webToNativeProps.webToNativeDynamicExpansion[key](value);
6298
6553
  }
6299
6554
  var all = [
6300
6555
  "Top",
@@ -6637,6 +6892,109 @@ var require_getVariantExtras_native = __commonJS({
6637
6892
  }
6638
6893
  });
6639
6894
 
6895
+ // ../web/dist/cjs/helpers/webPropsToSkip.native.js
6896
+ var require_webPropsToSkip_native = __commonJS({
6897
+ "../web/dist/cjs/helpers/webPropsToSkip.native.js"(exports2, module2) {
6898
+ "use strict";
6899
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6900
+ for (var name in all)
6901
+ __defProp2(target, name, {
6902
+ get: all[name],
6903
+ enumerable: !0
6904
+ });
6905
+ }, __copyProps2 = function(to, from, except, desc) {
6906
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6907
+ if (from && typeof from == "object" || typeof from == "function")
6908
+ try {
6909
+ for (var _loop = function() {
6910
+ var key = _step.value;
6911
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6912
+ get: function() {
6913
+ return from[key];
6914
+ },
6915
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6916
+ });
6917
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
6918
+ _loop();
6919
+ } catch (err) {
6920
+ _didIteratorError = !0, _iteratorError = err;
6921
+ } finally {
6922
+ try {
6923
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6924
+ } finally {
6925
+ if (_didIteratorError)
6926
+ throw _iteratorError;
6927
+ }
6928
+ }
6929
+ return to;
6930
+ }, __toCommonJS2 = function(mod) {
6931
+ return __copyProps2(__defProp2({}, "__esModule", {
6932
+ value: !0
6933
+ }), mod);
6934
+ }, webPropsToSkip_native_exports = {};
6935
+ __export2(webPropsToSkip_native_exports, {
6936
+ webPropsToSkip: function() {
6937
+ return webPropsToSkip;
6938
+ }
6939
+ });
6940
+ module2.exports = __toCommonJS2(webPropsToSkip_native_exports);
6941
+ var webPropsToSkip = {
6942
+ whiteSpace: 1,
6943
+ wordWrap: 1,
6944
+ textOverflow: 1,
6945
+ textDecorationDistance: 1,
6946
+ cursor: 1,
6947
+ contain: 1,
6948
+ boxSizing: 1,
6949
+ touchAction: 1,
6950
+ boxShadow: 1,
6951
+ outlineStyle: 1,
6952
+ outlineOffset: 1,
6953
+ outlineWidth: 1,
6954
+ outlineColor: 1,
6955
+ filter: 1,
6956
+ backdropFilter: 1,
6957
+ backgroundImage: 1,
6958
+ mixBlendMode: 1,
6959
+ scrollbarWidth: 1,
6960
+ backgroundOrigin: 1,
6961
+ backgroundPosition: 1,
6962
+ backgroundRepeat: 1,
6963
+ backgroundSize: 1,
6964
+ backgroundClip: 1,
6965
+ backgroundBlendMode: 1,
6966
+ backgroundAttachment: 1,
6967
+ background: 1,
6968
+ clipPath: 1,
6969
+ caretColor: 1,
6970
+ transformStyle: 1,
6971
+ mask: 1,
6972
+ maskImage: 1,
6973
+ textEmphasis: 1,
6974
+ borderImage: 1,
6975
+ float: 1,
6976
+ content: 1,
6977
+ overflowBlock: 1,
6978
+ overflowInline: 1,
6979
+ maskBorder: 1,
6980
+ maskBorderMode: 1,
6981
+ maskBorderOutset: 1,
6982
+ maskBorderRepeat: 1,
6983
+ maskBorderSlice: 1,
6984
+ maskBorderSource: 1,
6985
+ maskBorderWidth: 1,
6986
+ maskClip: 1,
6987
+ maskComposite: 1,
6988
+ maskMode: 1,
6989
+ maskOrigin: 1,
6990
+ maskPosition: 1,
6991
+ maskRepeat: 1,
6992
+ maskSize: 1,
6993
+ maskType: 1
6994
+ };
6995
+ }
6996
+ });
6997
+
6640
6998
  // ../web/dist/cjs/helpers/skipProps.native.js
6641
6999
  var require_skipProps_native = __commonJS({
6642
7000
  "../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
@@ -6683,7 +7041,7 @@ var require_skipProps_native = __commonJS({
6683
7041
  }
6684
7042
  });
6685
7043
  module2.exports = __toCommonJS2(skipProps_exports);
6686
- var skipProps = {
7044
+ var import_webPropsToSkip = require_webPropsToSkip_native(), skipProps = {
6687
7045
  untilMeasured: 1,
6688
7046
  animation: 1,
6689
7047
  space: 1,
@@ -6700,21 +7058,7 @@ var require_skipProps_native = __commonJS({
6700
7058
  animatePresence: 1
6701
7059
  };
6702
7060
  skipProps["data-test-renders"] = 1;
6703
- Object.assign(skipProps, {
6704
- whiteSpace: 1,
6705
- wordWrap: 1,
6706
- textOverflow: 1,
6707
- textDecorationDistance: 1,
6708
- cursor: 1,
6709
- contain: 1,
6710
- boxSizing: 1,
6711
- boxShadow: 1,
6712
- outlineStyle: 1,
6713
- outlineOffset: 1,
6714
- outlineWidth: 1,
6715
- outlineColor: 1,
6716
- scrollbarWidth: 1
6717
- });
7061
+ Object.assign(skipProps, import_webPropsToSkip.webPropsToSkip);
6718
7062
  }
6719
7063
  });
6720
7064
 
@@ -17837,9 +18181,7 @@ var require_GorhomPortal_native = __commonJS({
17837
18181
  }, PortalProviderComponent = function(param) {
17838
18182
  var _param_rootHostName = param.rootHostName, rootHostName = _param_rootHostName === void 0 ? "root" : _param_rootHostName, _param_shouldAddRootHost = param.shouldAddRootHost, shouldAddRootHost = _param_shouldAddRootHost === void 0 ? !0 : _param_shouldAddRootHost, children = param.children, _useReducer = _sliced_to_array((0, import_react4.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1], transitionDispatch = (0, import_react4.useMemo)(function() {
17839
18183
  var next = function(value) {
17840
- (0, import_react4.startTransition)(function() {
17841
- dispatch(value);
17842
- });
18184
+ dispatch(value);
17843
18185
  };
17844
18186
  return next;
17845
18187
  }, [
@@ -21760,7 +22102,7 @@ var require_Image_native = __commonJS({
21760
22102
  }
21761
22103
  });
21762
22104
  module2.exports = __toCommonJS2(Image_exports);
21763
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_react4 = require("react"), import_react_native4 = require("react-native");
22105
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_react_native4 = require("react-native");
21764
22106
  function _array_like_to_array2(arr, len) {
21765
22107
  (len == null || len > arr.length) && (len = arr.length);
21766
22108
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -21848,7 +22190,7 @@ var require_Image_native = __commonJS({
21848
22190
  }
21849
22191
  var StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
21850
22192
  name: "Image"
21851
- }), Image = StyledImage.extractable(/* @__PURE__ */ (0, import_react4.forwardRef)(function(inProps, ref) {
22193
+ }), Image = StyledImage.styleable(function(inProps, ref) {
21852
22194
  var _usePropsAndStyle = _sliced_to_array((0, import_core12.usePropsAndStyle)(inProps), 2), props = _usePropsAndStyle[0], style = _usePropsAndStyle[1], src = props.src, source = props.source, rest = _object_without_properties5(props, [
21853
22195
  "src",
21854
22196
  "source"
@@ -21872,7 +22214,7 @@ var require_Image_native = __commonJS({
21872
22214
  source: finalSource,
21873
22215
  style
21874
22216
  }, rest));
21875
- }));
22217
+ });
21876
22218
  Image.getSize = import_react_native4.Image.getSize;
21877
22219
  Image.getSizeWithHeaders = import_react_native4.Image.getSizeWithHeaders;
21878
22220
  Image.prefetch = import_react_native4.Image.prefetch;
@@ -24983,7 +25325,7 @@ var require_createCheckbox_native = __commonJS({
24983
25325
  size: size3,
24984
25326
  theme: checked ? "active" : null
24985
25327
  }), {
24986
- // expected variants
25328
+ // potential variant
24987
25329
  checked,
24988
25330
  disabled: checkboxProps.disabled
24989
25331
  }), checkboxProps), {