@hero-design/rn 8.134.0 → 8.135.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/CHANGELOG.md +6 -0
- package/es/index.js +235 -78
- package/lib/index.js +232 -74
- package/package.json +1 -1
- package/src/components/List/BasicListItem.tsx +2 -2
- package/src/components/List/index.tsx +3 -0
- package/src/components/SectionList/SectionList.tsx +181 -0
- package/src/components/SectionList/StyledSectionList.tsx +65 -0
- package/src/components/SectionList/index.tsx +4 -0
- package/src/index.ts +2 -0
- package/src/theme/components/sectionList.ts +31 -0
- package/src/theme/getTheme.ts +3 -0
- package/src/types.ts +1 -0
- package/types/components/List/BasicListItem.d.ts +2 -2
- package/types/components/List/index.d.ts +2 -0
- package/types/components/Radio/StyledRadio.d.ts +1 -1
- package/types/components/SectionList/SectionList.d.ts +66 -0
- package/types/components/SectionList/StyledSectionList.d.ts +33 -0
- package/types/components/SectionList/index.d.ts +3 -0
- package/types/index.d.ts +2 -1
- package/types/theme/components/sectionList.d.ts +23 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/types/types.d.ts +1 -0
package/lib/index.js
CHANGED
|
@@ -6782,6 +6782,34 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
6782
6782
|
};
|
|
6783
6783
|
};
|
|
6784
6784
|
|
|
6785
|
+
var getSectionListTheme = function getSectionListTheme(theme) {
|
|
6786
|
+
var colors = {
|
|
6787
|
+
groupBackground: theme.colors.defaultGlobalSurface
|
|
6788
|
+
};
|
|
6789
|
+
var radii = {
|
|
6790
|
+
group: theme.radii.xlarge
|
|
6791
|
+
};
|
|
6792
|
+
var marginHorizontalValues = {
|
|
6793
|
+
none: 0,
|
|
6794
|
+
xsmall: theme.space.xsmall,
|
|
6795
|
+
small: theme.space.small,
|
|
6796
|
+
medium: theme.space.medium,
|
|
6797
|
+
large: theme.space.large,
|
|
6798
|
+
xlarge: theme.space.xlarge
|
|
6799
|
+
};
|
|
6800
|
+
var space = {
|
|
6801
|
+
marginHorizontal: marginHorizontalValues,
|
|
6802
|
+
sectionSpacing: theme.space.medium,
|
|
6803
|
+
sectionSpacingCompact: theme.space.small,
|
|
6804
|
+
headingPaddingLeft: theme.space.small
|
|
6805
|
+
};
|
|
6806
|
+
return {
|
|
6807
|
+
colors: colors,
|
|
6808
|
+
radii: radii,
|
|
6809
|
+
space: space
|
|
6810
|
+
};
|
|
6811
|
+
};
|
|
6812
|
+
|
|
6785
6813
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
6786
6814
|
var space = {
|
|
6787
6815
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
@@ -8004,6 +8032,7 @@ var getTheme = function getTheme() {
|
|
|
8004
8032
|
richTextEditor: getRichTextEditorTheme(globalTheme),
|
|
8005
8033
|
search: getSearchTheme(globalTheme),
|
|
8006
8034
|
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
8035
|
+
sectionList: getSectionListTheme(globalTheme),
|
|
8007
8036
|
select: getSelectTheme(globalTheme),
|
|
8008
8037
|
skeleton: getSkeletonTheme(globalTheme),
|
|
8009
8038
|
slider: getSliderTheme(globalTheme),
|
|
@@ -8215,7 +8244,7 @@ var StyledText$4 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8215
8244
|
});
|
|
8216
8245
|
});
|
|
8217
8246
|
|
|
8218
|
-
var _excluded$
|
|
8247
|
+
var _excluded$Q = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8219
8248
|
/**
|
|
8220
8249
|
* @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
8221
8250
|
*/
|
|
@@ -8231,7 +8260,7 @@ var Text = function Text(_ref) {
|
|
|
8231
8260
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8232
8261
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8233
8262
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8234
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8263
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$Q);
|
|
8235
8264
|
useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
|
|
8236
8265
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8237
8266
|
themeFontSize: fontSize,
|
|
@@ -8284,10 +8313,10 @@ var pickAccessibilityProps = function pickAccessibilityProps(props) {
|
|
|
8284
8313
|
}, {});
|
|
8285
8314
|
};
|
|
8286
8315
|
|
|
8287
|
-
var _excluded$
|
|
8316
|
+
var _excluded$P = ["children"];
|
|
8288
8317
|
var GradientText = function GradientText(_ref) {
|
|
8289
8318
|
var children = _ref.children,
|
|
8290
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
8319
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$P);
|
|
8291
8320
|
var theme = useTheme();
|
|
8292
8321
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
8293
8322
|
var _useState = React.useState(null),
|
|
@@ -8343,7 +8372,7 @@ var GradientText = function GradientText(_ref) {
|
|
|
8343
8372
|
}, children));
|
|
8344
8373
|
};
|
|
8345
8374
|
|
|
8346
|
-
var _excluded$
|
|
8375
|
+
var _excluded$O = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
|
|
8347
8376
|
var Caption = function Caption(_ref) {
|
|
8348
8377
|
var children = _ref.children,
|
|
8349
8378
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8356,7 +8385,7 @@ var Caption = function Caption(_ref) {
|
|
|
8356
8385
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8357
8386
|
style = _ref.style,
|
|
8358
8387
|
testID = _ref.testID,
|
|
8359
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8388
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8360
8389
|
var isAi = intent === 'ai';
|
|
8361
8390
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8362
8391
|
themeFontWeight: fontWeight,
|
|
@@ -8388,7 +8417,7 @@ var StyledLabel$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8388
8417
|
};
|
|
8389
8418
|
});
|
|
8390
8419
|
|
|
8391
|
-
var _excluded$
|
|
8420
|
+
var _excluded$N = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
|
|
8392
8421
|
var Label = function Label(_ref) {
|
|
8393
8422
|
var children = _ref.children,
|
|
8394
8423
|
_ref$intent = _ref.intent,
|
|
@@ -8401,7 +8430,7 @@ var Label = function Label(_ref) {
|
|
|
8401
8430
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
8402
8431
|
style = _ref.style,
|
|
8403
8432
|
testID = _ref.testID,
|
|
8404
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8433
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8405
8434
|
var isAi = intent === 'ai';
|
|
8406
8435
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
8407
8436
|
themeIntent: isAi ? 'body' : intent,
|
|
@@ -8432,7 +8461,7 @@ var StyledTitle$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8432
8461
|
};
|
|
8433
8462
|
});
|
|
8434
8463
|
|
|
8435
|
-
var _excluded$
|
|
8464
|
+
var _excluded$M = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle", "style", "testID"];
|
|
8436
8465
|
var Title = function Title(_ref) {
|
|
8437
8466
|
var children = _ref.children,
|
|
8438
8467
|
_ref$intent = _ref.intent,
|
|
@@ -8447,7 +8476,7 @@ var Title = function Title(_ref) {
|
|
|
8447
8476
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8448
8477
|
style = _ref.style,
|
|
8449
8478
|
testID = _ref.testID,
|
|
8450
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8479
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8451
8480
|
var isAi = intent === 'ai';
|
|
8452
8481
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8453
8482
|
themeLevel: level,
|
|
@@ -8497,7 +8526,7 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8497
8526
|
};
|
|
8498
8527
|
});
|
|
8499
8528
|
|
|
8500
|
-
var _excluded$
|
|
8529
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle", "style", "testID"];
|
|
8501
8530
|
var Body = function Body(_ref) {
|
|
8502
8531
|
var children = _ref.children,
|
|
8503
8532
|
_ref$intent = _ref.intent,
|
|
@@ -8512,7 +8541,7 @@ var Body = function Body(_ref) {
|
|
|
8512
8541
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8513
8542
|
style = _ref.style,
|
|
8514
8543
|
testID = _ref.testID,
|
|
8515
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8544
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8516
8545
|
var isAi = intent === 'ai';
|
|
8517
8546
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8518
8547
|
themeTypeface: typeface,
|
|
@@ -9194,22 +9223,22 @@ var SpinWrapper = function SpinWrapper(_ref) {
|
|
|
9194
9223
|
}, children);
|
|
9195
9224
|
};
|
|
9196
9225
|
|
|
9197
|
-
var _excluded$
|
|
9226
|
+
var _excluded$K = ["style"];
|
|
9198
9227
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
9199
9228
|
var style = _ref.style,
|
|
9200
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9229
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
9201
9230
|
return /*#__PURE__*/React__namespace.default.createElement(SpinWrapper, {
|
|
9202
9231
|
style: style
|
|
9203
9232
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, otherProps));
|
|
9204
9233
|
};
|
|
9205
9234
|
|
|
9206
|
-
var _excluded$
|
|
9235
|
+
var _excluded$J = ["name", "themeSize", "testID", "style"];
|
|
9207
9236
|
var GradientIcon = function GradientIcon(_ref) {
|
|
9208
9237
|
var name = _ref.name,
|
|
9209
9238
|
themeSize = _ref.themeSize,
|
|
9210
9239
|
testID = _ref.testID,
|
|
9211
9240
|
style = _ref.style,
|
|
9212
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
9241
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
9213
9242
|
var theme = useTheme();
|
|
9214
9243
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
9215
9244
|
var size = theme.__hd__.icon.sizes[themeSize];
|
|
@@ -9337,7 +9366,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
9337
9366
|
}, content));
|
|
9338
9367
|
};
|
|
9339
9368
|
|
|
9340
|
-
var _excluded$
|
|
9369
|
+
var _excluded$I = ["key"];
|
|
9341
9370
|
var Accordion = function Accordion(_ref) {
|
|
9342
9371
|
var items = _ref.items,
|
|
9343
9372
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -9360,7 +9389,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
9360
9389
|
accessible: accessible
|
|
9361
9390
|
}, items.map(function (_ref2, index) {
|
|
9362
9391
|
var key = _ref2.key,
|
|
9363
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9392
|
+
props = _objectWithoutProperties(_ref2, _excluded$I);
|
|
9364
9393
|
var open = _activeItemKey === key;
|
|
9365
9394
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
9366
9395
|
key: key
|
|
@@ -10201,7 +10230,7 @@ var borderWidths = {
|
|
|
10201
10230
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
10202
10231
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
10203
10232
|
|
|
10204
|
-
var _excluded$
|
|
10233
|
+
var _excluded$H = ["theme"];
|
|
10205
10234
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
10206
10235
|
var propConfig = config[key];
|
|
10207
10236
|
var propValue = props[key];
|
|
@@ -10228,18 +10257,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
10228
10257
|
var configKeys = Object.keys(config);
|
|
10229
10258
|
var StyledBox = index$c(reactNative.View)(function (_ref5) {
|
|
10230
10259
|
var theme = _ref5.theme,
|
|
10231
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
10260
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$H);
|
|
10232
10261
|
var styleProps = pick(configKeys, otherProps);
|
|
10233
10262
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
10234
10263
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
10235
10264
|
});
|
|
10236
10265
|
|
|
10237
|
-
var _excluded$
|
|
10266
|
+
var _excluded$G = ["children", "style", "testID"];
|
|
10238
10267
|
var Box = function Box(_ref) {
|
|
10239
10268
|
var children = _ref.children,
|
|
10240
10269
|
style = _ref.style,
|
|
10241
10270
|
testID = _ref.testID,
|
|
10242
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10271
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
10243
10272
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
10244
10273
|
style: style,
|
|
10245
10274
|
testID: testID
|
|
@@ -10510,7 +10539,7 @@ var StyledIcon$4 = index$c(Icon)(function (_ref6) {
|
|
|
10510
10539
|
};
|
|
10511
10540
|
});
|
|
10512
10541
|
|
|
10513
|
-
var _excluded$
|
|
10542
|
+
var _excluded$F = ["children", "visible", "intent", "style", "testID"];
|
|
10514
10543
|
var Status$1 = function Status(_ref) {
|
|
10515
10544
|
var children = _ref.children,
|
|
10516
10545
|
_ref$visible = _ref.visible,
|
|
@@ -10519,7 +10548,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10519
10548
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
10520
10549
|
style = _ref.style,
|
|
10521
10550
|
testID = _ref.testID,
|
|
10522
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10551
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
10523
10552
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10524
10553
|
opacity = _React$useRef.current;
|
|
10525
10554
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10555,7 +10584,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10555
10584
|
|
|
10556
10585
|
var DEFAULT_MAX_NUMBER = 99;
|
|
10557
10586
|
|
|
10558
|
-
var _excluded$
|
|
10587
|
+
var _excluded$E = ["children", "visible", "style", "max", "testID", "content"];
|
|
10559
10588
|
var Status = function Status(_ref) {
|
|
10560
10589
|
var children = _ref.children,
|
|
10561
10590
|
_ref$visible = _ref.visible,
|
|
@@ -10565,7 +10594,7 @@ var Status = function Status(_ref) {
|
|
|
10565
10594
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
10566
10595
|
testID = _ref.testID,
|
|
10567
10596
|
originalContent = _ref.content,
|
|
10568
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10597
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
10569
10598
|
var content = React.useMemo(function () {
|
|
10570
10599
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
10571
10600
|
}, [originalContent, max]);
|
|
@@ -10577,7 +10606,7 @@ var Status = function Status(_ref) {
|
|
|
10577
10606
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
10578
10607
|
};
|
|
10579
10608
|
|
|
10580
|
-
var _excluded$
|
|
10609
|
+
var _excluded$D = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
10581
10610
|
var getPaddingState = function getPaddingState(content) {
|
|
10582
10611
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
10583
10612
|
};
|
|
@@ -10596,7 +10625,7 @@ var Badge = function Badge(_ref) {
|
|
|
10596
10625
|
_ref$variant = _ref.variant,
|
|
10597
10626
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
10598
10627
|
icon = _ref.icon,
|
|
10599
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10628
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
10600
10629
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10601
10630
|
opacity = _React$useRef.current;
|
|
10602
10631
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10714,7 +10743,7 @@ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
|
|
|
10714
10743
|
};
|
|
10715
10744
|
});
|
|
10716
10745
|
|
|
10717
|
-
var _excluded$
|
|
10746
|
+
var _excluded$C = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
10718
10747
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
10719
10748
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
10720
10749
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -10725,7 +10754,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10725
10754
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
10726
10755
|
selectedTabKey = _ref.selectedTabKey,
|
|
10727
10756
|
tabs = _ref.tabs,
|
|
10728
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10757
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
10729
10758
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
10730
10759
|
/**
|
|
10731
10760
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10817,13 +10846,13 @@ var StyledDivider = index$c(reactNative.View)(function (_ref) {
|
|
|
10817
10846
|
}, horizontalMargin), verticalMargin);
|
|
10818
10847
|
});
|
|
10819
10848
|
|
|
10820
|
-
var _excluded$
|
|
10849
|
+
var _excluded$B = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10821
10850
|
var Divider = function Divider(_ref) {
|
|
10822
10851
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10823
10852
|
marginVertical = _ref.marginVertical,
|
|
10824
10853
|
style = _ref.style,
|
|
10825
10854
|
testID = _ref.testID,
|
|
10826
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10855
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10827
10856
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10828
10857
|
themeMarginHorizontal: marginHorizontal,
|
|
10829
10858
|
themeMarginVertical: marginVertical,
|
|
@@ -10954,7 +10983,7 @@ var StyledLoadingDot = index$c(reactNative.View)(function (_ref) {
|
|
|
10954
10983
|
}, themeStyling());
|
|
10955
10984
|
});
|
|
10956
10985
|
|
|
10957
|
-
var _excluded$
|
|
10986
|
+
var _excluded$A = ["count", "size", "testID", "themeVariant"];
|
|
10958
10987
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10959
10988
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10960
10989
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10986,7 +11015,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10986
11015
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10987
11016
|
testID = _ref2.testID,
|
|
10988
11017
|
themeVariant = _ref2.themeVariant,
|
|
10989
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11018
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$A);
|
|
10990
11019
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
10991
11020
|
React.useEffect(function () {
|
|
10992
11021
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -11618,11 +11647,11 @@ var Header = function Header(_ref) {
|
|
|
11618
11647
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
11619
11648
|
};
|
|
11620
11649
|
|
|
11621
|
-
var _excluded$
|
|
11650
|
+
var _excluded$z = ["scrollEventThrottle"];
|
|
11622
11651
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11623
11652
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
11624
11653
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
11625
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11654
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
11626
11655
|
var _useContext = React.useContext(BottomSheetContext),
|
|
11627
11656
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
11628
11657
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -14744,12 +14773,12 @@ var Indicator = index$c(reactNative.View)(function (_ref3) {
|
|
|
14744
14773
|
};
|
|
14745
14774
|
});
|
|
14746
14775
|
|
|
14747
|
-
var _excluded$
|
|
14776
|
+
var _excluded$y = ["intent", "children"];
|
|
14748
14777
|
var DataCard = function DataCard(_ref) {
|
|
14749
14778
|
var _ref$intent = _ref.intent,
|
|
14750
14779
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
14751
14780
|
children = _ref.children,
|
|
14752
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14781
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
14753
14782
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
14754
14783
|
themeIntent: intent,
|
|
14755
14784
|
testID: "data-card-indicator"
|
|
@@ -14768,13 +14797,13 @@ var StyledCard$1 = index$c(reactNative.View)(function (_ref) {
|
|
|
14768
14797
|
});
|
|
14769
14798
|
});
|
|
14770
14799
|
|
|
14771
|
-
var _excluded$
|
|
14800
|
+
var _excluded$x = ["intent", "children", "variant"];
|
|
14772
14801
|
var Card = function Card(_ref) {
|
|
14773
14802
|
var intent = _ref.intent,
|
|
14774
14803
|
children = _ref.children,
|
|
14775
14804
|
_ref$variant = _ref.variant,
|
|
14776
14805
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
14777
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14806
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
14778
14807
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
14779
14808
|
themeIntent: intent,
|
|
14780
14809
|
themeVariant: variant
|
|
@@ -15041,7 +15070,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15041
15070
|
});
|
|
15042
15071
|
CardCarousel.displayName = 'CardCarousel';
|
|
15043
15072
|
|
|
15044
|
-
var _excluded$
|
|
15073
|
+
var _excluded$w = ["rounded", "size", "testID", "style"];
|
|
15045
15074
|
/**
|
|
15046
15075
|
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
15047
15076
|
*/
|
|
@@ -15052,7 +15081,7 @@ var Image = function Image(_ref) {
|
|
|
15052
15081
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
15053
15082
|
testID = _ref.testID,
|
|
15054
15083
|
style = _ref.style,
|
|
15055
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15084
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
15056
15085
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
15057
15086
|
var theme = useTheme();
|
|
15058
15087
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -15187,7 +15216,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
15187
15216
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
15188
15217
|
};
|
|
15189
15218
|
|
|
15190
|
-
var _excluded$
|
|
15219
|
+
var _excluded$v = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
15191
15220
|
function useStateFromProp(initialValue) {
|
|
15192
15221
|
var _useState = React.useState(initialValue),
|
|
15193
15222
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15214,7 +15243,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
15214
15243
|
testID = _ref.testID,
|
|
15215
15244
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
15216
15245
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
15217
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15246
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
15218
15247
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$2);
|
|
15219
15248
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
15220
15249
|
var theme = useTheme();
|
|
@@ -20485,7 +20514,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
20485
20514
|
};
|
|
20486
20515
|
});
|
|
20487
20516
|
|
|
20488
|
-
var _excluded$
|
|
20517
|
+
var _excluded$u = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible", "onBlur", "onFocus"];
|
|
20489
20518
|
var getChipLabel = function getChipLabel(label) {
|
|
20490
20519
|
if (typeof label === 'string') {
|
|
20491
20520
|
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
@@ -20521,7 +20550,7 @@ var Chip = function Chip(_ref) {
|
|
|
20521
20550
|
accessible = _ref.accessible,
|
|
20522
20551
|
onBlur = _ref.onBlur,
|
|
20523
20552
|
onFocus = _ref.onFocus,
|
|
20524
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
20553
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
20525
20554
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
20526
20555
|
var renamedVariant = getChipVariant(variant);
|
|
20527
20556
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -20912,7 +20941,7 @@ var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref1
|
|
|
20912
20941
|
};
|
|
20913
20942
|
});
|
|
20914
20943
|
|
|
20915
|
-
var _excluded$
|
|
20944
|
+
var _excluded$t = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
20916
20945
|
var getState$3 = function getState(_ref) {
|
|
20917
20946
|
var disabled = _ref.disabled,
|
|
20918
20947
|
error = _ref.error,
|
|
@@ -21028,7 +21057,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
21028
21057
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
21029
21058
|
_ref8$variant = _ref8.variant,
|
|
21030
21059
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
21031
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
21060
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$t);
|
|
21032
21061
|
var displayText = getDisplayText(value, defaultValue);
|
|
21033
21062
|
var isEmptyValue = displayText.length === 0;
|
|
21034
21063
|
var _React$useState = React__namespace.default.useState(0),
|
|
@@ -21775,11 +21804,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21775
21804
|
}));
|
|
21776
21805
|
};
|
|
21777
21806
|
|
|
21778
|
-
var _excluded$
|
|
21807
|
+
var _excluded$s = ["variant"];
|
|
21779
21808
|
var DatePicker = function DatePicker(_ref) {
|
|
21780
21809
|
var _ref$variant = _ref.variant,
|
|
21781
21810
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21782
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21811
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
21783
21812
|
if (variant === 'calendar') {
|
|
21784
21813
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
21785
21814
|
}
|
|
@@ -22151,7 +22180,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
22151
22180
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledHandlerContainer$1, panHandlers, /*#__PURE__*/React__namespace.default.createElement(StyledHandler, null)), children)));
|
|
22152
22181
|
};
|
|
22153
22182
|
|
|
22154
|
-
var _excluded$
|
|
22183
|
+
var _excluded$r = ["onScroll", "onScrollEndDrag", "onMomentumScrollEnd", "scrollEventThrottle", "children"];
|
|
22155
22184
|
// scrollY tolerance: treat anything within this many pixels of the top as
|
|
22156
22185
|
// "at scroll top" to handle fractional pixels and throttled scroll events.
|
|
22157
22186
|
var SCROLL_TOP_THRESHOLD_PX = 5;
|
|
@@ -22178,7 +22207,7 @@ var DragableScrollView = function DragableScrollView(_ref) {
|
|
|
22178
22207
|
_ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
22179
22208
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? DEFAULT_SCROLL_EVENT_THROTTLE : _ref$scrollEventThrot,
|
|
22180
22209
|
children = _ref.children,
|
|
22181
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22210
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
22182
22211
|
var _useDragableDrawerCon = useDragableDrawerContext(),
|
|
22183
22212
|
isAtMaxHeight = _useDragableDrawerCon.isAtMaxHeight,
|
|
22184
22213
|
scrollYRef = _useDragableDrawerCon.scrollYRef,
|
|
@@ -24042,7 +24071,7 @@ var StyledErrorDescription = index$c(Typography.Body)(function (_ref9) {
|
|
|
24042
24071
|
};
|
|
24043
24072
|
});
|
|
24044
24073
|
|
|
24045
|
-
var _excluded$
|
|
24074
|
+
var _excluded$q = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
24046
24075
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
24047
24076
|
var renderImage$1 = function renderImage(image) {
|
|
24048
24077
|
if (/*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -24083,7 +24112,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
24083
24112
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
24084
24113
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
24085
24114
|
icon = _ref2.icon,
|
|
24086
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
24115
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$q);
|
|
24087
24116
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
24088
24117
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
24089
24118
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -24312,13 +24341,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
24312
24341
|
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
24313
24342
|
};
|
|
24314
24343
|
|
|
24315
|
-
var _excluded$
|
|
24344
|
+
var _excluded$p = ["active"];
|
|
24316
24345
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(/*#__PURE__*/React__namespace.default.forwardRef(function (props, _) {
|
|
24317
24346
|
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, props);
|
|
24318
24347
|
}));
|
|
24319
24348
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
24320
24349
|
var active = _ref.active,
|
|
24321
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
24350
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
24322
24351
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
24323
24352
|
React.useEffect(function () {
|
|
24324
24353
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -24724,11 +24753,11 @@ var StyledFAB = index$c(FABWithTitleStyle)(function (_ref) {
|
|
|
24724
24753
|
};
|
|
24725
24754
|
});
|
|
24726
24755
|
|
|
24727
|
-
var _excluded$
|
|
24756
|
+
var _excluded$o = ["fabConfig", "onCancel"];
|
|
24728
24757
|
var Pair = function Pair(_ref) {
|
|
24729
24758
|
var fabConfig = _ref.fabConfig,
|
|
24730
24759
|
onCancel = _ref.onCancel,
|
|
24731
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24760
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
24732
24761
|
var icon = fabConfig.icon,
|
|
24733
24762
|
title = fabConfig.title,
|
|
24734
24763
|
onPress = fabConfig.onPress,
|
|
@@ -25463,11 +25492,11 @@ var StyledFocusIcon = index$c(Icon)(function (_ref7) {
|
|
|
25463
25492
|
};
|
|
25464
25493
|
});
|
|
25465
25494
|
|
|
25466
|
-
var _excluded$
|
|
25495
|
+
var _excluded$n = ["style", "testID"];
|
|
25467
25496
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
25468
25497
|
var style = _ref.style,
|
|
25469
25498
|
testID = _ref.testID,
|
|
25470
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25499
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
25471
25500
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25472
25501
|
style: style,
|
|
25473
25502
|
testID: testID
|
|
@@ -25477,7 +25506,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
25477
25506
|
}));
|
|
25478
25507
|
};
|
|
25479
25508
|
|
|
25480
|
-
var _excluded$
|
|
25509
|
+
var _excluded$m = ["style", "testID", "state", "image", "icon"];
|
|
25481
25510
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
25482
25511
|
var iconMap = {
|
|
25483
25512
|
idle: undefined,
|
|
@@ -25493,7 +25522,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
25493
25522
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
25494
25523
|
image = _ref.image,
|
|
25495
25524
|
icon = _ref.icon,
|
|
25496
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25525
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
25497
25526
|
var badgeIcon = getBadgeIconName(state);
|
|
25498
25527
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25499
25528
|
style: style,
|
|
@@ -25814,7 +25843,7 @@ var THEME_INTENT_MAP = {
|
|
|
25814
25843
|
'archived-inverted': 'archivedInverted'
|
|
25815
25844
|
};
|
|
25816
25845
|
|
|
25817
|
-
var _excluded$
|
|
25846
|
+
var _excluded$l = ["value", "renderValue", "intent", "style", "testID"];
|
|
25818
25847
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
25819
25848
|
return "".concat(value, "%");
|
|
25820
25849
|
};
|
|
@@ -25827,7 +25856,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
25827
25856
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25828
25857
|
style = _ref.style,
|
|
25829
25858
|
testID = _ref.testID,
|
|
25830
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25859
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
25831
25860
|
var theme = useTheme$1();
|
|
25832
25861
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
25833
25862
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -25897,14 +25926,14 @@ var StyledInner = index$c(reactNative.Animated.View)(function (_ref2) {
|
|
|
25897
25926
|
};
|
|
25898
25927
|
});
|
|
25899
25928
|
|
|
25900
|
-
var _excluded$
|
|
25929
|
+
var _excluded$k = ["value", "intent", "style", "testID"];
|
|
25901
25930
|
var ProgressBar = function ProgressBar(_ref) {
|
|
25902
25931
|
var value = _ref.value,
|
|
25903
25932
|
_ref$intent = _ref.intent,
|
|
25904
25933
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25905
25934
|
style = _ref.style,
|
|
25906
25935
|
testID = _ref.testID,
|
|
25907
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25936
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
25908
25937
|
var _useState = React.useState(0),
|
|
25909
25938
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25910
25939
|
width = _useState2[0],
|
|
@@ -25994,7 +26023,7 @@ var StyledSingleStep = index$c(Box)(function (_ref3) {
|
|
|
25994
26023
|
};
|
|
25995
26024
|
});
|
|
25996
26025
|
|
|
25997
|
-
var _excluded$
|
|
26026
|
+
var _excluded$j = ["steps", "current", "onLayout"];
|
|
25998
26027
|
var getStepState = function getStepState(current, index) {
|
|
25999
26028
|
if (index < current) {
|
|
26000
26029
|
return 'complete';
|
|
@@ -26008,7 +26037,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
26008
26037
|
var steps = _ref.steps,
|
|
26009
26038
|
current = _ref.current,
|
|
26010
26039
|
onLayout = _ref.onLayout,
|
|
26011
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
26040
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
26012
26041
|
var theme = useTheme$1();
|
|
26013
26042
|
var _React$useState = React__namespace.default.useState(0),
|
|
26014
26043
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -26305,7 +26334,7 @@ var StyledEmptyText = index$c(Typography.Caption)(function (_ref4) {
|
|
|
26305
26334
|
};
|
|
26306
26335
|
});
|
|
26307
26336
|
|
|
26308
|
-
var _excluded$
|
|
26337
|
+
var _excluded$i = ["data", "headerConfig", "emptyText", "legendConfig", "styleConfig", "style", "testID", "collapsable"];
|
|
26309
26338
|
var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
26310
26339
|
var data = _ref.data,
|
|
26311
26340
|
headerConfig = _ref.headerConfig,
|
|
@@ -26315,7 +26344,7 @@ var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
|
26315
26344
|
style = _ref.style,
|
|
26316
26345
|
testID = _ref.testID,
|
|
26317
26346
|
collapsable = _ref.collapsable,
|
|
26318
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26347
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
26319
26348
|
var values = React__namespace.default.useMemo(function () {
|
|
26320
26349
|
return data.map(function (s) {
|
|
26321
26350
|
return s.data;
|
|
@@ -26685,14 +26714,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
26685
26714
|
}, dotProps))));
|
|
26686
26715
|
};
|
|
26687
26716
|
|
|
26688
|
-
var _excluded$
|
|
26717
|
+
var _excluded$h = ["testID", "size", "intent"];
|
|
26689
26718
|
var Spinner = function Spinner(_ref) {
|
|
26690
26719
|
var testID = _ref.testID,
|
|
26691
26720
|
_ref$size = _ref.size,
|
|
26692
26721
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
26693
26722
|
_ref$intent = _ref.intent,
|
|
26694
26723
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
26695
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26724
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
26696
26725
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
26697
26726
|
testID: testID
|
|
26698
26727
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -26725,7 +26754,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
26725
26754
|
}, children);
|
|
26726
26755
|
};
|
|
26727
26756
|
|
|
26728
|
-
var _excluded$
|
|
26757
|
+
var _excluded$g = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
26729
26758
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
26730
26759
|
var trans = progress.interpolate({
|
|
26731
26760
|
inputRange: [0, 1],
|
|
@@ -26754,7 +26783,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
26754
26783
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
26755
26784
|
_ref$variant = _ref.variant,
|
|
26756
26785
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
26757
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
26786
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
26758
26787
|
var theme = useTheme();
|
|
26759
26788
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
26760
26789
|
width = _useWindowDimensions.width;
|
|
@@ -27011,6 +27040,134 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
27011
27040
|
}, text)), rightChildren);
|
|
27012
27041
|
};
|
|
27013
27042
|
|
|
27043
|
+
var isTop = function isTop(position) {
|
|
27044
|
+
return position === 'top' || position === 'single';
|
|
27045
|
+
};
|
|
27046
|
+
var isBottom = function isBottom(position) {
|
|
27047
|
+
return position === 'bottom' || position === 'single';
|
|
27048
|
+
};
|
|
27049
|
+
var StyledRow = index$c(reactNative.View)(function (_ref) {
|
|
27050
|
+
var theme = _ref.theme,
|
|
27051
|
+
themePosition = _ref.themePosition,
|
|
27052
|
+
_ref$themeMarginHoriz = _ref.themeMarginHorizontal,
|
|
27053
|
+
themeMarginHorizontal = _ref$themeMarginHoriz === void 0 ? 'medium' : _ref$themeMarginHoriz;
|
|
27054
|
+
var radius = theme.__hd__.sectionList.radii.group;
|
|
27055
|
+
var marginHorizontal = theme.__hd__.sectionList.space.marginHorizontal[themeMarginHorizontal];
|
|
27056
|
+
return {
|
|
27057
|
+
marginHorizontal: marginHorizontal,
|
|
27058
|
+
backgroundColor: theme.__hd__.sectionList.colors.groupBackground,
|
|
27059
|
+
borderTopLeftRadius: isTop(themePosition) ? radius : 0,
|
|
27060
|
+
borderTopRightRadius: isTop(themePosition) ? radius : 0,
|
|
27061
|
+
borderBottomLeftRadius: isBottom(themePosition) ? radius : 0,
|
|
27062
|
+
borderBottomRightRadius: isBottom(themePosition) ? radius : 0,
|
|
27063
|
+
overflow: 'hidden'
|
|
27064
|
+
};
|
|
27065
|
+
});
|
|
27066
|
+
var StyledDividerWrapper = index$c(reactNative.View)(function (_ref2) {
|
|
27067
|
+
var theme = _ref2.theme,
|
|
27068
|
+
_ref2$themeMarginHori = _ref2.themeMarginHorizontal,
|
|
27069
|
+
themeMarginHorizontal = _ref2$themeMarginHori === void 0 ? 'medium' : _ref2$themeMarginHori;
|
|
27070
|
+
return {
|
|
27071
|
+
marginHorizontal: theme.__hd__.sectionList.space.marginHorizontal[themeMarginHorizontal],
|
|
27072
|
+
backgroundColor: theme.__hd__.sectionList.colors.groupBackground
|
|
27073
|
+
};
|
|
27074
|
+
});
|
|
27075
|
+
var StyledSectionSpacer = index$c(reactNative.View)(function (_ref3) {
|
|
27076
|
+
var theme = _ref3.theme,
|
|
27077
|
+
themeCompact = _ref3.themeCompact;
|
|
27078
|
+
return {
|
|
27079
|
+
height: themeCompact ? theme.__hd__.sectionList.space.sectionSpacingCompact : theme.__hd__.sectionList.space.sectionSpacing
|
|
27080
|
+
};
|
|
27081
|
+
});
|
|
27082
|
+
var StyledSectionHeading = index$c(SectionHeading)(function (_ref4) {
|
|
27083
|
+
var theme = _ref4.theme;
|
|
27084
|
+
return {
|
|
27085
|
+
paddingLeft: theme.__hd__.sectionList.space.headingPaddingLeft,
|
|
27086
|
+
marginBottom: 0
|
|
27087
|
+
};
|
|
27088
|
+
});
|
|
27089
|
+
|
|
27090
|
+
var _excluded$f = ["sections", "marginHorizontal", "style", "testID"];
|
|
27091
|
+
var positionOf = function positionOf(index, count) {
|
|
27092
|
+
if (count === 1) return 'single';
|
|
27093
|
+
if (index === 0) return 'top';
|
|
27094
|
+
if (index === count - 1) return 'bottom';
|
|
27095
|
+
return 'middle';
|
|
27096
|
+
};
|
|
27097
|
+
// StyledRow already clips corners via overflow:hidden + its own borderRadius, so the
|
|
27098
|
+
// inner list items must not add their own rounding on top of it.
|
|
27099
|
+
var NO_RADIUS = {
|
|
27100
|
+
borderRadius: 0
|
|
27101
|
+
};
|
|
27102
|
+
var renderRow = function renderRow(row) {
|
|
27103
|
+
return row.type === 'basic-item' ? /*#__PURE__*/React__namespace.default.createElement(List$1.BasicItem, _extends$1({}, row, {
|
|
27104
|
+
style: [NO_RADIUS, row.style]
|
|
27105
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(List$1.Item, _extends$1({}, row, {
|
|
27106
|
+
style: [NO_RADIUS, row.style]
|
|
27107
|
+
}));
|
|
27108
|
+
};
|
|
27109
|
+
// Factory lives at module scope — satisfies react/no-unstable-nested-components.
|
|
27110
|
+
// RN only renders ItemSeparatorComponent between adjacent items (never after the
|
|
27111
|
+
// last), which is exactly the desired divider placement for a bounded group.
|
|
27112
|
+
var createRowDivider = function createRowDivider(margin) {
|
|
27113
|
+
return function () {
|
|
27114
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDividerWrapper, {
|
|
27115
|
+
testID: "section-list-divider-wrapper",
|
|
27116
|
+
themeMarginHorizontal: margin
|
|
27117
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Divider, {
|
|
27118
|
+
testID: "section-list-divider"
|
|
27119
|
+
}));
|
|
27120
|
+
};
|
|
27121
|
+
};
|
|
27122
|
+
var SectionSpacer$1 = function SectionSpacer(_ref) {
|
|
27123
|
+
var leadingItem = _ref.leadingItem,
|
|
27124
|
+
trailingSection = _ref.trailingSection;
|
|
27125
|
+
return leadingItem && trailingSection ? /*#__PURE__*/React__namespace.default.createElement(StyledSectionSpacer, {
|
|
27126
|
+
themeCompact: !!trailingSection.hideHeading,
|
|
27127
|
+
testID: "section-list-spacer"
|
|
27128
|
+
}) : null;
|
|
27129
|
+
};
|
|
27130
|
+
function SectionList(_ref2) {
|
|
27131
|
+
var sections = _ref2.sections,
|
|
27132
|
+
_ref2$marginHorizonta = _ref2.marginHorizontal,
|
|
27133
|
+
marginHorizontal = _ref2$marginHorizonta === void 0 ? 'medium' : _ref2$marginHorizonta,
|
|
27134
|
+
style = _ref2.style,
|
|
27135
|
+
testID = _ref2.testID,
|
|
27136
|
+
rest = _objectWithoutProperties(_ref2, _excluded$f);
|
|
27137
|
+
var RowDivider = React.useMemo(function () {
|
|
27138
|
+
return createRowDivider(marginHorizontal);
|
|
27139
|
+
}, [marginHorizontal]);
|
|
27140
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.SectionList, _extends$1({}, rest, {
|
|
27141
|
+
style: style,
|
|
27142
|
+
testID: testID,
|
|
27143
|
+
sections: sections,
|
|
27144
|
+
stickySectionHeadersEnabled: false,
|
|
27145
|
+
ItemSeparatorComponent: RowDivider,
|
|
27146
|
+
renderSectionHeader: function renderSectionHeader(_ref3) {
|
|
27147
|
+
var _section$text;
|
|
27148
|
+
var section = _ref3.section;
|
|
27149
|
+
return section.hideHeading ? null : /*#__PURE__*/React__namespace.default.createElement(StyledSectionHeading, {
|
|
27150
|
+
text: (_section$text = section.text) !== null && _section$text !== void 0 ? _section$text : '',
|
|
27151
|
+
icon: section.icon,
|
|
27152
|
+
rightChildren: section.rightChildren,
|
|
27153
|
+
intent: section.intent,
|
|
27154
|
+
size: section.size
|
|
27155
|
+
});
|
|
27156
|
+
},
|
|
27157
|
+
renderItem: function renderItem(_ref4) {
|
|
27158
|
+
var item = _ref4.item,
|
|
27159
|
+
index = _ref4.index,
|
|
27160
|
+
section = _ref4.section;
|
|
27161
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledRow, {
|
|
27162
|
+
testID: "section-list-row",
|
|
27163
|
+
themePosition: positionOf(index, section.data.length),
|
|
27164
|
+
themeMarginHorizontal: marginHorizontal
|
|
27165
|
+
}, renderRow(item));
|
|
27166
|
+
},
|
|
27167
|
+
SectionSeparatorComponent: SectionSpacer$1
|
|
27168
|
+
}));
|
|
27169
|
+
}
|
|
27170
|
+
|
|
27014
27171
|
var Footer = function Footer(_ref) {
|
|
27015
27172
|
var label = _ref.label,
|
|
27016
27173
|
onPress = _ref.onPress;
|
|
@@ -42959,6 +43116,7 @@ exports.RichTextEditor = index;
|
|
|
42959
43116
|
exports.ScrollViewWithFAB = ScrollViewWithFAB;
|
|
42960
43117
|
exports.Search = Search;
|
|
42961
43118
|
exports.SectionHeading = SectionHeading;
|
|
43119
|
+
exports.SectionList = SectionList;
|
|
42962
43120
|
exports.SectionListWithFAB = SectionListWithFAB;
|
|
42963
43121
|
exports.SegmentedControl = SegmentedControl;
|
|
42964
43122
|
exports.Select = index$4;
|