@wlloyalty/wll-react-sdk 1.6.20 → 1.8.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.
- package/dist/index.d.ts +2 -1
- package/dist/native.js +367 -1324
- package/dist/native.js.map +1 -1
- package/dist/types/components/atoms/Chip/Chip.stories.d.ts +3 -3
- package/dist/types/components/atoms/Icon/Icon.stories.d.ts +4 -4
- package/dist/types/components/atoms/ProgressBar/ProgressBar.stories.d.ts +5 -5
- package/dist/types/components/atoms/ProgressiveImage/ProgressiveImage.stories.d.ts +1 -1
- package/dist/types/components/molecules/Carousel/Carousel.stories.d.ts +3 -3
- package/dist/types/components/molecules/Grid/Grid.stories.d.ts +2 -2
- package/dist/types/components/molecules/ProgressIndicator/ProgressIndicator.stories.d.ts +4 -4
- package/dist/types/components/molecules/SectionHeader/SectionHeader.stories.d.ts +1 -1
- package/dist/types/components/organisms/BadgeTile/BadgeTile.stories.d.ts +6 -6
- package/dist/types/components/organisms/BannerTile/BannerTile.stories.d.ts +3 -3
- package/dist/types/components/organisms/ContentTile/ContentTile.stories.d.ts +17 -17
- package/dist/types/components/organisms/PointsTile/PointsTile.stories.d.ts +12 -12
- package/dist/types/components/organisms/RewardCategoryTile/RewardCategoryTile.stories.d.ts +7 -7
- package/dist/types/components/organisms/RewardTile/RewardTile.stories.d.ts +6 -6
- package/dist/types/components/organisms/RoundupTile/RoundupTile.stories.d.ts +10 -10
- package/dist/types/components/organisms/Section/Section.stories.d.ts +4 -4
- package/dist/types/components/organisms/TierTileUpdated/TierTileUpdated.stories.d.ts +10 -10
- package/dist/types/components/organisms/VenueTile/VenueTile.stories.d.ts +10 -4
- package/dist/types/components/organisms/VenueTile/index.d.ts +1 -3
- package/dist/types/components/organisms/VenueTile/venue-tile-media.d.ts +1 -7
- package/dist/web.js +471 -100
- package/dist/web.js.map +1 -1
- package/package.json +16 -14
package/dist/web.js
CHANGED
|
@@ -38,7 +38,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
38
38
|
if (null == r) return {};
|
|
39
39
|
var t = {};
|
|
40
40
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
41
|
-
if (e.
|
|
41
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
42
42
|
t[n] = r[n];
|
|
43
43
|
}
|
|
44
44
|
return t;
|
|
@@ -3824,12 +3824,22 @@ var preprocess = function preprocess(originalStyle, options) {
|
|
|
3824
3824
|
nextStyle[prop] = _value2.toString();
|
|
3825
3825
|
} else if (prop === 'fontVariant') {
|
|
3826
3826
|
if (Array.isArray(_value2) && _value2.length > 0) {
|
|
3827
|
-
|
|
3827
|
+
/*
|
|
3828
|
+
warnOnce(
|
|
3829
|
+
'fontVariant',
|
|
3830
|
+
'"fontVariant" style array value is deprecated. Use space-separated values.'
|
|
3831
|
+
);
|
|
3832
|
+
*/
|
|
3828
3833
|
_value2 = _value2.join(' ');
|
|
3829
3834
|
}
|
|
3830
3835
|
nextStyle[prop] = _value2;
|
|
3831
3836
|
} else if (prop === 'textAlignVertical') {
|
|
3832
|
-
|
|
3837
|
+
/*
|
|
3838
|
+
warnOnce(
|
|
3839
|
+
'textAlignVertical',
|
|
3840
|
+
'"textAlignVertical" style is deprecated. Use "verticalAlign".'
|
|
3841
|
+
);
|
|
3842
|
+
*/
|
|
3833
3843
|
if (style.verticalAlign == null) {
|
|
3834
3844
|
nextStyle.verticalAlign = _value2 === 'center' ? 'middle' : _value2;
|
|
3835
3845
|
}
|
|
@@ -4758,7 +4768,11 @@ function compose(style1, style2) {
|
|
|
4758
4768
|
throw new Error("StyleSheet.compose() only accepts 2 arguments, received " + len + ": " + JSON.stringify(readableStyles));
|
|
4759
4769
|
}
|
|
4760
4770
|
/* eslint-enable prefer-rest-params */
|
|
4761
|
-
|
|
4771
|
+
/*
|
|
4772
|
+
console.warn(
|
|
4773
|
+
'StyleSheet.compose(a, b) is deprecated; use array syntax, i.e., [a,b].'
|
|
4774
|
+
);
|
|
4775
|
+
*/
|
|
4762
4776
|
}
|
|
4763
4777
|
return [style1, style2];
|
|
4764
4778
|
}
|
|
@@ -5043,8 +5057,8 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5043
5057
|
ariaRequired = _props['aria-required'],
|
|
5044
5058
|
accessibilityRequired = _props.accessibilityRequired;
|
|
5045
5059
|
_props.role;
|
|
5046
|
-
|
|
5047
|
-
ariaRoleDescription = _props['aria-roledescription'],
|
|
5060
|
+
_props.accessibilityRole;
|
|
5061
|
+
var ariaRoleDescription = _props['aria-roledescription'],
|
|
5048
5062
|
accessibilityRoleDescription = _props.accessibilityRoleDescription,
|
|
5049
5063
|
ariaRowCount = _props['aria-rowcount'],
|
|
5050
5064
|
accessibilityRowCount = _props.accessibilityRowCount,
|
|
@@ -5075,93 +5089,167 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5075
5089
|
tabIndex = _props.tabIndex,
|
|
5076
5090
|
testID = _props.testID,
|
|
5077
5091
|
domProps = _objectWithoutPropertiesLoose(_props, _excluded$c);
|
|
5092
|
+
|
|
5093
|
+
/*
|
|
5078
5094
|
if (accessibilityDisabled != null) {
|
|
5079
|
-
warnOnce('accessibilityDisabled',
|
|
5095
|
+
warnOnce('accessibilityDisabled', `accessibilityDisabled is deprecated.`);
|
|
5080
5096
|
}
|
|
5097
|
+
*/
|
|
5081
5098
|
var disabled = ariaDisabled || accessibilityDisabled;
|
|
5082
5099
|
var role = AccessibilityUtil$1.propsToAriaRole(props);
|
|
5083
5100
|
|
|
5084
5101
|
// ACCESSIBILITY
|
|
5102
|
+
/*
|
|
5085
5103
|
if (accessibilityActiveDescendant != null) {
|
|
5086
|
-
warnOnce(
|
|
5104
|
+
warnOnce(
|
|
5105
|
+
'accessibilityActiveDescendant',
|
|
5106
|
+
`accessibilityActiveDescendant is deprecated. Use aria-activedescendant.`
|
|
5107
|
+
);
|
|
5087
5108
|
}
|
|
5109
|
+
*/
|
|
5088
5110
|
var _ariaActiveDescendant = ariaActiveDescendant != null ? ariaActiveDescendant : accessibilityActiveDescendant;
|
|
5089
5111
|
if (_ariaActiveDescendant != null) {
|
|
5090
5112
|
domProps['aria-activedescendant'] = _ariaActiveDescendant;
|
|
5091
5113
|
}
|
|
5114
|
+
|
|
5115
|
+
/*
|
|
5092
5116
|
if (accessibilityAtomic != null) {
|
|
5093
|
-
warnOnce(
|
|
5117
|
+
warnOnce(
|
|
5118
|
+
'accessibilityAtomic',
|
|
5119
|
+
`accessibilityAtomic is deprecated. Use aria-atomic.`
|
|
5120
|
+
);
|
|
5094
5121
|
}
|
|
5122
|
+
*/
|
|
5095
5123
|
var _ariaAtomic = ariaAtomic != null ? ariaActiveDescendant : accessibilityAtomic;
|
|
5096
5124
|
if (_ariaAtomic != null) {
|
|
5097
5125
|
domProps['aria-atomic'] = _ariaAtomic;
|
|
5098
5126
|
}
|
|
5127
|
+
|
|
5128
|
+
/*
|
|
5099
5129
|
if (accessibilityAutoComplete != null) {
|
|
5100
|
-
warnOnce(
|
|
5130
|
+
warnOnce(
|
|
5131
|
+
'accessibilityAutoComplete',
|
|
5132
|
+
`accessibilityAutoComplete is deprecated. Use aria-autocomplete.`
|
|
5133
|
+
);
|
|
5101
5134
|
}
|
|
5135
|
+
*/
|
|
5102
5136
|
var _ariaAutoComplete = ariaAutoComplete != null ? ariaAutoComplete : accessibilityAutoComplete;
|
|
5103
5137
|
if (_ariaAutoComplete != null) {
|
|
5104
5138
|
domProps['aria-autocomplete'] = _ariaAutoComplete;
|
|
5105
5139
|
}
|
|
5140
|
+
|
|
5141
|
+
/*
|
|
5106
5142
|
if (accessibilityBusy != null) {
|
|
5107
|
-
warnOnce(
|
|
5143
|
+
warnOnce(
|
|
5144
|
+
'accessibilityBusy',
|
|
5145
|
+
`accessibilityBusy is deprecated. Use aria-busy.`
|
|
5146
|
+
);
|
|
5108
5147
|
}
|
|
5148
|
+
*/
|
|
5109
5149
|
var _ariaBusy = ariaBusy != null ? ariaBusy : accessibilityBusy;
|
|
5110
5150
|
if (_ariaBusy != null) {
|
|
5111
5151
|
domProps['aria-busy'] = _ariaBusy;
|
|
5112
5152
|
}
|
|
5153
|
+
|
|
5154
|
+
/*
|
|
5113
5155
|
if (accessibilityChecked != null) {
|
|
5114
|
-
warnOnce(
|
|
5156
|
+
warnOnce(
|
|
5157
|
+
'accessibilityChecked',
|
|
5158
|
+
`accessibilityChecked is deprecated. Use aria-checked.`
|
|
5159
|
+
);
|
|
5115
5160
|
}
|
|
5161
|
+
*/
|
|
5116
5162
|
var _ariaChecked = ariaChecked != null ? ariaChecked : accessibilityChecked;
|
|
5117
5163
|
if (_ariaChecked != null) {
|
|
5118
5164
|
domProps['aria-checked'] = _ariaChecked;
|
|
5119
5165
|
}
|
|
5166
|
+
|
|
5167
|
+
/*
|
|
5120
5168
|
if (accessibilityColumnCount != null) {
|
|
5121
|
-
warnOnce(
|
|
5169
|
+
warnOnce(
|
|
5170
|
+
'accessibilityColumnCount',
|
|
5171
|
+
`accessibilityColumnCount is deprecated. Use aria-colcount.`
|
|
5172
|
+
);
|
|
5122
5173
|
}
|
|
5174
|
+
*/
|
|
5123
5175
|
var _ariaColumnCount = ariaColumnCount != null ? ariaColumnCount : accessibilityColumnCount;
|
|
5124
5176
|
if (_ariaColumnCount != null) {
|
|
5125
5177
|
domProps['aria-colcount'] = _ariaColumnCount;
|
|
5126
5178
|
}
|
|
5179
|
+
|
|
5180
|
+
/*
|
|
5127
5181
|
if (accessibilityColumnIndex != null) {
|
|
5128
|
-
warnOnce(
|
|
5182
|
+
warnOnce(
|
|
5183
|
+
'accessibilityColumnIndex',
|
|
5184
|
+
`accessibilityColumnIndex is deprecated. Use aria-colindex.`
|
|
5185
|
+
);
|
|
5129
5186
|
}
|
|
5187
|
+
*/
|
|
5130
5188
|
var _ariaColumnIndex = ariaColumnIndex != null ? ariaColumnIndex : accessibilityColumnIndex;
|
|
5131
5189
|
if (_ariaColumnIndex != null) {
|
|
5132
5190
|
domProps['aria-colindex'] = _ariaColumnIndex;
|
|
5133
5191
|
}
|
|
5192
|
+
|
|
5193
|
+
/*
|
|
5134
5194
|
if (accessibilityColumnSpan != null) {
|
|
5135
|
-
warnOnce(
|
|
5195
|
+
warnOnce(
|
|
5196
|
+
'accessibilityColumnSpan',
|
|
5197
|
+
`accessibilityColumnSpan is deprecated. Use aria-colspan.`
|
|
5198
|
+
);
|
|
5136
5199
|
}
|
|
5200
|
+
*/
|
|
5137
5201
|
var _ariaColumnSpan = ariaColumnSpan != null ? ariaColumnSpan : accessibilityColumnSpan;
|
|
5138
5202
|
if (_ariaColumnSpan != null) {
|
|
5139
5203
|
domProps['aria-colspan'] = _ariaColumnSpan;
|
|
5140
5204
|
}
|
|
5205
|
+
|
|
5206
|
+
/*
|
|
5141
5207
|
if (accessibilityControls != null) {
|
|
5142
|
-
warnOnce(
|
|
5208
|
+
warnOnce(
|
|
5209
|
+
'accessibilityControls',
|
|
5210
|
+
`accessibilityControls is deprecated. Use aria-controls.`
|
|
5211
|
+
);
|
|
5143
5212
|
}
|
|
5213
|
+
*/
|
|
5144
5214
|
var _ariaControls = ariaControls != null ? ariaControls : accessibilityControls;
|
|
5145
5215
|
if (_ariaControls != null) {
|
|
5146
5216
|
domProps['aria-controls'] = processIDRefList(_ariaControls);
|
|
5147
5217
|
}
|
|
5218
|
+
|
|
5219
|
+
/*
|
|
5148
5220
|
if (accessibilityCurrent != null) {
|
|
5149
|
-
warnOnce(
|
|
5221
|
+
warnOnce(
|
|
5222
|
+
'accessibilityCurrent',
|
|
5223
|
+
`accessibilityCurrent is deprecated. Use aria-current.`
|
|
5224
|
+
);
|
|
5150
5225
|
}
|
|
5226
|
+
*/
|
|
5151
5227
|
var _ariaCurrent = ariaCurrent != null ? ariaCurrent : accessibilityCurrent;
|
|
5152
5228
|
if (_ariaCurrent != null) {
|
|
5153
5229
|
domProps['aria-current'] = _ariaCurrent;
|
|
5154
5230
|
}
|
|
5231
|
+
|
|
5232
|
+
/*
|
|
5155
5233
|
if (accessibilityDescribedBy != null) {
|
|
5156
|
-
warnOnce(
|
|
5234
|
+
warnOnce(
|
|
5235
|
+
'accessibilityDescribedBy',
|
|
5236
|
+
`accessibilityDescribedBy is deprecated. Use aria-describedby.`
|
|
5237
|
+
);
|
|
5157
5238
|
}
|
|
5239
|
+
*/
|
|
5158
5240
|
var _ariaDescribedBy = ariaDescribedBy != null ? ariaDescribedBy : accessibilityDescribedBy;
|
|
5159
5241
|
if (_ariaDescribedBy != null) {
|
|
5160
5242
|
domProps['aria-describedby'] = processIDRefList(_ariaDescribedBy);
|
|
5161
5243
|
}
|
|
5244
|
+
|
|
5245
|
+
/*
|
|
5162
5246
|
if (accessibilityDetails != null) {
|
|
5163
|
-
warnOnce(
|
|
5247
|
+
warnOnce(
|
|
5248
|
+
'accessibilityDetails',
|
|
5249
|
+
`accessibilityDetails is deprecated. Use aria-details.`
|
|
5250
|
+
);
|
|
5164
5251
|
}
|
|
5252
|
+
*/
|
|
5165
5253
|
var _ariaDetails = ariaDetails != null ? ariaDetails : accessibilityDetails;
|
|
5166
5254
|
if (_ariaDetails != null) {
|
|
5167
5255
|
domProps['aria-details'] = _ariaDetails;
|
|
@@ -5173,142 +5261,262 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5173
5261
|
domProps.disabled = true;
|
|
5174
5262
|
}
|
|
5175
5263
|
}
|
|
5264
|
+
|
|
5265
|
+
/*
|
|
5176
5266
|
if (accessibilityErrorMessage != null) {
|
|
5177
|
-
warnOnce(
|
|
5267
|
+
warnOnce(
|
|
5268
|
+
'accessibilityErrorMessage',
|
|
5269
|
+
`accessibilityErrorMessage is deprecated. Use aria-errormessage.`
|
|
5270
|
+
);
|
|
5178
5271
|
}
|
|
5272
|
+
*/
|
|
5179
5273
|
var _ariaErrorMessage = ariaErrorMessage != null ? ariaErrorMessage : accessibilityErrorMessage;
|
|
5180
5274
|
if (_ariaErrorMessage != null) {
|
|
5181
5275
|
domProps['aria-errormessage'] = _ariaErrorMessage;
|
|
5182
5276
|
}
|
|
5277
|
+
|
|
5278
|
+
/*
|
|
5183
5279
|
if (accessibilityExpanded != null) {
|
|
5184
|
-
warnOnce(
|
|
5280
|
+
warnOnce(
|
|
5281
|
+
'accessibilityExpanded',
|
|
5282
|
+
`accessibilityExpanded is deprecated. Use aria-expanded.`
|
|
5283
|
+
);
|
|
5185
5284
|
}
|
|
5285
|
+
*/
|
|
5186
5286
|
var _ariaExpanded = ariaExpanded != null ? ariaExpanded : accessibilityExpanded;
|
|
5187
5287
|
if (_ariaExpanded != null) {
|
|
5188
5288
|
domProps['aria-expanded'] = _ariaExpanded;
|
|
5189
5289
|
}
|
|
5290
|
+
|
|
5291
|
+
/*
|
|
5190
5292
|
if (accessibilityFlowTo != null) {
|
|
5191
|
-
warnOnce(
|
|
5293
|
+
warnOnce(
|
|
5294
|
+
'accessibilityFlowTo',
|
|
5295
|
+
`accessibilityFlowTo is deprecated. Use aria-flowto.`
|
|
5296
|
+
);
|
|
5192
5297
|
}
|
|
5298
|
+
*/
|
|
5193
5299
|
var _ariaFlowTo = ariaFlowTo != null ? ariaFlowTo : accessibilityFlowTo;
|
|
5194
5300
|
if (_ariaFlowTo != null) {
|
|
5195
5301
|
domProps['aria-flowto'] = processIDRefList(_ariaFlowTo);
|
|
5196
5302
|
}
|
|
5303
|
+
|
|
5304
|
+
/*
|
|
5197
5305
|
if (accessibilityHasPopup != null) {
|
|
5198
|
-
warnOnce(
|
|
5306
|
+
warnOnce(
|
|
5307
|
+
'accessibilityHasPopup',
|
|
5308
|
+
`accessibilityHasPopup is deprecated. Use aria-haspopup.`
|
|
5309
|
+
);
|
|
5199
5310
|
}
|
|
5311
|
+
*/
|
|
5200
5312
|
var _ariaHasPopup = ariaHasPopup != null ? ariaHasPopup : accessibilityHasPopup;
|
|
5201
5313
|
if (_ariaHasPopup != null) {
|
|
5202
5314
|
domProps['aria-haspopup'] = _ariaHasPopup;
|
|
5203
5315
|
}
|
|
5316
|
+
|
|
5317
|
+
/*
|
|
5204
5318
|
if (accessibilityHidden != null) {
|
|
5205
|
-
warnOnce(
|
|
5319
|
+
warnOnce(
|
|
5320
|
+
'accessibilityHidden',
|
|
5321
|
+
`accessibilityHidden is deprecated. Use aria-hidden.`
|
|
5322
|
+
);
|
|
5206
5323
|
}
|
|
5324
|
+
*/
|
|
5207
5325
|
var _ariaHidden = ariaHidden != null ? ariaHidden : accessibilityHidden;
|
|
5208
5326
|
if (_ariaHidden === true) {
|
|
5209
5327
|
domProps['aria-hidden'] = _ariaHidden;
|
|
5210
5328
|
}
|
|
5329
|
+
|
|
5330
|
+
/*
|
|
5211
5331
|
if (accessibilityInvalid != null) {
|
|
5212
|
-
warnOnce(
|
|
5332
|
+
warnOnce(
|
|
5333
|
+
'accessibilityInvalid',
|
|
5334
|
+
`accessibilityInvalid is deprecated. Use aria-invalid.`
|
|
5335
|
+
);
|
|
5213
5336
|
}
|
|
5337
|
+
*/
|
|
5214
5338
|
var _ariaInvalid = ariaInvalid != null ? ariaInvalid : accessibilityInvalid;
|
|
5215
5339
|
if (_ariaInvalid != null) {
|
|
5216
5340
|
domProps['aria-invalid'] = _ariaInvalid;
|
|
5217
5341
|
}
|
|
5342
|
+
|
|
5343
|
+
/*
|
|
5218
5344
|
if (accessibilityKeyShortcuts != null) {
|
|
5219
|
-
warnOnce(
|
|
5345
|
+
warnOnce(
|
|
5346
|
+
'accessibilityKeyShortcuts',
|
|
5347
|
+
`accessibilityKeyShortcuts is deprecated. Use aria-keyshortcuts.`
|
|
5348
|
+
);
|
|
5220
5349
|
}
|
|
5350
|
+
*/
|
|
5221
5351
|
var _ariaKeyShortcuts = ariaKeyShortcuts != null ? ariaKeyShortcuts : accessibilityKeyShortcuts;
|
|
5222
5352
|
if (_ariaKeyShortcuts != null) {
|
|
5223
5353
|
domProps['aria-keyshortcuts'] = processIDRefList(_ariaKeyShortcuts);
|
|
5224
5354
|
}
|
|
5355
|
+
|
|
5356
|
+
/*
|
|
5225
5357
|
if (accessibilityLabel != null) {
|
|
5226
|
-
warnOnce(
|
|
5358
|
+
warnOnce(
|
|
5359
|
+
'accessibilityLabel',
|
|
5360
|
+
`accessibilityLabel is deprecated. Use aria-label.`
|
|
5361
|
+
);
|
|
5227
5362
|
}
|
|
5363
|
+
*/
|
|
5228
5364
|
var _ariaLabel = ariaLabel != null ? ariaLabel : accessibilityLabel;
|
|
5229
5365
|
if (_ariaLabel != null) {
|
|
5230
5366
|
domProps['aria-label'] = _ariaLabel;
|
|
5231
5367
|
}
|
|
5368
|
+
|
|
5369
|
+
/*
|
|
5232
5370
|
if (accessibilityLabelledBy != null) {
|
|
5233
|
-
warnOnce(
|
|
5371
|
+
warnOnce(
|
|
5372
|
+
'accessibilityLabelledBy',
|
|
5373
|
+
`accessibilityLabelledBy is deprecated. Use aria-labelledby.`
|
|
5374
|
+
);
|
|
5234
5375
|
}
|
|
5376
|
+
*/
|
|
5235
5377
|
var _ariaLabelledBy = ariaLabelledBy != null ? ariaLabelledBy : accessibilityLabelledBy;
|
|
5236
5378
|
if (_ariaLabelledBy != null) {
|
|
5237
5379
|
domProps['aria-labelledby'] = processIDRefList(_ariaLabelledBy);
|
|
5238
5380
|
}
|
|
5381
|
+
|
|
5382
|
+
/*
|
|
5239
5383
|
if (accessibilityLevel != null) {
|
|
5240
|
-
warnOnce(
|
|
5384
|
+
warnOnce(
|
|
5385
|
+
'accessibilityLevel',
|
|
5386
|
+
`accessibilityLevel is deprecated. Use aria-level.`
|
|
5387
|
+
);
|
|
5241
5388
|
}
|
|
5389
|
+
*/
|
|
5242
5390
|
var _ariaLevel = ariaLevel != null ? ariaLevel : accessibilityLevel;
|
|
5243
5391
|
if (_ariaLevel != null) {
|
|
5244
5392
|
domProps['aria-level'] = _ariaLevel;
|
|
5245
5393
|
}
|
|
5394
|
+
|
|
5395
|
+
/*
|
|
5246
5396
|
if (accessibilityLiveRegion != null) {
|
|
5247
|
-
warnOnce(
|
|
5397
|
+
warnOnce(
|
|
5398
|
+
'accessibilityLiveRegion',
|
|
5399
|
+
`accessibilityLiveRegion is deprecated. Use aria-live.`
|
|
5400
|
+
);
|
|
5248
5401
|
}
|
|
5402
|
+
*/
|
|
5249
5403
|
var _ariaLive = ariaLive != null ? ariaLive : accessibilityLiveRegion;
|
|
5250
5404
|
if (_ariaLive != null) {
|
|
5251
5405
|
domProps['aria-live'] = _ariaLive === 'none' ? 'off' : _ariaLive;
|
|
5252
5406
|
}
|
|
5407
|
+
|
|
5408
|
+
/*
|
|
5253
5409
|
if (accessibilityModal != null) {
|
|
5254
|
-
warnOnce(
|
|
5410
|
+
warnOnce(
|
|
5411
|
+
'accessibilityModal',
|
|
5412
|
+
`accessibilityModal is deprecated. Use aria-modal.`
|
|
5413
|
+
);
|
|
5255
5414
|
}
|
|
5415
|
+
*/
|
|
5256
5416
|
var _ariaModal = ariaModal != null ? ariaModal : accessibilityModal;
|
|
5257
5417
|
if (_ariaModal != null) {
|
|
5258
5418
|
domProps['aria-modal'] = _ariaModal;
|
|
5259
5419
|
}
|
|
5420
|
+
|
|
5421
|
+
/*
|
|
5260
5422
|
if (accessibilityMultiline != null) {
|
|
5261
|
-
warnOnce(
|
|
5423
|
+
warnOnce(
|
|
5424
|
+
'accessibilityMultiline',
|
|
5425
|
+
`accessibilityMultiline is deprecated. Use aria-multiline.`
|
|
5426
|
+
);
|
|
5262
5427
|
}
|
|
5428
|
+
*/
|
|
5263
5429
|
var _ariaMultiline = ariaMultiline != null ? ariaMultiline : accessibilityMultiline;
|
|
5264
5430
|
if (_ariaMultiline != null) {
|
|
5265
5431
|
domProps['aria-multiline'] = _ariaMultiline;
|
|
5266
5432
|
}
|
|
5433
|
+
|
|
5434
|
+
/*
|
|
5267
5435
|
if (accessibilityMultiSelectable != null) {
|
|
5268
|
-
warnOnce(
|
|
5436
|
+
warnOnce(
|
|
5437
|
+
'accessibilityMultiSelectable',
|
|
5438
|
+
`accessibilityMultiSelectable is deprecated. Use aria-multiselectable.`
|
|
5439
|
+
);
|
|
5269
5440
|
}
|
|
5441
|
+
*/
|
|
5270
5442
|
var _ariaMultiSelectable = ariaMultiSelectable != null ? ariaMultiSelectable : accessibilityMultiSelectable;
|
|
5271
5443
|
if (_ariaMultiSelectable != null) {
|
|
5272
5444
|
domProps['aria-multiselectable'] = _ariaMultiSelectable;
|
|
5273
5445
|
}
|
|
5446
|
+
|
|
5447
|
+
/*
|
|
5274
5448
|
if (accessibilityOrientation != null) {
|
|
5275
|
-
warnOnce(
|
|
5449
|
+
warnOnce(
|
|
5450
|
+
'accessibilityOrientation',
|
|
5451
|
+
`accessibilityOrientation is deprecated. Use aria-orientation.`
|
|
5452
|
+
);
|
|
5276
5453
|
}
|
|
5454
|
+
*/
|
|
5277
5455
|
var _ariaOrientation = ariaOrientation != null ? ariaOrientation : accessibilityOrientation;
|
|
5278
5456
|
if (_ariaOrientation != null) {
|
|
5279
5457
|
domProps['aria-orientation'] = _ariaOrientation;
|
|
5280
5458
|
}
|
|
5459
|
+
|
|
5460
|
+
/*
|
|
5281
5461
|
if (accessibilityOwns != null) {
|
|
5282
|
-
warnOnce(
|
|
5462
|
+
warnOnce(
|
|
5463
|
+
'accessibilityOwns',
|
|
5464
|
+
`accessibilityOwns is deprecated. Use aria-owns.`
|
|
5465
|
+
);
|
|
5283
5466
|
}
|
|
5467
|
+
*/
|
|
5284
5468
|
var _ariaOwns = ariaOwns != null ? ariaOwns : accessibilityOwns;
|
|
5285
5469
|
if (_ariaOwns != null) {
|
|
5286
5470
|
domProps['aria-owns'] = processIDRefList(_ariaOwns);
|
|
5287
5471
|
}
|
|
5472
|
+
|
|
5473
|
+
/*
|
|
5288
5474
|
if (accessibilityPlaceholder != null) {
|
|
5289
|
-
warnOnce(
|
|
5475
|
+
warnOnce(
|
|
5476
|
+
'accessibilityPlaceholder',
|
|
5477
|
+
`accessibilityPlaceholder is deprecated. Use aria-placeholder.`
|
|
5478
|
+
);
|
|
5290
5479
|
}
|
|
5480
|
+
*/
|
|
5291
5481
|
var _ariaPlaceholder = ariaPlaceholder != null ? ariaPlaceholder : accessibilityPlaceholder;
|
|
5292
5482
|
if (_ariaPlaceholder != null) {
|
|
5293
5483
|
domProps['aria-placeholder'] = _ariaPlaceholder;
|
|
5294
5484
|
}
|
|
5485
|
+
|
|
5486
|
+
/*
|
|
5295
5487
|
if (accessibilityPosInSet != null) {
|
|
5296
|
-
warnOnce(
|
|
5488
|
+
warnOnce(
|
|
5489
|
+
'accessibilityPosInSet',
|
|
5490
|
+
`accessibilityPosInSet is deprecated. Use aria-posinset.`
|
|
5491
|
+
);
|
|
5297
5492
|
}
|
|
5493
|
+
*/
|
|
5298
5494
|
var _ariaPosInSet = ariaPosInSet != null ? ariaPosInSet : accessibilityPosInSet;
|
|
5299
5495
|
if (_ariaPosInSet != null) {
|
|
5300
5496
|
domProps['aria-posinset'] = _ariaPosInSet;
|
|
5301
5497
|
}
|
|
5498
|
+
|
|
5499
|
+
/*
|
|
5302
5500
|
if (accessibilityPressed != null) {
|
|
5303
|
-
warnOnce(
|
|
5501
|
+
warnOnce(
|
|
5502
|
+
'accessibilityPressed',
|
|
5503
|
+
`accessibilityPressed is deprecated. Use aria-pressed.`
|
|
5504
|
+
);
|
|
5304
5505
|
}
|
|
5506
|
+
*/
|
|
5305
5507
|
var _ariaPressed = ariaPressed != null ? ariaPressed : accessibilityPressed;
|
|
5306
5508
|
if (_ariaPressed != null) {
|
|
5307
5509
|
domProps['aria-pressed'] = _ariaPressed;
|
|
5308
5510
|
}
|
|
5511
|
+
|
|
5512
|
+
/*
|
|
5309
5513
|
if (accessibilityReadOnly != null) {
|
|
5310
|
-
warnOnce(
|
|
5514
|
+
warnOnce(
|
|
5515
|
+
'accessibilityReadOnly',
|
|
5516
|
+
`accessibilityReadOnly is deprecated. Use aria-readonly.`
|
|
5517
|
+
);
|
|
5311
5518
|
}
|
|
5519
|
+
*/
|
|
5312
5520
|
var _ariaReadOnly = ariaReadOnly != null ? ariaReadOnly : accessibilityReadOnly;
|
|
5313
5521
|
if (_ariaReadOnly != null) {
|
|
5314
5522
|
domProps['aria-readonly'] = _ariaReadOnly;
|
|
@@ -5317,9 +5525,15 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5317
5525
|
domProps.readOnly = true;
|
|
5318
5526
|
}
|
|
5319
5527
|
}
|
|
5528
|
+
|
|
5529
|
+
/*
|
|
5320
5530
|
if (accessibilityRequired != null) {
|
|
5321
|
-
warnOnce(
|
|
5531
|
+
warnOnce(
|
|
5532
|
+
'accessibilityRequired',
|
|
5533
|
+
`accessibilityRequired is deprecated. Use aria-required.`
|
|
5534
|
+
);
|
|
5322
5535
|
}
|
|
5536
|
+
*/
|
|
5323
5537
|
var _ariaRequired = ariaRequired != null ? ariaRequired : accessibilityRequired;
|
|
5324
5538
|
if (_ariaRequired != null) {
|
|
5325
5539
|
domProps['aria-required'] = _ariaRequired;
|
|
@@ -5328,86 +5542,155 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5328
5542
|
domProps.required = accessibilityRequired;
|
|
5329
5543
|
}
|
|
5330
5544
|
}
|
|
5545
|
+
|
|
5546
|
+
/*
|
|
5331
5547
|
if (accessibilityRole != null) {
|
|
5332
|
-
warnOnce('accessibilityRole',
|
|
5548
|
+
warnOnce('accessibilityRole', `accessibilityRole is deprecated. Use role.`);
|
|
5333
5549
|
}
|
|
5550
|
+
*/
|
|
5334
5551
|
if (role != null) {
|
|
5335
5552
|
// 'presentation' synonym has wider browser support
|
|
5336
5553
|
domProps['role'] = role === 'none' ? 'presentation' : role;
|
|
5337
5554
|
}
|
|
5555
|
+
|
|
5556
|
+
/*
|
|
5338
5557
|
if (accessibilityRoleDescription != null) {
|
|
5339
|
-
warnOnce(
|
|
5558
|
+
warnOnce(
|
|
5559
|
+
'accessibilityRoleDescription',
|
|
5560
|
+
`accessibilityRoleDescription is deprecated. Use aria-roledescription.`
|
|
5561
|
+
);
|
|
5340
5562
|
}
|
|
5563
|
+
*/
|
|
5341
5564
|
var _ariaRoleDescription = ariaRoleDescription != null ? ariaRoleDescription : accessibilityRoleDescription;
|
|
5342
5565
|
if (_ariaRoleDescription != null) {
|
|
5343
5566
|
domProps['aria-roledescription'] = _ariaRoleDescription;
|
|
5344
5567
|
}
|
|
5568
|
+
|
|
5569
|
+
/*
|
|
5345
5570
|
if (accessibilityRowCount != null) {
|
|
5346
|
-
warnOnce(
|
|
5571
|
+
warnOnce(
|
|
5572
|
+
'accessibilityRowCount',
|
|
5573
|
+
`accessibilityRowCount is deprecated. Use aria-rowcount.`
|
|
5574
|
+
);
|
|
5347
5575
|
}
|
|
5576
|
+
*/
|
|
5348
5577
|
var _ariaRowCount = ariaRowCount != null ? ariaRowCount : accessibilityRowCount;
|
|
5349
5578
|
if (_ariaRowCount != null) {
|
|
5350
5579
|
domProps['aria-rowcount'] = _ariaRowCount;
|
|
5351
5580
|
}
|
|
5581
|
+
|
|
5582
|
+
/*
|
|
5352
5583
|
if (accessibilityRowIndex != null) {
|
|
5353
|
-
warnOnce(
|
|
5584
|
+
warnOnce(
|
|
5585
|
+
'accessibilityRowIndex',
|
|
5586
|
+
`accessibilityRowIndex is deprecated. Use aria-rowindex.`
|
|
5587
|
+
);
|
|
5354
5588
|
}
|
|
5589
|
+
*/
|
|
5355
5590
|
var _ariaRowIndex = ariaRowIndex != null ? ariaRowIndex : accessibilityRowIndex;
|
|
5356
5591
|
if (_ariaRowIndex != null) {
|
|
5357
5592
|
domProps['aria-rowindex'] = _ariaRowIndex;
|
|
5358
5593
|
}
|
|
5594
|
+
|
|
5595
|
+
/*
|
|
5359
5596
|
if (accessibilityRowSpan != null) {
|
|
5360
|
-
warnOnce(
|
|
5597
|
+
warnOnce(
|
|
5598
|
+
'accessibilityRowSpan',
|
|
5599
|
+
`accessibilityRowSpan is deprecated. Use aria-rowspan.`
|
|
5600
|
+
);
|
|
5361
5601
|
}
|
|
5602
|
+
*/
|
|
5362
5603
|
var _ariaRowSpan = ariaRowSpan != null ? ariaRowSpan : accessibilityRowSpan;
|
|
5363
5604
|
if (_ariaRowSpan != null) {
|
|
5364
5605
|
domProps['aria-rowspan'] = _ariaRowSpan;
|
|
5365
5606
|
}
|
|
5607
|
+
|
|
5608
|
+
/*
|
|
5366
5609
|
if (accessibilitySelected != null) {
|
|
5367
|
-
warnOnce(
|
|
5610
|
+
warnOnce(
|
|
5611
|
+
'accessibilitySelected',
|
|
5612
|
+
`accessibilitySelected is deprecated. Use aria-selected.`
|
|
5613
|
+
);
|
|
5368
5614
|
}
|
|
5615
|
+
*/
|
|
5369
5616
|
var _ariaSelected = ariaSelected != null ? ariaSelected : accessibilitySelected;
|
|
5370
5617
|
if (_ariaSelected != null) {
|
|
5371
5618
|
domProps['aria-selected'] = _ariaSelected;
|
|
5372
5619
|
}
|
|
5620
|
+
|
|
5621
|
+
/*
|
|
5373
5622
|
if (accessibilitySetSize != null) {
|
|
5374
|
-
warnOnce(
|
|
5623
|
+
warnOnce(
|
|
5624
|
+
'accessibilitySetSize',
|
|
5625
|
+
`accessibilitySetSize is deprecated. Use aria-setsize.`
|
|
5626
|
+
);
|
|
5375
5627
|
}
|
|
5628
|
+
*/
|
|
5376
5629
|
var _ariaSetSize = ariaSetSize != null ? ariaSetSize : accessibilitySetSize;
|
|
5377
5630
|
if (_ariaSetSize != null) {
|
|
5378
5631
|
domProps['aria-setsize'] = _ariaSetSize;
|
|
5379
5632
|
}
|
|
5633
|
+
|
|
5634
|
+
/*
|
|
5380
5635
|
if (accessibilitySort != null) {
|
|
5381
|
-
warnOnce(
|
|
5636
|
+
warnOnce(
|
|
5637
|
+
'accessibilitySort',
|
|
5638
|
+
`accessibilitySort is deprecated. Use aria-sort.`
|
|
5639
|
+
);
|
|
5382
5640
|
}
|
|
5641
|
+
*/
|
|
5383
5642
|
var _ariaSort = ariaSort != null ? ariaSort : accessibilitySort;
|
|
5384
5643
|
if (_ariaSort != null) {
|
|
5385
5644
|
domProps['aria-sort'] = _ariaSort;
|
|
5386
5645
|
}
|
|
5646
|
+
|
|
5647
|
+
/*
|
|
5387
5648
|
if (accessibilityValueMax != null) {
|
|
5388
|
-
warnOnce(
|
|
5649
|
+
warnOnce(
|
|
5650
|
+
'accessibilityValueMax',
|
|
5651
|
+
`accessibilityValueMax is deprecated. Use aria-valuemax.`
|
|
5652
|
+
);
|
|
5389
5653
|
}
|
|
5654
|
+
*/
|
|
5390
5655
|
var _ariaValueMax = ariaValueMax != null ? ariaValueMax : accessibilityValueMax;
|
|
5391
5656
|
if (_ariaValueMax != null) {
|
|
5392
5657
|
domProps['aria-valuemax'] = _ariaValueMax;
|
|
5393
5658
|
}
|
|
5659
|
+
|
|
5660
|
+
/*
|
|
5394
5661
|
if (accessibilityValueMin != null) {
|
|
5395
|
-
warnOnce(
|
|
5662
|
+
warnOnce(
|
|
5663
|
+
'accessibilityValueMin',
|
|
5664
|
+
`accessibilityValueMin is deprecated. Use aria-valuemin.`
|
|
5665
|
+
);
|
|
5396
5666
|
}
|
|
5667
|
+
*/
|
|
5397
5668
|
var _ariaValueMin = ariaValueMin != null ? ariaValueMin : accessibilityValueMin;
|
|
5398
5669
|
if (_ariaValueMin != null) {
|
|
5399
5670
|
domProps['aria-valuemin'] = _ariaValueMin;
|
|
5400
5671
|
}
|
|
5672
|
+
|
|
5673
|
+
/*
|
|
5401
5674
|
if (accessibilityValueNow != null) {
|
|
5402
|
-
warnOnce(
|
|
5675
|
+
warnOnce(
|
|
5676
|
+
'accessibilityValueNow',
|
|
5677
|
+
`accessibilityValueNow is deprecated. Use aria-valuenow.`
|
|
5678
|
+
);
|
|
5403
5679
|
}
|
|
5680
|
+
*/
|
|
5404
5681
|
var _ariaValueNow = ariaValueNow != null ? ariaValueNow : accessibilityValueNow;
|
|
5405
5682
|
if (_ariaValueNow != null) {
|
|
5406
5683
|
domProps['aria-valuenow'] = _ariaValueNow;
|
|
5407
5684
|
}
|
|
5685
|
+
|
|
5686
|
+
/*
|
|
5408
5687
|
if (accessibilityValueText != null) {
|
|
5409
|
-
warnOnce(
|
|
5688
|
+
warnOnce(
|
|
5689
|
+
'accessibilityValueText',
|
|
5690
|
+
`accessibilityValueText is deprecated. Use aria-valuetext.`
|
|
5691
|
+
);
|
|
5410
5692
|
}
|
|
5693
|
+
*/
|
|
5411
5694
|
var _ariaValueText = ariaValueText != null ? ariaValueText : accessibilityValueText;
|
|
5412
5695
|
if (_ariaValueText != null) {
|
|
5413
5696
|
domProps['aria-valuetext'] = _ariaValueText;
|
|
@@ -5430,9 +5713,11 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5430
5713
|
if (tabIndex === 0 || tabIndex === '0' || tabIndex === -1 || tabIndex === '-1') {
|
|
5431
5714
|
domProps.tabIndex = tabIndex;
|
|
5432
5715
|
} else {
|
|
5716
|
+
/*
|
|
5433
5717
|
if (focusable != null) {
|
|
5434
|
-
warnOnce('focusable',
|
|
5718
|
+
warnOnce('focusable', `focusable is deprecated.`);
|
|
5435
5719
|
}
|
|
5720
|
+
*/
|
|
5436
5721
|
|
|
5437
5722
|
// "focusable" indicates that an element may be a keyboard tab-stop.
|
|
5438
5723
|
if (focusable === false) {
|
|
@@ -5476,9 +5761,11 @@ var createDOMProps = (elementType, props, options) => {
|
|
|
5476
5761
|
|
|
5477
5762
|
// OTHER
|
|
5478
5763
|
// Native element ID
|
|
5764
|
+
/*
|
|
5479
5765
|
if (nativeID != null) {
|
|
5480
|
-
warnOnce('nativeID',
|
|
5766
|
+
warnOnce('nativeID', `nativeID is deprecated. Use id.`);
|
|
5481
5767
|
}
|
|
5768
|
+
*/
|
|
5482
5769
|
var _id = id != null ? id : nativeID;
|
|
5483
5770
|
if (_id != null) {
|
|
5484
5771
|
domProps.id = _id;
|
|
@@ -5546,7 +5833,6 @@ var rtlLangs = new Set(['ae',
|
|
|
5546
5833
|
// Urdu
|
|
5547
5834
|
'yi' // Yiddish
|
|
5548
5835
|
]);
|
|
5549
|
-
|
|
5550
5836
|
var cache = new Map();
|
|
5551
5837
|
|
|
5552
5838
|
/**
|
|
@@ -5560,13 +5846,20 @@ function isLocaleRTL(locale) {
|
|
|
5560
5846
|
var isRTL = false;
|
|
5561
5847
|
// $FlowFixMe
|
|
5562
5848
|
if (Intl.Locale) {
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5849
|
+
try {
|
|
5850
|
+
// $FlowFixMe
|
|
5851
|
+
var script = new Intl.Locale(locale).maximize().script;
|
|
5852
|
+
isRTL = rtlScripts.has(script);
|
|
5853
|
+
} catch (_unused) {
|
|
5854
|
+
// RangeError: Incorrect locale information provided
|
|
5855
|
+
// Fallback to inferring from language
|
|
5856
|
+
var lang = locale.split('-')[0];
|
|
5857
|
+
isRTL = rtlLangs.has(lang);
|
|
5858
|
+
}
|
|
5566
5859
|
} else {
|
|
5567
5860
|
// Fallback to inferring from language
|
|
5568
|
-
var
|
|
5569
|
-
isRTL = rtlLangs.has(
|
|
5861
|
+
var _lang = locale.split('-')[0];
|
|
5862
|
+
isRTL = rtlLangs.has(_lang);
|
|
5570
5863
|
}
|
|
5571
5864
|
cache.set(locale, isRTL);
|
|
5572
5865
|
return isRTL;
|
|
@@ -5946,7 +6239,6 @@ function dangerousStyleValue(name, value, isCustomProperty) {
|
|
|
5946
6239
|
if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
|
|
5947
6240
|
return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
|
|
5948
6241
|
}
|
|
5949
|
-
|
|
5950
6242
|
return ('' + value).trim();
|
|
5951
6243
|
}
|
|
5952
6244
|
|
|
@@ -7290,6 +7582,16 @@ function useResponderEvents(hostRef, config) {
|
|
|
7290
7582
|
var TextAncestorContext = /*#__PURE__*/React.createContext(false);
|
|
7291
7583
|
var TextAncestorContext$1 = TextAncestorContext;
|
|
7292
7584
|
|
|
7585
|
+
/**
|
|
7586
|
+
* Copyright (c) Nicolas Gallagher.
|
|
7587
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7588
|
+
*
|
|
7589
|
+
* This source code is licensed under the MIT license found in the
|
|
7590
|
+
* LICENSE file in the root directory of this source tree.
|
|
7591
|
+
*
|
|
7592
|
+
*
|
|
7593
|
+
*/
|
|
7594
|
+
|
|
7293
7595
|
var _excluded$b = ["hrefAttrs", "onLayout", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onResponderEnd", "onResponderGrant", "onResponderMove", "onResponderReject", "onResponderRelease", "onResponderStart", "onResponderTerminate", "onResponderTerminationRequest", "onScrollShouldSetResponder", "onScrollShouldSetResponderCapture", "onSelectionChangeShouldSetResponder", "onSelectionChangeShouldSetResponderCapture", "onStartShouldSetResponder", "onStartShouldSetResponderCapture"];
|
|
7294
7596
|
var forwardPropsList$1 = Object.assign({}, defaultProps, accessibilityProps, clickProps, focusProps, keyboardProps, mouseProps, touchProps, styleProps, {
|
|
7295
7597
|
href: true,
|
|
@@ -7544,11 +7846,23 @@ var styles$h = StyleSheet$1.create({
|
|
|
7544
7846
|
pointerEvents: 'box-none'
|
|
7545
7847
|
}
|
|
7546
7848
|
});
|
|
7547
|
-
var MemoedPressable = /*#__PURE__*/React.memo(
|
|
7849
|
+
var MemoedPressable = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Pressable));
|
|
7548
7850
|
MemoedPressable.displayName = 'Pressable';
|
|
7549
7851
|
var Pressable$1 = MemoedPressable;
|
|
7550
7852
|
|
|
7853
|
+
/**
|
|
7854
|
+
* Copyright (c) Nicolas Gallagher.
|
|
7855
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7856
|
+
*
|
|
7857
|
+
* This source code is licensed under the MIT license found in the
|
|
7858
|
+
* LICENSE file in the root directory of this source tree.
|
|
7859
|
+
*
|
|
7860
|
+
*
|
|
7861
|
+
*/
|
|
7862
|
+
|
|
7551
7863
|
var _excluded$9 = ["hrefAttrs", "numberOfLines", "onClick", "onLayout", "onPress", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onResponderEnd", "onResponderGrant", "onResponderMove", "onResponderReject", "onResponderRelease", "onResponderStart", "onResponderTerminate", "onResponderTerminationRequest", "onScrollShouldSetResponder", "onScrollShouldSetResponderCapture", "onSelectionChangeShouldSetResponder", "onSelectionChangeShouldSetResponderCapture", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "selectable"];
|
|
7864
|
+
//import { warnOnce } from '../../modules/warnOnce';
|
|
7865
|
+
|
|
7552
7866
|
var forwardPropsList = Object.assign({}, defaultProps, accessibilityProps, clickProps, focusProps, keyboardProps, mouseProps, touchProps, styleProps, {
|
|
7553
7867
|
href: true,
|
|
7554
7868
|
lang: true,
|
|
@@ -7579,9 +7893,16 @@ var Text$2 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
7579
7893
|
onStartShouldSetResponderCapture = props.onStartShouldSetResponderCapture,
|
|
7580
7894
|
selectable = props.selectable,
|
|
7581
7895
|
rest = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
7896
|
+
|
|
7897
|
+
/*
|
|
7582
7898
|
if (selectable != null) {
|
|
7583
|
-
warnOnce(
|
|
7899
|
+
warnOnce(
|
|
7900
|
+
'selectable',
|
|
7901
|
+
'selectable prop is deprecated. Use styles.userSelect.'
|
|
7902
|
+
);
|
|
7584
7903
|
}
|
|
7904
|
+
*/
|
|
7905
|
+
|
|
7585
7906
|
var hasTextAncestor = React__namespace.useContext(TextAncestorContext$1);
|
|
7586
7907
|
var hostRef = React__namespace.useRef(null);
|
|
7587
7908
|
var _useLocaleContext = useLocaleContext(),
|
|
@@ -7722,7 +8043,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
7722
8043
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7723
8044
|
PERFORMANCE OF THIS SOFTWARE.
|
|
7724
8045
|
***************************************************************************** */
|
|
7725
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
8046
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
7726
8047
|
|
|
7727
8048
|
|
|
7728
8049
|
var __assign = function() {
|
|
@@ -7759,8 +8080,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
7759
8080
|
}
|
|
7760
8081
|
|
|
7761
8082
|
function __generator(thisArg, body) {
|
|
7762
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
7763
|
-
return g =
|
|
8083
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8084
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
7764
8085
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
7765
8086
|
function step(op) {
|
|
7766
8087
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -8888,6 +9209,16 @@ var Icon = function (_a) {
|
|
|
8888
9209
|
}
|
|
8889
9210
|
};
|
|
8890
9211
|
|
|
9212
|
+
/**
|
|
9213
|
+
* Copyright (c) Nicolas Gallagher.
|
|
9214
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9215
|
+
*
|
|
9216
|
+
* This source code is licensed under the MIT license found in the
|
|
9217
|
+
* LICENSE file in the root directory of this source tree.
|
|
9218
|
+
*
|
|
9219
|
+
*
|
|
9220
|
+
*/
|
|
9221
|
+
|
|
8891
9222
|
var _excluded$8 = ["animating", "color", "hidesWhenStopped", "size", "style"];
|
|
8892
9223
|
var createSvgCircle = style => /*#__PURE__*/React__namespace.createElement("circle", {
|
|
8893
9224
|
cx: "16",
|
|
@@ -9411,6 +9742,16 @@ var warning_1 = warning;
|
|
|
9411
9742
|
|
|
9412
9743
|
var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
|
|
9413
9744
|
|
|
9745
|
+
/**
|
|
9746
|
+
* Copyright (c) Nicolas Gallagher.
|
|
9747
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9748
|
+
*
|
|
9749
|
+
* This source code is licensed under the MIT license found in the
|
|
9750
|
+
* LICENSE file in the root directory of this source tree.
|
|
9751
|
+
*
|
|
9752
|
+
*
|
|
9753
|
+
*/
|
|
9754
|
+
|
|
9414
9755
|
var _excluded$5 = ["contentContainerStyle", "horizontal", "onContentSizeChange", "refreshControl", "stickyHeaderIndices", "pagingEnabled", "forwardedRef", "keyboardDismissMode", "onScroll", "centerContent"];
|
|
9415
9756
|
var emptyObject = {};
|
|
9416
9757
|
var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;
|
|
@@ -11158,6 +11499,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
11158
11499
|
// TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not
|
|
11159
11500
|
// reused by SectionList and we can keep VirtualizedList simpler.
|
|
11160
11501
|
// $FlowFixMe[missing-local-annot]
|
|
11502
|
+
|
|
11161
11503
|
updateSeparatorProps(newProps) {
|
|
11162
11504
|
this.setState(state => ({
|
|
11163
11505
|
separatorProps: _objectSpread2(_objectSpread2({}, state.separatorProps), newProps)
|
|
@@ -11447,7 +11789,9 @@ var _keylessItemComponentName = '';
|
|
|
11447
11789
|
/**
|
|
11448
11790
|
* Default Props Helper Functions
|
|
11449
11791
|
* Use the following helper functions for default values
|
|
11450
|
-
*/
|
|
11792
|
+
*/
|
|
11793
|
+
|
|
11794
|
+
// horizontalOrDefault(this.props.horizontal)
|
|
11451
11795
|
function horizontalOrDefault(horizontal) {
|
|
11452
11796
|
return horizontal !== null && horizontal !== void 0 ? horizontal : false;
|
|
11453
11797
|
}
|
|
@@ -12350,7 +12694,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
12350
12694
|
stickyHeaderIndices.push(cells.length);
|
|
12351
12695
|
}
|
|
12352
12696
|
var shouldListenForLayout = getItemLayout == null || debug || _this._fillRateHelper.enabled();
|
|
12353
|
-
cells.push(
|
|
12697
|
+
cells.push(/*#__PURE__*/React__namespace.createElement(CellRenderer, _extends({
|
|
12354
12698
|
CellRendererComponent: CellRendererComponent,
|
|
12355
12699
|
ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined,
|
|
12356
12700
|
ListItemComponent: ListItemComponent,
|
|
@@ -12429,7 +12773,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
12429
12773
|
// $FlowFixMe[not-a-component]
|
|
12430
12774
|
// $FlowFixMe[incompatible-type-arg]
|
|
12431
12775
|
React__namespace.createElement(ListHeaderComponent, null);
|
|
12432
|
-
cells.push(
|
|
12776
|
+
cells.push(/*#__PURE__*/React__namespace.createElement(VirtualizedListCellContextProvider, {
|
|
12433
12777
|
cellKey: this._getCellKey() + '-header',
|
|
12434
12778
|
key: "$header"
|
|
12435
12779
|
}, /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
@@ -12448,7 +12792,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
12448
12792
|
// $FlowFixMe[not-a-component]
|
|
12449
12793
|
// $FlowFixMe[incompatible-type-arg]
|
|
12450
12794
|
React__namespace.createElement(ListEmptyComponent, null);
|
|
12451
|
-
cells.push(
|
|
12795
|
+
cells.push(/*#__PURE__*/React__namespace.createElement(VirtualizedListCellContextProvider, {
|
|
12452
12796
|
cellKey: this._getCellKey() + '-empty',
|
|
12453
12797
|
key: "$empty"
|
|
12454
12798
|
}, /*#__PURE__*/React__namespace.cloneElement(_element2, {
|
|
@@ -12487,7 +12831,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
12487
12831
|
var firstMetrics = this.__getFrameMetricsApprox(section.first, this.props);
|
|
12488
12832
|
var lastMetrics = this.__getFrameMetricsApprox(last, this.props);
|
|
12489
12833
|
var spacerSize = lastMetrics.offset + lastMetrics.length - firstMetrics.offset;
|
|
12490
|
-
cells.push(
|
|
12834
|
+
cells.push(/*#__PURE__*/React__namespace.createElement(View$2, {
|
|
12491
12835
|
key: "$spacer-" + section.first,
|
|
12492
12836
|
style: {
|
|
12493
12837
|
[spacerKey]: spacerSize
|
|
@@ -12510,7 +12854,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
12510
12854
|
// $FlowFixMe[not-a-component]
|
|
12511
12855
|
// $FlowFixMe[incompatible-type-arg]
|
|
12512
12856
|
React__namespace.createElement(ListFooterComponent, null);
|
|
12513
|
-
cells.push(
|
|
12857
|
+
cells.push(/*#__PURE__*/React__namespace.createElement(VirtualizedListCellContextProvider, {
|
|
12514
12858
|
cellKey: this._getFooterCellKey(),
|
|
12515
12859
|
key: "$footer"
|
|
12516
12860
|
}, /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
@@ -12941,7 +13285,9 @@ var _excluded$4 = ["numColumns", "columnWrapperStyle", "removeClippedSubviews",
|
|
|
12941
13285
|
/**
|
|
12942
13286
|
* Default Props Helper Functions
|
|
12943
13287
|
* Use the following helper functions for default values
|
|
12944
|
-
*/
|
|
13288
|
+
*/
|
|
13289
|
+
|
|
13290
|
+
// removeClippedSubviewsOrDefault(this.props.removeClippedSubviews)
|
|
12945
13291
|
function removeClippedSubviewsOrDefault(removeClippedSubviews) {
|
|
12946
13292
|
return removeClippedSubviews !== null && removeClippedSubviews !== void 0 ? removeClippedSubviews : Platform$1.OS === 'android';
|
|
12947
13293
|
}
|
|
@@ -13386,6 +13732,7 @@ function get(name) {
|
|
|
13386
13732
|
|
|
13387
13733
|
// The config has different keys depending on the type of the Node
|
|
13388
13734
|
// TODO(T54896888): Make these types strict
|
|
13735
|
+
|
|
13389
13736
|
var NativeAnimatedNonTurboModule = get();
|
|
13390
13737
|
|
|
13391
13738
|
/**
|
|
@@ -13401,6 +13748,7 @@ var NativeAnimatedNonTurboModule = get();
|
|
|
13401
13748
|
|
|
13402
13749
|
// The config has different keys depending on the type of the Node
|
|
13403
13750
|
// TODO(T54896888): Make these types strict
|
|
13751
|
+
|
|
13404
13752
|
var NativeAnimatedTurboModule = get();
|
|
13405
13753
|
|
|
13406
13754
|
/**
|
|
@@ -13625,7 +13973,6 @@ var API = {
|
|
|
13625
13973
|
// API.queueOperation(nativeOps.updateAnimatedNodeConfig, tag, config);
|
|
13626
13974
|
//}
|
|
13627
13975
|
},
|
|
13628
|
-
|
|
13629
13976
|
startListeningToAnimatedNodeValue: function startListeningToAnimatedNodeValue(tag) {
|
|
13630
13977
|
invariant$1(nativeOps, 'Native animated module is not available');
|
|
13631
13978
|
API.queueOperation(nativeOps.startListeningToAnimatedNodeValue, tag);
|
|
@@ -14453,7 +14800,6 @@ class AnimatedValue extends AnimatedWithChildren$1 {
|
|
|
14453
14800
|
this._animation = null;
|
|
14454
14801
|
}
|
|
14455
14802
|
this._updateValue(value, !this.__isNative /* don't perform a flush for natively driven values */);
|
|
14456
|
-
|
|
14457
14803
|
if (this.__isNative) {
|
|
14458
14804
|
_executeAsAnimatedBatch(this.__getNativeTag().toString(), () => NativeAnimatedAPI$1.setAnimatedNodeValue(this.__getNativeTag(), value));
|
|
14459
14805
|
}
|
|
@@ -15569,6 +15915,16 @@ class PixelRatio {
|
|
|
15569
15915
|
}
|
|
15570
15916
|
}
|
|
15571
15917
|
|
|
15918
|
+
/**
|
|
15919
|
+
* Copyright (c) Nicolas Gallagher.
|
|
15920
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15921
|
+
*
|
|
15922
|
+
* This source code is licensed under the MIT license found in the
|
|
15923
|
+
* LICENSE file in the root directory of this source tree.
|
|
15924
|
+
*
|
|
15925
|
+
*
|
|
15926
|
+
*/
|
|
15927
|
+
|
|
15572
15928
|
var _excluded$2 = ["aria-label", "accessibilityLabel", "blurRadius", "defaultSource", "draggable", "onError", "onLayout", "onLoad", "onLoadEnd", "onLoadStart", "pointerEvents", "source", "style"];
|
|
15573
15929
|
var ERRORED = 'ERRORED';
|
|
15574
15930
|
var LOADED = 'LOADED';
|
|
@@ -15592,7 +15948,7 @@ function createTintColorSVG(tintColor, id) {
|
|
|
15592
15948
|
key: tintColor
|
|
15593
15949
|
}), /*#__PURE__*/React__namespace.createElement("feComposite", {
|
|
15594
15950
|
in2: "SourceAlpha",
|
|
15595
|
-
operator: "
|
|
15951
|
+
operator: "in"
|
|
15596
15952
|
})))) : null;
|
|
15597
15953
|
}
|
|
15598
15954
|
function extractNonStandardStyleProps(style, blurRadius, filterId, tintColorProp) {
|
|
@@ -15789,7 +16145,7 @@ var Image$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
|
|
|
15789
16145
|
if (onError) {
|
|
15790
16146
|
onError({
|
|
15791
16147
|
nativeEvent: {
|
|
15792
|
-
error: "Failed to load resource " + uri
|
|
16148
|
+
error: "Failed to load resource " + uri
|
|
15793
16149
|
}
|
|
15794
16150
|
});
|
|
15795
16151
|
}
|
|
@@ -16130,7 +16486,6 @@ class VirtualizedSectionList extends React__namespace.PureComponent {
|
|
|
16130
16486
|
itemIdx -= itemCount + 2; // Add two for the header and footer
|
|
16131
16487
|
}
|
|
16132
16488
|
}
|
|
16133
|
-
|
|
16134
16489
|
return null;
|
|
16135
16490
|
}
|
|
16136
16491
|
|
|
@@ -18492,7 +18847,6 @@ _temp) {
|
|
|
18492
18847
|
}
|
|
18493
18848
|
}
|
|
18494
18849
|
},
|
|
18495
|
-
|
|
18496
18850
|
stop: function stop() {
|
|
18497
18851
|
isFinished = true;
|
|
18498
18852
|
animation.stop();
|
|
@@ -23046,6 +23400,8 @@ var useVenueTileStyles = function () {
|
|
|
23046
23400
|
return StyleSheet$1.create({
|
|
23047
23401
|
imageContainer: {
|
|
23048
23402
|
width: '100%',
|
|
23403
|
+
minHeight: 130,
|
|
23404
|
+
overflow: 'hidden',
|
|
23049
23405
|
marginBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet)
|
|
23050
23406
|
},
|
|
23051
23407
|
image: {
|
|
@@ -23076,6 +23432,7 @@ var useVenueTileStyles = function () {
|
|
|
23076
23432
|
},
|
|
23077
23433
|
header: {
|
|
23078
23434
|
width: '100%',
|
|
23435
|
+
paddingTop: theme.sizes.xxxs,
|
|
23079
23436
|
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
|
|
23080
23437
|
},
|
|
23081
23438
|
tileTitle: __assign({
|
|
@@ -23092,6 +23449,12 @@ var useVenueTileStyles = function () {
|
|
|
23092
23449
|
justifyContent: 'center',
|
|
23093
23450
|
alignItems: 'center',
|
|
23094
23451
|
zIndex: 10
|
|
23452
|
+
},
|
|
23453
|
+
pinOverlay: {
|
|
23454
|
+
position: 'absolute',
|
|
23455
|
+
top: 8,
|
|
23456
|
+
right: 8,
|
|
23457
|
+
zIndex: 20
|
|
23095
23458
|
}
|
|
23096
23459
|
});
|
|
23097
23460
|
};
|
|
@@ -23099,45 +23462,54 @@ var useVenueTileStyles = function () {
|
|
|
23099
23462
|
/**
|
|
23100
23463
|
* Renders the media for a Venue Tile.
|
|
23101
23464
|
*
|
|
23102
|
-
* @param props {VenueTileMediaProps} - Component props
|
|
23103
|
-
* @param props.isArtworkOnly {boolean} - Whether the media should be rendered as an artwork only component
|
|
23104
23465
|
* @returns React.ReactElement or null if no artwork URL is present or artwork should not be shown
|
|
23105
23466
|
*/
|
|
23106
|
-
var VenueTileMedia = function (
|
|
23107
|
-
var _b = _a.isArtworkOnly,
|
|
23108
|
-
isArtworkOnly = _b === void 0 ? false : _b;
|
|
23467
|
+
var VenueTileMedia = function () {
|
|
23109
23468
|
var styles = useVenueTileStyles();
|
|
23110
23469
|
var tileContext = useTileContext();
|
|
23111
23470
|
if (!isContextValid(tileContext)) return null;
|
|
23112
|
-
var
|
|
23113
|
-
artworkUrl =
|
|
23114
|
-
|
|
23115
|
-
name =
|
|
23116
|
-
|
|
23117
|
-
isLocked =
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
|
|
23121
|
-
|
|
23471
|
+
var _a = tileContext.configuration,
|
|
23472
|
+
artworkUrl = _a.artworkUrl,
|
|
23473
|
+
_b = _a.name,
|
|
23474
|
+
name = _b === void 0 ? 'Venue' : _b,
|
|
23475
|
+
_c = _a.isLocked,
|
|
23476
|
+
isLocked = _c === void 0 ? false : _c;
|
|
23477
|
+
var containerStyle = __assign({
|
|
23478
|
+
flexBasis: '50%'
|
|
23479
|
+
}, tileContext.tileHeight === exports.TileHeight.Half && {
|
|
23480
|
+
minHeight: 0
|
|
23481
|
+
});
|
|
23482
|
+
var showCenteredPin = !artworkUrl && !isLocked;
|
|
23122
23483
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
23123
23484
|
style: [styles.imageContainer, containerStyle],
|
|
23124
23485
|
testID: "venue-tile-media",
|
|
23125
23486
|
role: "img",
|
|
23126
23487
|
accessibilityLabel: "Venue image for ".concat(name)
|
|
23127
|
-
}, /*#__PURE__*/React.createElement(ProgressiveImage, {
|
|
23488
|
+
}, artworkUrl && (/*#__PURE__*/React.createElement(ProgressiveImage, {
|
|
23128
23489
|
source: {
|
|
23129
23490
|
uri: artworkUrl
|
|
23130
23491
|
},
|
|
23131
23492
|
style: styles.image,
|
|
23132
23493
|
alt: "Venue image for ".concat(name)
|
|
23133
|
-
}),
|
|
23494
|
+
})), /*#__PURE__*/React.createElement(View$2, {
|
|
23134
23495
|
style: styles.lockOverlay,
|
|
23135
23496
|
testID: "lock-overlay"
|
|
23136
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
23497
|
+
}, isLocked && /*#__PURE__*/React.createElement(Icon, {
|
|
23137
23498
|
name: "LockKeyhole",
|
|
23138
23499
|
size: 48,
|
|
23139
23500
|
color: "white"
|
|
23140
|
-
})
|
|
23501
|
+
}), showCenteredPin ? (/*#__PURE__*/React.createElement(Icon, {
|
|
23502
|
+
name: "MapPin",
|
|
23503
|
+
size: 48,
|
|
23504
|
+
color: "white"
|
|
23505
|
+
})) : (/*#__PURE__*/React.createElement(View$2, {
|
|
23506
|
+
style: styles.pinOverlay,
|
|
23507
|
+
testID: "pin-overlay"
|
|
23508
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
23509
|
+
name: "MapPin",
|
|
23510
|
+
size: 24,
|
|
23511
|
+
color: "white"
|
|
23512
|
+
})))));
|
|
23141
23513
|
};
|
|
23142
23514
|
|
|
23143
23515
|
/**
|
|
@@ -23188,11 +23560,10 @@ var VenueTileTitle = function () {
|
|
|
23188
23560
|
};
|
|
23189
23561
|
|
|
23190
23562
|
/**
|
|
23191
|
-
* The VenueTile component renders a tile with media, title,
|
|
23563
|
+
* The VenueTile component renders a tile with media, title, description, and a chevron.
|
|
23192
23564
|
*
|
|
23193
23565
|
* @param {VenueTileProps} props - Component props
|
|
23194
23566
|
* @param {Tile} props.tile - The tile data to render
|
|
23195
|
-
* @returns React.ReactElement or null if tile is inactive or not a full-height tile
|
|
23196
23567
|
*/
|
|
23197
23568
|
var VenueTileRoot = function (_a) {
|
|
23198
23569
|
var tile = _a.tile;
|